Lines Matching refs:qp_flow
71 struct usnic_ib_qp_grp_flow *qp_flow; in flowinfo_read() local
77 qp_flow = f->private_data; in flowinfo_read()
84 spin_lock(&qp_flow->qp_grp->lock); in flowinfo_read()
87 qp_flow->qp_grp->grp_id, in flowinfo_read()
88 usnic_transport_to_str(qp_flow->trans_type)); in flowinfo_read()
90 if (qp_flow->trans_type == USNIC_TRANSPORT_ROCE_CUSTOM) { in flowinfo_read()
92 qp_flow->usnic_roce.port_num); in flowinfo_read()
94 } else if (qp_flow->trans_type == USNIC_TRANSPORT_IPV4_UDP) { in flowinfo_read()
96 qp_flow->udp.sock); in flowinfo_read()
101 spin_unlock(&qp_flow->qp_grp->lock); in flowinfo_read()
128 void usnic_debugfs_flow_add(struct usnic_ib_qp_grp_flow *qp_flow) in usnic_debugfs_flow_add() argument
130 scnprintf(qp_flow->dentry_name, sizeof(qp_flow->dentry_name), in usnic_debugfs_flow_add()
131 "%u", qp_flow->flow->flow_id); in usnic_debugfs_flow_add()
132 qp_flow->dbgfs_dentry = debugfs_create_file(qp_flow->dentry_name, in usnic_debugfs_flow_add()
135 qp_flow, in usnic_debugfs_flow_add()
139 void usnic_debugfs_flow_remove(struct usnic_ib_qp_grp_flow *qp_flow) in usnic_debugfs_flow_remove() argument
141 debugfs_remove(qp_flow->dbgfs_dentry); in usnic_debugfs_flow_remove()