/linux-6.6.21/drivers/target/iscsi/ |
D | iscsi_target_datain_values.c | 22 struct iscsi_datain_req *dr; in iscsit_allocate_datain_req() local 24 dr = kmem_cache_zalloc(lio_dr_cache, GFP_ATOMIC); in iscsit_allocate_datain_req() 25 if (!dr) { in iscsit_allocate_datain_req() 30 INIT_LIST_HEAD(&dr->cmd_datain_node); in iscsit_allocate_datain_req() 32 return dr; in iscsit_allocate_datain_req() 35 void iscsit_attach_datain_req(struct iscsit_cmd *cmd, struct iscsi_datain_req *dr) in iscsit_attach_datain_req() argument 38 list_add_tail(&dr->cmd_datain_node, &cmd->datain_list); in iscsit_attach_datain_req() 42 void iscsit_free_datain_req(struct iscsit_cmd *cmd, struct iscsi_datain_req *dr) in iscsit_free_datain_req() argument 45 list_del(&dr->cmd_datain_node); in iscsit_free_datain_req() 48 kmem_cache_free(lio_dr_cache, dr); in iscsit_free_datain_req() [all …]
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_managed.c | 58 static void free_dr(struct drmres *dr) in free_dr() argument 60 kfree_const(dr->node.name); in free_dr() 61 kfree(dr); in free_dr() 66 struct drmres *dr, *tmp; in drm_managed_release() local 69 list_for_each_entry_safe(dr, tmp, &dev->managed.resources, node.entry) { in drm_managed_release() 71 dr, dr->node.name, dr->node.size); in drm_managed_release() 73 if (dr->node.release) in drm_managed_release() 74 dr->node.release(dev, dr->node.size ? *(void **)&dr->data : NULL); in drm_managed_release() 76 list_del(&dr->node.entry); in drm_managed_release() 77 free_dr(dr); in drm_managed_release() [all …]
|
/linux-6.6.21/drivers/net/phy/ |
D | mdio_devres.c | 14 struct mdiobus_devres *dr = this; in devm_mdiobus_free() local 16 mdiobus_free(dr->mii); in devm_mdiobus_free() 32 struct mdiobus_devres *dr; in devm_mdiobus_alloc_size() local 34 dr = devres_alloc(devm_mdiobus_free, sizeof(*dr), GFP_KERNEL); in devm_mdiobus_alloc_size() 35 if (!dr) in devm_mdiobus_alloc_size() 38 dr->mii = mdiobus_alloc_size(sizeof_priv); in devm_mdiobus_alloc_size() 39 if (!dr->mii) { in devm_mdiobus_alloc_size() 40 devres_free(dr); in devm_mdiobus_alloc_size() 44 devres_add(dev, dr); in devm_mdiobus_alloc_size() 45 return dr->mii; in devm_mdiobus_alloc_size() [all …]
|
/linux-6.6.21/kernel/irq/ |
D | devres.c | 56 struct irq_devres *dr; in devm_request_threaded_irq() local 59 dr = devres_alloc(devm_irq_release, sizeof(struct irq_devres), in devm_request_threaded_irq() 61 if (!dr) in devm_request_threaded_irq() 70 devres_free(dr); in devm_request_threaded_irq() 74 dr->irq = irq; in devm_request_threaded_irq() 75 dr->dev_id = dev_id; in devm_request_threaded_irq() 76 devres_add(dev, dr); in devm_request_threaded_irq() 103 struct irq_devres *dr; in devm_request_any_context_irq() local 106 dr = devres_alloc(devm_irq_release, sizeof(struct irq_devres), in devm_request_any_context_irq() 108 if (!dr) in devm_request_any_context_irq() [all …]
|
/linux-6.6.21/net/ |
D | devres.c | 24 struct net_device_devres *dr; in devm_alloc_etherdev_mqs() local 26 dr = devres_alloc(devm_free_netdev, sizeof(*dr), GFP_KERNEL); in devm_alloc_etherdev_mqs() 27 if (!dr) in devm_alloc_etherdev_mqs() 30 dr->ndev = alloc_etherdev_mqs(sizeof_priv, txqs, rxqs); in devm_alloc_etherdev_mqs() 31 if (!dr->ndev) { in devm_alloc_etherdev_mqs() 32 devres_free(dr); in devm_alloc_etherdev_mqs() 36 devres_add(dev, dr); in devm_alloc_etherdev_mqs() 38 return dr->ndev; in devm_alloc_etherdev_mqs() 69 struct net_device_devres *dr; in devm_register_netdev() local 80 dr = devres_alloc(devm_unregister_netdev, sizeof(*dr), GFP_KERNEL); in devm_register_netdev() [all …]
|
/linux-6.6.21/drivers/gpio/ |
D | gpiolib-devres.c | 98 struct gpio_desc **dr; in devm_gpiod_get_index() local 118 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_gpiod_get_index() 120 if (!dr) { in devm_gpiod_get_index() 125 *dr = desc; in devm_gpiod_get_index() 126 devres_add(dev, dr); in devm_gpiod_get_index() 153 struct gpio_desc **dr; in devm_fwnode_gpiod_get_index() local 156 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_fwnode_gpiod_get_index() 158 if (!dr) in devm_fwnode_gpiod_get_index() 163 devres_free(dr); in devm_fwnode_gpiod_get_index() 167 *dr = desc; in devm_fwnode_gpiod_get_index() [all …]
|
/linux-6.6.21/fs/xfs/ |
D | xfs_drain.c | 42 struct xfs_defer_drain *dr) in xfs_defer_drain_init() argument 44 atomic_set(&dr->dr_count, 0); in xfs_defer_drain_init() 45 init_waitqueue_head(&dr->dr_waiters); in xfs_defer_drain_init() 49 xfs_defer_drain_free(struct xfs_defer_drain *dr) in xfs_defer_drain_free() argument 51 ASSERT(atomic_read(&dr->dr_count) == 0); in xfs_defer_drain_free() 55 static inline void xfs_defer_drain_grab(struct xfs_defer_drain *dr) in xfs_defer_drain_grab() argument 57 atomic_inc(&dr->dr_count); in xfs_defer_drain_grab() 71 static inline void xfs_defer_drain_rele(struct xfs_defer_drain *dr) in xfs_defer_drain_rele() argument 73 if (atomic_dec_and_test(&dr->dr_count) && in xfs_defer_drain_rele() 75 has_waiters(&dr->dr_waiters)) in xfs_defer_drain_rele() [all …]
|
/linux-6.6.21/fs/adfs/ |
D | super.c | 53 static int adfs_checkdiscrecord(struct adfs_discrecord *dr) in adfs_checkdiscrecord() argument 59 if (dr->log2secsize != 8 && in adfs_checkdiscrecord() 60 dr->log2secsize != 9 && in adfs_checkdiscrecord() 61 dr->log2secsize != 10) in adfs_checkdiscrecord() 65 if (dr->idlen < dr->log2secsize + 3) in adfs_checkdiscrecord() 72 if (le32_to_cpu(dr->disc_size_high) >> dr->log2secsize) in adfs_checkdiscrecord() 80 max_idlen = dr->format_version ? 19 : 16; in adfs_checkdiscrecord() 81 if (dr->idlen > max_idlen) in adfs_checkdiscrecord() 85 for (i = 0; i < sizeof(dr->unused52); i++) in adfs_checkdiscrecord() 86 if (dr->unused52[i] != 0) in adfs_checkdiscrecord() [all …]
|
D | map.c | 199 struct adfs_discrecord *dr = adfs_map_discrecord(asb->s_map); in adfs_map_statfs() local 211 buf->f_blocks = adfs_disc_size(dr) >> sb->s_blocksize_bits; in adfs_map_statfs() 310 struct adfs_discrecord *dr) in adfs_map_layout() argument 315 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_map_layout() 329 size = adfs_disc_size(dr) >> dr->log2bpmb; in adfs_map_layout() 356 struct adfs_discmap *adfs_read_map(struct super_block *sb, struct adfs_discrecord *dr) in adfs_read_map() argument 363 nzones = dr->nzones | dr->nzones_high << 8; in adfs_read_map() 364 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_read_map() 366 asb->s_idlen = dr->idlen; in adfs_read_map() 368 asb->s_map2blk = dr->log2bpmb - dr->log2secsize; in adfs_read_map() [all …]
|
/linux-6.6.21/drivers/base/ |
D | devres.c | 114 struct devres *dr; in alloc_dr() local 119 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr() 120 if (unlikely(!dr)) in alloc_dr() 125 memset(dr, 0, offsetof(struct devres, data)); in alloc_dr() 127 INIT_LIST_HEAD(&dr->node.entry); in alloc_dr() 128 dr->node.release = release; in alloc_dr() 129 return dr; in alloc_dr() 165 struct devres *dr; in __devres_alloc_node() local 167 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node() 168 if (unlikely(!dr)) in __devres_alloc_node() [all …]
|
/linux-6.6.21/drivers/ntb/ |
D | msi.c | 219 struct ntb_msi_devres *dr = data; in ntb_msi_write_msg() local 221 WARN_ON(ntb_msi_set_desc(dr->ntb, entry, dr->msi_desc)); in ntb_msi_write_msg() 223 if (dr->ntb->msi->desc_changed) in ntb_msi_write_msg() 224 dr->ntb->msi->desc_changed(dr->ntb->ctx); in ntb_msi_write_msg() 229 struct ntb_msi_devres *dr = res; in ntbm_msi_callback_release() local 231 dr->entry->write_msi_msg = NULL; in ntbm_msi_callback_release() 232 dr->entry->write_msi_msg_data = NULL; in ntbm_msi_callback_release() 238 struct ntb_msi_devres *dr; in ntbm_msi_setup_callback() local 240 dr = devres_alloc(ntbm_msi_callback_release, in ntbm_msi_setup_callback() 242 if (!dr) in ntbm_msi_setup_callback() [all …]
|
/linux-6.6.21/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 49 static inline u32 vnet_tx_dring_avail(struct vio_dring_state *dr) in vnet_tx_dring_avail() argument 51 return vio_dring_avail(dr, VNET_TX_RING_SIZE); in vnet_tx_dring_avail() 263 struct vio_dring_state *dr; in sunvnet_handshake_complete_common() local 265 dr = &vio->drings[VIO_DRIVER_RX_RING]; in sunvnet_handshake_complete_common() 266 dr->rcv_nxt = 1; in sunvnet_handshake_complete_common() 267 dr->snd_nxt = 1; in sunvnet_handshake_complete_common() 269 dr = &vio->drings[VIO_DRIVER_TX_RING]; in sunvnet_handshake_complete_common() 270 dr->rcv_nxt = 1; in sunvnet_handshake_complete_common() 271 dr->snd_nxt = 1; in sunvnet_handshake_complete_common() 470 static int vnet_send_ack(struct vnet_port *port, struct vio_dring_state *dr, in vnet_send_ack() argument [all …]
|
/linux-6.6.21/drivers/block/ |
D | sunvdc.c | 117 static inline u32 vdc_tx_dring_avail(struct vio_dring_state *dr) in vdc_tx_dring_avail() argument 119 return vio_dring_avail(dr, VDC_TX_RING_SIZE); in vdc_tx_dring_avail() 181 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_blk_queue_start() local 187 if (port->disk && vdc_tx_dring_avail(dr) * 100 / VDC_TX_RING_SIZE >= 50) in vdc_blk_queue_start() 307 static void vdc_end_one(struct vdc_port *port, struct vio_dring_state *dr, in vdc_end_one() argument 310 struct vio_disk_desc *desc = vio_dring_entry(dr, index); in vdc_end_one() 319 dr->cons = vio_dring_next(dr, index); in vdc_end_one() 336 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_ack() local 339 if (unlikely(pkt->dring_ident != dr->ident || in vdc_ack() 344 vdc_end_one(port, dr, pkt->start_idx); in vdc_ack() [all …]
|
/linux-6.6.21/arch/arm/vfp/ |
D | vfphw.S | 84 .irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 85 1: vmov r0, s\dr 89 .irp dr,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 90 1: vmov r0, s\dr 99 .irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 100 1: vmov s\dr, r0 104 .irp dr,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 105 1: vmov s\dr, r0 114 .irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 115 1: vmov r0, r1, d\dr [all …]
|
/linux-6.6.21/sound/soc/intel/avs/boards/ |
D | i2s_test.c | 57 struct snd_soc_dapm_route *dr; in avs_create_dapm_routes() local 60 dr = devm_kcalloc(dev, num_dr, sizeof(*dr), GFP_KERNEL); in avs_create_dapm_routes() 61 if (!dr) in avs_create_dapm_routes() 64 dr[0].sink = devm_kasprintf(dev, GFP_KERNEL, "ssp%dpb", ssp_port); in avs_create_dapm_routes() 65 dr[0].source = devm_kasprintf(dev, GFP_KERNEL, "ssp%d Tx", ssp_port); in avs_create_dapm_routes() 66 if (!dr[0].sink || !dr[0].source) in avs_create_dapm_routes() 69 dr[1].sink = devm_kasprintf(dev, GFP_KERNEL, "ssp%d Rx", ssp_port); in avs_create_dapm_routes() 70 dr[1].source = devm_kasprintf(dev, GFP_KERNEL, "ssp%dcp", ssp_port); in avs_create_dapm_routes() 71 if (!dr[1].sink || !dr[1].source) in avs_create_dapm_routes() 74 *routes = dr; in avs_create_dapm_routes()
|
/linux-6.6.21/block/partitions/ |
D | acorn.c | 28 struct adfs_discrecord *dr; in adfs_partition() local 34 dr = (struct adfs_discrecord *)(data + 0x1c0); in adfs_partition() 36 if (dr->disc_size == 0 && dr->disc_size_high == 0) in adfs_partition() 39 nr_sects = (le32_to_cpu(dr->disc_size_high) << 23) | in adfs_partition() 40 (le32_to_cpu(dr->disc_size) >> 9); in adfs_partition() 48 return dr; in adfs_partition() 183 struct adfs_discrecord *dr; in adfspart_check_CUMANA() local 193 dr = adfs_partition(state, name, data, first_sector, slot++); in adfspart_check_CUMANA() 194 if (!dr) in adfspart_check_CUMANA() 200 (dr->heads + (dr->lowsector & 0x40 ? 1 : 0)) * in adfspart_check_CUMANA() [all …]
|
/linux-6.6.21/arch/sparc/kernel/ |
D | viohs.c | 85 struct vio_dring_state *dr; in flush_rx_dring() local 90 dr = &vio->drings[VIO_DRIVER_RX_RING]; in flush_rx_dring() 91 ident = dr->ident; in flush_rx_dring() 97 memset(dr, 0, sizeof(*dr)); in flush_rx_dring() 98 dr->ident = ident; in flush_rx_dring() 137 struct vio_dring_state *dr; in handshake_failure() local 149 dr = &vio->drings[VIO_DRIVER_RX_RING]; in handshake_failure() 150 memset(dr, 0, sizeof(*dr)); in handshake_failure() 178 struct vio_dring_state *dr = &vio->drings[VIO_DRIVER_TX_RING]; in send_dreg() local 187 dr->ncookies); in send_dreg() [all …]
|
/linux-6.6.21/net/sunrpc/ |
D | svc_xprt.c | 530 static void free_deferred(struct svc_xprt *xprt, struct svc_deferred_req *dr) in free_deferred() argument 532 if (!dr) in free_deferred() 535 xprt->xpt_ops->xpo_release_ctxt(xprt, dr->xprt_ctxt); in free_deferred() 536 kfree(dr); in free_deferred() 1021 struct svc_deferred_req *dr; in svc_delete_xprt() local 1038 while ((dr = svc_deferred_dequeue(xprt)) != NULL) in svc_delete_xprt() 1039 free_deferred(xprt, dr); in svc_delete_xprt() 1152 struct svc_deferred_req *dr = in svc_revisit() local 1154 struct svc_xprt *xprt = dr->xprt; in svc_revisit() 1160 trace_svc_defer_drop(dr); in svc_revisit() [all …]
|
/linux-6.6.21/drivers/infiniband/core/ |
D | smi.c | 146 smp->route.dr.initial_path, in opa_smi_handle_dr_smp_send() 147 smp->route.dr.return_path, in opa_smi_handle_dr_smp_send() 149 smp->route.dr.dr_dlid == in opa_smi_handle_dr_smp_send() 151 smp->route.dr.dr_slid == in opa_smi_handle_dr_smp_send() 261 smp->route.dr.initial_path, in opa_smi_handle_dr_smp_recv() 262 smp->route.dr.return_path, in opa_smi_handle_dr_smp_recv() 264 smp->route.dr.dr_dlid == in opa_smi_handle_dr_smp_recv() 266 smp->route.dr.dr_slid == in opa_smi_handle_dr_smp_recv() 314 smp->route.dr.dr_dlid == in opa_smi_check_forward_dr_smp() 316 smp->route.dr.dr_slid == in opa_smi_check_forward_dr_smp() [all …]
|
/linux-6.6.21/drivers/parisc/ |
D | power.c | 66 #define MTCPU(dr, gr) MFCPU_X(dr, gr, 0, 0x12) /* move value of gr to dr[dr] */ argument 67 #define MFCPU_C(dr, gr) MFCPU_X(dr, gr, 0, 0x30) /* for dr0 and dr8 only ! */ argument 68 #define MFCPU_T(dr, gr) MFCPU_X(dr, 0, gr, 0xa0) /* all dr except dr0 and dr8 */ argument 70 #define __getDIAG(dr) ( { \ argument 73 ".word %1" : "=&r" (__res) : "i" (MFCPU_T(dr,28) ) \
|
/linux-6.6.21/drivers/platform/x86/ |
D | intel_scu_ipc.c | 145 struct intel_scu_ipc_devres *dr = res; in devm_intel_scu_ipc_dev_release() local 146 struct intel_scu_ipc_dev *scu = dr->scu; in devm_intel_scu_ipc_dev_release() 164 struct intel_scu_ipc_devres *dr; in devm_intel_scu_ipc_dev_get() local 167 dr = devres_alloc(devm_intel_scu_ipc_dev_release, sizeof(*dr), GFP_KERNEL); in devm_intel_scu_ipc_dev_get() 168 if (!dr) in devm_intel_scu_ipc_dev_get() 173 devres_free(dr); in devm_intel_scu_ipc_dev_get() 177 dr->scu = scu; in devm_intel_scu_ipc_dev_get() 178 devres_add(dev, dr); in devm_intel_scu_ipc_dev_get() 673 struct intel_scu_ipc_devres *dr = res; in devm_intel_scu_ipc_unregister() local 674 struct intel_scu_ipc_dev *scu = dr->scu; in devm_intel_scu_ipc_unregister() [all …]
|
/linux-6.6.21/arch/sparc/include/asm/ |
D | vio.h | 295 static inline void *vio_dring_cur(struct vio_dring_state *dr) in vio_dring_cur() argument 297 return dr->base + (dr->entry_size * dr->prod); in vio_dring_cur() 300 static inline void *vio_dring_entry(struct vio_dring_state *dr, in vio_dring_entry() argument 303 return dr->base + (dr->entry_size * index); in vio_dring_entry() 306 static inline u32 vio_dring_avail(struct vio_dring_state *dr, in vio_dring_avail() argument 309 return (dr->pending - in vio_dring_avail() 310 ((dr->prod - dr->cons) & (ring_size - 1)) - 1); in vio_dring_avail() 313 static inline u32 vio_dring_next(struct vio_dring_state *dr, u32 index) in vio_dring_next() argument 315 if (++index == dr->num_entries) in vio_dring_next() 320 static inline u32 vio_dring_prev(struct vio_dring_state *dr, u32 index) in vio_dring_prev() argument [all …]
|
/linux-6.6.21/Documentation/networking/ |
D | driver.rst | 50 static u32 drv_tx_avail(struct drv_ring *dr) 52 u32 used = READ_ONCE(dr->prod) - READ_ONCE(dr->cons); 54 return dr->tx_ring_size - (used & bp->tx_ring_mask); 62 struct drv_ring *dr; 66 dr = dp->tx_rings[idx]; 71 if (drv_tx_avail(dr) <= skb_shinfo(skb)->nr_frags + 1) { 83 if (!netif_txq_maybe_stop(txq, drv_tx_avail(dr), 85 dr->stats.stopped++; 98 drv_tx_avail(dr), 2 * MAX_SKB_FRAGS);
|
/linux-6.6.21/lib/ |
D | devres.c | 350 struct pcim_iomap_devres *dr, *new_dr; in pcim_iomap_table() local 352 dr = devres_find(&pdev->dev, pcim_iomap_release, NULL, NULL); in pcim_iomap_table() 353 if (dr) in pcim_iomap_table() 354 return dr->table; in pcim_iomap_table() 360 dr = devres_get(&pdev->dev, new_dr, NULL, NULL); in pcim_iomap_table() 361 return dr->table; in pcim_iomap_table() 582 struct arch_io_reserve_memtype_wc_devres *dr; in devm_arch_io_reserve_memtype_wc() local 585 dr = devres_alloc_node(devm_arch_io_free_memtype_wc_release, sizeof(*dr), GFP_KERNEL, in devm_arch_io_reserve_memtype_wc() 587 if (!dr) in devm_arch_io_reserve_memtype_wc() 592 devres_free(dr); in devm_arch_io_reserve_memtype_wc() [all …]
|
/linux-6.6.21/drivers/extcon/ |
D | extcon-usbc-cros-ec.c | 28 unsigned int dr; /* data role */ member 252 unsigned int dr = DR_NONE; in extcon_cros_ec_detect_cable() local 276 dr = (role & PD_CTRL_RESP_ROLE_DATA) ? DR_HOST : DR_DEVICE; in extcon_cros_ec_detect_cable() 288 role, power_type, dr, pr, polarity, mux, dp, hpd); in extcon_cros_ec_detect_cable() 295 if (dr == DR_DEVICE && in extcon_cros_ec_detect_cable() 297 dr = DR_NONE; in extcon_cros_ec_detect_cable() 299 if (force || info->dr != dr || info->pr != pr || info->dp != dp || in extcon_cros_ec_detect_cable() 305 cros_ec_usb_role_string(dr)); in extcon_cros_ec_detect_cable() 306 info->dr = dr; in extcon_cros_ec_detect_cable() 312 if (dr == DR_DEVICE) in extcon_cros_ec_detect_cable() [all …]
|