Lines Matching refs:buffer
49 * Keeping RX TX buffer size as 4K for now
81 struct mutex rx_lock; /* lock to protect Rx buffer */
82 struct mutex tx_lock; /* lock to protect Tx buffer */
188 /* buffer must be sizeof(struct ffa_partition_info) * num_partitions */
191 struct ffa_partition_info *buffer, int num_partitions)
197 (!buffer || !num_partitions)) /* Just get the count for now */
216 if (sz > sizeof(*buffer))
217 buf_sz = sizeof(*buffer);
223 if (buffer && count <= num_partitions)
225 memcpy(buffer + idx, drv_info->rx_buffer + idx * sz,
235 /* buffer is allocated and caller must free the same if returned count > 0 */
237 ffa_partition_probe(const uuid_t *uuid, struct ffa_partition_info **buffer)
258 *buffer = pbuf;
414 ffa_setup_and_transmit(u32 func_id, void *buffer, u32 max_fragsize,
423 struct ffa_mem_region *mem_region = buffer;
444 composite = buffer + COMPOSITE_OFFSET(args->nattrs);
455 addr = virt_to_phys(buffer);
459 constituents = buffer + frag_len;
472 constituents = buffer;
475 if ((void *)constituents - buffer > max_fragsize) {
494 void *buffer;
497 buffer = alloc_pages_exact(RXTX_BUFFER_SIZE, GFP_KERNEL);
498 if (!buffer)
501 buffer = drv_info->tx_buffer;
505 ret = ffa_setup_and_transmit(func_id, buffer, RXTX_BUFFER_SIZE, args);
510 free_pages_exact(buffer, RXTX_BUFFER_SIZE);
570 struct ffa_partition_info *buffer)
585 memcpy(buffer, pbuf, sizeof(*pbuf) * count);