Searched refs:rfd (Results 1 - 19 of 19) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/i825xx/
H A Dlib82596.c278 u32 rfd; member in struct:i596_scb
408 struct i596_rfd *rfd; i596_display_data() local
416 " .cmd = %08x, .rfd = %08x\n", i596_display_data()
418 SWAP16(dma->scb.cmd), SWAP32(dma->scb.rfd)); i596_display_data()
433 rfd = lp->rfd_head; i596_display_data()
434 printk(KERN_DEBUG "rfd_head = %p\n", rfd); i596_display_data()
439 rfd, SWAP16(rfd->stat), SWAP16(rfd->cmd), i596_display_data()
440 SWAP32(rfd->b_next), SWAP32(rfd->rbd), i596_display_data()
441 SWAP16(rfd->count)); i596_display_data()
442 rfd = rfd->v_next; i596_display_data()
443 } while (rfd != lp->rfd_head); i596_display_data()
465 struct i596_rfd *rfd; init_rx_bufs() local
494 for (i = 0, rfd = dma->rfds; i < rx_ring_size; i++, rfd++) { init_rx_bufs()
495 rfd->rbd = I596_NULL; init_rx_bufs()
496 rfd->v_next = rfd+1; init_rx_bufs()
497 rfd->v_prev = rfd-1; init_rx_bufs()
498 rfd->b_next = SWAP32(virt_to_dma(lp, rfd+1)); init_rx_bufs()
499 rfd->cmd = SWAP16(CMD_FLEX); init_rx_bufs()
502 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds)); init_rx_bufs()
503 rfd = dma->rfds; init_rx_bufs()
504 rfd->rbd = SWAP32(virt_to_dma(lp, lp->rbd_head)); init_rx_bufs()
505 rfd->v_prev = dma->rfds + rx_ring_size - 1; init_rx_bufs()
506 rfd = dma->rfds + rx_ring_size - 1; init_rx_bufs()
507 rfd->v_next = dma->rfds; init_rx_bufs()
508 rfd->b_next = SWAP32(virt_to_dma(lp, dma->rfds)); init_rx_bufs()
509 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX); init_rx_bufs()
546 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds)); rebuild_rx_bufs()
627 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds)); init_i596_mem()
651 struct i596_rfd *rfd; i596_rx() local
660 rfd = lp->rfd_head; /* Ref next frame to check */ i596_rx()
662 DMA_INV(dev, rfd, sizeof(struct i596_rfd)); i596_rx()
663 while (rfd->stat & SWAP16(STAT_C)) { /* Loop while complete frames */ i596_rx()
664 if (rfd->rbd == I596_NULL) i596_rx()
666 else if (rfd->rbd == lp->rbd_head->b_addr) { i596_rx()
675 " rfd %p, rfd.rbd %08x, rfd.stat %04x\n", i596_rx()
676 rfd, rfd->rbd, rfd->stat)); i596_rx()
678 if (rbd != NULL && (rfd->stat & SWAP16(STAT_OK))) { i596_rx()
743 "%s: Error, rfd.stat = 0x%04x\n", i596_rx()
744 dev->name, rfd->stat)); i596_rx()
746 if (rfd->stat & SWAP16(0x0100)) i596_rx()
748 if (rfd->stat & SWAP16(0x8000)) i596_rx()
750 if (rfd->stat & SWAP16(0x0001)) i596_rx()
752 if (rfd->stat & SWAP16(0x0002)) i596_rx()
754 if (rfd->stat & SWAP16(0x0004)) i596_rx()
756 if (rfd->stat & SWAP16(0x0008)) i596_rx()
758 if (rfd->stat & SWAP16(0x0010)) i596_rx()
772 rfd->rbd = I596_NULL; i596_rx()
773 rfd->stat = 0; i596_rx()
774 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX); i596_rx()
775 rfd->count = 0; i596_rx()
779 lp->dma->scb.rfd = rfd->b_next; i596_rx()
780 lp->rfd_head = rfd->v_next; i596_rx()
781 DMA_WBACK_INV(dev, rfd, sizeof(struct i596_rfd)); i596_rx()
785 rfd->v_prev->cmd = SWAP16(CMD_FLEX); i596_rx()
786 DMA_WBACK_INV(dev, rfd->v_prev, sizeof(struct i596_rfd)); i596_rx()
787 rfd = lp->rfd_head; i596_rx()
788 DMA_INV(dev, rfd, sizeof(struct i596_rfd)); i596_rx()
1081 dma->scb.rfd = I596_NULL; i82596_probe()
H A D82596.c294 struct i596_rfd *rfd; member in struct:i596_scb
460 struct i596_rfd *rfd; i596_display_data() local
468 " .cmd = %p, .rfd = %p\n", i596_display_data()
470 lp->scb.cmd, lp->scb.rfd); i596_display_data()
481 rfd = lp->rfd_head; i596_display_data()
482 printk(KERN_ERR "rfd_head = %p\n", rfd); i596_display_data()
486 rfd, rfd->stat, rfd->cmd, rfd->b_next, rfd->rbd, i596_display_data()
487 rfd->count); i596_display_data()
488 rfd = rfd->v_next; i596_display_data()
489 } while (rfd != lp->rfd_head); i596_display_data()
544 struct i596_rfd *rfd; init_rx_bufs() local
575 for (i = 0, rfd = lp->rfds; i < rx_ring_size; i++, rfd++) { init_rx_bufs()
576 rfd->rbd = I596_NULL; init_rx_bufs()
577 rfd->v_next = rfd+1; init_rx_bufs()
578 rfd->v_prev = rfd-1; init_rx_bufs()
579 rfd->b_next = WSWAPrfd(virt_to_bus(rfd+1)); init_rx_bufs()
580 rfd->cmd = CMD_FLEX; init_rx_bufs()
583 lp->scb.rfd = WSWAPrfd(virt_to_bus(lp->rfds)); init_rx_bufs()
584 rfd = lp->rfds; init_rx_bufs()
585 rfd->rbd = lp->rbd_head; init_rx_bufs()
586 rfd->v_prev = lp->rfds + rx_ring_size - 1; init_rx_bufs()
587 rfd = lp->rfds + rx_ring_size - 1; init_rx_bufs()
588 rfd->v_next = lp->rfds; init_rx_bufs()
589 rfd->b_next = WSWAPrfd(virt_to_bus(lp->rfds)); init_rx_bufs()
590 rfd->cmd = CMD_EOL|CMD_FLEX; init_rx_bufs()
609 lp->scb.rfd = WSWAPrfd(virt_to_bus(lp->rfds)); rebuild_rx_bufs()
748 struct i596_rfd *rfd; i596_rx() local
755 rfd = lp->rfd_head; /* Ref next frame to check */ i596_rx()
757 while ((rfd->stat) & STAT_C) { /* Loop while complete frames */ i596_rx()
758 if (rfd->rbd == I596_NULL) i596_rx()
760 else if (rfd->rbd == lp->rbd_head->b_addr) i596_rx()
767 DEB(DEB_RXFRAME, printk(KERN_DEBUG " rfd %p, rfd.rbd %p, rfd.stat %04x\n", i596_rx()
768 rfd, rfd->rbd, rfd->stat)); i596_rx()
770 if (rbd != I596_NULL && ((rfd->stat) & STAT_OK)) { i596_rx()
826 DEB(DEB_ERRORS, printk(KERN_DEBUG "%s: Error, rfd.stat = 0x%04x\n", i596_rx()
827 dev->name, rfd->stat)); i596_rx()
829 if ((rfd->stat) & 0x0001) i596_rx()
831 if ((rfd->stat) & 0x0080) i596_rx()
833 if ((rfd->stat) & 0x0100) i596_rx()
835 if ((rfd->stat) & 0x0200) i596_rx()
837 if ((rfd->stat) & 0x0400) i596_rx()
839 if ((rfd->stat) & 0x0800) i596_rx()
841 if ((rfd->stat) & 0x1000) i596_rx()
854 rfd->rbd = I596_NULL; i596_rx()
855 rfd->stat = 0; i596_rx()
856 rfd->cmd = CMD_EOL|CMD_FLEX; i596_rx()
857 rfd->count = 0; i596_rx()
861 rfd->v_prev->cmd = CMD_FLEX; i596_rx()
865 lp->scb.rfd = rfd->b_next; i596_rx()
866 lp->rfd_head = rfd->v_next; i596_rx()
867 rfd = lp->rfd_head; i596_rx()
1218 lp->scb.rfd = I596_NULL; i82596_probe()
H A Dsun3_82586.c76 sizeof(rfd) = 24; sizeof(rbd) = 12;
641 volatile struct rfd_struct *rfd = (struct rfd_struct *)ptr; alloc_rfa() local
646 memset((char *) rfd,0,sizeof(struct rfd_struct)*(p->num_recv_buffs+rfdadd)); alloc_rfa()
647 p->rfd_first = rfd; alloc_rfa()
650 rfd[i].next = make16(rfd + (i+1) % (p->num_recv_buffs+rfdadd) ); alloc_rfa()
651 rfd[i].rbd_offset = 0xffff; alloc_rfa()
653 rfd[p->num_recv_buffs-1+rfdadd].last = RFD_SUSP; /* RU suspend */ alloc_rfa()
655 ptr = (void *) (rfd + (p->num_recv_buffs + rfdadd) ); alloc_rfa()
818 printk("%s: oops! rfd-error-status: %04x\n",dev->name,status); sun3_82586_rcv_int()
H A Dether1.h82 typedef struct { /* rfd */
H A Dsun3_82586.h142 #define RFD_LAST 0x80 /* last: last rfd in the list */
H A Dether1.c474 * setup circularly linked list of { rfd, rbd, buffer }, with ether1_init_for_open()
476 * First rfd is linked to scp, first rbd is linked to first ether1_init_for_open()
477 * rfd. Last rbd has a suspend command. ether1_init_for_open()
/linux-4.4.14/drivers/net/ethernet/intel/
H A De100.c435 struct rfd { struct
575 struct rfd blank_rfd;
1949 #define RFD_BUF_LEN (sizeof(struct rfd) + VLAN_ETH_FRAME_LEN + ETH_FCS_LEN) e100_rx_alloc_skb()
1956 skb_copy_to_linear_data(rx->skb, &nic->blank_rfd, sizeof(struct rfd)); e100_rx_alloc_skb()
1971 struct rfd *prev_rfd = (struct rfd *)rx->prev->skb->data; e100_rx_alloc_skb()
1974 sizeof(struct rfd), PCI_DMA_BIDIRECTIONAL); e100_rx_alloc_skb()
1985 struct rfd *rfd = (struct rfd *)skb->data; e100_rx_indicate() local
1994 sizeof(struct rfd), PCI_DMA_BIDIRECTIONAL); e100_rx_indicate()
1995 rfd_status = le16_to_cpu(rfd->status); e100_rx_indicate()
2008 if ((le16_to_cpu(rfd->command) & cb_el) && e100_rx_indicate()
2014 sizeof(struct rfd), e100_rx_indicate()
2022 actual_size = le16_to_cpu(rfd->actual_size) & 0x3FFF; e100_rx_indicate()
2023 if (unlikely(actual_size > RFD_BUF_LEN - sizeof(struct rfd))) e100_rx_indicate()
2024 actual_size = RFD_BUF_LEN - sizeof(struct rfd); e100_rx_indicate()
2036 if ((le16_to_cpu(rfd->command) & cb_el) && e100_rx_indicate()
2044 skb_reserve(skb, sizeof(struct rfd)); e100_rx_indicate()
2085 struct rfd *old_before_last_rfd, *new_before_last_rfd; e100_rx_clean()
2106 old_before_last_rfd = (struct rfd *)old_before_last_rx->skb->data; e100_rx_clean()
2126 (struct rfd *)new_before_last_rx->skb->data; e100_rx_clean()
2130 new_before_last_rx->dma_addr, sizeof(struct rfd), e100_rx_clean()
2138 old_before_last_rx->dma_addr, sizeof(struct rfd), e100_rx_clean()
2143 old_before_last_rx->dma_addr, sizeof(struct rfd), e100_rx_clean()
2182 struct rfd *before_last; e100_rx_alloc_list()
2206 before_last = (struct rfd *)rx->skb->data; e100_rx_alloc_list()
2210 sizeof(struct rfd), PCI_DMA_BIDIRECTIONAL); e100_rx_alloc_list()
2418 if (memcmp(nic->rx_to_clean->skb->data + sizeof(struct rfd), e100_loopback_test()
/linux-4.4.14/drivers/net/ethernet/agere/
H A Det131x.c401 struct rfd { struct
2011 struct rfd *rfd; et131x_rx_dma_memory_free() local
2019 rfd = list_entry(rx_ring->recv_list.next, et131x_rx_dma_memory_free()
2020 struct rfd, list_node); et131x_rx_dma_memory_free()
2022 list_del(&rfd->list_node); et131x_rx_dma_memory_free()
2023 rfd->skb = NULL; et131x_rx_dma_memory_free()
2024 kfree(rfd); et131x_rx_dma_memory_free()
2089 struct rfd *rfd; et131x_init_recv() local
2095 rfd = kzalloc(sizeof(*rfd), GFP_ATOMIC | GFP_DMA); et131x_init_recv()
2096 if (!rfd) et131x_init_recv()
2099 rfd->skb = NULL; et131x_init_recv()
2102 list_add_tail(&rfd->list_node, &rx_ring->recv_list); et131x_init_recv()
2126 static void nic_return_rfd(struct et131x_adapter *adapter, struct rfd *rfd) nic_return_rfd() argument
2130 u16 buff_index = rfd->bufferindex; nic_return_rfd()
2131 u8 ring_index = rfd->ringindex; nic_return_rfd()
2171 list_add_tail(&rfd->list_node, &rx_local->recv_list); nic_return_rfd()
2185 static struct rfd *nic_rx_pkts(struct et131x_adapter *adapter) nic_rx_pkts()
2190 struct rfd *rfd; nic_rx_pkts() local
2248 rfd = list_entry(element, struct rfd, list_node); nic_rx_pkts()
2250 if (!rfd) { nic_rx_pkts()
2255 list_del(&rfd->list_node); nic_rx_pkts()
2260 rfd->bufferindex = buff_index; nic_rx_pkts()
2261 rfd->ringindex = ring_index; nic_rx_pkts()
2269 rfd->len = 0; nic_rx_pkts()
2276 rfd->len = len; nic_rx_pkts()
2278 skb = dev_alloc_skb(rfd->len + 2); nic_rx_pkts()
2282 adapter->netdev->stats.rx_bytes += rfd->len; nic_rx_pkts()
2284 memcpy(skb_put(skb, rfd->len), fbr->virt[buff_index], rfd->len); nic_rx_pkts()
2291 nic_return_rfd(adapter, rfd); nic_rx_pkts()
2292 return rfd; nic_rx_pkts()
2297 struct rfd *rfd = NULL; et131x_handle_recv_pkts() local
2314 rfd = nic_rx_pkts(adapter); et131x_handle_recv_pkts()
2316 if (rfd == NULL) et131x_handle_recv_pkts()
2326 rfd->len == 0) et131x_handle_recv_pkts()
/linux-4.4.14/drivers/net/ethernet/atheros/alx/
H A Dalx.h56 struct alx_rfd *rfd; member in struct:alx_rx_queue
H A Dmain.c87 struct alx_rfd *rfd = &rxq->rfd[cur]; alx_refill_rx_ring() local
111 rfd->addr = cpu_to_le64(dma); alx_refill_rx_ring()
555 alx->rxq.rfd = alx_alloc_descriptors()
H A Dreg.h335 /* bit11: drop large packet, len > (rfd buf) */
/linux-4.4.14/net/9p/
H A Dtrans_fd.c56 * @rfd: file descriptor for reading (trans=fd)
63 int rfd; member in struct:p9_fd_opts
735 opts->rfd = ~0; parse_opts()
769 opts->rfd = option; parse_opts()
786 static int p9_fd_open(struct p9_client *client, int rfd, int wfd) p9_fd_open() argument
793 ts->rd = fget(rfd); p9_fd_open()
1020 if (opts.rfd == ~0 || opts.wfd == ~0) { p9_fd_create()
1025 err = p9_fd_open(client, opts.rfd, opts.wfd); p9_fd_create()
/linux-4.4.14/drivers/mtd/
H A Drfd_ftl.c9 * http://www.gensw.com/pages/prod/bios/rfd.htm
819 .name = "rfd",
/linux-4.4.14/drivers/net/ethernet/atheros/atl1c/
H A Datl1c.h443 * mapped for the three descriptor rings (tpd, rfd, rrd) described below
496 /* receive free descriptor (rfd) ring */
H A Datl1c_main.c1770 /* the relationship between rrd and rfd is one map one */ atl1c_clean_rrd()
1820 /* TODO support mul rfd*/ atl1c_clean_rx_irq()
1823 "Multi rfd not support yet!\n"); atl1c_clean_rx_irq()
1853 "Multi rfd not support yet!\n"); atl1c_clean_rx_irq()
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/
H A Datl1.h593 * mapped for the three descriptor rings (tpd, rfd, rrd) and the two
625 /* receive free descriptor (rfd) ring */
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac1000.h226 enum rfd { enum
/linux-4.4.14/drivers/cdrom/
H A Dcdrom.c687 struct rwrt_feature_desc *rfd) cdrom_get_random_writable()
703 memcpy(rfd, &buffer[sizeof(struct feature_header)], sizeof (*rfd)); cdrom_get_random_writable()
734 struct rwrt_feature_desc rfd; cdrom_is_random_writable() local
739 if ((ret = cdrom_get_random_writable(cdi, &rfd))) cdrom_is_random_writable()
742 if (CDF_RWRT == be16_to_cpu(rfd.feature_code)) cdrom_is_random_writable()
846 struct rwrt_feature_desc rfd; cdrom_ram_open_write() local
852 if ((ret = cdrom_get_random_writable(cdi, &rfd))) cdrom_ram_open_write()
854 else if (CDF_RWRT == be16_to_cpu(rfd.feature_code)) cdrom_ram_open_write()
855 ret = !rfd.curr; cdrom_ram_open_write()
686 cdrom_get_random_writable(struct cdrom_device_info *cdi, struct rwrt_feature_desc *rfd) cdrom_get_random_writable() argument
/linux-4.4.14/tools/lguest/
H A Dlguest.c3077 int rfd; member in struct:rng_info
3097 len = readv(rng_info->rfd, iov, in_num); rng_input()
3117 rng_info->rfd = open_or_die("/dev/urandom", O_RDONLY); setup_rng()

Completed in 720 milliseconds