Home
last modified time | relevance | path

Searched refs:bounce_buf_ctrl (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/amazon/ena/
Dena_com.h169 struct ena_com_io_bounce_buffer_control bounce_buf_ctrl; member
1071 …inline u8 *ena_com_get_next_bounce_buffer(struct ena_com_io_bounce_buffer_control *bounce_buf_ctrl) in ena_com_get_next_bounce_buffer() argument
1076 size = bounce_buf_ctrl->buffer_size; in ena_com_get_next_bounce_buffer()
1077 buffers_num = bounce_buf_ctrl->buffers_num; in ena_com_get_next_bounce_buffer()
1079 buf = bounce_buf_ctrl->base_buffer + in ena_com_get_next_bounce_buffer()
1080 (bounce_buf_ctrl->next_to_use++ & (buffers_num - 1)) * size; in ena_com_get_next_bounce_buffer()
1082 prefetchw(bounce_buf_ctrl->base_buffer + in ena_com_get_next_bounce_buffer()
1083 (bounce_buf_ctrl->next_to_use & (buffers_num - 1)) * size); in ena_com_get_next_bounce_buffer()
Dena_com.c344 io_sq->bounce_buf_ctrl.buffer_size = in ena_com_init_io_sq()
346 io_sq->bounce_buf_ctrl.buffers_num = in ena_com_init_io_sq()
348 io_sq->bounce_buf_ctrl.next_to_use = 0; in ena_com_init_io_sq()
350 size = (size_t)io_sq->bounce_buf_ctrl.buffer_size * in ena_com_init_io_sq()
351 io_sq->bounce_buf_ctrl.buffers_num; in ena_com_init_io_sq()
353 io_sq->bounce_buf_ctrl.base_buffer = devm_kzalloc(ena_dev->dmadev, size, GFP_KERNEL); in ena_com_init_io_sq()
354 if (!io_sq->bounce_buf_ctrl.base_buffer) in ena_com_init_io_sq()
355 io_sq->bounce_buf_ctrl.base_buffer = in ena_com_init_io_sq()
358 if (!io_sq->bounce_buf_ctrl.base_buffer) { in ena_com_init_io_sq()
368 ena_com_get_next_bounce_buffer(&io_sq->bounce_buf_ctrl); in ena_com_init_io_sq()
[all …]
Dena_eth_com.c160 ena_com_get_next_bounce_buffer(&io_sq->bounce_buf_ctrl); in ena_com_close_bounce_buffer()
194 ena_com_get_next_bounce_buffer(&io_sq->bounce_buf_ctrl); in ena_com_sq_update_llq_tail()