/Linux-v5.4/drivers/crypto/qat/qat_common/ |
D | qat_hal.c | 79 #define AE(handle, ae) handle->hal_handle->aes[ae] argument 112 void qat_hal_set_live_ctx(struct icp_qat_fw_loader_handle *handle, in qat_hal_set_live_ctx() argument 115 AE(handle, ae).live_ctx_mask = ctx_mask; in qat_hal_set_live_ctx() 119 static int qat_hal_rd_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_rd_ae_csr() argument 126 value = GET_AE_CSR(handle, ae, csr); in qat_hal_rd_ae_csr() 127 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_rd_ae_csr() 135 static int qat_hal_wr_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_wr_ae_csr() argument 142 SET_AE_CSR(handle, ae, csr, value); in qat_hal_wr_ae_csr() 143 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_wr_ae_csr() 151 static void qat_hal_get_wakeup_event(struct icp_qat_fw_loader_handle *handle, in qat_hal_get_wakeup_event() argument [all …]
|
D | icp_qat_hal.h | 134 #define SET_CAP_CSR(handle, csr, val) \ argument 135 ADF_CSR_WR(handle->hal_cap_g_ctl_csr_addr_v, csr, val) 136 #define GET_CAP_CSR(handle, csr) \ argument 137 ADF_CSR_RD(handle->hal_cap_g_ctl_csr_addr_v, csr) 138 #define SET_GLB_CSR(handle, csr, val) SET_CAP_CSR(handle, csr + GLOBAL_CSR, val) argument 139 #define GET_GLB_CSR(handle, csr) GET_CAP_CSR(handle, GLOBAL_CSR + csr) argument 140 #define AE_CSR(handle, ae) \ argument 141 ((char __iomem *)handle->hal_cap_ae_local_csr_addr_v + \ 142 ((ae & handle->hal_handle->ae_mask) << 12)) 143 #define AE_CSR_ADDR(handle, ae, csr) (AE_CSR(handle, ae) + (0x3ff & csr)) argument [all …]
|
D | qat_uclo.c | 167 static void qat_uclo_wr_sram_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_sram_by_words() argument 176 SRAM_WRITE(handle, addr, outval); in qat_uclo_wr_sram_by_words() 183 static void qat_uclo_wr_umem_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_umem_by_words() argument 195 qat_hal_wr_umem(handle, ae, addr++, 1, &outval); in qat_uclo_wr_umem_by_words() 201 static void qat_uclo_batch_wr_umem(struct icp_qat_fw_loader_handle *handle, in qat_uclo_batch_wr_umem() argument 218 qat_uclo_wr_umem_by_words(handle, ae, addr, value, size); in qat_uclo_batch_wr_umem() 224 qat_uclo_cleanup_batch_init_list(struct icp_qat_fw_loader_handle *handle, in qat_uclo_cleanup_batch_init_list() argument 260 static int qat_uclo_fetch_initmem_ae(struct icp_qat_fw_loader_handle *handle, in qat_uclo_fetch_initmem_ae() argument 264 struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle; in qat_uclo_fetch_initmem_ae() 292 *handle, struct icp_qat_uof_initmem in qat_uclo_create_batch_init_list() [all …]
|
/Linux-v5.4/drivers/gpu/drm/amd/include/ |
D | kgd_pp_interface.h | 230 int (*pre_set_power_state)(void *handle); 231 int (*set_power_state)(void *handle); 232 void (*post_set_power_state)(void *handle); 233 void (*display_configuration_changed)(void *handle); 234 void (*print_power_state)(void *handle, void *ps); 235 bool (*vblank_too_short)(void *handle); 236 void (*enable_bapm)(void *handle, bool enable); 237 int (*check_state_equal)(void *handle, 242 void (*set_fan_control_mode)(void *handle, u32 mode); 243 u32 (*get_fan_control_mode)(void *handle); [all …]
|
D | amd_shared.h | 161 int (*early_init)(void *handle); 163 int (*late_init)(void *handle); 165 int (*sw_init)(void *handle); 167 int (*sw_fini)(void *handle); 169 int (*hw_init)(void *handle); 171 int (*hw_fini)(void *handle); 173 void (*late_fini)(void *handle); 175 int (*suspend)(void *handle); 177 int (*resume)(void *handle); 179 bool (*is_idle)(void *handle); [all …]
|
/Linux-v5.4/fs/ext4/ |
D | ext4_jbd2.c | 13 handle_t *handle = current->journal_info; in ext4_get_nojournal() local 14 unsigned long ref_cnt = (unsigned long)handle; in ext4_get_nojournal() 19 handle = (handle_t *)ref_cnt; in ext4_get_nojournal() 21 current->journal_info = handle; in ext4_get_nojournal() 22 return handle; in ext4_get_nojournal() 27 static void ext4_put_nojournal(handle_t *handle) in ext4_put_nojournal() argument 29 unsigned long ref_cnt = (unsigned long)handle; in ext4_put_nojournal() 34 handle = (handle_t *)ref_cnt; in ext4_put_nojournal() 36 current->journal_info = handle; in ext4_put_nojournal() 85 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) in __ext4_journal_stop() argument [all …]
|
D | ext4_jbd2.h | 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->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, 225 int ext4_mark_inode_dirty(handle_t *handle, struct inode *inode); [all …]
|
D | migrate.c | 21 static int finish_range(handle_t *handle, struct inode *inode, in finish_range() argument 56 if (needed && ext4_handle_has_enough_credits(handle, in finish_range() 59 retval = ext4_journal_restart(handle, needed); in finish_range() 64 retval = ext4_journal_extend(handle, needed); in finish_range() 70 retval = ext4_journal_restart(handle, needed); in finish_range() 76 retval = ext4_ext_insert_extent(handle, inode, &path, &newext, 0); in finish_range() 85 static int update_extent_range(handle_t *handle, struct inode *inode, in update_extent_range() argument 103 retval = finish_range(handle, inode, lb); in update_extent_range() 110 static int update_ind_extent_range(handle_t *handle, struct inode *inode, in update_ind_extent_range() argument 126 retval = update_extent_range(handle, inode, in update_ind_extent_range() [all …]
|
/Linux-v5.4/drivers/net/ethernet/qualcomm/ |
D | qca_7k_common.c | 77 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.4/drivers/net/ethernet/hisilicon/hns3/ |
D | hnae3.h | 89 struct hnae3_handle *handle; member 215 int (*init_instance)(struct hnae3_handle *handle); 216 void (*uninit_instance)(struct hnae3_handle *handle, bool reset); 217 void (*link_status_change)(struct hnae3_handle *handle, bool state); 218 int (*setup_tc)(struct hnae3_handle *handle, u8 tc); 219 int (*reset_notify)(struct hnae3_handle *handle, 221 void (*process_hw_error)(struct hnae3_handle *handle, 379 int (*start)(struct hnae3_handle *handle); 380 void (*stop)(struct hnae3_handle *handle); 381 int (*client_start)(struct hnae3_handle *handle); [all …]
|
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ae_adapt.c | 18 static struct hns_mac_cb *hns_get_mac_cb(struct hnae_handle *handle) in hns_get_mac_cb() argument 20 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_get_mac_cb() 30 static struct hns_ppe_cb *hns_get_ppe_cb(struct hnae_handle *handle) in hns_get_ppe_cb() argument 34 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_get_ppe_cb() 141 static void hns_ae_put_handle(struct hnae_handle *handle) in hns_ae_put_handle() argument 143 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_ae_put_handle() 146 for (i = 0; i < handle->q_num; i++) in hns_ae_put_handle() 147 hns_ae_get_ring_pair(handle->qs[i])->used_by_vf = 0; in hns_ae_put_handle() 152 static int hns_ae_wait_flow_down(struct hnae_handle *handle) in hns_ae_wait_flow_down() argument 160 for (i = 0; i < handle->q_num; i++) { in hns_ae_wait_flow_down() [all …]
|
/Linux-v5.4/drivers/firmware/arm_scmi/ |
D | base.c | 33 static int scmi_base_attributes_get(const struct scmi_handle *handle) in scmi_base_attributes_get() argument 38 struct scmi_revision_info *rev = handle->version; in scmi_base_attributes_get() 40 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_base_attributes_get() 45 ret = scmi_do_xfer(handle, t); in scmi_base_attributes_get() 52 scmi_xfer_put(handle, t); in scmi_base_attributes_get() 66 scmi_base_vendor_id_get(const struct scmi_handle *handle, bool sub_vendor) in scmi_base_vendor_id_get() argument 72 struct scmi_revision_info *rev = handle->version; in scmi_base_vendor_id_get() 84 ret = scmi_xfer_get_init(handle, cmd, SCMI_PROTOCOL_BASE, 0, size, &t); in scmi_base_vendor_id_get() 88 ret = scmi_do_xfer(handle, t); in scmi_base_vendor_id_get() 92 scmi_xfer_put(handle, t); in scmi_base_vendor_id_get() [all …]
|
D | reset.c | 55 static int scmi_reset_attributes_get(const struct scmi_handle *handle, in scmi_reset_attributes_get() argument 62 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_reset_attributes_get() 67 ret = scmi_do_xfer(handle, t); in scmi_reset_attributes_get() 73 scmi_xfer_put(handle, t); in scmi_reset_attributes_get() 78 scmi_reset_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_reset_domain_attributes_get() argument 85 ret = scmi_xfer_get_init(handle, RESET_DOMAIN_ATTRIBUTES, in scmi_reset_domain_attributes_get() 94 ret = scmi_do_xfer(handle, t); in scmi_reset_domain_attributes_get() 106 scmi_xfer_put(handle, t); in scmi_reset_domain_attributes_get() 110 static int scmi_reset_num_domains_get(const struct scmi_handle *handle) in scmi_reset_num_domains_get() argument 112 struct scmi_reset_info *pi = handle->reset_priv; in scmi_reset_num_domains_get() [all …]
|
D | clock.c | 74 static int scmi_clock_protocol_attributes_get(const struct scmi_handle *handle, in scmi_clock_protocol_attributes_get() argument 81 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_clock_protocol_attributes_get() 88 ret = scmi_do_xfer(handle, t); in scmi_clock_protocol_attributes_get() 94 scmi_xfer_put(handle, t); in scmi_clock_protocol_attributes_get() 98 static int scmi_clock_attributes_get(const struct scmi_handle *handle, in scmi_clock_attributes_get() argument 105 ret = scmi_xfer_get_init(handle, CLOCK_ATTRIBUTES, SCMI_PROTOCOL_CLOCK, in scmi_clock_attributes_get() 113 ret = scmi_do_xfer(handle, t); in scmi_clock_attributes_get() 119 scmi_xfer_put(handle, t); in scmi_clock_attributes_get() 124 scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id, in scmi_clock_describe_rates_get() argument 136 ret = scmi_xfer_get_init(handle, CLOCK_DESCRIBE_RATES, in scmi_clock_describe_rates_get() [all …]
|
D | power.c | 59 static int scmi_power_attributes_get(const struct scmi_handle *handle, in scmi_power_attributes_get() argument 66 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_power_attributes_get() 73 ret = scmi_do_xfer(handle, t); in scmi_power_attributes_get() 81 scmi_xfer_put(handle, t); in scmi_power_attributes_get() 86 scmi_power_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_power_domain_attributes_get() argument 93 ret = scmi_xfer_get_init(handle, POWER_DOMAIN_ATTRIBUTES, in scmi_power_domain_attributes_get() 102 ret = scmi_do_xfer(handle, t); in scmi_power_domain_attributes_get() 112 scmi_xfer_put(handle, t); in scmi_power_domain_attributes_get() 117 scmi_power_state_set(const struct scmi_handle *handle, u32 domain, u32 state) in scmi_power_state_set() argument 123 ret = scmi_xfer_get_init(handle, POWER_STATE_SET, SCMI_PROTOCOL_POWER, in scmi_power_state_set() [all …]
|
D | perf.c | 155 static int scmi_perf_attributes_get(const struct scmi_handle *handle, in scmi_perf_attributes_get() argument 162 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_perf_attributes_get() 169 ret = scmi_do_xfer(handle, t); in scmi_perf_attributes_get() 180 scmi_xfer_put(handle, t); in scmi_perf_attributes_get() 185 scmi_perf_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_perf_domain_attributes_get() argument 192 ret = scmi_xfer_get_init(handle, PERF_DOMAIN_ATTRIBUTES, in scmi_perf_domain_attributes_get() 201 ret = scmi_do_xfer(handle, t); in scmi_perf_domain_attributes_get() 225 scmi_xfer_put(handle, t); in scmi_perf_domain_attributes_get() 237 scmi_perf_describe_levels_get(const struct scmi_handle *handle, u32 domain, in scmi_perf_describe_levels_get() argument 248 ret = scmi_xfer_get_init(handle, PERF_DESCRIBE_LEVELS, in scmi_perf_describe_levels_get() [all …]
|
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/ |
D | amd_powerplay.c | 75 static int pp_early_init(void *handle) in pp_early_init() argument 78 struct amdgpu_device *adev = handle; in pp_early_init() 92 static int pp_sw_init(void *handle) in pp_sw_init() argument 94 struct amdgpu_device *adev = handle; in pp_sw_init() 105 static int pp_sw_fini(void *handle) in pp_sw_fini() argument 107 struct amdgpu_device *adev = handle; in pp_sw_fini() 118 static int pp_hw_init(void *handle) in pp_hw_init() argument 121 struct amdgpu_device *adev = handle; in pp_hw_init() 132 static int pp_hw_fini(void *handle) in pp_hw_fini() argument 134 struct amdgpu_device *adev = handle; in pp_hw_fini() [all …]
|
/Linux-v5.4/drivers/pci/hotplug/ |
D | acpi_pcihp.c | 38 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.4/drivers/misc/vmw_vmci/ |
D | vmci_resource.c | 30 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.4/kernel/events/ |
D | ring_buffer.c | 20 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 ring_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 ring_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.4/drivers/reset/ |
D | reset-scmi.c | 21 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.4/include/linux/ |
D | scmi_protocol.h | 67 int (*count_get)(const struct scmi_handle *handle); 70 (const struct scmi_handle *handle, u32 clk_id); 71 int (*rate_get)(const struct scmi_handle *handle, u32 clk_id, 73 int (*rate_set)(const struct scmi_handle *handle, u32 clk_id, 75 int (*enable)(const struct scmi_handle *handle, u32 clk_id); 76 int (*disable)(const struct scmi_handle *handle, u32 clk_id); 98 int (*limits_set)(const struct scmi_handle *handle, u32 domain, 100 int (*limits_get)(const struct scmi_handle *handle, u32 domain, 102 int (*level_set)(const struct scmi_handle *handle, u32 domain, 104 int (*level_get)(const struct scmi_handle *handle, u32 domain, [all …]
|
/Linux-v5.4/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_shim.c | 15 VCHIQ_SERVICE_HANDLE_T handle; member 39 int32_t vchi_msg_peek(VCHI_SERVICE_HANDLE_T handle, in vchi_msg_peek() argument 44 struct shim_service *service = (struct shim_service *)handle; in vchi_msg_peek() 74 int32_t vchi_msg_remove(VCHI_SERVICE_HANDLE_T handle) in vchi_msg_remove() argument 76 struct shim_service *service = (struct shim_service *)handle; in vchi_msg_remove() 81 vchiq_release_message(service->handle, header); in vchi_msg_remove() 102 int32_t vchi_msg_queue(VCHI_SERVICE_HANDLE_T handle, in vchi_msg_queue() argument 108 struct shim_service *service = (struct shim_service *)handle; in vchi_msg_queue() 112 status = vchiq_queue_message(service->handle, in vchi_msg_queue() 142 vchi_queue_kernel_message(VCHI_SERVICE_HANDLE_T handle, in vchi_queue_kernel_message() argument [all …]
|
/Linux-v5.4/drivers/input/ |
D | evbug.c | 25 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.4/include/linux/soc/ti/ |
D | ti_sci_protocol.h | 37 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 …]
|