Lines Matching refs:q_ops

808 				const struct mlxsw_pci_queue_ops *q_ops,  in mlxsw_pci_queue_init()  argument
816 if (q_ops->pre_init) in mlxsw_pci_queue_init()
817 q_ops->pre_init(mlxsw_pci, q); in mlxsw_pci_queue_init()
820 q->count = q_ops->elem_count_f ? q_ops->elem_count_f(q) : in mlxsw_pci_queue_init()
821 q_ops->elem_count; in mlxsw_pci_queue_init()
822 q->elem_size = q_ops->elem_size_f ? q_ops->elem_size_f(q) : in mlxsw_pci_queue_init()
823 q_ops->elem_size; in mlxsw_pci_queue_init()
824 q->type = q_ops->type; in mlxsw_pci_queue_init()
827 if (q_ops->tasklet) in mlxsw_pci_queue_init()
828 tasklet_init(&q->tasklet, q_ops->tasklet, (unsigned long) q); in mlxsw_pci_queue_init()
856 err = q_ops->init(mlxsw_pci, mbox, q); in mlxsw_pci_queue_init()
870 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_fini() argument
875 q_ops->fini(mlxsw_pci, q); in mlxsw_pci_queue_fini()
882 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_group_init() argument
889 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_init()
895 err = mlxsw_pci_queue_init(mlxsw_pci, mbox, q_ops, 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()
912 const struct mlxsw_pci_queue_ops *q_ops) in mlxsw_pci_queue_group_fini() argument
917 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); 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()