Home
last modified time | relevance | path

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

/drivers/net/ethernet/amazon/ena/
Dena_com.h172 struct ena_com_io_bounce_buffer_control bounce_buf_ctrl; member
974 …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
979 size = bounce_buf_ctrl->buffer_size; in ena_com_get_next_bounce_buffer()
980 buffers_num = bounce_buf_ctrl->buffers_num; in ena_com_get_next_bounce_buffer()
982 buf = bounce_buf_ctrl->base_buffer + in ena_com_get_next_bounce_buffer()
983 (bounce_buf_ctrl->next_to_use++ & (buffers_num - 1)) * size; in ena_com_get_next_bounce_buffer()
985 prefetchw(bounce_buf_ctrl->base_buffer + in ena_com_get_next_bounce_buffer()
986 (bounce_buf_ctrl->next_to_use & (buffers_num - 1)) * size); in ena_com_get_next_bounce_buffer()
Dena_com.c349 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.next_to_use = 0; in ena_com_init_io_sq()
355 size = io_sq->bounce_buf_ctrl.buffer_size * in ena_com_init_io_sq()
356 io_sq->bounce_buf_ctrl.buffers_num; in ena_com_init_io_sq()
360 io_sq->bounce_buf_ctrl.base_buffer = in ena_com_init_io_sq()
363 if (!io_sq->bounce_buf_ctrl.base_buffer) in ena_com_init_io_sq()
364 io_sq->bounce_buf_ctrl.base_buffer = in ena_com_init_io_sq()
367 if (!io_sq->bounce_buf_ctrl.base_buffer) { in ena_com_init_io_sq()
377 ena_com_get_next_bounce_buffer(&io_sq->bounce_buf_ctrl); in ena_com_init_io_sq()
[all …]
Dena_eth_com.c156 ena_com_get_next_bounce_buffer(&io_sq->bounce_buf_ctrl); in ena_com_close_bounce_buffer()
187 ena_com_get_next_bounce_buffer(&io_sq->bounce_buf_ctrl); in ena_com_sq_update_llq_tail()