Lines Matching refs:q_ops
1238 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_init() argument
1246 if (q_ops->pre_init) in mlxsw_pci_queue_init()
1247 q_ops->pre_init(mlxsw_pci, q); in mlxsw_pci_queue_init()
1250 q->count = q_ops->elem_count_f ? q_ops->elem_count_f(q) : in mlxsw_pci_queue_init()
1251 q_ops->elem_count; in mlxsw_pci_queue_init()
1252 q->elem_size = q_ops->elem_size_f ? q_ops->elem_size_f(q) : in mlxsw_pci_queue_init()
1253 q_ops->elem_size; in mlxsw_pci_queue_init()
1254 q->type = q_ops->type; in mlxsw_pci_queue_init()
1282 err = q_ops->init(mlxsw_pci, mbox, q); in mlxsw_pci_queue_init()
1296 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_fini() argument
1301 q_ops->fini(mlxsw_pci, q); in mlxsw_pci_queue_fini()
1308 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_group_init() argument
1315 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_init()
1321 err = mlxsw_pci_queue_init(mlxsw_pci, mbox, q_ops, in mlxsw_pci_queue_group_init()
1332 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_init()
1338 const struct mlxsw_pci_queue_ops *q_ops) in mlxsw_pci_queue_group_fini() argument
1343 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_fini()
1345 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_fini()