/drivers/target/iscsi/ |
D | iscsi_target_datain_values.c | 30 struct iscsi_datain_req *dr; in iscsit_allocate_datain_req() local 32 dr = kmem_cache_zalloc(lio_dr_cache, GFP_ATOMIC); in iscsit_allocate_datain_req() 33 if (!dr) { in iscsit_allocate_datain_req() 38 INIT_LIST_HEAD(&dr->cmd_datain_node); in iscsit_allocate_datain_req() 40 return dr; in iscsit_allocate_datain_req() 43 void iscsit_attach_datain_req(struct iscsi_cmd *cmd, struct iscsi_datain_req *dr) in iscsit_attach_datain_req() argument 46 list_add_tail(&dr->cmd_datain_node, &cmd->datain_list); in iscsit_attach_datain_req() 50 void iscsit_free_datain_req(struct iscsi_cmd *cmd, struct iscsi_datain_req *dr) in iscsit_free_datain_req() argument 53 list_del(&dr->cmd_datain_node); in iscsit_free_datain_req() 56 kmem_cache_free(lio_dr_cache, dr); in iscsit_free_datain_req() [all …]
|
D | iscsi_target_erl1.c | 202 struct iscsi_datain_req *dr) in iscsit_create_recovery_datain_values_datasequenceinorder_yes() argument 206 u32 begrun = dr->begrun; in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 211 if ((dr->next_burst_len + in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 214 dr->read_data_done += in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 216 dr->next_burst_len += in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 219 dr->read_data_done += in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 221 dr->next_burst_len); in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 222 dr->next_burst_len = 0; in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 248 struct iscsi_datain_req *dr) in iscsit_create_recovery_datain_values_datasequenceinorder_no() argument 252 u32 begrun = dr->begrun; in iscsit_create_recovery_datain_values_datasequenceinorder_no() [all …]
|
D | iscsi_target_tmr.c | 311 struct iscsi_datain_req *dr; in iscsit_task_reassign_complete_read() local 340 dr = iscsit_allocate_datain_req(); in iscsit_task_reassign_complete_read() 341 if (!dr) in iscsit_task_reassign_complete_read() 347 dr->data_sn = dr->begrun = tmr_req->exp_data_sn; in iscsit_task_reassign_complete_read() 348 dr->runlength = 0; in iscsit_task_reassign_complete_read() 349 dr->generate_recovery_values = 1; in iscsit_task_reassign_complete_read() 350 dr->recovery = DATAIN_CONNECTION_RECOVERY; in iscsit_task_reassign_complete_read() 352 iscsit_attach_datain_req(cmd, dr); in iscsit_task_reassign_complete_read()
|
/drivers/gpio/ |
D | devres.c | 104 struct gpio_desc **dr; in devm_gpiod_get_index() local 107 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_gpiod_get_index() 109 if (!dr) in devm_gpiod_get_index() 114 devres_free(dr); in devm_gpiod_get_index() 118 *dr = desc; in devm_gpiod_get_index() 119 devres_add(dev, dr); in devm_gpiod_get_index() 140 struct gpio_desc **dr; in devm_get_gpiod_from_child() local 144 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_get_gpiod_from_child() 146 if (!dr) in devm_get_gpiod_from_child() 162 devres_free(dr); in devm_get_gpiod_from_child() [all …]
|
/drivers/base/ |
D | devres.c | 88 struct devres *dr; in alloc_dr() local 90 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr() 91 if (unlikely(!dr)) in alloc_dr() 94 memset(dr, 0, offsetof(struct devres, data)); in alloc_dr() 96 INIT_LIST_HEAD(&dr->node.entry); in alloc_dr() 97 dr->node.release = release; in alloc_dr() 98 return dr; in alloc_dr() 112 struct devres *dr; in __devres_alloc_node() local 114 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node() 115 if (unlikely(!dr)) in __devres_alloc_node() [all …]
|
D | dma-mapping.c | 67 struct dma_devres *dr; in dmam_alloc_coherent() local 70 dr = devres_alloc(dmam_coherent_release, sizeof(*dr), gfp); in dmam_alloc_coherent() 71 if (!dr) in dmam_alloc_coherent() 76 devres_free(dr); in dmam_alloc_coherent() 80 dr->vaddr = vaddr; in dmam_alloc_coherent() 81 dr->dma_handle = *dma_handle; in dmam_alloc_coherent() 82 dr->size = size; in dmam_alloc_coherent() 84 devres_add(dev, dr); in dmam_alloc_coherent() 126 struct dma_devres *dr; in dmam_alloc_noncoherent() local 129 dr = devres_alloc(dmam_noncoherent_release, sizeof(*dr), gfp); in dmam_alloc_noncoherent() [all …]
|
/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 43 static inline u32 vnet_tx_dring_avail(struct vio_dring_state *dr) in vnet_tx_dring_avail() argument 45 return vio_dring_avail(dr, VNET_TX_RING_SIZE); in vnet_tx_dring_avail() 256 struct vio_dring_state *dr; in sunvnet_handshake_complete_common() local 258 dr = &vio->drings[VIO_DRIVER_RX_RING]; in sunvnet_handshake_complete_common() 259 dr->rcv_nxt = 1; in sunvnet_handshake_complete_common() 260 dr->snd_nxt = 1; in sunvnet_handshake_complete_common() 262 dr = &vio->drings[VIO_DRIVER_TX_RING]; in sunvnet_handshake_complete_common() 263 dr->rcv_nxt = 1; in sunvnet_handshake_complete_common() 264 dr->snd_nxt = 1; in sunvnet_handshake_complete_common() 420 static int vnet_send_ack(struct vnet_port *port, struct vio_dring_state *dr, in vnet_send_ack() argument [all …]
|
/drivers/block/ |
D | sunvdc.c | 105 static inline u32 vdc_tx_dring_avail(struct vio_dring_state *dr) in vdc_tx_dring_avail() argument 107 return vio_dring_avail(dr, VDC_TX_RING_SIZE); in vdc_tx_dring_avail() 165 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_blk_queue_start() local 172 vdc_tx_dring_avail(dr) * 100 / VDC_TX_RING_SIZE >= 50) { in vdc_blk_queue_start() 289 static void vdc_end_one(struct vdc_port *port, struct vio_dring_state *dr, in vdc_end_one() argument 292 struct vio_disk_desc *desc = vio_dring_entry(dr, index); in vdc_end_one() 301 dr->cons = vio_dring_next(dr, index); in vdc_end_one() 318 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_ack() local 321 if (unlikely(pkt->dring_ident != dr->ident || in vdc_ack() 326 vdc_end_one(port, dr, pkt->start_idx); in vdc_ack() [all …]
|
/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 …]
|
/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) ) \
|
/drivers/power/reset/ |
D | reboot-mode.c | 153 struct reboot_mode_driver **dr; in devm_reboot_mode_register() local 156 dr = devres_alloc(devm_reboot_mode_release, sizeof(*dr), GFP_KERNEL); in devm_reboot_mode_register() 157 if (!dr) in devm_reboot_mode_register() 162 devres_free(dr); in devm_reboot_mode_register() 166 *dr = reboot; in devm_reboot_mode_register() 167 devres_add(dev, dr); in devm_reboot_mode_register()
|
/drivers/bluetooth/ |
D | bpa10x.c | 286 struct usb_ctrlrequest *dr; in bpa10x_send_frame() local 304 dr = kmalloc(sizeof(*dr), GFP_ATOMIC); in bpa10x_send_frame() 305 if (!dr) { in bpa10x_send_frame() 310 dr->bRequestType = USB_TYPE_VENDOR; in bpa10x_send_frame() 311 dr->bRequest = 0; in bpa10x_send_frame() 312 dr->wIndex = 0; in bpa10x_send_frame() 313 dr->wValue = 0; in bpa10x_send_frame() 314 dr->wLength = __cpu_to_le16(skb->len); in bpa10x_send_frame() 318 usb_fill_control_urb(urb, data->udev, pipe, (void *) dr, in bpa10x_send_frame()
|
/drivers/usb/serial/ |
D | opticon.c | 189 struct usb_ctrlrequest *dr; in opticon_write() local 218 dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_ATOMIC); in opticon_write() 219 if (!dr) { in opticon_write() 224 dr->bRequestType = USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT; in opticon_write() 225 dr->bRequest = 0x01; in opticon_write() 226 dr->wValue = 0; in opticon_write() 227 dr->wIndex = 0; in opticon_write() 228 dr->wLength = cpu_to_le16(count); in opticon_write() 232 (unsigned char *)dr, buffer, count, in opticon_write() 251 kfree(dr); in opticon_write()
|
D | mos7840.c | 231 struct usb_ctrlrequest *dr; member 502 struct usb_ctrlrequest *dr = mcs->dr; in mos7840_get_reg() local 509 dr->bRequestType = MCS_RD_RTYPE; in mos7840_get_reg() 510 dr->bRequest = MCS_RDREQ; in mos7840_get_reg() 511 dr->wValue = cpu_to_le16(Wval); /* 0 */ in mos7840_get_reg() 512 dr->wIndex = cpu_to_le16(reg); in mos7840_get_reg() 513 dr->wLength = cpu_to_le16(2); in mos7840_get_reg() 516 (unsigned char *)dr, buffer, 2, in mos7840_get_reg() 549 struct usb_ctrlrequest *dr = mcs->led_dr; in mos7840_set_led_async() local 551 dr->bRequestType = MCS_WR_RTYPE; in mos7840_set_led_async() [all …]
|
/drivers/macintosh/ |
D | macio_asic.c | 552 struct macio_devres *dr = res; in maciom_release() local 557 if (dr->res_mask & (1 << i)) in maciom_release() 564 struct macio_devres *dr; in macio_enable_devres() local 566 dr = devres_find(&dev->ofdev.dev, maciom_release, NULL, NULL); in macio_enable_devres() 567 if (!dr) { in macio_enable_devres() 568 dr = devres_alloc(maciom_release, sizeof(*dr), GFP_KERNEL); in macio_enable_devres() 569 if (!dr) in macio_enable_devres() 572 return devres_get(&dev->ofdev.dev, dr, NULL, NULL) != NULL; in macio_enable_devres() 597 struct macio_devres *dr = find_macio_dr(dev); in macio_request_resource() local 607 if (dr && resource_no < 32) in macio_request_resource() [all …]
|
/drivers/leds/ |
D | led-class.c | 280 struct led_classdev **dr; in devm_led_classdev_register() local 283 dr = devres_alloc(devm_led_classdev_release, sizeof(*dr), GFP_KERNEL); in devm_led_classdev_register() 284 if (!dr) in devm_led_classdev_register() 289 devres_free(dr); in devm_led_classdev_register() 293 *dr = led_cdev; in devm_led_classdev_register() 294 devres_add(parent, dr); in devm_led_classdev_register()
|
D | led-triggers.c | 260 struct led_trigger **dr; in devm_led_trigger_register() local 263 dr = devres_alloc(devm_led_trigger_release, sizeof(*dr), in devm_led_trigger_register() 265 if (!dr) in devm_led_trigger_register() 268 *dr = trig; in devm_led_trigger_register() 272 devres_free(dr); in devm_led_trigger_register() 274 devres_add(dev, dr); in devm_led_trigger_register()
|
/drivers/isdn/hisax/ |
D | st5481_usb.c | 46 ((struct ctrl_msg *)urb->setup_packet)->dr.bRequest, in usb_next_ctrl_msg() 47 ((struct ctrl_msg *)urb->setup_packet)->dr.wValue, in usb_next_ctrl_msg() 48 ((struct ctrl_msg *)urb->setup_packet)->dr.wIndex); in usb_next_ctrl_msg() 74 ctrl_msg->dr.bRequestType = requesttype; in usb_ctrl_msg() 75 ctrl_msg->dr.bRequest = request; in usb_ctrl_msg() 76 ctrl_msg->dr.wValue = cpu_to_le16p(&value); in usb_ctrl_msg() 77 ctrl_msg->dr.wIndex = cpu_to_le16p(&index); in usb_ctrl_msg() 78 ctrl_msg->dr.wLength = 0; in usb_ctrl_msg() 149 if (ctrl_msg->dr.bRequest == USB_REQ_CLEAR_FEATURE) { in usb_ctrl_complete() 151 le16_to_cpus(&ctrl_msg->dr.wIndex); in usb_ctrl_complete() [all …]
|
/drivers/scsi/libsas/ |
D | sas_expander.c | 186 static enum sas_device_type to_dev_type(struct discover_resp *dr) in to_dev_type() argument 191 if (dr->attached_dev_type == SAS_PHY_UNUSED && dr->attached_sata_dev && in to_dev_type() 192 dr->linkrate >= SAS_LINK_RATE_1_5_GBPS) in to_dev_type() 195 return dr->attached_dev_type; in to_dev_type() 204 struct discover_resp *dr = &resp->disc; in sas_set_ex_phy() local 249 phy->attached_dev_type = to_dev_type(dr); in sas_set_ex_phy() 253 phy->linkrate = dr->linkrate; in sas_set_ex_phy() 254 phy->attached_sata_host = dr->attached_sata_host; in sas_set_ex_phy() 255 phy->attached_sata_dev = dr->attached_sata_dev; in sas_set_ex_phy() 256 phy->attached_sata_ps = dr->attached_sata_ps; in sas_set_ex_phy() [all …]
|
/drivers/usb/misc/ |
D | uss720.c | 78 struct usb_ctrlrequest *dr; member 101 kfree(rq->dr); in destroy_async() 124 } else if (rq->dr->bRequest == 3) { in async_complete() 165 rq->dr = kmalloc(sizeof(*rq->dr), mem_flags); in submit_async_request() 166 if (!rq->dr) { in submit_async_request() 170 rq->dr->bRequestType = requesttype; in submit_async_request() 171 rq->dr->bRequest = request; in submit_async_request() 172 rq->dr->wValue = cpu_to_le16(value); in submit_async_request() 173 rq->dr->wIndex = cpu_to_le16(index); in submit_async_request() 174 rq->dr->wLength = cpu_to_le16((request == 3) ? sizeof(rq->reg) : 0); in submit_async_request() [all …]
|
/drivers/staging/greybus/ |
D | es2.c | 199 struct usb_ctrlrequest *dr = urb->context; in ap_urb_complete() local 201 kfree(dr); in ap_urb_complete() 209 struct usb_ctrlrequest *dr; in output_async() local 217 dr = kmalloc(sizeof(*dr) + size, GFP_ATOMIC); in output_async() 218 if (!dr) { in output_async() 223 buf = (u8 *)dr + sizeof(*dr); in output_async() 226 dr->bRequest = cmd; in output_async() 227 dr->bRequestType = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE; in output_async() 228 dr->wValue = 0; in output_async() 229 dr->wIndex = 0; in output_async() [all …]
|
/drivers/usb/dwc2/ |
D | gadget.c | 4031 struct dwc2_dregs_backup *dr; in dwc2_backup_device_registers() local 4037 dr = &hsotg->dr_backup; in dwc2_backup_device_registers() 4039 dr->dcfg = dwc2_readl(hsotg->regs + DCFG); in dwc2_backup_device_registers() 4040 dr->dctl = dwc2_readl(hsotg->regs + DCTL); in dwc2_backup_device_registers() 4041 dr->daintmsk = dwc2_readl(hsotg->regs + DAINTMSK); in dwc2_backup_device_registers() 4042 dr->diepmsk = dwc2_readl(hsotg->regs + DIEPMSK); in dwc2_backup_device_registers() 4043 dr->doepmsk = dwc2_readl(hsotg->regs + DOEPMSK); in dwc2_backup_device_registers() 4047 dr->diepctl[i] = dwc2_readl(hsotg->regs + DIEPCTL(i)); in dwc2_backup_device_registers() 4050 if (dr->diepctl[i] & DXEPCTL_DPID) in dwc2_backup_device_registers() 4051 dr->diepctl[i] |= DXEPCTL_SETD1PID; in dwc2_backup_device_registers() [all …]
|
/drivers/pci/ |
D | pci.c | 1488 struct pci_devres *dr, *new_dr; in get_pci_dr() local 1490 dr = devres_find(&pdev->dev, pcim_release, NULL, NULL); in get_pci_dr() 1491 if (dr) in get_pci_dr() 1492 return dr; in get_pci_dr() 1515 struct pci_devres *dr; in pcim_enable_device() local 1518 dr = get_pci_dr(pdev); in pcim_enable_device() 1519 if (unlikely(!dr)) in pcim_enable_device() 1521 if (dr->enabled) in pcim_enable_device() 1527 dr->enabled = 1; in pcim_enable_device() 1543 struct pci_devres *dr; in pcim_pin_device() local [all …]
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | usb.c | 67 struct usb_ctrlrequest *dr; in _usbctrl_vendorreq_async_write() local 78 dr = kzalloc(sizeof(*dr), GFP_ATOMIC); in _usbctrl_vendorreq_async_write() 79 if (!dr) in _usbctrl_vendorreq_async_write() 84 kfree(dr); in _usbctrl_vendorreq_async_write() 91 kfree(dr); in _usbctrl_vendorreq_async_write() 95 dr->bRequestType = reqtype; in _usbctrl_vendorreq_async_write() 96 dr->bRequest = request; in _usbctrl_vendorreq_async_write() 97 dr->wValue = cpu_to_le16(value); in _usbctrl_vendorreq_async_write() 98 dr->wIndex = cpu_to_le16(index); in _usbctrl_vendorreq_async_write() 99 dr->wLength = cpu_to_le16(len); in _usbctrl_vendorreq_async_write() [all …]
|
/drivers/usb/host/ |
D | ehci-hub.c | 749 void *dr, in request_single_step_set_feature_urb() argument 771 urb->setup_packet = (void *)dr; in request_single_step_set_feature_urb() 798 struct usb_ctrlrequest *dr; in ehset_single_step_set_feature() local 815 dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL); in ehset_single_step_set_feature() 816 if (!dr) { in ehset_single_step_set_feature() 822 dr->bRequestType = USB_DIR_IN; in ehset_single_step_set_feature() 823 dr->bRequest = USB_REQ_GET_DESCRIPTOR; in ehset_single_step_set_feature() 824 dr->wValue = cpu_to_le16(USB_DT_DEVICE << 8); in ehset_single_step_set_feature() 825 dr->wIndex = 0; in ehset_single_step_set_feature() 826 dr->wLength = cpu_to_le16(USB_DT_DEVICE_SIZE); in ehset_single_step_set_feature() [all …]
|