Home
last modified time | relevance | path

Searched refs:data_max (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/staging/greybus/
Dspilib.c50 static int tx_header_fit_operation(u32 tx_size, u32 count, size_t data_max) in tx_header_fit_operation() argument
54 data_max -= sizeof(struct gb_spi_transfer_request); in tx_header_fit_operation()
57 return tx_size + headers_size > data_max ? 0 : 1; in tx_header_fit_operation()
61 size_t data_max) in calc_rx_xfer_size() argument
65 data_max -= sizeof(struct gb_spi_transfer_response); in calc_rx_xfer_size()
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()
82 size_t data_max) in calc_tx_xfer_size() argument
86 data_max -= sizeof(struct gb_spi_transfer_request); in calc_tx_xfer_size()
89 if (tx_size + headers_size + len > data_max) in calc_tx_xfer_size()
[all …]
Dsdio.c25 size_t data_max; member
120 u16 data_max; in gb_sdio_get_caps() local
135 data_max = gb_operation_get_payload_size_max(host->connection); in gb_sdio_get_caps()
136 data_max = min(data_max - sizeof(struct gb_sdio_transfer_request), in gb_sdio_get_caps()
137 data_max - sizeof(struct gb_sdio_transfer_response)); in gb_sdio_get_caps()
139 blksz = min_t(u16, le16_to_cpu(response.max_blk_size), data_max); in gb_sdio_get_caps()
144 host->data_max = data_max; in gb_sdio_get_caps()
268 WARN_ON(len > host->data_max); in _gb_sdio_send()
322 WARN_ON(len > host->data_max); in _gb_sdio_recv()
385 len = min(left, host->data_max); in gb_sdio_transfer()