Lines Matching refs:qp_grp
188 struct usnic_ib_qp_grp *qp_grp; in usnic_ib_qpn_attr_show() local
191 qp_grp = container_of(kobj, struct usnic_ib_qp_grp, kobj); in usnic_ib_qpn_attr_show()
194 return qpn_attr->show(qp_grp, buf); in usnic_ib_qpn_attr_show()
204 static ssize_t context_show(struct usnic_ib_qp_grp *qp_grp, char *buf) in context_show() argument
206 return sysfs_emit(buf, "0x%p\n", qp_grp->ctx); in context_show()
209 static ssize_t summary_show(struct usnic_ib_qp_grp *qp_grp, char *buf) in summary_show() argument
217 qp_grp->ibqp.qp_num, in summary_show()
218 usnic_ib_qp_grp_state_to_string(qp_grp->state), in summary_show()
219 qp_grp->owner_pid, in summary_show()
220 usnic_vnic_get_index(qp_grp->vf->vnic)); in summary_show()
222 for (i = 0; qp_grp->res_chunk_list[i]; i++) { in summary_show()
223 res_chunk = qp_grp->res_chunk_list[i]; in summary_show()
271 void usnic_ib_sysfs_qpn_add(struct usnic_ib_qp_grp *qp_grp) in usnic_ib_sysfs_qpn_add() argument
276 us_ibdev = qp_grp->vf->pf; in usnic_ib_sysfs_qpn_add()
278 err = kobject_init_and_add(&qp_grp->kobj, &usnic_ib_qpn_type, in usnic_ib_sysfs_qpn_add()
280 "%d", qp_grp->grp_id); in usnic_ib_sysfs_qpn_add()
287 void usnic_ib_sysfs_qpn_remove(struct usnic_ib_qp_grp *qp_grp) in usnic_ib_sysfs_qpn_remove() argument
291 us_ibdev = qp_grp->vf->pf; in usnic_ib_sysfs_qpn_remove()
293 kobject_put(&qp_grp->kobj); in usnic_ib_sysfs_qpn_remove()