/linux-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | qat_hal.c | 36 #define AE(handle, ae) ((handle)->hal_handle->aes[ae]) argument 69 void qat_hal_set_live_ctx(struct icp_qat_fw_loader_handle *handle, in qat_hal_set_live_ctx() argument 72 AE(handle, ae).live_ctx_mask = ctx_mask; in qat_hal_set_live_ctx() 76 static int qat_hal_rd_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_rd_ae_csr() argument 83 value = GET_AE_CSR(handle, ae, csr); in qat_hal_rd_ae_csr() 84 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_rd_ae_csr() 92 static int qat_hal_wr_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_wr_ae_csr() argument 99 SET_AE_CSR(handle, ae, csr, value); in qat_hal_wr_ae_csr() 100 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_wr_ae_csr() 108 static void qat_hal_get_wakeup_event(struct icp_qat_fw_loader_handle *handle, in qat_hal_get_wakeup_event() argument [all …]
|
D | qat_uclo.c | 124 static void qat_uclo_wr_sram_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_sram_by_words() argument 133 SRAM_WRITE(handle, addr, outval); in qat_uclo_wr_sram_by_words() 140 static void qat_uclo_wr_umem_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_umem_by_words() argument 152 qat_hal_wr_umem(handle, ae, addr++, 1, &outval); in qat_uclo_wr_umem_by_words() 158 static void qat_uclo_batch_wr_umem(struct icp_qat_fw_loader_handle *handle, in qat_uclo_batch_wr_umem() argument 175 qat_uclo_wr_umem_by_words(handle, ae, addr, value, size); in qat_uclo_batch_wr_umem() 181 qat_uclo_cleanup_batch_init_list(struct icp_qat_fw_loader_handle *handle, in qat_uclo_cleanup_batch_init_list() argument 217 static int qat_uclo_fetch_initmem_ae(struct icp_qat_fw_loader_handle *handle, in qat_uclo_fetch_initmem_ae() argument 221 struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle; in qat_uclo_fetch_initmem_ae() 249 *handle, struct icp_qat_uof_initmem in qat_uclo_create_batch_init_list() [all …]
|
D | icp_qat_hal.h | 125 #define SET_CAP_CSR(handle, csr, val) \ argument 126 ADF_CSR_WR((handle)->hal_cap_g_ctl_csr_addr_v, csr, val) 127 #define GET_CAP_CSR(handle, csr) \ argument 128 ADF_CSR_RD((handle)->hal_cap_g_ctl_csr_addr_v, csr) 129 #define AE_CSR(handle, ae) \ argument 130 ((char __iomem *)(handle)->hal_cap_ae_local_csr_addr_v + ((ae) << 12)) 131 #define AE_CSR_ADDR(handle, ae, csr) (AE_CSR(handle, ae) + (0x3ff & (csr))) argument 132 #define SET_AE_CSR(handle, ae, csr, val) \ argument 133 ADF_CSR_WR(AE_CSR_ADDR(handle, ae, csr), 0, val) 134 #define GET_AE_CSR(handle, ae, csr) ADF_CSR_RD(AE_CSR_ADDR(handle, ae, csr), 0) argument [all …]
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/runtime/rmgr/src/ |
D | rmgr_vbuf.c | 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 = &handle_table[i]; in ia_css_rmgr_refcount_retain_vbuf() 91 if (!*handle) { in ia_css_rmgr_refcount_retain_vbuf() 96 (*handle)->vptr = h->vptr; in ia_css_rmgr_refcount_retain_vbuf() 97 (*handle)->size = h->size; in ia_css_rmgr_refcount_retain_vbuf() 99 (*handle)->count++; in ia_css_rmgr_refcount_retain_vbuf() [all …]
|
/linux-6.6.21/fs/ext4/ |
D | ext4_jbd2.c | 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() 49 static void ext4_put_nojournal(handle_t *handle) in ext4_put_nojournal() argument 51 unsigned long ref_cnt = (unsigned long)handle; in ext4_put_nojournal() 56 handle = (handle_t *)ref_cnt; in ext4_put_nojournal() 58 current->journal_info = handle; in ext4_put_nojournal() 116 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) in __ext4_journal_stop() argument [all …]
|
D | ext4_jbd2.h | 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->h_transaction->t_journal->j_private); in ext4_journal_callback_add() 184 _ext4_journal_callback_add(handle, jce); in ext4_journal_callback_add() 195 static inline bool ext4_journal_callback_try_del(handle_t *handle, in ext4_journal_callback_try_del() argument 200 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_try_del() 210 ext4_mark_iloc_dirty(handle_t *handle, 219 int ext4_reserve_inode_write(handle_t *handle, struct inode *inode, 224 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 53 retval = ext4_datasem_ensure_credits(handle, inode, needed, needed, 0); in finish_range() 56 retval = ext4_ext_insert_extent(handle, inode, &path, &newext, 0); in finish_range() 64 static int update_extent_range(handle_t *handle, struct inode *inode, in update_extent_range() argument 82 retval = finish_range(handle, inode, lb); in update_extent_range() 89 static int update_ind_extent_range(handle_t *handle, struct inode *inode, in update_ind_extent_range() argument 105 retval = update_extent_range(handle, inode, in update_ind_extent_range() 118 static int update_dind_extent_range(handle_t *handle, struct inode *inode, in update_dind_extent_range() argument 134 retval = update_ind_extent_range(handle, inode, in update_dind_extent_range() 148 static int update_tind_extent_range(handle_t *handle, struct inode *inode, in update_tind_extent_range() argument [all …]
|
/linux-6.6.21/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-6.6.21/tools/testing/selftests/drivers/net/mlxsw/ |
D | sch_offload.sh | 19 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=$1; shift 36 if [[ ! -z $handle ]]; then 37 local offloaded=$(qdisc_stats_get $h1 "$handle" .offloaded) 39 check_err $? "Qdisc with handle $handle not offloaded" [all …]
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ae_adapt.c | 16 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->q_num; i++) { in hns_ae_wait_flow_down() [all …]
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/ |
D | hnae3.h | 194 struct hnae3_handle *handle; member 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, 589 int (*start)(struct hnae3_handle *handle); 590 void (*stop)(struct hnae3_handle *handle); 591 int (*client_start)(struct hnae3_handle *handle); 592 void (*client_stop)(struct hnae3_handle *handle); [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/pm/powerplay/ |
D | amd_powerplay.c | 78 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() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/include/ |
D | kgd_pp_interface.h | 314 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, u32 *fan_mode); [all …]
|
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | post_act.c | 81 struct mlx5e_post_act_handle *handle) in mlx5e_tc_post_act_offload() argument 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() 132 handle->ns_type = post_act->ns_type; in mlx5e_tc_post_act_add() 134 if (handle->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5e_tc_post_act_add() [all …]
|
/linux-6.6.21/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-6.6.21/fs/jbd2/ |
D | transaction.c | 331 static int start_this_handle(journal_t *journal, handle_t *handle, in start_this_handle() argument 335 int blocks = handle->h_total_credits; in start_this_handle() 339 if (handle->h_rsv_handle) in start_this_handle() 340 rsv_blocks = handle->h_rsv_handle->h_total_credits; in start_this_handle() 376 jbd2_debug(3, "New handle %p going live.\n", handle); in start_this_handle() 397 if (!handle->h_reserved && journal->j_barrier_count) { in start_this_handle() 410 (handle->h_reserved || !journal->j_barrier_count)) { in start_this_handle() 420 if (!handle->h_reserved) { in start_this_handle() 443 handle->h_reserved = 0; in start_this_handle() 450 handle->h_transaction = transaction; in start_this_handle() [all …]
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/runtime/isys/src/ |
D | ibuf_ctrl_rmgr.c | 27 ibuf_handle_t *handle = NULL; in getHandle() local 30 handle = &ibuf_rsrc.handles[index]; in getHandle() 31 return handle; in getHandle() 53 ibuf_handle_t *handle = NULL; in ia_css_isys_ibuf_rmgr_acquire() local 66 handle = getHandle(i); in ia_css_isys_ibuf_rmgr_acquire() 67 if (!handle->active) { in ia_css_isys_ibuf_rmgr_acquire() 68 if (handle->size >= aligned_size) { in ia_css_isys_ibuf_rmgr_acquire() 69 handle->active = true; in ia_css_isys_ibuf_rmgr_acquire() 84 handle = getHandle(ibuf_rsrc.num_allocated); in ia_css_isys_ibuf_rmgr_acquire() 85 handle->start_addr = ibuf_rsrc.free_start_addr; in ia_css_isys_ibuf_rmgr_acquire() [all …]
|
/linux-6.6.21/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_irq); in perf_output_wakeup() 36 static void perf_output_get_handle(struct perf_output_handle *handle) in perf_output_get_handle() argument 38 struct perf_buffer *rb = handle->rb; in perf_output_get_handle() 47 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle() 50 static void perf_output_put_handle(struct perf_output_handle *handle) in perf_output_put_handle() argument 52 struct perf_buffer *rb = handle->rb; in perf_output_put_handle() 130 if (handle->wakeup != local_read(&rb->wakeup)) in perf_output_put_handle() [all …]
|
/linux-6.6.21/drivers/input/ |
D | evbug.c | 22 static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int valu… in evbug_event() argument 25 dev_name(&handle->dev->dev), type, code, value); in evbug_event() 31 struct input_handle *handle; in evbug_connect() local 34 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in evbug_connect() 35 if (!handle) in evbug_connect() 38 handle->dev = dev; in evbug_connect() 39 handle->handler = handler; in evbug_connect() 40 handle->name = "evbug"; in evbug_connect() 42 error = input_register_handle(handle); in evbug_connect() 46 error = input_open_device(handle); in evbug_connect() [all …]
|
D | apm-power.c | 31 static void apmpower_event(struct input_handle *handle, unsigned int type, in apmpower_event() argument 52 struct input_handle *handle; in apmpower_connect() local 55 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in apmpower_connect() 56 if (!handle) in apmpower_connect() 59 handle->dev = dev; in apmpower_connect() 60 handle->handler = handler; in apmpower_connect() 61 handle->name = "apm-power"; in apmpower_connect() 63 error = input_register_handle(handle); in apmpower_connect() 67 kfree(handle); in apmpower_connect() 71 error = input_open_device(handle); in apmpower_connect() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/hwtracing/coresight/ |
D | coresight-trbe.c | 139 struct perf_output_handle * __percpu *handle; member 262 static void trbe_report_wrap_event(struct perf_output_handle *handle) in trbe_report_wrap_event() argument 278 perf_aux_output_flag(handle, PERF_AUX_FLAG_COLLISION); in trbe_report_wrap_event() 281 static void trbe_stop_and_truncate_event(struct perf_output_handle *handle) in trbe_stop_and_truncate_event() argument 283 struct trbe_buf *buf = etm_perf_sink_config(handle); in trbe_stop_and_truncate_event() 293 perf_aux_output_flag(handle, PERF_AUX_FLAG_TRUNCATED); in trbe_stop_and_truncate_event() 294 perf_aux_output_end(handle, 0); in trbe_stop_and_truncate_event() 295 *this_cpu_ptr(buf->cpudata->drvdata->handle) = NULL; in trbe_stop_and_truncate_event() 346 static void trbe_pad_buf(struct perf_output_handle *handle, int len) in trbe_pad_buf() argument 348 struct trbe_buf *buf = etm_perf_sink_config(handle); in trbe_pad_buf() [all …]
|
/linux-6.6.21/drivers/acpi/ |
D | scan.c | 134 static acpi_status acpi_bus_offline(acpi_handle handle, u32 lvl, void *data, in acpi_bus_offline() argument 137 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_bus_offline() 179 static acpi_status acpi_bus_online(acpi_handle handle, u32 lvl, void *data, in acpi_bus_online() argument 182 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_bus_online() 203 acpi_handle handle = device->handle; in acpi_scan_try_to_offline() local 216 status = acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline() 221 acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline() 225 acpi_bus_offline(handle, 0, (void *)false, (void **)&errdev); in acpi_scan_try_to_offline() 228 acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline() 232 acpi_bus_offline(handle, 0, (void *)true, in acpi_scan_try_to_offline() [all …]
|