/linux-3.4.99/drivers/infiniband/ulp/iser/ |
D | iser_initiator.c | 177 struct iser_rx_desc *rx_desc; in iser_alloc_rx_descriptors() local 186 rx_desc = ib_conn->rx_descs; in iser_alloc_rx_descriptors() 188 for (i = 0; i < ISER_QP_MAX_RECV_DTOS; i++, rx_desc++) { in iser_alloc_rx_descriptors() 189 dma_addr = ib_dma_map_single(device->ib_device, (void *)rx_desc, in iser_alloc_rx_descriptors() 194 rx_desc->dma_addr = dma_addr; in iser_alloc_rx_descriptors() 196 rx_sg = &rx_desc->rx_sg; in iser_alloc_rx_descriptors() 197 rx_sg->addr = rx_desc->dma_addr; in iser_alloc_rx_descriptors() 206 rx_desc = ib_conn->rx_descs; in iser_alloc_rx_descriptors() 207 for (j = 0; j < i; j++, rx_desc++) in iser_alloc_rx_descriptors() 208 ib_dma_unmap_single(device->ib_device, rx_desc->dma_addr, in iser_alloc_rx_descriptors() [all …]
|
/linux-3.4.99/drivers/net/ethernet/seeq/ |
D | sgiseeq.c | 59 (unsigned long)((sp)->rx_desc))) 95 struct sgiseeq_rx_desc *rx_desc; member 198 if (!sp->rx_desc[i].skb) { in seeq_init_ring() 208 sp->rx_desc[i].skb = skb; in seeq_init_ring() 209 sp->rx_desc[i].rdma.pbuf = dma_addr; in seeq_init_ring() 211 sp->rx_desc[i].rdma.cntinfo = RCNTINFO_INIT; in seeq_init_ring() 212 dma_sync_desc_dev(dev, &sp->rx_desc[i]); in seeq_init_ring() 214 sp->rx_desc[i - 1].rdma.cntinfo |= HPCDMA_EOR; in seeq_init_ring() 215 dma_sync_desc_dev(dev, &sp->rx_desc[i - 1]); in seeq_init_ring() 234 if (sp->rx_desc[i].skb) { in seeq_purge_ring() [all …]
|
/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/ |
D | en_rx.c | 46 struct mlx4_en_rx_desc *rx_desc, in mlx4_en_alloc_frag() argument 77 rx_desc->data[i].addr = cpu_to_be64(dma); in mlx4_en_alloc_frag() 129 struct mlx4_en_rx_desc *rx_desc = ring->buf + ring->stride * index; in mlx4_en_init_rx_desc() local 138 rx_desc->data[i].byte_count = in mlx4_en_init_rx_desc() 140 rx_desc->data[i].lkey = cpu_to_be32(priv->mdev->mr.key); in mlx4_en_init_rx_desc() 148 rx_desc->data[i].byte_count = 0; in mlx4_en_init_rx_desc() 149 rx_desc->data[i].lkey = cpu_to_be32(MLX4_EN_MEMTYPE_PAD); in mlx4_en_init_rx_desc() 150 rx_desc->data[i].addr = 0; in mlx4_en_init_rx_desc() 158 struct mlx4_en_rx_desc *rx_desc = ring->buf + (index * ring->stride); in mlx4_en_prepare_rx_desc() local 164 if (mlx4_en_alloc_frag(priv, rx_desc, skb_frags, ring->page_alloc, i)) in mlx4_en_prepare_rx_desc() [all …]
|
/linux-3.4.99/drivers/infiniband/hw/amso1100/ |
D | c2.c | 163 struct c2_rx_desc *rx_desc; in c2_rx_ring_alloc() local 173 rx_desc = vaddr; in c2_rx_ring_alloc() 175 for (i = 0; i < rx_ring->count; i++, elem++, rx_desc++, rxp_desc++) { in c2_rx_ring_alloc() 176 rx_desc->len = 0; in c2_rx_ring_alloc() 177 rx_desc->status = 0; in c2_rx_ring_alloc() 190 elem->ht_desc = rx_desc; in c2_rx_ring_alloc() 195 rx_desc->next_offset = base; in c2_rx_ring_alloc() 198 rx_desc->next_offset = in c2_rx_ring_alloc() 199 base + (i + 1) * sizeof(*rx_desc); in c2_rx_ring_alloc() 212 struct c2_rx_desc *rx_desc = elem->ht_desc; in c2_rx_alloc() local [all …]
|
/linux-3.4.99/drivers/net/ethernet/ibm/emac/ |
D | debug.c | 58 i, p->rx_desc[i].data_ptr, p->rx_skb[i] ? 'V' : ' ', in emac_desc_dump() 59 p->rx_desc[i].ctrl, p->rx_desc[i].data_len, in emac_desc_dump() 61 p->rx_desc[NUM_RX_BUFF / 2 + i].data_ptr, in emac_desc_dump() 63 p->rx_desc[NUM_RX_BUFF / 2 + i].ctrl, in emac_desc_dump() 64 p->rx_desc[NUM_RX_BUFF / 2 + i].data_len); in emac_desc_dump()
|
D | core.c | 991 if (dev->rx_desc[i].ctrl & MAL_RX_CTRL_FIRST) in emac_resize_rx_ring() 994 dev->rx_desc[i].data_len = 0; in emac_resize_rx_ring() 995 dev->rx_desc[i].ctrl = MAL_RX_CTRL_EMPTY | in emac_resize_rx_ring() 1015 dev->rx_desc[i].data_ptr = in emac_resize_rx_ring() 1099 dev->rx_desc[i].ctrl = 0; in emac_clean_rx_ring() 1102 dev->rx_desc[i].data_ptr = 0; in emac_clean_rx_ring() 1119 dev->rx_desc[slot].data_len = 0; in emac_alloc_rx_skb() 1122 dev->rx_desc[slot].data_ptr = in emac_alloc_rx_skb() 1126 dev->rx_desc[slot].ctrl = MAL_RX_CTRL_EMPTY | in emac_alloc_rx_skb() 1599 dev->rx_desc[slot].data_len = 0; in emac_recycle_rx_skb() [all …]
|
/linux-3.4.99/drivers/net/ethernet/xscale/ixp2000/ |
D | ixpdev.c | 35 static struct ixpdev_rx_desc * const rx_desc = variable 90 desc = rx_desc + in ixpdev_rx() 339 free_page((unsigned long)phys_to_virt(rx_desc[i].buf_addr)); in ixpdev_init() 342 rx_desc[i].buf_addr = virt_to_phys(buf); in ixpdev_init() 343 rx_desc[i].buf_length = PAGE_SIZE; in ixpdev_init() 413 free_page((unsigned long)phys_to_virt(rx_desc[i].buf_addr)); in ixpdev_init() 436 free_page((unsigned long)phys_to_virt(rx_desc[i].buf_addr)); in ixpdev_deinit()
|
/linux-3.4.99/drivers/net/ethernet/alteon/ |
D | acenic.h | 476 #define RX_STD_RING_SIZE (RX_STD_RING_ENTRIES * sizeof(struct rx_desc)) 479 #define RX_JUMBO_RING_SIZE (RX_JUMBO_RING_ENTRIES *sizeof(struct rx_desc)) 482 #define RX_MINI_RING_SIZE (RX_MINI_RING_ENTRIES *sizeof(struct rx_desc)) 486 sizeof(struct rx_desc)) 488 struct rx_desc{ struct 663 struct rx_desc *rx_std_ring; 664 struct rx_desc *rx_jumbo_ring; 665 struct rx_desc *rx_mini_ring; 666 struct rx_desc *rx_return_ring;
|
/linux-3.4.99/drivers/net/wireless/wl1251/ |
D | rx.c | 220 struct wl1251_rx_descriptor *rx_desc; in wl1251_rx() local 225 rx_desc = wl->rx_descriptor; in wl1251_rx() 228 wl1251_rx_header(wl, rx_desc); in wl1251_rx() 231 wl1251_rx_body(wl, rx_desc); in wl1251_rx()
|
/linux-3.4.99/drivers/net/ethernet/marvell/ |
D | pxa168_eth.c | 178 struct rx_desc { struct 205 struct rx_desc *p_rx_desc_area; argument 345 struct rx_desc *p_used_rx_desc; in rxq_refill() 661 (u32) (pep->rx_desc_dma + rx_curr_desc * sizeof(struct rx_desc))); in eth_port_start() 664 (u32) (pep->rx_desc_dma + rx_curr_desc * sizeof(struct rx_desc))); in eth_port_start() 790 struct rx_desc *rx_desc; in rxq_process() local 798 rx_desc = &pep->p_rx_desc_area[rx_curr_desc]; in rxq_process() 799 cmd_sts = rx_desc->cmd_sts; in rxq_process() 814 dma_unmap_single(NULL, rx_desc->buf_ptr, in rxq_process() 815 rx_desc->buf_size, in rxq_process() [all …]
|
D | mv643xx_eth.c | 190 struct rx_desc { struct 206 struct rx_desc { struct 358 struct rx_desc *rx_desc_area; 563 struct rx_desc *rx_desc; in rxq_process() local 568 rx_desc = &rxq->rx_desc_area[rxq->rx_curr_desc]; in rxq_process() 570 cmd_sts = rx_desc->cmd_sts; in rxq_process() 582 dma_unmap_single(mp->dev->dev.parent, rx_desc->buf_ptr, in rxq_process() 583 rx_desc->buf_size, DMA_FROM_DEVICE); in rxq_process() 589 byte_cnt = rx_desc->byte_cnt; in rxq_process() 664 struct rx_desc *rx_desc; in rxq_refill() local [all …]
|
/linux-3.4.99/drivers/atm/ |
D | horizon.c | 743 rx_ch_desc * rx_desc = &memmap->rx_descs[channel]; in hrz_open_rx() local 748 channel_type = rd_mem (dev, &rx_desc->wr_buf_type) & BUFFER_PTR_MASK; in hrz_open_rx() 776 wr_mem (dev, &rx_desc->wr_buf_type, in hrz_open_rx() 779 wr_mem (dev, &rx_desc->rd_buf_type, buf_ptr); in hrz_open_rx() 817 rx_ch_desc * rx_desc = &memmap->rx_descs[vc]; in hrz_close_rx() local 822 value = rd_mem (dev, &rx_desc->wr_buf_type) & BUFFER_PTR_MASK; in hrz_close_rx() 836 wr_mem (dev, &rx_desc->wr_buf_type, RX_CHANNEL_DISABLED); in hrz_close_rx() 838 if ((rd_mem (dev, &rx_desc->wr_buf_type) & BUFFER_PTR_MASK) == RX_CHANNEL_DISABLED) in hrz_close_rx() 882 r1 = rd_mem (dev, &rx_desc->rd_buf_type); in hrz_close_rx() 900 r2 = rd_mem (dev, &rx_desc->rd_buf_type); in hrz_close_rx() [all …]
|
/linux-3.4.99/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_main.c | 1955 struct ixgb_rx_desc *rx_desc, in ixgb_rx_checksum() argument 1961 if ((rx_desc->status & IXGB_RX_DESC_STATUS_IXSM) || in ixgb_rx_checksum() 1962 (!(rx_desc->status & IXGB_RX_DESC_STATUS_TCPCS))) { in ixgb_rx_checksum() 1969 if (rx_desc->errors & IXGB_RX_DESC_ERRORS_TCPE) { in ixgb_rx_checksum() 2016 struct ixgb_rx_desc *rx_desc, *next_rxd; in ixgb_clean_rx_irq() local 2024 rx_desc = IXGB_RX_DESC(*rx_ring, i); in ixgb_clean_rx_irq() 2027 while (rx_desc->status & IXGB_RX_DESC_STATUS_DD) { in ixgb_clean_rx_irq() 2036 status = rx_desc->status; in ixgb_clean_rx_irq() 2064 length = le16_to_cpu(rx_desc->length); in ixgb_clean_rx_irq() 2065 rx_desc->length = 0; in ixgb_clean_rx_irq() [all …]
|
/linux-3.4.99/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 197 union e1000_rx_desc_extended *rx_desc; in e1000e_dump() local 420 rx_desc = E1000_RX_DESC_EXT(*rx_ring, i); in e1000e_dump() 421 u1 = (struct my_u1 *)rx_desc; in e1000e_dump() 422 staterr = le32_to_cpu(rx_desc->wb.upper.status_error); in e1000e_dump() 596 union e1000_rx_desc_extended *rx_desc; in e1000_alloc_rx_buffers() local 630 rx_desc = E1000_RX_DESC_EXT(*rx_ring, i); in e1000_alloc_rx_buffers() 631 rx_desc->read.buffer_addr = cpu_to_le64(buffer_info->dma); in e1000_alloc_rx_buffers() 665 union e1000_rx_desc_packet_split *rx_desc; in e1000_alloc_rx_buffers_ps() local 675 rx_desc = E1000_RX_DESC_PS(*rx_ring, i); in e1000_alloc_rx_buffers_ps() 681 rx_desc->read.buffer_addr[j + 1] = in e1000_alloc_rx_buffers_ps() [all …]
|
/linux-3.4.99/drivers/net/tokenring/ |
D | lanstreamer.c | 903 struct streamer_rx_desc *rx_desc; in streamer_rx() local 908 …rx_desc = &streamer_priv->streamer_rx_ring[(streamer_priv->rx_ring_last_received + 1) & (STREAMER_… in streamer_rx() 911 while (rx_desc->status & 0x01000000) { /* While processed descriptors are available */ in streamer_rx() 920 length = rx_desc->framelen_buflen & 0xffff; /* buffer length */ in streamer_rx() 921 frame_length = (rx_desc->framelen_buflen >> 16) & 0xffff; in streamer_rx() 923 if (rx_desc->status & 0x7E830000) { /* errors */ in streamer_rx() 926 dev->name, rx_desc->status); in streamer_rx() 929 if (rx_desc->status & 0x80000000) { /* frame complete */ in streamer_rx() 979 …pci_unmap_single(streamer_priv->pci_dev, le32_to_cpu(rx_desc->buffer), length, PCI_DMA_FROMDEVICE)… in streamer_rx() 980 memcpy(skb_put(skb, length), (void *)rx_desc->buffer, length); /* copy this fragment */ in streamer_rx() [all …]
|
/linux-3.4.99/drivers/net/ethernet/intel/igbvf/ |
D | igbvf.h | 144 union e1000_adv_rx_desc rx_desc; member 300 (&((((R).desc))[i].rx_desc))
|
D | netdev.c | 154 union e1000_adv_rx_desc *rx_desc; in igbvf_alloc_rx_buffers() local 169 rx_desc = IGBVF_RX_DESC_ADV(*rx_ring, i); in igbvf_alloc_rx_buffers() 204 rx_desc->read.pkt_addr = in igbvf_alloc_rx_buffers() 206 rx_desc->read.hdr_addr = cpu_to_le64(buffer_info->dma); in igbvf_alloc_rx_buffers() 208 rx_desc->read.pkt_addr = in igbvf_alloc_rx_buffers() 210 rx_desc->read.hdr_addr = 0; in igbvf_alloc_rx_buffers() 249 union e1000_adv_rx_desc *rx_desc, *next_rxd; in igbvf_clean_rx_irq() local 259 rx_desc = IGBVF_RX_DESC_ADV(*rx_ring, i); in igbvf_clean_rx_irq() 260 staterr = le32_to_cpu(rx_desc->wb.upper.status_error); in igbvf_clean_rx_irq() 275 hlen = (le16_to_cpu(rx_desc->wb.lower.lo_dword.hs_rss.hdr_info) & in igbvf_clean_rx_irq() [all …]
|
/linux-3.4.99/drivers/scsi/mvsas/ |
D | mv_sas.c | 978 static void mvs_slot_free(struct mvs_info *mvi, u32 rx_desc) in mvs_slot_free() argument 980 u32 slot_idx = rx_desc & RXQ_SLOT_MASK; in mvs_slot_free() 1803 int mvs_slot_complete(struct mvs_info *mvi, u32 rx_desc, u32 flags) in mvs_slot_complete() argument 1805 u32 slot_idx = rx_desc & RXQ_SLOT_MASK; in mvs_slot_complete() 1854 if (unlikely((rx_desc & RXQ_ERR) && (*(u64 *) slot->response))) { in mvs_slot_complete() 1857 rx_desc, (u64)(*(u64 *)slot->response)); in mvs_slot_complete() 1866 if (rx_desc & RXQ_GOOD) { in mvs_slot_complete() 1871 else if (rx_desc & RXQ_RSP) { in mvs_slot_complete() 2149 u32 rx_prod_idx, rx_desc; in mvs_int_rx() local 2175 rx_desc = le32_to_cpu(mvi->rx[rx_prod_idx + 1]); in mvs_int_rx() [all …]
|
/linux-3.4.99/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 305 union ixgbe_adv_rx_desc *rx_desc; in ixgbe_dump() local 460 rx_desc = IXGBE_RX_DESC(rx_ring, i); in ixgbe_dump() 461 u0 = (struct my_u0 *)rx_desc; in ixgbe_dump() 462 staterr = le32_to_cpu(rx_desc->wb.upper.status_error); in ixgbe_dump() 1030 union ixgbe_adv_rx_desc *rx_desc, in ixgbe_rx_hash() argument 1034 skb->rxhash = le32_to_cpu(rx_desc->wb.lower.hi_dword.rss); in ixgbe_rx_hash() 1046 union ixgbe_adv_rx_desc *rx_desc) in ixgbe_rx_is_fcoe() argument 1048 __le16 pkt_info = rx_desc->wb.lower.lo_dword.hs_rss.pkt_info; in ixgbe_rx_is_fcoe() 1064 union ixgbe_adv_rx_desc *rx_desc, in ixgbe_rx_checksum() argument 1074 if (ixgbe_test_staterr(rx_desc, IXGBE_RXD_STAT_IPCS) && in ixgbe_rx_checksum() [all …]
|
D | ixgbe_fcoe.c | 359 union ixgbe_adv_rx_desc *rx_desc, in ixgbe_fcoe_ddp() argument 367 __le32 fcerr = ixgbe_test_staterr(rx_desc, IXGBE_RXDADV_ERR_FCERR); in ixgbe_fcoe_ddp() 398 ddp_err = ixgbe_test_staterr(rx_desc, IXGBE_RXDADV_ERR_FCEOFE | in ixgbe_fcoe_ddp() 403 switch (ixgbe_test_staterr(rx_desc, IXGBE_RXDADV_STAT_FCSTAT)) { in ixgbe_fcoe_ddp() 407 ddp->len = le32_to_cpu(rx_desc->wb.lower.hi_dword.rss); in ixgbe_fcoe_ddp() 421 ddp->len = le32_to_cpu(rx_desc->wb.lower.hi_dword.rss); in ixgbe_fcoe_ddp()
|
/linux-3.4.99/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 3429 struct e1000_rx_desc *rx_desc = E1000_RX_DESC(*rx_ring, i); in e1000_dump() local 3432 struct my_u *u = (struct my_u *)rx_desc; in e1000_dump() 4010 struct e1000_rx_desc *rx_desc, *next_rxd; in e1000_clean_jumbo_rx_irq() local 4020 rx_desc = E1000_RX_DESC(*rx_ring, i); in e1000_clean_jumbo_rx_irq() 4023 while (rx_desc->status & E1000_RXD_STAT_DD) { in e1000_clean_jumbo_rx_irq() 4032 status = rx_desc->status; in e1000_clean_jumbo_rx_irq() 4048 length = le16_to_cpu(rx_desc->length); in e1000_clean_jumbo_rx_irq() 4052 (rx_desc->errors & E1000_RXD_ERR_FRAME_ERR_MASK))) { in e1000_clean_jumbo_rx_irq() 4054 if (TBI_ACCEPT(hw, status, rx_desc->errors, length, in e1000_clean_jumbo_rx_irq() 4130 ((u32)(rx_desc->errors) << 24), in e1000_clean_jumbo_rx_irq() [all …]
|
/linux-3.4.99/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 298 union ixgbe_adv_rx_desc *rx_desc) in ixgbevf_receive_skb() argument 302 u16 tag = le16_to_cpu(rx_desc->wb.upper.vlan); in ixgbevf_receive_skb() 357 union ixgbe_adv_rx_desc *rx_desc; in ixgbevf_alloc_rx_buffers() local 367 rx_desc = IXGBE_RX_DESC_ADV(*rx_ring, i); in ixgbevf_alloc_rx_buffers() 416 rx_desc->read.pkt_addr = cpu_to_le64(bi->page_dma); in ixgbevf_alloc_rx_buffers() 417 rx_desc->read.hdr_addr = cpu_to_le64(bi->dma); in ixgbevf_alloc_rx_buffers() 419 rx_desc->read.pkt_addr = cpu_to_le64(bi->dma); in ixgbevf_alloc_rx_buffers() 448 static inline u16 ixgbevf_get_hdr_info(union ixgbe_adv_rx_desc *rx_desc) in ixgbevf_get_hdr_info() argument 450 return rx_desc->wb.lower.lo_dword.hs_rss.hdr_info; in ixgbevf_get_hdr_info() 453 static inline u16 ixgbevf_get_pkt_info(union ixgbe_adv_rx_desc *rx_desc) in ixgbevf_get_pkt_info() argument [all …]
|
/linux-3.4.99/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 367 union e1000_adv_rx_desc *rx_desc; in igb_dump() local 520 rx_desc = IGB_RX_DESC(rx_ring, i); in igb_dump() 521 u0 = (struct my_u0 *)rx_desc; in igb_dump() 522 staterr = le32_to_cpu(rx_desc->wb.upper.status_error); in igb_dump() 5963 union e1000_adv_rx_desc *rx_desc, in igb_rx_checksum() argument 5969 if (igb_test_staterr(rx_desc, E1000_RXD_STAT_IXSM)) in igb_rx_checksum() 5977 if (igb_test_staterr(rx_desc, in igb_rx_checksum() 5995 if (igb_test_staterr(rx_desc, E1000_RXD_STAT_TCPCS | in igb_rx_checksum() 6000 le32_to_cpu(rx_desc->wb.upper.status_error)); in igb_rx_checksum() 6004 union e1000_adv_rx_desc *rx_desc, in igb_rx_hash() argument [all …]
|
/linux-3.4.99/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 1445 struct pch_gbe_rx_desc *rx_desc; in pch_gbe_alloc_rx_buffers() local 1478 rx_desc = PCH_GBE_RX_DESC(*rx_ring, i); in pch_gbe_alloc_rx_buffers() 1479 rx_desc->buffer_addr = (buffer_info->dma); in pch_gbe_alloc_rx_buffers() 1480 rx_desc->gbec_status = DSC_INIT16; in pch_gbe_alloc_rx_buffers() 1668 struct pch_gbe_rx_desc *rx_desc; in pch_gbe_clean_rx() local 1682 rx_desc = PCH_GBE_RX_DESC(*rx_ring, i); in pch_gbe_clean_rx() 1683 if (rx_desc->gbec_status == DSC_INIT16) in pch_gbe_clean_rx() 1688 dma_status = rx_desc->dma_status; in pch_gbe_clean_rx() 1689 gbec_status = rx_desc->gbec_status; in pch_gbe_clean_rx() 1690 tcp_ip_status = rx_desc->tcp_ip_status; in pch_gbe_clean_rx() [all …]
|
/linux-3.4.99/drivers/net/ethernet/dec/tulip/ |
D | uli526x.c | 128 struct rx_desc { struct 131 struct rx_desc *next_rx_desc; argument 161 struct rx_desc *first_rx_desc; 162 struct rx_desc *rx_insert_ptr; 163 struct rx_desc *rx_ready_ptr; /* packet come pointer */ 799 struct rx_desc *rxptr; in uli526x_rx_packet() 1270 struct rx_desc *rxptr = db->rx_insert_ptr; in uli526x_reuse_skb() 1296 struct rx_desc *tmp_rx; in uli526x_descriptor_init() 1339 tmp_rx_dma += sizeof(struct rx_desc); in uli526x_descriptor_init() 1440 struct rx_desc *rxptr; in allocate_rx_buffer()
|