/Linux-v4.19/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-v4.19/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-v4.19/drivers/gpu/drm/amd/include/ |
D | kgd_pp_interface.h | 201 int (*pre_set_power_state)(void *handle); 202 int (*set_power_state)(void *handle); 203 void (*post_set_power_state)(void *handle); 204 void (*display_configuration_changed)(void *handle); 205 void (*print_power_state)(void *handle, void *ps); 206 bool (*vblank_too_short)(void *handle); 207 void (*enable_bapm)(void *handle, bool enable); 208 int (*check_state_equal)(void *handle, 213 void (*set_fan_control_mode)(void *handle, u32 mode); 214 u32 (*get_fan_control_mode)(void *handle); [all …]
|
D | amd_shared.h | 146 int (*early_init)(void *handle); 148 int (*late_init)(void *handle); 150 int (*sw_init)(void *handle); 152 int (*sw_fini)(void *handle); 154 int (*hw_init)(void *handle); 156 int (*hw_fini)(void *handle); 158 void (*late_fini)(void *handle); 160 int (*suspend)(void *handle); 162 int (*resume)(void *handle); 164 bool (*is_idle)(void *handle); [all …]
|
/Linux-v4.19/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-v4.19/drivers/net/ethernet/hisilicon/hns3/ |
D | hnae3.h | 79 struct hnae3_handle *handle; member 153 int (*init_instance)(struct hnae3_handle *handle); 154 void (*uninit_instance)(struct hnae3_handle *handle, bool reset); 155 void (*link_status_change)(struct hnae3_handle *handle, bool state); 156 int (*setup_tc)(struct hnae3_handle *handle, u8 tc); 157 int (*reset_notify)(struct hnae3_handle *handle, 297 int (*start)(struct hnae3_handle *handle); 298 void (*stop)(struct hnae3_handle *handle); 299 int (*get_status)(struct hnae3_handle *handle); 300 void (*get_ksettings_an_result)(struct hnae3_handle *handle, [all …]
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ae_adapt.c | 22 static struct hns_mac_cb *hns_get_mac_cb(struct hnae_handle *handle) in hns_get_mac_cb() argument 24 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_get_mac_cb() 34 static struct hns_ppe_cb *hns_get_ppe_cb(struct hnae_handle *handle) in hns_get_ppe_cb() argument 38 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_get_ppe_cb() 145 static void hns_ae_put_handle(struct hnae_handle *handle) in hns_ae_put_handle() argument 147 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_ae_put_handle() 154 for (i = 0; i < handle->q_num; i++) in hns_ae_put_handle() 155 hns_ae_get_ring_pair(handle->qs[i])->used_by_vf = 0; in hns_ae_put_handle() 158 static int hns_ae_wait_flow_down(struct hnae_handle *handle) in hns_ae_wait_flow_down() argument 166 for (i = 0; i < handle->q_num; i++) { in hns_ae_wait_flow_down() [all …]
|
/Linux-v4.19/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 | clock.c | 73 static int scmi_clock_protocol_attributes_get(const struct scmi_handle *handle, in scmi_clock_protocol_attributes_get() argument 80 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_clock_protocol_attributes_get() 87 ret = scmi_do_xfer(handle, t); in scmi_clock_protocol_attributes_get() 93 scmi_xfer_put(handle, t); in scmi_clock_protocol_attributes_get() 97 static int scmi_clock_attributes_get(const struct scmi_handle *handle, in scmi_clock_attributes_get() argument 104 ret = scmi_xfer_get_init(handle, CLOCK_ATTRIBUTES, SCMI_PROTOCOL_CLOCK, in scmi_clock_attributes_get() 112 ret = scmi_do_xfer(handle, t); in scmi_clock_attributes_get() 118 scmi_xfer_put(handle, t); in scmi_clock_attributes_get() 123 scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id, in scmi_clock_describe_rates_get() argument 135 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 | 111 static int scmi_perf_attributes_get(const struct scmi_handle *handle, in scmi_perf_attributes_get() argument 118 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_perf_attributes_get() 125 ret = scmi_do_xfer(handle, t); in scmi_perf_attributes_get() 136 scmi_xfer_put(handle, t); in scmi_perf_attributes_get() 141 scmi_perf_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_perf_domain_attributes_get() argument 148 ret = scmi_xfer_get_init(handle, PERF_DOMAIN_ATTRIBUTES, in scmi_perf_domain_attributes_get() 157 ret = scmi_do_xfer(handle, t); in scmi_perf_domain_attributes_get() 180 scmi_xfer_put(handle, t); in scmi_perf_domain_attributes_get() 192 scmi_perf_describe_levels_get(const struct scmi_handle *handle, u32 domain, in scmi_perf_describe_levels_get() argument 203 ret = scmi_xfer_get_init(handle, PERF_DESCRIBE_LEVELS, in scmi_perf_describe_levels_get() [all …]
|
D | sensors.c | 75 static int scmi_sensor_attributes_get(const struct scmi_handle *handle, in scmi_sensor_attributes_get() argument 82 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_sensor_attributes_get() 89 ret = scmi_do_xfer(handle, t); in scmi_sensor_attributes_get() 98 scmi_xfer_put(handle, t); in scmi_sensor_attributes_get() 102 static int scmi_sensor_description_get(const struct scmi_handle *handle, in scmi_sensor_description_get() argument 111 ret = scmi_xfer_get_init(handle, SENSOR_DESCRIPTION_GET, in scmi_sensor_description_get() 122 ret = scmi_do_xfer(handle, t); in scmi_sensor_description_get() 130 dev_err(handle->dev, "No. of sensors can't exceed %d", in scmi_sensor_description_get() 153 scmi_xfer_put(handle, t); in scmi_sensor_description_get() 158 scmi_sensor_configuration_set(const struct scmi_handle *handle, u32 sensor_id) in scmi_sensor_configuration_set() argument [all …]
|
/Linux-v4.19/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-v4.19/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 (*idle_device)(const struct ti_sci_handle *handle, u32 id); 101 int (*put_device)(const struct ti_sci_handle *handle, u32 id); 102 int (*is_valid)(const struct ti_sci_handle *handle, u32 id); 103 int (*get_context_loss_count)(const struct ti_sci_handle *handle, 105 int (*is_idle)(const struct ti_sci_handle *handle, u32 id, 107 int (*is_stop)(const struct ti_sci_handle *handle, u32 id, 109 int (*is_on)(const struct ti_sci_handle *handle, u32 id, 111 int (*is_transitioning)(const struct ti_sci_handle *handle, u32 id, [all …]
|
/Linux-v4.19/kernel/events/ |
D | ring_buffer.c | 21 static void perf_output_wakeup(struct perf_output_handle *handle) in perf_output_wakeup() argument 23 atomic_set(&handle->rb->poll, EPOLLIN); in perf_output_wakeup() 25 handle->event->pending_wakeup = 1; in perf_output_wakeup() 26 irq_work_queue(&handle->event->pending); in perf_output_wakeup() 37 static void perf_output_get_handle(struct perf_output_handle *handle) in perf_output_get_handle() argument 39 struct ring_buffer *rb = handle->rb; in perf_output_get_handle() 43 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle() 46 static void perf_output_put_handle(struct perf_output_handle *handle) in perf_output_put_handle() argument 48 struct ring_buffer *rb = handle->rb; in perf_output_put_handle() 99 if (handle->wakeup != local_read(&rb->wakeup)) in perf_output_put_handle() [all …]
|
/Linux-v4.19/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() 121 static int pp_hw_init(void *handle) in pp_hw_init() argument 124 struct amdgpu_device *adev = handle; in pp_hw_init() 138 static int pp_hw_fini(void *handle) in pp_hw_fini() argument 140 struct amdgpu_device *adev = handle; in pp_hw_fini() [all …]
|
/Linux-v4.19/drivers/misc/vmw_vmci/ |
D | vmci_resource.c | 38 static unsigned int vmci_resource_hash(struct vmci_handle handle) in vmci_resource_hash() argument 40 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash() 46 static struct vmci_resource *vmci_resource_lookup(struct vmci_handle handle, in vmci_resource_lookup() argument 50 unsigned int idx = vmci_resource_hash(handle); in vmci_resource_lookup() 55 u32 cid = r->handle.context; in vmci_resource_lookup() 56 u32 rid = r->handle.resource; in vmci_resource_lookup() 59 rid == handle.resource && in vmci_resource_lookup() 60 (cid == handle.context || cid == VMCI_INVALID_ID)) { in vmci_resource_lookup() 88 struct vmci_handle handle; in vmci_resource_find_id() local 97 handle = vmci_make_handle(context_id, current_rid); in vmci_resource_find_id() [all …]
|
/Linux-v4.19/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_shim.c | 45 VCHIQ_SERVICE_HANDLE_T handle; member 96 int32_t vchi_msg_peek(VCHI_SERVICE_HANDLE_T handle, in vchi_msg_peek() argument 101 struct shim_service *service = (struct shim_service *)handle; in vchi_msg_peek() 131 int32_t vchi_msg_remove(VCHI_SERVICE_HANDLE_T handle) in vchi_msg_remove() argument 133 struct shim_service *service = (struct shim_service *)handle; in vchi_msg_remove() 138 vchiq_release_message(service->handle, header); in vchi_msg_remove() 159 int32_t vchi_msg_queue(VCHI_SERVICE_HANDLE_T handle, in vchi_msg_queue() argument 165 struct shim_service *service = (struct shim_service *)handle; in vchi_msg_queue() 169 status = vchiq_queue_message(service->handle, in vchi_msg_queue() 199 vchi_queue_kernel_message(VCHI_SERVICE_HANDLE_T handle, in vchi_queue_kernel_message() argument [all …]
|
/Linux-v4.19/drivers/input/ |
D | evbug.c | 37 static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int valu… in evbug_event() argument 40 dev_name(&handle->dev->dev), type, code, value); in evbug_event() 46 struct input_handle *handle; in evbug_connect() local 49 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in evbug_connect() 50 if (!handle) in evbug_connect() 53 handle->dev = dev; in evbug_connect() 54 handle->handler = handler; in evbug_connect() 55 handle->name = "evbug"; in evbug_connect() 57 error = input_register_handle(handle); in evbug_connect() 61 error = input_open_device(handle); in evbug_connect() [all …]
|
D | apm-power.c | 35 static void apmpower_event(struct input_handle *handle, unsigned int type, in apmpower_event() argument 56 struct input_handle *handle; in apmpower_connect() local 59 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in apmpower_connect() 60 if (!handle) in apmpower_connect() 63 handle->dev = dev; in apmpower_connect() 64 handle->handler = handler; in apmpower_connect() 65 handle->name = "apm-power"; in apmpower_connect() 67 error = input_register_handle(handle); in apmpower_connect() 71 kfree(handle); in apmpower_connect() 75 error = input_open_device(handle); in apmpower_connect() [all …]
|
/Linux-v4.19/drivers/sh/intc/ |
D | chip.c | 16 void _intc_enable(struct irq_data *data, unsigned long handle) in _intc_enable() argument 23 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_E(handle)); cpu++) { in _intc_enable() 28 addr = INTC_REG(d, _INTC_ADDR_E(handle), cpu); in _intc_enable() 29 intc_enable_fns[_INTC_MODE(handle)](addr, handle, intc_reg_fns\ in _intc_enable() 30 [_INTC_FN(handle)], irq); in _intc_enable() 45 unsigned long handle = (unsigned long)irq_data_get_irq_chip_data(data); in intc_disable() local 51 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_D(handle)); cpu++) { in intc_disable() 56 addr = INTC_REG(d, _INTC_ADDR_D(handle), cpu); in intc_disable() 57 intc_disable_fns[_INTC_MODE(handle)](addr, handle,intc_reg_fns\ in intc_disable() 58 [_INTC_FN(handle)], irq); in intc_disable() [all …]
|