Lines Matching refs:queue_group
188 struct mlxsw_pci_queue_type_group *queue_group; in __mlxsw_pci_queue_count() local
190 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_type); in __mlxsw_pci_queue_count()
191 return queue_group->count; in __mlxsw_pci_queue_count()
1002 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_init() local
1006 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_init()
1007 queue_group->q = kcalloc(num_qs, sizeof(*queue_group->q), GFP_KERNEL); in mlxsw_pci_queue_group_init()
1008 if (!queue_group->q) in mlxsw_pci_queue_group_init()
1013 &queue_group->q[i], i); in mlxsw_pci_queue_group_init()
1017 queue_group->count = num_qs; in mlxsw_pci_queue_group_init()
1023 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_init()
1024 kfree(queue_group->q); in mlxsw_pci_queue_group_init()
1031 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_fini() local
1034 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_fini()
1035 for (i = 0; i < queue_group->count; i++) in mlxsw_pci_queue_group_fini()
1036 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_fini()
1037 kfree(queue_group->q); in mlxsw_pci_queue_group_fini()