/linux-6.12.1/drivers/spi/ |
D | spi-dln2.c | 193 unsigned rx_len = sizeof(rx); in dln2_spi_get_cs_num() local 197 &rx, &rx_len); in dln2_spi_get_cs_num() 200 if (rx_len < sizeof(rx)) in dln2_spi_get_cs_num() 219 unsigned rx_len = sizeof(rx); in dln2_spi_get_speed() local 223 ret = dln2_transfer(dln2->pdev, cmd, &tx, sizeof(tx), &rx, &rx_len); in dln2_spi_get_speed() 226 if (rx_len < sizeof(rx)) in dln2_spi_get_speed() 269 int rx_len = sizeof(rx); in dln2_spi_set_speed() local 275 &rx, &rx_len); in dln2_spi_set_speed() 278 if (rx_len < sizeof(rx)) in dln2_spi_set_speed() 328 unsigned rx_len = sizeof(*rx); in dln2_spi_get_supported_frame_sizes() local [all …]
|
D | spi-bcm2835aux.c | 94 int rx_len; member 157 int count = min(bs->rx_len, 3); in bcm2835aux_rd_fifo() 173 bs->rx_len -= count; in bcm2835aux_rd_fifo() 219 for (; bs->rx_len && (stat & BCM2835_AUX_SPI_STAT_RX_LVL); in bcm2835aux_spi_transfer_helper() 252 if (!bs->rx_len) { in bcm2835aux_spi_interrupt() 318 while (bs->rx_len) { in bcm2835aux_spi_transfer_one_poll() 324 if (bs->rx_len && time_after(jiffies, timeout)) { in bcm2835aux_spi_transfer_one_poll() 328 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll() 380 bs->rx_len = tfr->len; in bcm2835aux_spi_transfer_one()
|
D | spi-mpc512x-psc.c | 149 size_t rx_len = t->len; in mpc512x_psc_spi_transfer_rxtx() local 156 while (rx_len || tx_len) { in mpc512x_psc_spi_transfer_rxtx() 211 rxcount = min(fifosz, rx_len); in mpc512x_psc_spi_transfer_rxtx() 216 rx_len--; in mpc512x_psc_spi_transfer_rxtx() 227 if (!rx_len) in mpc512x_psc_spi_transfer_rxtx() 258 if (!tx_len && rx_len && !rxtries) { in mpc512x_psc_spi_transfer_rxtx() 266 rx_len, rxcount); in mpc512x_psc_spi_transfer_rxtx() 274 if (!tx_len && !rx_len) { in mpc512x_psc_spi_transfer_rxtx()
|
D | spi-microchip-core-qspi.c | 123 int rx_len; member 165 if (!qspi->rx_len) in mchp_coreqspi_read_op() 177 while (qspi->rx_len >= 4) { in mchp_coreqspi_read_op() 183 qspi->rx_len -= 4; in mchp_coreqspi_read_op() 189 while (qspi->rx_len--) { in mchp_coreqspi_read_op() 416 qspi->rx_len = 0; in mchp_coreqspi_exec_op() 427 qspi->rx_len = 0; in mchp_coreqspi_exec_op() 435 qspi->rx_len = 0; in mchp_coreqspi_exec_op() 441 qspi->rx_len = op->data.nbytes; in mchp_coreqspi_exec_op()
|
D | spi-stm32.c | 354 int rx_len; member 687 if ((spi->rx_len > 0) && (readl_relaxed(spi->base + STM32FX_SPI_SR) & in stm32f4_spi_read_rx() 689 u32 offs = spi->cur_xferlen - spi->rx_len; in stm32f4_spi_read_rx() 695 spi->rx_len -= sizeof(u16); in stm32f4_spi_read_rx() 700 spi->rx_len -= sizeof(u8); in stm32f4_spi_read_rx() 704 dev_dbg(spi->dev, "%s: %d bytes left\n", __func__, spi->rx_len); in stm32f4_spi_read_rx() 719 while ((spi->rx_len > 0) && (frlvl > 0)) { in stm32f7_spi_read_rx() 720 u32 offs = spi->cur_xferlen - spi->rx_len; in stm32f7_spi_read_rx() 722 if ((spi->rx_len >= sizeof(u16)) && (frlvl >= 2)) { in stm32f7_spi_read_rx() 726 spi->rx_len -= sizeof(u16); in stm32f7_spi_read_rx() [all …]
|
D | spi-dw-core.c | 124 rxtx_gap = dws->fifo_len - (dws->rx_len - dws->tx_len); in dw_spi_tx_max() 132 return min_t(u32, dws->rx_len, dw_readl(dws, DW_SPI_RXFLR)); in dw_spi_rx_max() 173 --dws->rx_len; in dw_reader() 230 if (!dws->rx_len) { in dw_spi_transfer_handler() 233 } else if (dws->rx_len <= dw_readl(dws, DW_SPI_RXFTLR)) { in dw_spi_transfer_handler() 234 dw_writel(dws, DW_SPI_RXFTLR, dws->rx_len - 1); in dw_spi_transfer_handler() 400 delay.value = nbits * (dws->rx_len - dws->tx_len); in dw_spi_poll_transfer() 408 } while (dws->rx_len); in dw_spi_poll_transfer() 430 dws->rx_len = dws->tx_len; in dw_spi_transfer_one() 535 dws->rx_len = op->data.nbytes; in dw_spi_init_mem_buf() [all …]
|
D | spi-microchip-core.c | 113 int rx_len; member 138 …while (spi->rx_len >= spi->n_bytes && !(mchp_corespi_read(spi, REG_STATUS) & STATUS_RXFIFO_EMPTY))… in mchp_corespi_read_fifo() 141 spi->rx_len -= spi->n_bytes; in mchp_corespi_read_fifo() 422 if (spi->rx_len) in mchp_corespi_interrupt() 426 if (!spi->rx_len && !spi->tx_len) in mchp_corespi_interrupt() 434 spi->rx_len, spi->tx_len); in mchp_corespi_interrupt() 442 spi->rx_len, spi->tx_len); in mchp_corespi_interrupt() 506 spi->rx_len = xfer->len; in mchp_corespi_transfer_one()
|
D | spi-ch341.c | 35 int rx_len; member 165 ch341->rx_len = usb_endpoint_maxp(in); in ch341_probe() 166 ch341->rx_buf = devm_kzalloc(&udev->dev, ch341->rx_len, GFP_KERNEL); in ch341_probe() 180 ch341->rx_len, ch341_recv, ch341); in ch341_probe()
|
D | spi-bcm2835.c | 131 int rx_len; member 221 while ((bs->rx_len) && in bcm2835_rd_fifo() 226 bs->rx_len--; in bcm2835_rd_fifo() 257 bs->rx_len -= count; in bcm2835_rd_fifo_count() 321 count = min(count, bs->rx_len); in bcm2835_rd_fifo_blind() 322 bs->rx_len -= count; in bcm2835_rd_fifo_blind() 400 if (!bs->rx_len) { in bcm2835_spi_interrupt() 1021 while (bs->rx_len) { in bcm2835_spi_transfer_one_poll() 1031 if (bs->rx_len && time_after(jiffies, timeout)) { in bcm2835_spi_transfer_one_poll() 1035 bs->tx_len, bs->rx_len); in bcm2835_spi_transfer_one_poll() [all …]
|
D | spi-xlp.c | 95 int rx_len; /* rx xfer length */ member 190 nbytes = min(xspi->rx_len, 4); in xlp_spi_read_rxfifo() 194 xspi->rx_len -= nbytes; in xlp_spi_read_rxfifo() 240 if (xspi->rx_len) in xlp_spi_interrupt() 279 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
|
D | spi-mt7621.c | 178 int rx_len, u8 *buf) in mt7621_spi_read_half_duplex() argument 190 while (rx_len || tx_len) { in mt7621_spi_read_half_duplex() 193 int rx = min(rx_len, 32); in mt7621_spi_read_half_duplex() 215 rx_len -= i; in mt7621_spi_read_half_duplex()
|
D | spi-hisi-kunpeng.c | 135 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-6.12.1/drivers/misc/ |
D | lattice-ecp3-config.c | 72 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-6.12.1/net/nfc/nci/ |
D | spi.c | 181 unsigned short rx_len = 0; in __nci_spi_read() local 207 rx_len = ((resp_hdr[0] & NCI_SPI_MSB_PAYLOAD_MASK) << 8) + in __nci_spi_read() 210 rx_len = (resp_hdr[0] << 8) | resp_hdr[1]; in __nci_spi_read() 212 skb = nci_skb_alloc(nspi->ndev, rx_len, GFP_KERNEL); in __nci_spi_read() 219 rx.rx_buf = skb_put(skb, rx_len); in __nci_spi_read() 220 rx.len = rx_len; in __nci_spi_read()
|
/linux-6.12.1/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_eeprom.c | 42 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-6.12.1/drivers/net/wireless/ath/ath6kl/ |
D | bmi.c | 119 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-6.12.1/include/linux/dma/ |
D | qcom-gpi-dma.h | 46 u32 rx_len; member 78 u32 rx_len; member
|
/linux-6.12.1/drivers/gpu/drm/bridge/ |
D | nwl-dsi.c | 63 size_t rx_len; /* in bytes */ member 401 if (xfer->msg->rx_len > 1) { in nwl_dsi_read_packet() 404 ++xfer->rx_len; in nwl_dsi_read_packet() 409 if (xfer->msg->rx_len > 0) { in nwl_dsi_read_packet() 412 ++xfer->rx_len; in nwl_dsi_read_packet() 414 xfer->status = xfer->rx_len; in nwl_dsi_read_packet() 424 if (word_count > xfer->msg->rx_len) { in nwl_dsi_read_packet() 427 xfer->cmd, xfer->msg->rx_len, word_count); in nwl_dsi_read_packet() 450 xfer->rx_len += 4; in nwl_dsi_read_packet() 459 ++xfer->rx_len; in nwl_dsi_read_packet() [all …]
|
D | samsung-dsim.c | 1099 xfer, length, xfer->tx_done, xfer->rx_len, xfer->rx_done); in samsung_dsim_send_to_fifo() 1165 if (xfer->rx_len >= 2) { in samsung_dsim_read_from_fifo() 1174 xfer->rx_len = xfer->rx_done; in samsung_dsim_read_from_fifo() 1184 if (length > xfer->rx_len) { in samsung_dsim_read_from_fifo() 1187 xfer->rx_len, length); in samsung_dsim_read_from_fifo() 1188 length = xfer->rx_len; in samsung_dsim_read_from_fifo() 1189 } else if (length < xfer->rx_len) { in samsung_dsim_read_from_fifo() 1190 xfer->rx_len = length; in samsung_dsim_read_from_fifo() 1194 length = xfer->rx_len - xfer->rx_done; in samsung_dsim_read_from_fifo() 1222 if (xfer->rx_done == xfer->rx_len) in samsung_dsim_read_from_fifo() [all …]
|
/linux-6.12.1/drivers/input/rmi4/ |
D | rmi_spi.c | 114 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-6.12.1/drivers/net/wireless/marvell/mwifiex/ |
D | sdio.h | 137 #define MP_RX_AGGR_BUF_HAS_ROOM(a, rx_len) \ argument 138 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size) 361 u16 rx_len, u8 port) in mp_rx_aggr_setup() argument 363 card->mpa_rx.buf_len += rx_len; in mp_rx_aggr_setup() 376 card->mpa_rx.len_arr[card->mpa_rx.pkt_cnt] = rx_len; in mp_rx_aggr_setup()
|
D | sdio.c | 1748 u16 rx_len, u8 port) in mwifiex_sdio_card_to_host_mp_aggr() argument 1788 if (MP_RX_AGGR_BUF_HAS_ROOM(card, rx_len)) { in mwifiex_sdio_card_to_host_mp_aggr() 1807 if (MP_RX_AGGR_BUF_HAS_ROOM(card, rx_len)) in mwifiex_sdio_card_to_host_mp_aggr() 1821 mp_rx_aggr_setup(card, rx_len, port); in mwifiex_sdio_card_to_host_mp_aggr() 1917 port, rx_len); in mwifiex_sdio_card_to_host_mp_aggr() 1919 skb = mwifiex_alloc_dma_align_buf(rx_len, GFP_KERNEL); in mwifiex_sdio_card_to_host_mp_aggr() 1923 "drop pkt port=%d len=%d\n", port, rx_len); in mwifiex_sdio_card_to_host_mp_aggr() 1925 card->mpa_rx.buf, rx_len, in mwifiex_sdio_card_to_host_mp_aggr() 1931 skb_put(skb, rx_len); in mwifiex_sdio_card_to_host_mp_aggr() 1952 mp_rx_aggr_setup(card, rx_len, port); in mwifiex_sdio_card_to_host_mp_aggr() [all …]
|
/linux-6.12.1/drivers/input/touchscreen/ |
D | wdt87xx_i2c.c | 250 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-6.12.1/net/mctp/test/ |
D | route-test.c | 410 int rx_len; member 439 if (params->rx_len) { in mctp_test_route_input_sk_reasm() 441 KUNIT_EXPECT_EQ(test, skb2->len, params->rx_len); in mctp_test_route_input_sk_reasm() 460 .rx_len = 1, 468 .rx_len = 1, 477 .rx_len = 2, 486 .rx_len = 2, 495 .rx_len = 0, 505 .rx_len = 3, 514 .rx_len = 0, [all …]
|
/linux-6.12.1/drivers/net/ethernet/wiznet/ |
D | w5300.c | 379 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()
|