/linux-6.12.1/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.12.1/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.12.1/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.12.1/kernel/irq/ |
D | devres.c | 57 struct irq_devres *dr; in devm_request_threaded_irq() local 60 dr = devres_alloc(devm_irq_release, sizeof(struct irq_devres), in devm_request_threaded_irq() 62 if (!dr) in devm_request_threaded_irq() 71 devres_free(dr); in devm_request_threaded_irq() 75 dr->irq = irq; in devm_request_threaded_irq() 76 dr->dev_id = dev_id; in devm_request_threaded_irq() 77 devres_add(dev, dr); in devm_request_threaded_irq() 104 struct irq_devres *dr; in devm_request_any_context_irq() local 107 dr = devres_alloc(devm_irq_release, sizeof(struct irq_devres), in devm_request_any_context_irq() 109 if (!dr) in devm_request_any_context_irq() [all …]
|
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/drivers/gpio/ |
D | gpiolib-legacy.c | 109 unsigned *dr; in devm_gpio_request() local 112 dr = devres_alloc(devm_gpio_release, sizeof(unsigned), GFP_KERNEL); in devm_gpio_request() 113 if (!dr) in devm_gpio_request() 118 devres_free(dr); in devm_gpio_request() 122 *dr = gpio; in devm_gpio_request() 123 devres_add(dev, dr); in devm_gpio_request() 144 unsigned *dr; in devm_gpio_request_one() local 147 dr = devres_alloc(devm_gpio_release, sizeof(unsigned), GFP_KERNEL); in devm_gpio_request_one() 148 if (!dr) in devm_gpio_request_one() 153 devres_free(dr); in devm_gpio_request_one() [all …]
|
D | gpiolib-devres.c | 117 struct gpio_desc **dr; in devm_gpiod_get_index() local 137 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_gpiod_get_index() 139 if (!dr) { in devm_gpiod_get_index() 144 *dr = desc; in devm_gpiod_get_index() 145 devres_add(dev, dr); in devm_gpiod_get_index() 174 struct gpio_desc **dr; in devm_fwnode_gpiod_get_index() local 177 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_fwnode_gpiod_get_index() 179 if (!dr) in devm_fwnode_gpiod_get_index() 184 devres_free(dr); in devm_fwnode_gpiod_get_index() 188 *dr = desc; in devm_fwnode_gpiod_get_index() [all …]
|
/linux-6.12.1/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.12.1/drivers/comedi/drivers/ni_routing/tools/ |
D | convert_c_to_py.c | 99 void device_write(const struct ni_device_routes *dR, FILE *fp) in device_write() argument 104 , dR->device); in device_write() 108 while (dR->routes[i].dest != 0) { in device_write() 109 if (!is_valid_ni_sig(dR->routes[i].dest)) { in device_write() 112 dR->routes[i].dest, dR->device, i); in device_write() 116 fprintf(fp, " %u : [", dR->routes[i].dest); in device_write() 120 while (dR->routes[i].src[j] != 0) { in device_write() 121 if (!is_valid_ni_sig(dR->routes[i].src[j])) { in device_write() 124 dR->routes[i].src[j], dR->device, i, j); in device_write() 128 fprintf(fp, "%u,", dR->routes[i].src[j]); in device_write()
|
/linux-6.12.1/drivers/infiniband/core/ |
D | smi.c | 76 /* C14-9:3 -- We're at the end of the DR segment of path */ in __smi_handle_dr_smp_send() 107 /* C14-13:3 -- at the end of the DR segment of path */ in __smi_handle_dr_smp_send() 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() 185 /* C14-9:3 -- We're at the end of the DR segment of path */ in __smi_handle_dr_smp_recv() 219 /* C14-13:3 -- We're at the end of the DR segment of path */ in __smi_handle_dr_smp_recv() 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() [all …]
|
/linux-6.12.1/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.12.1/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.12.1/drivers/soc/fsl/qe/ |
D | qe_common.c | 216 s32 *dr; in devm_cpm_muram_alloc() local 218 dr = devres_alloc(devm_cpm_muram_release, sizeof(*dr), GFP_KERNEL); in devm_cpm_muram_alloc() 219 if (!dr) in devm_cpm_muram_alloc() 224 *dr = info; in devm_cpm_muram_alloc() 225 devres_add(dev, dr); in devm_cpm_muram_alloc() 227 devres_free(dr); in devm_cpm_muram_alloc() 276 s32 *dr; in devm_cpm_muram_alloc_fixed() local 278 dr = devres_alloc(devm_cpm_muram_release, sizeof(*dr), GFP_KERNEL); in devm_cpm_muram_alloc_fixed() 279 if (!dr) in devm_cpm_muram_alloc_fixed() 284 *dr = info; in devm_cpm_muram_alloc_fixed() [all …]
|
/linux-6.12.1/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.12.1/Documentation/devicetree/bindings/arm/ |
D | qcom-soc.yaml | 26 pattern: "^qcom,.*(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1e)[0-9]+.*$" 34 - pattern: "^qcom,(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1e)[0-9]+(pro)?-.*$" 39 - pattern: "^qcom,[ak]pss-wdt-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$" 40 - pattern: "^qcom,gcc-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$" 41 - pattern: "^qcom,mmcc-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$" 42 - pattern: "^qcom,pcie-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1e)[0-9]+.*$" 43 - pattern: "^qcom,rpm-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$" 44 - pattern: "^qcom,scm-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1e)[0-9]+.*$"
|
/linux-6.12.1/drivers/parisc/ |
D | power.c | 41 #define MTCPU(dr, gr) MFCPU_X(dr, gr, 0, 0x12) /* move value of gr to dr[dr] */ argument 42 #define MFCPU_C(dr, gr) MFCPU_X(dr, gr, 0, 0x30) /* for dr0 and dr8 only ! */ argument 43 #define MFCPU_T(dr, gr) MFCPU_X(dr, 0, gr, 0xa0) /* all dr except dr0 and dr8 */ argument 45 #define __getDIAG(dr) ( { \ argument 48 ".word %1" : "=&r" (__res) : "i" (MFCPU_T(dr,28) ) \
|
/linux-6.12.1/net/sunrpc/ |
D | svc_xprt.c | 535 static void free_deferred(struct svc_xprt *xprt, struct svc_deferred_req *dr) in free_deferred() argument 537 if (!dr) in free_deferred() 540 xprt->xpt_ops->xpo_release_ctxt(xprt, dr->xprt_ctxt); in free_deferred() 541 kfree(dr); in free_deferred() 1030 struct svc_deferred_req *dr; in svc_delete_xprt() local 1046 while ((dr = svc_deferred_dequeue(xprt)) != NULL) in svc_delete_xprt() 1047 free_deferred(xprt, dr); in svc_delete_xprt() 1150 struct svc_deferred_req *dr = in svc_revisit() local 1152 struct svc_xprt *xprt = dr->xprt; in svc_revisit() 1158 trace_svc_defer_drop(dr); in svc_revisit() [all …]
|
/linux-6.12.1/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 …]
|