Home
last modified time | relevance | path

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

12345678910>>...105

/Linux-v5.10/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 …]
Dicp_qat_hal.h90 #define SET_CAP_CSR(handle, csr, val) \ argument
91 ADF_CSR_WR(handle->hal_cap_g_ctl_csr_addr_v, csr, val)
92 #define GET_CAP_CSR(handle, csr) \ argument
93 ADF_CSR_RD(handle->hal_cap_g_ctl_csr_addr_v, csr)
94 #define SET_GLB_CSR(handle, csr, val) SET_CAP_CSR(handle, csr + GLOBAL_CSR, val) argument
95 #define GET_GLB_CSR(handle, csr) GET_CAP_CSR(handle, GLOBAL_CSR + csr) argument
96 #define AE_CSR(handle, ae) \ argument
97 ((char __iomem *)handle->hal_cap_ae_local_csr_addr_v + \
98 ((ae & handle->hal_handle->ae_mask) << 12))
99 #define AE_CSR_ADDR(handle, ae, csr) (AE_CSR(handle, ae) + (0x3ff & csr)) 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 …]
/Linux-v5.10/drivers/staging/media/atomisp/pci/runtime/rmgr/src/
Drmgr_vbuf.c81 void ia_css_rmgr_refcount_retain_vbuf(struct ia_css_rmgr_vbuf_handle **handle) in ia_css_rmgr_refcount_retain_vbuf() argument
86 if ((!handle) || (!*handle)) { in ia_css_rmgr_refcount_retain_vbuf()
91 if ((*handle)->count == 0) { in ia_css_rmgr_refcount_retain_vbuf()
92 h = *handle; in ia_css_rmgr_refcount_retain_vbuf()
93 *handle = NULL; in ia_css_rmgr_refcount_retain_vbuf()
96 *handle = &handle_table[i]; in ia_css_rmgr_refcount_retain_vbuf()
103 if (!*handle) { in ia_css_rmgr_refcount_retain_vbuf()
108 (*handle)->vptr = h->vptr; in ia_css_rmgr_refcount_retain_vbuf()
109 (*handle)->size = h->size; in ia_css_rmgr_refcount_retain_vbuf()
111 (*handle)->count++; in ia_css_rmgr_refcount_retain_vbuf()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/include/
Dkgd_pp_interface.h238 int (*pre_set_power_state)(void *handle);
239 int (*set_power_state)(void *handle);
240 void (*post_set_power_state)(void *handle);
241 void (*display_configuration_changed)(void *handle);
242 void (*print_power_state)(void *handle, void *ps);
243 bool (*vblank_too_short)(void *handle);
244 void (*enable_bapm)(void *handle, bool enable);
245 int (*check_state_equal)(void *handle,
250 void (*set_fan_control_mode)(void *handle, u32 mode);
251 u32 (*get_fan_control_mode)(void *handle);
[all …]
Damd_shared.h264 int (*early_init)(void *handle);
265 int (*late_init)(void *handle);
266 int (*sw_init)(void *handle);
267 int (*sw_fini)(void *handle);
268 int (*hw_init)(void *handle);
269 int (*hw_fini)(void *handle);
270 void (*late_fini)(void *handle);
271 int (*suspend)(void *handle);
272 int (*resume)(void *handle);
273 bool (*is_idle)(void *handle);
[all …]
/Linux-v5.10/fs/ext4/
Dext4_jbd2.c35 handle_t *handle = current->journal_info; in ext4_get_nojournal() local
36 unsigned long ref_cnt = (unsigned long)handle; in ext4_get_nojournal()
41 handle = (handle_t *)ref_cnt; in ext4_get_nojournal()
43 current->journal_info = handle; in ext4_get_nojournal()
44 return handle; in ext4_get_nojournal()
49 static void ext4_put_nojournal(handle_t *handle) in ext4_put_nojournal() argument
51 unsigned long ref_cnt = (unsigned long)handle; in ext4_put_nojournal()
56 handle = (handle_t *)ref_cnt; in ext4_put_nojournal()
58 current->journal_info = handle; in ext4_put_nojournal()
109 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) in __ext4_journal_stop() argument
[all …]
Dext4_jbd2.h168 static inline void _ext4_journal_callback_add(handle_t *handle, in _ext4_journal_callback_add() argument
172 list_add_tail(&jce->jce_list, &handle->h_transaction->t_private_list); in _ext4_journal_callback_add()
175 static inline void ext4_journal_callback_add(handle_t *handle, in ext4_journal_callback_add() argument
182 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_add()
187 _ext4_journal_callback_add(handle, jce); in ext4_journal_callback_add()
198 static inline bool ext4_journal_callback_try_del(handle_t *handle, in ext4_journal_callback_try_del() argument
203 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_try_del()
213 ext4_mark_iloc_dirty(handle_t *handle,
222 int ext4_reserve_inode_write(handle_t *handle, struct inode *inode,
227 int __ext4_mark_inode_dirty(handle_t *handle, struct inode *inode,
[all …]
Dmigrate.c21 static int finish_range(handle_t *handle, struct inode *inode, in finish_range() argument
53 retval = ext4_datasem_ensure_credits(handle, inode, needed, needed, 0); in finish_range()
56 retval = ext4_ext_insert_extent(handle, inode, &path, &newext, 0); in finish_range()
65 static int update_extent_range(handle_t *handle, struct inode *inode, in update_extent_range() argument
83 retval = finish_range(handle, inode, lb); in update_extent_range()
90 static int update_ind_extent_range(handle_t *handle, struct inode *inode, in update_ind_extent_range() argument
106 retval = update_extent_range(handle, inode, in update_ind_extent_range()
119 static int update_dind_extent_range(handle_t *handle, struct inode *inode, in update_dind_extent_range() argument
135 retval = update_ind_extent_range(handle, inode, in update_dind_extent_range()
149 static int update_tind_extent_range(handle_t *handle, struct inode *inode, in update_tind_extent_range() argument
[all …]
/Linux-v5.10/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 …]
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h153 struct hnae3_handle *handle; member
285 int (*init_instance)(struct hnae3_handle *handle);
286 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
287 void (*link_status_change)(struct hnae3_handle *handle, bool state);
288 int (*setup_tc)(struct hnae3_handle *handle, u8 tc);
289 int (*reset_notify)(struct hnae3_handle *handle,
291 void (*process_hw_error)(struct hnae3_handle *handle,
467 int (*start)(struct hnae3_handle *handle);
468 void (*stop)(struct hnae3_handle *handle);
469 int (*client_start)(struct hnae3_handle *handle);
[all …]
/Linux-v5.10/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 …]
/Linux-v5.10/drivers/firmware/arm_scmi/
Dbase.c57 static int scmi_base_attributes_get(const struct scmi_handle *handle) in scmi_base_attributes_get() argument
62 struct scmi_revision_info *rev = handle->version; in scmi_base_attributes_get()
64 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_base_attributes_get()
69 ret = scmi_do_xfer(handle, t); in scmi_base_attributes_get()
76 scmi_xfer_put(handle, t); in scmi_base_attributes_get()
90 scmi_base_vendor_id_get(const struct scmi_handle *handle, bool sub_vendor) in scmi_base_vendor_id_get() argument
96 struct scmi_revision_info *rev = handle->version; in scmi_base_vendor_id_get()
108 ret = scmi_xfer_get_init(handle, cmd, SCMI_PROTOCOL_BASE, 0, size, &t); in scmi_base_vendor_id_get()
112 ret = scmi_do_xfer(handle, t); in scmi_base_vendor_id_get()
116 scmi_xfer_put(handle, t); in scmi_base_vendor_id_get()
[all …]
Dreset.c67 static int scmi_reset_attributes_get(const struct scmi_handle *handle, in scmi_reset_attributes_get() argument
74 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_reset_attributes_get()
79 ret = scmi_do_xfer(handle, t); in scmi_reset_attributes_get()
85 scmi_xfer_put(handle, t); in scmi_reset_attributes_get()
90 scmi_reset_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_reset_domain_attributes_get() argument
97 ret = scmi_xfer_get_init(handle, RESET_DOMAIN_ATTRIBUTES, in scmi_reset_domain_attributes_get()
106 ret = scmi_do_xfer(handle, t); in scmi_reset_domain_attributes_get()
118 scmi_xfer_put(handle, t); in scmi_reset_domain_attributes_get()
122 static int scmi_reset_num_domains_get(const struct scmi_handle *handle) in scmi_reset_num_domains_get() argument
124 struct scmi_reset_info *pi = handle->reset_priv; in scmi_reset_num_domains_get()
[all …]
Dclock.c77 static int scmi_clock_protocol_attributes_get(const struct scmi_handle *handle, in scmi_clock_protocol_attributes_get() argument
84 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_clock_protocol_attributes_get()
91 ret = scmi_do_xfer(handle, t); in scmi_clock_protocol_attributes_get()
97 scmi_xfer_put(handle, t); in scmi_clock_protocol_attributes_get()
101 static int scmi_clock_attributes_get(const struct scmi_handle *handle, in scmi_clock_attributes_get() argument
108 ret = scmi_xfer_get_init(handle, CLOCK_ATTRIBUTES, SCMI_PROTOCOL_CLOCK, in scmi_clock_attributes_get()
116 ret = scmi_do_xfer(handle, t); in scmi_clock_attributes_get()
122 scmi_xfer_put(handle, t); in scmi_clock_attributes_get()
139 scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id, in scmi_clock_describe_rates_get() argument
151 ret = scmi_xfer_get_init(handle, CLOCK_DESCRIBE_RATES, in scmi_clock_describe_rates_get()
[all …]
Dpower.c71 static int scmi_power_attributes_get(const struct scmi_handle *handle, in scmi_power_attributes_get() argument
78 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_power_attributes_get()
85 ret = scmi_do_xfer(handle, t); in scmi_power_attributes_get()
93 scmi_xfer_put(handle, t); in scmi_power_attributes_get()
98 scmi_power_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_power_domain_attributes_get() argument
105 ret = scmi_xfer_get_init(handle, POWER_DOMAIN_ATTRIBUTES, in scmi_power_domain_attributes_get()
114 ret = scmi_do_xfer(handle, t); in scmi_power_domain_attributes_get()
124 scmi_xfer_put(handle, t); in scmi_power_domain_attributes_get()
129 scmi_power_state_set(const struct scmi_handle *handle, u32 domain, u32 state) in scmi_power_state_set() argument
135 ret = scmi_xfer_get_init(handle, POWER_STATE_SET, SCMI_PROTOCOL_POWER, in scmi_power_state_set()
[all …]
/Linux-v5.10/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 …]
/Linux-v5.10/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 …]
/Linux-v5.10/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 …]
/Linux-v5.10/drivers/reset/
Dreset-scmi.c21 const struct scmi_handle *handle; member
25 #define to_scmi_handle(p) (to_scmi_reset_data(p)->handle)
40 const struct scmi_handle *handle = to_scmi_handle(rcdev); in scmi_reset_assert() local
42 return handle->reset_ops->assert(handle, id); in scmi_reset_assert()
58 const struct scmi_handle *handle = to_scmi_handle(rcdev); in scmi_reset_deassert() local
60 return handle->reset_ops->deassert(handle, id); in scmi_reset_deassert()
76 const struct scmi_handle *handle = to_scmi_handle(rcdev); in scmi_reset_reset() local
78 return handle->reset_ops->reset(handle, id); in scmi_reset_reset()
92 const struct scmi_handle *handle = sdev->handle; in scmi_reset_probe() local
94 if (!handle || !handle->reset_ops) in scmi_reset_probe()
[all …]
/Linux-v5.10/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 …]
/Linux-v5.10/fs/jbd2/
Dtransaction.c325 static int start_this_handle(journal_t *journal, handle_t *handle, in start_this_handle() argument
329 int blocks = handle->h_total_credits; in start_this_handle()
333 if (handle->h_rsv_handle) in start_this_handle()
334 rsv_blocks = handle->h_rsv_handle->h_total_credits; in start_this_handle()
365 jbd_debug(3, "New handle %p going live.\n", handle); in start_this_handle()
386 if (!handle->h_reserved && journal->j_barrier_count) { in start_this_handle()
399 (handle->h_reserved || !journal->j_barrier_count)) { in start_this_handle()
409 if (!handle->h_reserved) { in start_this_handle()
426 handle->h_reserved = 0; in start_this_handle()
433 handle->h_transaction = transaction; in start_this_handle()
[all …]
/Linux-v5.10/kernel/events/
Dring_buffer.c20 static void perf_output_wakeup(struct perf_output_handle *handle) in perf_output_wakeup() argument
22 atomic_set(&handle->rb->poll, EPOLLIN); in perf_output_wakeup()
24 handle->event->pending_wakeup = 1; in perf_output_wakeup()
25 irq_work_queue(&handle->event->pending); in perf_output_wakeup()
36 static void perf_output_get_handle(struct perf_output_handle *handle) in perf_output_get_handle() argument
38 struct perf_buffer *rb = handle->rb; in perf_output_get_handle()
47 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle()
50 static void perf_output_put_handle(struct perf_output_handle *handle) in perf_output_put_handle() argument
52 struct perf_buffer *rb = handle->rb; in perf_output_put_handle()
130 if (handle->wakeup != local_read(&rb->wakeup)) in perf_output_put_handle()
[all …]
/Linux-v5.10/drivers/input/
Devbug.c25 static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int valu… in evbug_event() argument
28 dev_name(&handle->dev->dev), type, code, value); in evbug_event()
34 struct input_handle *handle; in evbug_connect() local
37 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in evbug_connect()
38 if (!handle) in evbug_connect()
41 handle->dev = dev; in evbug_connect()
42 handle->handler = handler; in evbug_connect()
43 handle->name = "evbug"; in evbug_connect()
45 error = input_register_handle(handle); in evbug_connect()
49 error = input_open_device(handle); in evbug_connect()
[all …]
/Linux-v5.10/include/linux/soc/ti/
Dti_sci_protocol.h37 int (*reboot_device)(const struct ti_sci_handle *handle);
99 int (*get_device)(const struct ti_sci_handle *handle, u32 id);
100 int (*get_device_exclusive)(const struct ti_sci_handle *handle, u32 id);
101 int (*idle_device)(const struct ti_sci_handle *handle, u32 id);
102 int (*idle_device_exclusive)(const struct ti_sci_handle *handle,
104 int (*put_device)(const struct ti_sci_handle *handle, u32 id);
105 int (*is_valid)(const struct ti_sci_handle *handle, u32 id);
106 int (*get_context_loss_count)(const struct ti_sci_handle *handle,
108 int (*is_idle)(const struct ti_sci_handle *handle, u32 id,
110 int (*is_stop)(const struct ti_sci_handle *handle, u32 id,
[all …]

12345678910>>...105