• Home
  • Raw
  • Download

Lines Matching refs:wb

169 	struct acm_wb *wb;  in acm_wb_alloc()  local
174 wb = &acm->wb[wbn]; in acm_wb_alloc()
175 if (!wb->use) { in acm_wb_alloc()
176 wb->use = 1; in acm_wb_alloc()
193 n -= acm->wb[i].use; in acm_wb_is_avail()
201 static void acm_write_done(struct acm *acm, struct acm_wb *wb) in acm_write_done() argument
203 wb->use = 0; in acm_write_done()
214 static int acm_start_wb(struct acm *acm, struct acm_wb *wb) in acm_start_wb() argument
220 wb->urb->transfer_buffer = wb->buf; in acm_start_wb()
221 wb->urb->transfer_dma = wb->dmah; in acm_start_wb()
222 wb->urb->transfer_buffer_length = wb->len; in acm_start_wb()
223 wb->urb->dev = acm->dev; in acm_start_wb()
225 rc = usb_submit_urb(wb->urb, GFP_ATOMIC); in acm_start_wb()
230 acm_write_done(acm, wb); in acm_start_wb()
463 struct acm_wb *wb = urb->context; in acm_write_bulk() local
464 struct acm *acm = wb->instance; in acm_write_bulk()
475 acm_write_done(acm, wb); in acm_write_bulk()
615 struct acm_wb *wb; in acm_port_shutdown() local
633 wb = urb->context; in acm_port_shutdown()
634 wb->use = 0; in acm_port_shutdown()
640 usb_kill_urb(acm->wb[i].urb); in acm_port_shutdown()
673 struct acm_wb *wb; in acm_tty_write() local
686 wb = &acm->wb[wbn]; in acm_tty_write()
689 wb->use = 0; in acm_tty_write()
696 memcpy(wb->buf, buf, count); in acm_tty_write()
697 wb->len = count; in acm_tty_write()
701 wb->use = 0; in acm_tty_write()
712 usb_anchor_urb(wb->urb, &acm->delayed); in acm_tty_write()
723 stat = acm_start_wb(acm, wb); in acm_tty_write()
772 cur = &acm->wb[wbn]; in acm_tty_put_char()
1095 struct acm_wb *wb; in acm_write_buffers_free() local
1098 for (wb = &acm->wb[0], i = 0; i < ACM_NW; i++, wb++) in acm_write_buffers_free()
1099 usb_free_coherent(usb_dev, acm->writesize, wb->buf, wb->dmah); in acm_write_buffers_free()
1116 struct acm_wb *wb; in acm_write_buffers_alloc() local
1118 for (wb = &acm->wb[0], i = 0; i < ACM_NW; i++, wb++) { in acm_write_buffers_alloc()
1119 wb->buf = usb_alloc_coherent(acm->dev, acm->writesize, GFP_KERNEL, in acm_write_buffers_alloc()
1120 &wb->dmah); in acm_write_buffers_alloc()
1121 if (!wb->buf) { in acm_write_buffers_alloc()
1124 --wb; in acm_write_buffers_alloc()
1126 wb->buf, wb->dmah); in acm_write_buffers_alloc()
1409 struct acm_wb *snd = &(acm->wb[i]); in acm_probe()
1510 usb_free_urb(acm->wb[i].urb); in acm_probe()
1534 usb_kill_urb(acm->wb[i].urb); in stop_data_traffic()
1578 usb_free_urb(acm->wb[i].urb); in acm_disconnect()