/Linux-v5.15/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 iscsi_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 iscsi_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-v5.15/drivers/gpu/drm/ |
D | drm_managed.c | 57 static void free_dr(struct drmres *dr) in free_dr() argument 59 kfree_const(dr->node.name); in free_dr() 60 kfree(dr); in free_dr() 65 struct drmres *dr, *tmp; in drm_managed_release() local 68 list_for_each_entry_safe(dr, tmp, &dev->managed.resources, node.entry) { in drm_managed_release() 70 dr, dr->node.name, dr->node.size); in drm_managed_release() 72 if (dr->node.release) in drm_managed_release() 73 dr->node.release(dev, dr->node.size ? *(void **)&dr->data : NULL); in drm_managed_release() 75 list_del(&dr->node.entry); in drm_managed_release() 76 free_dr(dr); in drm_managed_release() [all …]
|
/Linux-v5.15/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-v5.15/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-v5.15/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_gpiod_get_from_of_node() local 173 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_gpiod_get_from_of_node() 175 if (!dr) { in devm_gpiod_get_from_of_node() 180 *dr = desc; in devm_gpiod_get_from_of_node() 181 devres_add(dev, dr); in devm_gpiod_get_from_of_node() [all …]
|
/Linux-v5.15/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-v5.15/drivers/base/ |
D | devres.c | 111 struct devres *dr; in alloc_dr() local 116 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr() 117 if (unlikely(!dr)) in alloc_dr() 120 memset(dr, 0, offsetof(struct devres, data)); in alloc_dr() 122 INIT_LIST_HEAD(&dr->node.entry); in alloc_dr() 123 dr->node.release = release; in alloc_dr() 124 return dr; in alloc_dr() 160 struct devres *dr; in __devres_alloc_node() local 162 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node() 163 if (unlikely(!dr)) in __devres_alloc_node() [all …]
|
/Linux-v5.15/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-v5.15/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-v5.15/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 48 static inline u32 vnet_tx_dring_avail(struct vio_dring_state *dr) in vnet_tx_dring_avail() argument 50 return vio_dring_avail(dr, VNET_TX_RING_SIZE); in vnet_tx_dring_avail() 262 struct vio_dring_state *dr; in sunvnet_handshake_complete_common() local 264 dr = &vio->drings[VIO_DRIVER_RX_RING]; in sunvnet_handshake_complete_common() 265 dr->rcv_nxt = 1; in sunvnet_handshake_complete_common() 266 dr->snd_nxt = 1; in sunvnet_handshake_complete_common() 268 dr = &vio->drings[VIO_DRIVER_TX_RING]; in sunvnet_handshake_complete_common() 269 dr->rcv_nxt = 1; in sunvnet_handshake_complete_common() 270 dr->snd_nxt = 1; in sunvnet_handshake_complete_common() 469 static int vnet_send_ack(struct vnet_port *port, struct vio_dring_state *dr, in vnet_send_ack() argument [all …]
|
/Linux-v5.15/drivers/block/ |
D | sunvdc.c | 118 static inline u32 vdc_tx_dring_avail(struct vio_dring_state *dr) in vdc_tx_dring_avail() argument 120 return vio_dring_avail(dr, VDC_TX_RING_SIZE); in vdc_tx_dring_avail() 179 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_blk_queue_start() local 185 if (port->disk && vdc_tx_dring_avail(dr) * 100 / VDC_TX_RING_SIZE >= 50) in vdc_blk_queue_start() 305 static void vdc_end_one(struct vdc_port *port, struct vio_dring_state *dr, in vdc_end_one() argument 308 struct vio_disk_desc *desc = vio_dring_entry(dr, index); in vdc_end_one() 317 dr->cons = vio_dring_next(dr, index); in vdc_end_one() 334 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_ack() local 337 if (unlikely(pkt->dring_ident != dr->ident || in vdc_ack() 342 vdc_end_one(port, dr, pkt->start_idx); in vdc_ack() [all …]
|
/Linux-v5.15/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-v5.15/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-v5.15/drivers/parisc/ |
D | power.c | 67 #define MTCPU(dr, gr) MFCPU_X(dr, gr, 0, 0x12) /* move value of gr to dr[dr] */ argument 68 #define MFCPU_C(dr, gr) MFCPU_X(dr, gr, 0, 0x30) /* for dr0 and dr8 only ! */ argument 69 #define MFCPU_T(dr, gr) MFCPU_X(dr, 0, gr, 0xa0) /* all dr except dr0 and dr8 */ argument 71 #define __getDIAG(dr) ( { \ argument 74 ".word %1" : "=&r" (__res) : "i" (MFCPU_T(dr,28) ) \
|
/Linux-v5.15/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-v5.15/net/sunrpc/ |
D | svc_xprt.c | 1039 struct svc_deferred_req *dr; in svc_delete_xprt() local 1056 while ((dr = svc_deferred_dequeue(xprt)) != NULL) in svc_delete_xprt() 1057 kfree(dr); in svc_delete_xprt() 1160 struct svc_deferred_req *dr = in svc_revisit() local 1162 struct svc_xprt *xprt = dr->xprt; in svc_revisit() 1168 trace_svc_defer_drop(dr); in svc_revisit() 1170 kfree(dr); in svc_revisit() 1173 dr->xprt = NULL; in svc_revisit() 1174 list_add(&dr->handle.recent, &xprt->xpt_deferred); in svc_revisit() 1176 trace_svc_defer_queue(dr); in svc_revisit() [all …]
|
/Linux-v5.15/drivers/fpga/ |
D | fpga-mgr.c | 672 struct fpga_mgr_devres *dr = res; in devm_fpga_mgr_release() local 674 fpga_mgr_free(dr->mgr); in devm_fpga_mgr_release() 698 struct fpga_mgr_devres *dr; in devm_fpga_mgr_create() local 700 dr = devres_alloc(devm_fpga_mgr_release, sizeof(*dr), GFP_KERNEL); in devm_fpga_mgr_create() 701 if (!dr) in devm_fpga_mgr_create() 704 dr->mgr = fpga_mgr_create(parent, name, mops, priv); in devm_fpga_mgr_create() 705 if (!dr->mgr) { in devm_fpga_mgr_create() 706 devres_free(dr); in devm_fpga_mgr_create() 710 devres_add(parent, dr); in devm_fpga_mgr_create() 712 return dr->mgr; in devm_fpga_mgr_create() [all …]
|
/Linux-v5.15/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() 660 struct intel_scu_ipc_devres *dr = res; in devm_intel_scu_ipc_unregister() local 661 struct intel_scu_ipc_dev *scu = dr->scu; in devm_intel_scu_ipc_unregister() [all …]
|
/Linux-v5.15/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-v5.15/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 …]
|
/Linux-v5.15/drivers/power/reset/ |
D | reboot-mode.c | 149 struct reboot_mode_driver **dr; in devm_reboot_mode_register() local 152 dr = devres_alloc(devm_reboot_mode_release, sizeof(*dr), GFP_KERNEL); in devm_reboot_mode_register() 153 if (!dr) in devm_reboot_mode_register() 158 devres_free(dr); in devm_reboot_mode_register() 162 *dr = reboot; in devm_reboot_mode_register() 163 devres_add(dev, dr); in devm_reboot_mode_register()
|
/Linux-v5.15/drivers/leds/ |
D | led-class-multicolor.c | 159 struct led_classdev_mc **dr; in devm_led_classdev_multicolor_register_ext() local 162 dr = devres_alloc(devm_led_classdev_multicolor_release, in devm_led_classdev_multicolor_register_ext() 163 sizeof(*dr), GFP_KERNEL); in devm_led_classdev_multicolor_register_ext() 164 if (!dr) in devm_led_classdev_multicolor_register_ext() 170 devres_free(dr); in devm_led_classdev_multicolor_register_ext() 174 *dr = mcled_cdev; in devm_led_classdev_multicolor_register_ext() 175 devres_add(parent, dr); in devm_led_classdev_multicolor_register_ext()
|
D | led-class.c | 283 struct led_classdev **dr; in devm_of_led_get() local 292 dr = devres_alloc(devm_led_release, sizeof(struct led_classdev *), in devm_of_led_get() 294 if (!dr) { in devm_of_led_get() 299 *dr = led; in devm_of_led_get() 300 devres_add(dev, dr); in devm_of_led_get() 486 struct led_classdev **dr; in devm_led_classdev_register_ext() local 489 dr = devres_alloc(devm_led_classdev_release, sizeof(*dr), GFP_KERNEL); in devm_led_classdev_register_ext() 490 if (!dr) in devm_led_classdev_register_ext() 495 devres_free(dr); in devm_led_classdev_register_ext() 499 *dr = led_cdev; in devm_led_classdev_register_ext() [all …]
|
/Linux-v5.15/drivers/usb/serial/ |
D | opticon.c | 198 struct usb_ctrlrequest *dr; in opticon_write() local 225 dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_ATOMIC); in opticon_write() 226 if (!dr) in opticon_write() 229 dr->bRequestType = USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT; in opticon_write() 230 dr->bRequest = 0x01; in opticon_write() 231 dr->wValue = 0; in opticon_write() 232 dr->wIndex = 0; in opticon_write() 233 dr->wLength = cpu_to_le16(count); in opticon_write() 237 (unsigned char *)dr, buffer, count, in opticon_write() 256 kfree(dr); in opticon_write()
|