Lines Matching refs:fifo
218 uhid_snes_open(struct usb_fifo *fifo, int fflags) in uhid_snes_open() argument
220 struct uhid_snes_softc *sc = usb_fifo_softc(fifo); in uhid_snes_open()
232 error = usb_fifo_alloc_buffer(fifo, in uhid_snes_open()
238 sc->sc_fifo_open[USB_FIFO_RX] = fifo; in uhid_snes_open()
268 uhid_snes_close(struct usb_fifo *fifo, int fflags) in uhid_snes_close() argument
270 struct uhid_snes_softc *sc = usb_fifo_softc(fifo); in uhid_snes_close()
273 usb_fifo_free_buffer(fifo); in uhid_snes_close()
277 uhid_snes_ioctl(struct usb_fifo *fifo, u_long cmd, void *data, int fflags) in uhid_snes_ioctl() argument
279 struct uhid_snes_softc *sc = usb_fifo_softc(fifo); in uhid_snes_ioctl()
427 uhid_snes_start_read(struct usb_fifo *fifo) in uhid_snes_start_read() argument
429 struct uhid_snes_softc *sc = usb_fifo_softc(fifo); in uhid_snes_start_read()
435 uhid_snes_stop_read(struct usb_fifo *fifo) in uhid_snes_stop_read() argument
437 struct uhid_snes_softc *sc = usb_fifo_softc(fifo); in uhid_snes_stop_read()
446 struct usb_fifo *fifo = sc->sc_fifo_open[USB_FIFO_RX]; in uhid_snes_read_callback() local
451 if (fifo == NULL) in uhid_snes_read_callback()
469 usb_fifo_put_data(fifo, pc, 0, actual, 1); in uhid_snes_read_callback()
473 if (usb_fifo_put_bytes_max(fifo) != 0) { in uhid_snes_read_callback()