/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 | 203 struct iscsi_datain_req *dr) in iscsit_create_recovery_datain_values_datasequenceinorder_yes() argument 207 u32 begrun = dr->begrun; in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 212 if ((dr->next_burst_len + in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 215 dr->read_data_done += in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 217 dr->next_burst_len += in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 220 dr->read_data_done += in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 222 dr->next_burst_len); in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 223 dr->next_burst_len = 0; in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 249 struct iscsi_datain_req *dr) in iscsit_create_recovery_datain_values_datasequenceinorder_no() argument 253 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 | 106 struct gpio_desc **dr; in devm_gpiod_get_index() local 109 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_gpiod_get_index() 111 if (!dr) in devm_gpiod_get_index() 116 devres_free(dr); in devm_gpiod_get_index() 120 *dr = desc; in devm_gpiod_get_index() 121 devres_add(dev, dr); in devm_gpiod_get_index() 150 struct gpio_desc **dr; in devm_fwnode_get_index_gpiod_from_child() local 154 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_fwnode_get_index_gpiod_from_child() 156 if (!dr) in devm_fwnode_get_index_gpiod_from_child() 173 devres_free(dr); in devm_fwnode_get_index_gpiod_from_child() [all …]
|
/drivers/base/ |
D | devres.c | 95 struct devres *dr; in alloc_dr() local 97 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr() 98 if (unlikely(!dr)) in alloc_dr() 101 memset(dr, 0, offsetof(struct devres, data)); in alloc_dr() 103 INIT_LIST_HEAD(&dr->node.entry); in alloc_dr() 104 dr->node.release = release; in alloc_dr() 105 return dr; in alloc_dr() 119 struct devres *dr; in __devres_alloc_node() local 121 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node() 122 if (unlikely(!dr)) in __devres_alloc_node() [all …]
|
D | dma-mapping.c | 64 struct dma_devres *dr; in dmam_alloc_coherent() local 67 dr = devres_alloc(dmam_release, sizeof(*dr), gfp); in dmam_alloc_coherent() 68 if (!dr) in dmam_alloc_coherent() 73 devres_free(dr); in dmam_alloc_coherent() 77 dr->vaddr = vaddr; in dmam_alloc_coherent() 78 dr->dma_handle = *dma_handle; in dmam_alloc_coherent() 79 dr->size = size; in dmam_alloc_coherent() 81 devres_add(dev, dr); in dmam_alloc_coherent() 123 struct dma_devres *dr; in dmam_alloc_attrs() local 126 dr = devres_alloc(dmam_release, sizeof(*dr), gfp); in dmam_alloc_attrs() [all …]
|
/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 47 static inline u32 vnet_tx_dring_avail(struct vio_dring_state *dr) in vnet_tx_dring_avail() argument 49 return vio_dring_avail(dr, VNET_TX_RING_SIZE); in vnet_tx_dring_avail() 261 struct vio_dring_state *dr; in sunvnet_handshake_complete_common() local 263 dr = &vio->drings[VIO_DRIVER_RX_RING]; in sunvnet_handshake_complete_common() 264 dr->rcv_nxt = 1; in sunvnet_handshake_complete_common() 265 dr->snd_nxt = 1; in sunvnet_handshake_complete_common() 267 dr = &vio->drings[VIO_DRIVER_TX_RING]; in sunvnet_handshake_complete_common() 268 dr->rcv_nxt = 1; in sunvnet_handshake_complete_common() 269 dr->snd_nxt = 1; in sunvnet_handshake_complete_common() 468 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 | 110 static inline u32 vdc_tx_dring_avail(struct vio_dring_state *dr) in vdc_tx_dring_avail() argument 112 return vio_dring_avail(dr, VDC_TX_RING_SIZE); in vdc_tx_dring_avail() 170 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_blk_queue_start() local 177 vdc_tx_dring_avail(dr) * 100 / VDC_TX_RING_SIZE >= 50) { in vdc_blk_queue_start() 299 static void vdc_end_one(struct vdc_port *port, struct vio_dring_state *dr, in vdc_end_one() argument 302 struct vio_disk_desc *desc = vio_dring_entry(dr, index); in vdc_end_one() 311 dr->cons = vio_dring_next(dr, index); in vdc_end_one() 328 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_ack() local 331 if (unlikely(pkt->dring_ident != dr->ident || in vdc_ack() 336 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/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 | 235 struct usb_ctrlrequest *dr; member 509 struct usb_ctrlrequest *dr = mcs->dr; in mos7840_get_reg() local 516 dr->bRequestType = MCS_RD_RTYPE; in mos7840_get_reg() 517 dr->bRequest = MCS_RDREQ; in mos7840_get_reg() 518 dr->wValue = cpu_to_le16(Wval); /* 0 */ in mos7840_get_reg() 519 dr->wIndex = cpu_to_le16(reg); in mos7840_get_reg() 520 dr->wLength = cpu_to_le16(2); in mos7840_get_reg() 523 (unsigned char *)dr, buffer, 2, in mos7840_get_reg() 556 struct usb_ctrlrequest *dr = mcs->led_dr; in mos7840_set_led_async() local 558 dr->bRequestType = MCS_WR_RTYPE; in mos7840_set_led_async() [all …]
|
/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/macintosh/ |
D | macio_asic.c | 553 struct macio_devres *dr = res; in maciom_release() local 558 if (dr->res_mask & (1 << i)) in maciom_release() 565 struct macio_devres *dr; in macio_enable_devres() local 567 dr = devres_find(&dev->ofdev.dev, maciom_release, NULL, NULL); in macio_enable_devres() 568 if (!dr) { in macio_enable_devres() 569 dr = devres_alloc(maciom_release, sizeof(*dr), GFP_KERNEL); in macio_enable_devres() 570 if (!dr) in macio_enable_devres() 573 return devres_get(&dev->ofdev.dev, dr, NULL, NULL) != NULL; in macio_enable_devres() 598 struct macio_devres *dr = find_macio_dr(dev); in macio_request_resource() local 608 if (dr && resource_no < 32) in macio_request_resource() [all …]
|
/drivers/rtc/ |
D | rtc-stm32.c | 237 unsigned int tr, dr; in stm32_rtc_read_time() local 241 dr = readl_relaxed(rtc->base + STM32_RTC_DR); in stm32_rtc_read_time() 247 tm->tm_mday = (dr & STM32_RTC_DR_DATE) >> STM32_RTC_DR_DATE_SHIFT; in stm32_rtc_read_time() 248 tm->tm_mon = (dr & STM32_RTC_DR_MONTH) >> STM32_RTC_DR_MONTH_SHIFT; in stm32_rtc_read_time() 249 tm->tm_year = (dr & STM32_RTC_DR_YEAR) >> STM32_RTC_DR_YEAR_SHIFT; in stm32_rtc_read_time() 250 tm->tm_wday = (dr & STM32_RTC_DR_WDAY) >> STM32_RTC_DR_WDAY_SHIFT; in stm32_rtc_read_time() 262 unsigned int tr, dr; in stm32_rtc_set_time() local 273 dr = ((tm->tm_mday << STM32_RTC_DR_DATE_SHIFT) & STM32_RTC_DR_DATE) | in stm32_rtc_set_time() 287 writel_relaxed(dr, rtc->base + STM32_RTC_DR); in stm32_rtc_set_time() 393 unsigned int dr = readl_relaxed(rtc->base + STM32_RTC_DR); in stm32_rtc_valid_alrm() local [all …]
|
/drivers/leds/ |
D | led-class.c | 364 struct led_classdev **dr; in devm_of_led_classdev_register() local 367 dr = devres_alloc(devm_led_classdev_release, sizeof(*dr), GFP_KERNEL); in devm_of_led_classdev_register() 368 if (!dr) in devm_of_led_classdev_register() 373 devres_free(dr); in devm_of_led_classdev_register() 377 *dr = led_cdev; in devm_of_led_classdev_register() 378 devres_add(parent, dr); in devm_of_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/staging/vc04_services/bcm2835-audio/ |
D | bcm2835.c | 49 struct device **dr; in snd_devm_add_child() local 52 dr = devres_alloc(snd_devm_unregister_child, sizeof(*dr), GFP_KERNEL); in snd_devm_add_child() 53 if (!dr) in snd_devm_add_child() 58 devres_free(dr); in snd_devm_add_child() 62 *dr = child; in snd_devm_add_child() 63 devres_add(dev, dr); in snd_devm_add_child()
|
/drivers/scsi/libsas/ |
D | sas_expander.c | 196 static enum sas_device_type to_dev_type(struct discover_resp *dr) in to_dev_type() argument 201 if (dr->attached_dev_type == SAS_PHY_UNUSED && dr->attached_sata_dev && in to_dev_type() 202 dr->linkrate >= SAS_LINK_RATE_1_5_GBPS) in to_dev_type() 205 return dr->attached_dev_type; in to_dev_type() 214 struct discover_resp *dr = &resp->disc; in sas_set_ex_phy() local 259 phy->attached_dev_type = to_dev_type(dr); in sas_set_ex_phy() 263 phy->linkrate = dr->linkrate; in sas_set_ex_phy() 264 phy->attached_sata_host = dr->attached_sata_host; in sas_set_ex_phy() 265 phy->attached_sata_dev = dr->attached_sata_dev; in sas_set_ex_phy() 266 phy->attached_sata_ps = dr->attached_sata_ps; in sas_set_ex_phy() [all …]
|
/drivers/usb/misc/ |
D | uss720.c | 75 struct usb_ctrlrequest *dr; member 98 kfree(rq->dr); in destroy_async() 121 } else if (rq->dr->bRequest == 3) { in async_complete() 162 rq->dr = kmalloc(sizeof(*rq->dr), mem_flags); in submit_async_request() 163 if (!rq->dr) { in submit_async_request() 167 rq->dr->bRequestType = requesttype; in submit_async_request() 168 rq->dr->bRequest = request; in submit_async_request() 169 rq->dr->wValue = cpu_to_le16(value); in submit_async_request() 170 rq->dr->wIndex = cpu_to_le16(index); in submit_async_request() 171 rq->dr->wLength = cpu_to_le16((request == 3) ? sizeof(rq->reg) : 0); in submit_async_request() [all …]
|
/drivers/staging/greybus/ |
D | es2.c | 175 struct usb_ctrlrequest *dr = urb->context; in ap_urb_complete() local 177 kfree(dr); in ap_urb_complete() 185 struct usb_ctrlrequest *dr; in output_async() local 193 dr = kmalloc(sizeof(*dr) + size, GFP_ATOMIC); in output_async() 194 if (!dr) { in output_async() 199 buf = (u8 *)dr + sizeof(*dr); in output_async() 202 dr->bRequest = cmd; in output_async() 203 dr->bRequestType = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE; in output_async() 204 dr->wValue = 0; in output_async() 205 dr->wIndex = 0; in output_async() [all …]
|
/drivers/pci/ |
D | pci.c | 1497 struct pci_devres *dr, *new_dr; in get_pci_dr() local 1499 dr = devres_find(&pdev->dev, pcim_release, NULL, NULL); in get_pci_dr() 1500 if (dr) in get_pci_dr() 1501 return dr; in get_pci_dr() 1524 struct pci_devres *dr; in pcim_enable_device() local 1527 dr = get_pci_dr(pdev); in pcim_enable_device() 1528 if (unlikely(!dr)) in pcim_enable_device() 1530 if (dr->enabled) in pcim_enable_device() 1536 dr->enabled = 1; in pcim_enable_device() 1552 struct pci_devres *dr; in pcim_pin_device() local [all …]
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | usb.c | 63 struct usb_ctrlrequest *dr; in _usbctrl_vendorreq_async_write() local 74 dr = kzalloc(sizeof(*dr), GFP_ATOMIC); in _usbctrl_vendorreq_async_write() 75 if (!dr) in _usbctrl_vendorreq_async_write() 80 kfree(dr); in _usbctrl_vendorreq_async_write() 87 kfree(dr); in _usbctrl_vendorreq_async_write() 91 dr->bRequestType = reqtype; in _usbctrl_vendorreq_async_write() 92 dr->bRequest = request; in _usbctrl_vendorreq_async_write() 93 dr->wValue = cpu_to_le16(value); in _usbctrl_vendorreq_async_write() 94 dr->wIndex = cpu_to_le16(index); in _usbctrl_vendorreq_async_write() 95 dr->wLength = cpu_to_le16(len); in _usbctrl_vendorreq_async_write() [all …]
|