Lines Matching refs:queue_group
185 struct mlxsw_pci_queue_type_group *queue_group; in __mlxsw_pci_queue_count() local
187 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_type); in __mlxsw_pci_queue_count()
188 return queue_group->count; in __mlxsw_pci_queue_count()
885 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_init() local
889 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_init()
890 queue_group->q = kcalloc(num_qs, sizeof(*queue_group->q), GFP_KERNEL); in mlxsw_pci_queue_group_init()
891 if (!queue_group->q) in mlxsw_pci_queue_group_init()
896 &queue_group->q[i], i); in mlxsw_pci_queue_group_init()
900 queue_group->count = num_qs; in mlxsw_pci_queue_group_init()
906 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_init()
907 kfree(queue_group->q); in mlxsw_pci_queue_group_init()
914 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_fini() local
917 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_fini()
918 for (i = 0; i < queue_group->count; i++) in mlxsw_pci_queue_group_fini()
919 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_fini()
920 kfree(queue_group->q); in mlxsw_pci_queue_group_fini()