Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dbmi.c159 u32 rxlen; in ath10k_bmi_read_memory() local
171 rxlen = min_t(u32, length, BMI_MAX_DATA_SIZE); in ath10k_bmi_read_memory()
175 cmd.read_mem.len = __cpu_to_le32(rxlen); in ath10k_bmi_read_memory()
178 &resp, &rxlen); in ath10k_bmi_read_memory()
185 memcpy(buffer, resp.read_mem.payload, rxlen); in ath10k_bmi_read_memory()
186 address += rxlen; in ath10k_bmi_read_memory()
187 buffer += rxlen; in ath10k_bmi_read_memory()
188 length -= rxlen; in ath10k_bmi_read_memory()
/linux-6.1.9/drivers/net/ethernet/allwinner/
Dsun4i-emac.c249 int rxlen = req->count; in emac_dma_done_callback() local
252 dma_unmap_single(db->dev, req->rxbuf, rxlen, DMA_FROM_DEVICE); in emac_dma_done_callback()
256 dev->stats.rx_bytes += rxlen; in emac_dma_done_callback()
624 u32 rxhdr, rxstatus, rxcount, rxlen; in emac_rx() local
692 rxlen = EMAC_RX_IO_DATA_LEN(rxhdr); in emac_rx()
697 rxstatus, rxlen); in emac_rx()
700 if (rxlen < 0x40) { in emac_rx()
724 skb = netdev_alloc_skb(dev, rxlen + 4); in emac_rx()
728 rdptr = skb_put(skb, rxlen - 4); in emac_rx()
732 dev_dbg(db->dev, "RxLen %x\n", rxlen); in emac_rx()
[all …]
/linux-6.1.9/drivers/gpio/
Dgpio-virtio.c29 unsigned int rxlen; member
59 u8 txvalue, u8 *rxvalue, void *response, u32 rxlen) in _virtio_gpio_req() argument
81 sg_init_one(&res_sg, res, rxlen); in _virtio_gpio_req()
85 line->rxlen = 0; in _virtio_gpio_req()
111 if (unlikely(line->rxlen != rxlen)) { in _virtio_gpio_req()
113 rxlen, line->rxlen); in _virtio_gpio_req()
446 line->rxlen = len; in virtio_gpio_request_vq()
/linux-6.1.9/drivers/net/mctp/
Dmctp-serial.c65 unsigned int txlen, rxlen; member
278 skb = netdev_alloc_skb(dev->netdev, dev->rxlen); in mctp_serial_rx()
285 skb_put_data(skb, dev->rxbuf, dev->rxlen); in mctp_serial_rx()
293 dev->netdev->stats.rx_bytes += dev->rxlen; in mctp_serial_rx()
317 dev->rxlen = c; in mctp_serial_push_header()
342 dev->rxlen = 0; in mctp_serial_push_trailer()
371 if (dev->rxpos == dev->rxlen) { in mctp_serial_push()
/linux-6.1.9/drivers/media/dvb-frontends/
Ddibx000_common.c143 u16 rxlen = msg->len, len; in dibx000_master_i2c_read() local
145 while (rxlen) { in dibx000_master_i2c_read()
146 len = rxlen > 8 ? 8 : rxlen; in dibx000_master_i2c_read()
156 if (rxlen == msg->len) in dibx000_master_i2c_read()
159 if (rxlen-len == 0) in dibx000_master_i2c_read()
166 rxlen -= len; in dibx000_master_i2c_read()
/linux-6.1.9/drivers/media/usb/dvb-usb/
Dtechnisat-usb2.c85 u8 device_addr, u8 *tx, u8 txlen, u8 *rx, u8 rxlen) in technisat_usb2_i2c_access() argument
103 if (rxlen > 62) { in technisat_usb2_i2c_access()
106 rxlen = 62; in technisat_usb2_i2c_access()
113 b[0] |= rxlen; in technisat_usb2_i2c_access()
148 memcpy(rx, &b[2], rxlen); in technisat_usb2_i2c_access()
150 deb_i2c("rx (%d): ", rxlen); in technisat_usb2_i2c_access()
151 debug_dump(rx, rxlen, deb_i2c); in technisat_usb2_i2c_access()
Ddib0700.h61 u8 rxlen);
Ddib0700_core.c71 int dib0700_ctrl_rd(struct dvb_usb_device *d, u8 *tx, u8 txlen, u8 *rx, u8 rxlen) in dib0700_ctrl_rd() argument
96 USB_TYPE_VENDOR | USB_DIR_IN, value, index, rx, rxlen, in dib0700_ctrl_rd()
103 debug_dump(rx, rxlen, deb_data); in dib0700_ctrl_rd()
/linux-6.1.9/drivers/net/wireless/zydas/
Dzd1201.c223 zd->rxlen = urb->actual_length; in zd1201_usbrx()
292 zd->rxlen = 0; in zd1201_usbrx()
296 if (copylen+zd->rxlen > sizeof(zd->rxdata)) in zd1201_usbrx()
298 memcpy(zd->rxdata+zd->rxlen, data+i+4, copylen); in zd1201_usbrx()
299 zd->rxlen += copylen; in zd1201_usbrx()
403 zd->rxlen = 0; in zd1201_usbrx()
426 if (!zd->rxlen) in zd1201_getconfig()
432 if (length > zd->rxlen) in zd1201_getconfig()
433 length = zd->rxlen-6; in zd1201_getconfig()
442 riddatalen, zd->rxlen, length, rid, rid_fid); in zd1201_getconfig()
[all …]
Dzd1201.h35 int rxlen; member
/linux-6.1.9/drivers/net/ethernet/davicom/
Ddm9051.c72 __le16 rxlen; member
746 int ret, rxlen; in dm9051_loop_rx() local
767 rxlen = le16_to_cpu(db->rxhdr.rxlen); in dm9051_loop_rx()
768 if (db->rxhdr.status & RSR_ERR_BITS || rxlen > DM9051_PKT_MAX) { in dm9051_loop_rx()
779 rxlen, DM9051_PKT_MAX); in dm9051_loop_rx()
784 skb = dev_alloc_skb(rxlen); in dm9051_loop_rx()
786 ret = dm9051_dumpblk(db, DM_SPI_MRCMD, rxlen); in dm9051_loop_rx()
792 rdptr = skb_put(skb, rxlen - 4); in dm9051_loop_rx()
793 ret = dm9051_read_mem(db, DM_SPI_MRCMD, rdptr, rxlen); in dm9051_loop_rx()
810 db->ndev->stats.rx_bytes += rxlen; in dm9051_loop_rx()
/linux-6.1.9/drivers/tty/serial/
Dmax310x.c664 static void max310x_handle_rx(struct uart_port *port, unsigned int rxlen) in max310x_handle_rx() argument
682 max310x_batch_read(port, one->rx_buf, rxlen); in max310x_handle_rx()
684 port->icount.rx += rxlen; in max310x_handle_rx()
693 for (i = 0; i < (rxlen - 1); ++i) in max310x_handle_rx()
702 one->rx_buf[rxlen-1], flag); in max310x_handle_rx()
705 if (unlikely(rxlen >= port->fifosize)) { in max310x_handle_rx()
709 rxlen = port->fifosize; in max310x_handle_rx()
712 while (rxlen--) { in max310x_handle_rx()
813 unsigned int ists, lsr, rxlen; in max310x_port_irq() local
817 rxlen = max310x_port_read(port, MAX310X_RXFIFOLVL_REG); in max310x_port_irq()
[all …]
Dsc16is7xx.c387 static void sc16is7xx_fifo_read(struct uart_port *port, unsigned int rxlen) in sc16is7xx_fifo_read() argument
394 regmap_raw_read(s->regmap, addr, s->buf, rxlen); in sc16is7xx_fifo_read()
577 static void sc16is7xx_handle_rx(struct uart_port *port, unsigned int rxlen, in sc16is7xx_handle_rx() argument
584 if (unlikely(rxlen >= sizeof(s->buf))) { in sc16is7xx_handle_rx()
587 port->line, rxlen); in sc16is7xx_handle_rx()
590 rxlen = sizeof(s->buf); in sc16is7xx_handle_rx()
593 while (rxlen) { in sc16is7xx_handle_rx()
606 sc16is7xx_fifo_read(port, rxlen); in sc16is7xx_handle_rx()
607 bytes_read = rxlen; in sc16is7xx_handle_rx()
649 rxlen -= bytes_read; in sc16is7xx_handle_rx()
[all …]
/linux-6.1.9/drivers/net/ethernet/vertexcom/
Dmse102x.c308 unsigned int rxlen; in mse102x_rx_pkt_spi() local
338 rxlen = cmd_resp & LEN_MASK; in mse102x_rx_pkt_spi()
339 if (!rxlen) { in mse102x_rx_pkt_spi()
345 rxalign = ALIGN(rxlen + DET_SOF_LEN + DET_DFT_LEN, 4); in mse102x_rx_pkt_spi()
354 rxpkt = skb_put(skb, rxlen) - DET_SOF_LEN; in mse102x_rx_pkt_spi()
355 if (mse102x_rx_frame_spi(mse, rxpkt, rxlen)) { in mse102x_rx_pkt_spi()
368 mse->ndev->stats.rx_bytes += rxlen; in mse102x_rx_pkt_spi()
/linux-6.1.9/drivers/net/ethernet/micrel/
Dks8851_common.c256 unsigned rxlen; in ks8851_rx_pkts() local
277 rxlen = ks8851_rdreg16(ks, KS_RXFHBCR) & RXFHBCR_CNT_MASK; in ks8851_rx_pkts()
280 "rx: stat 0x%04x, len 0x%04x\n", rxstat, rxlen); in ks8851_rx_pkts()
290 if (rxlen > 4) { in ks8851_rx_pkts()
293 rxlen -= 4; in ks8851_rx_pkts()
294 rxalign = ALIGN(rxlen, 4); in ks8851_rx_pkts()
304 rxpkt = skb_put(skb, rxlen) - 8; in ks8851_rx_pkts()
315 ks->netdev->stats.rx_bytes += rxlen; in ks8851_rx_pkts()
/linux-6.1.9/drivers/spi/
Dspi-ti-qspi.c318 u8 rxlen, rx_wlen; in qspi_read_msg() local
349 rxlen = QSPI_WLEN_MAX_BYTES; in qspi_read_msg()
351 rxlen = min(count, 4); in qspi_read_msg()
353 rx_wlen = rxlen << 3; in qspi_read_msg()
358 rxlen = wlen; in qspi_read_msg()
404 rxbuf += rxlen; in qspi_read_msg()
405 count -= rxlen; in qspi_read_msg()
/linux-6.1.9/drivers/gpu/drm/mcde/
Dmcde_dsi.c217 size_t rxlen = msg->rx_len; in mcde_dsi_execute_transfer() local
279 if (rdsz < rxlen) { in mcde_dsi_execute_transfer()
281 rxlen, rdsz); in mcde_dsi_execute_transfer()
285 for (i = 0; i < 4 && i < rxlen; i++) in mcde_dsi_execute_transfer()
300 size_t rxlen = msg->rx_len; in mcde_dsi_host_transfer() local
311 if (rxlen > 4) { in mcde_dsi_host_transfer()
319 msg->channel, txlen, rxlen); in mcde_dsi_host_transfer()
/linux-6.1.9/drivers/net/ethernet/dec/tulip/
Ddmfe.c948 int rxlen; in dmfe_rx_packet() local
971 rxlen = ( (rdes0 >> 16) & 0x3fff) - 4; in dmfe_rx_packet()
986 ((db->cr6_data & CR6_PM) && (rxlen>6)) ) { in dmfe_rx_packet()
991 (cal_CRC(skb->data, rxlen, 1) != in dmfe_rx_packet()
992 (*(u32 *) (skb->data+rxlen) ))) { /* FIXME (?) */ in dmfe_rx_packet()
999 if ((rxlen < RX_COPY_SIZE) && in dmfe_rx_packet()
1000 ((newskb = netdev_alloc_skb(dev, rxlen + 2)) in dmfe_rx_packet()
1007 skb_put(skb, rxlen), in dmfe_rx_packet()
1008 rxlen); in dmfe_rx_packet()
1011 skb_put(skb, rxlen); in dmfe_rx_packet()
[all …]
Duli526x.c806 int rxlen; in uli526x_rx_packet() local
830 rxlen = ( (rdes0 >> 16) & 0x3fff) - 4; in uli526x_rx_packet()
845 ((db->cr6_data & CR6_PM) && (rxlen>6)) ) { in uli526x_rx_packet()
852 if ((rxlen < RX_COPY_SIZE) && in uli526x_rx_packet()
853 (((new_skb = netdev_alloc_skb(dev, rxlen + 2)) != NULL))) { in uli526x_rx_packet()
859 rxlen); in uli526x_rx_packet()
862 skb_put(skb, rxlen); in uli526x_rx_packet()
867 dev->stats.rx_bytes += rxlen; in uli526x_rx_packet()
/linux-6.1.9/drivers/video/backlight/
Dhx8357.c215 u8 *rxbuf, u16 rxlen) in hx8357_spi_write_then_read() argument
246 if (rxlen) { in hx8357_spi_write_then_read()
247 xfer[1].len = rxlen; in hx8357_spi_write_then_read()
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dsdio.c475 uint rxlen; /* Length of valid data in buffer */ member
1836 bus->rxlen = len - doff; in brcmf_sdio_read_control()
2532 bus->rxlen = 0; in brcmf_sdio_bus_stop()
3248 uint rxlen = 0; in brcmf_sdio_bus_rxctl() local
3260 timeleft = brcmf_sdio_dcmd_resp_wait(bus, &bus->rxlen, &pending); in brcmf_sdio_bus_rxctl()
3263 rxlen = bus->rxlen; in brcmf_sdio_bus_rxctl()
3264 memcpy(msg, bus->rxctl, min(msglen, rxlen)); in brcmf_sdio_bus_rxctl()
3268 bus->rxlen = 0; in brcmf_sdio_bus_rxctl()
3272 if (rxlen) { in brcmf_sdio_bus_rxctl()
3274 rxlen, msglen); in brcmf_sdio_bus_rxctl()
[all …]
/linux-6.1.9/drivers/net/ethernet/sis/
Dsis900.h36 rxlen=0x3c, //Receive Packet Length Register enumerator
/linux-6.1.9/drivers/net/wireless/ath/ar5523/
Dar5523.c542 u32 rxlen; in ar5523_data_rx_cb() local
574 rxlen = be32_to_cpu(desc->len); in ar5523_data_rx_cb()
575 if (rxlen > ar->rxbufsz) { in ar5523_data_rx_cb()
581 if (!rxlen) { in ar5523_data_rx_cb()
593 skb_put(data->skb, rxlen - sizeof(struct ar5523_rx_desc)); in ar5523_data_rx_cb()
/linux-6.1.9/drivers/gpu/drm/vc4/
Dvc4_dsi.c1272 u32 rxlen = VC4_GET_FIELD(rxpkt1h, in vc4_dsi_host_transfer() local
1275 if (rxlen != msg->rx_len) { in vc4_dsi_host_transfer()
1277 rxlen, (int)msg->rx_len); in vc4_dsi_host_transfer()
/linux-6.1.9/drivers/input/touchscreen/
Dwdt87xx_i2c.c189 void *rxdata, size_t rxlen) in wdt87xx_i2c_xfer() argument
201 .len = rxlen, in wdt87xx_i2c_xfer()

12