/linux/drivers/firmware/imx/ |
H A D | imx-scu.c | 45 u8 rx_size; member 129 sc_ipc->rx_size = hdr->size; in imx_scu_rx_callback() 132 for (i = 1; i < sc_ipc->rx_size; i++) in imx_scu_rx_callback() 142 sc_ipc->rx_size = hdr->size; in imx_scu_rx_callback() 143 dev_dbg(sc_ipc->dev, "msg rx size %u\n", sc_ipc->rx_size); in imx_scu_rx_callback() 144 if (sc_ipc->rx_size > 4) in imx_scu_rx_callback() 146 sc_ipc->rx_size); in imx_scu_rx_callback() 155 if ((sc_ipc->rx_size != 0) && (sc_ipc->count == sc_ipc->rx_size)) in imx_scu_rx_callback()
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_dma.c | 58 count = dma->rx_size - state.residue; in __dma_rx_complete() 163 dma->rx_size, DMA_DEV_TO_MEM, in serial8250_rx_dma() 254 if (!dma->rx_size) in serial8250_request_dma() 255 dma->rx_size = PAGE_SIZE; in serial8250_request_dma() 257 dma->rx_buf = dma_alloc_coherent(dma->rxchan->device->dev, dma->rx_size, in serial8250_request_dma() 270 dma_free_coherent(dma->rxchan->device->dev, dma->rx_size, in serial8250_request_dma() 296 dma_free_coherent(dma->rxchan->device->dev, dma->rx_size, dma->rx_buf, in serial8250_release_dma()
|
H A D | 8250_mtk.c | 108 total = dma->rx_size - state.residue; in mtk8250_dma_rx_complete() 111 if ((data->rx_pos + cnt) > dma->rx_size) in mtk8250_dma_rx_complete() 112 cnt = dma->rx_size - data->rx_pos; in mtk8250_dma_rx_complete() 140 dma->rx_size, DMA_DEV_TO_MEM, in mtk8250_rx_dma() 164 dma->rxconf.src_port_window_size = dma->rx_size; in mtk8250_dma_enable() 507 data->dma->rx_size = MTK_UART_RX_SIZE; in mtk8250_probe_of()
|
H A D | 8250_omap.c | 151 u32 rx_size; member 948 count = dma->rx_size - state.residue + state.in_flight_bytes; in __dma_rx_do_complete() 949 if (count < dma->rx_size) { in __dma_rx_do_complete() 1068 dma->rx_size, DMA_DEV_TO_MEM, in omap_8250_rx_dma() 1375 .rx_size = SZ_2K, 1381 .rx_size = RX_TRIGGER, 1569 dma->rx_size = dma_params->rx_size; in omap8250_probe() 1575 dma->rx_size = RX_TRIGGER; in omap8250_probe()
|
/linux/sound/soc/sof/ |
H A D | ipc4.c | 456 size_t tx_size, rx_size; in sof_ipc4_set_get_data() local 477 rx_size = 0; in sof_ipc4_set_get_data() 485 rx_size = chunk_size; 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() 499 rx_size = rx.extension & SOF_IPC4_MOD_EXT_MSG_SIZE_MASK; in sof_ipc4_set_get_data() 501 if (rx_size > payload_bytes) { in sof_ipc4_set_get_data() 504 __func__, payload_bytes, rx_size); in sof_ipc4_set_get_data() 509 if (rx_size < chunk_size) { in sof_ipc4_set_get_data() 510 chunk_size = rx_size; in sof_ipc4_set_get_data() 511 remaining = rx_size; in sof_ipc4_set_get_data() [all …]
|
/linux/drivers/media/dvb-frontends/cxd2880/ |
H A D | cxd2880_spi_device.c | 45 u32 rx_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 | 29 u8 *rx_data, u32 rx_size);
|
/linux/drivers/staging/greybus/ |
H A D | spilib.c | 60 static size_t calc_rx_xfer_size(u32 rx_size, u32 *tx_xfer_size, u32 len, in calc_rx_xfer_size() argument 67 if (rx_size + len > data_max) in calc_rx_xfer_size() 68 rx_xfer_size = data_max - rx_size; in calc_rx_xfer_size() 170 u32 tx_size = 0, rx_size = 0, count = 0, xfer_len = 0, request_size; in gb_spi_operation_create() local 207 rx_xfer_size = calc_rx_xfer_size(rx_size, &tx_xfer_size, in gb_spi_operation_create() 213 rx_size += rx_xfer_size; in gb_spi_operation_create() 233 request_size, rx_size, GFP_KERNEL); in gb_spi_operation_create()
|
/linux/tools/testing/selftests/bpf/ |
H A D | xsk.c | 134 cfg->rx_size = XSK_RING_CONS__DEFAULT_NUM_DESCS; in xsk_set_xdp_socket_config() 140 cfg->rx_size = usr_cfg->rx_size; in xsk_set_xdp_socket_config() 597 &xsk->config.rx_size, in xsk_socket__create_shared() 598 sizeof(xsk->config.rx_size)); in xsk_socket__create_shared() 626 xsk->config.rx_size * sizeof(struct xdp_desc), in xsk_socket__create_shared() 634 rx->mask = xsk->config.rx_size - 1; in xsk_socket__create_shared() 635 rx->size = xsk->config.rx_size; in xsk_socket__create_shared() 697 xsk->config.rx_size * sizeof(struct xdp_desc)); in xsk_socket__create_shared() 766 off.rx.desc + xsk->config.rx_size * desc_sz); in xsk_socket__delete()
|
/linux/drivers/bluetooth/ |
H A D | btmtksdio.c | 448 static int btmtksdio_rx_packet(struct btmtksdio_dev *bdev, u16 rx_size) in btmtksdio_rx_packet() argument 457 if (rx_size < sizeof(*sdio_hdr)) in btmtksdio_rx_packet() 461 skb = bt_skb_alloc(rx_size, GFP_KERNEL); in btmtksdio_rx_packet() 465 skb_put(skb, rx_size); in btmtksdio_rx_packet() 467 err = sdio_readsb(bdev->func, skb->data, MTK_REG_CRDR, rx_size); in btmtksdio_rx_packet() 478 if (rx_size != le16_to_cpu(sdio_hdr->len)) { in btmtksdio_rx_packet() 535 bdev->hdev->stat.byte_rx += rx_size; in btmtksdio_rx_packet() 550 u32 int_status, rx_size; in btmtksdio_txrx_work() local 605 rx_size = sdio_readl(bdev->func, MTK_REG_CRPLR, NULL); in btmtksdio_txrx_work() 606 rx_size = (rx_size & RX_PKT_LEN) >> 16; in btmtksdio_txrx_work() [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mbox.c | 65 mbox->rx_size = MBOX_DOWN_RX_SIZE; in otx2_mbox_setup() 72 mbox->rx_size = MBOX_DOWN_TX_SIZE; in otx2_mbox_setup() 79 mbox->rx_size = MBOX_UP_RX_SIZE; in otx2_mbox_setup() 86 mbox->rx_size = MBOX_UP_TX_SIZE; in otx2_mbox_setup() 316 if ((mdev->rsp_size + size_rsp) > mbox->rx_size - msgs_offset) in otx2_mbox_alloc_msg_rsp()
|
/linux/drivers/target/iscsi/ |
H A D | iscsi_target.c | 1624 u32 checksum, iov_count = 0, padding = 0, rx_got = 0, rx_size = 0; in iscsit_get_dataout() local 1630 rx_size += payload_length; in iscsit_get_dataout() 1644 rx_size += padding; in iscsit_get_dataout() 1651 rx_size += ISCSI_CRC_LEN; in iscsit_get_dataout() 1655 rx_got = rx_data(conn, &cmd->iov_data[0], iov_count, rx_size); in iscsit_get_dataout() 1659 if (rx_got != rx_size) in iscsit_get_dataout() 1894 int niov = 0, rx_got, rx_size = payload_length; in iscsit_handle_nop_out() local 1912 rx_size += padding; in iscsit_handle_nop_out() 1917 rx_size += ISCSI_CRC_LEN; in iscsit_handle_nop_out() 1921 rx_got = rx_data(conn, &cmd->iov_misc[0], niov, rx_size); in iscsit_handle_nop_out() [all …]
|
/linux/drivers/net/ethernet/silan/ |
H A D | sc92031.c | 696 u32 rx_status, unsigned rx_size) in _sc92031_rx_tasklet_error() argument 698 if(rx_size > (MAX_ETH_FRAME_SIZE + 4) || rx_size < 16) { in _sc92031_rx_tasklet_error() 760 unsigned rx_size, rx_size_align, pkt_size; in _sc92031_rx_tasklet() local 766 rx_size = rx_status >> 20; in _sc92031_rx_tasklet() 767 rx_size_align = (rx_size + 3) & ~3; // for 4 bytes aligned in _sc92031_rx_tasklet() 768 pkt_size = rx_size - 4; // Omit the four octet CRC from the length. in _sc92031_rx_tasklet() 773 rx_size > (MAX_ETH_FRAME_SIZE + 4) || in _sc92031_rx_tasklet() 774 rx_size < 16 || in _sc92031_rx_tasklet() 776 _sc92031_rx_tasklet_error(dev, rx_status, rx_size); in _sc92031_rx_tasklet()
|
/linux/drivers/mailbox/ |
H A D | rockchip-mailbox.c | 27 int rx_size; member 61 if (msg->rx_size > mb->buf_size) { in rockchip_mbox_send_data() 73 writel_relaxed(msg->rx_size, mb->mbox_base + in rockchip_mbox_send_data()
|
/linux/drivers/firmware/arm_scmi/ |
H A D | raw_mode.c | 245 size_t rx_size; member 776 if (!rd->rx_size) { in scmi_dbg_raw_mode_common_read() 780 &rd->rx_size, idx, rd->chan_id, in scmi_dbg_raw_mode_common_read() 783 rd->rx_size = 0; in scmi_dbg_raw_mode_common_read() 789 } else if (*ppos == rd->rx_size) { in scmi_dbg_raw_mode_common_read() 791 rd->rx_size = 0; in scmi_dbg_raw_mode_common_read() 796 rd->rx.buf, rd->rx_size); in scmi_dbg_raw_mode_common_read()
|
/linux/drivers/net/ethernet/tehuti/ |
H A D | tehuti.c | 2225 static inline int bdx_rx_fifo_size_to_packets(int rx_size) in bdx_rx_fifo_size_to_packets() argument 2227 return (FIFO_SIZE * (1 << rx_size)) / sizeof(struct rxf_desc); in bdx_rx_fifo_size_to_packets() 2270 int rx_size = 0; in bdx_set_ringparam() local 2273 for (; rx_size < 4; rx_size++) { in bdx_set_ringparam() 2274 if (bdx_rx_fifo_size_to_packets(rx_size) >= ring->rx_pending) in bdx_set_ringparam() 2277 if (rx_size == 4) in bdx_set_ringparam() 2278 rx_size = 3; in bdx_set_ringparam() 2288 if ((rx_size == priv->rxf_size) && in bdx_set_ringparam() 2292 priv->rxf_size = rx_size; in bdx_set_ringparam() 2293 if (rx_size > 1) in bdx_set_ringparam() [all …]
|
/linux/drivers/net/ethernet/realtek/ |
H A D | 8139too.c | 1954 unsigned int rx_size = 0; in rtl8139_rx() local 1971 rx_size = rx_status >> 16; in rtl8139_rx() 1973 pkt_size = rx_size - 4; in rtl8139_rx() 1975 pkt_size = rx_size; in rtl8139_rx() 1978 __func__, rx_status, rx_size, cur_rx); in rtl8139_rx() 1989 if (unlikely(rx_size == 0xfff0)) { in rtl8139_rx() 1994 rx_size = 0; in rtl8139_rx() 2010 if (unlikely((rx_size > (MAX_ETH_FRAME_SIZE+4)) || in rtl8139_rx() 2011 (rx_size < 8) || in rtl8139_rx() 2014 (rx_size <= (MAX_ETH_FRAME_SIZE + 4)) && in rtl8139_rx() [all …]
|
/linux/drivers/net/wireless/ath/carl9170/ |
H A D | fw.c | 318 ar->fw.rx_size = le16_to_cpu(otus_desc->rx_max_frame_len); in carl9170_fw() 326 ar->fw.rx_size > 32768 || ar->fw.rx_size < 4096 || in carl9170_fw()
|
/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_mbox.c | 42 if (msg_size > mbox->rx_size - msgs_offset) in otx2_cpt_sync_mbox_bbuf() 43 msg_size = mbox->rx_size - msgs_offset; in otx2_cpt_sync_mbox_bbuf()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
H A D | sdk.h | 105 unsigned int rx_size; member
|
/linux/drivers/net/fjes/ |
H A D | fjes_trace.h | 103 __field(size_t, rx_size) 113 __entry->rx_size = buf_pair->rx.size; 121 __entry->rx, __entry->rx_size)
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_gmbus.c | 501 unsigned int rx_size = msg->len; in gmbus_xfer_read() local 507 len = min(rx_size, INTEL_GMBUS_BURST_READ_MAX_LEN); in gmbus_xfer_read() 509 len = min(rx_size, gmbus_max_xfer_size(display)); in gmbus_xfer_read() 516 rx_size -= len; in gmbus_xfer_read() 518 } while (rx_size != 0); in gmbus_xfer_read()
|
/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 481 switch(rx_size) { in __emac_calc_base_mr1() 490 dev->ndev->name, rx_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 521 switch(rx_size) { in __emac4_calc_base_mr1() 536 dev->ndev->name, rx_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/tty/serial/ |
H A D | samsung_tty.c | 121 size_t rx_size; member 519 dma->rx_size, DMA_FROM_DEVICE); in s3c24xx_uart_copy_rx_to_tty() 641 dma->rx_size, DMA_FROM_DEVICE); in s3c64xx_start_rx_dma() 644 dma->rx_addr, dma->rx_size, DMA_DEV_TO_MEM, in s3c64xx_start_rx_dma() 653 dma->rx_bytes_requested = dma->rx_size; in s3c64xx_start_rx_dma() 1102 dma->rx_size = PAGE_SIZE; in s3c24xx_serial_request_dma() 1104 dma->rx_buf = kmalloc(dma->rx_size, GFP_KERNEL); in s3c24xx_serial_request_dma() 1111 dma->rx_size, DMA_FROM_DEVICE); in s3c24xx_serial_request_dma() 1133 dma->rx_size, DMA_FROM_DEVICE); in s3c24xx_serial_request_dma() 1153 dma->rx_size, DMA_FROM_DEVICE); in s3c24xx_serial_release_dma()
|
H A D | ucc_uart.c | 967 unsigned int rx_size, tx_size; in qe_uart_request_port() local 988 rx_size = L1_CACHE_ALIGN(qe_port->rx_nrfifos * qe_port->rx_fifosize); in qe_uart_request_port() 991 bd_virt = dma_alloc_coherent(port->dev, rx_size + tx_size, &bd_dma_addr, in qe_uart_request_port() 1000 qe_port->bd_size = rx_size + tx_size; in qe_uart_request_port() 1003 qe_port->tx_buf = qe_port->rx_buf + rx_size; in qe_uart_request_port()
|