Home
last modified time | relevance | path

Searched refs:tx_size (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.3-rc2/drivers/media/i2c/s5c73m3/
A Ds5c73m3-spi.c63 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()
A Ds5c73m3.h426 const unsigned int len, const unsigned int tx_size);
428 const unsigned int len, const unsigned int tx_size);
/linux-6.3-rc2/drivers/staging/greybus/
A Dspilib.c50 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-6.3-rc2/drivers/media/dvb-frontends/cxd2880/
A Dcxd2880_spi_device.c43 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()
A Dcxd2880_spi.h28 const u8 *tx_data, u32 tx_size,
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dxsk.c125 cfg->tx_size = XSK_RING_PROD__DEFAULT_NUM_DESCS; in xsk_set_xdp_socket_config()
131 cfg->tx_size = usr_cfg->tx_size; in xsk_set_xdp_socket_config()
472 &xsk->config.tx_size, in xsk_socket__create_shared()
473 sizeof(xsk->config.tx_size)); in xsk_socket__create_shared()
511 xsk->config.tx_size * sizeof(struct xdp_desc), in xsk_socket__create_shared()
519 tx->mask = xsk->config.tx_size - 1; in xsk_socket__create_shared()
520 tx->size = xsk->config.tx_size; in xsk_socket__create_shared()
529 tx->cached_cons = *tx->consumer + xsk->config.tx_size; in xsk_socket__create_shared()
557 xsk->config.tx_size * sizeof(struct xdp_desc)); in xsk_socket__create_shared()
634 off.tx.desc + xsk->config.tx_size * desc_sz); in xsk_socket__delete()
/linux-6.3-rc2/drivers/input/rmi4/
A Drmi_i2c.c85 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-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Datombios_dp.c134 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-6.3-rc2/sound/soc/intel/avs/
A Dmessages.c336 size_t remaining, tx_size; in avs_ipc_set_large_config() local
341 tx_size = min_t(size_t, AVS_MAILBOX_SIZE, remaining); in avs_ipc_set_large_config()
342 final = (tx_size == remaining); in avs_ipc_set_large_config()
346 param_id, 1, final, request, tx_size, in avs_ipc_set_large_config()
351 remaining -= tx_size; in avs_ipc_set_large_config()
358 tx_size = min_t(size_t, AVS_MAILBOX_SIZE, remaining); in avs_ipc_set_large_config()
359 final = (tx_size == remaining); in avs_ipc_set_large_config()
363 request + offset, tx_size, in avs_ipc_set_large_config()
368 remaining -= tx_size; in avs_ipc_set_large_config()
/linux-6.3-rc2/drivers/firmware/arm_scmi/
A Draw_mode.c242 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()
825 rd->tx_size += cnt; in scmi_dbg_raw_mode_common_write()
830 ret = scmi_raw_message_send(rd->raw, rd->tx.buf, rd->tx_size, in scmi_dbg_raw_mode_common_write()
[all …]
A Dprotocols.h263 size_t tx_size, void *priv);
290 size_t tx_size, size_t rx_size,
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/af/
A Dmbox.c64 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()
272 if ((mdev->msg_size + size) > mbox->tx_size - msgs_offset) in otx2_mbox_alloc_msg_rsp()
/linux-6.3-rc2/drivers/gpu/drm/radeon/
A Datombios_dp.c165 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-6.3-rc2/drivers/net/wireless/st/cw1200/
A Dfwio.c181 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-6.3-rc2/drivers/tty/serial/8250/
A D8250_bcm7271.c226 size_t tx_size; member
418 u32 tx_size; in brcmuart_tx_dma() local
424 tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in brcmuart_tx_dma()
427 memcpy(priv->tx_buf, &xmit->buf[xmit->tail], tx_size); in brcmuart_tx_dma()
428 uart_xmit_advance(&p->port, tx_size); in brcmuart_tx_dma()
433 udma_writel(priv, REGS_DMA_TX, UDMA_TX_TRANSFER_LEN, tx_size); in brcmuart_tx_dma()
434 udma_writel(priv, REGS_DMA_TX, UDMA_TX_BUF0_DATA_LEN, tx_size); in brcmuart_tx_dma()
878 dma_free_coherent(dev, priv->tx_size, priv->tx_buf, in brcmuart_free_bufs()
1079 priv->tx_size = UART_XMIT_SIZE; in brcmuart_probe()
1081 priv->tx_size, in brcmuart_probe()
A D8250_dma.c29 uart_xmit_advance(&p->port, dma->tx_size); in __dma_tx_complete()
110 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in serial8250_tx_dma()
116 dma->tx_size, DMA_MEM_TO_DEV, in serial8250_tx_dma()
/linux-6.3-rc2/sound/soc/intel/skylake/
A Dskl-sst-ipc.c281 size_t tx_size) in skl_ipc_tx_data_copy() argument
283 if (tx_size) in skl_ipc_tx_data_copy()
284 memcpy(msg->tx.data, tx_data, tx_size); in skl_ipc_tx_data_copy()
921 size_t sz_remaining, tx_size, data_offset; in skl_ipc_set_large_config() local
937 tx_size = sz_remaining > SKL_ADSP_W1_SZ in skl_ipc_set_large_config()
939 if (tx_size == sz_remaining) in skl_ipc_set_large_config()
945 (unsigned)data_offset, (unsigned)tx_size); in skl_ipc_set_large_config()
949 request.size = tx_size; in skl_ipc_set_large_config()
956 sz_remaining -= tx_size; in skl_ipc_set_large_config()
/linux-6.3-rc2/drivers/media/dvb-frontends/
A Dtda1004x.c312 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-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/fpga/
A Dsdk.h103 unsigned int tx_size; member
/linux-6.3-rc2/sound/soc/sof/
A Dipc4.c442 size_t tx_size, rx_size; in sof_ipc4_set_get_data() local
462 tx_size = chunk_size; in sof_ipc4_set_get_data()
470 tx_size = 0; in sof_ipc4_set_get_data()
475 ret = ipc4_tx_msg_unlocked(sdev->ipc, &tx, tx_size, &rx, rx_size); in sof_ipc4_set_get_data()
/linux-6.3-rc2/drivers/spi/
A Dspi-mt65xx.c945 u32 reg_val, nio, tx_size; in mtk_spi_mem_exec_op() local
1005 tx_size = 1 + op->addr.nbytes + op->dummy.nbytes; in mtk_spi_mem_exec_op()
1007 tx_size += op->data.nbytes; in mtk_spi_mem_exec_op()
1009 tx_size = max_t(u32, tx_size, 32); in mtk_spi_mem_exec_op()
1011 tx_tmp_buf = kzalloc(tx_size, GFP_KERNEL | GFP_DMA); in mtk_spi_mem_exec_op()
1038 tx_size, DMA_TO_DEVICE); in mtk_spi_mem_exec_op()
1101 tx_size, DMA_TO_DEVICE); in mtk_spi_mem_exec_op()
/linux-6.3-rc2/drivers/target/iscsi/
A Discsi_target_util.c1048 int tx_sent, tx_size; in iscsit_send_tx_data() local
1053 tx_size = cmd->tx_size; in iscsit_send_tx_data()
1063 tx_sent = tx_data(conn, &iov[0], iov_count, tx_size); in iscsit_send_tx_data()
1064 if (tx_size != tx_sent) { in iscsit_send_tx_data()
1071 cmd->tx_size = 0; in iscsit_send_tx_data()
1103 data_len = cmd->tx_size - tx_hdr_size - cmd->padding; in iscsit_fe_sendpage_sg()
/linux-6.3-rc2/drivers/net/fjes/
A Dfjes_trace.h101 __field(size_t, tx_size)
112 __entry->tx_size = buf_pair->tx.size;
120 __entry->length, __entry->epid, __entry->tx, __entry->tx_size,
/linux-6.3-rc2/drivers/net/ethernet/ibm/emac/
A Dcore.c480 switch(tx_size) { in __emac_calc_base_mr1()
486 dev->ndev->name, tx_size); in __emac_calc_base_mr1()
511 switch(tx_size) { in __emac4_calc_base_mr1()
526 dev->ndev->name, tx_size); in __emac4_calc_base_mr1()
553 __emac4_calc_base_mr1(dev, tx_size, rx_size) : in emac_calc_base_mr1()
554 __emac_calc_base_mr1(dev, tx_size, rx_size); in emac_calc_base_mr1()
597 tx_size = dev->tx_fifo_size; in emac_configure()
625 tx_size = dev->tx_fifo_size_gige; in emac_configure()
663 mr1 |= emac_calc_base_mr1(dev, tx_size, rx_size); in emac_configure()
684 tx_size / 2 / dev->fifo_entry_size); in emac_configure()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/tehuti/
A Dtehuti.c2231 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()

Completed in 80 milliseconds

123