Lines Matching refs:queue_group
186 struct mlxsw_pci_queue_type_group *queue_group; in __mlxsw_pci_queue_count() local
188 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_type); in __mlxsw_pci_queue_count()
189 return queue_group->count; in __mlxsw_pci_queue_count()
966 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_init() local
970 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_init()
971 queue_group->q = kcalloc(num_qs, sizeof(*queue_group->q), GFP_KERNEL); in mlxsw_pci_queue_group_init()
972 if (!queue_group->q) in mlxsw_pci_queue_group_init()
977 &queue_group->q[i], i); in mlxsw_pci_queue_group_init()
981 queue_group->count = num_qs; in mlxsw_pci_queue_group_init()
987 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_init()
988 kfree(queue_group->q); in mlxsw_pci_queue_group_init()
995 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_fini() local
998 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_fini()
999 for (i = 0; i < queue_group->count; i++) in mlxsw_pci_queue_group_fini()
1000 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_fini()
1001 kfree(queue_group->q); in mlxsw_pci_queue_group_fini()