Lines Matching refs:qid
111 u32 qid; in c4iw_get_cqid() local
119 qid = entry->qid; in c4iw_get_cqid()
122 qid = c4iw_get_resource(&rdev->resource.qid_table); in c4iw_get_cqid()
123 if (!qid) in c4iw_get_cqid()
126 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_cqid()
128 for (i = qid+1; i & rdev->qpmask; i++) { in c4iw_get_cqid()
132 entry->qid = i; in c4iw_get_cqid()
143 entry->qid = qid; in c4iw_get_cqid()
145 for (i = qid+1; i & rdev->qpmask; i++) { in c4iw_get_cqid()
149 entry->qid = i; in c4iw_get_cqid()
155 pr_debug("qid 0x%x\n", qid); in c4iw_get_cqid()
157 if (rdev->stats.qid.cur > rdev->stats.qid.max) in c4iw_get_cqid()
158 rdev->stats.qid.max = rdev->stats.qid.cur; in c4iw_get_cqid()
160 return qid; in c4iw_get_cqid()
163 void c4iw_put_cqid(struct c4iw_rdev *rdev, u32 qid, in c4iw_put_cqid() argument
171 pr_debug("qid 0x%x\n", qid); in c4iw_put_cqid()
172 entry->qid = qid; in c4iw_put_cqid()
181 u32 qid; in c4iw_get_qpid() local
189 qid = entry->qid; in c4iw_get_qpid()
192 qid = c4iw_get_resource(&rdev->resource.qid_table); in c4iw_get_qpid()
193 if (!qid) { in c4iw_get_qpid()
195 rdev->stats.qid.fail++; in c4iw_get_qpid()
200 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_qpid()
202 for (i = qid+1; i & rdev->qpmask; i++) { in c4iw_get_qpid()
206 entry->qid = i; in c4iw_get_qpid()
217 entry->qid = qid; in c4iw_get_qpid()
219 for (i = qid + 1; i & rdev->qpmask; i++) { in c4iw_get_qpid()
223 entry->qid = i; in c4iw_get_qpid()
229 pr_debug("qid 0x%x\n", qid); in c4iw_get_qpid()
231 if (rdev->stats.qid.cur > rdev->stats.qid.max) in c4iw_get_qpid()
232 rdev->stats.qid.max = rdev->stats.qid.cur; in c4iw_get_qpid()
234 return qid; in c4iw_get_qpid()
237 void c4iw_put_qpid(struct c4iw_rdev *rdev, u32 qid, in c4iw_put_qpid() argument
245 pr_debug("qid 0x%x\n", qid); in c4iw_put_qpid()
246 entry->qid = qid; in c4iw_put_qpid()