Home
last modified time | relevance | path

Searched refs:descs (Results 1 – 25 of 28) sorted by relevance

12

/linux-3.4.99/drivers/dma/ioat/
Ddma_v3.c82 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 …]
Ddma_v2.c463 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/
Dep93xx_eth.c163 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/
Dibmveth.c899 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/
Dvnic_cq_copy.h35 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()
Dvnic_wq_copy.h48 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()
Dvnic_cq.h81 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()
Dvnic_dev.c190 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()
Dvnic_dev.h96 void *descs; member
Dvnic_wq.c48 buf->desc = (u8 *)wq->ring.descs + in vnic_wq_alloc_bufs()
Dvnic_rq.c48 buf->desc = (u8 *)rq->ring.descs + in vnic_rq_alloc_bufs()
/linux-3.4.99/drivers/net/ethernet/faraday/
Dftmac100.c67 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 …]
Dftgmac100.c60 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/
Dvnic_cq.h74 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()
Dvnic_dev.c226 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()
Dvnic_dev.h61 void *descs; member
Dvnic_wq.c49 buf->desc = (u8 *)wq->ring.descs + in vnic_wq_alloc_bufs()
Dvnic_rq.c49 buf->desc = (u8 *)rq->ring.descs + in vnic_rq_alloc_bufs()
/linux-3.4.99/drivers/dma/
Dtimb_dma.c95 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()
Dsirf-dma.c334 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()
Dmpc512x_dma.c457 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/
Dpersistent_ram.h35 struct persistent_ram_descriptor *descs; member
/linux-3.4.99/drivers/net/ethernet/natsemi/
Dns83820.c421 __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/
Df_fs.c300 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/
Dcryptocop.c2493 …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 …]

12