Home
last modified time | relevance | path

Searched refs:qpl_cfg (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/
H A Dgve.h207 struct gve_qpl_config qpl_cfg; /* map used QPL ids */ member
456 int id = find_first_zero_bit(priv->qpl_cfg.qpl_id_map, in gve_assign_tx_qpl()
457 priv->qpl_cfg.qpl_map_size); in gve_assign_tx_qpl()
463 set_bit(id, priv->qpl_cfg.qpl_id_map); in gve_assign_tx_qpl()
472 int id = find_next_zero_bit(priv->qpl_cfg.qpl_id_map, in gve_assign_rx_qpl()
473 priv->qpl_cfg.qpl_map_size, in gve_assign_rx_qpl()
480 set_bit(id, priv->qpl_cfg.qpl_id_map); in gve_assign_rx_qpl()
488 clear_bit(id, priv->qpl_cfg.qpl_id_map); in gve_unassign_qpl()
H A Dgve_main.c715 priv->qpl_cfg.qpl_map_size = BITS_TO_LONGS(num_qpls) * in gve_alloc_qpls()
717 priv->qpl_cfg.qpl_id_map = kvzalloc(BITS_TO_LONGS(num_qpls) * in gve_alloc_qpls()
719 if (!priv->qpl_cfg.qpl_id_map) { in gve_alloc_qpls()
738 kvfree(priv->qpl_cfg.qpl_id_map); in gve_free_qpls()
/kernel/linux/linux-6.6/drivers/net/ethernet/google/gve/
H A Dgve.h661 struct gve_qpl_config qpl_cfg; /* map used QPL ids */ member
972 if (test_bit(id, priv->qpl_cfg.qpl_id_map)) in gve_assign_tx_qpl()
975 set_bit(id, priv->qpl_cfg.qpl_id_map); in gve_assign_tx_qpl()
987 if (test_bit(id, priv->qpl_cfg.qpl_id_map)) in gve_assign_rx_qpl()
990 set_bit(id, priv->qpl_cfg.qpl_id_map); in gve_assign_rx_qpl()
998 clear_bit(id, priv->qpl_cfg.qpl_id_map); in gve_unassign_qpl()
H A Dgve_main.c1127 priv->qpl_cfg.qpl_map_size = BITS_TO_LONGS(max_queues) * in gve_alloc_qpls()
1129 priv->qpl_cfg.qpl_id_map = kvcalloc(BITS_TO_LONGS(max_queues), in gve_alloc_qpls()
1131 if (!priv->qpl_cfg.qpl_id_map) { in gve_alloc_qpls()
1164 kvfree(priv->qpl_cfg.qpl_id_map); in gve_free_qpls()
1165 priv->qpl_cfg.qpl_id_map = NULL; in gve_free_qpls()

Completed in 17 milliseconds