/openbmc/linux/drivers/platform/x86/intel/int1092/ |
H 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 …]
|
/openbmc/linux/drivers/misc/vmw_vmci/ |
H 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 …]
|
/openbmc/linux/drivers/gpu/drm/etnaviv/ |
H 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 …]
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H 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 …]
|
/openbmc/linux/arch/riscv/kernel/ |
H 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 …]
|
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | osnoise.h | 59 int osnoise_get_context(struct osnoise_context *context); 60 void osnoise_put_context(struct osnoise_context *context); 62 int osnoise_set_cpus(struct osnoise_context *context, char *cpus); 63 void osnoise_restore_cpus(struct osnoise_context *context); 65 int osnoise_set_runtime_period(struct osnoise_context *context, 70 int osnoise_set_stop_us(struct osnoise_context *context, 72 void osnoise_restore_stop_us(struct osnoise_context *context); 74 int osnoise_set_stop_total_us(struct osnoise_context *context, 82 int osnoise_set_tracing_thresh(struct osnoise_context *context, 87 int osnoise_set_print_stack(struct osnoise_context *context, [all …]
|
/openbmc/hiomapd/ |
H A D | mboxctl.c | 57 rc = sd_bus_default_system(&context->bus); in init_mboxctl_dbus() 110 rc = mboxctl_directive(context, "Ping"); in handle_cmd_ping() 152 rc = mboxctl_directive(context, "Kill"); in handle_cmd_kill() 367 rc = handle_cmd_ping(context); in parse_cmdline() 373 rc = handle_cmd_lpc_state(context); in parse_cmdline() 376 rc = handle_cmd_kill(context); in parse_cmdline() 380 rc = handle_cmd_reset(context); in parse_cmdline() 383 rc = handle_cmd_suspend(context); in parse_cmdline() 389 rc = handle_cmd_modified(context); in parse_cmdline() 414 struct mboxctl_context context; in main() local [all …]
|
H A D | control_dbus.h | 7 int control_dbus_init(struct mbox_context *context); 8 void control_dbus_free(struct mbox_context *context); 10 int control_legacy_init(struct mbox_context *context); 11 void control_legacy_free(struct mbox_context *context); 14 int control_ping(struct mbox_context *context); 15 int control_daemon_state(struct mbox_context *context); 16 int control_lpc_state(struct mbox_context *context); 17 int control_reset(struct mbox_context *context); 18 int control_kill(struct mbox_context *context); 19 int control_modified(struct mbox_context *context); [all …]
|
H A D | control_legacy.c | 47 return control_ping(context); in control_legacy_ping() 63 resp->args[0] = control_daemon_state(context); in control_legacy_daemon_state() 82 resp->args[0] = control_lpc_state(context); in control_legacy_lpc_state() 101 rc = control_reset(context); in control_legacy_reset() 124 return control_kill(context); in control_legacy_kill() 141 return control_modified(context); in control_legacy_modified() 159 rc = control_suspend(context); in control_legacy_suspend() 212 struct mbox_context *context; in method_cmd() local 217 context = (struct mbox_context *) userdata; in method_cmd() 218 if (!context) { in method_cmd() [all …]
|
H A D | protocol.h | 104 int (*reset)(struct mbox_context *context); 105 int (*get_info)(struct mbox_context *context, 107 int (*get_flash_info)(struct mbox_context *context, 109 int (*create_window)(struct mbox_context *context, 111 int (*mark_dirty)(struct mbox_context *context, 116 int (*ack)(struct mbox_context *context, struct protocol_ack *io); 119 int protocol_init(struct mbox_context *context); 120 void protocol_free(struct mbox_context *context); 123 int __protocol_reset(struct mbox_context *context); 126 int protocol_reset(struct mbox_context *context); [all …]
|
/openbmc/linux/arch/s390/include/asm/ |
H 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() 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_cow_sharing = 1; in init_new_context() 40 mm->context.allow_gmap_hpage_1m = 0; in init_new_context() 42 switch (mm->context.asce_limit) { in init_new_context() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | dcn32_fpu.c | 1190 !dcn32_mpo_in_use(context) && !dcn32_any_surfaces_rotated(dc, context) && in dcn32_full_validate_bw_helper() 1360 context->bw_ctx.bw.dcn.clk.dispclk_khz = context->bw_ctx.dml.vba.DISPCLK * 1000; in dcn32_calculate_dlg_params() 1361 context->bw_ctx.bw.dcn.clk.dcfclk_khz = context->bw_ctx.dml.vba.DCFCLK * 1000; in dcn32_calculate_dlg_params() 1362 context->bw_ctx.bw.dcn.clk.socclk_khz = context->bw_ctx.dml.vba.SOCCLK * 1000; in dcn32_calculate_dlg_params() 1365 context->bw_ctx.bw.dcn.clk.fclk_khz = context->bw_ctx.dml.vba.FabricClock * 1000; in dcn32_calculate_dlg_params() 1376 context->bw_ctx.bw.dcn.clk.dtbclk_en = is_dtbclk_required(dc, context); in dcn32_calculate_dlg_params() 1500 context->bw_ctx.dml.funcs.rq_dlg_get_dlg_reg_v2(&context->bw_ctx.dml, in dcn32_calculate_dlg_params() 2207 context->bw_ctx.bw.dcn.watermarks.a = context->bw_ctx.bw.dcn.watermarks.c; in dcn32_calculate_wm_and_dlg_fpu() 2239 context->bw_ctx.bw.dcn.watermarks.d = context->bw_ctx.bw.dcn.watermarks.a; in dcn32_calculate_wm_and_dlg_fpu() 2260 context->perf_params.stutter_period_us = context->bw_ctx.dml.vba.StutterPeriod; in dcn32_calculate_wm_and_dlg_fpu() [all …]
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H 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 …]
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_xattr.c | 207 if (context->count < 0 || context->seen_enough) in __xfs_xattr_put_listent() 210 if (!context->buffer) in __xfs_xattr_put_listent() 216 context->seen_enough = 1; in __xfs_xattr_put_listent() 219 offset = context->buffer + context->count; in __xfs_xattr_put_listent() 300 memset(&context, 0, sizeof(context)); in xfs_vn_listxattr() 301 context.dp = XFS_I(inode); in xfs_vn_listxattr() 302 context.resynch = 1; in xfs_vn_listxattr() 304 context.bufsize = size; in xfs_vn_listxattr() 305 context.firstu = context.bufsize; in xfs_vn_listxattr() 311 if (context.count < 0) in xfs_vn_listxattr() [all …]
|
/openbmc/linux/security/selinux/ss/ |
H 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 345 context->range.level[1].sens = context->range.level[0].sens; in mls_context_to_sid() 385 int mls_range_set(struct context *context, in mls_range_set() argument 567 struct context *context, in mls_export_netlbl_lvl() argument 589 struct context *context, in mls_import_netlbl_lvl() argument 596 context->range.level[1].sens = context->range.level[0].sens; in mls_import_netlbl_lvl() 611 struct context *context, in mls_export_netlbl_cat() argument 641 struct context *context, in mls_import_netlbl_cat() argument [all …]
|
/openbmc/phosphor-mboxd/vpnor/ |
H A D | mboxd_flash.cpp | 45 int init_flash_dev(struct mbox_context* context) in init_flash_dev() argument 75 if (context->flash_size == 0) in init_flash_dev() 79 context->flash_size = context->mtd_info.size; in init_flash_dev() 83 context->mtd_info.erasesize = 4096; in init_flash_dev() 84 context->erase_size_shift = log_2(context->mtd_info.erasesize); in init_flash_dev() 85 context->flash_bmap = NULL; in init_flash_dev() 86 context->fds[MTD_FD].fd = -1; in init_flash_dev() 126 if (!(context && context->vpnor && context->vpnor->table)) in copy_flash() 132 table = context->vpnor->table; in copy_flash() 152 vpnor::Request req(context, offset); in copy_flash() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | dcn30_fpu.c | 380 struct dc *dc, struct dc_state *context, in dcn30_fpu_calculate_wm_and_dlg() argument 395 if (context->streams[i]) in dcn30_fpu_calculate_wm_and_dlg() 406 context, pipes, pipe_cnt, vlevel); in dcn30_fpu_calculate_wm_and_dlg() 416 dcfclk = context->bw_ctx.dml.vba.DCFCLKState[vlevel][context->bw_ctx.dml.vba.maxMpcComb]; in dcn30_fpu_calculate_wm_and_dlg() 441 …context->bw_ctx.bw.dcn.watermarks.b.urgent_ns = get_wm_urgent(&context->bw_ctx.dml, pipes, pipe_cn… in dcn30_fpu_calculate_wm_and_dlg() 511 …context->bw_ctx.bw.dcn.watermarks.c.urgent_ns = get_wm_urgent(&context->bw_ctx.dml, pipes, pipe_cn… in dcn30_fpu_calculate_wm_and_dlg() 524 context->bw_ctx.bw.dcn.watermarks.a = context->bw_ctx.bw.dcn.watermarks.c; in dcn30_fpu_calculate_wm_and_dlg() 534 …context->bw_ctx.bw.dcn.watermarks.a.urgent_ns = get_wm_urgent(&context->bw_ctx.dml, pipes, pipe_cn… in dcn30_fpu_calculate_wm_and_dlg() 544 context->perf_params.stutter_period_us = context->bw_ctx.dml.vba.StutterPeriod; in dcn30_fpu_calculate_wm_and_dlg() 547 context->bw_ctx.bw.dcn.watermarks.d = context->bw_ctx.bw.dcn.watermarks.a; in dcn30_fpu_calculate_wm_and_dlg() [all …]
|
/openbmc/phosphor-mboxd/ |
H A D | mboxd_msg.h | 20 int dispatch_mbox(struct mbox_context *context); 21 int init_mbox_dev(struct mbox_context *context); 22 void free_mbox_dev(struct mbox_context *context); 25 int mbox_handle_reset(struct mbox_context *context, 27 int mbox_handle_mbox_info(struct mbox_context *context, 29 int mbox_handle_flash_info(struct mbox_context *context, 31 int mbox_handle_read_window(struct mbox_context *context, 33 int mbox_handle_close_window(struct mbox_context *context, 35 int mbox_handle_write_window(struct mbox_context *context, 37 int mbox_handle_dirty_window(struct mbox_context *context, [all …]
|
H A D | mboxd_windows.h | 13 int init_windows(struct mbox_context *context); 14 void free_windows(struct mbox_context *context); 16 int write_from_window_v1(struct mbox_context *context, 18 int write_from_window(struct mbox_context *context, uint32_t offset, 21 void alloc_window_dirty_bytemap(struct mbox_context *context); 24 void close_current_window(struct mbox_context *context, bool set_bmc_event, 27 void reset_all_windows(struct mbox_context *context, bool set_bmc_event); 28 struct window_context *find_oldest_window(struct mbox_context *context); 29 struct window_context *find_largest_window(struct mbox_context *context); 30 struct window_context *search_windows(struct mbox_context *context, [all …]
|
/openbmc/linux/arch/powerpc/mm/book3s64/ |
H 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 …]
|
/openbmc/linux/arch/sparc/mm/ |
H 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 …]
|
/openbmc/phosphor-mboxd/test/ |
H A D | mbox.c | 69 fd = context->fds[MBOX_FD].fd; in mbox_cmp() 96 fd = context->fds[MBOX_FD].fd; in mbox_rspcpy() 115 fd = context->fds[MBOX_FD].fd; in mbox_command_write() 146 rc = dispatch_mbox(context); in mbox_command_dispatch() 200 struct mbox_context context; member 231 test.context.windows.num = n_windows; in mbox_create_test_context() 245 rc = init_flash_dev(&test.context); in mbox_create_test_context() 257 rc = init_windows(&test.context); in mbox_create_test_context() 260 return rc ? NULL : &test.context; in mbox_create_test_context() 289 arg = container_of(context, struct mbox_test_context, context); in mbox_set_mtd_data() [all …]
|
/openbmc/linux/drivers/usb/image/ |
H 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 …]
|
/openbmc/linux/drivers/infiniband/hw/hns/ |
H 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 …]
|
/openbmc/hiomapd/test/ |
H A D | mbox.c | 71 fd = context->fds[MBOX_FD].fd; in mbox_cmp() 100 fd = context->fds[MBOX_FD].fd; in mbox_rspcpy() 119 fd = context->fds[MBOX_FD].fd; in mbox_command_write() 150 rc = transport_mbox_dispatch(context); in mbox_command_dispatch() 204 struct mbox_context context; member 235 test.context.windows.num = n_windows; in mbox_create_frontend_context() 238 rc = protocol_init(&test.context); in mbox_create_frontend_context() 248 test.context.transport = ops; in mbox_create_frontend_context() 271 rc = windows_init(&test.context); in mbox_create_frontend_context() 274 return rc ? NULL : &test.context; in mbox_create_frontend_context() [all …]
|