Lines Matching refs:q_ops
931 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_init() argument
940 q->count = q_ops->elem_count; in mlxsw_pci_queue_init()
941 q->elem_size = q_ops->elem_size; in mlxsw_pci_queue_init()
942 q->type = q_ops->type; in mlxsw_pci_queue_init()
945 if (q_ops->tasklet) in mlxsw_pci_queue_init()
946 tasklet_init(&q->tasklet, q_ops->tasklet, (unsigned long) q); in mlxsw_pci_queue_init()
970 __mlxsw_pci_queue_elem_get(q, q_ops->elem_size, i); in mlxsw_pci_queue_init()
974 err = q_ops->init(mlxsw_pci, mbox, q); in mlxsw_pci_queue_init()
988 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_fini() argument
993 q_ops->fini(mlxsw_pci, q); in mlxsw_pci_queue_fini()
1000 const struct mlxsw_pci_queue_ops *q_ops, in mlxsw_pci_queue_group_init() argument
1009 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_init()
1015 err = mlxsw_pci_queue_init(mlxsw_pci, mbox, q_ops, in mlxsw_pci_queue_group_init()
1022 sprintf(tmp, "%s_stats", mlxsw_pci_queue_type_str(q_ops->type)); in mlxsw_pci_queue_group_init()
1024 q_ops->dbg_read); in mlxsw_pci_queue_group_init()
1030 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_init()
1036 const struct mlxsw_pci_queue_ops *q_ops) in mlxsw_pci_queue_group_fini() argument
1041 queue_group = mlxsw_pci_queue_type_group_get(mlxsw_pci, q_ops->type); in mlxsw_pci_queue_group_fini()
1043 mlxsw_pci_queue_fini(mlxsw_pci, q_ops, &queue_group->q[i]); in mlxsw_pci_queue_group_fini()