Lines Matching refs:q_ops
838 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_init() argument
846 if (q_ops->pre_init) in mlxsw_pci_queue_init()
847 q_ops->pre_init(mlxsw_pci, q); in mlxsw_pci_queue_init()
850 q->count = q_ops->elem_count_f ? q_ops->elem_count_f(q) : in mlxsw_pci_queue_init()
851 q_ops->elem_count; in mlxsw_pci_queue_init()
852 q->elem_size = q_ops->elem_size_f ? q_ops->elem_size_f(q) : in mlxsw_pci_queue_init()
853 q_ops->elem_size; in mlxsw_pci_queue_init()
854 q->type = q_ops->type; in mlxsw_pci_queue_init()
857 if (q_ops->tasklet) in mlxsw_pci_queue_init()
858 tasklet_setup(&q->tasklet, q_ops->tasklet); in mlxsw_pci_queue_init()
885 err = q_ops->init(mlxsw_pci, mbox, q); in mlxsw_pci_queue_init()
899 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_fini() argument
904 q_ops->fini(mlxsw_pci, q); in mlxsw_pci_queue_fini()
911 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_group_init() argument
918 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_init()
924 err = mlxsw_pci_queue_init(mlxsw_pci, mbox, q_ops, in mlxsw_pci_queue_group_init()
935 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_init()
941 const struct mlxsw_pci_queue_ops *q_ops) in mlxsw_pci_queue_group_fini() argument
946 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_fini()
948 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_fini()