Lines Matching refs:slots
44 struct netmap_slot *slots; member
353 __builtin_prefetch(&ctx->slots[ctx->nm_i]); in ena_netmap_tx_frames()
470 uint16_t slots = 1; in ena_netmap_count_slots() local
473 while ((ctx->slots[nm].flags & NS_MOREFRAG) != 0) { in ena_netmap_count_slots()
474 slots++; in ena_netmap_count_slots()
478 return slots; in ena_netmap_count_slots()
482 ena_netmap_packet_len(struct netmap_slot *slots, u_int slot_index, in ena_netmap_packet_len() argument
489 nm_slot = &slots[slot_index]; in ena_netmap_packet_len()
498 ena_netmap_copy_data(struct netmap_adapter *na, struct netmap_slot *slots, in ena_netmap_copy_data() argument
506 nm_slot = &slots[slot_index]; in ena_netmap_copy_data()
573 slot = &ctx->slots[ctx->nm_i]; in ena_netmap_tx_map_slots()
576 *packet_len = ena_netmap_packet_len(ctx->slots, ctx->nm_i, ctx->lim); in ena_netmap_tx_map_slots()
580 __builtin_prefetch(&ctx->slots[nm_next(ctx->nm_i, ctx->lim)]); in ena_netmap_tx_map_slots()
608 rc = ena_netmap_copy_data(ctx->na, ctx->slots, in ena_netmap_tx_map_slots()
657 slot = &ctx->slots[ctx->nm_i]; in ena_netmap_tx_map_slots()
667 __builtin_prefetch(&ctx->slots[nm_next(ctx->nm_i, ctx->lim)]); in ena_netmap_tx_map_slots()
708 slot = &ctx->slots[ctx->nm_i]; in ena_netmap_tx_map_slots()
725 __builtin_prefetch(&ctx->slots[nm_next(ctx->nm_i, ctx->lim)]); in ena_netmap_tx_map_slots()
750 slot = &ctx->slots[ctx->nm_i]; in ena_netmap_tx_map_slots()
787 ctx->slots[ctx->nm_i].buf_idx = nm_info->socket_buf_idx[n]; in ena_netmap_unmap_last_socket_chain()
788 ctx->slots[ctx->nm_i].flags = NS_BUF_CHANGED; in ena_netmap_unmap_last_socket_chain()
852 ENA_WARN(ctx->slots[ctx->nm_i].buf_idx != 0, in ena_netmap_tx_clean_one()
854 ctx->slots[ctx->nm_i].buf_idx = nm_info->socket_buf_idx[n]; in ena_netmap_tx_clean_one()
855 ctx->slots[ctx->nm_i].flags = NS_BUF_CHANGED; in ena_netmap_tx_clean_one()
967 ctx->slots[nm_prev(ctx->nm_i, ctx->lim)].flags &= ~NS_MOREFRAG; in ena_netmap_rx_frame()
990 ctx->slots[nm].flags = 0; in ena_netmap_rx_frame()
991 ctx->slots[nm].len = 0; in ena_netmap_rx_frame()
1010 ENA_WARN(ctx->slots[ctx->nm_i].buf_idx != 0, ctx->adapter->ena_dev, in ena_netmap_rx_load_desc()
1013 ctx->slots[ctx->nm_i].buf_idx = rx_info->netmap_buf_idx; in ena_netmap_rx_load_desc()
1019 ctx->slots[ctx->nm_i].flags |= NS_MOREFRAG | NS_BUF_CHANGED; in ena_netmap_rx_load_desc()
1020 ctx->slots[ctx->nm_i].len = ctx->ring->ena_bufs[buf].len; in ena_netmap_rx_load_desc()
1021 *len += ctx->slots[ctx->nm_i].len; in ena_netmap_rx_load_desc()
1025 ctx->slots[ctx->nm_i].buf_idx, (uintmax_t)rx_info->ena_buf.paddr, in ena_netmap_rx_load_desc()
1061 ctx->slots = kring->ring->slot; in ena_netmap_fill_ctx()