Lines Matching refs:qp_flow
72 struct usnic_ib_qp_grp_flow *qp_flow; in flowinfo_read() local
78 qp_flow = f->private_data; in flowinfo_read()
85 spin_lock(&qp_flow->qp_grp->lock); in flowinfo_read()
88 qp_flow->qp_grp->grp_id, in flowinfo_read()
89 usnic_transport_to_str(qp_flow->trans_type)); in flowinfo_read()
91 if (qp_flow->trans_type == USNIC_TRANSPORT_ROCE_CUSTOM) { in flowinfo_read()
93 qp_flow->usnic_roce.port_num); in flowinfo_read()
95 } else if (qp_flow->trans_type == USNIC_TRANSPORT_IPV4_UDP) { in flowinfo_read()
97 qp_flow->udp.sock); in flowinfo_read()
102 spin_unlock(&qp_flow->qp_grp->lock); in flowinfo_read()
129 void usnic_debugfs_flow_add(struct usnic_ib_qp_grp_flow *qp_flow) in usnic_debugfs_flow_add() argument
131 scnprintf(qp_flow->dentry_name, sizeof(qp_flow->dentry_name), in usnic_debugfs_flow_add()
132 "%u", qp_flow->flow->flow_id); in usnic_debugfs_flow_add()
133 qp_flow->dbgfs_dentry = debugfs_create_file(qp_flow->dentry_name, in usnic_debugfs_flow_add()
136 qp_flow, in usnic_debugfs_flow_add()
140 void usnic_debugfs_flow_remove(struct usnic_ib_qp_grp_flow *qp_flow) in usnic_debugfs_flow_remove() argument
142 debugfs_remove(qp_flow->dbgfs_dentry); in usnic_debugfs_flow_remove()