Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 2177) sorted by relevance

12345678910>>...88

/linux/tools/tracing/rtla/src/
H A Dosnoise.c28 char *osnoise_get_cpus(struct osnoise_context *context) in osnoise_get_cpus() argument
30 if (context->curr_cpus) in osnoise_get_cpus()
31 return context->curr_cpus; in osnoise_get_cpus()
33 if (context->orig_cpus) in osnoise_get_cpus()
34 return context->orig_cpus; in osnoise_get_cpus()
36 context->orig_cpus = tracefs_instance_file_read(NULL, "osnoise/cpus", NULL); in osnoise_get_cpus()
42 return context->orig_cpus; in osnoise_get_cpus()
52 int osnoise_set_cpus(struct osnoise_context *context, char *cpus) in osnoise_set_cpus() argument
54 char *orig_cpus = osnoise_get_cpus(context); in osnoise_set_cpus()
61 context in osnoise_set_cpus()
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/misc/vmw_vmci/
H A Dvmci_context.c44 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()
69 void vmci_ctx_check_signal_notify(struct vmci_ctx *context) in vmci_ctx_check_signal_notify() argument
71 spin_lock(&context->lock); in vmci_ctx_check_signal_notify()
[all …]
H A Dvmci_route.c42 if (VMCI_INVALID_ID == dst->context) in vmci_route()
46 if (VMCI_HYPERVISOR_CONTEXT_ID == dst->context) { in vmci_route()
64 if (VMCI_HOST_CONTEXT_ID == src->context) in vmci_route()
75 if (VMCI_INVALID_ID == src->context && in vmci_route()
77 src->context = vmci_get_context_id(); in vmci_route()
85 if (VMCI_HOST_CONTEXT_ID == dst->context) { in vmci_route()
94 if (src->context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_route()
113 if (VMCI_INVALID_ID == src->context) in vmci_route()
114 src->context = vmci_get_context_id(); in vmci_route()
130 if (VMCI_INVALID_ID == src->context) { in vmci_route()
[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/security/selinux/ss/
H A Dmls.h27 int mls_compute_context_len(struct policydb *p, struct context *context);
28 void mls_sid_to_context(struct policydb *p, struct context *context,
30 int mls_context_isvalid(struct policydb *p, 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,
40 int mls_range_set(struct context *context, struct mls_range *range);
43 struct context *oldc, struct context *newc);
45 int mls_compute_sid(struct policydb *p, struct context *scontext,
46 struct context *tcontext, u16 tclass, u32 specified,
47 struct context *newcontext, bool sock);
[all …]
/linux/kernel/
H A Dauditsc.c28 * Subject and object context labeling support added by <danjones@us.ibm.com>
220 * it's going to remain 1-element for almost any setup) until we free context itself.
456 /* Determine if any context name data matches a rule's watch data */
816 * @ctx: audit context
850 * @ctx: audit context
916 static inline void audit_proctitle_free(struct audit_context *context) in audit_proctitle_free() argument
918 kfree(context->proctitle.value); in audit_proctitle_free()
919 context->proctitle.value = NULL; in audit_proctitle_free()
920 context->proctitle.len = 0; in audit_proctitle_free()
923 static inline void audit_free_module(struct audit_context *context) in audit_free_module() argument
930 audit_free_names(struct audit_context * context) audit_free_names() argument
947 audit_free_aux(struct audit_context * context) audit_free_aux() argument
1033 struct audit_context *context; audit_alloc_context() local
1059 struct audit_context *context; audit_alloc() local
1085 audit_free_context(struct audit_context * context) audit_free_context() argument
1095 audit_log_pid_context(struct audit_context * context,pid_t pid,kuid_t auid,kuid_t uid,unsigned int sessionid,struct lsm_prop * prop,char * comm) audit_log_pid_context() argument
1120 audit_log_execve_info(struct audit_context * context,struct audit_buffer ** ab) audit_log_execve_info() argument
1317 audit_log_time(struct audit_context * context,struct audit_buffer ** ab) audit_log_time() argument
1364 show_special(struct audit_context * context,int * call_panic) show_special() argument
1498 audit_log_name(struct audit_context * context,struct audit_names * n,const struct path * path,int record_num,int * call_panic) audit_log_name() argument
1579 struct audit_context *context = audit_context(); audit_log_proctitle() local
1655 struct audit_context *context = audit_context(); audit_log_exit() local
1804 struct audit_context *context = tsk->audit_context; __audit_free() local
1989 struct audit_context *context = audit_context(); __audit_syscall_entry() local
2037 struct audit_context *context = audit_context(); __audit_syscall_exit() local
2062 struct audit_context *context; handle_one() local
2091 struct audit_context *context; handle_path() local
2147 audit_alloc_name(struct audit_context * context,unsigned char type) audit_alloc_name() argument
2181 struct audit_context *context = audit_context(); __audit_getname() local
2248 struct audit_context *context = audit_context(); __audit_inode() local
2366 struct audit_context *context = audit_context(); __audit_inode_child() local
2489 struct audit_context *context = audit_context(); __audit_mq_open() local
2513 struct audit_context *context = audit_context(); __audit_mq_sendrecv() local
2537 struct audit_context *context = audit_context(); __audit_mq_notify() local
2556 struct audit_context *context = audit_context(); __audit_mq_getsetattr() local
2570 struct audit_context *context = audit_context(); __audit_ipc_obj() local
2591 struct audit_context *context = audit_context(); __audit_ipc_set_perm() local
2602 struct audit_context *context = audit_context(); __audit_bprm() local
2617 struct audit_context *context = audit_context(); __audit_socketcall() local
2635 struct audit_context *context = audit_context(); __audit_fd_pair() local
2650 struct audit_context *context = audit_context(); __audit_sockaddr() local
2667 struct audit_context *context = audit_context(); __audit_ptrace() local
2743 struct audit_context *context = audit_context(); __audit_log_bprm_fcaps() local
2785 struct audit_context *context = audit_context(); __audit_log_capset() local
2797 struct audit_context *context = audit_context(); __audit_mmap_fd() local
2806 struct audit_context *context = audit_context(); __audit_openat2_how() local
2816 struct audit_context *context = audit_context(); __audit_log_kern_module() local
2843 struct audit_context *context = audit_context(); __audit_tk_injoffset() local
2853 struct audit_context *context = audit_context(); __audit_ntp_log() local
[all...]
/linux/drivers/gpu/drm/tegra/
H A Dsubmit.c26 #define SUBMIT_ERR(context, fmt, ...) \ argument
27 dev_err_ratelimited(context->client->base.dev, \
146 tegra_drm_mapping_get(struct tegra_drm_context *context, u32 id) in tegra_drm_mapping_get() argument
150 xa_lock(&context->mappings); in tegra_drm_mapping_get()
152 mapping = xa_load(&context->mappings, id); in tegra_drm_mapping_get()
156 xa_unlock(&context->mappings); in tegra_drm_mapping_get()
180 struct tegra_drm_context *context, in submit_copy_gather_data() argument
187 SUBMIT_ERR(context, "gather_data_words cannot be zero"); in submit_copy_gather_data()
192 SUBMIT_ERR(context, "gather_data_words is too large"); in submit_copy_gather_data()
198 SUBMIT_ERR(context, "failed to allocate memory for bo info"); in submit_copy_gather_data()
[all …]
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/platform/x86/intel/int1092/
H A Dintel_sar.c38 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()
77 static acpi_status parse_package(struct wwan_sar_context *context, union acpi_object *item) in parse_package() argument
89 data = &context->config_data[reg]; in parse_package()
130 struct wwan_sar_context *context = dev_get_drvdata(&device->dev); in sar_get_device_mode() local
[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/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/gpu/drm/amd/display/dc/resource/dcn32/
H A Ddcn32_resource_helpers.c87 * @context: new dc state
93 struct dc_state *context) in dcn32_helper_calculate_num_ways_for_subvp()
95 if (context->bw_ctx.bw.dcn.mall_subvp_size_bytes > 0) { in dcn32_helper_calculate_num_ways_for_subvp()
99 return dc->res_pool->funcs->calculate_mall_ways_from_bytes(dc, context->bw_ctx.bw.dcn.mall_subvp_size_bytes); in dcn32_helper_calculate_num_ways_for_subvp()
109 struct dc_state *context) in dcn32_merge_pipes_for_subvp()
115 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_merge_pipes_for_subvp()
133 dcn20_release_dsc(&context->res_ctx, dc->res_pool, &pipe->stream_res.dsc); in dcn32_merge_pipes_for_subvp()
155 struct dc_state *context) in dcn32_all_pipes_have_stream_and_plane()
160 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_all_pipes_have_stream_and_plane()
172 struct dc_state *context) in dcn32_subvp_in_use()
92 dcn32_helper_calculate_num_ways_for_subvp(struct dc * dc,struct dc_state * context) dcn32_helper_calculate_num_ways_for_subvp() argument
108 dcn32_merge_pipes_for_subvp(struct dc * dc,struct dc_state * context) dcn32_merge_pipes_for_subvp() argument
154 dcn32_all_pipes_have_stream_and_plane(struct dc * dc,struct dc_state * context) dcn32_all_pipes_have_stream_and_plane() argument
171 dcn32_subvp_in_use(struct dc * dc,struct dc_state * context) dcn32_subvp_in_use() argument
184 dcn32_mpo_in_use(struct dc_state * context) dcn32_mpo_in_use() argument
196 dcn32_any_surfaces_rotated(struct dc * dc,struct dc_state * context) dcn32_any_surfaces_rotated() argument
243 override_det_for_subvp(struct dc * dc,struct dc_state * context,uint8_t pipe_segments[]) override_det_for_subvp() argument
312 dcn32_determine_det_override(struct dc * dc,struct dc_state * context,display_e2e_pipe_params_st * pipes) dcn32_determine_det_override() argument
381 dcn32_set_det_allocations(struct dc * dc,struct dc_state * context,display_e2e_pipe_params_st * pipes) dcn32_set_det_allocations() argument
515 dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch(struct dc * dc,struct dc_state * context) dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch() argument
644 dcn32_subvp_drr_admissable(struct dc * dc,struct dc_state * context) dcn32_subvp_drr_admissable() argument
704 dcn32_subvp_vblank_admissable(struct dc * dc,struct dc_state * context,int vlevel) dcn32_subvp_vblank_admissable() argument
750 dcn32_update_dml_pipes_odm_policy_based_on_context(struct dc * dc,struct dc_state * context,display_e2e_pipe_params_st * pipes) dcn32_update_dml_pipes_odm_policy_based_on_context() argument
776 dcn32_override_min_req_dcfclk(struct dc * dc,struct dc_state * context) dcn32_override_min_req_dcfclk() argument
[all...]
/linux/arch/sparc/mm/
H A Dtsb.c124 spin_lock_irqsave(&mm->context.lock, flags); in flush_tsb_user()
127 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; in flush_tsb_user()
128 nentries = mm->context.tsb_block[MM_TSB_BASE].tsb_nentries; in flush_tsb_user()
140 else if (mm->context.tsb_block[MM_TSB_HUGE].tsb) { in flush_tsb_user()
141 base = (unsigned long) mm->context.tsb_block[MM_TSB_HUGE].tsb; in flush_tsb_user()
142 nentries = mm->context.tsb_block[MM_TSB_HUGE].tsb_nentries; in flush_tsb_user()
149 spin_unlock_irqrestore(&mm->context.lock, flags); in flush_tsb_user()
157 spin_lock_irqsave(&mm->context.lock, flags); in flush_tsb_user_page()
160 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; in flush_tsb_user_page()
161 nentries = mm->context.tsb_block[MM_TSB_BASE].tsb_nentries; in flush_tsb_user_page()
[all …]
/linux/drivers/usb/image/
H A Dmicrotek.c77 * 20000515 Put transfer context and URB in mts_desc (john)
178 do { MTS_DEBUG("transfer = 0x%x context = 0x%x\n",(int)transfer,(int)context ); \
179 MTS_DEBUG("status = 0x%x data-length = 0x%x sent = 0x%x\n",transfer->status,(int)context->data_length, (int)transfer->actual_length ); \
180 mts_debug_dump(context->instance);\
194 struct mts_transfer_context* context = (struct mts_transfer_context*)transfer->context; \
352 /* Interrupt context! */ in mts_scsi_host_reset()
354 /* Holding transfer->context->lock! */ in mts_scsi_host_reset()
361 context
[all...]
/linux/fs/xfs/
H A Dxfs_handle.c148 void *context, in xfs_handle_acceptable() argument
329 struct xfs_attr_list_context *context, in xfs_ioc_attr_put_listent() argument
336 struct xfs_attrlist *alist = context->buffer; in xfs_ioc_attr_put_listent()
340 ASSERT(!context->seen_enough); in xfs_ioc_attr_put_listent()
341 ASSERT(context->count >= 0); in xfs_ioc_attr_put_listent()
342 ASSERT(context->count < (ATTR_MAX_VALUELEN/8)); in xfs_ioc_attr_put_listent()
343 ASSERT(context->firstu >= sizeof(*alist)); in xfs_ioc_attr_put_listent()
344 ASSERT(context->firstu <= context->bufsize); in xfs_ioc_attr_put_listent()
349 if (context->attr_filter != (flags & XFS_ATTR_NSP_ONDISK_MASK)) in xfs_ioc_attr_put_listent()
353 context->count * sizeof(alist->al_offset[0]); in xfs_ioc_attr_put_listent()
[all …]
H A Dxfs_xattr.c222 struct xfs_attr_list_context *context, in __xfs_xattr_put_listent() argument
231 if (context->count < 0 || context->seen_enough) in __xfs_xattr_put_listent()
234 if (!context->buffer) in __xfs_xattr_put_listent()
237 arraytop = context->count + prefix_len + namelen + 1; in __xfs_xattr_put_listent()
238 if (arraytop > context->firstu) { in __xfs_xattr_put_listent()
239 context->count = -1; /* insufficient space */ in __xfs_xattr_put_listent()
240 context->seen_enough = 1; in __xfs_xattr_put_listent()
243 offset = context->buffer + context->count; in __xfs_xattr_put_listent()
251 context->count += prefix_len + namelen + 1; in __xfs_xattr_put_listent()
257 struct xfs_attr_list_context *context, in xfs_xattr_put_listent() argument
[all …]
/linux/arch/powerpc/mm/book3s64/
H A Dmmu_context.c99 mm->context.hash_context = kmalloc_obj(struct hash_mm_context); in hash__init_new_context()
100 if (!mm->context.hash_context) in hash__init_new_context()
117 if (mm->context.id == 0) { in hash__init_new_context()
118 memset(mm->context.hash_context, 0, sizeof(struct hash_mm_context)); in hash__init_new_context()
122 …memcpy(mm->context.hash_context, current->mm->context.hash_context, sizeof(struct hash_mm_context)… in hash__init_new_context()
125 if (current->mm->context.hash_context->spt) { in hash__init_new_context()
126 mm->context.hash_context->spt = kmalloc_obj(struct subpage_prot_table); in hash__init_new_context()
127 if (!mm->context.hash_context->spt) { in hash__init_new_context()
128 kfree(mm->context.hash_context); in hash__init_new_context()
135 index = realloc_context_ids(&mm->context); in hash__init_new_context()
[all …]
/linux/arch/riscv/kernel/
H A Dsuspend.c15 void suspend_save_csrs(struct suspend_context *context) in suspend_save_csrs() argument
18 context->envcfg = csr_read(CSR_ENVCFG); in suspend_save_csrs()
19 context->tvec = csr_read(CSR_TVEC); in suspend_save_csrs()
20 context->ie = csr_read(CSR_IE); in suspend_save_csrs()
34 context->stimecmp = csr_read(CSR_STIMECMP); in suspend_save_csrs()
36 context->stimecmph = csr_read(CSR_STIMECMPH); in suspend_save_csrs()
40 context->satp = csr_read(CSR_SATP); in suspend_save_csrs()
44 void suspend_restore_csrs(struct suspend_context *context) in suspend_restore_csrs() argument
48 csr_write(CSR_ENVCFG, context->envcfg); in suspend_restore_csrs()
49 csr_write(CSR_TVEC, context->tvec); in suspend_restore_csrs()
[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()
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()
121 cmd->free_head = context->next; in __hns_roce_cmd_mbox_wait()
[all …]
/linux/fs/ocfs2/
H A Dmove_extents.c50 struct ocfs2_move_extents_context *context, in __ocfs2_move_extent() argument
55 struct inode *inode = context->inode; in __ocfs2_move_extent()
60 u64 ino = ocfs2_metadata_cache_owner(context->et.et_ci); in __ocfs2_move_extent()
76 path = ocfs2_new_path_from_et(&context->et); in __ocfs2_move_extent()
114 ret = ocfs2_split_extent(handle, &context->et, path, index, in __ocfs2_move_extent()
115 &replace_rec, context->meta_ac, in __ocfs2_move_extent()
116 &context->dealloc); in __ocfs2_move_extent()
122 context->new_phys_cpos = new_p_cpos; in __ocfs2_move_extent()
132 len, context->meta_ac, in __ocfs2_move_extent()
133 &context->dealloc, 1); in __ocfs2_move_extent()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/
H A Ddcn31_fpu.c454 void dcn31_update_soc_for_wm_a(struct dc *dc, struct dc_state *context) in dcn31_update_soc_for_wm_a() argument
459context->bw_ctx.dml.soc.dram_clock_change_latency_us = dc->clk_mgr->bw_params->wm_table.entries[WM… in dcn31_update_soc_for_wm_a()
460context->bw_ctx.dml.soc.sr_enter_plus_exit_time_us = dc->clk_mgr->bw_params->wm_table.entries[WM_A… in dcn31_update_soc_for_wm_a()
461context->bw_ctx.dml.soc.sr_exit_time_us = dc->clk_mgr->bw_params->wm_table.entries[WM_A].sr_exit_t… in dcn31_update_soc_for_wm_a()
465 void dcn315_update_soc_for_wm_a(struct dc *dc, struct dc_state *context) in dcn315_update_soc_for_wm_a() argument
471 …if (context->bw_ctx.dml.vba.DRAMClockChangeSupport[context->bw_ctx.dml.vba.VoltageLevel][context->… in dcn315_update_soc_for_wm_a()
472context->bw_ctx.dml.soc.dram_clock_change_latency_us = context->bw_ctx.dml.soc.dummy_pstate_latenc… in dcn315_update_soc_for_wm_a()
474context->bw_ctx.dml.soc.dram_clock_change_latency_us = dc->clk_mgr->bw_params->wm_table.entries[WM… in dcn315_update_soc_for_wm_a()
475 context->bw_ctx.dml.soc.sr_enter_plus_exit_time_us = in dcn315_update_soc_for_wm_a()
477 context->bw_ctx.dml.soc.sr_exit_time_us = in dcn315_update_soc_for_wm_a()
[all …]
/linux/drivers/pci/hotplug/
H A Dacpiphp_glue.c50 static void hotplug_event(u32 type, struct acpiphp_context *context);
61 struct acpiphp_context *context; in acpiphp_init_context() local
63 context = kzalloc_obj(*context); in acpiphp_init_context()
64 if (!context) in acpiphp_init_context()
67 context->refcount = 1; in acpiphp_init_context()
68 context->hp.notify = acpiphp_hotplug_notify; in acpiphp_init_context()
69 context->hp.fixup = acpiphp_post_dock_fixup; in acpiphp_init_context()
70 acpi_set_hp_context(adev, &context->hp); in acpiphp_init_context()
71 return context; in acpiphp_init_context()
82 struct acpiphp_context *context; in acpiphp_get_context() local
[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()
173 context, (*sync)->height, (*sync)->prefix); in check_one()
179 context); in check_one()
193 if (!i915_syncmap_is_later(sync, context, seqno)) { in check_one()
195 context, seqno); in check_one()
217 u64 context = i915_prandom_u64_state(&prng); in igt_syncmap_one() local
225 err = check_one(&sync, context, in igt_syncmap_one()
238 static int check_leaf(struct i915_syncmap **sync, u64 context, u32 seqno) in check_leaf() argument
242 err = i915_syncmap_set(sync, context, seqno); in check_leaf()
[all …]

12345678910>>...88