| /Linux-v5.4/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 …]
|
| D | iscsi_target_erl1.c | 171 struct iscsi_datain_req *dr) in iscsit_create_recovery_datain_values_datasequenceinorder_yes() argument 175 u32 begrun = dr->begrun; in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 180 if ((dr->next_burst_len + in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 183 dr->read_data_done += in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 185 dr->next_burst_len += in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 188 dr->read_data_done += in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 190 dr->next_burst_len); in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 191 dr->next_burst_len = 0; in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 217 struct iscsi_datain_req *dr) in iscsit_create_recovery_datain_values_datasequenceinorder_no() argument 221 u32 begrun = dr->begrun; in iscsit_create_recovery_datain_values_datasequenceinorder_no() [all …]
|
| /Linux-v5.4/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 …]
|
| D | irq_sim.c | 148 struct irq_sim_devres *dr; in devm_irq_sim_init() local 151 dr = devres_alloc(devm_irq_sim_release, sizeof(*dr), GFP_KERNEL); in devm_irq_sim_init() 152 if (!dr) in devm_irq_sim_init() 157 devres_free(dr); in devm_irq_sim_init() 161 dr->sim = sim; in devm_irq_sim_init() 162 devres_add(dev, dr); in devm_irq_sim_init()
|
| /Linux-v5.4/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.4/drivers/base/ |
| D | devres.c | 96 struct devres *dr; in alloc_dr() local 103 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr() 104 if (unlikely(!dr)) in alloc_dr() 107 memset(dr, 0, offsetof(struct devres, data)); in alloc_dr() 109 INIT_LIST_HEAD(&dr->node.entry); in alloc_dr() 110 dr->node.release = release; in alloc_dr() 111 return dr; in alloc_dr() 125 struct devres *dr; in __devres_alloc_node() local 127 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node() 128 if (unlikely(!dr)) in __devres_alloc_node() [all …]
|
| /Linux-v5.4/fs/adfs/ |
| D | super.c | 52 static int adfs_checkdiscrecord(struct adfs_discrecord *dr) in adfs_checkdiscrecord() argument 58 if (dr->log2secsize != 8 && in adfs_checkdiscrecord() 59 dr->log2secsize != 9 && in adfs_checkdiscrecord() 60 dr->log2secsize != 10) in adfs_checkdiscrecord() 64 if (dr->idlen < dr->log2secsize + 3) in adfs_checkdiscrecord() 71 if (le32_to_cpu(dr->disc_size_high) >> dr->log2secsize) in adfs_checkdiscrecord() 79 max_idlen = dr->format_version ? 19 : 16; in adfs_checkdiscrecord() 80 if (dr->idlen > max_idlen) in adfs_checkdiscrecord() 84 for (i = 0; i < sizeof(dr->unused52); i++) in adfs_checkdiscrecord() 85 if (dr->unused52[i] != 0) in adfs_checkdiscrecord() [all …]
|
| /Linux-v5.4/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.4/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.4/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() 178 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_blk_queue_start() local 184 if (port->disk && vdc_tx_dring_avail(dr) * 100 / VDC_TX_RING_SIZE >= 50) in vdc_blk_queue_start() 304 static void vdc_end_one(struct vdc_port *port, struct vio_dring_state *dr, in vdc_end_one() argument 307 struct vio_disk_desc *desc = vio_dring_entry(dr, index); in vdc_end_one() 316 dr->cons = vio_dring_next(dr, index); in vdc_end_one() 333 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_ack() local 336 if (unlikely(pkt->dring_ident != dr->ident || in vdc_ack() 341 vdc_end_one(port, dr, pkt->start_idx); in vdc_ack() [all …]
|
| /Linux-v5.4/block/partitions/ |
| D | acorn.c | 29 struct adfs_discrecord *dr; in adfs_partition() local 35 dr = (struct adfs_discrecord *)(data + 0x1c0); in adfs_partition() 37 if (dr->disc_size == 0 && dr->disc_size_high == 0) in adfs_partition() 40 nr_sects = (le32_to_cpu(dr->disc_size_high) << 23) | in adfs_partition() 41 (le32_to_cpu(dr->disc_size) >> 9); in adfs_partition() 49 return dr; in adfs_partition() 184 struct adfs_discrecord *dr; in adfspart_check_CUMANA() local 194 dr = adfs_partition(state, name, data, first_sector, slot++); in adfspart_check_CUMANA() 195 if (!dr) in adfspart_check_CUMANA() 201 (dr->heads + (dr->lowsector & 0x40 ? 1 : 0)) * in adfspart_check_CUMANA() [all …]
|
| /Linux-v5.4/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.4/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-v5.4/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.4/net/sunrpc/ |
| D | svc_xprt.c | 1023 struct svc_deferred_req *dr; in svc_delete_xprt() local 1039 while ((dr = svc_deferred_dequeue(xprt)) != NULL) in svc_delete_xprt() 1040 kfree(dr); in svc_delete_xprt() 1142 struct svc_deferred_req *dr = in svc_revisit() local 1144 struct svc_xprt *xprt = dr->xprt; in svc_revisit() 1152 trace_svc_drop_deferred(dr); in svc_revisit() 1153 kfree(dr); in svc_revisit() 1157 dr->xprt = NULL; in svc_revisit() 1158 list_add(&dr->handle.recent, &xprt->xpt_deferred); in svc_revisit() 1176 struct svc_deferred_req *dr; in svc_defer() local [all …]
|
| /Linux-v5.4/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.4/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.4/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.4/drivers/usb/serial/ |
| D | opticon.c | 186 struct usb_ctrlrequest *dr; in opticon_write() local 215 dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_ATOMIC); in opticon_write() 216 if (!dr) { in opticon_write() 221 dr->bRequestType = USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT; in opticon_write() 222 dr->bRequest = 0x01; in opticon_write() 223 dr->wValue = 0; in opticon_write() 224 dr->wIndex = 0; in opticon_write() 225 dr->wLength = cpu_to_le16(count); in opticon_write() 229 (unsigned char *)dr, buffer, count, in opticon_write() 248 kfree(dr); in opticon_write()
|
| /Linux-v5.4/drivers/bluetooth/ |
| D | bpa10x.c | 268 struct usb_ctrlrequest *dr; in bpa10x_send_frame() local 286 dr = kmalloc(sizeof(*dr), GFP_KERNEL); in bpa10x_send_frame() 287 if (!dr) { in bpa10x_send_frame() 292 dr->bRequestType = USB_TYPE_VENDOR; in bpa10x_send_frame() 293 dr->bRequest = 0; in bpa10x_send_frame() 294 dr->wIndex = 0; in bpa10x_send_frame() 295 dr->wValue = 0; in bpa10x_send_frame() 296 dr->wLength = __cpu_to_le16(skb->len); in bpa10x_send_frame() 300 usb_fill_control_urb(urb, data->udev, pipe, (void *) dr, in bpa10x_send_frame()
|
| /Linux-v5.4/kernel/dma/ |
| D | mapping.c | 84 struct dma_devres *dr; in dmam_alloc_attrs() local 87 dr = devres_alloc(dmam_release, sizeof(*dr), gfp); in dmam_alloc_attrs() 88 if (!dr) in dmam_alloc_attrs() 93 devres_free(dr); in dmam_alloc_attrs() 97 dr->vaddr = vaddr; in dmam_alloc_attrs() 98 dr->dma_handle = *dma_handle; in dmam_alloc_attrs() 99 dr->size = size; in dmam_alloc_attrs() 100 dr->attrs = attrs; in dmam_alloc_attrs() 102 devres_add(dev, dr); in dmam_alloc_attrs()
|
| /Linux-v5.4/drivers/rtc/ |
| D | rtc-stm32.c | 96 u16 dr; member 274 unsigned int tr, dr; in stm32_rtc_read_time() local 278 dr = readl_relaxed(rtc->base + regs->dr); in stm32_rtc_read_time() 284 tm->tm_mday = (dr & STM32_RTC_DR_DATE) >> STM32_RTC_DR_DATE_SHIFT; in stm32_rtc_read_time() 285 tm->tm_mon = (dr & STM32_RTC_DR_MONTH) >> STM32_RTC_DR_MONTH_SHIFT; in stm32_rtc_read_time() 286 tm->tm_year = (dr & STM32_RTC_DR_YEAR) >> STM32_RTC_DR_YEAR_SHIFT; in stm32_rtc_read_time() 287 tm->tm_wday = (dr & STM32_RTC_DR_WDAY) >> STM32_RTC_DR_WDAY_SHIFT; in stm32_rtc_read_time() 300 unsigned int tr, dr; in stm32_rtc_set_time() local 311 dr = ((tm->tm_mday << STM32_RTC_DR_DATE_SHIFT) & STM32_RTC_DR_DATE) | in stm32_rtc_set_time() 325 writel_relaxed(dr, rtc->base + regs->dr); in stm32_rtc_set_time() [all …]
|
| /Linux-v5.4/drivers/macintosh/ |
| D | macio_asic.c | 549 struct macio_devres *dr = res; in maciom_release() local 554 if (dr->res_mask & (1 << i)) in maciom_release() 561 struct macio_devres *dr; in macio_enable_devres() local 563 dr = devres_find(&dev->ofdev.dev, maciom_release, NULL, NULL); in macio_enable_devres() 564 if (!dr) { in macio_enable_devres() 565 dr = devres_alloc(maciom_release, sizeof(*dr), GFP_KERNEL); in macio_enable_devres() 566 if (!dr) in macio_enable_devres() 569 return devres_get(&dev->ofdev.dev, dr, NULL, NULL) != NULL; in macio_enable_devres() 594 struct macio_devres *dr = find_macio_dr(dev); in macio_request_resource() local 604 if (dr && resource_no < 32) in macio_request_resource() [all …]
|
| /Linux-v5.4/include/rdma/ |
| D | opa_smi.h | 73 } dr; member 130 return smp->route.dr.data; in opa_get_smp_data() 138 return sizeof(smp->route.dr.data); in opa_get_smp_data_size() 146 return sizeof(*smp) - sizeof(smp->route.dr.data); in opa_get_smp_header_size()
|
| /Linux-v5.4/arch/powerpc/sysdev/ |
| D | dcr.c | 119 const u32 *dr = of_get_property(np, "dcr-reg", &ds); in dcr_resource_start() local 121 if (dr == NULL || ds & 1 || index >= (ds / 8)) in dcr_resource_start() 124 return dr[index * 2]; in dcr_resource_start() 131 const u32 *dr = of_get_property(np, "dcr-reg", &ds); in dcr_resource_len() local 133 if (dr == NULL || ds & 1 || index >= (ds / 8)) in dcr_resource_len() 136 return dr[index * 2 + 1]; in dcr_resource_len()
|