Home
last modified time | relevance | path

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

1234

/Linux-v5.15/drivers/spi/
Dspi-dln2.c192 unsigned rx_len = sizeof(rx); in dln2_spi_get_cs_num() local
196 &rx, &rx_len); in dln2_spi_get_cs_num()
199 if (rx_len < sizeof(rx)) in dln2_spi_get_cs_num()
218 unsigned rx_len = sizeof(rx); in dln2_spi_get_speed() local
222 ret = dln2_transfer(dln2->pdev, cmd, &tx, sizeof(tx), &rx, &rx_len); in dln2_spi_get_speed()
225 if (rx_len < sizeof(rx)) in dln2_spi_get_speed()
268 int rx_len = sizeof(rx); in dln2_spi_set_speed() local
274 &rx, &rx_len); in dln2_spi_set_speed()
277 if (rx_len < sizeof(rx)) in dln2_spi_set_speed()
327 unsigned rx_len = sizeof(*rx); in dln2_spi_get_supported_frame_sizes() local
[all …]
Dspi-bcm2835aux.c97 int rx_len; member
160 int count = min(bs->rx_len, 3); in bcm2835aux_rd_fifo()
176 bs->rx_len -= count; in bcm2835aux_rd_fifo()
222 for (; bs->rx_len && (stat & BCM2835_AUX_SPI_STAT_RX_LVL); in bcm2835aux_spi_transfer_helper()
255 if (!bs->rx_len) { in bcm2835aux_spi_interrupt()
321 while (bs->rx_len) { in bcm2835aux_spi_transfer_one_poll()
327 if (bs->rx_len && time_after(jiffies, timeout)) { in bcm2835aux_spi_transfer_one_poll()
331 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll()
383 bs->rx_len = tfr->len; in bcm2835aux_spi_transfer_one()
Dspi-amd.c174 u32 tx_len = 0, rx_len = 0; in amd_spi_fifo_xfer() local
207 rx_len = xfer->len; in amd_spi_fifo_xfer()
209 amd_spi_set_rx_count(master, rx_len); in amd_spi_fifo_xfer()
214 for (i = 0; i < rx_len; i++) in amd_spi_fifo_xfer()
222 message->actual_length = tx_len + rx_len + 1; in amd_spi_fifo_xfer()
Dspi-mpc512x-psc.c155 size_t rx_len = t->len; in mpc512x_psc_spi_transfer_rxtx() local
162 while (rx_len || tx_len) { in mpc512x_psc_spi_transfer_rxtx()
217 rxcount = min(fifosz, rx_len); in mpc512x_psc_spi_transfer_rxtx()
222 rx_len--; in mpc512x_psc_spi_transfer_rxtx()
233 if (!rx_len) in mpc512x_psc_spi_transfer_rxtx()
264 if (!tx_len && rx_len && !rxtries) { in mpc512x_psc_spi_transfer_rxtx()
272 rx_len, rxcount); in mpc512x_psc_spi_transfer_rxtx()
280 if (!tx_len && !rx_len) { in mpc512x_psc_spi_transfer_rxtx()
Dspi-dw-core.c126 rxtx_gap = dws->fifo_len - (dws->rx_len - dws->tx_len); in tx_max()
134 return min_t(u32, dws->rx_len, dw_readl(dws, DW_SPI_RXFLR)); in rx_max()
175 --dws->rx_len; in dw_reader()
232 if (!dws->rx_len) { in dw_spi_transfer_handler()
235 } else if (dws->rx_len <= dw_readl(dws, DW_SPI_RXFTLR)) { in dw_spi_transfer_handler()
236 dw_writel(dws, DW_SPI_RXFTLR, dws->rx_len - 1); in dw_spi_transfer_handler()
394 delay.value = nbits * (dws->rx_len - dws->tx_len); in dw_spi_poll_transfer()
402 } while (dws->rx_len); in dw_spi_poll_transfer()
423 dws->rx_len = dws->tx_len; in dw_spi_transfer_one()
529 dws->rx_len = op->data.nbytes; in dw_spi_init_mem_buf()
[all …]
Dspi-stm32.c306 int rx_len; member
550 if ((spi->rx_len > 0) && (readl_relaxed(spi->base + STM32F4_SPI_SR) & in stm32f4_spi_read_rx()
552 u32 offs = spi->cur_xferlen - spi->rx_len; in stm32f4_spi_read_rx()
558 spi->rx_len -= sizeof(u16); in stm32f4_spi_read_rx()
563 spi->rx_len -= sizeof(u8); in stm32f4_spi_read_rx()
567 dev_dbg(spi->dev, "%s: %d bytes left\n", __func__, spi->rx_len); in stm32f4_spi_read_rx()
582 while ((spi->rx_len > 0) && in stm32h7_spi_read_rxfifo()
586 u32 offs = spi->cur_xferlen - spi->rx_len; in stm32h7_spi_read_rxfifo()
588 if ((spi->rx_len >= sizeof(u32)) || in stm32h7_spi_read_rxfifo()
593 spi->rx_len -= sizeof(u32); in stm32h7_spi_read_rxfifo()
[all …]
Dspi-bcm2835.c127 int rx_len; member
217 while ((bs->rx_len) && in bcm2835_rd_fifo()
222 bs->rx_len--; in bcm2835_rd_fifo()
253 bs->rx_len -= count; in bcm2835_rd_fifo_count()
317 count = min(count, bs->rx_len); in bcm2835_rd_fifo_blind()
318 bs->rx_len -= count; in bcm2835_rd_fifo_blind()
392 if (!bs->rx_len) { in bcm2835_spi_interrupt()
1013 while (bs->rx_len) { in bcm2835_spi_transfer_one_poll()
1023 if (bs->rx_len && time_after(jiffies, timeout)) { in bcm2835_spi_transfer_one_poll()
1027 bs->tx_len, bs->rx_len); in bcm2835_spi_transfer_one_poll()
[all …]
Dspi-xlp.c96 int rx_len; /* rx xfer length */ member
191 nbytes = min(xspi->rx_len, 4); in xlp_spi_read_rxfifo()
195 xspi->rx_len -= nbytes; in xlp_spi_read_rxfifo()
241 if (xspi->rx_len) in xlp_spi_interrupt()
280 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
Dspi-mt7621.c157 int rx_len, u8 *buf) in mt7621_spi_read_half_duplex() argument
169 while (rx_len || tx_len) { in mt7621_spi_read_half_duplex()
172 int rx = min(rx_len, 32); in mt7621_spi_read_half_duplex()
194 rx_len -= i; in mt7621_spi_read_half_duplex()
Dspi-hisi-kunpeng.c136 unsigned int rx_len; member
226 u32 max = min_t(u32, hs->rx_len, hs->fifo_len); in hisi_spi_reader()
246 --hs->rx_len; in hisi_spi_reader()
359 if (!hs->rx_len) in hisi_spi_irq()
395 hs->rx_len = hs->tx_len; in hisi_spi_transfer_one()
/Linux-v5.15/drivers/misc/
Dlattice-ecp3-config.c72 int rx_len = 8; in firmware_load() local
94 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
112 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
145 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
168 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
/Linux-v5.15/net/nfc/nci/
Dspi.c179 unsigned short rx_len = 0; in __nci_spi_read() local
205 rx_len = ((resp_hdr[0] & NCI_SPI_MSB_PAYLOAD_MASK) << 8) + in __nci_spi_read()
208 rx_len = (resp_hdr[0] << 8) | resp_hdr[1]; in __nci_spi_read()
210 skb = nci_skb_alloc(nspi->ndev, rx_len, GFP_KERNEL); in __nci_spi_read()
217 rx.rx_buf = skb_put(skb, rx_len); in __nci_spi_read()
218 rx.len = rx_len; in __nci_spi_read()
/Linux-v5.15/drivers/staging/rtl8192e/rtl8192e/
Drtl_eeprom.c42 int rx_len = 16; in _rtl92e_eeprom_xfer() local
55 while (rx_len--) { in _rtl92e_eeprom_xfer()
57 ret |= _rtl92e_gpio_get_bit(dev, EPROM_R_BIT) << rx_len; in _rtl92e_eeprom_xfer()
/Linux-v5.15/include/linux/dma/
Dqcom-gpi-dma.h46 u32 rx_len; member
78 u32 rx_len; member
/Linux-v5.15/drivers/net/wireless/ath/ath6kl/
Dbmi.c119 u32 len_remain, rx_len; in ath6kl_bmi_read() local
141 rx_len = (len_remain < ar->bmi.max_data_size) ? in ath6kl_bmi_read()
148 memcpy(&(ar->bmi.cmd_buf[offset]), &rx_len, sizeof(rx_len)); in ath6kl_bmi_read()
157 ret = ath6kl_hif_bmi_read(ar, ar->bmi.cmd_buf, rx_len); in ath6kl_bmi_read()
163 memcpy(&buf[len - len_remain], ar->bmi.cmd_buf, rx_len); in ath6kl_bmi_read()
164 len_remain -= rx_len; addr += rx_len; in ath6kl_bmi_read()
/Linux-v5.15/drivers/gpu/drm/bridge/
Dnwl-dsi.c62 size_t rx_len; /* in bytes */ member
408 if (xfer->msg->rx_len > 1) { in nwl_dsi_read_packet()
411 ++xfer->rx_len; in nwl_dsi_read_packet()
416 if (xfer->msg->rx_len > 0) { in nwl_dsi_read_packet()
419 ++xfer->rx_len; in nwl_dsi_read_packet()
421 xfer->status = xfer->rx_len; in nwl_dsi_read_packet()
431 if (word_count > xfer->msg->rx_len) { in nwl_dsi_read_packet()
434 xfer->cmd, xfer->msg->rx_len, word_count); in nwl_dsi_read_packet()
457 xfer->rx_len += 4; in nwl_dsi_read_packet()
466 ++xfer->rx_len; in nwl_dsi_read_packet()
[all …]
/Linux-v5.15/drivers/input/rmi4/
Drmi_spi.c114 int tx_len, u8 *rx_buf, int rx_len) in rmi_spi_xfer() argument
143 len = max(total_tx_len, rx_len); in rmi_spi_xfer()
209 for (i = 0; i < rx_len; i++) { in rmi_spi_xfer()
222 xfer->len = rx_len; in rmi_spi_xfer()
234 memcpy(rx_buf, rmi_spi->rx_buf, rx_len); in rmi_spi_xfer()
236 __func__, rx_len, rx_len, rx_buf); in rmi_spi_xfer()
/Linux-v5.15/drivers/net/wireless/marvell/mwifiex/
Dsdio.h147 #define MP_RX_AGGR_BUF_HAS_ROOM(a, rx_len) \ argument
148 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size)
365 u16 rx_len, u8 port) in mp_rx_aggr_setup() argument
367 card->mpa_rx.buf_len += rx_len; in mp_rx_aggr_setup()
381 card->mpa_rx.len_arr[card->mpa_rx.pkt_cnt] = rx_len; in mp_rx_aggr_setup()
Dsdio.c1702 u16 rx_len, u8 port) in mwifiex_sdio_card_to_host_mp_aggr() argument
1742 if (MP_RX_AGGR_BUF_HAS_ROOM(card, rx_len)) { in mwifiex_sdio_card_to_host_mp_aggr()
1761 if (MP_RX_AGGR_BUF_HAS_ROOM(card, rx_len)) in mwifiex_sdio_card_to_host_mp_aggr()
1775 mp_rx_aggr_setup(card, rx_len, port); in mwifiex_sdio_card_to_host_mp_aggr()
1871 port, rx_len); in mwifiex_sdio_card_to_host_mp_aggr()
1873 skb = mwifiex_alloc_dma_align_buf(rx_len, GFP_KERNEL); in mwifiex_sdio_card_to_host_mp_aggr()
1877 "drop pkt port=%d len=%d\n", port, rx_len); in mwifiex_sdio_card_to_host_mp_aggr()
1879 card->mpa_rx.buf, rx_len, in mwifiex_sdio_card_to_host_mp_aggr()
1885 skb_put(skb, rx_len); in mwifiex_sdio_card_to_host_mp_aggr()
1906 mp_rx_aggr_setup(card, rx_len, port); in mwifiex_sdio_card_to_host_mp_aggr()
[all …]
/Linux-v5.15/drivers/net/wireless/
Dray_cs.c99 unsigned int pkt_addr, int rx_len);
104 unsigned int pkt_addr, int rx_len);
106 unsigned int pkt_addr, int rx_len);
2040 int rx_len; in ray_rx() local
2049 rx_len = (readb(&prcs->var.rx_packet.rx_data_length[0]) << 8) in ray_rx()
2057 rx_data(dev, prcs, pkt_addr, rx_len); in ray_rx()
2062 rx_data(dev, prcs, pkt_addr, rx_len); in ray_rx()
2064 rx_authenticate(local, prcs, pkt_addr, rx_len); in ray_rx()
2069 rx_data(dev, prcs, pkt_addr, rx_len); in ray_rx()
2071 rx_deauthenticate(local, prcs, pkt_addr, rx_len); in ray_rx()
[all …]
/Linux-v5.15/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c233 u16 rx_len; member
970 xfer, length, xfer->tx_done, xfer->rx_len, xfer->rx_done); in exynos_dsi_send_to_fifo()
1036 if (xfer->rx_len >= 2) { in exynos_dsi_read_from_fifo()
1045 xfer->rx_len = xfer->rx_done; in exynos_dsi_read_from_fifo()
1056 if (length > xfer->rx_len) { in exynos_dsi_read_from_fifo()
1059 xfer->rx_len, length); in exynos_dsi_read_from_fifo()
1060 length = xfer->rx_len; in exynos_dsi_read_from_fifo()
1061 } else if (length < xfer->rx_len) in exynos_dsi_read_from_fifo()
1062 xfer->rx_len = length; in exynos_dsi_read_from_fifo()
1065 length = xfer->rx_len - xfer->rx_done; in exynos_dsi_read_from_fifo()
[all …]
/Linux-v5.15/drivers/input/touchscreen/
Dwdt87xx_i2c.c250 size_t rx_len = len + 2; in wdt87xx_get_string() local
253 if (rx_len > sizeof(rx_buf)) in wdt87xx_get_string()
257 rx_buf, rx_len); in wdt87xx_get_string()
269 rx_len = min_t(size_t, len, rx_buf[0]); in wdt87xx_get_string()
270 memcpy(buf, &rx_buf[2], rx_len); in wdt87xx_get_string()
283 size_t rx_len = buf_size + 2; in wdt87xx_get_feature() local
286 if (rx_len > sizeof(rx_buf)) in wdt87xx_get_feature()
303 error = wdt87xx_i2c_xfer(client, tx_buf, tx_len, rx_buf, rx_len); in wdt87xx_get_feature()
309 rx_len = min_t(size_t, buf_size, get_unaligned_le16(rx_buf)); in wdt87xx_get_feature()
310 memcpy(buf, &rx_buf[2], rx_len); in wdt87xx_get_feature()
/Linux-v5.15/drivers/i2c/busses/
Di2c-dln2.c116 unsigned rx_len = sizeof(*rx); in dln2_i2c_read() local
127 rx, &rx_len); in dln2_i2c_read()
130 if (rx_len < sizeof(rx->buf_len) + data_len) in dln2_i2c_read()
/Linux-v5.15/drivers/net/ethernet/wiznet/
Dw5300.c379 u16 rx_len; in w5300_napi_poll() local
386 rx_len = w5300_read(priv, W5300_S0_RX_FIFO); in w5300_napi_poll()
388 skb = netdev_alloc_skb_ip_align(ndev, roundup(rx_len, 2)); in w5300_napi_poll()
397 skb_put(skb, rx_len); in w5300_napi_poll()
398 w5300_read_frame(priv, skb->data, rx_len); in w5300_napi_poll()
403 ndev->stats.rx_bytes += rx_len; in w5300_napi_poll()
/Linux-v5.15/drivers/acpi/
Dacpi_ipmi.c80 u8 rx_len; member
320 buffer->length = msg->rx_len; in acpi_format_ipmi_response()
321 memcpy(buffer->data, msg->data, msg->rx_len); in acpi_format_ipmi_response()
425 tx_msg->rx_len = msg->msg.data_len; in ipmi_msg_handler()
426 memcpy(tx_msg->data, msg->msg.data, tx_msg->rx_len); in ipmi_msg_handler()

1234