Searched refs:dr (Results 1 - 25 of 45) sorted by relevance

12

/drivers/target/iscsi/
H A Discsi_target_datain_values.c32 struct iscsi_datain_req *dr; local
34 dr = kmem_cache_zalloc(lio_dr_cache, GFP_ATOMIC);
35 if (!dr) {
40 INIT_LIST_HEAD(&dr->dr_list);
42 return dr;
45 void iscsit_attach_datain_req(struct iscsi_cmd *cmd, struct iscsi_datain_req *dr) argument
48 list_add_tail(&dr->dr_list, &cmd->datain_list);
52 void iscsit_free_datain_req(struct iscsi_cmd *cmd, struct iscsi_datain_req *dr) argument
55 list_del(&dr->dr_list);
58 kmem_cache_free(lio_dr_cache, dr);
63 struct iscsi_datain_req *dr, *dr_tmp; local
75 struct iscsi_datain_req *dr; local
97 struct iscsi_datain_req *dr; local
195 struct iscsi_datain_req *dr; local
316 struct iscsi_datain_req *dr; local
415 struct iscsi_datain_req *dr; local
[all...]
H A Discsi_target_erl1.c202 struct iscsi_datain_req *dr)
206 u32 begrun = dr->begrun;
211 if ((dr->next_burst_len +
214 dr->read_data_done +=
216 dr->next_burst_len +=
219 dr->read_data_done +=
221 dr->next_burst_len);
222 dr->next_burst_len = 0;
248 struct iscsi_datain_req *dr)
252 u32 begrun = dr
200 iscsit_create_recovery_datain_values_datasequenceinorder_yes( struct iscsi_cmd *cmd, struct iscsi_datain_req *dr) argument
246 iscsit_create_recovery_datain_values_datasequenceinorder_no( struct iscsi_cmd *cmd, struct iscsi_datain_req *dr) argument
416 struct iscsi_datain_req *dr; local
[all...]
H A Discsi_target_tmr.c303 struct iscsi_datain_req *dr; local
332 dr = iscsit_allocate_datain_req();
333 if (!dr)
339 dr->data_sn = dr->begrun = tmr_req->exp_data_sn;
340 dr->runlength = 0;
341 dr->generate_recovery_values = 1;
342 dr->recovery = DATAIN_CONNECTION_RECOVERY;
344 iscsit_attach_datain_req(cmd, dr);
/drivers/gpio/
H A Ddevres.c53 unsigned *dr; local
56 dr = devres_alloc(devm_gpio_release, sizeof(unsigned), GFP_KERNEL);
57 if (!dr)
62 devres_free(dr);
66 *dr = gpio;
67 devres_add(dev, dr);
/drivers/base/
H A Ddevres.c88 struct devres *dr; local
90 dr = kmalloc_track_caller(tot_size, gfp);
91 if (unlikely(!dr))
94 memset(dr, 0, tot_size);
95 INIT_LIST_HEAD(&dr->node.entry);
96 dr->node.release = release;
97 return dr;
111 struct devres *dr; local
113 dr = alloc_dr(release, size, gfp);
114 if (unlikely(!dr))
136 struct devres *dr; local
155 struct devres *dr = container_of(res, struct devres, data); local
174 struct devres *dr = container_of(res, struct devres, data); local
189 struct devres *dr = container_of(node, struct devres, node); local
218 struct devres *dr; local
249 struct devres *dr; local
284 struct devres *dr; local
404 struct devres *dr, *tmp; variable in typeref:struct:devres
416 kfree(dr); variable
624 struct devres *dr; local
[all...]
H A Ddma-mapping.c65 struct dma_devres *dr; local
68 dr = devres_alloc(dmam_coherent_release, sizeof(*dr), gfp);
69 if (!dr)
74 devres_free(dr);
78 dr->vaddr = vaddr;
79 dr->dma_handle = *dma_handle;
80 dr->size = size;
82 devres_add(dev, dr);
124 struct dma_devres *dr; local
[all...]
/drivers/net/ethernet/sun/
H A Dsunvnet.c40 static inline u32 vnet_tx_dring_avail(struct vio_dring_state *dr) argument
42 return vio_dring_avail(dr, VNET_TX_RING_SIZE);
156 struct vio_dring_state *dr; local
158 dr = &vio->drings[VIO_DRIVER_RX_RING];
159 dr->snd_nxt = dr->rcv_nxt = 1;
161 dr = &vio->drings[VIO_DRIVER_TX_RING];
162 dr->snd_nxt = dr->rcv_nxt = 1;
247 static int vnet_send_ack(struct vnet_port *port, struct vio_dring_state *dr, argument
280 next_idx(u32 idx, struct vio_dring_state *dr) argument
287 prev_idx(u32 idx, struct vio_dring_state *dr) argument
297 get_rx_desc(struct vnet_port *port, struct vio_dring_state *dr, u32 index) argument
313 put_rx_desc(struct vnet_port *port, struct vio_dring_state *dr, struct vio_net_desc *desc, u32 index) argument
329 vnet_walk_rx_one(struct vnet_port *port, struct vio_dring_state *dr, u32 index, int *needs_ack) argument
359 vnet_walk_rx(struct vnet_port *port, struct vio_dring_state *dr, u32 start, u32 end) argument
395 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_RX_RING]; local
416 idx_is_pending(struct vio_dring_state *dr, u32 end) argument
433 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; local
488 struct vio_dring_state *dr; local
583 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; local
647 struct vio_dring_state *dr; local
910 struct vio_dring_state *dr; local
942 struct vio_dring_state *dr; local
[all...]
H A Dsunvnet.h13 #define VNET_TX_WAKEUP_THRESH(dr) ((dr)->pending / 4)
/drivers/parisc/
H A Dpower.c66 #define MTCPU(dr, gr) MFCPU_X(dr, gr, 0, 0x12) /* move value of gr to dr[dr] */
67 #define MFCPU_C(dr, gr) MFCPU_X(dr, gr, 0, 0x30) /* for dr0 and dr8 only ! */
68 #define MFCPU_T(dr, gr) MFCPU_X(dr, 0, gr, 0xa0) /* all dr except dr0 and dr8 */
70 #define __getDIAG(dr) ( { \
[all...]
/drivers/staging/winbond/
H A Dwb35reg.c23 struct usb_ctrlrequest *dr; local
43 dr = (struct usb_ctrlrequest *)((u8 *)reg_queue + sizeof(struct wb35_reg_queue) + DataSize);
44 dr->bRequestType = USB_TYPE_VENDOR | USB_DIR_OUT | USB_RECIP_DEVICE;
45 dr->bRequest = 0x04; /* USB or vendor-defined request code, burst mode */
46 dr->wValue = cpu_to_le16(Flag); /* 0: Register number auto-increment, 1: No auto increment */
47 dr->wIndex = cpu_to_le16(RegisterNo);
48 dr->wLength = cpu_to_le16(DataSize);
50 reg_queue->pUsbReq = dr;
165 struct usb_ctrlrequest *dr; local
183 dr
229 struct usb_ctrlrequest *dr; local
335 struct usb_ctrlrequest *dr; local
400 struct usb_ctrlrequest *dr; local
[all...]
/drivers/block/
H A Dsunvdc.c89 static inline u32 vdc_tx_dring_avail(struct vio_dring_state *dr) argument
91 return vio_dring_avail(dr, VDC_TX_RING_SIZE);
215 static void vdc_end_one(struct vdc_port *port, struct vio_dring_state *dr, argument
218 struct vio_disk_desc *desc = vio_dring_entry(dr, index);
227 dr->cons = (index + 1) & (VDC_TX_RING_SIZE - 1);
245 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; local
248 if (unlikely(pkt->dring_ident != dr->ident ||
253 vdc_end_one(port, dr, pkt->start_idx);
332 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; local
340 .dring_ident = dr
365 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; local
456 struct vio_dring_state *dr; local
597 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; local
627 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; local
[all...]
/drivers/sh/
H A Dpfc.c138 static int gpio_read_bit(struct pinmux_data_reg *dr, argument
143 pos = dr->reg_width - (in_pos + 1);
146 "r_width = %ld\n", dr->reg, pos, dr->reg_width);
148 return (gpio_read_raw_reg(dr->mapped_reg, dr->reg_width) >> pos) & 1;
151 static void gpio_write_bit(struct pinmux_data_reg *dr, argument
156 pos = dr->reg_width - (in_pos + 1);
160 dr->reg, !!value, pos, dr
627 struct pinmux_data_reg *dr = NULL; local
653 struct pinmux_data_reg *dr = NULL; local
[all...]
/drivers/macintosh/
H A Dmacio_asic.c551 struct macio_devres *dr = res; local
556 if (dr->res_mask & (1 << i))
563 struct macio_devres *dr; local
565 dr = devres_find(&dev->ofdev.dev, maciom_release, NULL, NULL);
566 if (!dr) {
567 dr = devres_alloc(maciom_release, sizeof(*dr), GFP_KERNEL);
568 if (!dr)
571 return devres_get(&dev->ofdev.dev, dr, NULL, NULL) != NULL;
596 struct macio_devres *dr local
628 struct macio_devres *dr = find_macio_dr(dev); local
[all...]
/drivers/bluetooth/
H A Dbpa10x.c359 struct usb_ctrlrequest *dr; local
378 dr = kmalloc(sizeof(*dr), GFP_ATOMIC);
379 if (!dr) {
384 dr->bRequestType = USB_TYPE_VENDOR;
385 dr->bRequest = 0;
386 dr->wIndex = 0;
387 dr->wValue = 0;
388 dr->wLength = __cpu_to_le16(skb->len);
392 usb_fill_control_urb(urb, data->udev, pipe, (void *) dr,
[all...]
/drivers/isdn/hisax/
H A Dst5481_usb.c46 ((struct ctrl_msg *)urb->setup_packet)->dr.bRequest,
47 ((struct ctrl_msg *)urb->setup_packet)->dr.wValue,
48 ((struct ctrl_msg *)urb->setup_packet)->dr.wIndex);
74 ctrl_msg->dr.bRequestType = requesttype;
75 ctrl_msg->dr.bRequest = request;
76 ctrl_msg->dr.wValue = cpu_to_le16p(&value);
77 ctrl_msg->dr.wIndex = cpu_to_le16p(&index);
78 ctrl_msg->dr.wLength = 0;
149 if (ctrl_msg->dr.bRequest == USB_REQ_CLEAR_FEATURE) {
151 le16_to_cpus(&ctrl_msg->dr
[all...]
/drivers/usb/serial/
H A Dopticon.c257 struct usb_ctrlrequest *dr; local
291 dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_NOIO);
292 if (!dr) {
298 dr->bRequestType = USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT;
299 dr->bRequest = 0x01;
300 dr->wValue = 0;
301 dr->wIndex = 0;
302 dr->wLength = cpu_to_le16(count);
306 (unsigned char *)dr, buffer, count,
/drivers/net/usb/
H A Dpegasus.c164 pegasus->dr.bRequestType = PEGASUS_REQT_READ;
165 pegasus->dr.bRequest = PEGASUS_REQ_GET_REGS;
166 pegasus->dr.wValue = cpu_to_le16(0);
167 pegasus->dr.wIndex = cpu_to_le16(indx);
168 pegasus->dr.wLength = cpu_to_le16(size);
173 (char *) &pegasus->dr,
220 pegasus->dr.bRequestType = PEGASUS_REQT_WRITE;
221 pegasus->dr.bRequest = PEGASUS_REQ_SET_REGS;
222 pegasus->dr.wValue = cpu_to_le16(0);
223 pegasus->dr
[all...]
H A Dkaweth.c266 struct usb_ctrlrequest *dr; local
276 dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_ATOMIC);
278 if (!dr) {
283 dr->bRequestType = requesttype;
284 dr->bRequest = request;
285 dr->wValue = cpu_to_le16(value);
286 dr->wIndex = cpu_to_le16(index);
287 dr->wLength = cpu_to_le16(size);
291 dr,
296 kfree(dr);
[all...]
/drivers/pci/
H A Dpci.c1281 struct pci_devres *dr, *new_dr; local
1283 dr = devres_find(&pdev->dev, pcim_release, NULL, NULL);
1284 if (dr)
1285 return dr;
1308 struct pci_devres *dr; local
1311 dr = get_pci_dr(pdev);
1312 if (unlikely(!dr))
1314 if (dr->enabled)
1320 dr->enabled = 1;
1335 struct pci_devres *dr; local
1392 struct pci_devres *dr; local
2432 struct pci_devres *dr; local
2470 struct pci_devres *dr; local
2854 struct pci_devres *dr; local
[all...]
/drivers/scsi/libsas/
H A Dsas_expander.c186 static enum sas_dev_type to_dev_type(struct discover_resp *dr) argument
191 if (dr->attached_dev_type == NO_DEVICE && dr->attached_sata_dev &&
192 dr->linkrate >= SAS_LINK_RATE_1_5_GBPS)
195 return dr->attached_dev_type;
204 struct discover_resp *dr = &resp->disc; local
238 phy->attached_dev_type = to_dev_type(dr);
242 phy->linkrate = dr->linkrate;
243 phy->attached_sata_host = dr->attached_sata_host;
244 phy->attached_sata_dev = dr
362 struct discover_resp *dr; local
1717 struct discover_resp *dr; local
[all...]
/drivers/net/wireless/rtlwifi/
H A Dusb.c56 struct usb_ctrlrequest *dr; local
60 struct usb_ctrlrequest dr; member in struct:rtl819x_async_write_data
76 dr = &buf->dr;
78 dr->bRequestType = reqtype;
79 dr->bRequest = request;
80 dr->wValue = cpu_to_le16(value);
81 dr->wIndex = cpu_to_le16(index);
82 dr->wLength = cpu_to_le16(len);
86 (unsigned char *)dr, bu
[all...]
/drivers/mtd/nand/gpmi-nand/
H A Dgpmi-nand.h241 enum dma_data_direction dr);
/drivers/usb/host/
H A DMakefile41 obj-$(CONFIG_USB_FSL_MPH_DR_OF) += fsl-mph-dr-of.o
/drivers/usb/class/
H A Dcdc-wdm.c224 struct usb_cdc_notification *dr; local
227 dr = (struct usb_cdc_notification *)desc->sbuf;
252 switch (dr->bNotificationType) {
256 dr->wIndex, dr->wLength);
263 dr->wValue ? "connected to" : "disconnected from");
269 dr->bNotificationType, dr->wIndex, dr->wLength);
/drivers/usb/misc/
H A Duss720.c78 struct usb_ctrlrequest dr; member in struct:uss720_async_request
122 } else if (rq->dr.bRequest == 3) {
168 rq->dr.bRequestType = requesttype;
169 rq->dr.bRequest = request;
170 rq->dr.wValue = cpu_to_le16(value);
171 rq->dr.wIndex = cpu_to_le16(index);
172 rq->dr.wLength = cpu_to_le16((request == 3) ? sizeof(rq->reg) : 0);
174 (unsigned char *)&rq->dr,

Completed in 1527 milliseconds

12