Home
last modified time | relevance | path

Searched refs:write_urb (Results 1 – 23 of 23) sorted by relevance

/linux-3.4.99/drivers/usb/serial/
Dkobil_sct.c229 if (!port->write_urb) { in kobil_open()
232 port->write_urb = usb_alloc_urb(0, GFP_KERNEL); in kobil_open()
233 if (!port->write_urb) { in kobil_open()
242 port->write_urb->transfer_buffer = in kobil_open()
244 if (!port->write_urb->transfer_buffer) { in kobil_open()
246 usb_free_urb(port->write_urb); in kobil_open()
247 port->write_urb = NULL; in kobil_open()
333 if (port->write_urb) { in kobil_close()
334 usb_poison_urb(port->write_urb); in kobil_close()
335 kfree(port->write_urb->transfer_buffer); in kobil_close()
[all …]
Diuu_phoenix.c210 memset(port->write_urb->transfer_buffer, IUU_UART_RX, 1); in iuu_rxcmd()
211 usb_fill_bulk_urb(port->write_urb, port->serial->dev, in iuu_rxcmd()
214 port->write_urb->transfer_buffer, 1, in iuu_rxcmd()
216 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); in iuu_rxcmd()
223 char *buf_ptr = port->write_urb->transfer_buffer; in iuu_reset()
235 usb_fill_bulk_urb(port->write_urb, in iuu_reset()
239 port->write_urb->transfer_buffer, 4, iuu_rxcmd, port); in iuu_reset()
240 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); in iuu_reset()
304 memset(port->write_urb->transfer_buffer, IUU_GET_STATE_REGISTER, 1); in iuu_status()
305 usb_fill_bulk_urb(port->write_urb, port->serial->dev, in iuu_status()
[all …]
Domninet.c224 wport->write_urb->transfer_buffer; in omninet_write()
242 memcpy(wport->write_urb->transfer_buffer + OMNINET_DATAOFFSET, in omninet_write()
246 wport->write_urb->transfer_buffer); in omninet_write()
254 wport->write_urb->transfer_buffer_length = 64; in omninet_write()
256 result = usb_submit_urb(wport->write_urb, GFP_ATOMIC); in omninet_write()
311 usb_kill_urb(wport->write_urb); in omninet_disconnect()
Dcyberjack.c186 usb_clear_halt(port->serial->dev, port->write_urb->pipe); in cyberjack_open()
204 usb_kill_urb(port->write_urb); in cyberjack_close()
260 memcpy(port->write_urb->transfer_buffer, priv->wrbuf, length); in cyberjack_write()
264 port->write_urb->transfer_buffer_length = length; in cyberjack_write()
267 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); in cyberjack_write()
440 memcpy(port->write_urb->transfer_buffer, in cyberjack_write_bulk_callback()
445 port->write_urb->transfer_buffer_length = length; in cyberjack_write_bulk_callback()
448 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); in cyberjack_write_bulk_callback()
Ddigi_acceleport.c439 memcpy(oob_port->write_urb->transfer_buffer, buf, len); in digi_write_oob_command()
440 oob_port->write_urb->transfer_buffer_length = len; in digi_write_oob_command()
441 ret = usb_submit_urb(oob_port->write_urb, GFP_ATOMIC); in digi_write_oob_command()
475 unsigned char *data = port->write_urb->transfer_buffer; in digi_write_inb_command()
512 port->write_urb->transfer_buffer_length in digi_write_inb_command()
516 port->write_urb->transfer_buffer_length = len; in digi_write_inb_command()
519 ret = usb_submit_urb(port->write_urb, GFP_ATOMIC); in digi_write_inb_command()
556 unsigned char *data = oob_port->write_urb->transfer_buffer; in digi_set_modem_signals()
587 oob_port->write_urb->transfer_buffer_length = 8; in digi_set_modem_signals()
589 ret = usb_submit_urb(oob_port->write_urb, GFP_ATOMIC); in digi_set_modem_signals()
[all …]
Doti6858.c333 port->write_urb->transfer_buffer, in send_data()
335 port->write_urb->transfer_buffer_length = count; in send_data()
336 result = usb_submit_urb(port->write_urb, GFP_NOIO); in send_data()
548 usb_clear_halt(serial->dev, port->write_urb->pipe); in oti6858_open()
618 usb_kill_urb(port->write_urb); in oti6858_close()
942 port->write_urb->transfer_buffer_length = 1; in oti6858_write_bulk_callback()
943 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); in oti6858_write_bulk_callback()
Dkeyspan_pda.c540 memcpy(port->write_urb->transfer_buffer, buf, count); in keyspan_pda_write()
542 port->write_urb->transfer_buffer_length = count; in keyspan_pda_write()
546 rc = usb_submit_urb(port->write_urb, GFP_ATOMIC); in keyspan_pda_write()
679 usb_kill_urb(port->write_urb); in keyspan_pda_close()
Dwhiteheat.c471 buf_size = port->write_urb->transfer_buffer_length; in whiteheat_attach()
509 command_port->write_urb->complete = command_port_write_callback; in whiteheat_attach()
642 usb_clear_halt(port->serial->dev, port->write_urb->pipe); in whiteheat_open()
1087 transfer_buffer = (__u8 *)command_port->write_urb->transfer_buffer; in firm_send_command()
1090 command_port->write_urb->transfer_buffer_length = datasize + 1; in firm_send_command()
1091 retval = usb_submit_urb(command_port->write_urb, GFP_NOIO); in firm_send_command()
1101 usb_kill_urb(command_port->write_urb); in firm_send_command()
Dmos7840.c240 struct urb *write_urb; /* write URB for this port */ member
896 usb_clear_halt(serial->dev, port->write_urb->pipe); in mos7840_open()
1255 if (mos7840_port->write_urb) { in mos7840_close()
1257 usb_kill_urb(mos7840_port->write_urb); in mos7840_close()
1281 if (mos7840_port->write_urb) { in mos7840_close()
1283 if (mos7840_port->write_urb->transfer_buffer != NULL) in mos7840_close()
1284 kfree(mos7840_port->write_urb->transfer_buffer); in mos7840_close()
1285 usb_free_urb(mos7840_port->write_urb); in mos7840_close()
Dti_usb_3410_5052.c572 usb_clear_halt(dev, port->write_urb->pipe); in ti_open()
648 usb_kill_urb(port->write_urb); in ti_close()
1305 port->write_urb->transfer_buffer, in ti_send()
1316 port->write_urb->transfer_buffer); in ti_send()
1318 usb_fill_bulk_urb(port->write_urb, port->serial->dev, in ti_send()
1321 port->write_urb->transfer_buffer, count, in ti_send()
1324 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); in ti_send()
Dio_edgeport.c95 struct urb *write_urb; /* write URB for this port */ member
934 edge_port->write_urb = usb_alloc_urb(0, GFP_KERNEL); in edge_open()
937 if (!edge_port->write_urb) { in edge_open()
1109 usb_kill_urb(edge_port->write_urb); in edge_close()
1111 if (edge_port->write_urb) { in edge_close()
1114 kfree(edge_port->write_urb->transfer_buffer); in edge_close()
1115 usb_free_urb(edge_port->write_urb); in edge_close()
1116 edge_port->write_urb = NULL; in edge_close()
1277 urb = edge_port->write_urb; in send_more_port_data()
Dio_ti.c1982 usb_clear_halt(dev, port->write_urb->pipe); in edge_open()
2039 usb_kill_urb(port->write_urb); in edge_close()
2107 port->write_urb->transfer_buffer, in edge_send()
2120 port->write_urb->transfer_buffer); in edge_send()
2123 port->write_urb->transfer_buffer_length = count; in edge_send()
2126 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); in edge_send()
Dgeneric.c147 usb_kill_urb(port->write_urb); in generic_cleanup()
Dgarmin_gps.c951 usb_kill_urb(port->write_urb); in garmin_open()
978 usb_kill_urb(port->write_urb); in garmin_close()
Dspcp8x5.c453 usb_clear_halt(serial->dev, port->write_urb->pipe); in spcp8x5_open()
Dpl2303.c491 usb_clear_halt(serial->dev, port->write_urb->pipe); in pl2303_open()
Dmos7720.c1042 usb_clear_halt(serial->dev, port->write_urb->pipe); in mos7720_open()
1194 usb_kill_urb(port->write_urb); in mos7720_close()
Dusb-serial.c993 port->write_urb = port->write_urbs[0]; in usb_serial_probe()
/linux-3.4.99/drivers/usb/image/
Dmdc800.c153 struct urb * write_urb; member
522 mdc800->write_urb, in mdc800_usb_probe()
571 usb_kill_urb(mdc800->write_urb); in mdc800_usb_disconnect()
679 usb_kill_urb(mdc800->write_urb); in mdc800_device_release()
863 memcpy (mdc800->write_urb->transfer_buffer, mdc800->in,8); in mdc800_device_write()
864 mdc800->write_urb->dev = mdc800->dev; in mdc800_device_write()
865 retval = usb_submit_urb (mdc800->write_urb, GFP_KERNEL); in mdc800_device_write()
877 usb_kill_urb(mdc800->write_urb); in mdc800_device_write()
1030 mdc800->write_urb=usb_alloc_urb (0, GFP_KERNEL); in usb_mdc800_init()
1031 if (!mdc800->write_urb) in usb_mdc800_init()
[all …]
/linux-3.4.99/drivers/staging/serqt_usb2/
Dserqt_usb2.c171 struct urb *write_urb; /* write URB for this port */ member
898 usb_clear_halt(serial->dev, port->write_urb->pipe); in qt_open()
1012 if (port->write_urb->status == -EINPROGRESS) in qt_chars_in_buffer()
1013 chars = port->write_urb->transfer_buffer_length; in qt_chars_in_buffer()
1067 usb_unlink_urb(port->write_urb); in qt_close()
1095 if (qt_port->write_urb) { in qt_close()
1097 kfree(qt_port->write_urb->transfer_buffer); in qt_close()
1098 usb_free_urb(qt_port->write_urb); in qt_close()
1121 if (port->write_urb->status == -EINPROGRESS) { in qt_write()
1128 memcpy(port->write_urb->transfer_buffer, buf, count); in qt_write()
[all …]
/linux-3.4.99/drivers/staging/quatech_usb2/
Dquatech_usb2.c540 if (port->write_urb == NULL) { in qt2_open()
542 port->write_urb = usb_alloc_urb(0, GFP_KERNEL); in qt2_open()
543 if (!port->write_urb) { in qt2_open()
560 usb_fill_bulk_urb(port->write_urb, serial->dev, in qt2_open()
678 usb_free_urb(port->write_urb); in qt2_close()
720 if ((port->write_urb->status == -EINPROGRESS)) { in qt2_write()
762 memcpy(port->write_urb->transfer_buffer, header_array, in qt2_write()
765 memcpy(port->write_urb->transfer_buffer + 5, buf, count); in qt2_write()
770 usb_fill_bulk_urb(port->write_urb, serial->dev, in qt2_write()
773 port->write_urb->transfer_buffer, count + 5, in qt2_write()
[all …]
/linux-3.4.99/drivers/media/rc/
Dredrat3.c192 struct urb *write_urb; member
604 usb_kill_urb(rr3->write_urb); in redrat3_delete()
607 usb_free_urb(rr3->write_urb); in redrat3_delete()
1183 rr3->write_urb = usb_alloc_urb(0, GFP_KERNEL); in redrat3_dev_probe()
1184 if (!rr3->write_urb) { in redrat3_dev_probe()
1198 usb_fill_bulk_urb(rr3->write_urb, udev, pipe, in redrat3_dev_probe()
/linux-3.4.99/include/linux/usb/
Dserial.h104 struct urb *write_urb; member