Home
last modified time | relevance | path

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

12345678910>>...143

/OK3568_Linux_fs/kernel/drivers/crypto/qat/qat_common/
H A 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 …]
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/runtime/rmgr/src/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlinux/
H A Dmoal_proc.c87 moal_handle *handle = NULL; in woal_info_proc_read() local
116 handle = priv->phandle; in woal_info_proc_read()
117 if (handle == NULL) in woal_info_proc_read()
144 woal_get_version(handle, fmt, sizeof(fmt) - 1); in woal_info_proc_read()
157 ver.l = handle->fw_release_number; in woal_info_proc_read()
282 handle->tp_acnt.on, handle->tp_acnt.drop_point); in woal_info_proc_read()
286 handle->tp_acnt.tx_packets[i]); in woal_info_proc_read()
288 handle->tp_acnt.tx_packets_last[i]); in woal_info_proc_read()
290 handle->tp_acnt.tx_packets_rate[i]); in woal_info_proc_read()
292 handle->tp_acnt.tx_bytes[i]); in woal_info_proc_read()
[all …]
H A Dmoal_main.c1110 void woal_process_hang(moal_handle *handle) argument
1115 reset_handle = handle;
1138 t_u8 woal_is_any_interface_active(moal_handle *handle) argument
1141 for (i = 0; i < handle->priv_num; i++) {
1142 if (!handle->priv[i])
1145 if (GET_BSS_ROLE(handle->priv[i]) == MLAN_BSS_ROLE_STA) {
1146 if (handle->priv[i]->media_connected == MTRUE)
1151 if (GET_BSS_ROLE(handle->priv[i]) == MLAN_BSS_ROLE_UAP) {
1152 if (handle->priv[i]->bss_started == MTRUE)
1451 moal_handle *handle = (moal_handle *)context; local
[all …]
H A Dmoal_pcie.c57 static void woal_pcie_unregister_dev(moal_handle *handle);
249 static mlan_status woal_do_flr(moal_handle *handle, bool prepare, bool flr_flag) in woal_do_flr() argument
260 if (!handle) { in woal_do_flr()
266 card = (pcie_service_card *)handle->card; in woal_do_flr()
274 if (!IS_PCIE8997(handle->card_type) && in woal_do_flr()
275 !IS_PCIE9097(handle->card_type) && in woal_do_flr()
276 !IS_PCIENW62X(handle->card_type) && in woal_do_flr()
277 !IS_PCIE9098(handle->card_type)) { in woal_do_flr()
289 priv = woal_get_priv(handle, MLAN_BSS_ROLE_ANY); in woal_do_flr()
293 handle->init_wait_q_woken = MFALSE; in woal_do_flr()
[all …]
H A Dmoal_init.c538 moal_handle *handle) in parse_cfg_read_block() argument
543 moal_mod_para *params = &handle->params; in parse_cfg_read_block()
558 moal_extflg_set(handle, EXT_HW_TEST); in parse_cfg_read_block()
560 moal_extflg_clear(handle, EXT_HW_TEST); in parse_cfg_read_block()
562 moal_extflg_isset(handle, EXT_HW_TEST) ? "on" : in parse_cfg_read_block()
572 moal_extflg_set(handle, EXT_DTS_ENABLE); in parse_cfg_read_block()
574 moal_extflg_clear(handle, EXT_DTS_ENABLE); in parse_cfg_read_block()
576 moal_extflg_isset(handle, EXT_DTS_ENABLE) ? in parse_cfg_read_block()
593 moal_extflg_set(handle, EXT_REQ_FW_NOWAIT); in parse_cfg_read_block()
595 moal_extflg_clear(handle, EXT_REQ_FW_NOWAIT); in parse_cfg_read_block()
[all …]
H A Dmoal_sdio_mmc.c135 static void woal_sdiommc_reg_dbg(pmoal_handle handle);
192 static void woal_dump_sdio_reg(moal_handle *handle)
206 ((struct sdio_mmc_card *)handle->card)->func,
213 if (IS_SD8897(handle->card_type)) {
224 data = sdio_readb(((struct sdio_mmc_card *)handle->card)->func,
243 moal_handle *handle; in woal_sdio_interrupt() local
249 if (!card || !card->handle) { in woal_sdio_interrupt()
256 handle = card->handle; in woal_sdio_interrupt()
257 if (handle->surprise_removed == MTRUE) { in woal_sdio_interrupt()
261 handle->main_state = MOAL_RECV_INT; in woal_sdio_interrupt()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/include/
H A 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 …]
/OK3568_Linux_fs/kernel/fs/ext4/
H A 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 …]
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qualcomm/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlinux/
H A Dmoal_sdio_mmc.c124 woal_dump_sdio_reg(moal_handle *handle) in woal_dump_sdio_reg() argument
133 data = sdio_f0_readb(((struct sdio_mmc_card *)handle->card)-> in woal_dump_sdio_reg()
141 data = sdio_readb(((struct sdio_mmc_card *)handle->card)->func, in woal_dump_sdio_reg()
162 moal_handle *handle; in woal_sdio_interrupt() local
168 if (!card || !card->handle) { in woal_sdio_interrupt()
175 handle = card->handle; in woal_sdio_interrupt()
178 woal_interrupt(handle); in woal_sdio_interrupt()
283 woal_wlan_is_suspended(moal_handle *handle) in woal_wlan_is_suspended() argument
286 if (handle->suspend_notify_req == MTRUE) { in woal_wlan_is_suspended()
287 handle->is_suspended = MTRUE; in woal_wlan_is_suspended()
[all …]
H A Dmoal_main.c397 woal_process_hang(moal_handle *handle) in woal_process_hang() argument
402 reset_handle = handle; in woal_process_hang()
403 mlan_ioctl(handle->pmlan_adapter, NULL); in woal_process_hang()
426 woal_is_any_interface_active(moal_handle *handle) in woal_is_any_interface_active() argument
429 for (i = 0; i < handle->priv_num; i++) { in woal_is_any_interface_active()
431 if (GET_BSS_ROLE(handle->priv[i]) == MLAN_BSS_ROLE_STA) { in woal_is_any_interface_active()
432 if (handle->priv[i]->media_connected == MTRUE) in woal_is_any_interface_active()
437 if (GET_BSS_ROLE(handle->priv[i]) == MLAN_BSS_ROLE_UAP) { in woal_is_any_interface_active()
438 if (handle->priv[i]->bss_started == MTRUE) in woal_is_any_interface_active()
632 moal_handle *handle = (moal_handle *)context; in woal_remain_timer_func() local
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/
H A Dda223_core.c68 int (*calibrate)(MIR_HANDLE handle, int z_dir);
69 int (*auto_calibrate)(MIR_HANDLE handle, int xyz[3]);
70 int (*int_ops)(MIR_HANDLE handle, mir_int_ops_t *ops);
71 int (*get_reg_data)(MIR_HANDLE handle, char *buf);
168 static int NSA_NTO_calibrate(MIR_HANDLE handle, int z_dir);
169 static int NSA_NTO_auto_calibrate(MIR_HANDLE handle, int xyz[3]);
171 static int mir3da_auto_calibrate(MIR_HANDLE handle, int x, int y, int z);
173 static int NSA_interrupt_ops(MIR_HANDLE handle, mir_int_ops_t *ops);
174 static int NSA_get_reg_data(MIR_HANDLE handle, char *buf);
249 static void manual_load_cali_file(MIR_HANDLE handle);
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/pm/powerplay/
H A 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 …]
/OK3568_Linux_fs/kernel/fs/jbd2/
H A 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()
370 jbd_debug(3, "New handle %p going live.\n", handle); in start_this_handle()
391 if (!handle->h_reserved && journal->j_barrier_count) { in start_this_handle()
404 (handle->h_reserved || !journal->j_barrier_count)) { in start_this_handle()
414 if (!handle->h_reserved) { in start_this_handle()
431 handle->h_reserved = 0; in start_this_handle()
438 handle->h_transaction = transaction; in start_this_handle()
[all …]
/OK3568_Linux_fs/kernel/kernel/events/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/pci/hotplug/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/hwtracing/coresight/
H A Dcoresight-trbe.c78 struct perf_output_handle * __percpu *handle; member
123 static void trbe_stop_and_truncate_event(struct perf_output_handle *handle) in trbe_stop_and_truncate_event() argument
125 struct trbe_buf *buf = etm_perf_sink_config(handle); in trbe_stop_and_truncate_event()
135 perf_aux_output_flag(handle, PERF_AUX_FLAG_TRUNCATED); in trbe_stop_and_truncate_event()
136 *this_cpu_ptr(buf->cpudata->drvdata->handle) = NULL; in trbe_stop_and_truncate_event()
181 static void trbe_pad_buf(struct perf_output_handle *handle, int len) in trbe_pad_buf() argument
183 struct trbe_buf *buf = etm_perf_sink_config(handle); in trbe_pad_buf()
184 u64 head = PERF_IDX2OFF(handle->head, buf); in trbe_pad_buf()
188 perf_aux_output_skip(handle, len); in trbe_pad_buf()
191 static unsigned long trbe_snapshot_offset(struct perf_output_handle *handle) in trbe_snapshot_offset() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/misc/vmw_vmci/
H A 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 …]

12345678910>>...143