| /linux/tools/testing/selftests/sched_ext/ |
| H A D | select_cpu_dfl_nodispatch.bpf.c | 19 struct task_ctx { struct 27 __type(value, struct task_ctx); argument 37 struct task_ctx *tctx; in BPF_STRUCT_OPS() 56 struct task_ctx *tctx; in BPF_STRUCT_OPS()
|
| /linux/tools/sched_ext/ |
| H A D | scx_qmap.bpf.c | 102 struct task_ctx { struct 112 __type(value, struct task_ctx); argument 151 static struct task_ctx *lookup_task_ctx(struct task_struct *p) in lookup_task_ctx() 153 struct task_ctx *tctx; in lookup_task_ctx() 165 struct task_ctx *tctx; in BPF_STRUCT_OPS() 199 struct task_ctx *tctx; in BPF_STRUCT_OPS() 295 struct task_ctx *tctx; in update_core_sched_head_seq() 319 struct task_ctx *tctx; in dispatch_highpri() 370 struct task_ctx *tctx; in BPF_STRUCT_OPS() 415 struct task_ctx *tctx; in BPF_STRUCT_OPS() [all …]
|
| H A D | scx_userland.bpf.c | 83 struct task_ctx { struct 92 __type(value, struct task_ctx); argument 148 struct task_ctx *tctx; in BPF_STRUCT_OPS() 208 struct task_ctx *tctx; in BPF_STRUCT_OPS()
|
| H A D | scx_flatcg.bpf.c | 130 } task_ctx SEC(".maps"); 325 taskc = bpf_task_storage_get(&task_ctx, p, 0, 0); in BPF_STRUCT_OPS() 351 taskc = bpf_task_storage_get(&task_ctx, p, 0, 0); in BPF_STRUCT_OPS() 558 taskc = bpf_task_storage_get(&task_ctx, p, 0, 0); in BPF_STRUCT_OPS() 815 taskc = bpf_task_storage_get(&task_ctx, p, 0, in BPF_STRUCT_OPS()
|
| /linux/arch/x86/events/intel/ |
| H A D | lbr.c | 364 struct x86_perf_task_context *task_ctx = ctx; in intel_pmu_lbr_restore() local 366 u64 tos = task_ctx->tos; in intel_pmu_lbr_restore() 371 for (i = 0; i < task_ctx->valid_lbrs; i++) { in intel_pmu_lbr_restore() 373 wrlbr_all(&task_ctx->lbr[i], lbr_idx, need_info); in intel_pmu_lbr_restore() 387 wrmsrq(MSR_LBR_SELECT, task_ctx->lbr_sel); in intel_pmu_lbr_restore() 392 struct x86_perf_task_context_arch_lbr *task_ctx = ctx; in intel_pmu_arch_lbr_restore() local 393 struct lbr_entry *entries = task_ctx->entries; in intel_pmu_arch_lbr_restore() 413 struct x86_perf_task_context_arch_lbr_xsave *task_ctx = ctx; in intel_pmu_arch_lbr_xrstors() local 415 xrstors(&task_ctx->xsave, XFEATURE_MASK_LBR); in intel_pmu_arch_lbr_xrstors() 462 struct x86_perf_task_context *task_ctx = ctx; in intel_pmu_lbr_save() local [all …]
|
| /linux/security/apparmor/ |
| H A D | task.c | 50 struct aa_task_ctx *ctx = task_ctx(current); in aa_replace_current_label() 76 aa_clear_task_ctx_trans(task_ctx(current)); in aa_replace_current_label() 100 struct aa_task_ctx *ctx = task_ctx(current); in aa_set_current_onexec() 120 struct aa_task_ctx *ctx = task_ctx(current); in aa_set_current_hat() 160 struct aa_task_ctx *ctx = task_ctx(current); in aa_restore_previous_label()
|
| H A D | lsm.c | 112 aa_free_task_ctx(task_ctx(task)); in apparmor_task_free() 118 struct aa_task_ctx *new = task_ctx(task); in apparmor_task_alloc() 120 aa_dup_task_ctx(new, task_ctx(current)); in apparmor_task_alloc() 785 struct aa_task_ctx *ctx = task_ctx(current); in apparmor_getselfattr() 827 struct aa_task_ctx *ctx = task_ctx(current); in apparmor_getprocattr() 979 aa_clear_task_ctx_trans(task_ctx(current)); in apparmor_bprm_committed_creds()
|
| H A D | domain.c | 937 ctx = task_ctx(current); in apparmor_bprm_creds_for_exec() 1226 struct aa_task_ctx *ctx = task_ctx(current); in aa_change_hat() 1398 struct aa_task_ctx *ctx = task_ctx(current); in aa_change_profile()
|
| /linux/kernel/events/ |
| H A D | core.c | 249 return this_cpu_ptr(&perf_cpu_context)->task_ctx; in perf_cpu_task_ctx() 286 struct perf_event_context *task_ctx = cpuctx->task_ctx; in event_function() local 291 perf_ctx_lock(cpuctx, task_ctx); in event_function() 314 WARN_ON_ONCE(task_ctx != ctx); in event_function() 321 perf_ctx_unlock(cpuctx, task_ctx); in event_function() 388 struct perf_event_context *task_ctx = NULL; in event_function_local() local 396 task_ctx = ctx; in event_function_local() 399 perf_ctx_lock(cpuctx, task_ctx); in event_function_local() 415 if (WARN_ON_ONCE(cpuctx->task_ctx != ctx)) in event_function_local() 424 perf_ctx_unlock(cpuctx, task_ctx); in event_function_local() [all …]
|
| /linux/drivers/scsi/bnx2fc/ |
| H A D | bnx2fc_hwi.c | 1016 task_page = (struct fcoe_task_ctx_entry *)hba->task_ctx[task_idx]; in bnx2fc_pending_work() 1896 hba->task_ctx = kzalloc((task_ctx_arr_sz * sizeof(void *)), in bnx2fc_setup_task_ctx() 1898 if (!hba->task_ctx) { in bnx2fc_setup_task_ctx() 1918 hba->task_ctx[i] = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_setup_task_ctx() 1922 if (!hba->task_ctx[i]) { in bnx2fc_setup_task_ctx() 1936 if (hba->task_ctx[i]) { in bnx2fc_setup_task_ctx() 1939 hba->task_ctx[i], hba->task_ctx_dma[i]); in bnx2fc_setup_task_ctx() 1940 hba->task_ctx[i] = NULL; in bnx2fc_setup_task_ctx() 1947 kfree(hba->task_ctx); in bnx2fc_setup_task_ctx() 1948 hba->task_ctx = NULL; in bnx2fc_setup_task_ctx() [all …]
|
| H A D | bnx2fc_io.c | 758 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_tmf() 894 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_abts() 970 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_seq_cleanup() 1028 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_cleanup() 2069 task_page = (struct fcoe_task_ctx_entry *) hba->task_ctx[task_idx]; in bnx2fc_post_io_req()
|
| H A D | bnx2fc.h | 210 struct fcoe_task_ctx_entry **task_ctx; member
|
| H A D | bnx2fc_els.c | 775 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_els()
|
| /linux/drivers/scsi/qedf/ |
| H A D | qedf_io.c | 587 struct qedf_ioreq *io_req, struct fcoe_task_context *task_ctx, in qedf_init_task() argument 604 io_req->task = task_ctx; in qedf_init_task() 605 memset(task_ctx, 0, sizeof(struct fcoe_task_context)); in qedf_init_task() 623 io_req->task_params->context = task_ctx; in qedf_init_task() 677 struct fcoe_task_context *task_ctx, struct fcoe_wqe *sqe) in qedf_init_mp_task() argument 695 memset(task_ctx, 0, sizeof(struct fcoe_task_context)); in qedf_init_mp_task() 699 io_req->task = task_ctx; in qedf_init_mp_task() 702 io_req->task_params->context = task_ctx; in qedf_init_mp_task() 852 struct fcoe_task_context *task_ctx; in qedf_post_io_req() local 905 task_ctx = qedf_get_task_mem(&qedf->tasks, xid); in qedf_post_io_req() [all …]
|
| H A D | qedf.h | 516 struct fcoe_task_context *task_ctx, struct fcoe_wqe *sqe);
|
| /linux/security/apparmor/include/ |
| H A D | task.h | 13 static inline struct aa_task_ctx *task_ctx(struct task_struct *task) in task_ctx() function
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_cxt.h | 230 u32 tid, u8 ctx_type, void **task_ctx);
|
| /linux/drivers/scsi/qedi/ |
| H A D | qedi_fw.c | 88 struct iscsi_task_context *task_ctx; in qedi_process_text_resp() local 95 task_ctx = qedi_get_task_mem(&qedi->tasks, cmd->task_id); in qedi_process_text_resp() 120 memset(task_ctx, '\0', sizeof(*task_ctx)); in qedi_process_text_resp() 264 struct iscsi_task_context *task_ctx; in qedi_process_login_resp() local 273 task_ctx = qedi_get_task_mem(&qedi->tasks, cmd->task_id); in qedi_process_login_resp() 305 memset(task_ctx, '\0', sizeof(*task_ctx)); in qedi_process_login_resp()
|
| /linux/include/linux/ |
| H A D | perf_event.h | 1135 struct perf_event_context *task_ctx; member
|