Home
last modified time | relevance | path

Searched full:context (Results 1 – 25 of 3417) sorted by relevance

12345678910>>...137

/linux/drivers/misc/vmw_vmci/
H A Dvmci_context.c30 * These, along with context lookup, are protected by the
35 spinlock_t lock; /* Spinlock for context list operations */
44 static void ctx_signal_notify(struct vmci_ctx *context) in ctx_signal_notify() argument
46 *context->notify = true; in ctx_signal_notify()
49 static void ctx_clear_notify(struct vmci_ctx *context) in ctx_clear_notify() argument
51 *context->notify = false; in ctx_clear_notify()
58 static void ctx_clear_notify_call(struct vmci_ctx *context) in ctx_clear_notify_call() argument
60 if (context->pending_datagrams == 0 && in ctx_clear_notify_call()
61 vmci_handle_arr_get_size(context->pending_doorbell_array) == 0) in ctx_clear_notify_call()
62 ctx_clear_notify(context); in ctx_clear_notify_call()
[all …]
H A Dvmci_route.c18 * devices. Will set the source context if it is invalid.
41 /* Must have a valid destination context. */ in vmci_route()
42 if (VMCI_INVALID_ID == dst->context) in vmci_route()
46 if (VMCI_HYPERVISOR_CONTEXT_ID == dst->context) { in vmci_route()
63 /* And we cannot send if the source is the host context. */ in vmci_route()
64 if (VMCI_HOST_CONTEXT_ID == src->context) in vmci_route()
69 * respect it (both context and resource are invalid). in vmci_route()
70 * However, if they passed only an invalid context, in vmci_route()
72 * should set the real context here before passing it in vmci_route()
75 if (VMCI_INVALID_ID == src->context && in vmci_route()
[all …]
/linux/tools/tracing/rtla/src/
H A Dosnoise.c30 char *osnoise_get_cpus(struct osnoise_context *context) in osnoise_get_cpus()
32 if (context->curr_cpus) in osnoise_get_cpus()
33 return context->curr_cpus; in osnoise_get_cpus()
35 if (context->orig_cpus) in osnoise_get_cpus()
36 return context->orig_cpus; in osnoise_get_cpus()
38 context->orig_cpus = tracefs_instance_file_read(NULL, "osnoise/cpus", NULL); in osnoise_get_cpus()
44 return context->orig_cpus;
54 int osnoise_set_cpus(struct osnoise_context *context, char *cpus) in osnoise_set_cpus()
56 char *orig_cpus = osnoise_get_cpus(context); in osnoise_set_cpus()
63 context in osnoise_set_cpus()
28 osnoise_get_cpus(struct osnoise_context * context) osnoise_get_cpus() argument
52 osnoise_set_cpus(struct osnoise_context * context,char * cpus) osnoise_set_cpus() argument
86 osnoise_restore_cpus(struct osnoise_context * context) osnoise_restore_cpus() argument
114 osnoise_put_cpus(struct osnoise_context * context) osnoise_put_cpus() argument
172 osnoise_get_runtime(struct osnoise_context * context) osnoise_get_runtime() argument
198 osnoise_get_period(struct osnoise_context * context) osnoise_get_period() argument
219 __osnoise_write_runtime(struct osnoise_context * context,unsigned long long runtime) __osnoise_write_runtime() argument
235 __osnoise_write_period(struct osnoise_context * context,unsigned long long period) __osnoise_write_period() argument
258 osnoise_set_runtime_period(struct osnoise_context * context,unsigned long long runtime,unsigned long long period) osnoise_set_runtime_period() argument
308 osnoise_restore_runtime_period(struct osnoise_context * context) osnoise_restore_runtime_period() argument
334 osnoise_put_runtime_period(struct osnoise_context * context) osnoise_put_runtime_period() argument
349 osnoise_get_timerlat_period_us(struct osnoise_context * context) osnoise_get_timerlat_period_us() argument
373 osnoise_set_timerlat_period_us(struct osnoise_context * context,long long timerlat_period_us) osnoise_set_timerlat_period_us() argument
393 osnoise_restore_timerlat_period_us(struct osnoise_context * context) osnoise_restore_timerlat_period_us() argument
414 osnoise_put_timerlat_period_us(struct osnoise_context * context) osnoise_put_timerlat_period_us() argument
428 osnoise_get_stop_us(struct osnoise_context * context) osnoise_get_stop_us() argument
452 osnoise_set_stop_us(struct osnoise_context * context,long long stop_us) osnoise_set_stop_us() argument
472 osnoise_restore_stop_us(struct osnoise_context * context) osnoise_restore_stop_us() argument
493 osnoise_put_stop_us(struct osnoise_context * context) osnoise_put_stop_us() argument
507 osnoise_get_stop_total_us(struct osnoise_context * context) osnoise_get_stop_total_us() argument
531 osnoise_set_stop_total_us(struct osnoise_context * context,long long stop_total_us) osnoise_set_stop_total_us() argument
551 osnoise_restore_stop_total_us(struct osnoise_context * context) osnoise_restore_stop_total_us() argument
573 osnoise_put_stop_total_us(struct osnoise_context * context) osnoise_put_stop_total_us() argument
587 osnoise_get_print_stack(struct osnoise_context * context) osnoise_get_print_stack() argument
611 osnoise_set_print_stack(struct osnoise_context * context,long long print_stack) osnoise_set_print_stack() argument
631 osnoise_restore_print_stack(struct osnoise_context * context) osnoise_restore_print_stack() argument
652 osnoise_put_print_stack(struct osnoise_context * context) osnoise_put_print_stack() argument
666 osnoise_get_tracing_thresh(struct osnoise_context * context) osnoise_get_tracing_thresh() argument
690 osnoise_set_tracing_thresh(struct osnoise_context * context,long long tracing_thresh) osnoise_set_tracing_thresh() argument
710 osnoise_restore_tracing_thresh(struct osnoise_context * context) osnoise_restore_tracing_thresh() argument
731 osnoise_put_tracing_thresh(struct osnoise_context * context) osnoise_put_tracing_thresh() argument
787 osnoise_get_irq_disable(struct osnoise_context * context) osnoise_get_irq_disable() argument
800 osnoise_set_irq_disable(struct osnoise_context * context,bool onoff) osnoise_set_irq_disable() argument
820 osnoise_restore_irq_disable(struct osnoise_context * context) osnoise_restore_irq_disable() argument
838 osnoise_put_irq_disable(struct osnoise_context * context) osnoise_put_irq_disable() argument
848 osnoise_get_workload(struct osnoise_context * context) osnoise_get_workload() argument
861 osnoise_set_workload(struct osnoise_context * context,bool onoff) osnoise_set_workload() argument
881 osnoise_restore_workload(struct osnoise_context * context) osnoise_restore_workload() argument
899 osnoise_put_workload(struct osnoise_context * context) osnoise_put_workload() argument
917 osnoise_get_context(struct osnoise_context * context) osnoise_get_context() argument
939 struct osnoise_context *context; osnoise_context_alloc() local
974 osnoise_put_context(struct osnoise_context * context) osnoise_put_context() argument
[all...]
/linux/drivers/accel/qaic/
H A Dsahara.c225 static bool is_streaming(struct sahara_context *context) in is_streaming() argument
227 return !context->non_streaming; in is_streaming()
230 static int sahara_find_image(struct sahara_context *context, u32 image_id) in sahara_find_image() argument
234 if (image_id == context->active_image_id) in sahara_find_image()
237 if (context->active_image_id != SAHARA_IMAGE_ID_NONE) { in sahara_find_image()
238 dev_err(&context->mhi_dev->dev, "image id %d is not valid as %d is active\n", in sahara_find_image()
239 image_id, context->active_image_id); in sahara_find_image()
243 if (image_id >= context->table_size || !context->image_table[image_id]) { in sahara_find_image()
244 dev_err(&context->mhi_dev->dev, "request for unknown image: %d\n", image_id); in sahara_find_image()
253 ret = firmware_request_nowarn(&context->firmware, in sahara_find_image()
[all …]
/linux/drivers/gpu/drm/etnaviv/
H A Detnaviv_mmu.c18 static void etnaviv_context_unmap(struct etnaviv_iommu_context *context, in etnaviv_context_unmap() argument
25 unmapped_page = context->global->ops->unmap(context, iova, in etnaviv_context_unmap()
35 static int etnaviv_context_map(struct etnaviv_iommu_context *context, in etnaviv_context_map() argument
45 ret = context->global->ops->map(context, iova, paddr, pgsize, in etnaviv_context_map()
57 etnaviv_context_unmap(context, orig_iova, orig_size - size); in etnaviv_context_map()
62 static int etnaviv_iommu_map(struct etnaviv_iommu_context *context, in etnaviv_iommu_map() argument
71 if (!context || !sgt) in etnaviv_iommu_map()
82 dev_err(context->global->dev, in etnaviv_iommu_map()
89 ret = etnaviv_context_map(context, da, pa, bytes, prot); in etnaviv_iommu_map()
97 context->flush_seq++; in etnaviv_iommu_map()
[all …]
H A Detnaviv_iommu.c28 to_v1_context(struct etnaviv_iommu_context *context) in to_v1_context() argument
30 return container_of(context, struct etnaviv_iommuv1_context, base); in to_v1_context()
33 static void etnaviv_iommuv1_free(struct etnaviv_iommu_context *context) in etnaviv_iommuv1_free() argument
35 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_free()
37 drm_mm_takedown(&context->mm); in etnaviv_iommuv1_free()
39 dma_free_wc(context->global->dev, PT_SIZE, v1_context->pgtable_cpu, in etnaviv_iommuv1_free()
42 context->global->v1.shared_context = NULL; in etnaviv_iommuv1_free()
47 static int etnaviv_iommuv1_map(struct etnaviv_iommu_context *context, in etnaviv_iommuv1_map() argument
51 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_map()
62 static size_t etnaviv_iommuv1_unmap(struct etnaviv_iommu_context *context, in etnaviv_iommuv1_unmap() argument
[all …]
H A Detnaviv_iommu_v2.c42 to_v2_context(struct etnaviv_iommu_context *context) in to_v2_context() argument
44 return container_of(context, struct etnaviv_iommuv2_context, base); in to_v2_context()
47 static void etnaviv_iommuv2_free(struct etnaviv_iommu_context *context) in etnaviv_iommuv2_free() argument
49 struct etnaviv_iommuv2_context *v2_context = to_v2_context(context); in etnaviv_iommuv2_free()
52 drm_mm_takedown(&context->mm); in etnaviv_iommuv2_free()
56 dma_free_wc(context->global->dev, SZ_4K, in etnaviv_iommuv2_free()
61 dma_free_wc(context->global->dev, SZ_4K, v2_context->mtlb_cpu, in etnaviv_iommuv2_free()
64 clear_bit(v2_context->id, context->global->v2.pta_alloc); in etnaviv_iommuv2_free()
92 static int etnaviv_iommuv2_map(struct etnaviv_iommu_context *context, in etnaviv_iommuv2_map() argument
96 struct etnaviv_iommuv2_context *v2_context = to_v2_context(context); in etnaviv_iommuv2_map()
[all …]
/linux/include/crypto/
H A Dsha2.h123 * Context structure, shared by SHA-224 and SHA-256. The sha224_ctx and
135 * HMAC key and message context structs, shared by HMAC-SHA224 and HMAC-SHA256.
151 * struct sha224_ctx - Context for hashing a message with SHA-224
159 * sha224_init() - Initialize a SHA-224 context for a new message
160 * @ctx: the context to initialize
164 * Context: Any context.
169 * sha224_update() - Update a SHA-224 context with message data
170 * @ctx: the context to update; must have been initialized
176 * Context: Any context.
186 * @ctx: the context to finalize; must have been initialized
[all …]
H A Dsha3.h58 /* Internal context, shared by the digests (SHA3-*) and the XOFs (SHAKE*) */
70 * struct sha3_ctx - Context for SHA3-224, SHA3-256, SHA3-384, or SHA3-512
78 * sha3_zeroize_ctx() - Zeroize a SHA-3 context
79 * @ctx: The context to zeroize
82 * a context without calling sha3_final().
90 * struct shake_ctx - Context for SHAKE128 or SHAKE256
98 * shake_zeroize_ctx() - Zeroize a SHAKE context
99 * @ctx: The context to zeroize
109 * sha3_224_init() - Initialize a context for SHA3-224
110 * @ctx: The context to initialize
[all …]
H A Dmd5.h37 * struct md5_ctx - Context for hashing a message with MD5
49 * md5_init() - Initialize an MD5 context for a new message
50 * @ctx: the context to initialize
54 * Context: Any context.
59 * md5_update() - Update an MD5 context with message data
60 * @ctx: the context to update; must have been initialized
66 * Context: Any context.
72 * @ctx: the context to finalize; must have been initialized
77 * Context: Any context.
87 * Context: Any context.
[all …]
/linux/security/selinux/ss/
H A Dmls.h23 #include "context.h"
27 int mls_compute_context_len(struct policydb *p, struct context *context);
28 void mls_sid_to_context(struct policydb *p, struct context *context,
30 bool mls_context_isvalid(const struct policydb *p, const struct context *c);
35 struct context *context, struct sidtab *s, u32 def_sid);
37 int mls_from_string(struct policydb *p, char *str, struct context *context,
63 mls_export_netlbl_lvl(struct policydb * p,struct context * context,struct netlbl_lsm_secattr * secattr) mls_export_netlbl_lvl() argument
69 mls_import_netlbl_lvl(struct policydb * p,struct context * context,struct netlbl_lsm_secattr * secattr) mls_import_netlbl_lvl() argument
75 mls_export_netlbl_cat(struct policydb * p,struct context * context,struct netlbl_lsm_secattr * secattr) mls_export_netlbl_cat() argument
81 mls_import_netlbl_cat(struct policydb * p,struct context * context,struct netlbl_lsm_secattr * secattr) mls_import_netlbl_cat() argument
[all...]
H A Dmls.c30 * security context string representation of `context'.
32 int mls_compute_context_len(struct policydb *p, struct context *context) in mls_compute_context_len() argument
44 u32 index_sens = context->range.level[l].sens; in mls_compute_context_len()
50 e = &context->range.level[l].cat; in mls_compute_context_len()
70 if (mls_level_eq(&context->range.level[0], in mls_compute_context_len()
71 &context->range.level[1])) in mls_compute_context_len()
82 * Write the security context string representation of
83 * the MLS fields of `context' into the string `*scontext'.
86 void mls_sid_to_context(struct policydb *p, struct context *context, in mls_sid_to_context() argument
105 context->range.level[l].sens - 1)); in mls_sid_to_context()
[all …]
/linux/drivers/gpu/drm/tegra/
H A Duapi.c31 static void tegra_drm_channel_context_close(struct tegra_drm_context *context) in tegra_drm_channel_context_close() argument
36 if (context->memory_context) in tegra_drm_channel_context_close()
37 host1x_memory_context_put(context->memory_context); in tegra_drm_channel_context_close()
39 xa_for_each(&context->mappings, id, mapping) in tegra_drm_channel_context_close()
42 xa_destroy(&context->mappings); in tegra_drm_channel_context_close()
44 host1x_channel_put(context->channel); in tegra_drm_channel_context_close()
46 kfree(context); in tegra_drm_channel_context_close()
51 struct tegra_drm_context *context; in tegra_drm_uapi_close_file() local
55 xa_for_each(&file->contexts, id, context) in tegra_drm_uapi_close_file()
56 tegra_drm_channel_context_close(context); in tegra_drm_uapi_close_file()
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_nvmetcp_fw_funcs.c129 init_nvmetcp_task_params(struct e5_nvmetcp_task_context *context, in init_nvmetcp_task_params() argument
133 context->ystorm_st_context.state.cccid = task_params->host_cccid; in init_nvmetcp_task_params()
134 SET_FIELD(context->ustorm_st_context.error_flags, USTORM_NVMETCP_TASK_ST_CTX_NVME_TCP, 1); in init_nvmetcp_task_params()
135 context->ustorm_st_context.nvme_tcp_opaque_lo = cpu_to_le32(task_params->opq.lo); in init_nvmetcp_task_params()
136 context->ustorm_st_context.nvme_tcp_opaque_hi = cpu_to_le32(task_params->opq.hi); in init_nvmetcp_task_params()
145 struct e5_nvmetcp_task_context *context = task_params->context; in init_default_nvmetcp_task() local
146 const u8 val_byte = context->mstorm_ag_context.cdu_validation; in init_default_nvmetcp_task()
149 memset(context, 0, sizeof(*context)); in init_default_nvmetcp_task()
150 init_nvmetcp_task_params(context, task_params, in init_default_nvmetcp_task()
159 context->ystorm_st_context.pdu_hdr.task_hdr.reg[dw_index] = in init_default_nvmetcp_task()
[all …]
/linux/drivers/platform/x86/intel/int1092/
H A Dintel_sar.c33 * @context: pointer to driver context structure
36 * context->reg_value will never exceed MAX_REGULATORY
38 static void update_sar_data(struct wwan_sar_context *context) in update_sar_data() argument
41 &context->config_data[context->reg_value]; in update_sar_data()
44 context->sar_data.device_mode < config->total_dev_mode) { in update_sar_data()
48 if (context->sar_data.device_mode == in update_sar_data()
53 context->sar_data.antennatable_index = dev_mode->antennatable_index; in update_sar_data()
54 context->sar_data.bandtable_index = dev_mode->bandtable_index; in update_sar_data()
55 context->sar_data.sartable_index = dev_mode->sartable_index; in update_sar_data()
64 * @context: pointer to driver context structure
[all …]
/linux/tools/testing/selftests/drivers/net/hw/
H A Drss_ctx.py27 def _rss_key_check(cfg, data=None, context=0): argument
29 data = get_rss(cfg, context=context)
36 def get_rss(cfg, context=0): argument
37 return ethtool(f"-x {cfg.ifname} context {context}", json=True)[0]
52 # Output will be something like: "New RSS context is 1" or
67 # There's no good API to get the context count, so the tests
94 # used for queues of the main context, since some background
114 """Check that ntuple rule references RSS context ID"""
116 pattern = f"RSS Context (ID: )?{ctx_id}"
117 ksft_true(re.search(pattern, text), "RSS context not referenced in ntuple rule")
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/
H A Ddml21_wrapper_fpu.c51 static void dml21_calculate_rq_and_dlg_params(const struct dc *dc, struct dc_state *context, struct… in dml21_calculate_rq_and_dlg_params() argument
64 context->bw_ctx.bw.dcn.clk.dppclk_khz = 0; in dml21_calculate_rq_and_dlg_params()
67 …memcpy(&context->bw_ctx.bw.dcn.arb_regs, &in_ctx->v21.mode_programming.programming->global_regs.ar… in dml21_calculate_rq_and_dlg_params()
70context->bw_ctx.bw.dcn.compbuf_size_kb = (int)in_ctx->v21.mode_programming.programming->global_reg… in dml21_calculate_rq_and_dlg_params()
72 context->bw_ctx.bw.dcn.mall_ss_size_bytes = 0; in dml21_calculate_rq_and_dlg_params()
73 context->bw_ctx.bw.dcn.mall_ss_psr_active_size_bytes = 0; in dml21_calculate_rq_and_dlg_params()
74 context->bw_ctx.bw.dcn.mall_subvp_size_bytes = 0; in dml21_calculate_rq_and_dlg_params()
91 …num_pipes = dml21_find_dc_pipes_for_plane(dc, context, in_ctx, dc_main_pipes, dc_phantom_pipes, dm… in dml21_calculate_rq_and_dlg_params()
98 dml21_program_dc_pipe(in_ctx, context, dc_main_pipes[dc_pipe_index], pln_prog, stream_prog); in dml21_calculate_rq_and_dlg_params()
101 dml21_program_dc_pipe(in_ctx, context, dc_phantom_pipes[dc_pipe_index], pln_prog, stream_prog); in dml21_calculate_rq_and_dlg_params()
[all …]
H A Ddml21_utils.c85 struct dc_state *context, in dml21_find_dc_pipes_for_plane() argument
109 dc_main_stream = dml_ctx->config.callbacks.get_stream_from_id(context, main_stream_id); in dml21_find_dc_pipes_for_plane()
110 dc_main_stream_status = dml_ctx->config.callbacks.get_stream_status(context, dc_main_stream); in dml21_find_dc_pipes_for_plane()
119 …num_pipes = dml_ctx->config.callbacks.get_dpp_pipes_for_plane(dc_main_plane, &context->res_ctx, dc… in dml21_find_dc_pipes_for_plane()
122 …struct pipe_ctx *otg_master_pipe = dml_ctx->config.callbacks.get_otg_master_for_stream(&context->r… in dml21_find_dc_pipes_for_plane()
124 …num_pipes = dml_ctx->config.callbacks.get_opp_heads_for_otg_master(otg_master_pipe, &context->res_… in dml21_find_dc_pipes_for_plane()
128 …dc_phantom_stream = dml_ctx->config.svp_pstate.callbacks.get_paired_subvp_stream(context, dc_main_… in dml21_find_dc_pipes_for_plane()
130 …dc_phantom_stream_status = dml_ctx->config.callbacks.get_stream_status(context, dc_phantom_stream); in dml21_find_dc_pipes_for_plane()
138 …dml_ctx->config.callbacks.get_dpp_pipes_for_plane(dc_phantom_plane, &context->res_ctx, dc_phantom_… in dml21_find_dc_pipes_for_plane()
147 struct dc_state *context, in dml21_pipe_populate_global_sync() argument
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_resources.c42 int user_prio, struct mlx4_qp_context *context) in mlx4_en_fill_qp_context() argument
47 memset(context, 0, sizeof(*context)); in mlx4_en_fill_qp_context()
48 context->flags = cpu_to_be32(7 << 16 | rss << MLX4_RSS_QPC_FLAG_OFFSET); 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()
52 context->rq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context()
54 context->sq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context()
56 context->params2 |= cpu_to_be32(MLX4_QP_BIT_FPP); in mlx4_en_fill_qp_context()
59 context->sq_size_stride = ilog2(TXBB_SIZE) - 4; in mlx4_en_fill_qp_context()
61 context->usr_page = cpu_to_be32(mlx4_to_hw_uar_index(mdev->dev, in mlx4_en_fill_qp_context()
[all …]
/linux/arch/nios2/mm/
H A Dmmu_context.c2 * MMU context handling.
19 /* The pids position and mask in context */
24 /* The versions position and mask in context */
29 /* Return the version part of a context */
32 /* Return the pid part of a context */
35 /* Value of the first context (version 1, pid 0) */
41 * Initialize MMU context management stuff.
51 * Set new context (pid), keep way
53 static void set_context(mm_context_t context) in set_context() argument
55 set_mmu_pid(CTX_PID(context)); in set_context()
[all …]
/linux/tools/perf/scripts/perl/Perf-Trace-Util/
H A DContext.c4 * contents of Context.xs. Do not edit this file, edit Context.xs instead.
12 #line 1 "Context.xs"
14 * Context.xs. XS interfaces for perf script.
28 #line 42 "Context.c"
39 Perl_croak(aTHX_ "Usage: %s(%s)", "Perf::Trace::Context::common_pc", "context"); in XS()
42 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0))); in XS() local
46 RETVAL = common_pc(context); in XS()
62 Perl_croak(aTHX_ "Usage: %s(%s)", "Perf::Trace::Context::common_flags", "context"); in XS()
65 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0))); in XS() local
69 RETVAL = common_flags(context); in XS()
[all …]
/linux/drivers/media/usb/as102/
H A Das10x_cmd_cfg.c16 * as10x_cmd_get_context - Send get context command to AS10x
18 * @tag: context tag
19 * @pvalue: pointer where to store context value read
34 sizeof(pcmd->body.context.req)); in as10x_cmd_get_context()
37 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); 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()
57 /* parse response: context command do not follow the common response */ in as10x_cmd_get_context()
[all …]
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_cmd.c93 struct hns_roce_cmd_context *context = in hns_roce_cmd_event() local
94 &hr_dev->cmd.context[token % hr_dev->cmd.max_cmds]; in hns_roce_cmd_event()
96 if (unlikely(token != context->token)) { in hns_roce_cmd_event()
98 "[cmd] invalid ae token 0x%x, context token is 0x%x.\n", in hns_roce_cmd_event()
99 token, context->token); in hns_roce_cmd_event()
103 context->result = (status == HNS_ROCE_CMD_SUCCESS) ? 0 : (-EIO); in hns_roce_cmd_event()
104 context->out_param = out_param; in hns_roce_cmd_event()
105 complete(&context->done); in hns_roce_cmd_event()
113 struct hns_roce_cmd_context *context; in __hns_roce_cmd_mbox_wait() local
120 context = &cmd->context[cmd->free_head]; in __hns_roce_cmd_mbox_wait()
[all …]
/linux/drivers/gpu/drm/i915/selftests/
H A Di915_syncmap.c163 static int check_one(struct i915_syncmap **sync, u64 context, u32 seqno) in check_one() argument
167 err = i915_syncmap_set(sync, context, seqno); in check_one()
172 pr_err("Inserting first context=%llx did not return leaf (height=%d, prefix=%llx\n", in check_one()
173 context, (*sync)->height, (*sync)->prefix); in check_one()
178 pr_err("Inserting first context=%llx created branches!\n", in check_one()
179 context); in check_one()
193 if (!i915_syncmap_is_later(sync, context, seqno)) { in check_one()
194 pr_err("Lookup of first context=%llx/seqno=%x failed!\n", in check_one()
195 context, seqno); in check_one()
217 u64 context = i915_prandom_u64_state(&prng); in igt_syncmap_one() local
[all …]
/linux/arch/powerpc/mm/nohash/
H A Dmmu_context.c15 * - The global context lock will not scale very well
18 * - Implement flush_tlb_mm() by making the context stale and picking
82 /* Steal a context from a task that has one at the moment.
87 * This isn't an LRU system, it just frees up each context in
92 * For context stealing, we use a slightly different approach for
112 if (mm->context.active) { in steal_context_smp()
119 /* Mark this mm has having no context anymore */ in steal_context_smp()
120 mm->context.id = MMU_NO_CONTEXT; in steal_context_smp()
159 /* Mark this mm as having no context anymore */ in steal_all_contexts()
160 mm->context.id = MMU_NO_CONTEXT; in steal_all_contexts()
[all …]

12345678910>>...137