| /linux/drivers/hid/ |
| H A D | hid-goodix-spi.c | 395 int tx_len = 0, args_len = 0; in goodix_hid_get_raw_report() local 421 tx_len += GOODIX_HID_ACK_HEADER_SIZE; in goodix_hid_get_raw_report() 423 put_unaligned_le16(cmd_register, tmp_buf + tx_len); in goodix_hid_get_raw_report() 424 tx_len += sizeof(cmd_register); in goodix_hid_get_raw_report() 426 tmp_buf[tx_len] = (report_type == HID_FEATURE_REPORT ? 0x03 : 0x01) << 4; in goodix_hid_get_raw_report() 427 tmp_buf[tx_len] |= reportnum >= 0x0F ? 0x0F : reportnum; in goodix_hid_get_raw_report() 428 tx_len++; in goodix_hid_get_raw_report() 430 tmp_buf[tx_len++] = GOODIX_HID_GET_REPORT_CMD; in goodix_hid_get_raw_report() 432 memcpy(tmp_buf + tx_len, args, args_len); in goodix_hid_get_raw_report() 433 tx_len += args_len; in goodix_hid_get_raw_report() [all …]
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | bmi.c | 177 u32 len_remain, tx_len; in ath6kl_bmi_write() local 212 tx_len = len_remain; in ath6kl_bmi_write() 214 tx_len = (ar->bmi.max_data_size - header); in ath6kl_bmi_write() 222 memcpy(&(ar->bmi.cmd_buf[offset]), &tx_len, sizeof(tx_len)); in ath6kl_bmi_write() 223 offset += sizeof(tx_len); in ath6kl_bmi_write() 224 memcpy(&(ar->bmi.cmd_buf[offset]), src, tx_len); in ath6kl_bmi_write() 225 offset += tx_len; in ath6kl_bmi_write() 233 len_remain -= tx_len; addr += tx_len; in ath6kl_bmi_write() 410 u32 len_remain, tx_len; in ath6kl_bmi_lz_data() local 431 tx_len = (len_remain < (ar->bmi.max_data_size - header)) ? in ath6kl_bmi_lz_data() [all …]
|
| /linux/drivers/iio/dac/ |
| H A 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/drivers/bluetooth/ |
| H A 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/drivers/spi/ |
| H A 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() 229 qspi->rx_len = qspi->tx_len; in mchp_coreqspi_write_read_op() 235 while (qspi->tx_len >= 4) { in mchp_coreqspi_write_read_op() 242 qspi->tx_len -= 4; in mchp_coreqspi_write_read_op() 284 if (!qspi->tx_len) in mchp_coreqspi_write_read_op() 290 while (qspi->tx_len--) { in mchp_coreqspi_write_read_op() 489 qspi->tx_len = op->cmd.nbytes; in mchp_coreqspi_exec_op() [all …]
|
| H A 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()
|
| H A 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() 369 level = min_t(unsigned int, dws->fifo_len / 2, dws->tx_len); in dw_spi_irq_setup() 403 delay.value = nbits * (dws->rx_len - dws->tx_len); in dw_spi_poll_transfer() 431 dws->tx_len = transfer->len / dws->n_bytes; in dw_spi_transfer_one() 433 dws->rx_len = dws->tx_len; in dw_spi_transfer_one() 547 dws->tx_len = len; in dw_spi_init_mem_buf() 576 len = min(dws->fifo_len, dws->tx_len); in dw_spi_write_then_read() [all …]
|
| H A D | spi-mpfs.c | 111 int tx_len; member 240 spi->tx_len -= i * spi->n_bytes; in mpfs_spi_write_fifo() 424 spi->rx_len, spi->tx_len); in mpfs_spi_interrupt() 432 spi->rx_len, spi->tx_len); in mpfs_spi_interrupt() 495 spi->tx_len = xfer->len; in mpfs_spi_transfer_one() 505 while (spi->tx_len) { in mpfs_spi_transfer_one() 506 int fifo_max = DIV_ROUND_UP(min(spi->tx_len, FIFO_DEPTH), spi->n_bytes); in mpfs_spi_transfer_one()
|
| H A 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()
|
| H A D | spi-hisi-kunpeng.c | 133 unsigned int tx_len; member 250 u32 max = min_t(u32, hs->tx_len, hs->fifo_len); in hisi_spi_writer() 270 --hs->tx_len; in hisi_spi_writer() 391 hs->tx_len = transfer->len / hs->n_bytes; in hisi_spi_transfer_one() 393 hs->rx_len = hs->tx_len; in hisi_spi_transfer_one()
|
| H A D | spi-sun6i.c | 284 unsigned int tx_len = 0, rx_len = 0, nbits = 0; in sun6i_spi_transfer_one() local 438 tx_len = tfr->len; in sun6i_spi_transfer_one() 453 reg = FIELD_PREP(SUN6I_BURST_CTL_CNT_STC_MASK, tx_len); in sun6i_spi_transfer_one() 459 sun6i_spi_write(sspi, SUN6I_XMIT_CNT_REG, tx_len); in sun6i_spi_transfer_one() 480 if (tx_len > sspi->cfg->fifo_depth) in sun6i_spi_transfer_one()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_mipi_dsi.c | 568 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet() 569 packet->header[2] = (msg->tx_len >> 8) & 0xff; in mipi_dsi_create_packet() 571 packet->payload_length = msg->tx_len; in mipi_dsi_create_packet() 576 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet() 577 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet() 598 .tx_len = 2, in mipi_dsi_shutdown_peripheral() 620 .tx_len = 2, in mipi_dsi_turn_on_peripheral() 644 .tx_len = sizeof(tx), in mipi_dsi_set_maximum_return_packet_size() 673 .tx_len = sizeof(tx), in mipi_dsi_compression_mode_ext() 723 .tx_len = sizeof(*pps), in mipi_dsi_picture_parameter_set() [all …]
|
| /linux/drivers/usb/gadget/udc/ |
| H A 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/drivers/fpga/ |
| H A 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);
|
| H A D | lattice-sysconfig-spi.c | 14 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()
|
| /linux/drivers/staging/media/av7110/ |
| H A 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/drivers/media/rc/ |
| H A 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()
|
| /linux/drivers/leds/ |
| H A D | leds-ipaq-micro.c | 39 .tx_len = 4, in micro_leds_brightness_set() 76 .tx_len = 4, in micro_leds_blink_set()
|
| /linux/drivers/peci/ |
| H A D | request.c | 190 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()
|
| /linux/drivers/gpu/drm/sun4i/ |
| H A 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/drivers/firmware/ |
| H A D | arm_scpi.c | 229 unsigned int tx_len; member 433 memcpy_toio(ch->tx_payload, t->tx_buf, t->tx_len); in scpi_tx_prepare() 435 memcpy_toio(mem->payload, t->tx_buf, t->tx_len); in scpi_tx_prepare() 473 static int scpi_send_message(u8 idx, void *tx_buf, unsigned int tx_len, in scpi_send_message() argument 499 msg->cmd = PACK_LEGACY_SCPI_CMD(cmd, tx_len); in scpi_send_message() 503 msg->cmd = PACK_SCPI_CMD(cmd, tx_len); in scpi_send_message() 506 msg->tx_len = tx_len; in scpi_send_message()
|
| /linux/drivers/input/rmi4/ |
| H A D | rmi_spi.c | 114 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()
|
| /linux/drivers/gpu/drm/bridge/cadence/ |
| H A D | cdns-dsi-core.c | 1117 int ret, i, tx_len, rx_len; in cdns_dsi_transfer() local 1129 tx_len = msg->tx_buf ? msg->tx_len : 0; in cdns_dsi_transfer() 1133 if (rx_len && tx_len > 2) { in cdns_dsi_transfer() 1139 if (tx_len > dsi->direct_cmd_fifo_depth) { in cdns_dsi_transfer() 1150 cmd = CMD_SIZE(tx_len) | CMD_VCHAN_ID(msg->channel) | in cdns_dsi_transfer() 1174 for (i = 0; i < tx_len; i += 4) { in cdns_dsi_transfer() 1179 for (j = 0; j < 4 && j + i < tx_len; j++) in cdns_dsi_transfer()
|
| /linux/drivers/video/backlight/ |
| H A D | ipaq_micro_bl.c | 21 .tx_len = 3, in micro_bl_update_status()
|
| /linux/drivers/net/hamradio/ |
| H A D | yam.c | 123 int tx_len; member 669 yp->tx_len = skb->len - 1; /* strip KISS byte */ in yam_tx_byte() 670 if (yp->tx_len >= YAM_MAX_FRAME || yp->tx_len < 2) { in yam_tx_byte() 676 yp->tx_len); in yam_tx_byte() 690 if (yp->tx_count >= yp->tx_len) { in yam_tx_byte()
|