/linux/drivers/media/i2c/s5c73m3/ |
H A D | s5c73m3-spi.c | 63 const unsigned int len, const unsigned int tx_size) in s5c73m3_spi_write() argument 66 u32 count = len / tx_size; in s5c73m3_spi_write() 67 u32 extra = len % tx_size; in s5c73m3_spi_write() 75 r = spi_xmit(spi_dev, (void *)addr + j, tx_size, SPI_DIR_TX); in s5c73m3_spi_write() 78 j += tx_size; in s5c73m3_spi_write() 91 const unsigned int len, const unsigned int tx_size) in s5c73m3_spi_read() argument 94 u32 count = len / tx_size; in s5c73m3_spi_read() 95 u32 extra = len % tx_size; in s5c73m3_spi_read() 100 r = spi_xmit(spi_dev, addr + j, tx_size, SPI_DIR_RX); in s5c73m3_spi_read() 103 j += tx_size; in s5c73m3_spi_read()
|
H A D | s5c73m3.h | 426 const unsigned int len, const unsigned int tx_size); 428 const unsigned int len, const unsigned int tx_size);
|
/linux/drivers/staging/greybus/ |
H A D | spilib.c | 50 static int tx_header_fit_operation(u32 tx_size, u32 count, size_t data_max) in tx_header_fit_operation() argument 57 return tx_size + headers_size > data_max ? 0 : 1; in tx_header_fit_operation() 81 static size_t calc_tx_xfer_size(u32 tx_size, u32 count, size_t len, in calc_tx_xfer_size() argument 89 if (tx_size + headers_size + len > data_max) in calc_tx_xfer_size() 90 return data_max - (tx_size + sizeof(struct gb_spi_transfer)); in calc_tx_xfer_size() 170 u32 tx_size = 0, rx_size = 0, count = 0, xfer_len = 0, request_size; in gb_spi_operation_create() local 198 if (!tx_header_fit_operation(tx_size, count, data_max)) in gb_spi_operation_create() 200 tx_xfer_size = calc_tx_xfer_size(tx_size, count, in gb_spi_operation_create() 212 tx_size += tx_xfer_size; in gb_spi_operation_create() 229 request_size += tx_size; in gb_spi_operation_create()
|
/linux/drivers/media/dvb-frontends/cxd2880/ |
H A D | cxd2880_spi_device.c | 43 u32 tx_size, in cxd2880_spi_device_write_read() argument 51 !tx_size || !rx_data || !rx_size) in cxd2880_spi_device_write_read() 57 tx_size, rx_data, rx_size); in cxd2880_spi_device_write_read()
|
H A D | cxd2880_spi.h | 28 const u8 *tx_data, u32 tx_size,
|
/linux/tools/testing/selftests/bpf/ |
H A D | xsk.c | 135 cfg->tx_size = XSK_RING_PROD__DEFAULT_NUM_DESCS; in xsk_set_xdp_socket_config() 141 cfg->tx_size = usr_cfg->tx_size; in xsk_set_xdp_socket_config() 608 &xsk->config.tx_size, in xsk_socket__create_shared() 609 sizeof(xsk->config.tx_size)); in xsk_socket__create_shared() 647 xsk->config.tx_size * sizeof(struct xdp_desc), in xsk_socket__create_shared() 655 tx->mask = xsk->config.tx_size - 1; in xsk_socket__create_shared() 656 tx->size = xsk->config.tx_size; in xsk_socket__create_shared() 665 tx->cached_cons = *tx->consumer + xsk->config.tx_size; in xsk_socket__create_shared() 693 xsk->config.tx_size * sizeof(struct xdp_desc)); in xsk_socket__create_shared() 770 off.tx.desc + xsk->config.tx_size * desc_sz); in xsk_socket__delete()
|
/linux/drivers/input/rmi4/ |
H A D | rmi_i2c.c | 85 size_t tx_size = len + 1; in rmi_i2c_write_block() local 90 if (!rmi_i2c->tx_buf || rmi_i2c->tx_buf_size < tx_size) { in rmi_i2c_write_block() 93 rmi_i2c->tx_buf_size = tx_size + BUFFER_SIZE_INCREMENT; in rmi_i2c_write_block() 113 retval = i2c_master_send(client, rmi_i2c->tx_buf, tx_size); in rmi_i2c_write_block() 114 if (retval == tx_size) in rmi_i2c_write_block()
|
/linux/sound/soc/intel/avs/ |
H A D | messages.c | 273 size_t remaining, tx_size; in avs_ipc_set_large_config() local 278 tx_size = min_t(size_t, AVS_MAILBOX_SIZE, remaining); in avs_ipc_set_large_config() 279 final = (tx_size == remaining); in avs_ipc_set_large_config() 283 param_id, 1, final, request, tx_size, in avs_ipc_set_large_config() 288 remaining -= tx_size; in avs_ipc_set_large_config() 295 tx_size = min_t(size_t, AVS_MAILBOX_SIZE, remaining); in avs_ipc_set_large_config() 296 final = (tx_size == remaining); in avs_ipc_set_large_config() 300 request + offset, tx_size, in avs_ipc_set_large_config() 305 remaining -= tx_size; in avs_ipc_set_large_config()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | atombios_dp.c | 134 size_t tx_size; in amdgpu_atombios_dp_aux_transfer() local 152 tx_size = HEADER_SIZE + msg->size; in amdgpu_atombios_dp_aux_transfer() 156 tx_buf[3] |= tx_size << 4; in amdgpu_atombios_dp_aux_transfer() 159 tx_buf, tx_size, NULL, 0, delay, &ack); in amdgpu_atombios_dp_aux_transfer() 169 tx_size = HEADER_SIZE; in amdgpu_atombios_dp_aux_transfer() 173 tx_buf[3] |= tx_size << 4; in amdgpu_atombios_dp_aux_transfer() 175 tx_buf, tx_size, msg->buffer, msg->size, delay, &ack); in amdgpu_atombios_dp_aux_transfer()
|
/linux/drivers/firmware/arm_scmi/ |
H A D | raw_mode.c | 242 size_t tx_size; member 531 size_t tx_size; in scmi_xfer_raw_get_init() local 539 tx_size = len - sizeof(u32); in scmi_xfer_raw_get_init() 541 if (tx_size > raw->desc->max_msg_size) in scmi_xfer_raw_get_init() 557 xfer->tx.len = tx_size; in scmi_xfer_raw_get_init() 809 if (count > rd->tx.len - rd->tx_size) in scmi_dbg_raw_mode_common_write() 813 if (!rd->tx_size) in scmi_dbg_raw_mode_common_write() 820 if (rd->tx_size < rd->tx_req_size) { in scmi_dbg_raw_mode_common_write() 828 rd->tx_size += cnt; in scmi_dbg_raw_mode_common_write() 833 ret = scmi_raw_message_send(rd->raw, rd->tx.buf, rd->tx_size, in scmi_dbg_raw_mode_common_write() [all …]
|
H A D | protocols.h | 272 size_t tx_size, void *priv); 303 size_t tx_size, size_t rx_size,
|
/linux/drivers/gpu/drm/radeon/ |
H A D | atombios_dp.c | 165 size_t tx_size; in radeon_dp_aux_transfer_atom() local 191 tx_size = HEADER_SIZE + msg->size; in radeon_dp_aux_transfer_atom() 195 tx_buf[3] |= tx_size << 4; in radeon_dp_aux_transfer_atom() 198 tx_buf, tx_size, NULL, 0, delay, &ack); in radeon_dp_aux_transfer_atom() 208 tx_size = HEADER_SIZE; in radeon_dp_aux_transfer_atom() 212 tx_buf[3] |= tx_size << 4; in radeon_dp_aux_transfer_atom() 214 tx_buf, tx_size, msg->buffer, msg->size, delay, &ack); in radeon_dp_aux_transfer_atom()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mbox.c | 64 mbox->tx_size = MBOX_DOWN_TX_SIZE; in otx2_mbox_setup() 71 mbox->tx_size = MBOX_DOWN_RX_SIZE; in otx2_mbox_setup() 78 mbox->tx_size = MBOX_UP_TX_SIZE; in otx2_mbox_setup() 85 mbox->tx_size = MBOX_UP_RX_SIZE; in otx2_mbox_setup() 314 if ((mdev->msg_size + size) > mbox->tx_size - msgs_offset) in otx2_mbox_alloc_msg_rsp()
|
/linux/drivers/net/wireless/st/cw1200/ |
H A D | fwio.c | 181 size_t tx_size; in cw1200_load_firmware_cw1200() local 208 tx_size = block_size = min_t(size_t, firmware->size - put, in cw1200_load_firmware_cw1200() 215 tx_size = DOWNLOAD_BLOCK_SIZE; in cw1200_load_firmware_cw1200() 222 buf, tx_size); in cw1200_load_firmware_cw1200()
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_dma.c | 29 uart_xmit_advance(&p->port, dma->tx_size); in __dma_tx_complete() 120 dma->tx_size = 0; in serial8250_tx_dma() 123 dma->tx_size += sg_dma_len(sg); in serial8250_tx_dma()
|
H A D | 8250_bcm7271.c | 225 size_t tx_size; member 417 u32 tx_size; in brcmuart_tx_dma() local 425 tx_size = uart_fifo_out(&p->port, priv->tx_buf, UART_XMIT_SIZE); in brcmuart_tx_dma() 430 udma_writel(priv, REGS_DMA_TX, UDMA_TX_TRANSFER_LEN, tx_size); in brcmuart_tx_dma() 431 udma_writel(priv, REGS_DMA_TX, UDMA_TX_BUF0_DATA_LEN, tx_size); in brcmuart_tx_dma() 898 dma_free_coherent(dev, priv->tx_size, priv->tx_buf, in brcmuart_free_bufs() 1077 priv->tx_size = UART_XMIT_SIZE; in brcmuart_probe() 1079 priv->tx_size, in brcmuart_probe()
|
/linux/drivers/media/dvb-frontends/ |
H A D | tda1004x.c | 312 int tx_size; in tda1004x_do_upload() local 323 tx_size = len - pos; in tda1004x_do_upload() 324 if (tx_size > 0x10) in tda1004x_do_upload() 325 tx_size = 0x10; in tda1004x_do_upload() 328 memcpy(buf + 1, mem + pos, tx_size); in tda1004x_do_upload() 329 fw_msg.len = tx_size + 1; in tda1004x_do_upload() 335 pos += tx_size; in tda1004x_do_upload()
|
/linux/drivers/spi/ |
H A D | spi-mt65xx.c | 955 u32 reg_val, nio, tx_size; in mtk_spi_mem_exec_op() local 1015 tx_size = 1 + op->addr.nbytes + op->dummy.nbytes; in mtk_spi_mem_exec_op() 1017 tx_size += op->data.nbytes; in mtk_spi_mem_exec_op() 1019 tx_size = max_t(u32, tx_size, 32); in mtk_spi_mem_exec_op() 1021 tx_tmp_buf = kzalloc(tx_size, GFP_KERNEL | GFP_DMA); in mtk_spi_mem_exec_op() 1048 tx_size, DMA_TO_DEVICE); in mtk_spi_mem_exec_op() 1111 tx_size, DMA_TO_DEVICE); in mtk_spi_mem_exec_op()
|
/linux/drivers/target/iscsi/ |
H A D | iscsi_target_util.c | 1099 int tx_sent, tx_size; in iscsit_send_tx_data() local 1104 tx_size = cmd->tx_size; in iscsit_send_tx_data() 1114 tx_sent = tx_data(conn, &iov[0], iov_count, tx_size); in iscsit_send_tx_data() 1115 if (tx_size != tx_sent) { in iscsit_send_tx_data() 1122 cmd->tx_size = 0; in iscsit_send_tx_data() 1156 data_len = cmd->tx_size - tx_hdr_size - cmd->padding; in iscsit_fe_sendpage_sg()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
H A D | sdk.h | 103 unsigned int tx_size; member
|
/linux/drivers/net/fjes/ |
H A D | fjes_trace.h | 101 __field(size_t, tx_size) 112 __entry->tx_size = buf_pair->tx.size; 120 __entry->length, __entry->epid, __entry->tx, __entry->tx_size,
|
/linux/sound/soc/sof/ |
H A D | ipc4.c | 456 size_t tx_size, rx_size; in sof_ipc4_set_get_data() local 476 tx_size = chunk_size; in sof_ipc4_set_get_data() 484 tx_size = 0; in sof_ipc4_set_get_data() 489 ret = ipc4_tx_msg_unlocked(sdev->ipc, &tx, tx_size, &rx, rx_size); in sof_ipc4_set_get_data()
|
/linux/drivers/net/ethernet/ibm/emac/ |
H A D | core.c | 466 static u32 __emac_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_size) in __emac_calc_base_mr1() argument 472 switch(tx_size) { in __emac_calc_base_mr1() 478 dev->ndev->name, tx_size); in __emac_calc_base_mr1() 496 static u32 __emac4_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_size) in __emac4_calc_base_mr1() argument 503 switch(tx_size) { in __emac4_calc_base_mr1() 518 dev->ndev->name, tx_size); in __emac4_calc_base_mr1() 542 static u32 emac_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_size) in emac_calc_base_mr1() argument 545 __emac4_calc_base_mr1(dev, tx_size, rx_size) : in emac_calc_base_mr1() 546 __emac_calc_base_mr1(dev, tx_size, rx_size); in emac_calc_base_mr1() 570 int tx_size, rx_size, link = netif_carrier_ok(dev->ndev); in emac_configure() local [all …]
|
/linux/drivers/net/ethernet/tehuti/ |
H A D | tehuti.c | 2231 static inline int bdx_tx_fifo_size_to_packets(int tx_size) in bdx_tx_fifo_size_to_packets() argument 2233 return (FIFO_SIZE * (1 << tx_size)) / BDX_TXF_DESC_SZ; in bdx_tx_fifo_size_to_packets() 2271 int tx_size = 0; in bdx_set_ringparam() local 2280 for (; tx_size < 4; tx_size++) { in bdx_set_ringparam() 2281 if (bdx_tx_fifo_size_to_packets(tx_size) >= ring->tx_pending) in bdx_set_ringparam() 2284 if (tx_size == 4) in bdx_set_ringparam() 2285 tx_size = 3; in bdx_set_ringparam() 2289 (tx_size == priv->txd_size)) in bdx_set_ringparam() 2298 priv->txf_size = priv->txd_size = tx_size; in bdx_set_ringparam()
|
/linux/drivers/net/ethernet/atheros/ |
H A D | ag71xx.c | 1298 int ring_size, tx_size; in ag71xx_rings_init() local 1301 tx_size = BIT(tx->order); in ag71xx_rings_init() 1316 rx->buf = &tx->buf[tx_size]; in ag71xx_rings_init() 1317 rx->descs_cpu = ((void *)tx->descs_cpu) + tx_size * AG71XX_DESC_SIZE; in ag71xx_rings_init() 1318 rx->descs_dma = tx->descs_dma + tx_size * AG71XX_DESC_SIZE; in ag71xx_rings_init() 1791 int tx_size, err, i; in ag71xx_probe() local 1864 tx_size = AG71XX_TX_RING_SIZE_DEFAULT; in ag71xx_probe() 1876 tx_size *= AG71XX_TX_RING_DS_PER_PKT; in ag71xx_probe() 1878 ag->tx_ring.order = ag71xx_ring_size_order(tx_size); in ag71xx_probe()
|