Home
last modified time | relevance | path

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

1234

/Linux-v6.1/net/ethtool/
Dchannels.c68 channels->rx_count))) || in channels_fill_reply()
142 max(channels.rx_count, channels.tx_count); in ethnl_set_channels()
144 ethnl_update_u32(&channels.rx_count, tb[ETHTOOL_A_CHANNELS_RX_COUNT], in ethnl_set_channels()
158 if (channels.rx_count > channels.max_rx) in ethnl_set_channels()
176 if (!channels.combined_count && !channels.rx_count) in ethnl_set_channels()
196 (channels.combined_count + channels.rx_count) <= max_rx_in_use) { in ethnl_set_channels()
204 min(channels.rx_count, channels.tx_count); in ethnl_set_channels()
/Linux-v6.1/drivers/staging/octeon/
Dethernet-rx.c187 int rx_count = 0; in cvm_oct_poll() local
218 while (rx_count < budget) { in cvm_oct_poll()
253 if (USE_ASYNC_IOBDMA && rx_count < (budget - 1)) { in cvm_oct_poll()
258 rx_count++; in cvm_oct_poll()
402 return rx_count; in cvm_oct_poll()
416 int rx_count; in cvm_oct_napi_poll() local
418 rx_count = cvm_oct_poll(rx_group, budget); in cvm_oct_napi_poll()
420 if (rx_count < budget) { in cvm_oct_napi_poll()
422 napi_complete_done(napi, rx_count); in cvm_oct_napi_poll()
425 return rx_count; in cvm_oct_napi_poll()
/Linux-v6.1/drivers/bluetooth/
Dhci_bcsp.c48 unsigned long rx_count; member
440 bcsp->rx_count--; in bcsp_unslip_one_byte()
452 bcsp->rx_count--; in bcsp_unslip_one_byte()
461 bcsp->rx_count--; in bcsp_unslip_one_byte()
469 bcsp->rx_count = 0; in bcsp_unslip_one_byte()
586 hu, count, bcsp->rx_state, bcsp->rx_count); in bcsp_recv()
590 if (bcsp->rx_count) { in bcsp_recv()
596 bcsp->rx_count = 0; in bcsp_recv()
612 bcsp->rx_count = 0; in bcsp_recv()
616 bcsp->rx_count = (bcsp->rx_skb->data[1] >> 4) + in bcsp_recv()
[all …]
Dbt3c_cs.c81 unsigned long rx_count; member
238 info->rx_count = 0; in bt3c_receive()
256 info->rx_count = HCI_EVENT_HDR_SIZE; in bt3c_receive()
261 info->rx_count = HCI_ACL_HDR_SIZE; in bt3c_receive()
266 info->rx_count = HCI_SCO_HDR_SIZE; in bt3c_receive()
287 info->rx_count--; in bt3c_receive()
289 if (info->rx_count == 0) { in bt3c_receive()
301 info->rx_count = eh->plen; in bt3c_receive()
308 info->rx_count = dlen; in bt3c_receive()
314 info->rx_count = sh->dlen; in bt3c_receive()
[all …]
Dbluecard_cs.c76 unsigned long rx_count; member
389 info->rx_count = 0; in bluecard_receive()
418 info->rx_count = HCI_EVENT_HDR_SIZE; in bluecard_receive()
423 info->rx_count = HCI_ACL_HDR_SIZE; in bluecard_receive()
428 info->rx_count = HCI_SCO_HDR_SIZE; in bluecard_receive()
446 info->rx_count--; in bluecard_receive()
448 if (info->rx_count == 0) { in bluecard_receive()
460 info->rx_count = eh->plen; in bluecard_receive()
467 info->rx_count = dlen; in bluecard_receive()
473 info->rx_count = sh->dlen; in bluecard_receive()
[all …]
Ddtl1_cs.c79 unsigned long rx_count; member
224 info->rx_count = NSHL; in dtl1_receive()
232 info->rx_count--; in dtl1_receive()
234 if (info->rx_count == 0) { in dtl1_receive()
239 info->rx_count = nsh->len + (nsh->len & 0x0001); in dtl1_receive()
274 info->rx_count = NSHL; in dtl1_receive()
446 info->rx_count = NSHL; in dtl1_open()
/Linux-v6.1/drivers/net/ethernet/engleder/
Dtsnep_ethtool.c131 int rx_count = adapter->num_rx_queues; in tsnep_ethtool_get_strings() local
140 for (i = 0; i < rx_count; i++) { in tsnep_ethtool_get_strings()
167 int rx_count = adapter->num_rx_queues; in tsnep_ethtool_get_ethtool_stats() local
197 for (i = 0; i < rx_count; i++) { in tsnep_ethtool_get_ethtool_stats()
236 int rx_count; in tsnep_ethtool_get_sset_count() local
241 rx_count = adapter->num_rx_queues; in tsnep_ethtool_get_sset_count()
244 TSNEP_RX_QUEUE_STATS_COUNT * rx_count + in tsnep_ethtool_get_sset_count()
/Linux-v6.1/samples/rpmsg/
Drpmsg_client_sample.c22 int rx_count; member
32 ++idata->rx_count, src); in rpmsg_sample_cb()
38 if (idata->rx_count >= count) { in rpmsg_sample_cb()
/Linux-v6.1/drivers/misc/ti-st/
Dst_core.c181 st_gdata->rx_count = len; in st_check_data_len()
188 st_gdata->rx_count = 0; in st_check_data_len()
249 st_gdata->rx_count); in st_int_recv()
254 if (st_gdata->rx_count) { in st_int_recv()
255 len = min_t(unsigned int, st_gdata->rx_count, count); in st_int_recv()
257 st_gdata->rx_count -= len; in st_int_recv()
261 if (st_gdata->rx_count) in st_int_recv()
380 st_gdata->rx_count = st_gdata->list[type]->hdr_len; in st_int_recv()
381 pr_debug("rx_count %ld\n", st_gdata->rx_count); in st_int_recv()
790 st_gdata->rx_count = 0; in st_tty_close()
Dst_kim.c71 kim_gdata->rx_count = 0; in validate_firmware_response()
109 kim_gdata->rx_count = len; in kim_check_data_len()
119 kim_gdata->rx_count = 0; in kim_check_data_len()
146 if (kim_gdata->rx_count) { in kim_int_recv()
147 len = min_t(unsigned int, kim_gdata->rx_count, count); in kim_int_recv()
149 kim_gdata->rx_count -= len; in kim_int_recv()
153 if (kim_gdata->rx_count) in kim_int_recv()
178 kim_gdata->rx_count = 2; in kim_int_recv()
193 kim_gdata->rx_count = 0; in kim_int_recv()
/Linux-v6.1/drivers/spi/
Dspi-au1550.c48 unsigned int rx_count; member
313 hw->rx_count = 0; in au1550_spi_dma_txrxb()
408 return min(hw->rx_count, hw->tx_count); in au1550_spi_dma_txrxb()
437 hw->rx_count = hw->len - au1xxx_get_dma_residue(hw->dma_rx_ch); in au1550_spi_dma_irq_callback()
459 hw->rx_count = hw->len; in au1550_spi_dma_irq_callback()
477 hw->rx_count += (size) / 8; \
511 hw->rx_count = 0; in au1550_spi_pio_txrxb()
542 return min(hw->rx_count, hw->tx_count); in au1550_spi_pio_txrxb()
593 if (!(stat & PSC_SPISTAT_RE) && hw->rx_count < hw->len) { in au1550_spi_pio_irq_callback()
627 if (hw->rx_count >= hw->len) { in au1550_spi_pio_irq_callback()
Dspi-img-spfi.c246 unsigned int tx_count, rx_count; in img_spfi_start_pio() local
254 rx_count = spfi_pio_read32(spfi, rx_buf, rx_bytes); in img_spfi_start_pio()
256 rx_count = spfi_pio_read8(spfi, rx_buf, rx_bytes); in img_spfi_start_pio()
259 rx_buf += rx_count; in img_spfi_start_pio()
261 rx_bytes -= rx_count; in img_spfi_start_pio()
/Linux-v6.1/drivers/net/hamradio/
D6pack.c100 unsigned int rx_count; member
505 sp->rx_count = 0; in resync_tnc()
595 sp->rx_count = 0; in sixpack_open()
827 if (sp->rx_count != 3) { in decode_data()
828 sp->raw_buf[sp->rx_count++] = inbyte; in decode_data()
835 sp->rx_count = 0; in decode_data()
846 sp->rx_count = 0; in decode_data()
908 if ((sp->rx_count == 0) && (sp->rx_count_cooked == 0)) { in decode_std_command()
919 rest = sp->rx_count; in decode_std_command()
/Linux-v6.1/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c490 u32 rx_count, tx_count; in nicvf_set_ringparam() local
501 rx_count = clamp_t(u32, ring->rx_pending, in nicvf_set_ringparam()
504 if ((tx_count == qs->sq_len) && (rx_count == qs->cq_len)) in nicvf_set_ringparam()
509 qs->cq_len = rounddown_pow_of_two(rx_count); in nicvf_set_ringparam()
718 channel->rx_count = nic->rx_queues; in nicvf_get_channels()
731 if (!channel->rx_count || !channel->tx_count) in nicvf_set_channels()
733 if (channel->rx_count > nic->max_queues) in nicvf_set_channels()
739 ((channel->tx_count + channel->rx_count) > nic->max_queues)) { in nicvf_set_channels()
749 nic->rx_queues = channel->rx_count; in nicvf_set_channels()
754 nic->xdp_tx_queues = channel->rx_count; in nicvf_set_channels()
/Linux-v6.1/drivers/net/ethernet/wiznet/
Dw5300.c378 int rx_count; in w5300_napi_poll() local
381 for (rx_count = 0; rx_count < budget; rx_count++) { in w5300_napi_poll()
406 if (rx_count < budget) { in w5300_napi_poll()
407 napi_complete_done(napi, rx_count); in w5300_napi_poll()
411 return rx_count; in w5300_napi_poll()
/Linux-v6.1/drivers/tty/
Dehv_bytechan.c202 unsigned int rx_count, tx_count; in udbg_init_ehv_bc() local
207 &rx_count, &tx_count); in udbg_init_ehv_bc()
350 unsigned int rx_count, tx_count, len; in ehv_bc_tty_rx_isr() local
359 ev_byte_channel_poll(bc->handle, &rx_count, &tx_count); in ehv_bc_tty_rx_isr()
360 count = tty_buffer_request_room(&bc->port, rx_count); in ehv_bc_tty_rx_isr()
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c275 channel->rx_count = pfvf->hw.rx_queues; in otx2_get_channels()
287 if (!channel->rx_count || !channel->tx_count) in otx2_set_channels()
300 channel->rx_count); in otx2_set_channels()
304 pfvf->hw.rx_queues = channel->rx_count; in otx2_set_channels()
389 u32 rx_count, tx_count; in otx2_set_ringparam() local
410 rx_count = ring->rx_pending; in otx2_set_ringparam()
414 if (rx_count < pfvf->hw.rq_skid) in otx2_set_ringparam()
415 rx_count = pfvf->hw.rq_skid; in otx2_set_ringparam()
416 rx_count = Q_COUNT(Q_SIZE(rx_count, 3)); in otx2_set_ringparam()
426 if (tx_count == qs->sqe_cnt && rx_count == qs->rqe_cnt && in otx2_set_ringparam()
[all …]
/Linux-v6.1/include/net/
Dgro.h431 if (!napi->rx_count) in gro_normal_list()
435 napi->rx_count = 0; in gro_normal_list()
444 napi->rx_count += segs; in gro_normal_one()
445 if (napi->rx_count >= READ_ONCE(gro_normal_batch)) in gro_normal_one()
/Linux-v6.1/drivers/usb/musb/
Dmusb_host.c409 u16 rx_count; in musb_host_packet_rx() local
422 rx_count = musb_readw(epio, MUSB_RXCOUNT); in musb_host_packet_rx()
423 musb_dbg(musb, "RX%d count %d, buffer %p len %d/%d", epnum, rx_count, in musb_host_packet_rx()
440 if (rx_count > length) { in musb_host_packet_rx()
445 musb_dbg(musb, "OVERFLOW %d into %d", rx_count, length); in musb_host_packet_rx()
448 length = rx_count; in musb_host_packet_rx()
460 if (rx_count > length) { in musb_host_packet_rx()
463 musb_dbg(musb, "OVERFLOW %d into %d", rx_count, length); in musb_host_packet_rx()
466 length = rx_count; in musb_host_packet_rx()
472 || (rx_count < qh->maxpacket) in musb_host_packet_rx()
[all …]
/Linux-v6.1/include/linux/
Dti_wilink_st.h139 unsigned long rx_count; member
254 unsigned long rx_count; member
/Linux-v6.1/drivers/net/ethernet/sunplus/
Dspl2sw_int.c27 u32 num, rx_count; in spl2sw_rx_poll() local
37 rx_count = comm->rx_desc_num[queue]; in spl2sw_rx_poll()
39 for (num = 0; num < rx_count && budget_left; num++) { in spl2sw_rx_poll()
/Linux-v6.1/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c723 channels->rx_count = rx; in xgbe_get_channels()
731 channels->combined_count, channels->rx_count, in xgbe_print_set_channels_input()
780 if (channels->rx_count && channels->tx_count) { in xgbe_set_channels()
788 if ((channels->combined_count + channels->rx_count) > rx) { in xgbe_set_channels()
791 channels->combined_count + channels->rx_count, rx); in xgbe_set_channels()
804 rx = channels->combined_count + channels->rx_count; in xgbe_set_channels()
/Linux-v6.1/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c596 ch->rx_count = lif->nxqs; in ionic_get_channels()
616 if (ch->rx_count != ch->tx_count) { in ionic_set_channels()
621 if (ch->combined_count && ch->rx_count) { in ionic_set_channels()
644 if (ch->rx_count > max_cnt) in ionic_set_channels()
649 else if (ch->rx_count == lif->nxqs) in ionic_set_channels()
652 if (lif->nxqs != ch->rx_count) in ionic_set_channels()
654 lif->nxqs, ch->rx_count); in ionic_set_channels()
656 qparam.nxqs = ch->rx_count; in ionic_set_channels()
/Linux-v6.1/tools/include/uapi/linux/
Dethtool.h45 __u32 rx_count; member
/Linux-v6.1/drivers/net/can/peak_canfd/
Dpeak_canfd_user.h45 struct pucan_rx_msg *rx_msg, int rx_count);

1234