Lines Matching refs:qpd
231 struct c4iw_debugfs_data *qpd = data; in dump_qp() local
238 space = qpd->bufsize - qpd->pos - 1; in dump_qp()
253 cc = snprintf(qpd->buf + qpd->pos, space, in dump_qp()
277 cc = snprintf(qpd->buf + qpd->pos, space, in dump_qp()
293 cc = snprintf(qpd->buf + qpd->pos, space, in dump_qp()
299 qpd->pos += cc; in dump_qp()
305 struct c4iw_debugfs_data *qpd = file->private_data; in qp_release() local
306 if (!qpd) { in qp_release()
310 vfree(qpd->buf); in qp_release()
311 kfree(qpd); in qp_release()
317 struct c4iw_debugfs_data *qpd; in qp_open() local
321 qpd = kmalloc(sizeof *qpd, GFP_KERNEL); in qp_open()
322 if (!qpd) { in qp_open()
326 qpd->devp = inode->i_private; in qp_open()
327 qpd->pos = 0; in qp_open()
329 spin_lock_irq(&qpd->devp->lock); in qp_open()
330 idr_for_each(&qpd->devp->qpidr, count_idrs, &count); in qp_open()
331 spin_unlock_irq(&qpd->devp->lock); in qp_open()
333 qpd->bufsize = count * 128; in qp_open()
334 qpd->buf = vmalloc(qpd->bufsize); in qp_open()
335 if (!qpd->buf) { in qp_open()
340 spin_lock_irq(&qpd->devp->lock); in qp_open()
341 idr_for_each(&qpd->devp->qpidr, dump_qp, qpd); in qp_open()
342 spin_unlock_irq(&qpd->devp->lock); in qp_open()
344 qpd->buf[qpd->pos++] = 0; in qp_open()
345 file->private_data = qpd; in qp_open()
348 kfree(qpd); in qp_open()