/openbmc/linux/arch/ia64/include/asm/ |
H A D | mmu_context.h | 78 nv_mm_context_t context = mm->context; in get_mmu_context() local 80 if (likely(context)) in get_mmu_context() 85 context = mm->context; in get_mmu_context() 86 if (context == 0) { in get_mmu_context() 96 mm->context = context = ia64_ctx.next++; in get_mmu_context() 107 return context; in get_mmu_context() 118 mm->context = 0; in init_new_context() 160 nv_mm_context_t context; in activate_context() local 163 context = get_mmu_context(mm); in activate_context() 166 reload_context(context); in activate_context() [all …]
|
/openbmc/phosphor-mboxd/ |
H A D | mboxctl.c | 81 rc = sd_bus_default_system(&context->bus); in init_mboxctl_dbus() 178 rc = send_dbus_msg(context, &msg, &resp); in handle_cmd_ping() 203 rc = send_dbus_msg(context, &msg, &resp); in handle_cmd_daemon_state() 410 rc = handle_cmd_ping(context); in parse_cmdline() 416 rc = handle_cmd_lpc_state(context); in parse_cmdline() 419 rc = handle_cmd_kill(context); in parse_cmdline() 423 rc = handle_cmd_reset(context); in parse_cmdline() 426 rc = handle_cmd_suspend(context); in parse_cmdline() 432 rc = handle_cmd_modified(context); in parse_cmdline() 454 struct mboxctl_context context; in main() local [all …]
|
/openbmc/hiomapd/ |
H A D | windows.h | 37 int windows_init(struct mbox_context *context); 38 void windows_free(struct mbox_context *context); 40 int window_flush_v1(struct mbox_context *context, 42 int window_flush(struct mbox_context *context, uint32_t offset, 45 void windows_alloc_dirty_bytemap(struct mbox_context *context); 48 void windows_close_current(struct mbox_context *context, uint8_t flags); 50 bool windows_reset_all(struct mbox_context *context); 51 struct window_context *windows_find_oldest(struct mbox_context *context); 52 struct window_context *windows_find_largest(struct mbox_context *context); 53 struct window_context *windows_search(struct mbox_context *context, [all …]
|
H A D | control_dbus.c | 19 struct mbox_context *context; in control_dbus_directive() local 28 context = (struct mbox_context *) userdata; in control_dbus_directive() 29 if (!context) { in control_dbus_directive() 34 rc = action(context); in control_dbus_directive() 84 struct mbox_context *context; in control_dbus_resume() local 90 if (!context) { in control_dbus_resume() 101 rc = control_resume(context, modified); in control_dbus_resume() 117 struct mbox_context *context; in control_dbus_set_backend() local 124 if (!context) { in control_dbus_set_backend() 215 value = control_lpc_state(context); in control_dbus_get_u8() [all …]
|
/openbmc/linux/fs/ocfs2/ |
H A D | move_extents.c | 110 &context->dealloc); in __ocfs2_move_extent() 126 len, context->meta_ac, in __ocfs2_move_extent() 127 &context->dealloc, 1); in __ocfs2_move_extent() 233 &context->meta_ac, in ocfs2_defrag_extent() 341 if (context->data_ac) { in ocfs2_defrag_extent() 346 if (context->meta_ac) { in ocfs2_defrag_extent() 607 &context->meta_ac, in ocfs2_move_extent() 717 if (context->meta_ac) { in ocfs2_move_extent() 1000 if (!context) { in ocfs2_ioctl_move_extents() 1007 context->file = filp; in ocfs2_ioctl_move_extents() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_syncmap.c | 179 context); in check_one() 195 context, seqno); in check_one() 225 err = check_one(&sync, context, in igt_syncmap_one() 264 context, seqno); in check_leaf() 297 u64 context = BIT_ULL(order); in igt_syncmap_join_above() local 300 err = check_leaf(&sync, context, 0); in igt_syncmap_join_above() 346 u64 context = step * BIT_ULL(order); in igt_syncmap_join_below() local 367 context, order, step); in igt_syncmap_join_below() 389 context, order, step); in igt_syncmap_join_below() 434 context, idx, in igt_syncmap_neighbours() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_psp_ta.c | 201 if (ret || context->resp_status) { in ta_if_load_debugfs_write() 204 ret, context->resp_status); in ta_if_load_debugfs_write() 223 if (ret || context->resp_status) { in ta_if_load_debugfs_write() 225 ret, context->resp_status); in ta_if_load_debugfs_write() 269 context->session_id = ta_id; in ta_if_unload_debugfs_write() 277 if (ret || context->resp_status) { in ta_if_unload_debugfs_write() 279 ret, context->resp_status); in ta_if_unload_debugfs_write() 337 if (!context->initialized) { in ta_if_invoke_debugfs_write() 349 context->session_id = ta_id; in ta_if_invoke_debugfs_write() 356 if (ret || context->resp_status) { in ta_if_invoke_debugfs_write() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
H A D | dcn31_fpu.c | 471 …if (context->bw_ctx.dml.vba.DRAMClockChangeSupport[context->bw_ctx.dml.vba.VoltageLevel][context->… in dcn315_update_soc_for_wm_a() 472 …context->bw_ctx.dml.soc.dram_clock_change_latency_us = context->bw_ctx.dml.soc.dummy_pstate_latenc… in dcn315_update_soc_for_wm_a() 477 context->bw_ctx.dml.soc.sr_exit_time_us = in dcn315_update_soc_for_wm_a() 483 struct dc *dc, struct dc_state *context, in dcn31_calculate_wm_and_dlg_fp() argument 489 double dcfclk = context->bw_ctx.dml.vba.DCFCLKState[vlevel][context->bw_ctx.dml.vba.maxMpcComb]; in dcn31_calculate_wm_and_dlg_fp() 515 …context->bw_ctx.bw.dcn.watermarks.a.urgent_ns = get_wm_urgent(&context->bw_ctx.dml, pipes, pipe_cn… in dcn31_calculate_wm_and_dlg_fp() 525 context->bw_ctx.bw.dcn.watermarks.b = context->bw_ctx.bw.dcn.watermarks.a; in dcn31_calculate_wm_and_dlg_fp() 526 context->bw_ctx.bw.dcn.watermarks.c = context->bw_ctx.bw.dcn.watermarks.a; in dcn31_calculate_wm_and_dlg_fp() 527 context->bw_ctx.bw.dcn.watermarks.d = context->bw_ctx.bw.dcn.watermarks.a; in dcn31_calculate_wm_and_dlg_fp() 562 context->bw_ctx.bw.dcn.clk.fclk_khz = 0; in dcn31_calculate_wm_and_dlg_fp() [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | mmu_context.h | 57 mm->context.ldt = NULL; in init_new_context_ldt() 58 init_rwsem(&mm->context.ldt_usr_sem); in init_new_context_ldt() 91 return mm->context.lam_cr3_mask; in mm_lam_cr3_mask() 96 mm->context.lam_cr3_mask = oldmm->context.lam_cr3_mask; in dup_lam() 97 mm->context.untag_mask = oldmm->context.untag_mask; in dup_lam() 103 return mm->context.untag_mask; in mm_untag_mask() 108 mm->context.untag_mask = -1UL; in mm_reset_untag_mask() 144 mutex_init(&mm->context.lock); in init_new_context() 154 mm->context.execute_only_pkey = -1; in init_new_context() 203 mm->context.pkey_allocation_map = oldmm->context.pkey_allocation_map; in arch_dup_pkeys() [all …]
|
/openbmc/linux/drivers/base/regmap/ |
H A D | regmap-fsi.c | 15 static int regmap_fsi32_reg_read(void *context, unsigned int reg, unsigned int *val) in regmap_fsi32_reg_read() argument 20 ret = fsi_slave_read(context, reg, &v, sizeof(v)); in regmap_fsi32_reg_read() 32 return fsi_slave_write(context, reg, &v, sizeof(v)); in regmap_fsi32_reg_write() 45 ret = fsi_slave_read(context, reg, &v, sizeof(v)); in regmap_fsi32le_reg_read() 57 return fsi_slave_write(context, reg, &v, sizeof(v)); in regmap_fsi32le_reg_write() 70 ret = fsi_slave_read(context, reg, &v, sizeof(v)); in regmap_fsi16_reg_read() 86 return fsi_slave_write(context, reg, &v, sizeof(v)); in regmap_fsi16_reg_write() 99 ret = fsi_slave_read(context, reg, &v, sizeof(v)); in regmap_fsi16le_reg_read() 115 return fsi_slave_write(context, reg, &v, sizeof(v)); in regmap_fsi16le_reg_write() 128 ret = fsi_slave_read(context, reg, &v, sizeof(v)); in regmap_fsi8_reg_read() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_resource_helpers.c | 109 struct dc_state *context) in dcn32_helper_calculate_num_ways_for_subvp() argument 123 struct dc_state *context) in dcn32_merge_pipes_for_subvp() argument 169 struct dc_state *context) in dcn32_all_pipes_have_stream_and_plane() argument 186 struct dc_state *context) in dcn32_subvp_in_use() argument 283 struct dc_state *context, in dcn32_determine_det_override() argument 311 if (context->res_ctx.pipe_ctx[j].stream == context->streams[i] && in dcn32_determine_det_override() 321 if (k != j && context->res_ctx.pipe_ctx[k].stream == context->streams[i] && in dcn32_determine_det_override() 330 if (k != j && context->res_ctx.pipe_ctx[k].stream == context->streams[i] && in dcn32_determine_det_override() 408 struct dc_state *context, in dcn32_save_mall_state() argument 436 struct dc_state *context, in dcn32_restore_mall_state() argument [all …]
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | acpiphp_glue.c | 63 context = kzalloc(sizeof(*context), GFP_KERNEL); in acpiphp_init_context() 64 if (!context) in acpiphp_init_context() 71 return context; in acpiphp_init_context() 89 return context; in acpiphp_get_context() 107 kfree(context); in acpiphp_put_context() 127 if (!context) in acpiphp_grab_context() 141 return context; in acpiphp_grab_context() 167 context = bridge->context; in free_bridge() 169 if (context) { in free_bridge() 195 if (!context) in acpiphp_post_dock_fixup() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
H A D | dce110_clk_mgr.c | 97 for (j = 0; j < context->stream_count; j++) { in dce110_get_min_vblank_time_us() 120 const struct dc_state *context, in dce110_fill_display_configs() argument 126 for (j = 0; j < context->stream_count; j++) { in dce110_fill_display_configs() 136 pipe_ctx = &context->res_ctx.pipe_ctx[k]; in dce110_fill_display_configs() 174 struct dc_state *context) in dce11_pplib_apply_display_requirements() argument 183 context->bw_ctx.bw.dce.all_displays_in_sync; in dce11_pplib_apply_display_requirements() 211 context->bw_ctx.bw.dce.sclk_khz); in dce11_pplib_apply_display_requirements() 224 = context->bw_ctx.bw.dce.sclk_deep_sleep_khz; in dce11_pplib_apply_display_requirements() 227 dce110_get_min_vblank_time_us(context); in dce11_pplib_apply_display_requirements() 238 &context->streams[0]->timing; in dce11_pplib_apply_display_requirements() [all …]
|
/openbmc/linux/arch/parisc/include/asm/ |
H A D | mmu_context.h | 23 mm->context.space_id = alloc_sid(); in init_new_context() 31 free_sid(mm->context.space_id); in destroy_context() 32 mm->context.space_id = 0; in destroy_context() 38 return context.space_id << 1; in __space_to_prot() 40 return context.space_id >> (SPACEID_SHIFT - 1); in __space_to_prot() 44 static inline void load_context(mm_context_t context) in load_context() argument 46 mtsp(context.space_id, SR_USER); in load_context() 47 mtctl(__space_to_prot(context), 8); in load_context() 61 load_context(next->context); in switch_mm_irqs_off() 92 if (next->context.space_id == 0) in activate_mm() [all …]
|
/openbmc/linux/crypto/ |
H A D | rsa_helper.c | 16 int rsa_get_n(void *context, size_t hdrlen, unsigned char tag, in rsa_get_n() argument 19 struct rsa_key *key = context; in rsa_get_n() 46 int rsa_get_e(void *context, size_t hdrlen, unsigned char tag, in rsa_get_e() argument 49 struct rsa_key *key = context; in rsa_get_e() 61 int rsa_get_d(void *context, size_t hdrlen, unsigned char tag, in rsa_get_d() argument 64 struct rsa_key *key = context; in rsa_get_d() 79 struct rsa_key *key = context; in rsa_get_p() 94 struct rsa_key *key = context; in rsa_get_q() 109 struct rsa_key *key = context; in rsa_get_dp() 124 struct rsa_key *key = context; in rsa_get_dq() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | dcn20_fpu.c | 1135 struct dc_state *context, in dcn20_calculate_dlg_params() argument 1147 context->bw_ctx.bw.dcn.clk.dispclk_khz = context->bw_ctx.dml.vba.DISPCLK * 1000; in dcn20_calculate_dlg_params() 1148 context->bw_ctx.bw.dcn.clk.dcfclk_khz = context->bw_ctx.dml.vba.DCFCLK * 1000; in dcn20_calculate_dlg_params() 1149 context->bw_ctx.bw.dcn.clk.socclk_khz = context->bw_ctx.dml.vba.SOCCLK * 1000; in dcn20_calculate_dlg_params() 1156 context->bw_ctx.bw.dcn.clk.fclk_khz = context->bw_ctx.dml.vba.FabricClock * 1000; in dcn20_calculate_dlg_params() 1168 context->bw_ctx.bw.dcn.clk.dtbclk_en = is_dtbclk_required(dc, context); in dcn20_calculate_dlg_params() 1210 context->bw_ctx.bw.dcn.clk.bw_dppclk_khz = context->bw_ctx.bw.dcn.clk.dppclk_khz; in dcn20_calculate_dlg_params() 1211 context->bw_ctx.bw.dcn.clk.bw_dispclk_khz = context->bw_ctx.bw.dcn.clk.dispclk_khz; in dcn20_calculate_dlg_params() 1228 context->bw_ctx.dml.funcs.rq_dlg_get_dlg_reg(&context->bw_ctx.dml, in dcn20_calculate_dlg_params() 1238 context->bw_ctx.dml.funcs.rq_dlg_get_rq_reg(&context->bw_ctx.dml, in dcn20_calculate_dlg_params() [all …]
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | mmu_context.h | 32 if (mm->context != NO_CONTEXT) in get_mmu_context() 45 mm->context = ctx; in get_mmu_context() 60 if (mm->context != NO_CONTEXT) { in destroy_context() 61 clear_bit(mm->context, context_map); in destroy_context() 62 mm->context = NO_CONTEXT; in destroy_context() 88 set_context(mm->context, mm->pgd); in activate_mm() 146 asid = mm->context & 0xff; in load_ksp_mmu() 181 mm->context = SUN3_INVALID_CONTEXT; in init_new_context() 190 mm->context = get_free_context(mm); in get_mmu_context() 198 clear_context(mm->context); in destroy_context() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | megasas-test.c | 53 uint32_t context[256]; in megasas_pd_get_info_fuzz() local 60 memset(context, 0, sizeof(context)); in megasas_pd_get_info_fuzz() 61 context[0] = cpu_to_le32(0x05050505); in megasas_pd_get_info_fuzz() 62 context[1] = cpu_to_le32(0x01010101); in megasas_pd_get_info_fuzz() 63 for (i = 2; i < ARRAY_SIZE(context); i++) { in megasas_pd_get_info_fuzz() 64 context[i] = cpu_to_le32(0x41414141); in megasas_pd_get_info_fuzz() 66 context[6] = cpu_to_le32(0x02020000); in megasas_pd_get_info_fuzz() 67 context[7] = cpu_to_le32(0); in megasas_pd_get_info_fuzz() 69 context_pa = guest_alloc(alloc, sizeof(context)); in megasas_pd_get_info_fuzz() 70 qtest_memwrite(dev->bus->qts, context_pa, context, sizeof(context)); in megasas_pd_get_info_fuzz()
|
/openbmc/sdbusplus/src/async/ |
H A D | context.cpp | 10 context::context(bus_t&& b) : bus(std::move(b)) in context() function in sdbusplus::async::context 41 static auto loop(context& ctx) -> task<>; 42 static void wait_once(context& ctx); 53 wait_process_operation(context& ctx, R r) : in wait_process_operation() 118 context::~context() noexcept(false) in ~context() 127 void context::run() in run() 149 void context::worker_run() in worker_run() 158 void context::spawn_complete() in spawn_complete() 174 void context::check_stop_requested() in check_stop_requested() 183 void context::spawn_watcher() in spawn_watcher() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_lock.c | 60 unsigned int context) in drm_lock_take() argument 71 new = context | _DRM_LOCK_HELD | in drm_lock_take() 81 if (context != DRM_KERNEL_CONTEXT) { in drm_lock_take() 83 context); in drm_lock_take() 109 unsigned int context) in drm_lock_transfer() argument 117 new = context | _DRM_LOCK_HELD; in drm_lock_transfer() 124 unsigned int context) in drm_legacy_lock_free() argument 184 lock->context, task_pid_nr(current), in drm_legacy_lock() 222 DRM_DEBUG("%d %s\n", lock->context, in drm_legacy_lock() 230 dev->sigdata.context = lock->context; in drm_legacy_lock() [all …]
|
/openbmc/linux/drivers/media/usb/as102/ |
H A D | as10x_cmd_cfg.c | 34 sizeof(pcmd->body.context.req)); in as10x_cmd_get_context() 38 pcmd->body.context.req.tag = cpu_to_le16(tag); in as10x_cmd_get_context() 39 pcmd->body.context.req.type = cpu_to_le16(GET_CONTEXT_DATA); in as10x_cmd_get_context() 45 sizeof(pcmd->body.context.req) in as10x_cmd_get_context() 48 sizeof(prsp->body.context.rsp) in as10x_cmd_get_context() 90 sizeof(pcmd->body.context.req)); in as10x_cmd_set_context() 96 pcmd->body.context.req.tag = cpu_to_le16(tag); in as10x_cmd_set_context() 97 pcmd->body.context.req.type = cpu_to_le16(SET_CONTEXT_DATA); in as10x_cmd_set_context() 103 sizeof(pcmd->body.context.req) in as10x_cmd_set_context() 106 sizeof(prsp->body.context.rsp) in as10x_cmd_set_context() [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/src/ |
H A D | power_interface.cpp | 46 if (msg != nullptr && context != nullptr) in callbackGetPgood() 50 auto pwrObj = static_cast<PowerInterface*>(context); in callbackGetPgood() 79 if (msg != nullptr && context != nullptr) in callbackGetPgoodTimeout() 83 auto pwrObj = static_cast<PowerInterface*>(context); in callbackGetPgoodTimeout() 109 if (msg != nullptr && context != nullptr) in callbackGetPowerState() 113 auto pwrObj = static_cast<PowerInterface*>(context); in callbackGetPowerState() 146 if (msg != nullptr && context != nullptr) in callbackSetPgoodTimeout() 182 if (msg != nullptr && context != nullptr) in callbackGetState() 211 if (msg != nullptr && context != nullptr) in callbackSetPowerState() 250 void* context, in callbackSetPowerSupplyError() argument [all …]
|
/openbmc/linux/security/selinux/ss/ |
H A D | context.h | 27 struct context { struct 36 static inline void mls_context_init(struct context *c) in mls_context_init() 41 static inline int mls_context_cpy(struct context *dst, const struct context *src) in mls_context_cpy() 61 static inline int mls_context_cpy_low(struct context *dst, const struct context *src) in mls_context_cpy_low() 81 static inline int mls_context_cpy_high(struct context *dst, const struct context *src) in mls_context_cpy_high() 100 const struct context *c1, const struct context *c2) in mls_context_glblub() 131 static inline int mls_context_cmp(const struct context *c1, const struct context *c2) in mls_context_cmp() 146 static inline void context_init(struct context *c) in context_init() 151 static inline int context_cpy(struct context *dst, const struct context *src) in context_cpy() 186 static inline int context_cmp(const struct context *c1, const struct context *c2) in context_cmp() [all …]
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | tlbflush.h | 55 atomic_inc(&mm->context.flush_count); in __tlb_flush_mm() 57 cpumask_copy(mm_cpumask(mm), &mm->context.cpu_attach_mask); in __tlb_flush_mm() 59 gmap_asce = READ_ONCE(mm->context.gmap_asce); in __tlb_flush_mm() 63 __tlb_flush_idte(mm->context.asce); in __tlb_flush_mm() 68 atomic_dec(&mm->context.flush_count); in __tlb_flush_mm() 75 __tlb_flush_idte(init_mm.context.asce); in __tlb_flush_kernel() 82 spin_lock(&mm->context.lock); in __tlb_flush_mm_lazy() 83 if (mm->context.flush_mm) { in __tlb_flush_mm_lazy() 84 mm->context.flush_mm = 0; in __tlb_flush_mm_lazy() 87 spin_unlock(&mm->context.lock); in __tlb_flush_mm_lazy()
|
/openbmc/phosphor-mboxd/test/ |
H A D | erase_flash.c | 99 struct mbox_context context; in main() local 112 init_flash_dev(&context); in main() 115 rc = erase_flash(&context, 0, sizeof(data)); in main() 127 rc = erase_flash(&context, 0, sizeof(data)); in main() 137 rc = erase_flash(&context, 0, sizeof(data)); in main() 151 rc = erase_flash(&context, 0, sizeof(data)); in main() 165 rc = erase_flash(&context, 0, sizeof(data)); in main() 177 rc = write_flash(&context, 0, data, 1); in main() 178 rc = write_flash(&context, 2, data, 1); in main() 194 rc = write_flash(&context, 1, data, 1); in main() [all …]
|