Searched refs:ering (Results 1 – 5 of 5) sorted by relevance
/linux-2.4.37.9/drivers/net/ |
D | b44.c | 1535 struct ethtool_ringparam ering = { ETHTOOL_GRINGPARAM }; in b44_ethtool_ioctl() local 1537 ering.rx_max_pending = B44_RX_RING_SIZE - 1; in b44_ethtool_ioctl() 1538 ering.rx_pending = bp->rx_pending; in b44_ethtool_ioctl() 1542 if (copy_to_user(useraddr, &ering, sizeof(ering))) in b44_ethtool_ioctl() 1547 struct ethtool_ringparam ering; in b44_ethtool_ioctl() local 1549 if (copy_from_user(&ering, useraddr, sizeof(ering))) in b44_ethtool_ioctl() 1552 if ((ering.rx_pending > B44_RX_RING_SIZE - 1) || in b44_ethtool_ioctl() 1553 (ering.rx_mini_pending != 0) || in b44_ethtool_ioctl() 1554 (ering.rx_jumbo_pending != 0) || in b44_ethtool_ioctl() 1555 (ering.tx_pending > B44_TX_RING_SIZE - 1)) in b44_ethtool_ioctl() [all …]
|
D | sky2.c | 2863 struct ethtool_ringparam *ering) in sky2_get_ringparam() argument 2867 ering->rx_max_pending = RX_MAX_PENDING; in sky2_get_ringparam() 2868 ering->rx_mini_max_pending = 0; in sky2_get_ringparam() 2869 ering->rx_jumbo_max_pending = 0; in sky2_get_ringparam() 2870 ering->tx_max_pending = TX_RING_SIZE - 1; in sky2_get_ringparam() 2872 ering->rx_pending = sky2->rx_pending; in sky2_get_ringparam() 2873 ering->rx_mini_pending = 0; in sky2_get_ringparam() 2874 ering->rx_jumbo_pending = 0; in sky2_get_ringparam() 2875 ering->tx_pending = sky2->tx_pending; in sky2_get_ringparam() 2879 struct ethtool_ringparam *ering) in sky2_set_ringparam() argument [all …]
|
D | pcnet32.c | 608 static void pcnet32_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in pcnet32_get_ringparam() argument 612 ering->tx_max_pending = TX_RING_SIZE - 1; in pcnet32_get_ringparam() 613 ering->tx_pending = lp->cur_tx - lp->dirty_tx; in pcnet32_get_ringparam() 614 ering->rx_max_pending = RX_RING_SIZE - 1; in pcnet32_get_ringparam() 615 ering->rx_pending = lp->cur_rx & RX_RING_MOD_MASK; in pcnet32_get_ringparam()
|
D | tg3.c | 7068 static void tg3_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in tg3_get_ringparam() argument 7072 ering->rx_max_pending = TG3_RX_RING_SIZE - 1; in tg3_get_ringparam() 7073 ering->rx_mini_max_pending = 0; in tg3_get_ringparam() 7074 ering->rx_jumbo_max_pending = TG3_RX_JUMBO_RING_SIZE - 1; in tg3_get_ringparam() 7076 ering->rx_pending = tp->rx_pending; in tg3_get_ringparam() 7077 ering->rx_mini_pending = 0; in tg3_get_ringparam() 7078 ering->rx_jumbo_pending = tp->rx_jumbo_pending; in tg3_get_ringparam() 7079 ering->tx_pending = tp->tx_pending; in tg3_get_ringparam() 7082 static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in tg3_set_ringparam() argument 7086 if ((ering->rx_pending > TG3_RX_RING_SIZE - 1) || in tg3_set_ringparam() [all …]
|
/linux-2.4.37.9/drivers/net/e100/ |
D | e100_main.c | 3246 struct ethtool_ringparam ering; in e100_do_ethtool_ioctl() local 3248 memset((void *) &ering, 0, sizeof(ering)); in e100_do_ethtool_ioctl() 3249 ering.rx_max_pending = E100_MAX_RFD; in e100_do_ethtool_ioctl() 3250 ering.tx_max_pending = E100_MAX_TCB; in e100_do_ethtool_ioctl() 3251 ering.rx_pending = bdp->params.RxDescriptors; in e100_do_ethtool_ioctl() 3252 ering.tx_pending = bdp->params.TxDescriptors; in e100_do_ethtool_ioctl() 3253 rc = copy_to_user(ifr->ifr_data, &ering, sizeof(ering)) in e100_do_ethtool_ioctl() 3260 struct ethtool_ringparam ering; in e100_do_ethtool_ioctl() local 3262 if (copy_from_user(&ering, ifr->ifr_data, sizeof(ering))) in e100_do_ethtool_ioctl() 3264 if (ering.rx_pending > E100_MAX_RFD in e100_do_ethtool_ioctl() [all …]
|