Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 1050) sorted by relevance

12345678910>>...42

/drivers/crypto/qat/qat_common/
Dqat_hal.c36 #define AE(handle, ae) ((handle)->hal_handle->aes[ae]) argument
69 void qat_hal_set_live_ctx(struct icp_qat_fw_loader_handle *handle, in qat_hal_set_live_ctx() argument
72 AE(handle, ae).live_ctx_mask = ctx_mask; in qat_hal_set_live_ctx()
76 static int qat_hal_rd_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_rd_ae_csr() argument
83 value = GET_AE_CSR(handle, ae, csr); in qat_hal_rd_ae_csr()
84 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_rd_ae_csr()
92 static int qat_hal_wr_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_wr_ae_csr() argument
99 SET_AE_CSR(handle, ae, csr, value); in qat_hal_wr_ae_csr()
100 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_wr_ae_csr()
108 static void qat_hal_get_wakeup_event(struct icp_qat_fw_loader_handle *handle, in qat_hal_get_wakeup_event() argument
[all …]
Dqat_uclo.c124 static void qat_uclo_wr_sram_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_sram_by_words() argument
133 SRAM_WRITE(handle, addr, outval); in qat_uclo_wr_sram_by_words()
140 static void qat_uclo_wr_umem_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_umem_by_words() argument
152 qat_hal_wr_umem(handle, ae, addr++, 1, &outval); in qat_uclo_wr_umem_by_words()
158 static void qat_uclo_batch_wr_umem(struct icp_qat_fw_loader_handle *handle, in qat_uclo_batch_wr_umem() argument
175 qat_uclo_wr_umem_by_words(handle, ae, addr, value, size); in qat_uclo_batch_wr_umem()
181 qat_uclo_cleanup_batch_init_list(struct icp_qat_fw_loader_handle *handle, in qat_uclo_cleanup_batch_init_list() argument
217 static int qat_uclo_fetch_initmem_ae(struct icp_qat_fw_loader_handle *handle, in qat_uclo_fetch_initmem_ae() argument
221 struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle; in qat_uclo_fetch_initmem_ae()
249 *handle, struct icp_qat_uof_initmem in qat_uclo_create_batch_init_list()
[all …]
Dicp_qat_hal.h125 #define SET_CAP_CSR(handle, csr, val) \ argument
126 ADF_CSR_WR((handle)->hal_cap_g_ctl_csr_addr_v, csr, val)
127 #define GET_CAP_CSR(handle, csr) \ argument
128 ADF_CSR_RD((handle)->hal_cap_g_ctl_csr_addr_v, csr)
129 #define AE_CSR(handle, ae) \ argument
130 ((char __iomem *)(handle)->hal_cap_ae_local_csr_addr_v + ((ae) << 12))
131 #define AE_CSR_ADDR(handle, ae, csr) (AE_CSR(handle, ae) + (0x3ff & (csr))) argument
132 #define SET_AE_CSR(handle, ae, csr, val) \ argument
133 ADF_CSR_WR(AE_CSR_ADDR(handle, ae, csr), 0, val)
134 #define GET_AE_CSR(handle, ae, csr) ADF_CSR_RD(AE_CSR_ADDR(handle, ae, csr), 0) argument
[all …]
/drivers/staging/media/atomisp/pci/runtime/rmgr/src/
Drmgr_vbuf.c69 void ia_css_rmgr_refcount_retain_vbuf(struct ia_css_rmgr_vbuf_handle **handle) in ia_css_rmgr_refcount_retain_vbuf() argument
74 if ((!handle) || (!*handle)) { in ia_css_rmgr_refcount_retain_vbuf()
79 if ((*handle)->count == 0) { in ia_css_rmgr_refcount_retain_vbuf()
80 h = *handle; in ia_css_rmgr_refcount_retain_vbuf()
81 *handle = NULL; in ia_css_rmgr_refcount_retain_vbuf()
84 *handle = &handle_table[i]; in ia_css_rmgr_refcount_retain_vbuf()
91 if (!*handle) { in ia_css_rmgr_refcount_retain_vbuf()
96 (*handle)->vptr = h->vptr; in ia_css_rmgr_refcount_retain_vbuf()
97 (*handle)->size = h->size; in ia_css_rmgr_refcount_retain_vbuf()
99 (*handle)->count++; in ia_css_rmgr_refcount_retain_vbuf()
[all …]
/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h167 struct hnae3_handle *handle; member
347 int (*init_instance)(struct hnae3_handle *handle);
348 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
349 void (*link_status_change)(struct hnae3_handle *handle, bool state);
350 int (*reset_notify)(struct hnae3_handle *handle,
352 void (*process_hw_error)(struct hnae3_handle *handle,
543 int (*start)(struct hnae3_handle *handle);
544 void (*stop)(struct hnae3_handle *handle);
545 int (*client_start)(struct hnae3_handle *handle);
546 void (*client_stop)(struct hnae3_handle *handle);
[all …]
/drivers/net/ethernet/hisilicon/hns/
Dhns_ae_adapt.c16 static struct hns_mac_cb *hns_get_mac_cb(struct hnae_handle *handle) in hns_get_mac_cb() argument
18 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_get_mac_cb()
28 static struct hns_ppe_cb *hns_get_ppe_cb(struct hnae_handle *handle) in hns_get_ppe_cb() argument
32 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_get_ppe_cb()
139 static void hns_ae_put_handle(struct hnae_handle *handle) in hns_ae_put_handle() argument
141 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_ae_put_handle()
144 for (i = 0; i < handle->q_num; i++) in hns_ae_put_handle()
145 hns_ae_get_ring_pair(handle->qs[i])->used_by_vf = 0; in hns_ae_put_handle()
150 static int hns_ae_wait_flow_down(struct hnae_handle *handle) in hns_ae_wait_flow_down() argument
158 for (i = 0; i < handle->q_num; i++) { in hns_ae_wait_flow_down()
[all …]
/drivers/net/ethernet/qualcomm/
Dqca_7k_common.c77 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte) in qcafrm_fsm_decode() argument
82 switch (handle->state) { in qcafrm_fsm_decode()
86 handle->state--; in qcafrm_fsm_decode()
90 handle->state = handle->init; in qcafrm_fsm_decode()
95 handle->state--; in qcafrm_fsm_decode()
104 handle->state = handle->init; in qcafrm_fsm_decode()
106 handle->state--; in qcafrm_fsm_decode()
112 handle->offset = recv_byte; in qcafrm_fsm_decode()
113 handle->state = QCAFRM_WAIT_LEN_BYTE1; in qcafrm_fsm_decode()
116 handle->offset = handle->offset | (recv_byte << 8); in qcafrm_fsm_decode()
[all …]
/drivers/gpu/drm/amd/include/
Dkgd_pp_interface.h295 int (*pre_set_power_state)(void *handle);
296 int (*set_power_state)(void *handle);
297 void (*post_set_power_state)(void *handle);
298 void (*display_configuration_changed)(void *handle);
299 void (*print_power_state)(void *handle, void *ps);
300 bool (*vblank_too_short)(void *handle);
301 void (*enable_bapm)(void *handle, bool enable);
302 int (*check_state_equal)(void *handle,
307 void (*set_fan_control_mode)(void *handle, u32 mode);
308 u32 (*get_fan_control_mode)(void *handle);
[all …]
Damd_shared.h278 int (*early_init)(void *handle);
279 int (*late_init)(void *handle);
280 int (*sw_init)(void *handle);
281 int (*sw_fini)(void *handle);
282 int (*early_fini)(void *handle);
283 int (*hw_init)(void *handle);
284 int (*hw_fini)(void *handle);
285 void (*late_fini)(void *handle);
286 int (*suspend)(void *handle);
287 int (*resume)(void *handle);
[all …]
/drivers/gpu/drm/amd/pm/powerplay/
Damd_powerplay.c77 static int pp_early_init(void *handle) in pp_early_init() argument
80 struct amdgpu_device *adev = handle; in pp_early_init()
94 static int pp_sw_init(void *handle) in pp_sw_init() argument
96 struct amdgpu_device *adev = handle; in pp_sw_init()
107 static int pp_sw_fini(void *handle) in pp_sw_fini() argument
109 struct amdgpu_device *adev = handle; in pp_sw_fini()
120 static int pp_hw_init(void *handle) in pp_hw_init() argument
123 struct amdgpu_device *adev = handle; in pp_hw_init()
134 static int pp_hw_fini(void *handle) in pp_hw_fini() argument
136 struct amdgpu_device *adev = handle; in pp_hw_fini()
[all …]
/drivers/pci/hotplug/
Dacpi_pcihp.c38 static acpi_status acpi_run_oshp(acpi_handle handle) in acpi_run_oshp() argument
43 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_run_oshp()
46 status = acpi_evaluate_object(handle, METHOD_NAME_OSHP, NULL, NULL); in acpi_run_oshp()
73 acpi_handle chandle, handle; in acpi_get_hp_hw_control_from_firmware() local
105 handle = ACPI_HANDLE(&pdev->dev); in acpi_get_hp_hw_control_from_firmware()
106 if (!handle) { in acpi_get_hp_hw_control_from_firmware()
113 handle = acpi_pci_get_bridge_handle(pbus); in acpi_get_hp_hw_control_from_firmware()
114 if (handle) in acpi_get_hp_hw_control_from_firmware()
119 while (handle) { in acpi_get_hp_hw_control_from_firmware()
120 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_get_hp_hw_control_from_firmware()
[all …]
/drivers/misc/vmw_vmci/
Dvmci_resource.c30 static unsigned int vmci_resource_hash(struct vmci_handle handle) in vmci_resource_hash() argument
32 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash()
38 static struct vmci_resource *vmci_resource_lookup(struct vmci_handle handle, in vmci_resource_lookup() argument
42 unsigned int idx = vmci_resource_hash(handle); in vmci_resource_lookup()
47 u32 cid = r->handle.context; in vmci_resource_lookup()
48 u32 rid = r->handle.resource; in vmci_resource_lookup()
51 rid == handle.resource && in vmci_resource_lookup()
52 (cid == handle.context || cid == VMCI_INVALID_ID || in vmci_resource_lookup()
53 handle.context == VMCI_INVALID_ID)) { in vmci_resource_lookup()
81 struct vmci_handle handle; in vmci_resource_find_id() local
[all …]
Dvmci_doorbell.c85 int vmci_dbell_get_priv_flags(struct vmci_handle handle, u32 *priv_flags) in vmci_dbell_get_priv_flags() argument
87 if (priv_flags == NULL || handle.context == VMCI_INVALID_ID) in vmci_dbell_get_priv_flags()
90 if (handle.context == VMCI_HOST_CONTEXT_ID) { in vmci_dbell_get_priv_flags()
94 resource = vmci_resource_by_handle(handle, in vmci_dbell_get_priv_flags()
102 } else if (handle.context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_dbell_get_priv_flags()
109 *priv_flags = vmci_context_get_priv_flags(handle.context); in vmci_dbell_get_priv_flags()
229 static int dbell_link(struct vmci_handle handle, u32 notify_idx) in dbell_link() argument
237 link_msg.handle = handle; in dbell_link()
247 static int dbell_unlink(struct vmci_handle handle) in dbell_unlink() argument
255 unlink_msg.handle = handle; in dbell_unlink()
[all …]
/drivers/hwtracing/coresight/
Dcoresight-trbe.c133 struct perf_output_handle * __percpu *handle; member
207 static void trbe_report_wrap_event(struct perf_output_handle *handle) in trbe_report_wrap_event() argument
223 perf_aux_output_flag(handle, PERF_AUX_FLAG_COLLISION); in trbe_report_wrap_event()
226 static void trbe_stop_and_truncate_event(struct perf_output_handle *handle) in trbe_stop_and_truncate_event() argument
228 struct trbe_buf *buf = etm_perf_sink_config(handle); in trbe_stop_and_truncate_event()
238 perf_aux_output_flag(handle, PERF_AUX_FLAG_TRUNCATED); in trbe_stop_and_truncate_event()
239 perf_aux_output_end(handle, 0); in trbe_stop_and_truncate_event()
240 *this_cpu_ptr(buf->cpudata->drvdata->handle) = NULL; in trbe_stop_and_truncate_event()
291 static void trbe_pad_buf(struct perf_output_handle *handle, int len) in trbe_pad_buf() argument
293 struct trbe_buf *buf = etm_perf_sink_config(handle); in trbe_pad_buf()
[all …]
/drivers/firmware/
Dti_sci.c108 struct ti_sci_handle handle; member
121 #define handle_to_ti_sci_info(h) container_of(h, struct ti_sci_info, handle)
432 struct ti_sci_handle *handle = &info->handle; in ti_sci_cmd_get_revision() local
433 struct ti_sci_version_info *ver = &handle->version; in ti_sci_cmd_get_revision()
489 static int ti_sci_set_device_state(const struct ti_sci_handle *handle, in ti_sci_set_device_state() argument
499 if (IS_ERR(handle)) in ti_sci_set_device_state()
500 return PTR_ERR(handle); in ti_sci_set_device_state()
501 if (!handle) in ti_sci_set_device_state()
504 info = handle_to_ti_sci_info(handle); in ti_sci_set_device_state()
546 static int ti_sci_get_device_state(const struct ti_sci_handle *handle, in ti_sci_get_device_state() argument
[all …]
/drivers/acpi/
Dscan.c135 static acpi_status acpi_bus_offline(acpi_handle handle, u32 lvl, void *data, in acpi_bus_offline() argument
143 if (acpi_bus_get_device(handle, &device)) in acpi_bus_offline()
180 static acpi_status acpi_bus_online(acpi_handle handle, u32 lvl, void *data, in acpi_bus_online() argument
186 if (acpi_bus_get_device(handle, &device)) in acpi_bus_online()
204 acpi_handle handle = device->handle; in acpi_scan_try_to_offline() local
217 status = acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline()
222 acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline()
226 acpi_bus_offline(handle, 0, (void *)false, (void **)&errdev); in acpi_scan_try_to_offline()
229 acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline()
233 acpi_bus_offline(handle, 0, (void *)true, in acpi_scan_try_to_offline()
[all …]
Dpci_link.c88 acpi_handle handle = link->device->handle; in acpi_pci_link_check_possible() local
99 acpi_handle_debug(handle, in acpi_pci_link_check_possible()
107 acpi_handle_debug(handle, in acpi_pci_link_check_possible()
125 acpi_handle_debug(handle, in acpi_pci_link_check_possible()
133 acpi_handle_debug(handle, in acpi_pci_link_check_possible()
147 acpi_handle_debug(handle, "_PRS resource type 0x%x is not IRQ\n", in acpi_pci_link_check_possible()
157 acpi_handle handle = link->device->handle; in acpi_pci_link_get_possible() local
160 status = acpi_walk_resources(handle, METHOD_NAME__PRS, in acpi_pci_link_get_possible()
163 acpi_handle_debug(handle, "_PRS not present or invalid"); in acpi_pci_link_get_possible()
167 acpi_handle_debug(handle, "Found %d possible IRQs\n", in acpi_pci_link_get_possible()
[all …]
/drivers/staging/media/atomisp/pci/runtime/isys/src/
Dibuf_ctrl_rmgr.c27 ibuf_handle_t *handle = NULL; in getHandle() local
30 handle = &ibuf_rsrc.handles[index]; in getHandle()
31 return handle; in getHandle()
53 ibuf_handle_t *handle = NULL; in ia_css_isys_ibuf_rmgr_acquire() local
66 handle = getHandle(i); in ia_css_isys_ibuf_rmgr_acquire()
67 if (!handle->active) { in ia_css_isys_ibuf_rmgr_acquire()
68 if (handle->size >= aligned_size) { in ia_css_isys_ibuf_rmgr_acquire()
69 handle->active = true; in ia_css_isys_ibuf_rmgr_acquire()
84 handle = getHandle(ibuf_rsrc.num_allocated); in ia_css_isys_ibuf_rmgr_acquire()
85 handle->start_addr = ibuf_rsrc.free_start_addr; in ia_css_isys_ibuf_rmgr_acquire()
[all …]
/drivers/media/usb/uvc/
Duvc_v4l2.c521 static int uvc_acquire_privileges(struct uvc_fh *handle) in uvc_acquire_privileges() argument
524 if (handle->state == UVC_HANDLE_ACTIVE) in uvc_acquire_privileges()
528 if (atomic_inc_return(&handle->stream->active) != 1) { in uvc_acquire_privileges()
529 atomic_dec(&handle->stream->active); in uvc_acquire_privileges()
533 handle->state = UVC_HANDLE_ACTIVE; in uvc_acquire_privileges()
537 static void uvc_dismiss_privileges(struct uvc_fh *handle) in uvc_dismiss_privileges() argument
539 if (handle->state == UVC_HANDLE_ACTIVE) in uvc_dismiss_privileges()
540 atomic_dec(&handle->stream->active); in uvc_dismiss_privileges()
542 handle->state = UVC_HANDLE_PASSIVE; in uvc_dismiss_privileges()
545 static int uvc_has_privileges(struct uvc_fh *handle) in uvc_has_privileges() argument
[all …]
/drivers/sh/intc/
Dchip.c16 void _intc_enable(struct irq_data *data, unsigned long handle) in _intc_enable() argument
23 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_E(handle)); cpu++) { in _intc_enable()
28 addr = INTC_REG(d, _INTC_ADDR_E(handle), cpu); in _intc_enable()
29 intc_enable_fns[_INTC_MODE(handle)](addr, handle, intc_reg_fns\ in _intc_enable()
30 [_INTC_FN(handle)], irq); in _intc_enable()
45 unsigned long handle = (unsigned long)irq_data_get_irq_chip_data(data); in intc_disable() local
51 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_D(handle)); cpu++) { in intc_disable()
56 addr = INTC_REG(d, _INTC_ADDR_D(handle), cpu); in intc_disable()
57 intc_disable_fns[_INTC_MODE(handle)](addr, handle,intc_reg_fns\ in intc_disable()
58 [_INTC_FN(handle)], irq); in intc_disable()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dpost_act.c83 struct mlx5e_post_act_handle *handle = NULL; in mlx5e_tc_post_act_add() local
88 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in mlx5e_tc_post_act_add()
91 if (!handle || !spec || !post_attr) { in mlx5e_tc_post_act_add()
94 kfree(handle); in mlx5e_tc_post_act_add()
106 handle->ns_type = post_act->ns_type; in mlx5e_tc_post_act_add()
108 if (handle->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5e_tc_post_act_add()
111 err = xa_alloc(&post_act->ids, &handle->id, post_attr, in mlx5e_tc_post_act_add()
120 handle->id, MLX5_POST_ACTION_MASK); in mlx5e_tc_post_act_add()
122 handle->rule = mlx5_tc_rule_insert(post_act->priv, spec, post_attr); in mlx5e_tc_post_act_add()
123 if (IS_ERR(handle->rule)) { in mlx5e_tc_post_act_add()
[all …]
/drivers/input/
Devbug.c22 static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int valu… in evbug_event() argument
25 dev_name(&handle->dev->dev), type, code, value); in evbug_event()
31 struct input_handle *handle; in evbug_connect() local
34 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in evbug_connect()
35 if (!handle) in evbug_connect()
38 handle->dev = dev; in evbug_connect()
39 handle->handler = handler; in evbug_connect()
40 handle->name = "evbug"; in evbug_connect()
42 error = input_register_handle(handle); in evbug_connect()
46 error = input_open_device(handle); in evbug_connect()
[all …]
Dapm-power.c31 static void apmpower_event(struct input_handle *handle, unsigned int type, in apmpower_event() argument
52 struct input_handle *handle; in apmpower_connect() local
55 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in apmpower_connect()
56 if (!handle) in apmpower_connect()
59 handle->dev = dev; in apmpower_connect()
60 handle->handler = handler; in apmpower_connect()
61 handle->name = "apm-power"; in apmpower_connect()
63 error = input_register_handle(handle); in apmpower_connect()
67 kfree(handle); in apmpower_connect()
71 error = input_open_device(handle); in apmpower_connect()
[all …]
/drivers/perf/
Darm_spe_pmu.c90 struct perf_output_handle __percpu *handle; member
363 static void arm_spe_pmu_pad_buf(struct perf_output_handle *handle, int len) in arm_spe_pmu_pad_buf() argument
365 struct arm_spe_pmu_buf *buf = perf_get_aux(handle); in arm_spe_pmu_pad_buf()
366 u64 head = PERF_IDX2OFF(handle->head, buf); in arm_spe_pmu_pad_buf()
370 perf_aux_output_skip(handle, len); in arm_spe_pmu_pad_buf()
373 static u64 arm_spe_pmu_next_snapshot_off(struct perf_output_handle *handle) in arm_spe_pmu_next_snapshot_off() argument
375 struct arm_spe_pmu_buf *buf = perf_get_aux(handle); in arm_spe_pmu_next_snapshot_off()
376 struct arm_spe_pmu *spe_pmu = to_spe_pmu(handle->event->pmu); in arm_spe_pmu_next_snapshot_off()
377 u64 head = PERF_IDX2OFF(handle->head, buf); in arm_spe_pmu_next_snapshot_off()
394 arm_spe_pmu_pad_buf(handle, limit - head); in arm_spe_pmu_next_snapshot_off()
[all …]
/drivers/platform/x86/
Dideapad-laptop.c161 static int eval_int(acpi_handle handle, const char *name, unsigned long *res) in eval_int() argument
166 status = acpi_evaluate_integer(handle, (char *)name, NULL, &result); in eval_int()
175 static int exec_simple_method(acpi_handle handle, const char *name, unsigned long arg) in exec_simple_method() argument
177 acpi_status status = acpi_execute_simple_method(handle, (char *)name, arg); in exec_simple_method()
182 static int eval_gbmd(acpi_handle handle, unsigned long *res) in eval_gbmd() argument
184 return eval_int(handle, "GBMD", res); in eval_gbmd()
187 static int exec_sbmc(acpi_handle handle, unsigned long arg) in exec_sbmc() argument
189 return exec_simple_method(handle, "SBMC", arg); in exec_sbmc()
192 static int eval_hals(acpi_handle handle, unsigned long *res) in eval_hals() argument
194 return eval_int(handle, "HALS", res); in eval_hals()
[all …]

12345678910>>...42