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()
898 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_init() local
902 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_init()
903 queue_group->q = kcalloc(num_qs, sizeof(*queue_group->q), GFP_KERNEL); in mlxsw_pci_queue_group_init()
904 if (!queue_group->q) in mlxsw_pci_queue_group_init()
909 &queue_group->q[i], i); in mlxsw_pci_queue_group_init()
913 queue_group->count = num_qs; in mlxsw_pci_queue_group_init()
919 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_init()
920 kfree(queue_group->q); in mlxsw_pci_queue_group_init()
927 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_fini() local
930 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_fini()
931 for (i = 0; i < queue_group->count; i++) in mlxsw_pci_queue_group_fini()
932 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_fini()
933 kfree(queue_group->q); in mlxsw_pci_queue_group_fini()