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()
998 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_init() local
1002 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_init()
1003 queue_group->q = kcalloc(num_qs, sizeof(*queue_group->q), GFP_KERNEL); in mlxsw_pci_queue_group_init()
1004 if (!queue_group->q) in mlxsw_pci_queue_group_init()
1009 &queue_group->q[i], i); in mlxsw_pci_queue_group_init()
1013 queue_group->count = num_qs; in mlxsw_pci_queue_group_init()
1019 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_init()
1020 kfree(queue_group->q); in mlxsw_pci_queue_group_init()
1027 struct mlxsw_pci_queue_type_group *queue_group; in mlxsw_pci_queue_group_fini() local
1030 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_fini()
1031 for (i = 0; i < queue_group->count; i++) in mlxsw_pci_queue_group_fini()
1032 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_fini()
1033 kfree(queue_group->q); in mlxsw_pci_queue_group_fini()