Home
last modified time | relevance | path

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

/drivers/net/wimax/i2400m/
Dusb-rx.c121 size_t rx_size; in i2400mu_rx_size_grow() local
124 rx_size = 2 * i2400mu->rx_size; in i2400mu_rx_size_grow()
125 if (rx_size % max_pkt_size == 0) { in i2400mu_rx_size_grow()
126 rx_size -= 8; in i2400mu_rx_size_grow()
130 rx_size, i2400mu->rx_size); in i2400mu_rx_size_grow()
134 rx_size, i2400mu->rx_size); in i2400mu_rx_size_grow()
135 return rx_size; in i2400mu_rx_size_grow()
149 size_t new_rx_size = i2400mu->rx_size / 2; in i2400mu_rx_size_maybe_shrink()
156 new_rx_size, i2400mu->rx_size); in i2400mu_rx_size_maybe_shrink()
161 new_rx_size, i2400mu->rx_size); in i2400mu_rx_size_maybe_shrink()
[all …]
Dsdio-rx.c93 ssize_t rx_size; in __i2400ms_rx_get_size() local
100 rx_size = 0; in __i2400ms_rx_get_size()
106 rx_size = ret; in __i2400ms_rx_get_size()
109 rx_size = rx_size << 8 | (val & 0xff); in __i2400ms_rx_get_size()
111 d_printf(6, dev, "RX: rx_size is %ld\n", (long) rx_size); in __i2400ms_rx_get_size()
113 d_fnend(7, dev, "(i2400ms %p) = %ld\n", i2400ms, (long) rx_size); in __i2400ms_rx_get_size()
114 return rx_size; in __i2400ms_rx_get_size()
135 ssize_t rx_size; in i2400ms_rx() local
138 rx_size = __i2400ms_rx_get_size(i2400ms); in i2400ms_rx()
139 if (rx_size < 0) { in i2400ms_rx()
[all …]
Di2400m-usb.h237 size_t rx_size, rx_size_acc, rx_size_cnt; member
254 i2400mu->rx_size = PAGE_SIZE - sizeof(struct skb_shared_info); in i2400mu_init()
Dusb.c425 &i2400mu->rx_size); in i2400mu_debugfs_add()
/drivers/net/wireless/iwmc3200wifi/
Dsdio.c86 unsigned long rx_size; in iwm_sdio_isr_worker() local
94 rx_size = rx_info->rx_size; in iwm_sdio_isr_worker()
97 IWM_HEXDUMP(iwm, DBG, SDIO, "RX: ", rx_buf, rx_size); in iwm_sdio_isr_worker()
98 if (iwm_rx_handle(iwm, rx_buf, rx_size) < 0) in iwm_sdio_isr_worker()
158 rx_info->rx_size = read_size; in iwm_sdio_isr()
Diwm.h155 unsigned long rx_size; member
/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c447 u32 rx_size, tx_size; in mlx4_en_set_ringparam() local
455 rx_size = roundup_pow_of_two(param->rx_pending); in mlx4_en_set_ringparam()
456 rx_size = max_t(u32, rx_size, MLX4_EN_MIN_RX_SIZE); in mlx4_en_set_ringparam()
457 rx_size = min_t(u32, rx_size, MLX4_EN_MAX_RX_SIZE); in mlx4_en_set_ringparam()
462 if (rx_size == (priv->port_up ? priv->rx_ring[0].actual_size : in mlx4_en_set_ringparam()
476 priv->prof->rx_ring_size = rx_size; in mlx4_en_set_ringparam()
/drivers/net/ethernet/silan/
Dsc92031.c699 u32 rx_status, unsigned rx_size) in _sc92031_rx_tasklet_error() argument
701 if(rx_size > (MAX_ETH_FRAME_SIZE + 4) || rx_size < 16) { in _sc92031_rx_tasklet_error()
763 unsigned rx_size, rx_size_align, pkt_size; in _sc92031_rx_tasklet() local
769 rx_size = rx_status >> 20; in _sc92031_rx_tasklet()
770 rx_size_align = (rx_size + 3) & ~3; // for 4 bytes aligned in _sc92031_rx_tasklet()
771 pkt_size = rx_size - 4; // Omit the four octet CRC from the length. in _sc92031_rx_tasklet()
776 rx_size > (MAX_ETH_FRAME_SIZE + 4) || in _sc92031_rx_tasklet()
777 rx_size < 16 || in _sc92031_rx_tasklet()
779 _sc92031_rx_tasklet_error(dev, rx_status, rx_size); in _sc92031_rx_tasklet()
/drivers/net/ethernet/tehuti/
Dtehuti.c2247 static inline int bdx_rx_fifo_size_to_packets(int rx_size) in bdx_rx_fifo_size_to_packets() argument
2249 return (FIFO_SIZE * (1 << rx_size)) / sizeof(struct rxf_desc); in bdx_rx_fifo_size_to_packets()
2284 int rx_size = 0; in bdx_set_ringparam() local
2287 for (; rx_size < 4; rx_size++) { in bdx_set_ringparam()
2288 if (bdx_rx_fifo_size_to_packets(rx_size) >= ring->rx_pending) in bdx_set_ringparam()
2291 if (rx_size == 4) in bdx_set_ringparam()
2292 rx_size = 3; in bdx_set_ringparam()
2302 if ((rx_size == priv->rxf_size) && in bdx_set_ringparam()
2306 priv->rxf_size = rx_size; in bdx_set_ringparam()
2307 if (rx_size > 1) in bdx_set_ringparam()
[all …]
/drivers/target/iscsi/
Discsi_target.c1230 u32 rx_size = 0, payload_length; in iscsit_handle_data_out() local
1375 rx_size += payload_length; in iscsit_handle_data_out()
1388 rx_size += padding; in iscsit_handle_data_out()
1395 rx_size += ISCSI_CRC_LEN; in iscsit_handle_data_out()
1398 rx_got = rx_data(conn, &cmd->iov_data[0], iov_count, rx_size); in iscsit_handle_data_out()
1402 if (rx_got != rx_size) in iscsit_handle_data_out()
1460 int cmdsn_ret, niov = 0, ret = 0, rx_got, rx_size; in iscsit_handle_nop_out() local
1520 rx_size = payload_length; in iscsit_handle_nop_out()
1539 rx_size += padding; in iscsit_handle_nop_out()
1544 rx_size += ISCSI_CRC_LEN; in iscsit_handle_nop_out()
[all …]
/drivers/net/ethernet/realtek/
D8139too.c1968 unsigned int rx_size = 0; in rtl8139_rx() local
1985 rx_size = rx_status >> 16; in rtl8139_rx()
1987 pkt_size = rx_size - 4; in rtl8139_rx()
1989 pkt_size = rx_size; in rtl8139_rx()
1992 __func__, rx_status, rx_size, cur_rx); in rtl8139_rx()
2003 if (unlikely(rx_size == 0xfff0)) { in rtl8139_rx()
2008 rx_size = 0; in rtl8139_rx()
2024 if (unlikely((rx_size > (MAX_ETH_FRAME_SIZE+4)) || in rtl8139_rx()
2025 (rx_size < 8) || in rtl8139_rx()
2028 (rx_size <= (MAX_ETH_FRAME_SIZE + 4)) && in rtl8139_rx()
[all …]
/drivers/net/wireless/ath/carl9170/
Dfw.c316 ar->fw.rx_size = le16_to_cpu(otus_desc->rx_max_frame_len); in carl9170_fw()
324 ar->fw.rx_size > 32768 || ar->fw.rx_size < 4096 || in carl9170_fw()
Dusb.c455 buf = kmalloc(ar->fw.rx_size, gfp); in carl9170_usb_alloc_rx_urb()
466 AR9170_USB_EP_RX), buf, ar->fw.rx_size, in carl9170_usb_alloc_rx_urb()
Dcarl9170.h290 unsigned int rx_size; member
/drivers/net/ethernet/ibm/emac/
Dcore.c445 static u32 __emac_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_size) in __emac_calc_base_mr1() argument
460 switch(rx_size) { in __emac_calc_base_mr1()
469 dev->ndev->name, rx_size); in __emac_calc_base_mr1()
475 static u32 __emac4_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_size) in __emac4_calc_base_mr1() argument
497 switch(rx_size) { in __emac4_calc_base_mr1()
509 dev->ndev->name, rx_size); in __emac4_calc_base_mr1()
515 static u32 emac_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_size) in emac_calc_base_mr1() argument
518 __emac4_calc_base_mr1(dev, tx_size, rx_size) : in emac_calc_base_mr1()
519 __emac_calc_base_mr1(dev, tx_size, rx_size); in emac_calc_base_mr1()
543 int tx_size, rx_size, link = netif_carrier_ok(dev->ndev); in emac_configure() local
[all …]
/drivers/infiniband/hw/amso1100/
Dc2.c592 size_t rx_size, tx_size; in c2_up() local
603 rx_size = c2_port->rx_ring.count * sizeof(struct c2_rx_desc); in c2_up()
606 c2_port->mem_size = tx_size + rx_size; in c2_up()
632 if ((ret = c2_tx_ring_alloc(&c2_port->tx_ring, c2_port->mem + rx_size, in c2_up()
633 c2_port->dma + rx_size, in c2_up()
/drivers/tty/serial/
Ducc_uart.c1003 unsigned int rx_size, tx_size; in qe_uart_request_port() local
1024 rx_size = L1_CACHE_ALIGN(qe_port->rx_nrfifos * qe_port->rx_fifosize); in qe_uart_request_port()
1027 bd_virt = dma_alloc_coherent(port->dev, rx_size + tx_size, &bd_dma_addr, in qe_uart_request_port()
1036 qe_port->bd_size = rx_size + tx_size; in qe_uart_request_port()
1039 qe_port->tx_buf = qe_port->rx_buf + rx_size; in qe_uart_request_port()
Dpch_uart.c551 int rx_size) in pch_uart_hal_read() argument
558 i < rx_size && lsr & UART_LSR_DR; in pch_uart_hal_read()
813 int rx_size; in handle_rx_to() local
822 rx_size = pch_uart_hal_read(priv, buf->buf, buf->size); in handle_rx_to()
823 ret = push_rx(priv, buf->buf, rx_size); in handle_rx_to()
826 } while (rx_size == buf->size); in handle_rx_to()
/drivers/net/ethernet/sis/
Dsis900.c1730 unsigned int rx_size; in sis900_rx() local
1737 rx_size = data_size - CRC_SIZE; in sis900_rx()
1800 skb_put(rx_skb, rx_size); in sis900_rx()
1807 net_dev->stats.rx_bytes += rx_size; in sis900_rx()
/drivers/net/ethernet/atheros/atlx/
Datl2.c436 int rx_size = (int)(rxd->status.pkt_size - 4); in atl2_intr_rx() local
438 skb = netdev_alloc_skb_ip_align(netdev, rx_size); in atl2_intr_rx()
450 memcpy(skb->data, rxd->packet, rx_size); in atl2_intr_rx()
451 skb_put(skb, rx_size); in atl2_intr_rx()
461 netdev->stats.rx_bytes += rx_size; in atl2_intr_rx()
/drivers/net/ethernet/adaptec/
Dstarfire.c913 size_t tx_size, rx_size; in netdev_open() local
1075 rx_size = fw_rx->size / 4; in netdev_open()
1079 for (i = 0; i < rx_size; i++) in netdev_open()
/drivers/net/tokenring/
Dsmctr.c4431 __u16 queue, status, rx_size, err = 0; in smctr_rx_frame() local
4447 rx_size = tp->rx_fcb_curr[queue]->frame_length - 5; in smctr_rx_frame()
4461 skb = dev_alloc_skb(rx_size); in smctr_rx_frame()
4463 skb_put(skb, rx_size); in smctr_rx_frame()
4465 skb_copy_to_linear_data(skb, pbuff, rx_size); in smctr_rx_frame()
4479 rx_size, dev, status); in smctr_rx_frame()
/drivers/net/ethernet/marvell/
Dskge.c2524 size_t rx_size, tx_size; in skge_up() local
2538 rx_size = skge->rx_ring.count * sizeof(struct skge_rx_desc); in skge_up()
2540 skge->mem_size = tx_size + rx_size; in skge_up()
2563 err = skge_ring_alloc(&skge->tx_ring, skge->mem + rx_size, in skge_up()
2564 skge->dma + rx_size); in skge_up()
/drivers/net/ethernet/broadcom/
Dbnx2.c5319 u32 rx_size, rx_space, jumbo_size; in bnx2_set_rx_ring_size() local
5322 rx_size = bp->dev->mtu + ETH_HLEN + BNX2_RX_OFFSET + 8; in bnx2_set_rx_ring_size()
5324 rx_space = SKB_DATA_ALIGN(rx_size + BNX2_RX_ALIGN) + NET_SKB_PAD + in bnx2_set_rx_ring_size()
5342 rx_size = BNX2_RX_COPY_THRESH + BNX2_RX_OFFSET; in bnx2_set_rx_ring_size()
5346 bp->rx_buf_use_size = rx_size; in bnx2_set_rx_ring_size()
5350 bp->rx_jumbo_thresh = rx_size - BNX2_RX_OFFSET; in bnx2_set_rx_ring_size()
/drivers/net/usb/
Dhso.c2302 int rx_size, int tx_size) in hso_serial_common_create() argument
2328 serial->rx_data_length = rx_size; in hso_serial_common_create()