/Linux-v5.15/drivers/net/wireless/ath/ath6kl/ |
D | bmi.c | 175 u32 len_remain, tx_len; in ath6kl_bmi_write() local 210 tx_len = len_remain; in ath6kl_bmi_write() 212 tx_len = (ar->bmi.max_data_size - header); in ath6kl_bmi_write() 220 memcpy(&(ar->bmi.cmd_buf[offset]), &tx_len, sizeof(tx_len)); in ath6kl_bmi_write() 221 offset += sizeof(tx_len); in ath6kl_bmi_write() 222 memcpy(&(ar->bmi.cmd_buf[offset]), src, tx_len); in ath6kl_bmi_write() 223 offset += tx_len; in ath6kl_bmi_write() 231 len_remain -= tx_len; addr += tx_len; in ath6kl_bmi_write() 408 u32 len_remain, tx_len; in ath6kl_bmi_lz_data() local 429 tx_len = (len_remain < (ar->bmi.max_data_size - header)) ? in ath6kl_bmi_lz_data() [all …]
|
/Linux-v5.15/drivers/input/touchscreen/ |
D | wdt87xx_i2c.c | 282 size_t tx_len = 0; in wdt87xx_get_feature() local 290 tx_buf[tx_len++] = 0x22; in wdt87xx_get_feature() 291 tx_buf[tx_len++] = 0x00; in wdt87xx_get_feature() 293 tx_buf[tx_len++] = 0x30; in wdt87xx_get_feature() 294 tx_buf[tx_len++] = 0x02; in wdt87xx_get_feature() 295 tx_buf[tx_len++] = buf[CMD_REPORT_ID_OFFSET]; in wdt87xx_get_feature() 297 tx_buf[tx_len++] = 0x30 | buf[CMD_REPORT_ID_OFFSET]; in wdt87xx_get_feature() 298 tx_buf[tx_len++] = 0x02; in wdt87xx_get_feature() 300 tx_buf[tx_len++] = 0x23; in wdt87xx_get_feature() 301 tx_buf[tx_len++] = 0x00; in wdt87xx_get_feature() [all …]
|
/Linux-v5.15/drivers/spi/ |
D | spi-mt7621.c | 159 int tx_len; in mt7621_spi_read_half_duplex() local 166 tx_len = rs->pending_write; in mt7621_spi_read_half_duplex() 169 while (rx_len || tx_len) { in mt7621_spi_read_half_duplex() 171 u32 val = (min(tx_len, 4) * 8) << 24; in mt7621_spi_read_half_duplex() 174 if (tx_len > 4) in mt7621_spi_read_half_duplex() 175 val |= (tx_len - 4) * 8; in mt7621_spi_read_half_duplex() 179 tx_len = 0; in mt7621_spi_read_half_duplex() 204 int tx_len, const u8 *buf) in mt7621_spi_write_half_duplex() argument 217 while (tx_len > 0) { in mt7621_spi_write_half_duplex() 233 tx_len -= 1; in mt7621_spi_write_half_duplex()
|
D | spi-bcm2835aux.c | 96 int tx_len; member 188 count = min(bs->tx_len, 3); in bcm2835aux_wr_fifo() 199 bs->tx_len -= count; in bcm2835aux_wr_fifo() 203 if (bs->tx_len) in bcm2835aux_wr_fifo() 227 while (bs->tx_len && in bcm2835aux_spi_transfer_helper() 248 if (!bs->tx_len) { in bcm2835aux_spi_interrupt() 292 while ((bs->tx_len) && in bcm2835aux_spi_transfer_one_irq() 331 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll() 382 bs->tx_len = tfr->len; in bcm2835aux_spi_transfer_one()
|
D | spi-mtk-nor.c | 184 int tx_len, rx_len, prg_len, prg_left; in mtk_nor_match_prg() local 191 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_match_prg() 195 tx_len += op->dummy.nbytes; in mtk_nor_match_prg() 198 if (tx_len > MTK_NOR_REG_PRGDATA_MAX) in mtk_nor_match_prg() 204 (tx_len + op->data.nbytes > MTK_NOR_REG_PRGDATA_MAX + 1)) in mtk_nor_match_prg() 207 if (tx_len > MTK_NOR_REG_PRGDATA_MAX + 1) in mtk_nor_match_prg() 211 prg_left = MTK_NOR_PRG_CNT_MAX / 8 - tx_len - op->dummy.nbytes; in mtk_nor_match_prg() 220 prg_len = tx_len + op->dummy.nbytes + rx_len; in mtk_nor_match_prg() 224 prg_len = tx_len + op->dummy.nbytes; in mtk_nor_match_prg() 233 int tx_len, tx_left, prg_left; in mtk_nor_adj_prg_size() local [all …]
|
D | spi-amd.c | 174 u32 tx_len = 0, rx_len = 0; in amd_spi_fifo_xfer() local 185 tx_len = xfer->len - 1; in amd_spi_fifo_xfer() 191 for (i = 0; i < tx_len; i++) { in amd_spi_fifo_xfer() 197 amd_spi_set_tx_count(master, tx_len); in amd_spi_fifo_xfer() 217 tx_len + i); in amd_spi_fifo_xfer() 222 message->actual_length = tx_len + rx_len + 1; in amd_spi_fifo_xfer()
|
D | spi-xlp.c | 95 int tx_len; /* tx xfer length */ member 209 while (xspi->tx_len && (txfifo_cnt < XLP_SPI_FIFO_SIZE)) { in xlp_spi_fill_txfifo() 212 nbytes = min(xspi->tx_len, 4); in xlp_spi_fill_txfifo() 217 xspi->tx_len -= nbytes; in xlp_spi_fill_txfifo() 234 if (xspi->tx_len) in xlp_spi_interrupt() 279 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 284 if (xs->tx_len) in xlp_spi_xfer_block() 294 if (xs->tx_len) in xlp_spi_xfer_block()
|
D | spi-mpc512x-psc.c | 154 size_t tx_len = t->len; in mpc512x_psc_spi_transfer_rxtx() local 162 while (rx_len || tx_len) { in mpc512x_psc_spi_transfer_rxtx() 174 txcount = min(fifosz, tx_len); in mpc512x_psc_spi_transfer_rxtx() 183 if (tx_len == EOFBYTE && t->cs_change) in mpc512x_psc_spi_transfer_rxtx() 187 tx_len--; in mpc512x_psc_spi_transfer_rxtx() 231 if (tx_len) in mpc512x_psc_spi_transfer_rxtx() 264 if (!tx_len && rx_len && !rxtries) { in mpc512x_psc_spi_transfer_rxtx() 280 if (!tx_len && !rx_len) { in mpc512x_psc_spi_transfer_rxtx()
|
D | spi-dw-core.c | 126 rxtx_gap = dws->fifo_len - (dws->rx_len - dws->tx_len); in tx_max() 128 return min3((u32)dws->tx_len, tx_room, rxtx_gap); in tx_max() 154 --dws->tx_len; in dw_writer() 246 if (!dws->tx_len) in dw_spi_transfer_handler() 360 level = min_t(u16, dws->fifo_len / 2, dws->tx_len); in dw_spi_irq_setup() 394 delay.value = nbits * (dws->rx_len - dws->tx_len); in dw_spi_poll_transfer() 421 dws->tx_len = transfer->len / dws->n_bytes; in dw_spi_transfer_one() 423 dws->rx_len = dws->tx_len; in dw_spi_transfer_one() 526 dws->tx_len = len; in dw_spi_init_mem_buf() 555 len = min(dws->fifo_len, dws->tx_len); in dw_spi_write_then_read() [all …]
|
D | spi-stm32.c | 305 int tx_len; member 486 if ((spi->tx_len > 0) && (readl_relaxed(spi->base + STM32F4_SPI_SR) & in stm32f4_spi_write_tx() 488 u32 offs = spi->cur_xferlen - spi->tx_len; in stm32f4_spi_write_tx() 494 spi->tx_len -= sizeof(u16); in stm32f4_spi_write_tx() 499 spi->tx_len -= sizeof(u8); in stm32f4_spi_write_tx() 503 dev_dbg(spi->dev, "%s: %d bytes left\n", __func__, spi->tx_len); in stm32f4_spi_write_tx() 515 while ((spi->tx_len > 0) && in stm32h7_spi_write_txfifo() 518 u32 offs = spi->cur_xferlen - spi->tx_len; in stm32h7_spi_write_txfifo() 520 if (spi->tx_len >= sizeof(u32)) { in stm32h7_spi_write_txfifo() 524 spi->tx_len -= sizeof(u32); in stm32h7_spi_write_txfifo() [all …]
|
D | spi-bcm2835.c | 126 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() 384 if (bs->tx_len && cs & BCM2835_SPI_CS_DONE) in bcm2835_spi_interrupt() 791 bcm2835_wr(bs, BCM2835_SPI_DLEN, bs->tx_len); in bcm2835_spi_transfer_one_dma() 1027 bs->tx_len, bs->rx_len); in bcm2835_spi_transfer_one_poll() 1079 bs->tx_len = tfr->len; in bcm2835_spi_transfer_one()
|
D | spi-hisi-kunpeng.c | 134 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()
|
D | spi-dw-dma.c | 518 unsigned int tx_len = 0, rx_len = 0; in dw_spi_dma_transfer_one() local 527 if (!tx_len) { in dw_spi_dma_transfer_one() 530 tx_len = sg_dma_len(tx_sg); in dw_spi_dma_transfer_one() 540 len = min(tx_len, rx_len); in dw_spi_dma_transfer_one() 574 tx_len -= len; in dw_spi_dma_transfer_one()
|
/Linux-v5.15/drivers/iio/dac/ |
D | ad5686-spi.c | 20 u8 tx_len, *buf; in ad5686_spi_write() local 27 tx_len = 2; in ad5686_spi_write() 33 tx_len = 3; in ad5686_spi_write() 40 tx_len = 3; in ad5686_spi_write() 46 return spi_write(spi, buf, tx_len); in ad5686_spi_write()
|
/Linux-v5.15/drivers/bluetooth/ |
D | hci_mrvl.c | 41 unsigned int tx_len; member 182 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req() 311 mrvl->tx_len); in mrvl_load_firmware() 318 if (!mrvl->tx_len) { in mrvl_load_firmware() 327 if (fw_ptr + mrvl->tx_len > fw_max) { in mrvl_load_firmware() 328 mrvl->tx_len = fw_max - fw_ptr; in mrvl_load_firmware() 330 mrvl->tx_len); in mrvl_load_firmware() 333 skb = bt_skb_alloc(mrvl->tx_len, GFP_KERNEL); in mrvl_load_firmware() 341 skb_put_data(skb, fw_ptr, mrvl->tx_len); in mrvl_load_firmware() 342 fw_ptr += mrvl->tx_len; in mrvl_load_firmware()
|
/Linux-v5.15/drivers/gpu/drm/ |
D | drm_mipi_dsi.c | 468 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet() 469 packet->header[2] = (msg->tx_len >> 8) & 0xff; in mipi_dsi_create_packet() 471 packet->payload_length = msg->tx_len; in mipi_dsi_create_packet() 476 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet() 477 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet() 498 .tx_len = 2, in mipi_dsi_shutdown_peripheral() 518 .tx_len = 2, in mipi_dsi_turn_on_peripheral() 542 .tx_len = sizeof(tx), in mipi_dsi_set_maximum_return_packet_size() 568 .tx_len = sizeof(tx), in mipi_dsi_compression_mode() 592 .tx_len = sizeof(*pps), in mipi_dsi_picture_parameter_set() [all …]
|
/Linux-v5.15/drivers/net/wireless/st/cw1200/ |
D | bh.c | 351 size_t tx_len; in cw1200_bh_tx_helper() local 370 ret = wsm_get_tx(priv, &data, &tx_len, tx_burst); in cw1200_bh_tx_helper() 379 BUG_ON(tx_len < sizeof(*wsm)); in cw1200_bh_tx_helper() 380 BUG_ON(__le16_to_cpu(wsm->len) != tx_len); in cw1200_bh_tx_helper() 384 tx_len = priv->hwbus_ops->align_size( in cw1200_bh_tx_helper() 385 priv->hwbus_priv, tx_len); in cw1200_bh_tx_helper() 388 if (WARN_ON_ONCE(tx_len > EFFECTIVE_BUF_SIZE)) in cw1200_bh_tx_helper() 389 pr_debug("Write aligned len: %zu\n", tx_len); in cw1200_bh_tx_helper() 394 if (WARN_ON(cw1200_data_write(priv, data, tx_len))) { in cw1200_bh_tx_helper() 395 pr_err("tx blew up, len %zu\n", tx_len); in cw1200_bh_tx_helper()
|
/Linux-v5.15/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_eeprom.c | 39 static u16 _rtl92e_eeprom_xfer(struct net_device *dev, u16 data, int tx_len) in _rtl92e_eeprom_xfer() argument 47 while (tx_len--) { in _rtl92e_eeprom_xfer() 49 (data >> tx_len) & 0x1); in _rtl92e_eeprom_xfer()
|
/Linux-v5.15/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-i2c.c | 226 while (tx_slots && state->tx_len) { in xgbe_i2c_write() 232 if (state->tx_len == 1) in xgbe_i2c_write() 238 state->tx_len--; in xgbe_i2c_write() 242 if (!state->tx_len) in xgbe_i2c_write() 396 state->tx_len = op->len; in xgbe_i2c_xfer()
|
/Linux-v5.15/drivers/net/can/spi/ |
D | hi311x.c | 156 int tx_len; member 178 if (priv->tx_skb || priv->tx_len) in hi3110_clean() 181 if (priv->tx_len) in hi3110_clean() 184 priv->tx_len = 0; in hi3110_clean() 371 if (priv->tx_skb || priv->tx_len) { in hi3110_hard_start_xmit() 588 priv->tx_len = 1 + frame->len; in hi3110_tx_work_handler() 723 if (priv->tx_len && statf & HI3110_STAT_TXMTY) { in hi3110_can_ist() 725 net->stats.tx_bytes += priv->tx_len - 1; in hi3110_can_ist() 727 if (priv->tx_len) { in hi3110_can_ist() 729 priv->tx_len = 0; in hi3110_can_ist() [all …]
|
/Linux-v5.15/drivers/media/rc/ |
D | ir_toy.c | 69 uint tx_len; member 149 if (irtoy->tx_len == 0) { in irtoy_response() 176 buf_len = min(space, irtoy->tx_len); in irtoy_response() 179 irtoy->tx_len, buf_len); in irtoy_response() 193 irtoy->tx_len -= buf_len; in irtoy_response() 316 irtoy->tx_len = size; in irtoy_tx()
|
/Linux-v5.15/drivers/leds/ |
D | leds-ipaq-micro.c | 39 .tx_len = 4, in micro_leds_brightness_set() 76 .tx_len = 4, in micro_leds_blink_set()
|
/Linux-v5.15/drivers/staging/media/av7110/ |
D | sp8870.c | 91 int tx_len; in sp8870_firmware_upload() local 111 …tx_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()
|
/Linux-v5.15/drivers/gpu/drm/sun4i/ |
D | sun6i_mipi_dsi.c | 856 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()
|
/Linux-v5.15/drivers/firmware/ |
D | arm_scpi.c | 226 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()
|