/linux-6.12.1/drivers/hid/ |
D | hid-goodix-spi.c | 393 int tx_len = 0, args_len = 0; in goodix_hid_get_raw_report() local 419 tx_len += GOODIX_HID_ACK_HEADER_SIZE; in goodix_hid_get_raw_report() 421 put_unaligned_le16(cmd_register, tmp_buf + tx_len); in goodix_hid_get_raw_report() 422 tx_len += sizeof(cmd_register); in goodix_hid_get_raw_report() 424 tmp_buf[tx_len] = (report_type == HID_FEATURE_REPORT ? 0x03 : 0x01) << 4; in goodix_hid_get_raw_report() 425 tmp_buf[tx_len] |= reportnum >= 0x0F ? 0x0F : reportnum; in goodix_hid_get_raw_report() 426 tx_len++; in goodix_hid_get_raw_report() 428 tmp_buf[tx_len++] = GOODIX_HID_GET_REPORT_CMD; in goodix_hid_get_raw_report() 430 memcpy(tmp_buf + tx_len, args, args_len); in goodix_hid_get_raw_report() 431 tx_len += args_len; in goodix_hid_get_raw_report() [all …]
|
/linux-6.12.1/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-6.12.1/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-6.12.1/drivers/spi/ |
D | spi-mt7621.c | 180 int tx_len; in mt7621_spi_read_half_duplex() local 187 tx_len = rs->pending_write; in mt7621_spi_read_half_duplex() 190 while (rx_len || tx_len) { in mt7621_spi_read_half_duplex() 192 u32 val = (min(tx_len, 4) * 8) << 24; in mt7621_spi_read_half_duplex() 195 if (tx_len > 4) in mt7621_spi_read_half_duplex() 196 val |= (tx_len - 4) * 8; in mt7621_spi_read_half_duplex() 200 tx_len = 0; in mt7621_spi_read_half_duplex() 225 int tx_len, const u8 *buf) in mt7621_spi_write_half_duplex() argument 238 while (tx_len > 0) { in mt7621_spi_write_half_duplex() 254 tx_len -= 1; in mt7621_spi_write_half_duplex()
|
D | spi-bcm2835aux.c | 93 int tx_len; member 185 count = min(bs->tx_len, 3); in bcm2835aux_wr_fifo() 196 bs->tx_len -= count; in bcm2835aux_wr_fifo() 200 if (bs->tx_len) in bcm2835aux_wr_fifo() 224 while (bs->tx_len && in bcm2835aux_spi_transfer_helper() 245 if (!bs->tx_len) { in bcm2835aux_spi_interrupt() 289 while ((bs->tx_len) && in bcm2835aux_spi_transfer_one_irq() 328 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll() 379 bs->tx_len = tfr->len; in bcm2835aux_spi_transfer_one()
|
D | spi-xlp.c | 94 int tx_len; /* tx xfer length */ member 208 while (xspi->tx_len && (txfifo_cnt < XLP_SPI_FIFO_SIZE)) { in xlp_spi_fill_txfifo() 211 nbytes = min(xspi->tx_len, 4); in xlp_spi_fill_txfifo() 216 xspi->tx_len -= nbytes; in xlp_spi_fill_txfifo() 233 if (xspi->tx_len) in xlp_spi_interrupt() 278 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 283 if (xs->tx_len) in xlp_spi_xfer_block() 293 if (xs->tx_len) in xlp_spi_xfer_block()
|
D | spi-mtk-nor.c | 210 int tx_len, rx_len, prg_len, prg_left; in mtk_nor_match_prg() local 217 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_match_prg() 221 tx_len += op->dummy.nbytes; in mtk_nor_match_prg() 224 if (tx_len > MTK_NOR_REG_PRGDATA_MAX) in mtk_nor_match_prg() 230 (tx_len + op->data.nbytes > MTK_NOR_REG_PRGDATA_MAX + 1)) in mtk_nor_match_prg() 233 if (tx_len > MTK_NOR_REG_PRGDATA_MAX + 1) in mtk_nor_match_prg() 237 prg_left = MTK_NOR_PRG_CNT_MAX / 8 - tx_len - op->dummy.nbytes; in mtk_nor_match_prg() 246 prg_len = tx_len + op->dummy.nbytes + rx_len; in mtk_nor_match_prg() 250 prg_len = tx_len + op->dummy.nbytes; in mtk_nor_match_prg() 259 int tx_len, tx_left, prg_left; in mtk_nor_adj_prg_size() local [all …]
|
D | spi-mpc512x-psc.c | 148 size_t tx_len = t->len; in mpc512x_psc_spi_transfer_rxtx() local 156 while (rx_len || tx_len) { in mpc512x_psc_spi_transfer_rxtx() 168 txcount = min(fifosz, tx_len); in mpc512x_psc_spi_transfer_rxtx() 177 if (tx_len == EOFBYTE && t->cs_change) in mpc512x_psc_spi_transfer_rxtx() 181 tx_len--; in mpc512x_psc_spi_transfer_rxtx() 225 if (tx_len) in mpc512x_psc_spi_transfer_rxtx() 258 if (!tx_len && rx_len && !rxtries) { in mpc512x_psc_spi_transfer_rxtx() 274 if (!tx_len && !rx_len) { in mpc512x_psc_spi_transfer_rxtx()
|
D | spi-microchip-core.c | 112 int tx_len; member 218 fifo_max = DIV_ROUND_UP(min(spi->tx_len, FIFO_DEPTH), spi->n_bytes); in mchp_corespi_write_fifo() 237 spi->tx_len -= i * spi->n_bytes; in mchp_corespi_write_fifo() 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() 505 spi->tx_len = xfer->len; in mchp_corespi_transfer_one() 515 while (spi->tx_len) in mchp_corespi_transfer_one()
|
D | spi-microchip-core-qspi.c | 122 int tx_len; member 205 while (qspi->tx_len >= 4) { in mchp_coreqspi_write_op() 210 qspi->tx_len -= 4; in mchp_coreqspi_write_op() 217 while (qspi->tx_len--) { in mchp_coreqspi_write_op() 415 qspi->tx_len = op->cmd.nbytes; in mchp_coreqspi_exec_op() 426 qspi->tx_len = op->addr.nbytes; in mchp_coreqspi_exec_op() 436 qspi->tx_len = op->data.nbytes; in mchp_coreqspi_exec_op() 442 qspi->tx_len = 0; in mchp_coreqspi_exec_op()
|
D | spi-dw-core.c | 124 rxtx_gap = dws->fifo_len - (dws->rx_len - dws->tx_len); in dw_spi_tx_max() 126 return min3((u32)dws->tx_len, tx_room, rxtx_gap); in dw_spi_tx_max() 152 --dws->tx_len; in dw_writer() 244 if (!dws->tx_len) in dw_spi_transfer_handler() 366 level = min_t(unsigned int, dws->fifo_len / 2, dws->tx_len); in dw_spi_irq_setup() 400 delay.value = nbits * (dws->rx_len - dws->tx_len); in dw_spi_poll_transfer() 428 dws->tx_len = transfer->len / dws->n_bytes; in dw_spi_transfer_one() 430 dws->rx_len = dws->tx_len; in dw_spi_transfer_one() 532 dws->tx_len = len; in dw_spi_init_mem_buf() 561 len = min(dws->fifo_len, dws->tx_len); in dw_spi_write_then_read() [all …]
|
D | spi-stm32.c | 353 int tx_len; member 594 if ((spi->tx_len > 0) && (readl_relaxed(spi->base + STM32FX_SPI_SR) & in stm32f4_spi_write_tx() 596 u32 offs = spi->cur_xferlen - spi->tx_len; in stm32f4_spi_write_tx() 602 spi->tx_len -= sizeof(u16); in stm32f4_spi_write_tx() 607 spi->tx_len -= sizeof(u8); in stm32f4_spi_write_tx() 611 dev_dbg(spi->dev, "%s: %d bytes left\n", __func__, spi->tx_len); in stm32f4_spi_write_tx() 623 if ((spi->tx_len > 0) && (readl_relaxed(spi->base + STM32FX_SPI_SR) & in stm32f7_spi_write_tx() 625 u32 offs = spi->cur_xferlen - spi->tx_len; in stm32f7_spi_write_tx() 627 if (spi->tx_len >= sizeof(u16)) { in stm32f7_spi_write_tx() 631 spi->tx_len -= sizeof(u16); in stm32f7_spi_write_tx() [all …]
|
D | spi-sunplus-sp7021.c | 184 unsigned int tx_len, rx_cnt; in sp7021_spi_host_irq() local 191 tx_len = FIELD_GET(SP7021_TX_LEN_MASK, fd_status); in sp7021_spi_host_irq() 197 if (tx_len == 0 && total_len == 0) in sp7021_spi_host_irq() 204 tx_cnt = min(tx_len - pspim->tx_cur_len, pspim->data_unit - tx_cnt); in sp7021_spi_host_irq() 206 fd_status, rx_cnt, tx_cnt, tx_len); in sp7021_spi_host_irq() 214 tx_len = FIELD_GET(SP7021_TX_LEN_MASK, fd_status); in sp7021_spi_host_irq() 217 if (fd_status & SP7021_FINISH_FLAG || tx_len == pspim->tx_cur_len) { in sp7021_spi_host_irq()
|
D | spi-bcm2835.c | 130 int tx_len; member 234 while ((bs->tx_len) && in bcm2835_wr_fifo() 238 bs->tx_len--; in bcm2835_wr_fifo() 283 bs->tx_len -= count; in bcm2835_wr_fifo_count() 340 count = min(count, bs->tx_len); in bcm2835_wr_fifo_blind() 341 bs->tx_len -= count; in bcm2835_wr_fifo_blind() 392 if (bs->tx_len && cs & BCM2835_SPI_CS_DONE) in bcm2835_spi_interrupt() 799 bcm2835_wr(bs, BCM2835_SPI_DLEN, bs->tx_len); in bcm2835_spi_transfer_one_dma() 1035 bs->tx_len, bs->rx_len); in bcm2835_spi_transfer_one_poll() 1087 bs->tx_len = tfr->len; in bcm2835_spi_transfer_one()
|
/linux-6.12.1/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-6.12.1/drivers/bluetooth/ |
D | hci_mrvl.c | 43 unsigned int tx_len; member 184 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req() 321 mrvl->tx_len); in mrvl_load_firmware() 328 if (!mrvl->tx_len) { in mrvl_load_firmware() 337 if (fw_ptr + mrvl->tx_len > fw_max) { in mrvl_load_firmware() 338 mrvl->tx_len = fw_max - fw_ptr; in mrvl_load_firmware() 340 mrvl->tx_len); in mrvl_load_firmware() 343 skb = bt_skb_alloc(mrvl->tx_len, GFP_KERNEL); in mrvl_load_firmware() 351 skb_put_data(skb, fw_ptr, mrvl->tx_len); in mrvl_load_firmware() 352 fw_ptr += mrvl->tx_len; in mrvl_load_firmware()
|
/linux-6.12.1/drivers/net/wireless/st/cw1200/ |
D | bh.c | 343 size_t tx_len; in cw1200_bh_tx_helper() local 362 ret = wsm_get_tx(priv, &data, &tx_len, tx_burst); in cw1200_bh_tx_helper() 371 BUG_ON(tx_len < sizeof(*wsm)); in cw1200_bh_tx_helper() 372 BUG_ON(__le16_to_cpu(wsm->len) != tx_len); in cw1200_bh_tx_helper() 376 tx_len = priv->hwbus_ops->align_size( in cw1200_bh_tx_helper() 377 priv->hwbus_priv, tx_len); in cw1200_bh_tx_helper() 380 if (WARN_ON_ONCE(tx_len > EFFECTIVE_BUF_SIZE)) in cw1200_bh_tx_helper() 381 pr_debug("Write aligned len: %zu\n", tx_len); in cw1200_bh_tx_helper() 386 if (WARN_ON(cw1200_data_write(priv, data, tx_len))) { in cw1200_bh_tx_helper() 387 pr_err("tx blew up, len %zu\n", tx_len); in cw1200_bh_tx_helper()
|
/linux-6.12.1/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-6.12.1/drivers/fpga/ |
D | lattice-sysconfig.h | 30 size_t tx_len, void *rx_buf, size_t rx_len); 33 const char *tx_buf, size_t tx_len);
|
/linux-6.12.1/drivers/gpu/drm/ |
D | drm_mipi_dsi.c | 564 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet() 565 packet->header[2] = (msg->tx_len >> 8) & 0xff; in mipi_dsi_create_packet() 567 packet->payload_length = msg->tx_len; in mipi_dsi_create_packet() 572 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet() 573 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet() 594 .tx_len = 2, in mipi_dsi_shutdown_peripheral() 616 .tx_len = 2, in mipi_dsi_turn_on_peripheral() 640 .tx_len = sizeof(tx), in mipi_dsi_set_maximum_return_packet_size() 669 .tx_len = sizeof(tx), in mipi_dsi_compression_mode_ext() 719 .tx_len = sizeof(*pps), in mipi_dsi_picture_parameter_set() [all …]
|
/linux-6.12.1/drivers/usb/gadget/udc/ |
D | aspeed_udc.c | 475 u16 tx_len, struct ast_udc_request *req) in ast_dma_descriptor_setup() argument 489 chunk = tx_len; in ast_dma_descriptor_setup() 494 "tx_len", tx_len); in ast_dma_descriptor_setup() 532 u32 tx_len; in ast_udc_epn_kick() local 536 tx_len = last > ep->ep.maxpacket ? ep->ep.maxpacket : last; in ast_udc_epn_kick() 539 req, tx_len, ep->dir_in); in ast_udc_epn_kick() 544 ast_ep_write(ep, EP_DMA_SET_TX_SIZE(tx_len), AST_UDC_EP_DMA_STS); in ast_udc_epn_kick() 545 ast_ep_write(ep, EP_DMA_SET_TX_SIZE(tx_len) | EP_DMA_SINGLE_KICK, in ast_udc_epn_kick() 553 u32 tx_len; in ast_udc_epn_kick_desc() local 559 tx_len = last > descs_max_size ? descs_max_size : last; in ast_udc_epn_kick_desc() [all …]
|
/linux-6.12.1/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-6.12.1/drivers/staging/media/av7110/ |
D | sp8870.c | 104 int tx_len; in sp8870_firmware_upload() local 124 tx_len = (fw_pos <= SP8870_FIRMWARE_SIZE + SP8870_FIRMWARE_OFFSET - 252) ? 252 : in sp8870_firmware_upload() 129 memcpy(&tx_buf[2], fw_buf + fw_pos, tx_len); in sp8870_firmware_upload() 133 msg.len = tx_len + 2; in sp8870_firmware_upload() 140 fw_pos += tx_len; in sp8870_firmware_upload()
|
/linux-6.12.1/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-6.12.1/drivers/media/rc/ |
D | ir_toy.c | 71 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()
|