Lines Matching refs:refs
784 struct usb_cdev_refdata refs; in usb_open() local
805 err = usb_ref_device(cpd, &refs, 1); in usb_open()
814 err = usb_fifo_create(cpd, &refs); in usb_open()
818 usb_unref_device(cpd, &refs); in usb_open()
823 err = usb_fifo_open(cpd, refs.rxfifo, fflags); in usb_open()
826 usb_unref_device(cpd, &refs); in usb_open()
832 err = usb_fifo_open(cpd, refs.txfifo, fflags); in usb_open()
836 usb_fifo_close(refs.rxfifo, fflags); in usb_open()
838 usb_unref_device(cpd, &refs); in usb_open()
844 usb_unref_device(cpd, &refs); in usb_open()
856 struct usb_cdev_refdata refs; in usb_close() local
862 err = usb_ref_device(cpd, &refs, in usb_close()
870 usb_fifo_close(refs.rxfifo, cpd->fflags); in usb_close()
873 usb_fifo_close(refs.txfifo, cpd->fflags); in usb_close()
875 usb_unref_device(cpd, &refs); in usb_close()
961 struct usb_cdev_refdata refs; in usb_ioctl() local
975 err = usb_ref_device(cpd, &refs, 0 /* no uref */ ); in usb_ioctl()
985 f = refs.txfifo; in usb_ioctl()
989 f = refs.rxfifo; in usb_ioctl()
1003 if (usb_usb_ref_device(cpd, &refs)) { in usb_ioctl()
1021 usb_unref_device(cpd, &refs); in usb_ioctl()
1025 while (usb_ref_device(cpd, &refs, 1 /* need uref */)) { in usb_ioctl()
1026 if (usb_ref_device(cpd, &refs, 0)) { in usb_ioctl()
1030 usb_unref_device(cpd, &refs); in usb_ioctl()
1036 usb_unref_device(cpd, &refs); in usb_ioctl()
1044 struct usb_cdev_refdata refs; in usb_poll() local
1051 if (usb_ref_device(cpd, &refs, 0) != 0) in usb_poll()
1061 f = refs.txfifo; in usb_poll()
1065 if (!refs.is_usbfs) { in usb_poll()
1098 f = refs.rxfifo; in usb_poll()
1102 if (!refs.is_usbfs) { in usb_poll()
1132 if (!refs.is_usbfs) { in usb_poll()
1140 usb_unref_device(cpd, &refs); in usb_poll()
1148 struct usb_cdev_refdata refs; in usb_read() local
1156 err = usb_ref_device(cpd, &refs, 0 /* no uref */ ); in usb_read()
1160 f = refs.rxfifo; in usb_read()
1163 usb_unref_device(cpd, &refs); in usb_read()
1177 if (refs.is_usbfs) { in usb_read()
1247 usb_unref_device(cpd, &refs); in usb_read()
1255 struct usb_cdev_refdata refs; in usb_write() local
1266 err = usb_ref_device(cpd, &refs, 0 /* no uref */ ); in usb_write()
1270 f = refs.txfifo; in usb_write()
1273 usb_unref_device(cpd, &refs); in usb_write()
1287 if (refs.is_usbfs) { in usb_write()
1370 usb_unref_device(cpd, &refs); in usb_write()