/linux-3.4.99/drivers/dma/ioat/ |
D | dma_v3.c | 82 static dma_addr_t xor_get_src(struct ioat_raw_descriptor *descs[2], int idx) in xor_get_src() 84 struct ioat_raw_descriptor *raw = descs[xor_idx_to_desc >> idx & 1]; in xor_get_src() 89 static void xor_set_src(struct ioat_raw_descriptor *descs[2], in xor_set_src() 92 struct ioat_raw_descriptor *raw = descs[xor_idx_to_desc >> idx & 1]; in xor_set_src() 97 static dma_addr_t pq_get_src(struct ioat_raw_descriptor *descs[2], int idx) in pq_get_src() 99 struct ioat_raw_descriptor *raw = descs[pq_idx_to_desc >> idx & 1]; in pq_get_src() 104 static void pq_set_src(struct ioat_raw_descriptor *descs[2], in pq_set_src() 107 struct ioat_pq_descriptor *pq = (struct ioat_pq_descriptor *) descs[0]; in pq_set_src() 108 struct ioat_raw_descriptor *raw = descs[pq_idx_to_desc >> idx & 1]; in pq_set_src() 143 struct ioat_raw_descriptor *descs[2]; in ioat3_dma_unmap() local [all …]
|
D | dma_v2.c | 463 int descs = 1 << order; in ioat2_alloc_ring() local 470 ring = kcalloc(descs, sizeof(*ring), flags); in ioat2_alloc_ring() 473 for (i = 0; i < descs; i++) { in ioat2_alloc_ring() 485 for (i = 0; i < descs-1; i++) { in ioat2_alloc_ring() 789 int descs; in ioat2_free_chan_resources() local 806 descs = ioat2_ring_space(ioat); in ioat2_free_chan_resources() 807 dev_dbg(to_dev(chan), "freeing %d idle descriptors\n", descs); in ioat2_free_chan_resources() 808 for (i = 0; i < descs; i++) { in ioat2_free_chan_resources() 813 if (descs < total_descs) in ioat2_free_chan_resources() 815 total_descs - descs); in ioat2_free_chan_resources() [all …]
|
/linux-3.4.99/drivers/net/ethernet/cirrus/ |
D | ep93xx_eth.c | 163 struct ep93xx_descs *descs; member 245 rstat = ep->descs->rstat + entry; in ep93xx_rx() 287 struct ep93xx_rdesc *rxd = &ep->descs->rdesc[entry]; in ep93xx_rx() 316 struct ep93xx_rstat *rstat = ep->descs->rstat + ep->rx_pointer; in ep93xx_have_more_rx() 368 txd = &ep->descs->tdesc[entry]; in ep93xx_xmit() 403 tstat = ep->descs->tstat + entry; in ep93xx_tx_complete() 417 int length = ep->descs->tdesc[entry].tdesc1 & 0xfff; in ep93xx_tx_complete() 475 d = ep->descs->rdesc[i].buf_addr; in ep93xx_free_buffers() 486 d = ep->descs->tdesc[i].buf_addr; in ep93xx_free_buffers() 494 dma_free_coherent(dev, sizeof(struct ep93xx_descs), ep->descs, in ep93xx_free_buffers() [all …]
|
/linux-3.4.99/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 899 union ibmveth_buf_desc *descs) in ibmveth_send() argument 913 descs[0].desc, descs[1].desc, in ibmveth_send() 914 descs[2].desc, descs[3].desc, in ibmveth_send() 915 descs[4].desc, descs[5].desc, in ibmveth_send() 933 union ibmveth_buf_desc descs[6]; in ibmveth_start_xmit() local 974 memset(descs, 0, sizeof(descs)); in ibmveth_start_xmit() 986 descs[0].fields.flags_len = desc_flags | skb->len; in ibmveth_start_xmit() 987 descs[0].fields.address = adapter->bounce_buffer_dma; in ibmveth_start_xmit() 989 if (ibmveth_send(adapter, descs)) { in ibmveth_start_xmit() 1006 descs[0].fields.flags_len = desc_flags | skb_headlen(skb); in ibmveth_start_xmit() [all …]
|
/linux-3.4.99/drivers/scsi/fnic/ |
D | vnic_cq_copy.h | 35 desc = (struct fcpio_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_copy_service() 50 desc = (struct fcpio_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_copy_service()
|
D | vnic_wq_copy.h | 48 struct fcpio_host_req *desc = wq->ring.descs; in vnic_wq_copy_next_desc() 88 struct fcpio_host_req *wq_desc = wq->ring.descs; in vnic_wq_copy_service()
|
D | vnic_cq.h | 81 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service() 98 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service()
|
D | vnic_dev.c | 190 memset(ring->descs, 0, ring->size); in vnic_dev_clear_desc_ring() 211 ring->descs = (u8 *)ring->descs_unaligned + in vnic_dev_alloc_desc_ring() 223 if (ring->descs) { in vnic_dev_free_desc_ring() 228 ring->descs = NULL; in vnic_dev_free_desc_ring()
|
D | vnic_dev.h | 96 void *descs; member
|
D | vnic_wq.c | 48 buf->desc = (u8 *)wq->ring.descs + in vnic_wq_alloc_bufs()
|
D | vnic_rq.c | 48 buf->desc = (u8 *)rq->ring.descs + in vnic_rq_alloc_bufs()
|
/linux-3.4.99/drivers/net/ethernet/faraday/ |
D | ftmac100.c | 67 struct ftmac100_descs *descs; member 311 return &priv->descs->rxdes[priv->rx_pointer]; in ftmac100_current_rxdes() 573 return &priv->descs->txdes[priv->tx_pointer]; in ftmac100_current_txdes() 578 return &priv->descs->txdes[priv->tx_clean_pointer]; in ftmac100_current_clean_txdes() 701 struct ftmac100_rxdes *rxdes = &priv->descs->rxdes[i]; in ftmac100_free_buffers() 713 struct ftmac100_txdes *txdes = &priv->descs->txdes[i]; in ftmac100_free_buffers() 725 priv->descs, priv->descs_dma_addr); in ftmac100_free_buffers() 732 priv->descs = dma_alloc_coherent(priv->dev, sizeof(struct ftmac100_descs), in ftmac100_alloc_buffers() 734 if (!priv->descs) in ftmac100_alloc_buffers() 737 memset(priv->descs, 0, sizeof(struct ftmac100_descs)); in ftmac100_alloc_buffers() [all …]
|
D | ftgmac100.c | 60 struct ftgmac100_descs *descs; member 330 return &priv->descs->rxdes[priv->rx_pointer]; in ftgmac100_current_rxdes() 611 return &priv->descs->txdes[priv->tx_pointer]; in ftgmac100_current_txdes() 617 return &priv->descs->txdes[priv->tx_clean_pointer]; in ftgmac100_current_clean_txdes() 745 struct ftgmac100_rxdes *rxdes = &priv->descs->rxdes[i]; in ftgmac100_free_buffers() 757 struct ftgmac100_txdes *txdes = &priv->descs->txdes[i]; in ftgmac100_free_buffers() 769 priv->descs, priv->descs_dma_addr); in ftgmac100_free_buffers() 776 priv->descs = dma_alloc_coherent(priv->dev, in ftgmac100_alloc_buffers() 779 if (!priv->descs) in ftgmac100_alloc_buffers() 782 memset(priv->descs, 0, sizeof(struct ftgmac100_descs)); in ftgmac100_alloc_buffers() [all …]
|
/linux-3.4.99/drivers/net/ethernet/cisco/enic/ |
D | vnic_cq.h | 74 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service() 91 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service()
|
D | vnic_dev.c | 226 memset(ring->descs, 0, ring->size); in vnic_dev_clear_desc_ring() 246 ring->descs = (u8 *)ring->descs_unaligned + in vnic_dev_alloc_desc_ring() 258 if (ring->descs) { in vnic_dev_free_desc_ring() 263 ring->descs = NULL; in vnic_dev_free_desc_ring()
|
D | vnic_dev.h | 61 void *descs; member
|
D | vnic_wq.c | 49 buf->desc = (u8 *)wq->ring.descs + in vnic_wq_alloc_bufs()
|
D | vnic_rq.c | 49 buf->desc = (u8 *)rq->ring.descs + in vnic_rq_alloc_bufs()
|
/linux-3.4.99/drivers/dma/ |
D | timb_dma.c | 95 unsigned int descs; /* Descriptors to allocate */ member 180 u8 *descs; in __td_unmap_descs() local 182 for (descs = td_desc->desc_list; ; descs += TIMB_DMA_DESC_SIZE) { in __td_unmap_descs() 183 __td_unmap_desc(td_chan, descs, single); in __td_unmap_descs() 184 if (descs[0] & 0x02) in __td_unmap_descs() 464 for (i = 0; i < td_chan->descs; i++) { in td_alloc_chan_resources() 760 td_chan->descs = pchan->descriptors; in td_probe()
|
D | sirf-dma.c | 334 LIST_HEAD(descs); in sirfsoc_dma_alloc_chan_resources() 350 list_add_tail(&sdesc->node, &descs); in sirfsoc_dma_alloc_chan_resources() 359 list_splice_tail_init(&descs, &schan->free); in sirfsoc_dma_alloc_chan_resources() 371 LIST_HEAD(descs); in sirfsoc_dma_free_chan_resources() 382 list_splice_tail_init(&schan->free, &descs); in sirfsoc_dma_free_chan_resources() 387 list_for_each_entry_safe(sdesc, tmp, &descs, node) in sirfsoc_dma_free_chan_resources()
|
D | mpc512x_dma.c | 457 LIST_HEAD(descs); in mpc_dma_alloc_chan_resources() 483 list_add_tail(&mdesc->node, &descs); in mpc_dma_alloc_chan_resources() 497 list_splice_tail_init(&descs, &mchan->free); in mpc_dma_alloc_chan_resources() 515 LIST_HEAD(descs); in mpc_dma_free_chan_resources() 526 list_splice_tail_init(&mchan->free, &descs); in mpc_dma_free_chan_resources() 538 list_for_each_entry_safe(mdesc, tmp, &descs, node) in mpc_dma_free_chan_resources()
|
/linux-3.4.99/drivers/staging/android/ |
D | persistent_ram.h | 35 struct persistent_ram_descriptor *descs; member
|
/linux-3.4.99/drivers/net/ethernet/natsemi/ |
D | ns83820.c | 421 __le32 *descs; member 538 sg = dev->rx_info.descs + (next_empty * DESC_SIZE); in ns83820_add_rx_skb() 549 …dev->rx_info.descs[((NR_RX_DESC + next_empty - 1) % NR_RX_DESC) * DESC_SIZE] = cpu_to_le32(dev->rx… in ns83820_add_rx_skb() 610 build_rx_desc(dev, dev->rx_info.descs + (DESC_SIZE * i), 0, 0, CMDSTS_OWN, 0); in clear_rx_desc() 730 dev->rx_info.next_rx_desc = dev->rx_info.descs; in ns83820_setup_rx() 847 (dev->rx_info.descs + (DESC_SIZE * dev->rx_info.next_rx)), 849 (dev->rx_info.descs + (DESC_SIZE * dev->rx_info.next_empty)) 928 desc = info->descs + (DESC_SIZE * next_rx); 931 info->next_rx_desc = info->descs + (DESC_SIZE * next_rx); 1993 dev->rx_info.descs = pci_alloc_consistent(pci_dev, [all …]
|
/linux-3.4.99/drivers/usb/gadget/ |
D | f_fs.c | 300 struct usb_endpoint_descriptor *descs[2]; member 1524 ds = ep->descs[ep->descs[1] ? 1 : 0]; in ffs_func_eps_enable() 2052 if (unlikely(ffs_ep->descs[isHS])) { in __ffs_func_bind_do_descs() 2058 ffs_ep->descs[isHS] = ds; in __ffs_func_bind_do_descs() 2062 ds->bEndpointAddress = ffs_ep->descs[0]->bEndpointAddress; in __ffs_func_bind_do_descs() 2064 ds->wMaxPacketSize = ffs_ep->descs[0]->wMaxPacketSize; in __ffs_func_bind_do_descs() 2132 struct usb_endpoint_descriptor **descs; in __ffs_func_bind_do_nums() local 2133 descs = func->eps[idx].descs; in __ffs_func_bind_do_nums() 2134 newValue = descs[descs[0] ? 0 : 1]->bEndpointAddress; in __ffs_func_bind_do_nums()
|
/linux-3.4.99/arch/cris/arch-v32/drivers/ |
D | cryptocop.c | 2493 …struct cryptocop_desc descs[5]; /* Max 5 descriptors are needed, there are three transfo… in cryptocop_ioctl_process() local 2805 descs[desc_ix].cfg = NULL; in cryptocop_ioctl_process() 2806 descs[desc_ix].length = next_ix - prev_ix; in cryptocop_ioctl_process() 2819 dcfgs[dcfg_ix].next = descs[desc_ix].cfg; in cryptocop_ioctl_process() 2820 descs[desc_ix].cfg = &dcfgs[dcfg_ix]; in cryptocop_ioctl_process() 2834 dcfgs[dcfg_ix].next = descs[desc_ix].cfg; in cryptocop_ioctl_process() 2835 descs[desc_ix].cfg = &dcfgs[dcfg_ix]; in cryptocop_ioctl_process() 2848 dcfgs[dcfg_ix].next = descs[desc_ix].cfg; in cryptocop_ioctl_process() 2849 descs[desc_ix].cfg = &dcfgs[dcfg_ix]; in cryptocop_ioctl_process() 2852 if (!descs[desc_ix].cfg){ in cryptocop_ioctl_process() [all …]
|