Home
last modified time | relevance | path

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

123

/drivers/bluetooth/
Dhci_ll.c81 unsigned long rx_count; member
361 ll->rx_count = len; in ll_check_data_len()
367 ll->rx_count = 0; in ll_check_data_len()
382 BT_DBG("hu %p count %d rx_state %ld rx_count %ld", hu, count, ll->rx_state, ll->rx_count); in ll_recv()
386 if (ll->rx_count) { in ll_recv()
387 len = min_t(unsigned int, ll->rx_count, count); in ll_recv()
389 ll->rx_count -= len; count -= len; ptr += len; in ll_recv()
391 if (ll->rx_count) in ll_recv()
435 ll->rx_count = HCI_EVENT_HDR_SIZE; in ll_recv()
442 ll->rx_count = HCI_ACL_HDR_SIZE; in ll_recv()
[all …]
Dhci_bcsp.c63 unsigned long rx_count; member
442 bcsp->rx_count--; in bcsp_unslip_one_byte()
454 bcsp->rx_count--; in bcsp_unslip_one_byte()
463 bcsp->rx_count--; in bcsp_unslip_one_byte()
471 bcsp->rx_count = 0; in bcsp_unslip_one_byte()
561 hu, count, bcsp->rx_state, bcsp->rx_count); in bcsp_recv()
565 if (bcsp->rx_count) { in bcsp_recv()
571 bcsp->rx_count = 0; in bcsp_recv()
587 bcsp->rx_count = 0; in bcsp_recv()
597 bcsp->rx_count = 0; in bcsp_recv()
[all …]
Dbtuart_cs.c76 unsigned long rx_count; member
193 info->rx_count = 0; in btuart_receive()
209 info->rx_count = HCI_EVENT_HDR_SIZE; in btuart_receive()
214 info->rx_count = HCI_ACL_HDR_SIZE; in btuart_receive()
219 info->rx_count = HCI_SCO_HDR_SIZE; in btuart_receive()
236 info->rx_count--; in btuart_receive()
238 if (info->rx_count == 0) { in btuart_receive()
251 info->rx_count = eh->plen; in btuart_receive()
258 info->rx_count = dlen; in btuart_receive()
264 info->rx_count = sh->dlen; in btuart_receive()
[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()
286 info->rx_count--; in bt3c_receive()
288 if (info->rx_count == 0) { in bt3c_receive()
300 info->rx_count = eh->plen; in bt3c_receive()
307 info->rx_count = dlen; in bt3c_receive()
313 info->rx_count = sh->dlen; in bt3c_receive()
[all …]
Dbluecard_cs.c76 unsigned long rx_count; member
395 info->rx_count = 0; in bluecard_receive()
424 info->rx_count = HCI_EVENT_HDR_SIZE; in bluecard_receive()
429 info->rx_count = HCI_ACL_HDR_SIZE; in bluecard_receive()
434 info->rx_count = HCI_SCO_HDR_SIZE; in bluecard_receive()
451 info->rx_count--; in bluecard_receive()
453 if (info->rx_count == 0) { in bluecard_receive()
465 info->rx_count = eh->plen; in bluecard_receive()
472 info->rx_count = dlen; in bluecard_receive()
478 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()
273 info->rx_count = NSHL; in dtl1_receive()
445 info->rx_count = NSHL; in dtl1_open()
/drivers/misc/ti-st/
Dst_core.c190 st_gdata->rx_count = len; in st_check_data_len()
198 st_gdata->rx_count = 0; in st_check_data_len()
258 st_gdata->rx_count); in st_int_recv()
263 if (st_gdata->rx_count) { in st_int_recv()
264 len = min_t(unsigned int, st_gdata->rx_count, count); in st_int_recv()
266 st_gdata->rx_count -= len; in st_int_recv()
270 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()
787 st_gdata->rx_count = 0; in st_tty_close()
Dst_kim.c84 kim_gdata->rx_count = 0; in validate_firmware_response()
119 kim_gdata->rx_count = len; in kim_check_data_len()
127 kim_gdata->rx_count = 0; in kim_check_data_len()
154 if (kim_gdata->rx_count) { in kim_int_recv()
155 len = min_t(unsigned int, kim_gdata->rx_count, count); in kim_int_recv()
157 kim_gdata->rx_count -= len; in kim_int_recv()
161 if (kim_gdata->rx_count) in kim_int_recv()
186 kim_gdata->rx_count = 2; in kim_int_recv()
202 kim_gdata->rx_count = 0; in kim_int_recv()
/drivers/spi/
Dspi-au1550.c57 unsigned rx_count; member
323 hw->rx_count = 0; in au1550_spi_dma_txrxb()
418 return hw->rx_count < hw->tx_count ? hw->rx_count : hw->tx_count; in au1550_spi_dma_txrxb()
447 hw->rx_count = hw->len - au1xxx_get_dma_residue(hw->dma_rx_ch); in au1550_spi_dma_irq_callback()
469 hw->rx_count = hw->len; in au1550_spi_dma_irq_callback()
487 hw->rx_count += (size) / 8; \
521 hw->rx_count = 0; in au1550_spi_pio_txrxb()
552 return hw->rx_count < hw->tx_count ? hw->rx_count : hw->tx_count; in au1550_spi_pio_txrxb()
603 if (!(stat & PSC_SPISTAT_RE) && hw->rx_count < hw->len) { in au1550_spi_pio_irq_callback()
637 if (hw->rx_count >= hw->len) { in au1550_spi_pio_irq_callback()
Dspi-img-spfi.c254 unsigned int tx_count, rx_count; in img_spfi_start_pio() local
262 rx_count = spfi_pio_read32(spfi, rx_buf, rx_bytes); in img_spfi_start_pio()
264 rx_count = spfi_pio_read8(spfi, rx_buf, rx_bytes); in img_spfi_start_pio()
267 rx_buf += rx_count; in img_spfi_start_pio()
269 rx_bytes -= rx_count; in img_spfi_start_pio()
Dspi-fsl-dspi.c318 int rx_count = 0; in dspi_eoq_read() local
322 && (rx_count < DSPI_FIFO_SIZE)) { in dspi_eoq_read()
327 rx_count++; in dspi_eoq_read()
330 return rx_count; in dspi_eoq_read()
/drivers/staging/octeon/
Dethernet-rx.c170 int rx_count = 0; in cvm_oct_napi_poll() local
200 while (rx_count < budget) { in cvm_oct_napi_poll()
234 if (USE_ASYNC_IOBDMA && rx_count < (budget - 1)) { in cvm_oct_napi_poll()
239 rx_count++; in cvm_oct_napi_poll()
436 if (rx_count < budget && napi != NULL) { in cvm_oct_napi_poll()
441 return rx_count; in cvm_oct_napi_poll()
/drivers/net/hamradio/
D6pack.c100 unsigned int rx_count; member
514 sp->rx_count = 0; in resync_tnc()
612 sp->rx_count = 0; in sixpack_open()
871 if (sp->rx_count != 3) { in decode_data()
872 sp->raw_buf[sp->rx_count++] = inbyte; in decode_data()
879 sp->rx_count = 0; in decode_data()
890 sp->rx_count = 0; in decode_data()
960 if ((sp->rx_count == 0) && (sp->rx_count_cooked == 0)) { in decode_std_command()
970 rest = sp->rx_count; in decode_std_command()
Ddmascc.c208 int rx_head, rx_tail, rx_count; member
749 priv->rx_head = priv->rx_tail = priv->rx_count = 0; in scc_open()
1226 if (priv->rx_count < NUM_RX_BUF - 1) { in special_condition()
1232 priv->rx_count++; in special_condition()
1264 while (priv->rx_count) { in rx_bh()
1285 priv->rx_count--; in rx_bh()
/drivers/tty/
Dehv_bytechan.c206 unsigned int rx_count, tx_count; in udbg_init_ehv_bc() local
211 &rx_count, &tx_count); in udbg_init_ehv_bc()
354 unsigned int rx_count, tx_count, len; in ehv_bc_tty_rx_isr() local
363 ev_byte_channel_poll(bc->handle, &rx_count, &tx_count); in ehv_bc_tty_rx_isr()
364 count = tty_buffer_request_room(&bc->port, rx_count); in ehv_bc_tty_rx_isr()
/drivers/net/ethernet/wiznet/
Dw5300.c392 int rx_count; in w5300_napi_poll() local
395 for (rx_count = 0; rx_count < budget; rx_count++) { in w5300_napi_poll()
420 if (rx_count < budget) { in w5300_napi_poll()
426 return rx_count; in w5300_napi_poll()
Dw5100.c465 int rx_count; in w5100_napi_poll() local
470 for (rx_count = 0; rx_count < budget; rx_count++) { in w5100_napi_poll()
500 if (rx_count < budget) { in w5100_napi_poll()
506 return rx_count; in w5100_napi_poll()
/drivers/usb/musb/
Dmusb_host.c470 u16 rx_count; in musb_host_packet_rx() local
483 rx_count = musb_readw(epio, MUSB_RXCOUNT); in musb_host_packet_rx()
484 dev_dbg(musb->controller, "RX%d count %d, buffer %p len %d/%d\n", epnum, rx_count, in musb_host_packet_rx()
501 if (rx_count > length) { in musb_host_packet_rx()
506 dev_dbg(musb->controller, "** OVERFLOW %d into %d\n", rx_count, length); in musb_host_packet_rx()
509 length = rx_count; in musb_host_packet_rx()
521 if (rx_count > length) { in musb_host_packet_rx()
524 dev_dbg(musb->controller, "** OVERFLOW %d into %d\n", rx_count, length); in musb_host_packet_rx()
527 length = rx_count; in musb_host_packet_rx()
533 || (rx_count < qh->maxpacket) in musb_host_packet_rx()
[all …]
/drivers/staging/unisys/visornic/
Dvisornic_main.c1165 int rx_count = 0; in visornic_rx() local
1197 return rx_count; in visornic_rx()
1216 return rx_count; in visornic_rx()
1231 return rx_count; in visornic_rx()
1250 return rx_count; in visornic_rx()
1333 return rx_count; in visornic_rx()
1336 rx_count++; in visornic_rx()
1349 return rx_count; in visornic_rx()
1709 int rx_count = 0; in visornic_poll() local
1712 service_resp_queue(devdata->cmdrsp, devdata, &rx_count); in visornic_poll()
[all …]
/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c627 channel->rx_count = nic->rx_queues; in nicvf_get_channels()
640 if (!channel->rx_count || !channel->tx_count) in nicvf_set_channels()
642 if (channel->rx_count > nic->max_queues) in nicvf_set_channels()
650 cqcount = max(channel->rx_count, channel->tx_count); in nicvf_set_channels()
659 nic->qs->rq_cnt = min_t(u32, channel->rx_count, MAX_RCV_QUEUES_PER_QS); in nicvf_set_channels()
663 nic->rx_queues = channel->rx_count; in nicvf_set_channels()
/drivers/staging/rtl8188eu/core/
Drtw_debug.c912 if (pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_24G].rx_count) { in proc_get_best_channel()
923 (pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_5G].rx_count)) { in proc_get_best_channel()
933 (pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_5G].rx_count)) { in proc_get_best_channel()
940 pmlmeext->channel_set[i].ChannelNum, pmlmeext->channel_set[i].rx_count); in proc_get_best_channel()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c223 channel->rx_count = bp->rx_nr_rings; in bnxt_get_channels()
235 !channel->rx_count || !channel->tx_count) in bnxt_set_channels()
243 if (channel->rx_count > max_rx_rings || in bnxt_set_channels()
261 bp->rx_nr_rings = channel->rx_count; in bnxt_set_channels()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ethtool.c720 channel->rx_count = adapter->drv_sds_rings; in qlcnic_get_channels()
738 err = qlcnic_validate_ring_count(adapter, channel->rx_count, in qlcnic_set_channels()
743 if (adapter->drv_sds_rings != channel->rx_count) { in qlcnic_set_channels()
744 err = qlcnic_validate_rings(adapter, channel->rx_count, in qlcnic_set_channels()
748 channel->rx_count); in qlcnic_set_channels()
751 adapter->drv_rss_rings = channel->rx_count; in qlcnic_set_channels()
/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c164 u32 max_rx = 0, max_tx = 0, tx_count = 0, rx_count = 0; in lio_ethtool_get_channels() local
171 rx_count = CFG_GET_NUM_RXQS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_channels()
177 channel->rx_count = rx_count; in lio_ethtool_get_channels()
/drivers/net/ethernet/ibm/emac/
Dmal.h291 u32 rx_count; member

123