Home
last modified time | relevance | path

Searched refs:handle (Results 1 - 25 of 3176) sorted by relevance

12345678910>>...128

/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/
H A Dqat_hal.c36 #define AE(handle, ae) ((handle)->hal_handle->aes[ae])
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, a in qat_hal_wr_ae_csr()
108 qat_hal_get_wakeup_event(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, unsigned int *events) qat_hal_get_wakeup_event() argument
120 qat_hal_wait_cycles(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int cycles, int chk_inactive) qat_hal_wait_cycles() argument
156 qat_hal_set_ae_ctx_mode(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char mode) qat_hal_set_ae_ctx_mode() argument
176 qat_hal_set_ae_nn_mode(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char mode) qat_hal_set_ae_nn_mode() argument
194 qat_hal_set_ae_lm_mode(struct icp_qat_fw_loader_handle *handle, unsigned char ae, enum icp_qat_uof_regtype lm_type, unsigned char mode) qat_hal_set_ae_lm_mode() argument
233 qat_hal_set_ae_tindex_mode(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char mode) qat_hal_set_ae_tindex_mode() argument
302 qat_hal_reset(struct icp_qat_fw_loader_handle *handle) qat_hal_reset() argument
313 qat_hal_wr_indr_csr(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask, unsigned int ae_csr, unsigned int csr_val) qat_hal_wr_indr_csr() argument
331 qat_hal_rd_indr_csr(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, unsigned int ae_csr) qat_hal_rd_indr_csr() argument
345 qat_hal_put_sig_event(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask, unsigned int events) qat_hal_put_sig_event() argument
361 qat_hal_put_wakeup_event(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask, unsigned int events) qat_hal_put_wakeup_event() argument
378 qat_hal_check_ae_alive(struct icp_qat_fw_loader_handle *handle) qat_hal_check_ae_alive() argument
403 qat_hal_check_ae_active(struct icp_qat_fw_loader_handle *handle, unsigned int ae) qat_hal_check_ae_active() argument
417 qat_hal_reset_timestamp(struct icp_qat_fw_loader_handle *handle) qat_hal_reset_timestamp() argument
442 qat_hal_init_esram(struct icp_qat_fw_loader_handle *handle) qat_hal_init_esram() argument
473 qat_hal_clr_reset(struct icp_qat_fw_loader_handle *handle) qat_hal_clr_reset() argument
529 qat_hal_disable_ctx(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask) qat_hal_disable_ctx() argument
570 qat_hal_wr_uwords(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int uaddr, unsigned int words_num, u64 *uword) qat_hal_wr_uwords() argument
593 qat_hal_enable_ctx(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask) qat_hal_enable_ctx() argument
605 qat_hal_clear_xfer(struct icp_qat_fw_loader_handle *handle) qat_hal_clear_xfer() argument
621 qat_hal_clear_gpr(struct icp_qat_fw_loader_handle *handle) qat_hal_clear_gpr() argument
682 qat_hal_chip_init(struct icp_qat_fw_loader_handle *handle, struct adf_accel_dev *accel_dev) qat_hal_chip_init() argument
825 struct icp_qat_fw_loader_handle *handle; qat_hal_init() local
876 qat_hal_deinit(struct icp_qat_fw_loader_handle *handle) qat_hal_deinit() argument
885 qat_hal_start(struct icp_qat_fw_loader_handle *handle) qat_hal_start() argument
918 qat_hal_stop(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask) qat_hal_stop() argument
925 qat_hal_set_pc(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask, unsigned int upc) qat_hal_set_pc() argument
932 qat_hal_get_uwords(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int uaddr, unsigned int words_num, u64 *uword) qat_hal_get_uwords() argument
956 qat_hal_wr_umem(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int uaddr, unsigned int words_num, unsigned int *data) qat_hal_wr_umem() argument
982 qat_hal_exec_micro_inst(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, u64 *micro_inst, unsigned int inst_num, int code_off, unsigned int max_cycle, unsigned int *endpc) qat_hal_exec_micro_inst() argument
1110 qat_hal_rd_rel_reg(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int *data) qat_hal_rd_rel_reg() argument
1171 qat_hal_wr_rel_reg(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int data) qat_hal_wr_rel_reg() argument
1252 qat_hal_exec_micro_init_lm(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, int *pfirst_exec, u64 *micro_inst, unsigned int inst_num) qat_hal_exec_micro_init_lm() argument
1282 qat_hal_batch_wr_lm(struct icp_qat_fw_loader_handle *handle, unsigned char ae, struct icp_qat_uof_batch_init *lm_init_header) qat_hal_batch_wr_lm() argument
1325 qat_hal_put_rel_rd_xfer(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int val) qat_hal_put_rel_rd_xfer() argument
1366 qat_hal_put_rel_wr_xfer(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int data) qat_hal_put_rel_wr_xfer() argument
1427 qat_hal_put_rel_nn(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, unsigned short nn, unsigned int val) qat_hal_put_rel_nn() argument
1443 qat_hal_convert_abs_to_rel(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned short absreg_num, unsigned short *relreg, unsigned char *ctx) qat_hal_convert_abs_to_rel() argument
1464 qat_hal_init_gpr(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned long ctx_mask, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int regdata) qat_hal_init_gpr() argument
1498 qat_hal_init_wr_xfer(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned long ctx_mask, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int regdata) qat_hal_init_wr_xfer() argument
1533 qat_hal_init_rd_xfer(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned long ctx_mask, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int regdata) qat_hal_init_rd_xfer() argument
1568 qat_hal_init_nn(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned long ctx_mask, unsigned short reg_num, unsigned int regdata) qat_hal_init_nn() 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, struc in qat_uclo_create_batch_init_list()
248 qat_uclo_create_batch_init_list(struct icp_qat_fw_loader_handle *handle, struct icp_qat_uof_initmem *init_mem, unsigned int ae, struct icp_qat_uof_batch_init **init_tab_base) qat_uclo_create_batch_init_list() argument
307 qat_uclo_init_lmem_seg(struct icp_qat_fw_loader_handle *handle, struct icp_qat_uof_initmem *init_mem) qat_uclo_init_lmem_seg() argument
322 qat_uclo_init_umem_seg(struct icp_qat_fw_loader_handle *handle, struct icp_qat_uof_initmem *init_mem) qat_uclo_init_umem_seg() argument
345 qat_uclo_init_ae_memory(struct icp_qat_fw_loader_handle *handle, struct icp_qat_uof_initmem *init_mem) qat_uclo_init_ae_memory() argument
365 qat_uclo_init_ustore(struct icp_qat_fw_loader_handle *handle, struct icp_qat_uclo_encapme *image) qat_uclo_init_ustore() argument
411 qat_uclo_init_memory(struct icp_qat_fw_loader_handle *handle) qat_uclo_init_memory() argument
656 qat_uclo_map_ae(struct icp_qat_fw_loader_handle *handle, int max_ae) qat_uclo_map_ae() argument
724 qat_uclo_get_dev_type(struct icp_qat_fw_loader_handle *handle) qat_uclo_get_dev_type() argument
763 qat_uclo_init_reg(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx_mask, enum icp_qat_uof_regtype reg_type, unsigned short reg_addr, unsigned int value) qat_uclo_init_reg() argument
806 qat_uclo_init_reg_sym(struct icp_qat_fw_loader_handle *handle, unsigned int ae, struct icp_qat_uclo_encapme *encap_ae) qat_uclo_init_reg_sym() argument
861 qat_uclo_init_globals(struct icp_qat_fw_loader_handle *handle) qat_uclo_init_globals() argument
890 qat_hal_set_modes(struct icp_qat_fw_loader_handle *handle, struct icp_qat_uclo_objhandle *obj_handle, unsigned char ae, struct icp_qat_uof_image *uof_image) qat_hal_set_modes() argument
943 qat_uclo_set_ae_mode(struct icp_qat_fw_loader_handle *handle) qat_uclo_set_ae_mode() argument
972 qat_uclo_init_uword_num(struct icp_qat_fw_loader_handle *handle) qat_uclo_init_uword_num() argument
985 qat_uclo_parse_uof_obj(struct icp_qat_fw_loader_handle *handle) qat_uclo_parse_uof_obj() argument
1035 qat_uclo_map_suof_file_hdr(struct icp_qat_fw_loader_handle *handle, struct icp_qat_suof_filehdr *suof_ptr, int suof_size) qat_uclo_map_suof_file_hdr() argument
1061 qat_uclo_map_simg(struct icp_qat_fw_loader_handle *handle, struct icp_qat_suof_img_hdr *suof_img_hdr, struct icp_qat_suof_chunk_hdr *suof_chunk_hdr) qat_uclo_map_simg() argument
1107 qat_uclo_check_simg_compat(struct icp_qat_fw_loader_handle *handle, struct icp_qat_suof_img_hdr *img_hdr) qat_uclo_check_simg_compat() argument
1131 qat_uclo_del_suof(struct icp_qat_fw_loader_handle *handle) qat_uclo_del_suof() argument
1156 qat_uclo_map_suof(struct icp_qat_fw_loader_handle *handle, struct icp_qat_suof_filehdr *suof_ptr, int suof_size) qat_uclo_map_suof() argument
1213 qat_uclo_auth_fw(struct icp_qat_fw_loader_handle *handle, struct icp_qat_fw_auth_desc *desc) qat_uclo_auth_fw() argument
1248 qat_uclo_is_broadcast(struct icp_qat_fw_loader_handle *handle, int imgid) qat_uclo_is_broadcast() argument
1264 qat_uclo_broadcast_load_fw(struct icp_qat_fw_loader_handle *handle, struct icp_qat_fw_auth_desc *desc) qat_uclo_broadcast_load_fw() argument
1325 qat_uclo_simg_alloc(struct icp_qat_fw_loader_handle *handle, struct icp_firml_dram_desc *dram_desc, unsigned int size) qat_uclo_simg_alloc() argument
1342 qat_uclo_simg_free(struct icp_qat_fw_loader_handle *handle, struct icp_firml_dram_desc *dram_desc) qat_uclo_simg_free() argument
1356 qat_uclo_ummap_auth_fw(struct icp_qat_fw_loader_handle *handle, struct icp_qat_fw_auth_desc **desc) qat_uclo_ummap_auth_fw() argument
1371 qat_uclo_check_image(struct icp_qat_fw_loader_handle *handle, char *image, unsigned int size, unsigned int fw_type) qat_uclo_check_image() argument
1413 qat_uclo_map_auth_fw(struct icp_qat_fw_loader_handle *handle, char *image, unsigned int size, struct icp_qat_fw_auth_desc **desc) qat_uclo_map_auth_fw() argument
1525 qat_uclo_load_fw(struct icp_qat_fw_loader_handle *handle, struct icp_qat_fw_auth_desc *desc) qat_uclo_load_fw() argument
1571 qat_uclo_map_suof_obj(struct icp_qat_fw_loader_handle *handle, void *addr_ptr, int mem_size) qat_uclo_map_suof_obj() argument
1588 qat_uclo_wr_mimage(struct icp_qat_fw_loader_handle *handle, void *addr_ptr, int mem_size) qat_uclo_wr_mimage() argument
1614 qat_uclo_map_uof_obj(struct icp_qat_fw_loader_handle *handle, void *addr_ptr, int mem_size) qat_uclo_map_uof_obj() argument
1650 qat_uclo_map_mof_file_hdr(struct icp_qat_fw_loader_handle *handle, struct icp_qat_mof_file_hdr *mof_ptr, u32 mof_size) qat_uclo_map_mof_file_hdr() argument
1677 qat_uclo_del_mof(struct icp_qat_fw_loader_handle *handle) qat_uclo_del_mof() argument
1838 qat_uclo_map_mof_obj(struct icp_qat_fw_loader_handle *handle, struct icp_qat_mof_file_hdr *mof_ptr, u32 mof_size, const char *obj_name, char **obj_ptr, unsigned int *obj_size) qat_uclo_map_mof_obj() argument
1890 qat_uclo_map_obj(struct icp_qat_fw_loader_handle *handle, void *addr_ptr, u32 mem_size, const char *obj_name) qat_uclo_map_obj() argument
1918 qat_uclo_del_obj(struct icp_qat_fw_loader_handle *handle) qat_uclo_del_obj() argument
1973 qat_uclo_wr_uimage_raw_page(struct icp_qat_fw_loader_handle *handle, struct icp_qat_uclo_encap_page *encap_page, unsigned int ae) qat_uclo_wr_uimage_raw_page() argument
2009 qat_uclo_wr_uimage_page(struct icp_qat_fw_loader_handle *handle, struct icp_qat_uof_image *image) qat_uclo_wr_uimage_page() argument
2060 qat_uclo_wr_suof_img(struct icp_qat_fw_loader_handle *handle) qat_uclo_wr_suof_img() argument
2098 qat_uclo_wr_uof_img(struct icp_qat_fw_loader_handle *handle) qat_uclo_wr_uof_img() argument
2116 qat_uclo_wr_all_uimage(struct icp_qat_fw_loader_handle *handle) qat_uclo_wr_all_uimage() argument
2122 qat_uclo_set_cfg_ae_mask(struct icp_qat_fw_loader_handle *handle, unsigned int cfg_ae_mask) qat_uclo_set_cfg_ae_mask() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/rmgr/src/
H A Drmgr_vbuf.c77 * @brief Retain the reference count for a handle (host, vbuf)
79 * @param handle The pointer to the handle
81 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 in ia_css_rmgr_refcount_retain_vbuf()
119 ia_css_rmgr_refcount_release_vbuf(struct ia_css_rmgr_vbuf_handle **handle) ia_css_rmgr_refcount_release_vbuf() argument
212 rmgr_push_handle(struct ia_css_rmgr_vbuf_pool *pool, struct ia_css_rmgr_vbuf_handle **handle) rmgr_push_handle() argument
240 rmgr_pop_handle(struct ia_css_rmgr_vbuf_pool *pool, struct ia_css_rmgr_vbuf_handle **handle) rmgr_pop_handle() argument
268 ia_css_rmgr_acq_vbuf(struct ia_css_rmgr_vbuf_pool *pool, struct ia_css_rmgr_vbuf_handle **handle) ia_css_rmgr_acq_vbuf() argument
316 ia_css_rmgr_rel_vbuf(struct ia_css_rmgr_vbuf_pool *pool, struct ia_css_rmgr_vbuf_handle **handle) ia_css_rmgr_rel_vbuf() argument
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/rmgr/src/
H A Drmgr_vbuf.c65 * @brief Retain the reference count for a handle (host, vbuf)
67 * @param handle The pointer to the handle
69 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 in ia_css_rmgr_refcount_retain_vbuf()
107 ia_css_rmgr_refcount_release_vbuf(struct ia_css_rmgr_vbuf_handle **handle) ia_css_rmgr_refcount_release_vbuf() argument
197 rmgr_push_handle(struct ia_css_rmgr_vbuf_pool *pool, struct ia_css_rmgr_vbuf_handle **handle) rmgr_push_handle() argument
225 rmgr_pop_handle(struct ia_css_rmgr_vbuf_pool *pool, struct ia_css_rmgr_vbuf_handle **handle) rmgr_pop_handle() argument
254 ia_css_rmgr_acq_vbuf(struct ia_css_rmgr_vbuf_pool *pool, struct ia_css_rmgr_vbuf_handle **handle) ia_css_rmgr_acq_vbuf() argument
310 ia_css_rmgr_rel_vbuf(struct ia_css_rmgr_vbuf_pool *pool, struct ia_css_rmgr_vbuf_handle **handle) ia_css_rmgr_rel_vbuf() argument
[all...]
/kernel/linux/linux-5.10/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...]
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
H A Dqat_hal.c36 #define AE(handle, ae) handle->hal_handle->aes[ae]
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, a in qat_hal_wr_ae_csr()
108 qat_hal_get_wakeup_event(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, unsigned int *events) qat_hal_get_wakeup_event() argument
120 qat_hal_wait_cycles(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int cycles, int chk_inactive) qat_hal_wait_cycles() argument
156 qat_hal_set_ae_ctx_mode(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char mode) qat_hal_set_ae_ctx_mode() argument
176 qat_hal_set_ae_nn_mode(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char mode) qat_hal_set_ae_nn_mode() argument
194 qat_hal_set_ae_lm_mode(struct icp_qat_fw_loader_handle *handle, unsigned char ae, enum icp_qat_uof_regtype lm_type, unsigned char mode) qat_hal_set_ae_lm_mode() argument
272 qat_hal_reset(struct icp_qat_fw_loader_handle *handle) qat_hal_reset() argument
282 qat_hal_wr_indr_csr(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask, unsigned int ae_csr, unsigned int csr_val) qat_hal_wr_indr_csr() argument
300 qat_hal_rd_indr_csr(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, unsigned int ae_csr) qat_hal_rd_indr_csr() argument
314 qat_hal_put_sig_event(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask, unsigned int events) qat_hal_put_sig_event() argument
330 qat_hal_put_wakeup_event(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask, unsigned int events) qat_hal_put_wakeup_event() argument
347 qat_hal_check_ae_alive(struct icp_qat_fw_loader_handle *handle) qat_hal_check_ae_alive() argument
372 qat_hal_check_ae_active(struct icp_qat_fw_loader_handle *handle, unsigned int ae) qat_hal_check_ae_active() argument
386 qat_hal_reset_timestamp(struct icp_qat_fw_loader_handle *handle) qat_hal_reset_timestamp() argument
410 qat_hal_init_esram(struct icp_qat_fw_loader_handle *handle) qat_hal_init_esram() argument
441 qat_hal_clr_reset(struct icp_qat_fw_loader_handle *handle) qat_hal_clr_reset() argument
498 qat_hal_disable_ctx(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask) qat_hal_disable_ctx() argument
539 qat_hal_wr_uwords(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int uaddr, unsigned int words_num, u64 *uword) qat_hal_wr_uwords() argument
562 qat_hal_enable_ctx(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask) qat_hal_enable_ctx() argument
574 qat_hal_clear_xfer(struct icp_qat_fw_loader_handle *handle) qat_hal_clear_xfer() argument
590 qat_hal_clear_gpr(struct icp_qat_fw_loader_handle *handle) qat_hal_clear_gpr() argument
657 struct icp_qat_fw_loader_handle *handle; qat_hal_init() local
737 qat_hal_deinit(struct icp_qat_fw_loader_handle *handle) qat_hal_deinit() argument
745 qat_hal_start(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask) qat_hal_start() argument
768 qat_hal_stop(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask) qat_hal_stop() argument
775 qat_hal_set_pc(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int ctx_mask, unsigned int upc) qat_hal_set_pc() argument
782 qat_hal_get_uwords(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int uaddr, unsigned int words_num, u64 *uword) qat_hal_get_uwords() argument
806 qat_hal_wr_umem(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned int uaddr, unsigned int words_num, unsigned int *data) qat_hal_wr_umem() argument
832 qat_hal_exec_micro_inst(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, u64 *micro_inst, unsigned int inst_num, int code_off, unsigned int max_cycle, unsigned int *endpc) qat_hal_exec_micro_inst() argument
926 qat_hal_rd_rel_reg(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int *data) qat_hal_rd_rel_reg() argument
987 qat_hal_wr_rel_reg(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int data) qat_hal_wr_rel_reg() argument
1068 qat_hal_exec_micro_init_lm(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, int *pfirst_exec, u64 *micro_inst, unsigned int inst_num) qat_hal_exec_micro_init_lm() argument
1098 qat_hal_batch_wr_lm(struct icp_qat_fw_loader_handle *handle, unsigned char ae, struct icp_qat_uof_batch_init *lm_init_header) qat_hal_batch_wr_lm() argument
1141 qat_hal_put_rel_rd_xfer(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int val) qat_hal_put_rel_rd_xfer() argument
1182 qat_hal_put_rel_wr_xfer(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int data) qat_hal_put_rel_wr_xfer() argument
1243 qat_hal_put_rel_nn(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx, unsigned short nn, unsigned int val) qat_hal_put_rel_nn() argument
1259 qat_hal_convert_abs_to_rel(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned short absreg_num, unsigned short *relreg, unsigned char *ctx) qat_hal_convert_abs_to_rel() argument
1280 qat_hal_init_gpr(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx_mask, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int regdata) qat_hal_init_gpr() argument
1314 qat_hal_init_wr_xfer(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx_mask, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int regdata) qat_hal_init_wr_xfer() argument
1349 qat_hal_init_rd_xfer(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx_mask, enum icp_qat_uof_regtype reg_type, unsigned short reg_num, unsigned int regdata) qat_hal_init_rd_xfer() argument
1384 qat_hal_init_nn(struct icp_qat_fw_loader_handle *handle, unsigned char ae, unsigned char ctx_mask, unsigned short reg_num, unsigned int regdata) qat_hal_init_nn() argument
[all...]
H A Dicp_qat_hal.h90 #define SET_CAP_CSR(handle, csr, val) \
91 ADF_CSR_WR(handle->hal_cap_g_ctl_csr_addr_v, csr, val)
92 #define GET_CAP_CSR(handle, csr) \
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)
95 #define GET_GLB_CSR(handle, csr) GET_CAP_CSR(handle, GLOBAL_CSR + csr)
96 #define AE_CSR(handle, ae) \
97 ((char __iomem *)handle
[all...]
/kernel/linux/linux-5.10/fs/ext4/
H A Dext4_jbd2.c32 /* Just increment the non-pointer handle value */
35 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()
48 /* Decrement the non-pointer handle value */
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 in ext4_put_nojournal()
109 __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) __ext4_journal_stop() argument
136 __ext4_journal_start_reserved(handle_t *handle, unsigned int line, int type) __ext4_journal_start_reserved() argument
160 __ext4_journal_ensure_credits(handle_t *handle, int check_cred, int extend_cred, int revoke_cred) __ext4_journal_ensure_credits() argument
175 ext4_journal_abort_handle(const char *caller, unsigned int line, const char *err_fn, struct buffer_head *bh, handle_t *handle, int err) ext4_journal_abort_handle() argument
222 __ext4_journal_get_write_access(const char *where, unsigned int line, handle_t *handle, struct buffer_head *bh) __ext4_journal_get_write_access() argument
253 __ext4_forget(const char *where, unsigned int line, handle_t *handle, int is_metadata, struct inode *inode, struct buffer_head *bh, ext4_fsblk_t blocknr) __ext4_forget() argument
308 __ext4_journal_get_create_access(const char *where, unsigned int line, handle_t *handle, struct buffer_head *bh) __ext4_journal_get_create_access() argument
322 __ext4_handle_dirty_metadata(const char *where, unsigned int line, handle_t *handle, struct inode *inode, struct buffer_head *bh) __ext4_handle_dirty_metadata() argument
[all...]
H A Dext4_jbd2.h68 /* We break up a large truncate or write transaction once the handle's
112 * Ext4 handle operation types -- for logging purposes
137 /* list information for other callbacks attached to the same handle */
149 * @handle: active journal transaction handle to register callback on
157 * after the transaction for which the handle was created has completed.
168 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 in ext4_journal_callback_add()
198 ext4_journal_callback_try_del(handle_t *handle, struct ext4_journal_cb_entry *jce) ext4_journal_callback_try_del() argument
270 ext4_handle_valid(handle_t *handle) ext4_handle_valid() argument
277 ext4_handle_sync(handle_t *handle) ext4_handle_sync() argument
283 ext4_handle_is_aborted(handle_t *handle) ext4_handle_is_aborted() argument
341 ext4_journal_extend(handle_t *handle, int nblocks, int revoke) ext4_journal_extend() argument
348 ext4_journal_restart(handle_t *handle, int nblocks, int revoke) ext4_journal_restart() argument
396 ext4_journal_ensure_credits(handle_t *handle, int credits, int revoke_creds) ext4_journal_ensure_credits() argument
417 ext4_jbd2_inode_add_write(handle_t *handle, struct inode *inode, loff_t start_byte, loff_t length) ext4_jbd2_inode_add_write() argument
426 ext4_jbd2_inode_add_wait(handle_t *handle, struct inode *inode, loff_t start_byte, loff_t length) ext4_jbd2_inode_add_wait() argument
435 ext4_update_inode_fsync_trans(handle_t *handle, struct inode *inode, int datasync) ext4_update_inode_fsync_trans() argument
[all...]
/kernel/linux/linux-6.6/fs/ext4/
H A Dext4_jbd2.c32 /* Just increment the non-pointer handle value */
35 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()
48 /* Decrement the non-pointer handle value */
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 in ext4_put_nojournal()
116 __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) __ext4_journal_stop() argument
143 __ext4_journal_start_reserved(handle_t *handle, unsigned int line, int type) __ext4_journal_start_reserved() argument
167 __ext4_journal_ensure_credits(handle_t *handle, int check_cred, int extend_cred, int revoke_cred) __ext4_journal_ensure_credits() argument
182 ext4_journal_abort_handle(const char *caller, unsigned int line, const char *err_fn, struct buffer_head *bh, handle_t *handle, int err) ext4_journal_abort_handle() argument
229 __ext4_journal_get_write_access(const char *where, unsigned int line, handle_t *handle, struct super_block *sb, struct buffer_head *bh, enum ext4_journal_trigger_type trigger_type) __ext4_journal_get_write_access() argument
265 __ext4_forget(const char *where, unsigned int line, handle_t *handle, int is_metadata, struct inode *inode, struct buffer_head *bh, ext4_fsblk_t blocknr) __ext4_forget() argument
319 __ext4_journal_get_create_access(const char *where, unsigned int line, handle_t *handle, struct super_block *sb, struct buffer_head *bh, enum ext4_journal_trigger_type trigger_type) __ext4_journal_get_create_access() argument
343 __ext4_handle_dirty_metadata(const char *where, unsigned int line, handle_t *handle, struct inode *inode, struct buffer_head *bh) __ext4_handle_dirty_metadata() argument
[all...]
H A Dext4_jbd2.h68 /* We break up a large truncate or write transaction once the handle's
109 * Ext4 handle operation types -- for logging purposes
134 /* list information for other callbacks attached to the same handle */
146 * @handle: active journal transaction handle to register callback on
154 * after the transaction for which the handle was created has completed.
165 static inline void _ext4_journal_callback_add(handle_t *handle, in _ext4_journal_callback_add() argument
169 list_add_tail(&jce->jce_list, &handle->h_transaction->t_private_list); in _ext4_journal_callback_add()
172 static inline void ext4_journal_callback_add(handle_t *handle, in ext4_journal_callback_add() argument
179 EXT4_SB(handle in ext4_journal_callback_add()
195 ext4_journal_callback_try_del(handle_t *handle, struct ext4_journal_cb_entry *jce) ext4_journal_callback_try_del() argument
273 ext4_handle_valid(handle_t *handle) ext4_handle_valid() argument
280 ext4_handle_sync(handle_t *handle) ext4_handle_sync() argument
286 ext4_handle_is_aborted(handle_t *handle) ext4_handle_is_aborted() argument
344 ext4_journal_extend(handle_t *handle, int nblocks, int revoke) ext4_journal_extend() argument
351 ext4_journal_restart(handle_t *handle, int nblocks, int revoke) ext4_journal_restart() argument
399 ext4_journal_ensure_credits(handle_t *handle, int credits, int revoke_creds) ext4_journal_ensure_credits() argument
420 ext4_jbd2_inode_add_write(handle_t *handle, struct inode *inode, loff_t start_byte, loff_t length) ext4_jbd2_inode_add_write() argument
429 ext4_jbd2_inode_add_wait(handle_t *handle, struct inode *inode, loff_t start_byte, loff_t length) ext4_jbd2_inode_add_wait() argument
438 ext4_update_inode_fsync_trans(handle_t *handle, struct inode *inode, int datasync) ext4_update_inode_fsync_trans() argument
[all...]
/kernel/linux/linux-6.6/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()
138 static void hns_ae_put_handle(struct hnae_handle *handle) in hns_ae_put_handle() argument
140 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_ae_put_handle()
143 for (i = 0; i < handle->q_num; i++) in hns_ae_put_handle()
144 hns_ae_get_ring_pair(handle->qs[i])->used_by_vf = 0; in hns_ae_put_handle()
149 static int hns_ae_wait_flow_down(struct hnae_handle *handle) in hns_ae_wait_flow_down() argument
157 for (i = 0; i < handle in hns_ae_wait_flow_down()
184 hns_ae_ring_enable_all(struct hnae_handle *handle, int val) hns_ae_ring_enable_all() argument
209 hns_ae_set_mac_address(struct hnae_handle *handle, const void *p) hns_ae_set_mac_address() argument
229 hns_ae_add_uc_address(struct hnae_handle *handle, const unsigned char *addr) hns_ae_add_uc_address() argument
240 hns_ae_rm_uc_address(struct hnae_handle *handle, const unsigned char *addr) hns_ae_rm_uc_address() argument
251 hns_ae_set_multicast_one(struct hnae_handle *handle, void *addr) hns_ae_set_multicast_one() argument
284 hns_ae_clr_multicast(struct hnae_handle *handle) hns_ae_clr_multicast() argument
294 hns_ae_set_mtu(struct hnae_handle *handle, int new_mtu) hns_ae_set_mtu() argument
325 hns_ae_set_tso_stats(struct hnae_handle *handle, int enable) hns_ae_set_tso_stats() argument
332 hns_ae_start(struct hnae_handle *handle) hns_ae_start() argument
358 hns_ae_stop(struct hnae_handle *handle) hns_ae_stop() argument
379 hns_ae_reset(struct hnae_handle *handle) hns_ae_reset() argument
413 hns_ae_get_link_status(struct hnae_handle *handle) hns_ae_get_link_status() argument
423 hns_ae_get_mac_info(struct hnae_handle *handle, u8 *auto_neg, u16 *speed, u8 *duplex) hns_ae_get_mac_info() argument
431 hns_ae_need_adjust_link(struct hnae_handle *handle, int speed, int duplex) hns_ae_need_adjust_link() argument
439 hns_ae_adjust_link(struct hnae_handle *handle, int speed, int duplex) hns_ae_adjust_link() argument
472 hns_ae_get_pauseparam(struct hnae_handle *handle, u32 *auto_neg, u32 *rx_en, u32 *tx_en) hns_ae_get_pauseparam() argument
487 hns_ae_set_promisc_mode(struct hnae_handle *handle, u32 en) hns_ae_set_promisc_mode() argument
495 hns_ae_set_pauseparam(struct hnae_handle *handle, u32 autoneg, u32 rx_en, u32 tx_en) hns_ae_set_pauseparam() argument
517 hns_ae_get_coalesce_usecs(struct hnae_handle *handle, u32 *tx_usecs, u32 *rx_usecs) hns_ae_get_coalesce_usecs() argument
529 hns_ae_get_max_coalesced_frames(struct hnae_handle *handle, u32 *tx_frames, u32 *rx_frames) hns_ae_get_max_coalesced_frames() argument
547 hns_ae_set_coalesce_usecs(struct hnae_handle *handle, u32 timeout) hns_ae_set_coalesce_usecs() argument
557 hns_ae_set_coalesce_frames(struct hnae_handle *handle, u32 tx_frames, u32 rx_frames) hns_ae_set_coalesce_frames() argument
587 hns_ae_get_coalesce_range(struct hnae_handle *handle, u32 *tx_frames_low, u32 *rx_frames_low, u32 *tx_frames_high, u32 *rx_frames_high, u32 *tx_usecs_low, u32 *rx_usecs_low, u32 *tx_usecs_high, u32 *rx_usecs_high) hns_ae_get_coalesce_range() argument
618 hns_ae_update_stats(struct hnae_handle *handle, struct net_device_stats *net_stats) hns_ae_update_stats() argument
701 hns_ae_get_stats(struct hnae_handle *handle, u64 *data) hns_ae_get_stats() argument
733 hns_ae_get_strings(struct hnae_handle *handle, u32 stringset, u8 *data) hns_ae_get_strings() argument
766 hns_ae_get_sset_count(struct hnae_handle *handle, int stringset) hns_ae_get_sset_count() argument
786 hns_ae_config_loopback(struct hnae_handle *handle, enum hnae_loop loop, int en) hns_ae_config_loopback() argument
812 hns_ae_update_led_status(struct hnae_handle *handle) hns_ae_update_led_status() argument
824 hns_ae_cpld_set_led_id(struct hnae_handle *handle, enum hnae_led_state status) hns_ae_cpld_set_led_id() argument
836 hns_ae_get_regs(struct hnae_handle *handle, void *data) hns_ae_get_regs() argument
861 hns_ae_get_regs_len(struct hnae_handle *handle) hns_ae_get_regs_len() argument
877 hns_ae_get_rss_key_size(struct hnae_handle *handle) hns_ae_get_rss_key_size() argument
882 hns_ae_get_rss_indir_size(struct hnae_handle *handle) hns_ae_get_rss_indir_size() argument
887 hns_ae_get_rss(struct hnae_handle *handle, u32 *indir, u8 *key, u8 *hfunc) hns_ae_get_rss() argument
908 hns_ae_set_rss(struct hnae_handle *handle, const u32 *indir, const u8 *key, const u8 hfunc) hns_ae_set_rss() argument
[all...]
/kernel/liteos_a/testsuites/unittest/basic/dynload/smoke/
H A Ddynload_test_004.cpp42 void *handle = nullptr; in Testcase() local
44 handle = dlopen(LIBCSO_REAL_PATH, 0); in Testcase()
45 ICUNIT_ASSERT_EQUAL(handle, NULL, handle); in Testcase()
47 handle = dlopen(LIBCSO_REAL_PATH, INVALID_MODE); in Testcase()
48 ICUNIT_ASSERT_EQUAL(handle, NULL, handle); in Testcase()
50 handle = dlopen(LIBCSO_REAL_PATH, MODE_WITHOUT_NOW_AND_LAZY); in Testcase()
51 ICUNIT_ASSERT_EQUAL(handle, NULL, handle); in Testcase()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
H A Dhnae3.h8 * ae handle (handle):
153 struct hnae3_handle *handle; member
154 int tqp_index; /* index in a handle */
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,
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A Dsch_offload.sh19 local handle=$1; shift
23 h=$(qdisc_stats_get $h1 "$handle" .handle)
24 [[ $h == '"'$handle'"' ]]
25 check_err $? "Qdisc with handle $handle does not exist"
27 offloaded=$(qdisc_stats_get $h1 "$handle" .offloaded)
29 check_fail $? "Qdisc with handle $handle offloaded, but should not be"
34 local handle
[all...]
/kernel/linux/linux-5.10/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 in qcafrm_fsm_decode()
[all...]
/kernel/linux/linux-6.6/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 in qcafrm_fsm_decode()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/powerplay/
H A Damd_powerplay.c78 static int pp_early_init(void *handle) in pp_early_init() argument
81 struct amdgpu_device *adev = handle; in pp_early_init()
134 static int pp_sw_init(void *handle) in pp_sw_init() argument
136 struct amdgpu_device *adev = handle; in pp_sw_init()
151 static int pp_sw_fini(void *handle) in pp_sw_fini() argument
153 struct amdgpu_device *adev = handle; in pp_sw_fini()
163 static int pp_hw_init(void *handle) in pp_hw_init() argument
166 struct amdgpu_device *adev = handle; in pp_hw_init()
177 static int pp_hw_fini(void *handle) in pp_hw_fini() argument
179 struct amdgpu_device *adev = handle; in pp_hw_fini()
220 pp_late_init(void *handle) pp_late_init() argument
234 pp_late_fini(void *handle) pp_late_fini() argument
244 pp_is_idle(void *handle) pp_is_idle() argument
249 pp_wait_for_idle(void *handle) pp_wait_for_idle() argument
254 pp_sw_reset(void *handle) pp_sw_reset() argument
259 pp_set_powergating_state(void *handle, enum amd_powergating_state state) pp_set_powergating_state() argument
265 pp_suspend(void *handle) pp_suspend() argument
275 pp_resume(void *handle) pp_resume() argument
283 pp_set_clockgating_state(void *handle, enum amd_clockgating_state state) pp_set_clockgating_state() argument
321 pp_dpm_load_fw(void *handle) pp_dpm_load_fw() argument
336 pp_dpm_fw_loading_complete(void *handle) pp_dpm_fw_loading_complete() argument
341 pp_set_clockgating_by_smu(void *handle, uint32_t msg_id) pp_set_clockgating_by_smu() argument
380 pp_dpm_force_performance_level(void *handle, enum amd_dpm_forced_level level) pp_dpm_force_performance_level() argument
398 pp_dpm_get_performance_level( void *handle) pp_dpm_get_performance_level() argument
409 pp_dpm_get_sclk(void *handle, bool low) pp_dpm_get_sclk() argument
423 pp_dpm_get_mclk(void *handle, bool low) pp_dpm_get_mclk() argument
437 pp_dpm_powergate_vce(void *handle, bool gate) pp_dpm_powergate_vce() argument
451 pp_dpm_powergate_uvd(void *handle, bool gate) pp_dpm_powergate_uvd() argument
465 pp_dpm_dispatch_tasks(void *handle, enum amd_pp_task task_id, enum amd_pm_state_type *user_state) pp_dpm_dispatch_tasks() argument
476 pp_dpm_get_current_power_state(void *handle) pp_dpm_get_current_power_state() argument
508 pp_dpm_set_fan_control_mode(void *handle, uint32_t mode) pp_dpm_set_fan_control_mode() argument
526 pp_dpm_get_fan_control_mode(void *handle, uint32_t *fan_mode) pp_dpm_get_fan_control_mode() argument
543 pp_dpm_set_fan_speed_pwm(void *handle, uint32_t speed) pp_dpm_set_fan_speed_pwm() argument
559 pp_dpm_get_fan_speed_pwm(void *handle, uint32_t *speed) pp_dpm_get_fan_speed_pwm() argument
575 pp_dpm_get_fan_speed_rpm(void *handle, uint32_t *rpm) pp_dpm_get_fan_speed_rpm() argument
591 pp_dpm_set_fan_speed_rpm(void *handle, uint32_t rpm) pp_dpm_set_fan_speed_rpm() argument
607 pp_dpm_get_pp_num_states(void *handle, struct pp_states_info *data) pp_dpm_get_pp_num_states() argument
643 pp_dpm_get_pp_table(void *handle, char **table) pp_dpm_get_pp_table() argument
654 amd_powerplay_reset(void *handle) amd_powerplay_reset() argument
670 pp_dpm_set_pp_table(void *handle, const char *buf, size_t size) pp_dpm_set_pp_table() argument
700 pp_dpm_force_clock_level(void *handle, enum pp_clock_type type, uint32_t mask) pp_dpm_force_clock_level() argument
721 pp_dpm_emit_clock_levels(void *handle, enum pp_clock_type type, char *buf, int *offset) pp_dpm_emit_clock_levels() argument
737 pp_dpm_print_clock_levels(void *handle, enum pp_clock_type type, char *buf) pp_dpm_print_clock_levels() argument
752 pp_dpm_get_sclk_od(void *handle) pp_dpm_get_sclk_od() argument
766 pp_dpm_set_sclk_od(void *handle, uint32_t value) pp_dpm_set_sclk_od() argument
781 pp_dpm_get_mclk_od(void *handle) pp_dpm_get_mclk_od() argument
795 pp_dpm_set_mclk_od(void *handle, uint32_t value) pp_dpm_set_mclk_od() argument
809 pp_dpm_read_sensor(void *handle, int idx, void *value, int *size) pp_dpm_read_sensor() argument
842 pp_dpm_get_vce_clock_state(void *handle, unsigned idx) pp_dpm_get_vce_clock_state() argument
854 pp_get_power_profile_mode(void *handle, char *buf) pp_get_power_profile_mode() argument
866 pp_set_power_profile_mode(void *handle, long *input, uint32_t size) pp_set_power_profile_mode() argument
881 pp_set_fine_grain_clk_vol(void *handle, uint32_t type, long *input, uint32_t size) pp_set_fine_grain_clk_vol() argument
894 pp_odn_edit_dpm_table(void *handle, enum PP_OD_DPM_TABLE_COMMAND type, long *input, uint32_t size) pp_odn_edit_dpm_table() argument
910 pp_dpm_set_mp1_state(void *handle, enum pp_mp1_state mp1_state) pp_dpm_set_mp1_state() argument
926 pp_dpm_switch_power_profile(void *handle, enum PP_SMC_POWER_PROFILE type, bool en) pp_dpm_switch_power_profile() argument
968 pp_set_power_limit(void *handle, uint32_t limit) pp_set_power_limit() argument
998 pp_get_power_limit(void *handle, uint32_t *limit, enum pp_power_limit_level pp_limit_level, enum pp_power_type power_type) pp_get_power_limit() argument
1033 pp_display_configuration_change(void *handle, const struct amd_pp_display_configuration *display_config) pp_display_configuration_change() argument
1045 pp_get_display_power_level(void *handle, struct amd_pp_simple_clock_info *output) pp_get_display_power_level() argument
1056 pp_get_current_clocks(void *handle, struct amd_pp_clock_info *clocks) pp_get_current_clocks() argument
1104 pp_get_clock_by_type(void *handle, enum amd_pp_clock_type type, struct amd_pp_clocks *clocks) pp_get_clock_by_type() argument
1117 pp_get_clock_by_type_with_latency(void *handle, enum amd_pp_clock_type type, struct pp_clock_levels_with_latency *clocks) pp_get_clock_by_type_with_latency() argument
1129 pp_get_clock_by_type_with_voltage(void *handle, enum amd_pp_clock_type type, struct pp_clock_levels_with_voltage *clocks) pp_get_clock_by_type_with_voltage() argument
1141 pp_set_watermarks_for_clocks_ranges(void *handle, void *clock_ranges) pp_set_watermarks_for_clocks_ranges() argument
1153 pp_display_clock_voltage_request(void *handle, struct pp_display_clock_request *clock) pp_display_clock_voltage_request() argument
1164 pp_get_display_mode_validation_clocks(void *handle, struct amd_pp_simple_clock_info *clocks) pp_get_display_mode_validation_clocks() argument
1181 pp_dpm_powergate_mmhub(void *handle) pp_dpm_powergate_mmhub() argument
1196 pp_dpm_powergate_gfx(void *handle, bool gate) pp_dpm_powergate_gfx() argument
1211 pp_dpm_powergate_acp(void *handle, bool gate) pp_dpm_powergate_acp() argument
1226 pp_dpm_powergate_sdma(void *handle, bool gate) pp_dpm_powergate_sdma() argument
1241 pp_set_powergating_by_smu(void *handle, uint32_t block_type, bool gate) pp_set_powergating_by_smu() argument
1277 pp_notify_smu_enable_pwe(void *handle) pp_notify_smu_enable_pwe() argument
1294 pp_enable_mgpu_fan_boost(void *handle) pp_enable_mgpu_fan_boost() argument
1310 pp_set_min_deep_sleep_dcefclk(void *handle, uint32_t clock) pp_set_min_deep_sleep_dcefclk() argument
1327 pp_set_hard_min_dcefclk_by_freq(void *handle, uint32_t clock) pp_set_hard_min_dcefclk_by_freq() argument
1344 pp_set_hard_min_fclk_by_freq(void *handle, uint32_t clock) pp_set_hard_min_fclk_by_freq() argument
1361 pp_set_active_display_count(void *handle, uint32_t count) pp_set_active_display_count() argument
1371 pp_get_asic_baco_capability(void *handle, bool *cap) pp_get_asic_baco_capability() argument
1388 pp_get_asic_baco_state(void *handle, int *state) pp_get_asic_baco_state() argument
1403 pp_set_asic_baco_state(void *handle, int state) pp_set_asic_baco_state() argument
1419 pp_get_ppfeature_status(void *handle, char *buf) pp_get_ppfeature_status() argument
1434 pp_set_ppfeature_status(void *handle, uint64_t ppfeature_masks) pp_set_ppfeature_status() argument
1449 pp_asic_reset_mode_2(void *handle) pp_asic_reset_mode_2() argument
1464 pp_smu_i2c_bus_access(void *handle, bool acquire) pp_smu_i2c_bus_access() argument
1479 pp_set_df_cstate(void *handle, enum pp_df_cstate state) pp_set_df_cstate() argument
1494 pp_set_xgmi_pstate(void *handle, uint32_t pstate) pp_set_xgmi_pstate() argument
1509 pp_get_gpu_metrics(void *handle, void **table) pp_get_gpu_metrics() argument
1522 pp_gfx_state_change_set(void *handle, uint32_t state) pp_gfx_state_change_set() argument
1538 pp_get_prv_buffer_details(void *handle, void **addr, size_t *size) pp_get_prv_buffer_details() argument
1559 pp_pm_compute_clocks(void *handle) pp_pm_compute_clocks() argument
[all...]
/kernel/linux/linux-5.10/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()
175 pp_late_init(void *handle) pp_late_init() argument
192 pp_late_fini(void *handle) pp_late_fini() argument
202 pp_is_idle(void *handle) pp_is_idle() argument
207 pp_wait_for_idle(void *handle) pp_wait_for_idle() argument
212 pp_sw_reset(void *handle) pp_sw_reset() argument
217 pp_set_powergating_state(void *handle, enum amd_powergating_state state) pp_set_powergating_state() argument
223 pp_suspend(void *handle) pp_suspend() argument
231 pp_resume(void *handle) pp_resume() argument
239 pp_set_clockgating_state(void *handle, enum amd_clockgating_state state) pp_set_clockgating_state() argument
277 pp_dpm_load_fw(void *handle) pp_dpm_load_fw() argument
292 pp_dpm_fw_loading_complete(void *handle) pp_dpm_fw_loading_complete() argument
297 pp_set_clockgating_by_smu(void *handle, uint32_t msg_id) pp_set_clockgating_by_smu() argument
348 pp_dpm_force_performance_level(void *handle, enum amd_dpm_forced_level level) pp_dpm_force_performance_level() argument
368 pp_dpm_get_performance_level( void *handle) pp_dpm_get_performance_level() argument
383 pp_dpm_get_sclk(void *handle, bool low) pp_dpm_get_sclk() argument
401 pp_dpm_get_mclk(void *handle, bool low) pp_dpm_get_mclk() argument
419 pp_dpm_powergate_vce(void *handle, bool gate) pp_dpm_powergate_vce() argument
435 pp_dpm_powergate_uvd(void *handle, bool gate) pp_dpm_powergate_uvd() argument
451 pp_dpm_dispatch_tasks(void *handle, enum amd_pp_task task_id, enum amd_pm_state_type *user_state) pp_dpm_dispatch_tasks() argument
467 pp_dpm_get_current_power_state(void *handle) pp_dpm_get_current_power_state() argument
502 pp_dpm_set_fan_control_mode(void *handle, uint32_t mode) pp_dpm_set_fan_control_mode() argument
518 pp_dpm_get_fan_control_mode(void *handle) pp_dpm_get_fan_control_mode() argument
536 pp_dpm_set_fan_speed_percent(void *handle, uint32_t percent) pp_dpm_set_fan_speed_percent() argument
554 pp_dpm_get_fan_speed_percent(void *handle, uint32_t *speed) pp_dpm_get_fan_speed_percent() argument
573 pp_dpm_get_fan_speed_rpm(void *handle, uint32_t *rpm) pp_dpm_get_fan_speed_rpm() argument
590 pp_dpm_set_fan_speed_rpm(void *handle, uint32_t rpm) pp_dpm_set_fan_speed_rpm() argument
608 pp_dpm_get_pp_num_states(void *handle, struct pp_states_info *data) pp_dpm_get_pp_num_states() argument
647 pp_dpm_get_pp_table(void *handle, char **table) pp_dpm_get_pp_table() argument
662 amd_powerplay_reset(void *handle) amd_powerplay_reset() argument
678 pp_dpm_set_pp_table(void *handle, const char *buf, size_t size) pp_dpm_set_pp_table() argument
715 pp_dpm_force_clock_level(void *handle, enum pp_clock_type type, uint32_t mask) pp_dpm_force_clock_level() argument
740 pp_dpm_print_clock_levels(void *handle, enum pp_clock_type type, char *buf) pp_dpm_print_clock_levels() argument
759 pp_dpm_get_sclk_od(void *handle) pp_dpm_get_sclk_od() argument
777 pp_dpm_set_sclk_od(void *handle, uint32_t value) pp_dpm_set_sclk_od() argument
796 pp_dpm_get_mclk_od(void *handle) pp_dpm_get_mclk_od() argument
814 pp_dpm_set_mclk_od(void *handle, uint32_t value) pp_dpm_set_mclk_od() argument
832 pp_dpm_read_sensor(void *handle, int idx, void *value, int *size) pp_dpm_read_sensor() argument
863 pp_dpm_get_vce_clock_state(void *handle, unsigned idx) pp_dpm_get_vce_clock_state() argument
875 pp_get_power_profile_mode(void *handle, char *buf) pp_get_power_profile_mode() argument
890 pp_set_power_profile_mode(void *handle, long *input, uint32_t size) pp_set_power_profile_mode() argument
914 pp_set_fine_grain_clk_vol(void *handle, uint32_t type, long *input, uint32_t size) pp_set_fine_grain_clk_vol() argument
927 pp_odn_edit_dpm_table(void *handle, enum PP_OD_DPM_TABLE_COMMAND type, long *input, uint32_t size) pp_odn_edit_dpm_table() argument
943 pp_dpm_set_mp1_state(void *handle, enum pp_mp1_state mp1_state) pp_dpm_set_mp1_state() argument
959 pp_dpm_switch_power_profile(void *handle, enum PP_SMC_POWER_PROFILE type, bool en) pp_dpm_switch_power_profile() argument
1006 pp_set_power_limit(void *handle, uint32_t limit) pp_set_power_limit() argument
1038 pp_get_power_limit(void *handle, uint32_t *limit, bool default_limit) pp_get_power_limit() argument
1062 pp_display_configuration_change(void *handle, const struct amd_pp_display_configuration *display_config) pp_display_configuration_change() argument
1076 pp_get_display_power_level(void *handle, struct amd_pp_simple_clock_info *output) pp_get_display_power_level() argument
1091 pp_get_current_clocks(void *handle, struct amd_pp_clock_info *clocks) pp_get_current_clocks() argument
1143 pp_get_clock_by_type(void *handle, enum amd_pp_clock_type type, struct amd_pp_clocks *clocks) pp_get_clock_by_type() argument
1160 pp_get_clock_by_type_with_latency(void *handle, enum amd_pp_clock_type type, struct pp_clock_levels_with_latency *clocks) pp_get_clock_by_type_with_latency() argument
1176 pp_get_clock_by_type_with_voltage(void *handle, enum amd_pp_clock_type type, struct pp_clock_levels_with_voltage *clocks) pp_get_clock_by_type_with_voltage() argument
1194 pp_set_watermarks_for_clocks_ranges(void *handle, void *clock_ranges) pp_set_watermarks_for_clocks_ranges() argument
1211 pp_display_clock_voltage_request(void *handle, struct pp_display_clock_request *clock) pp_display_clock_voltage_request() argument
1227 pp_get_display_mode_validation_clocks(void *handle, struct amd_pp_simple_clock_info *clocks) pp_get_display_mode_validation_clocks() argument
1247 pp_dpm_powergate_mmhub(void *handle) pp_dpm_powergate_mmhub() argument
1262 pp_dpm_powergate_gfx(void *handle, bool gate) pp_dpm_powergate_gfx() argument
1277 pp_dpm_powergate_acp(void *handle, bool gate) pp_dpm_powergate_acp() argument
1292 pp_dpm_powergate_sdma(void *handle, bool gate) pp_dpm_powergate_sdma() argument
1307 pp_set_powergating_by_smu(void *handle, uint32_t block_type, bool gate) pp_set_powergating_by_smu() argument
1338 pp_notify_smu_enable_pwe(void *handle) pp_notify_smu_enable_pwe() argument
1357 pp_enable_mgpu_fan_boost(void *handle) pp_enable_mgpu_fan_boost() argument
1375 pp_set_min_deep_sleep_dcefclk(void *handle, uint32_t clock) pp_set_min_deep_sleep_dcefclk() argument
1394 pp_set_hard_min_dcefclk_by_freq(void *handle, uint32_t clock) pp_set_hard_min_dcefclk_by_freq() argument
1413 pp_set_hard_min_fclk_by_freq(void *handle, uint32_t clock) pp_set_hard_min_fclk_by_freq() argument
1432 pp_set_active_display_count(void *handle, uint32_t count) pp_set_active_display_count() argument
1447 pp_get_asic_baco_capability(void *handle, bool *cap) pp_get_asic_baco_capability() argument
1466 pp_get_asic_baco_state(void *handle, int *state) pp_get_asic_baco_state() argument
1483 pp_set_asic_baco_state(void *handle, int state) pp_set_asic_baco_state() argument
1501 pp_get_ppfeature_status(void *handle, char *buf) pp_get_ppfeature_status() argument
1521 pp_set_ppfeature_status(void *handle, uint64_t ppfeature_masks) pp_set_ppfeature_status() argument
1541 pp_asic_reset_mode_2(void *handle) pp_asic_reset_mode_2() argument
1561 pp_smu_i2c_bus_access(void *handle, bool acquire) pp_smu_i2c_bus_access() argument
1581 pp_set_df_cstate(void *handle, enum pp_df_cstate state) pp_set_df_cstate() argument
1598 pp_set_xgmi_pstate(void *handle, uint32_t pstate) pp_set_xgmi_pstate() argument
1615 pp_get_gpu_metrics(void *handle, void **table) pp_get_gpu_metrics() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/
H A Dhnae3.h8 * ae handle (handle):
194 struct hnae3_handle *handle; member
195 int tqp_index; /* index in a handle */
389 int (*init_instance)(struct hnae3_handle *handle);
390 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
391 void (*link_status_change)(struct hnae3_handle *handle, bool state);
392 int (*reset_notify)(struct hnae3_handle *handle,
394 void (*process_hw_error)(struct hnae3_handle *handle,
420 /* This struct defines the operation on the handle
[all...]
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/
H A 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_RATE in scmi_clock_describe_rates_get()
217 scmi_clock_rate_get(const struct scmi_handle *handle, u32 clk_id, u64 *value) scmi_clock_rate_get() argument
237 scmi_clock_rate_set(const struct scmi_handle *handle, u32 clk_id, u64 rate) scmi_clock_rate_set() argument
274 scmi_clock_config_set(const struct scmi_handle *handle, u32 clk_id, u32 config) scmi_clock_config_set() argument
295 scmi_clock_enable(const struct scmi_handle *handle, u32 clk_id) scmi_clock_enable() argument
300 scmi_clock_disable(const struct scmi_handle *handle, u32 clk_id) scmi_clock_disable() argument
305 scmi_clock_count_get(const struct scmi_handle *handle) scmi_clock_count_get() argument
313 scmi_clock_info_get(const struct scmi_handle *handle, u32 clk_id) scmi_clock_info_get() argument
333 scmi_clock_protocol_init(struct scmi_handle *handle) scmi_clock_protocol_init() argument
[all...]
H A Dbase.c53 * @handle: SCMI entity handle
57 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()
84 * @handle: SCMI entity handle
90 scmi_base_vendor_id_get(const struct scmi_handle *handle, boo argument
131 scmi_base_implementation_version_get(const struct scmi_handle *handle) scmi_base_implementation_version_get() argument
163 scmi_base_implementation_list_get(const struct scmi_handle *handle, u8 *protocols_imp) scmi_base_implementation_list_get() argument
221 scmi_base_discover_agent_get(const struct scmi_handle *handle, int id, char *name) scmi_base_discover_agent_get() argument
244 scmi_base_error_notify(const struct scmi_handle *handle, bool enable) scmi_base_error_notify() argument
265 scmi_base_set_notify_enabled(const struct scmi_handle *handle, u8 evt_id, u32 src_id, bool enable) scmi_base_set_notify_enabled() argument
277 scmi_base_fill_custom_report(const struct scmi_handle *handle, u8 evt_id, ktime_t timestamp, const void *payld, size_t payld_sz, void *report, u32 *src_id) scmi_base_fill_custom_report() argument
327 const struct scmi_handle *handle = h; scmi_base_protocol_init() local
[all...]
/kernel/linux/linux-5.10/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 in hns_ae_wait_flow_down()
185 hns_ae_ring_enable_all(struct hnae_handle *handle, int val) hns_ae_ring_enable_all() argument
210 hns_ae_set_mac_address(struct hnae_handle *handle, void *p) hns_ae_set_mac_address() argument
230 hns_ae_add_uc_address(struct hnae_handle *handle, const unsigned char *addr) hns_ae_add_uc_address() argument
241 hns_ae_rm_uc_address(struct hnae_handle *handle, const unsigned char *addr) hns_ae_rm_uc_address() argument
252 hns_ae_set_multicast_one(struct hnae_handle *handle, void *addr) hns_ae_set_multicast_one() argument
285 hns_ae_clr_multicast(struct hnae_handle *handle) hns_ae_clr_multicast() argument
295 hns_ae_set_mtu(struct hnae_handle *handle, int new_mtu) hns_ae_set_mtu() argument
326 hns_ae_set_tso_stats(struct hnae_handle *handle, int enable) hns_ae_set_tso_stats() argument
333 hns_ae_start(struct hnae_handle *handle) hns_ae_start() argument
359 hns_ae_stop(struct hnae_handle *handle) hns_ae_stop() argument
380 hns_ae_reset(struct hnae_handle *handle) hns_ae_reset() argument
414 hns_ae_get_link_status(struct hnae_handle *handle) hns_ae_get_link_status() argument
424 hns_ae_get_mac_info(struct hnae_handle *handle, u8 *auto_neg, u16 *speed, u8 *duplex) hns_ae_get_mac_info() argument
432 hns_ae_need_adjust_link(struct hnae_handle *handle, int speed, int duplex) hns_ae_need_adjust_link() argument
440 hns_ae_adjust_link(struct hnae_handle *handle, int speed, int duplex) hns_ae_adjust_link() argument
475 hns_ae_get_pauseparam(struct hnae_handle *handle, u32 *auto_neg, u32 *rx_en, u32 *tx_en) hns_ae_get_pauseparam() argument
490 hns_ae_set_autoneg(struct hnae_handle *handle, u8 enable) hns_ae_set_autoneg() argument
497 hns_ae_set_promisc_mode(struct hnae_handle *handle, u32 en) hns_ae_set_promisc_mode() argument
505 hns_ae_get_autoneg(struct hnae_handle *handle) hns_ae_get_autoneg() argument
516 hns_ae_set_pauseparam(struct hnae_handle *handle, u32 autoneg, u32 rx_en, u32 tx_en) hns_ae_set_pauseparam() argument
538 hns_ae_get_coalesce_usecs(struct hnae_handle *handle, u32 *tx_usecs, u32 *rx_usecs) hns_ae_get_coalesce_usecs() argument
550 hns_ae_get_max_coalesced_frames(struct hnae_handle *handle, u32 *tx_frames, u32 *rx_frames) hns_ae_get_max_coalesced_frames() argument
568 hns_ae_set_coalesce_usecs(struct hnae_handle *handle, u32 timeout) hns_ae_set_coalesce_usecs() argument
578 hns_ae_set_coalesce_frames(struct hnae_handle *handle, u32 tx_frames, u32 rx_frames) hns_ae_set_coalesce_frames() argument
608 hns_ae_get_coalesce_range(struct hnae_handle *handle, u32 *tx_frames_low, u32 *rx_frames_low, u32 *tx_frames_high, u32 *rx_frames_high, u32 *tx_usecs_low, u32 *rx_usecs_low, u32 *tx_usecs_high, u32 *rx_usecs_high) hns_ae_get_coalesce_range() argument
639 hns_ae_update_stats(struct hnae_handle *handle, struct net_device_stats *net_stats) hns_ae_update_stats() argument
722 hns_ae_get_stats(struct hnae_handle *handle, u64 *data) hns_ae_get_stats() argument
754 hns_ae_get_strings(struct hnae_handle *handle, u32 stringset, u8 *data) hns_ae_get_strings() argument
787 hns_ae_get_sset_count(struct hnae_handle *handle, int stringset) hns_ae_get_sset_count() argument
807 hns_ae_config_loopback(struct hnae_handle *handle, enum hnae_loop loop, int en) hns_ae_config_loopback() argument
833 hns_ae_update_led_status(struct hnae_handle *handle) hns_ae_update_led_status() argument
845 hns_ae_cpld_set_led_id(struct hnae_handle *handle, enum hnae_led_state status) hns_ae_cpld_set_led_id() argument
857 hns_ae_get_regs(struct hnae_handle *handle, void *data) hns_ae_get_regs() argument
882 hns_ae_get_regs_len(struct hnae_handle *handle) hns_ae_get_regs_len() argument
898 hns_ae_get_rss_key_size(struct hnae_handle *handle) hns_ae_get_rss_key_size() argument
903 hns_ae_get_rss_indir_size(struct hnae_handle *handle) hns_ae_get_rss_indir_size() argument
908 hns_ae_get_rss(struct hnae_handle *handle, u32 *indir, u8 *key, u8 *hfunc) hns_ae_get_rss() argument
929 hns_ae_set_rss(struct hnae_handle *handle, const u32 *indir, const u8 *key, const u8 hfunc) hns_ae_set_rss() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/include/
H A Dkgd_pp_interface.h314 int (*pre_set_power_state)(void *handle);
315 int (*set_power_state)(void *handle);
316 void (*post_set_power_state)(void *handle);
317 void (*display_configuration_changed)(void *handle);
318 void (*print_power_state)(void *handle, void *ps);
319 bool (*vblank_too_short)(void *handle);
320 void (*enable_bapm)(void *handle, bool enable);
321 int (*check_state_equal)(void *handle,
326 int (*set_fan_control_mode)(void *handle, u32 mode);
327 int (*get_fan_control_mode)(void *handle, u3
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dpost_act.c81 struct mlx5e_post_act_handle *handle) in mlx5e_tc_post_act_offload()
94 mlx5e_tc_match_to_reg_match(spec, FTEID_TO_REG, handle->id, MLX5_POST_ACTION_MASK); in mlx5e_tc_post_act_offload()
96 handle->rule = mlx5e_tc_rule_offload(post_act->priv, spec, handle->attr); in mlx5e_tc_post_act_offload()
97 if (IS_ERR(handle->rule)) { in mlx5e_tc_post_act_offload()
98 err = PTR_ERR(handle->rule); in mlx5e_tc_post_act_offload()
114 struct mlx5e_post_act_handle *handle; in mlx5e_tc_post_act_add() local
120 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in mlx5e_tc_post_act_add()
121 if (!handle) in mlx5e_tc_post_act_add()
80 mlx5e_tc_post_act_offload(struct mlx5e_post_act *post_act, struct mlx5e_post_act_handle *handle) mlx5e_tc_post_act_offload() argument
152 mlx5e_tc_post_act_unoffload(struct mlx5e_post_act *post_act, struct mlx5e_post_act_handle *handle) mlx5e_tc_post_act_unoffload() argument
160 mlx5e_tc_post_act_del(struct mlx5e_post_act *post_act, struct mlx5e_post_act_handle *handle) mlx5e_tc_post_act_del() argument
176 mlx5e_tc_post_act_set_handle(struct mlx5_core_dev *dev, struct mlx5e_post_act_handle *handle, struct mlx5e_tc_mod_hdr_acts *acts) mlx5e_tc_post_act_set_handle() argument
[all...]

Completed in 23 milliseconds

12345678910>>...128