/linux-6.3-rc2/tools/tracing/rtla/src/ |
A D | osnoise.c | 26 if (context->curr_cpus) in osnoise_get_cpus() 93 if (!strcmp(context->orig_cpus, context->curr_cpus)) in osnoise_restore_cpus() 475 if (context->orig_stop_us == context->stop_us) in osnoise_restore_stop_us() 554 if (context->orig_stop_total_us == context->stop_total_us) in osnoise_restore_stop_total_us() 634 if (context->orig_print_stack == context->print_stack) in osnoise_restore_print_stack() 713 if (context->orig_tracing_thresh == context->tracing_thresh) in osnoise_restore_tracing_thresh() 823 if (context->orig_opt_irq_disable == context->opt_irq_disable) in osnoise_restore_irq_disable() 892 context = calloc(1, sizeof(*context)); in osnoise_context_alloc() 893 if (!context) in osnoise_context_alloc() 913 return context; in osnoise_context_alloc() [all …]
|
A D | osnoise.h | 55 int osnoise_get_context(struct osnoise_context *context); 56 void osnoise_put_context(struct osnoise_context *context); 58 int osnoise_set_cpus(struct osnoise_context *context, char *cpus); 59 void osnoise_restore_cpus(struct osnoise_context *context); 61 int osnoise_set_runtime_period(struct osnoise_context *context, 66 int osnoise_set_stop_us(struct osnoise_context *context, 68 void osnoise_restore_stop_us(struct osnoise_context *context); 70 int osnoise_set_stop_total_us(struct osnoise_context *context, 78 int osnoise_set_tracing_thresh(struct osnoise_context *context, 83 int osnoise_set_print_stack(struct osnoise_context *context, [all …]
|
/linux-6.3-rc2/drivers/misc/vmw_vmci/ |
A D | vmci_context.c | 107 context = kzalloc(sizeof(*context), GFP_KERNEL); in vmci_ctx_create() 108 if (!context) { in vmci_ctx_create() 173 return context; in vmci_ctx_create() 180 kfree(context); in vmci_ctx_create() 311 if (!context) { in vmci_ctx_enqueue_datagram() 409 context = c; in vmci_ctx_get() 416 return context; in vmci_ctx_get() 435 ctx_fire_notification(context->cid, context->priv_flags); in ctx_free_ctx() 606 if (!context) in vmci_ctx_add_notification() 672 if (!context) in vmci_ctx_remove_notification() [all …]
|
A D | vmci_route.c | 42 if (VMCI_INVALID_ID == dst->context) in vmci_route() 75 if (VMCI_INVALID_ID == src->context && in vmci_route() 77 src->context = vmci_get_context_id(); in vmci_route() 113 if (VMCI_INVALID_ID == src->context) in vmci_route() 130 if (VMCI_INVALID_ID == src->context) { in vmci_route() 139 src->context = VMCI_HOST_CONTEXT_ID; in vmci_route() 153 if (vmci_ctx_exists(dst->context)) { in vmci_route() 165 src->context = VMCI_HOST_CONTEXT_ID; in vmci_route() 167 src->context != dst->context) { in vmci_route() 209 if (VMCI_INVALID_ID == src->context) in vmci_route() [all …]
|
/linux-6.3-rc2/security/selinux/ss/ |
A D | mls.h | 32 void mls_sid_to_context(struct policydb *p, struct context *context, 41 struct context *context, 48 int mls_range_set(struct context *context, struct mls_range *range); 69 struct context *context, 72 struct context *context, 75 struct context *context, 78 struct context *context, 82 struct context *context, in mls_export_netlbl_lvl() argument 88 struct context *context, in mls_import_netlbl_lvl() argument 94 struct context *context, in mls_export_netlbl_cat() argument [all …]
|
A D | mls.c | 36 int mls_compute_context_len(struct policydb *p, struct context *context) in mls_compute_context_len() argument 90 struct context *context, in mls_sid_to_context() argument 236 struct context *context, in mls_context_to_sid() argument 344 context->range.level[1].sens = context->range.level[0].sens; in mls_context_to_sid() 384 int mls_range_set(struct context *context, in mls_range_set() argument 565 struct context *context, in mls_export_netlbl_lvl() argument 587 struct context *context, in mls_import_netlbl_lvl() argument 594 context->range.level[1].sens = context->range.level[0].sens; in mls_import_netlbl_lvl() 609 struct context *context, in mls_export_netlbl_cat() argument 639 struct context *context, in mls_import_netlbl_cat() argument [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/hns/ |
A D | hns_roce_restrack.c | 49 struct hns_roce_v2_cq_context context; in hns_roce_fill_res_cq_entry_raw() local 61 data[offset++] = hr_reg_read(&context, CQC_CQ_ST); in hns_roce_fill_res_cq_entry_raw() 62 data[offset++] = hr_reg_read(&context, CQC_SHIFT); in hns_roce_fill_res_cq_entry_raw() 68 data[offset++] = hr_reg_read(&context, CQC_ARM_ST); in hns_roce_fill_res_cq_entry_raw() 69 data[offset++] = hr_reg_read(&context, CQC_CMD_SN); in hns_roce_fill_res_cq_entry_raw() 70 data[offset++] = hr_reg_read(&context, CQC_CEQN); in hns_roce_fill_res_cq_entry_raw() 120 struct hns_roce_v2_qp_context context; in hns_roce_fill_res_qp_entry_raw() local 136 data[offset++] = hr_reg_read(&context, QPC_SRQN); in hns_roce_fill_res_qp_entry_raw() 206 struct hns_roce_v2_mpt_entry context; in hns_roce_fill_res_mr_entry_raw() local 218 data[offset++] = hr_reg_read(&context, MPT_ST); in hns_roce_fill_res_mr_entry_raw() [all …]
|
A D | hns_roce_cmd.c | 85 token, context->token); in hns_roce_cmd_event() 90 context->out_param = out_param; in hns_roce_cmd_event() 91 complete(&context->done); in hns_roce_cmd_event() 105 context = &cmd->context[cmd->free_head]; in __hns_roce_cmd_mbox_wait() 107 } while (context->busy); in __hns_roce_cmd_mbox_wait() 109 context->busy = 1; in __hns_roce_cmd_mbox_wait() 133 ret = context->result; in __hns_roce_cmd_mbox_wait() 139 context->busy = 0; in __hns_roce_cmd_mbox_wait() 206 hr_cmd->context = in hns_roce_cmd_use_events() 208 if (!hr_cmd->context) { in hns_roce_cmd_use_events() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/etnaviv/ |
A D | etnaviv_mmu.c | 29 unmapped_page = context->global->ops->unmap(context, iova, in etnaviv_context_unmap() 55 ret = context->global->ops->map(context, iova, paddr, pgsize, in etnaviv_context_map() 79 if (!context || !sgt) in etnaviv_iommu_map() 140 struct etnaviv_iommu_context *context = mapping->context; in etnaviv_iommu_reap_mapping() local 298 mapping->context = etnaviv_iommu_context_get(context); in etnaviv_iommu_map_gem() 325 mapping->context = etnaviv_iommu_context_get(context); in etnaviv_iommu_map_gem() 360 etnaviv_cmdbuf_suballoc_unmap(context, &context->cmdbuf_mapping); in etnaviv_iommu_context_free() 362 context->global->ops->free(context); in etnaviv_iommu_context_free() 408 context->global->ops->restore(gpu, context); in etnaviv_iommu_restore() 482 return context->global->ops->dump_size(context); in etnaviv_iommu_dump_size() [all …]
|
A D | etnaviv_iommu.c | 37 drm_mm_takedown(&context->mm); in etnaviv_iommuv1_free() 140 context = global->v1.shared_context; in etnaviv_iommuv1_context_alloc() 141 etnaviv_iommu_context_get(context); in etnaviv_iommuv1_context_alloc() 143 return context; in etnaviv_iommuv1_context_alloc() 160 context = &v1_context->base; in etnaviv_iommuv1_context_alloc() 161 context->global = global; in etnaviv_iommuv1_context_alloc() 162 kref_init(&context->refcount); in etnaviv_iommuv1_context_alloc() 163 mutex_init(&context->lock); in etnaviv_iommuv1_context_alloc() 164 INIT_LIST_HEAD(&context->mappings); in etnaviv_iommuv1_context_alloc() 166 context->global->v1.shared_context = context; in etnaviv_iommuv1_context_alloc() [all …]
|
A D | etnaviv_iommu_v2.c | 52 drm_mm_takedown(&context->mm); in etnaviv_iommuv2_free() 166 struct etnaviv_iommu_context *context) in etnaviv_iommuv2_restore_nonsec() argument 181 (u32)context->global->bad_page_dma); in etnaviv_iommuv2_restore_nonsec() 190 struct etnaviv_iommu_context *context) in etnaviv_iommuv2_restore_sec() argument 273 struct etnaviv_iommu_context *context; in etnaviv_iommuv2_context_alloc() local 300 context = &v2_context->base; in etnaviv_iommuv2_context_alloc() 301 context->global = global; in etnaviv_iommuv2_context_alloc() 302 kref_init(&context->refcount); in etnaviv_iommuv2_context_alloc() 303 mutex_init(&context->lock); in etnaviv_iommuv2_context_alloc() 304 INIT_LIST_HEAD(&context->mappings); in etnaviv_iommuv2_context_alloc() [all …]
|
/linux-6.3-rc2/kernel/ |
A D | auditsc.c | 1033 context->context = AUDIT_CTX_UNUSED; in audit_alloc_context() 1684 switch (context->context) { in audit_log_exit() 1690 context->arch, context->major); in audit_log_exit() 1756 context->fds[0], context->fds[1]); in audit_log_exit() 1806 if (context->context == AUDIT_CTX_SYSCALL) in audit_log_exit() 2018 if (context->context != AUDIT_CTX_UNUSED || context->name_count) { in __audit_syscall_entry() 2040 context->context = AUDIT_CTX_SYSCALL; in __audit_syscall_entry() 2060 if (!context || context->dummy || in __audit_syscall_exit() 2230 if (context->context == AUDIT_CTX_UNUSED) in __audit_getname() 2302 if (context->context == AUDIT_CTX_UNUSED) in __audit_inode() [all …]
|
/linux-6.3-rc2/fs/xfs/ |
A D | xfs_attr_list.c | 88 context->put_listent(context, in xfs_attr_shortform_list() 97 if (context->seen_enough) in xfs_attr_shortform_list() 106 if (context->bufsize == 0) in xfs_attr_shortform_list() 182 context->put_listent(context, in xfs_attr_shortform_list() 410 if (context->resynch) { in xfs_attr3_leaf_list_int() 415 context->dupcnt = 0; in xfs_attr3_leaf_list_int() 418 context->dupcnt++; in xfs_attr3_leaf_list_int() 421 context->dupcnt = 0; in xfs_attr3_leaf_list_int() 433 context->resynch = 0; in xfs_attr3_leaf_list_int() 470 context->put_listent(context, entry->flags, in xfs_attr3_leaf_list_int() [all …]
|
A D | xfs_xattr.c | 200 if (context->count < 0 || context->seen_enough) in __xfs_xattr_put_listent() 203 if (!context->buffer) in __xfs_xattr_put_listent() 209 context->seen_enough = 1; in __xfs_xattr_put_listent() 212 offset = context->buffer + context->count; in __xfs_xattr_put_listent() 293 memset(&context, 0, sizeof(context)); in xfs_vn_listxattr() 294 context.dp = XFS_I(inode); in xfs_vn_listxattr() 295 context.resynch = 1; in xfs_vn_listxattr() 297 context.bufsize = size; in xfs_vn_listxattr() 298 context.firstu = context.bufsize; in xfs_vn_listxattr() 304 if (context.count < 0) in xfs_vn_listxattr() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/tegra/ |
A D | uapi.c | 46 kfree(context); in tegra_drm_channel_context_close() 89 context = kzalloc(sizeof(*context), GFP_KERNEL); in tegra_drm_ioctl_channel_open() 90 if (!context) in tegra_drm_ioctl_channel_open() 135 err = xa_alloc(&fpriv->contexts, &args->context, context, XA_LIMIT(1, U32_MAX), in tegra_drm_ioctl_channel_open() 157 kfree(context); in tegra_drm_ioctl_channel_open() 170 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_close() 171 if (!context) { in tegra_drm_ioctl_channel_close() 200 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_map() 201 if (!context) { in tegra_drm_ioctl_channel_map() 281 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_unmap() [all …]
|
A D | submit.c | 26 #define SUBMIT_ERR(context, fmt, ...) \ argument 150 xa_lock(&context->mappings); in tegra_drm_mapping_get() 156 xa_unlock(&context->mappings); in tegra_drm_mapping_get() 243 SUBMIT_ERR(context, in submit_write_reloc() 403 class = context->client->base.class; in submit_create_job() 516 struct tegra_drm_context *context; in tegra_drm_ioctl_channel_submit() local 524 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_submit() 525 if (!context) { in tegra_drm_ioctl_channel_submit() 528 current->comm, args->context); in tegra_drm_ioctl_channel_submit() 598 if (context->memory_context && context->client->ops->can_use_memory_ctx) { in tegra_drm_ioctl_channel_submit() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_resources.c | 47 memset(context, 0, sizeof(*context)); in mlx4_en_fill_qp_context() 49 context->pd = cpu_to_be32(mdev->priv_pdn); in mlx4_en_fill_qp_context() 50 context->mtu_msgmax = 0xff; in mlx4_en_fill_qp_context() 59 context->sq_size_stride = ilog2(TXBB_SIZE) - 4; in mlx4_en_fill_qp_context() 63 context->local_qpn = cpu_to_be32(qpn); in mlx4_en_fill_qp_context() 64 context->pri_path.ackto = 1 & 0x07; in mlx4_en_fill_qp_context() 68 context->pri_path.sched_queue |= user_prio << 3; in mlx4_en_fill_qp_context() 72 context->cqn_send = cpu_to_be32(cqn); in mlx4_en_fill_qp_context() 73 context->cqn_recv = cpu_to_be32(cqn); in mlx4_en_fill_qp_context() 76 context->pri_path.counter_index != in mlx4_en_fill_qp_context() [all …]
|
/linux-6.3-rc2/drivers/platform/x86/intel/int1092/ |
A D | intel_sar.c | 41 &context->config_data[context->reg_value]; in update_sar_data() 135 out = acpi_evaluate_dsm_typed(context->handle, &context->guid, rev, in sar_get_device_mode() 143 update_sar_data(context); in sar_get_device_mode() 189 context->reg_value = value; in intc_reg_store() 190 update_sar_data(context); in intc_reg_store() 223 out = acpi_evaluate_dsm_typed(context->handle, &context->guid, rev, in sar_get_data() 251 context = kzalloc(sizeof(*context), GFP_KERNEL); in sar_probe() 252 if (!context) in sar_probe() 266 sar_get_data(reg, context); in sar_probe() 291 kfree(context); in sar_probe() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
A D | dcn32_fpu.c | 1133 !dcn32_mpo_in_use(context) && !dcn32_any_surfaces_rotated(dc, context) && in dcn32_full_validate_bw_helper() 1324 context->bw_ctx.bw.dcn.clk.dispclk_khz = context->bw_ctx.dml.vba.DISPCLK * 1000; in dcn32_calculate_dlg_params() 1325 context->bw_ctx.bw.dcn.clk.dcfclk_khz = context->bw_ctx.dml.vba.DCFCLK * 1000; in dcn32_calculate_dlg_params() 1326 context->bw_ctx.bw.dcn.clk.socclk_khz = context->bw_ctx.dml.vba.SOCCLK * 1000; in dcn32_calculate_dlg_params() 1329 context->bw_ctx.bw.dcn.clk.fclk_khz = context->bw_ctx.dml.vba.FabricClock * 1000; in dcn32_calculate_dlg_params() 1335 context->bw_ctx.bw.dcn.clk.dtbclk_en = is_dtbclk_required(dc, context); in dcn32_calculate_dlg_params() 1432 context->bw_ctx.bw.dcn.clk.bw_dppclk_khz = context->bw_ctx.bw.dcn.clk.dppclk_khz; in dcn32_calculate_dlg_params() 1453 context->bw_ctx.dml.funcs.rq_dlg_get_dlg_reg_v2(&context->bw_ctx.dml, in dcn32_calculate_dlg_params() 2133 context->bw_ctx.bw.dcn.watermarks.a = context->bw_ctx.bw.dcn.watermarks.c; in dcn32_calculate_wm_and_dlg_fpu() 2177 context->perf_params.stutter_period_us = context->bw_ctx.dml.vba.StutterPeriod; in dcn32_calculate_wm_and_dlg_fpu() [all …]
|
/linux-6.3-rc2/arch/riscv/kernel/ |
A D | suspend.c | 14 context->tvec = csr_read(CSR_TVEC); in suspend_save_csrs() 15 context->ie = csr_read(CSR_IE); in suspend_save_csrs() 28 context->satp = csr_read(CSR_SATP); in suspend_save_csrs() 35 csr_write(CSR_TVEC, context->tvec); in suspend_restore_csrs() 36 csr_write(CSR_IE, context->ie); in suspend_restore_csrs() 39 csr_write(CSR_SATP, context->satp); in suspend_restore_csrs() 46 unsigned long context)) in cpu_suspend() argument 56 suspend_save_csrs(&context); in cpu_suspend() 66 if (__cpu_suspend_enter(&context)) { in cpu_suspend() 69 (ulong)&context); in cpu_suspend() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/qlogic/qed/ |
A D | qed_nvmetcp_fw_funcs.c | 145 struct e5_nvmetcp_task_context *context = task_params->context; in init_default_nvmetcp_task() local 149 memset(context, 0, sizeof(*context)); in init_default_nvmetcp_task() 150 init_nvmetcp_task_params(context, task_params, in init_default_nvmetcp_task() 210 SET_FIELD(context->ustorm_st_context.flags, in set_local_completion_context() 221 struct e5_nvmetcp_task_context *context = task_params->context; in init_rw_nvmetcp_task() local 247 &context->mstorm_st_context.data_desc, in init_rw_nvmetcp_task() 260 &context->ustorm_ag_context, in init_rw_nvmetcp_task() 279 context->ustorm_ag_context.exp_cont_len = 0; in init_rw_nvmetcp_task() 327 struct e5_nvmetcp_task_context *context = task_params->context; in init_common_login_request_task() local 334 &context->ustorm_ag_context, in init_common_login_request_task() [all …]
|
/linux-6.3-rc2/arch/s390/include/asm/ |
A D | mmu_context.h | 24 spin_lock_init(&mm->context.lock); in init_new_context() 26 INIT_LIST_HEAD(&mm->context.gmap_list); in init_new_context() 28 atomic_set(&mm->context.flush_count, 0); in init_new_context() 30 mm->context.gmap_asce = 0; in init_new_context() 31 mm->context.flush_mm = 0; in init_new_context() 36 mm->context.has_pgste = 0; in init_new_context() 37 mm->context.uses_skeys = 0; in init_new_context() 38 mm->context.uses_cmm = 0; in init_new_context() 39 mm->context.allow_gmap_hpage_1m = 0; in init_new_context() 41 switch (mm->context.asce_limit) { in init_new_context() [all …]
|
/linux-6.3-rc2/arch/sparc/mm/ |
A D | tsb.c | 545 spin_lock_init(&mm->context.lock); in init_new_context() 547 mm->context.sparc64_ctx_val = 0UL; in init_new_context() 549 mm->context.tag_store = NULL; in init_new_context() 559 mm->context.hugetlb_pte_count = 0; in init_new_context() 560 mm->context.thp_pte_count = 0; in init_new_context() 570 mm->context.tsb_block[i].tsb = NULL; in init_new_context() 611 if (CTX_VALID(mm->context)) { in destroy_context() 619 if (mm->context.tag_store) { in destroy_context() 624 tag_desc = mm->context.tag_store; in destroy_context() 632 kfree(mm->context.tag_store); in destroy_context() [all …]
|
/linux-6.3-rc2/arch/powerpc/mm/book3s64/ |
A D | mmu_context.c | 101 if (!mm->context.hash_context) in hash__init_new_context() 118 if (mm->context.id == 0) { in hash__init_new_context() 142 kfree(mm->context.hash_context); in hash__init_new_context() 189 mm->context.hash_context = NULL; in radix__init_new_context() 207 mm->context.id = index; in init_new_context() 209 mm->context.pte_frag = NULL; in init_new_context() 210 mm->context.pmd_frag = NULL; in init_new_context() 265 frag = mm->context.pte_frag; in destroy_pagetable_cache() 269 frag = mm->context.pmd_frag; in destroy_pagetable_cache() 297 destroy_contexts(&mm->context); in destroy_context() [all …]
|
/linux-6.3-rc2/drivers/usb/image/ |
A D | microtek.c | 390 context in mts_int_submit_urb() 408 context->final_callback(context->srb); in mts_transfer_cleanup() 416 context->srb->result |= (unsigned)(*context->scsi_status)<<1; in mts_transfer_done() 442 scsi_set_resid(context->srb, context->data_length - in mts_data_done() 483 context->data, in mts_command_done() 506 context->curr_sg = sg_next(context->curr_sg); in mts_do_sg() 508 context->data_pipe, in mts_do_sg() 535 desc->context.srb = srb; in mts_build_transfer_context() 543 desc->context.data = sg_virt(desc->context.curr_sg); in mts_build_transfer_context() 544 desc->context.data_length = desc->context.curr_sg->length; in mts_build_transfer_context() [all …]
|