Home
last modified time | relevance | path

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

1234

/Linux-v5.10/net/ethtool/
Dchannels.c68 channels->rx_count))) || in channels_fill_reply()
143 max(channels.rx_count, channels.tx_count); in ethnl_set_channels()
145 ethnl_update_u32(&channels.rx_count, tb[ETHTOOL_A_CHANNELS_RX_COUNT], in ethnl_set_channels()
159 if (channels.rx_count > channels.max_rx) in ethnl_set_channels()
177 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()
203 min(channels.rx_count, channels.tx_count); in ethnl_set_channels()
/Linux-v5.10/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-v5.10/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-v5.10/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-v5.10/drivers/misc/ti-st/
Dst_core.c182 st_gdata->rx_count = len; in st_check_data_len()
189 st_gdata->rx_count = 0; in st_check_data_len()
250 st_gdata->rx_count); in st_int_recv()
255 if (st_gdata->rx_count) { in st_int_recv()
256 len = min_t(unsigned int, st_gdata->rx_count, count); in st_int_recv()
258 st_gdata->rx_count -= len; in st_int_recv()
262 if (st_gdata->rx_count) in st_int_recv()
381 st_gdata->rx_count = st_gdata->list[type]->hdr_len; in st_int_recv()
382 pr_debug("rx_count %ld\n", st_gdata->rx_count); in st_int_recv()
791 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-v5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c212 channel->rx_count = pfvf->hw.rx_queues; in otx2_get_channels()
224 if (!channel->rx_count || !channel->tx_count) in otx2_set_channels()
231 channel->rx_count); in otx2_set_channels()
235 pfvf->hw.rx_queues = channel->rx_count; in otx2_set_channels()
312 u32 rx_count, tx_count; in otx2_set_ringparam() local
318 rx_count = ring->rx_pending; in otx2_set_ringparam()
322 if (rx_count < pfvf->hw.rq_skid) in otx2_set_ringparam()
323 rx_count = pfvf->hw.rq_skid; in otx2_set_ringparam()
324 rx_count = Q_COUNT(Q_SIZE(rx_count, 3)); in otx2_set_ringparam()
334 if (tx_count == qs->sqe_cnt && rx_count == qs->rqe_cnt) in otx2_set_ringparam()
[all …]
/Linux-v5.10/drivers/spi/
Dspi-au1550.c48 unsigned rx_count; member
314 hw->rx_count = 0; in au1550_spi_dma_txrxb()
409 return hw->rx_count < hw->tx_count ? hw->rx_count : hw->tx_count; in au1550_spi_dma_txrxb()
438 hw->rx_count = hw->len - au1xxx_get_dma_residue(hw->dma_rx_ch); in au1550_spi_dma_irq_callback()
460 hw->rx_count = hw->len; in au1550_spi_dma_irq_callback()
478 hw->rx_count += (size) / 8; \
512 hw->rx_count = 0; in au1550_spi_pio_txrxb()
543 return hw->rx_count < hw->tx_count ? hw->rx_count : hw->tx_count; in au1550_spi_pio_txrxb()
594 if (!(stat & PSC_SPISTAT_RE) && hw->rx_count < hw->len) { in au1550_spi_pio_irq_callback()
628 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-v5.10/drivers/staging/rtl8188eu/core/
Drtw_debug.c166 if (pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_24G].rx_count) { in proc_get_best_channel()
174 pmlmeext->channel_set[i].ChannelNum, pmlmeext->channel_set[i].rx_count); in proc_get_best_channel()
/Linux-v5.10/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c483 u32 rx_count, tx_count; in nicvf_set_ringparam() local
494 rx_count = clamp_t(u32, ring->rx_pending, in nicvf_set_ringparam()
497 if ((tx_count == qs->sq_len) && (rx_count == qs->cq_len)) in nicvf_set_ringparam()
502 qs->cq_len = rounddown_pow_of_two(rx_count); in nicvf_set_ringparam()
711 channel->rx_count = nic->rx_queues; in nicvf_get_channels()
724 if (!channel->rx_count || !channel->tx_count) in nicvf_set_channels()
726 if (channel->rx_count > nic->max_queues) in nicvf_set_channels()
732 ((channel->tx_count + channel->rx_count) > nic->max_queues)) { in nicvf_set_channels()
742 nic->rx_queues = channel->rx_count; in nicvf_set_channels()
747 nic->xdp_tx_queues = channel->rx_count; in nicvf_set_channels()
/Linux-v5.10/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()
Dw5100.c899 int rx_count; in w5100_napi_poll() local
901 for (rx_count = 0; rx_count < budget; rx_count++) { in w5100_napi_poll()
910 if (rx_count < budget) { in w5100_napi_poll()
911 napi_complete_done(napi, rx_count); in w5100_napi_poll()
915 return rx_count; in w5100_napi_poll()
/Linux-v5.10/drivers/net/hamradio/
D6pack.c100 unsigned int rx_count; member
510 sp->rx_count = 0; in resync_tnc()
599 sp->rx_count = 0; in sixpack_open()
836 if (sp->rx_count != 3) { in decode_data()
837 sp->raw_buf[sp->rx_count++] = inbyte; in decode_data()
849 sp->rx_count = 0; in decode_data()
911 if ((sp->rx_count == 0) && (sp->rx_count_cooked == 0)) { in decode_std_command()
921 rest = sp->rx_count; in decode_std_command()
/Linux-v5.10/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-v5.10/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c581 ch->rx_count = lif->nxqs; in ionic_get_channels()
598 if (ch->rx_count != ch->tx_count) { in ionic_set_channels()
603 if (ch->combined_count && ch->rx_count) { in ionic_set_channels()
626 if (ch->rx_count > max_cnt) in ionic_set_channels()
631 else if (ch->rx_count == lif->nxqs) in ionic_set_channels()
634 if (lif->nxqs != ch->rx_count) in ionic_set_channels()
636 lif->nxqs, ch->rx_count); in ionic_set_channels()
638 qparam.nxqs = ch->rx_count; in ionic_set_channels()
/Linux-v5.10/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-v5.10/include/linux/
Dti_wilink_st.h139 unsigned long rx_count; member
254 unsigned long rx_count; member
/Linux-v5.10/tools/include/uapi/linux/
Dethtool.h45 __u32 rx_count; member
/Linux-v5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c716 channels->rx_count = rx; in xgbe_get_channels()
724 channels->combined_count, channels->rx_count, in xgbe_print_set_channels_input()
773 if (channels->rx_count && channels->tx_count) { in xgbe_set_channels()
781 if ((channels->combined_count + channels->rx_count) > rx) { in xgbe_set_channels()
784 channels->combined_count + channels->rx_count, rx); in xgbe_set_channels()
797 rx = channels->combined_count + channels->rx_count; in xgbe_set_channels()
/Linux-v5.10/drivers/net/can/peak_canfd/
Dpeak_canfd_user.h45 struct pucan_rx_msg *rx_msg, int rx_count);
/Linux-v5.10/drivers/net/ethernet/ti/
Dcpsw_ethtool.c391 ch->rx_count = cpsw->rx_ch_num; in cpsw_get_channels()
522 if (!ch->rx_count || !ch->tx_count) in cpsw_check_ch_settings()
525 if (ch->rx_count > cpsw->data.channels || in cpsw_check_ch_settings()
609 new_pools = (chs->rx_count != cpsw->rx_ch_num) && cpsw->usage_count; in cpsw_set_channels_common()
611 ret = cpsw_update_channels_res(priv, chs->rx_count, 1, rx_handler); in cpsw_set_channels_common()

1234