/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-dln2.c | 192 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 …]
|
D | spi-bcm2835aux.c | 97 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()
|
D | spi-efm32.c | 83 unsigned tx_len, rx_len; member 157 ddata->rx_len--; in efm32_spi_rx_u8() 163 ddata->tx_len + 2 > ddata->rx_len && in efm32_spi_filltx() 181 ddata->tx_len = ddata->rx_len = in efm32_spi_txrx_bufs() 196 ret = t->len - max(ddata->tx_len, ddata->rx_len); in efm32_spi_txrx_bufs() 214 while (ddata->rx_len > 0 && in efm32_spi_rxirq() 222 if (!ddata->rx_len) { in efm32_spi_rxirq() 243 __func__, ddata->tx_len, ddata->rx_len, in efm32_spi_txirq() 252 __func__, ddata->tx_len, ddata->rx_len); in efm32_spi_txirq()
|
D | spi-mpc512x-psc.c | 155 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()
|
D | spi-amd.c | 175 u32 tx_len = 0, rx_len = 0; in amd_spi_fifo_xfer() local 208 rx_len = xfer->len; in amd_spi_fifo_xfer() 210 amd_spi_set_rx_count(master, rx_len); in amd_spi_fifo_xfer() 215 for (i = 0; i < rx_len; i++) in amd_spi_fifo_xfer() 223 message->actual_length = tx_len + rx_len + 1; in amd_spi_fifo_xfer()
|
D | spi-dw-core.c | 126 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() 171 --dws->rx_len; in dw_reader() 228 if (!dws->rx_len) { in dw_spi_transfer_handler() 231 } else if (dws->rx_len <= dw_readl(dws, DW_SPI_RXFTLR)) { in dw_spi_transfer_handler() 232 dw_writel(dws, DW_SPI_RXFTLR, dws->rx_len - 1); in dw_spi_transfer_handler() 390 delay.value = nbits * (dws->rx_len - dws->tx_len); in dw_spi_poll_transfer() 398 } while (dws->rx_len); in dw_spi_poll_transfer() 419 dws->rx_len = dws->tx_len; in dw_spi_transfer_one() 525 dws->rx_len = op->data.nbytes; in dw_spi_init_mem_buf() [all …]
|
D | spi-stm32.c | 313 int rx_len; member 579 if ((spi->rx_len > 0) && (readl_relaxed(spi->base + STM32F4_SPI_SR) & in stm32f4_spi_read_rx() 581 u32 offs = spi->cur_xferlen - spi->rx_len; in stm32f4_spi_read_rx() 587 spi->rx_len -= sizeof(u16); in stm32f4_spi_read_rx() 592 spi->rx_len -= sizeof(u8); in stm32f4_spi_read_rx() 596 dev_dbg(spi->dev, "%s: %d bytes left\n", __func__, spi->rx_len); in stm32f4_spi_read_rx() 613 while ((spi->rx_len > 0) && in stm32h7_spi_read_rxfifo() 616 u32 offs = spi->cur_xferlen - spi->rx_len; in stm32h7_spi_read_rxfifo() 618 if ((spi->rx_len >= sizeof(u32)) || in stm32h7_spi_read_rxfifo() 623 spi->rx_len -= sizeof(u32); in stm32h7_spi_read_rxfifo() [all …]
|
D | spi-bcm2835.c | 135 int rx_len; member 212 while ((bs->rx_len) && in bcm2835_rd_fifo() 217 bs->rx_len--; in bcm2835_rd_fifo() 248 bs->rx_len -= count; in bcm2835_rd_fifo_count() 312 count = min(count, bs->rx_len); in bcm2835_rd_fifo_blind() 313 bs->rx_len -= count; in bcm2835_rd_fifo_blind() 387 if (!bs->rx_len) { in bcm2835_spi_interrupt() 1051 while (bs->rx_len) { in bcm2835_spi_transfer_one_poll() 1061 if (bs->rx_len && time_after(jiffies, timeout)) { in bcm2835_spi_transfer_one_poll() 1065 bs->tx_len, bs->rx_len); in bcm2835_spi_transfer_one_poll() [all …]
|
D | spi-xlp.c | 96 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()
|
D | spi-mt7621.c | 157 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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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() 208 for (i = 0; i < rx_len; i++) { in rmi_spi_xfer() 220 xfer->len = rx_len; in rmi_spi_xfer() 232 memcpy(rx_buf, rmi_spi->rx_buf, rx_len); in rmi_spi_xfer() 234 __func__, rx_len, rx_len, rx_buf); in rmi_spi_xfer()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
D | sdio.h | 149 #define MP_RX_AGGR_BUF_HAS_ROOM(a, rx_len) \ argument 150 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size) 367 u16 rx_len, u8 port) in mp_rx_aggr_setup() argument 369 card->mpa_rx.buf_len += rx_len; in mp_rx_aggr_setup() 383 card->mpa_rx.len_arr[card->mpa_rx.pkt_cnt] = rx_len; in mp_rx_aggr_setup()
|
D | sdio.c | 1702 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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/ |
D | nwl-dsi.c | 68 size_t rx_len; /* in bytes */ member 414 if (xfer->msg->rx_len > 1) { in nwl_dsi_read_packet() 417 ++xfer->rx_len; in nwl_dsi_read_packet() 422 if (xfer->msg->rx_len > 0) { in nwl_dsi_read_packet() 425 ++xfer->rx_len; in nwl_dsi_read_packet() 427 xfer->status = xfer->rx_len; in nwl_dsi_read_packet() 437 if (word_count > xfer->msg->rx_len) { in nwl_dsi_read_packet() 440 xfer->cmd, xfer->msg->rx_len, word_count); in nwl_dsi_read_packet() 463 xfer->rx_len += 4; in nwl_dsi_read_packet() 472 ++xfer->rx_len; in nwl_dsi_read_packet() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ |
D | ray_cs.c | 99 unsigned int pkt_addr, int rx_len); 104 unsigned int pkt_addr, int rx_len); 106 unsigned int pkt_addr, int rx_len); 2044 int rx_len; in ray_rx() local 2053 rx_len = (readb(&prcs->var.rx_packet.rx_data_length[0]) << 8) in ray_rx() 2061 rx_data(dev, prcs, pkt_addr, rx_len); in ray_rx() 2066 rx_data(dev, prcs, pkt_addr, rx_len); in ray_rx() 2068 rx_authenticate(local, prcs, pkt_addr, rx_len); in ray_rx() 2073 rx_data(dev, prcs, pkt_addr, rx_len); in ray_rx() 2075 rx_deauthenticate(local, prcs, pkt_addr, rx_len); in ray_rx() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
D | exynos_drm_dsi.c | 233 u16 rx_len; member 971 xfer, length, xfer->tx_done, xfer->rx_len, xfer->rx_done); in exynos_dsi_send_to_fifo() 1037 if (xfer->rx_len >= 2) { in exynos_dsi_read_from_fifo() 1046 xfer->rx_len = xfer->rx_done; in exynos_dsi_read_from_fifo() 1057 if (length > xfer->rx_len) { in exynos_dsi_read_from_fifo() 1060 xfer->rx_len, length); in exynos_dsi_read_from_fifo() 1061 length = xfer->rx_len; in exynos_dsi_read_from_fifo() 1062 } else if (length < xfer->rx_len) in exynos_dsi_read_from_fifo() 1063 xfer->rx_len = length; in exynos_dsi_read_from_fifo() 1066 length = xfer->rx_len - xfer->rx_done; in exynos_dsi_read_from_fifo() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/caif/ |
D | caif_hsi.c | 600 int desc_pld_len = 0, rx_len, rx_state; in cfhsi_rx_done() local 625 rx_len = desc_pld_len; in cfhsi_rx_done() 627 rx_len += CFHSI_DESC_SZ; in cfhsi_rx_done() 633 rx_len = CFHSI_DESC_SZ; in cfhsi_rx_done() 649 rx_len = desc_pld_len; in cfhsi_rx_done() 651 rx_len += CFHSI_DESC_SZ; in cfhsi_rx_done() 669 rx_len = CFHSI_DESC_SZ; in cfhsi_rx_done() 678 res = cfhsi->ops->cfhsi_rx(rx_ptr, rx_len, in cfhsi_rx_done() 709 cfhsi->rx_len = rx_len; in cfhsi_rx_done() 834 res = cfhsi->ops->cfhsi_rx(cfhsi->rx_ptr, cfhsi->rx_len, cfhsi->ops); in cfhsi_wake_up() [all …]
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-dln2.c | 116 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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/acpi/ |
D | acpi_ipmi.c | 80 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()
|