Home
last modified time | relevance | path

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

1234

/linux/drivers/misc/
H A 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/net/nfc/nci/
H A Dspi.c181 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/drivers/spi/
H A Dspi-mpc512x-psc.c149 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()
H A Dspi-dw-core.c124 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 …]
H A Dspi-xlp.c95 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()
H A Dspi-mt7621.c178 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()
H A Dspi-hisi-kunpeng.c135 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()
H A Dspi-dw-dma.c573 unsigned int tx_len = 0, rx_len = 0; in dw_spi_dma_transfer_one() local
589 if (!rx_len) { in dw_spi_dma_transfer_one()
592 rx_len = sg_dma_len(rx_sg); in dw_spi_dma_transfer_one()
595 len = min(tx_len, rx_len); in dw_spi_dma_transfer_one()
630 rx_len -= len; in dw_spi_dma_transfer_one()
/linux/drivers/gpu/drm/bridge/
H A Dnwl-dsi.c63 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 …]
H A Dsamsung-dsim.c1099 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/drivers/net/wireless/ath/ath6kl/
H A 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/drivers/input/rmi4/
H A 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/drivers/net/wireless/marvell/mwifiex/
H A Dsdio.h137 #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()
H A Dsdio.c1748 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/include/linux/dma/
H A Dqcom-gpi-dma.h46 u32 rx_len; member
78 u32 rx_len; member
/linux/drivers/input/touchscreen/
H A 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/net/mctp/test/
H A Droute-test.c410 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/drivers/acpi/
H A Dacpi_ipmi.c83 u8 rx_len; member
323 buffer->length = msg->rx_len; in acpi_format_ipmi_response()
324 memcpy(buffer->data, msg->data, msg->rx_len); in acpi_format_ipmi_response()
426 tx_msg->rx_len = msg->msg.data_len; in ipmi_msg_handler()
427 memcpy(tx_msg->data, msg->msg.data, tx_msg->rx_len); in ipmi_msg_handler()
/linux/drivers/fpga/
H A Dlattice-sysconfig-spi.c15 void *rx_buf, size_t rx_len) in sysconfig_spi_cmd_transfer() argument
19 return spi_write_then_read(spi, tx_buf, tx_len, rx_buf, rx_len); in sysconfig_spi_cmd_transfer()
/linux/drivers/net/wireless/realtek/rtw88/
H A Dsdio.c957 static void rtw_sdio_rxfifo_recv(struct rtw_dev *rtwdev, u32 rx_len) in rtw_sdio_rxfifo_recv() argument
970 bufsz = sdio_align_size(rtwsdio->sdio_func, rx_len); in rtw_sdio_rxfifo_recv()
991 if ((curr_pkt_len + pkt_desc_sz) >= rx_len) { in rtw_sdio_rxfifo_recv()
1016 rx_len -= curr_pkt_len; in rtw_sdio_rxfifo_recv()
1022 u32 rx_len, hisr, total_rx_bytes = 0; in rtw_sdio_rx_isr() local
1026 rx_len = rtw_read16(rtwdev, REG_SDIO_RX0_REQ_LEN); in rtw_sdio_rx_isr()
1028 rx_len = rtw_read32(rtwdev, REG_SDIO_RX0_REQ_LEN); in rtw_sdio_rx_isr()
1030 if (!rx_len) in rtw_sdio_rx_isr()
1033 rtw_sdio_rxfifo_recv(rtwdev, rx_len); in rtw_sdio_rx_isr()
1035 total_rx_bytes += rx_len; in rtw_sdio_rx_isr()
/linux/drivers/firmware/arm_scmi/transports/
H A Dvirtio.c105 unsigned int rx_len; member
301 msg->rx_len = length; in scmi_vio_complete_cb()
552 core->msg->fetch_response(msg->input, msg->rx_len, xfer); in virtio_fetch_response()
561 core->msg->fetch_notification(msg->input, msg->rx_len, in virtio_fetch_notification()
728 next_msg->rx_len = length; in virtio_poll_done()
H A Doptee.c123 u32 rx_len; member
310 channel->rx_len = param[2].u.memref.size; in invoke_process_msg_channel()
345 channel->rx_len = msg_size; in setup_dynamic_shmem()
487 channel->rx_len, xfer); in scmi_optee_fetch_response()
/linux/drivers/mfd/
H A Dipaq-micro.c97 msg->rx_len = len; in micro_rx_msg()
191 if (msg.rx_len == 4) { in ipaq_micro_get_version()
194 } else if (msg.rx_len == 9) { in ipaq_micro_get_version()
200 "illegal version message %d bytes\n", msg.rx_len); in ipaq_micro_get_version()
/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-i2c.c256 while (rx_slots && state->rx_len) { in xgbe_i2c_read()
258 state->rx_len--; in xgbe_i2c_read()
398 state->rx_len = op->len; in xgbe_i2c_xfer()
/linux/drivers/misc/mei/
H A Dplatform-vsc.c49 u32 rx_len; member
215 hw->rx_len = ret; in mei_vsc_read()
234 if (len != hdr->length || hdr->length + sizeof(*hdr) != hw->rx_len) in mei_vsc_read_slots()

1234