Home
last modified time | relevance | path

Searched refs:tx_len (Results 26 – 50 of 107) sorted by relevance

12345

/openbmc/linux/drivers/spi/
H A Dspi-amd.c283 u32 tx_len = 0, rx_len = 0; in amd_spi_fifo_xfer() local
294 if (!tx_len) { in amd_spi_fifo_xfer()
299 tx_len += xfer->len; in amd_spi_fifo_xfer()
319 amd_spi_set_tx_count(amd_spi, tx_len); in amd_spi_fifo_xfer()
343 message->actual_length = tx_len + rx_len + 1; in amd_spi_fifo_xfer()
H A Dspi-sunplus-sp7021.c184 unsigned int tx_len, rx_cnt; in sp7021_spi_master_irq() local
191 tx_len = FIELD_GET(SP7021_TX_LEN_MASK, fd_status); in sp7021_spi_master_irq()
197 if (tx_len == 0 && total_len == 0) in sp7021_spi_master_irq()
204 tx_cnt = min(tx_len - pspim->tx_cur_len, pspim->data_unit - tx_cnt); in sp7021_spi_master_irq()
206 fd_status, rx_cnt, tx_cnt, tx_len); in sp7021_spi_master_irq()
214 tx_len = FIELD_GET(SP7021_TX_LEN_MASK, fd_status); in sp7021_spi_master_irq()
217 if (fd_status & SP7021_FINISH_FLAG || tx_len == pspim->tx_cur_len) { in sp7021_spi_master_irq()
H A Dspi-stm32.c317 int tx_len; member
506 u32 offs = spi->cur_xferlen - spi->tx_len; in stm32f4_spi_write_tx()
512 spi->tx_len -= sizeof(u16); in stm32f4_spi_write_tx()
517 spi->tx_len -= sizeof(u8); in stm32f4_spi_write_tx()
533 while ((spi->tx_len > 0) && in stm32h7_spi_write_txfifo()
538 if (spi->tx_len >= sizeof(u32)) { in stm32h7_spi_write_txfifo()
542 spi->tx_len -= sizeof(u32); in stm32h7_spi_write_txfifo()
543 } else if (spi->tx_len >= sizeof(u16)) { in stm32h7_spi_write_txfifo()
547 spi->tx_len -= sizeof(u16); in stm32h7_spi_write_txfifo()
552 spi->tx_len -= sizeof(u8); in stm32h7_spi_write_txfifo()
[all …]
H A Dspi-bcm2835.c126 int tx_len; member
230 while ((bs->tx_len) && in bcm2835_wr_fifo()
234 bs->tx_len--; in bcm2835_wr_fifo()
279 bs->tx_len -= count; in bcm2835_wr_fifo_count()
336 count = min(count, bs->tx_len); in bcm2835_wr_fifo_blind()
337 bs->tx_len -= count; in bcm2835_wr_fifo_blind()
388 if (bs->tx_len && cs & BCM2835_SPI_CS_DONE) in bcm2835_spi_interrupt()
795 bcm2835_wr(bs, BCM2835_SPI_DLEN, bs->tx_len); in bcm2835_spi_transfer_one_dma()
1031 bs->tx_len, bs->rx_len); in bcm2835_spi_transfer_one_poll()
1083 bs->tx_len = tfr->len; in bcm2835_spi_transfer_one()
H A Dspi-hisi-kunpeng.c133 unsigned int tx_len; member
252 u32 max = min_t(u32, hs->tx_len, hs->fifo_len); in hisi_spi_writer()
272 --hs->tx_len; in hisi_spi_writer()
393 hs->tx_len = transfer->len / hs->n_bytes; in hisi_spi_transfer_one()
395 hs->rx_len = hs->tx_len; in hisi_spi_transfer_one()
H A Dspi-sun4i.c211 unsigned int tx_len = 0; in sun4i_spi_transfer_one() local
304 tx_len = tfr->len; in sun4i_spi_transfer_one()
308 sun4i_spi_write(sspi, SUN4I_XMIT_CNT_REG, SUN4I_XMIT_CNT(tx_len)); in sun4i_spi_transfer_one()
321 if (tx_len > SUN4I_FIFO_DEPTH) in sun4i_spi_transfer_one()
H A Dspi-dw-dma.c573 unsigned int tx_len = 0, rx_len = 0; in dw_spi_dma_transfer_one() local
582 if (!tx_len) { in dw_spi_dma_transfer_one()
585 tx_len = sg_dma_len(tx_sg); in dw_spi_dma_transfer_one()
595 len = min(tx_len, rx_len); in dw_spi_dma_transfer_one()
629 tx_len -= len; in dw_spi_dma_transfer_one()
H A Dspi-dln2.c428 unsigned tx_len; in dln2_spi_write_one() local
441 tx_len = sizeof(*tx) + data_len - DLN2_SPI_MAX_XFER_SIZE; in dln2_spi_write_one()
442 return dln2_transfer_tx(dln2->pdev, DLN2_SPI_WRITE, tx, tx_len); in dln2_spi_write_one()
503 unsigned tx_len, rx_len; in dln2_spi_read_write_one() local
525 tx_len = sizeof(*tx) + data_len - DLN2_SPI_MAX_XFER_SIZE; in dln2_spi_read_write_one()
528 ret = dln2_transfer(dln2->pdev, DLN2_SPI_READ_WRITE, tx, tx_len, in dln2_spi_read_write_one()
H A Dspi-sun6i.c283 unsigned int tx_len = 0, rx_len = 0, nbits = 0; in sun6i_spi_transfer_one() local
437 tx_len = tfr->len; in sun6i_spi_transfer_one()
452 reg = FIELD_PREP(SUN6I_BURST_CTL_CNT_STC_MASK, tx_len); in sun6i_spi_transfer_one()
458 sun6i_spi_write(sspi, SUN6I_XMIT_CNT_REG, tx_len); in sun6i_spi_transfer_one()
479 if (tx_len > sspi->cfg->fifo_depth) in sun6i_spi_transfer_one()
/openbmc/qemu/hw/net/
H A Ddp8393x.c395 int tx_len, len; in dp8393x_do_transmit_packets() local
402 tx_len = 0; in dp8393x_do_transmit_packets()
422 if (tx_len + len > sizeof(s->tx_buffer)) { in dp8393x_do_transmit_packets()
423 len = sizeof(s->tx_buffer) - tx_len; in dp8393x_do_transmit_packets()
426 &s->tx_buffer[tx_len], len); in dp8393x_do_transmit_packets()
427 tx_len += len; in dp8393x_do_transmit_packets()
449 tx_len -= 4; in dp8393x_do_transmit_packets()
450 if (tx_len < 0) { in dp8393x_do_transmit_packets()
451 trace_dp8393x_transmit_txlen_error(tx_len); in dp8393x_do_transmit_packets()
461 qemu_receive_packet(nc, s->tx_buffer, tx_len); in dp8393x_do_transmit_packets()
[all …]
/openbmc/linux/drivers/leds/
H A Dleds-ipaq-micro.c39 .tx_len = 4, in micro_leds_brightness_set()
76 .tx_len = 4, in micro_leds_blink_set()
/openbmc/linux/drivers/staging/media/av7110/
H A Dsp8870.c91 int tx_len; in sp8870_firmware_upload() local
111tx_len = (fw_pos <= SP8870_FIRMWARE_SIZE + SP8870_FIRMWARE_OFFSET - 252) ? 252 : SP8870_FIRMWARE_S… in sp8870_firmware_upload()
115 memcpy(&tx_buf[2], fw_buf + fw_pos, tx_len); in sp8870_firmware_upload()
119 msg.len = tx_len + 2; in sp8870_firmware_upload()
125 fw_pos += tx_len; in sp8870_firmware_upload()
/openbmc/linux/drivers/media/rc/
H A Dir_toy.c71 uint tx_len; member
152 if (irtoy->tx_len == 0) { in irtoy_response()
177 buf_len = min(space, irtoy->tx_len); in irtoy_response()
180 irtoy->tx_len, buf_len); in irtoy_response()
194 irtoy->tx_len -= buf_len; in irtoy_response()
324 irtoy->tx_len = size; in irtoy_tx()
/openbmc/qemu/hw/arm/
H A Dstrongarm.c933 uint8_t tx_len; member
948 if (s->tx_len != 8) { in strongarm_uart_update_status()
978 s->tx_len <= 4) { in strongarm_uart_update_int_status()
1122 s->tx_len--; in strongarm_uart_tx()
1123 if (s->tx_len) { in strongarm_uart_tx()
1199 s->tx_len = 0; in strongarm_uart_write()
1208 s->tx_len++; in strongarm_uart_write()
1211 if (s->tx_len == 1) { in strongarm_uart_write()
1269 s->rx_len = s->tx_len = 0; in strongarm_uart_reset()
1285 if (s->tx_len) { in strongarm_uart_post_load()
[all …]
/openbmc/linux/drivers/peci/
H A Drequest.c190 struct peci_request *peci_request_alloc(struct peci_device *device, u8 tx_len, u8 rx_len) in peci_request_alloc() argument
199 if (WARN_ON_ONCE(tx_len > PECI_REQUEST_MAX_BUF_SIZE || rx_len > PECI_REQUEST_MAX_BUF_SIZE)) in peci_request_alloc()
211 req->tx.len = tx_len; in peci_request_alloc()
362 u8 bus, u8 dev, u8 func, u64 offset, u8 tx_len, u8 len) in __ep_mmio_read() argument
367 req = peci_request_alloc(device, tx_len, PECI_RDENDPTCFG_RD_LEN_BASE + len); in __ep_mmio_read()
/openbmc/linux/drivers/fpga/
H A Dlattice-sysconfig-spi.c14 const void *tx_buf, size_t tx_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()
/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun6i_mipi_dsi.c856 pkt |= ((msg->tx_len) & 0xffff) << 8; in sun6i_dsi_dcs_build_pkt_hdr()
857 pkt |= (((msg->tx_len) >> 8) & 0xffff) << 16; in sun6i_dsi_dcs_build_pkt_hdr()
860 if (msg->tx_len > 1) in sun6i_dsi_dcs_build_pkt_hdr()
879 return msg->tx_len; in sun6i_dsi_dcs_write_short()
892 bounce = kzalloc(ALIGN(msg->tx_len + sizeof(crc), 4), GFP_KERNEL); in sun6i_dsi_dcs_write_long()
896 memcpy(bounce, msg->tx_buf, msg->tx_len); in sun6i_dsi_dcs_write_long()
897 len += msg->tx_len; in sun6i_dsi_dcs_write_long()
899 crc = sun6i_dsi_crc_compute(bounce, msg->tx_len); in sun6i_dsi_dcs_write_long()
900 memcpy((u8 *)bounce + msg->tx_len, &crc, sizeof(crc)); in sun6i_dsi_dcs_write_long()
920 return msg->tx_len; in sun6i_dsi_dcs_write_long()
/openbmc/linux/drivers/firmware/
H A Darm_scpi.c226 unsigned int tx_len; member
430 memcpy_toio(ch->tx_payload, t->tx_buf, t->tx_len); in scpi_tx_prepare()
432 memcpy_toio(mem->payload, t->tx_buf, t->tx_len); in scpi_tx_prepare()
470 static int scpi_send_message(u8 idx, void *tx_buf, unsigned int tx_len, in scpi_send_message() argument
496 msg->cmd = PACK_LEGACY_SCPI_CMD(cmd, tx_len); in scpi_send_message()
500 msg->cmd = PACK_SCPI_CMD(cmd, tx_len); in scpi_send_message()
503 msg->tx_len = tx_len; in scpi_send_message()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-tegra-bpmp.c154 size_t tx_len = 0, rx_len = 0; in tegra_bpmp_i2c_msg_len_check() local
159 tx_len += SERIALI2C_HDR_SIZE + msgs[i].len; in tegra_bpmp_i2c_msg_len_check()
161 if (tx_len > TEGRA_I2C_IPC_MAX_IN_BUF_SIZE) in tegra_bpmp_i2c_msg_len_check()
/openbmc/u-boot/drivers/spi/
H A Dzynq_spi.c216 u32 tx_len = len, rx_len = len, tx_tvl; in zynq_spi_xfer() local
236 while ((tx_tvl < priv->fifo_depth) && tx_len) { in zynq_spi_xfer()
242 tx_len--; in zynq_spi_xfer()
/openbmc/linux/drivers/mfd/
H A Dipaq-micro.c42 checksum = ((msg->id & 0x0f) << 4) | (msg->tx_len & 0x0f); in ipaq_micro_trigger_tx()
45 for (i = 0; i < msg->tx_len; i++) { in ipaq_micro_trigger_tx()
64 dev_dbg(micro->dev, "TX msg: %02x, %d bytes\n", msg->id, msg->tx_len); in ipaq_micro_tx_msg()
214 msg.tx_len = 2; in ipaq_micro_eeprom_read()
/openbmc/linux/drivers/input/rmi4/
H A Drmi_spi.c114 int tx_len, u8 *rx_buf, int rx_len) in rmi_spi_xfer() argument
142 total_tx_len = cmd_len + tx_len; in rmi_spi_xfer()
178 rmi_spi->tx_buf[3] = tx_len; in rmi_spi_xfer()
183 memcpy(&rmi_spi->tx_buf[cmd_len], tx_buf, tx_len); in rmi_spi_xfer()
/openbmc/linux/drivers/bluetooth/
H A Dbtmrvl_sdio.c468 u32 tx_len; in btmrvl_sdio_download_helper() local
498 tx_len = (FIRMWARE_TRANSFER_NBLOCK * SDIO_BLOCK_SIZE) in btmrvl_sdio_download_helper()
515 if (helperlen - hlprblknow < tx_len) in btmrvl_sdio_download_helper()
516 tx_len = helperlen - hlprblknow; in btmrvl_sdio_download_helper()
519 helperbuf[0] = ((tx_len & 0x000000ff) >> 0); in btmrvl_sdio_download_helper()
520 helperbuf[1] = ((tx_len & 0x0000ff00) >> 8); in btmrvl_sdio_download_helper()
521 helperbuf[2] = ((tx_len & 0x00ff0000) >> 16); in btmrvl_sdio_download_helper()
522 helperbuf[3] = ((tx_len & 0xff000000) >> 24); in btmrvl_sdio_download_helper()
525 tx_len); in btmrvl_sdio_download_helper()
536 hlprblknow += tx_len; in btmrvl_sdio_download_helper()
/openbmc/google-misc/subprojects/ncsid/src/
H A Dncsi_state_machine.h78 void run_test_fsm(size_t* tx_len);
/openbmc/linux/drivers/video/backlight/
H A Dipaq_micro_bl.c22 .tx_len = 3, in micro_bl_update_status()

12345