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()
914 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_init() local
918 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_init()
919 queue_group->q = kcalloc(num_qs, sizeof(*queue_group->q), GFP_KERNEL); in mlxsw_pci_queue_group_init()
920 if (!queue_group->q) in mlxsw_pci_queue_group_init()
925 &queue_group->q[i], i); in mlxsw_pci_queue_group_init()
929 queue_group->count = num_qs; in mlxsw_pci_queue_group_init()
935 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_init()
936 kfree(queue_group->q); in mlxsw_pci_queue_group_init()
943 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_fini() local
946 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_fini()
947 for (i = 0; i < queue_group->count; i++) in mlxsw_pci_queue_group_fini()
948 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_fini()
949 kfree(queue_group->q); in mlxsw_pci_queue_group_fini()