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

/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
H A Dpci.c268 struct mlxsw_pci_queue_type_group *queue_group; __mlxsw_pci_queue_count() local
270 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_type); __mlxsw_pci_queue_count()
271 return queue_group->count; __mlxsw_pci_queue_count()
1004 struct mlxsw_pci_queue_type_group *queue_group; mlxsw_pci_queue_group_init() local
1009 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); mlxsw_pci_queue_group_init()
1010 queue_group->q = kcalloc(num_qs, sizeof(*queue_group->q), GFP_KERNEL); mlxsw_pci_queue_group_init()
1011 if (!queue_group->q) mlxsw_pci_queue_group_init()
1016 &queue_group->q[i], i); mlxsw_pci_queue_group_init()
1020 queue_group->count = num_qs; mlxsw_pci_queue_group_init()
1030 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); mlxsw_pci_queue_group_init()
1031 kfree(queue_group->q); mlxsw_pci_queue_group_init()
1038 struct mlxsw_pci_queue_type_group *queue_group; mlxsw_pci_queue_group_fini() local
1041 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); mlxsw_pci_queue_group_fini()
1042 for (i = 0; i < queue_group->count; i++) mlxsw_pci_queue_group_fini()
1043 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); mlxsw_pci_queue_group_fini()
1044 kfree(queue_group->q); mlxsw_pci_queue_group_fini()

Completed in 201 milliseconds