Home
last modified time | relevance | path

Searched refs:task_ctx (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.4/arch/x86/events/intel/
Dlbr.c340 static void __intel_pmu_lbr_restore(struct x86_perf_task_context *task_ctx) in __intel_pmu_lbr_restore() argument
347 if (task_ctx->lbr_callstack_users == 0 || in __intel_pmu_lbr_restore()
348 task_ctx->lbr_stack_state == LBR_NONE) { in __intel_pmu_lbr_restore()
353 tos = task_ctx->tos; in __intel_pmu_lbr_restore()
359 if ((task_ctx == cpuc->last_task_ctx) && in __intel_pmu_lbr_restore()
360 (task_ctx->log_id == cpuc->last_log_id) && in __intel_pmu_lbr_restore()
362 task_ctx->lbr_stack_state = LBR_NONE; in __intel_pmu_lbr_restore()
367 for (i = 0; i < task_ctx->valid_lbrs; i++) { in __intel_pmu_lbr_restore()
369 wrlbr_from(lbr_idx, task_ctx->lbr_from[i]); in __intel_pmu_lbr_restore()
370 wrlbr_to (lbr_idx, task_ctx->lbr_to[i]); in __intel_pmu_lbr_restore()
[all …]
/Linux-v5.4/security/apparmor/
Dtask.c44 struct aa_task_ctx *ctx = task_ctx(current); in aa_replace_current_label()
70 aa_clear_task_ctx_trans(task_ctx(current)); in aa_replace_current_label()
95 struct aa_task_ctx *ctx = task_ctx(current); in aa_set_current_onexec()
117 struct aa_task_ctx *ctx = task_ctx(current); in aa_set_current_hat()
157 struct aa_task_ctx *ctx = task_ctx(current); in aa_restore_previous_label()
Dlsm.c92 aa_free_task_ctx(task_ctx(task)); in apparmor_task_free()
98 struct aa_task_ctx *new = task_ctx(task); in apparmor_task_alloc()
100 aa_dup_task_ctx(new, task_ctx(current)); in apparmor_task_alloc()
581 struct aa_task_ctx *ctx = task_ctx(current); in apparmor_getprocattr()
704 aa_clear_task_ctx_trans(task_ctx(current)); in apparmor_bprm_committed_creds()
Ddomain.c888 ctx = task_ctx(current); in apparmor_bprm_set_creds()
1165 struct aa_task_ctx *ctx = task_ctx(current); in aa_change_hat()
1315 struct aa_task_ctx *ctx = task_ctx(current); in aa_change_profile()
/Linux-v5.4/kernel/events/
Dcore.c208 struct perf_event_context *task_ctx = cpuctx->task_ctx; in event_function() local
213 perf_ctx_lock(cpuctx, task_ctx); in event_function()
236 WARN_ON_ONCE(task_ctx != ctx); in event_function()
243 perf_ctx_unlock(cpuctx, task_ctx); in event_function()
306 struct perf_event_context *task_ctx = NULL; in event_function_local() local
314 task_ctx = ctx; in event_function_local()
317 perf_ctx_lock(cpuctx, task_ctx); in event_function_local()
333 if (WARN_ON_ONCE(cpuctx->task_ctx != ctx)) in event_function_local()
342 perf_ctx_unlock(cpuctx, task_ctx); in event_function_local()
810 perf_ctx_lock(cpuctx, cpuctx->task_ctx); in perf_cgroup_switch()
[all …]
/Linux-v5.4/drivers/scsi/bnx2fc/
Dbnx2fc_hwi.c889 task_page = (struct fcoe_task_ctx_entry *)hba->task_ctx[task_idx]; in bnx2fc_process_cq_compl()
1857 hba->task_ctx = kzalloc((task_ctx_arr_sz * sizeof(void *)), in bnx2fc_setup_task_ctx()
1859 if (!hba->task_ctx) { in bnx2fc_setup_task_ctx()
1879 hba->task_ctx[i] = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_setup_task_ctx()
1883 if (!hba->task_ctx[i]) { in bnx2fc_setup_task_ctx()
1897 if (hba->task_ctx[i]) { in bnx2fc_setup_task_ctx()
1900 hba->task_ctx[i], hba->task_ctx_dma[i]); in bnx2fc_setup_task_ctx()
1901 hba->task_ctx[i] = NULL; in bnx2fc_setup_task_ctx()
1908 kfree(hba->task_ctx); in bnx2fc_setup_task_ctx()
1909 hba->task_ctx = NULL; in bnx2fc_setup_task_ctx()
[all …]
Dbnx2fc_io.c764 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_tmf()
902 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_abts()
978 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_seq_cleanup()
1036 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_cleanup()
2083 task_page = (struct fcoe_task_ctx_entry *) hba->task_ctx[task_idx]; in bnx2fc_post_io_req()
Dbnx2fc.h213 struct fcoe_task_ctx_entry **task_ctx; member
Dbnx2fc_els.c775 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_els()
/Linux-v5.4/security/apparmor/include/
Dtask.h13 static inline struct aa_task_ctx *task_ctx(struct task_struct *task) in task_ctx() function
/Linux-v5.4/drivers/scsi/qedf/
Dqedf_io.c595 struct qedf_ioreq *io_req, struct e4_fcoe_task_context *task_ctx, in qedf_init_task() argument
612 io_req->task = task_ctx; in qedf_init_task()
613 memset(task_ctx, 0, sizeof(struct e4_fcoe_task_context)); in qedf_init_task()
631 io_req->task_params->context = task_ctx; in qedf_init_task()
685 struct e4_fcoe_task_context *task_ctx, struct fcoe_wqe *sqe) in qedf_init_mp_task() argument
703 memset(task_ctx, 0, sizeof(struct e4_fcoe_task_context)); in qedf_init_mp_task()
707 io_req->task = task_ctx; in qedf_init_mp_task()
710 io_req->task_params->context = task_ctx; in qedf_init_mp_task()
861 struct e4_fcoe_task_context *task_ctx; in qedf_post_io_req() local
917 task_ctx = qedf_get_task_mem(&qedf->tasks, xid); in qedf_post_io_req()
[all …]
Dqedf.h503 struct e4_fcoe_task_context *task_ctx, struct fcoe_wqe *sqe);
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_cxt.h244 u32 tid, u8 ctx_type, void **task_ctx);
/Linux-v5.4/drivers/scsi/qedi/
Dqedi_fw.c87 struct e4_iscsi_task_context *task_ctx; in qedi_process_text_resp() local
94 task_ctx = qedi_get_task_mem(&qedi->tasks, cmd->task_id); in qedi_process_text_resp()
119 memset(task_ctx, '\0', sizeof(*task_ctx)); in qedi_process_text_resp()
258 struct e4_iscsi_task_context *task_ctx; in qedi_process_login_resp() local
267 task_ctx = qedi_get_task_mem(&qedi->tasks, cmd->task_id); in qedi_process_login_resp()
297 memset(task_ctx, '\0', sizeof(*task_ctx)); in qedi_process_login_resp()
/Linux-v5.4/include/linux/
Dperf_event.h807 struct perf_event_context *task_ctx; member