/linux/drivers/usb/usbip/ |
H A D | stub_tx.c | 166 u32 actual_length = 0; in stub_send_ret_submit() local 175 if (urb->actual_length > 0 && !urb->transfer_buffer && in stub_send_ret_submit() 179 urb->actual_length); in stub_send_ret_submit() 185 else if (usb_pipein(urb->pipe) && urb->actual_length > 0 && in stub_send_ret_submit() 209 actual_length += priv->urbs[i]->actual_length; in stub_send_ret_submit() 212 pdu_header.u.ret_submit.actual_length = actual_length; in stub_send_ret_submit() 233 priv->urbs[i]->actual_length; in stub_send_ret_submit() 236 txsize += actual_length; in stub_send_ret_submit() 239 urb->actual_length > 0) { in stub_send_ret_submit() 241 unsigned int copy = urb->actual_length; in stub_send_ret_submit() [all …]
|
H A D | usbip_common.c | 246 dev_dbg(dev, " actual_length :%d\n", urb->actual_length); in usbip_dump_urb() 284 pdu->u.ret_submit.actual_length, in usbip_dump_header() 465 rpdu->actual_length = urb->actual_length; in usbip_pack_ret_submit() 471 urb->actual_length = rpdu->actual_length; in usbip_pack_ret_submit() 538 cpu_to_be32s(&pdu->actual_length); in correct_endian_ret_submit() 544 be32_to_cpus(&pdu->actual_length); in correct_endian_ret_submit() 610 iso->actual_length = cpu_to_be32(iso->actual_length); in usbip_iso_packet_correct_endian() 615 iso->actual_length = be32_to_cpu(iso->actual_length); in usbip_iso_packet_correct_endian() 626 iso->actual_length = uiso->actual_length; in usbip_pack_iso() 631 uiso->actual_length = iso->actual_length; in usbip_pack_iso() [all …]
|
H A D | vudc_tx.c | 88 if (urb->actual_length > 0 && !urb->transfer_buffer) { in v_send_ret_submit() 91 urb->actual_length); in v_send_ret_submit() 121 usb_pipein(urb->pipe) && urb->actual_length > 0) { in v_send_ret_submit() 123 iov[iovnum].iov_len = urb->actual_length; in v_send_ret_submit() 125 txsize += urb->actual_length; in v_send_ret_submit() 135 urb->iso_frame_desc[i].actual_length; in v_send_ret_submit() 137 txsize += urb->iso_frame_desc[i].actual_length; in v_send_ret_submit() 140 if (txsize != sizeof(pdu_header) + urb->actual_length) { in v_send_ret_submit()
|
H A D | vudc_transfer.c | 172 urb->actual_length = min_t(u32, 2, in handle_control_request() 204 host_len = urb->transfer_buffer_length - urb->actual_length; in transfer() 222 ubuf_pos = urb->transfer_buffer + urb->actual_length; in transfer() 230 urb->actual_length += len; in transfer() 270 if (urb->transfer_buffer_length == urb->actual_length) { in transfer() 389 urb->actual_length = 0; in v_timer()
|
/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | dvb_usb_urb.c | 14 int ret, actual_length; in dvb_usb_v2_generic_io() local 26 &actual_length, 2000); in dvb_usb_v2_generic_io() 32 if (actual_length != wlen) { in dvb_usb_v2_generic_io() 34 KBUILD_MODNAME, wlen, actual_length); in dvb_usb_v2_generic_io() 47 rbuf, rlen, &actual_length, 2000); in dvb_usb_v2_generic_io() 54 actual_length, rbuf); in dvb_usb_v2_generic_io()
|
H A D | zd1301.c | 30 int ret, actual_length; in zd1301_ctrl_msg() local 39 wlen, &actual_length, 1000); in zd1301_ctrl_msg() 47 dev->buf, rlen, &actual_length, 1000); in zd1301_ctrl_msg() 54 dev_dbg(&intf->dev, "<<< %*ph\n", actual_length, dev->buf); in zd1301_ctrl_msg() 56 if (actual_length != rlen) { in zd1301_ctrl_msg() 65 dev->buf, rlen, &actual_length, in zd1301_ctrl_msg() 74 "<<< %*ph\n", actual_length, dev->buf); in zd1301_ctrl_msg()
|
H A D | usb_urb.c | 29 urb->status, urb->actual_length, in usb_urb_complete() 57 else if (urb->iso_frame_desc[i].actual_length > 0) in usb_urb_complete() 60 urb->iso_frame_desc[i].actual_length); in usb_urb_complete() 63 urb->iso_frame_desc[i].actual_length = 0; in usb_urb_complete() 67 if (urb->actual_length > 0) in usb_urb_complete() 68 stream->complete(stream, b, urb->actual_length); in usb_urb_complete()
|
/linux/drivers/usb/serial/ |
H A D | safe_serial.c | 189 unsigned char length = urb->actual_length; in safe_process_read_urb() 190 int actual_length; in safe_process_read_urb() local 210 actual_length = data[length - 2] >> 2; in safe_process_read_urb() 211 if (actual_length > (length - 2)) { in safe_process_read_urb() 213 __func__, actual_length, length); in safe_process_read_urb() 216 dev_info(&urb->dev->dev, "%s - actual: %d\n", __func__, actual_length); in safe_process_read_urb() 217 length = actual_length; in safe_process_read_urb()
|
H A D | symbolserial.c | 59 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); in symbol_int_callback() 66 if (urb->actual_length > 1) { in symbol_int_callback() 68 if (data_length > (urb->actual_length - 1)) in symbol_int_callback() 69 data_length = urb->actual_length - 1; in symbol_int_callback()
|
H A D | navman.c | 51 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); in navman_read_int_callback() 53 if (urb->actual_length) { in navman_read_int_callback() 54 tty_insert_flip_string(&port->port, data, urb->actual_length); in navman_read_int_callback()
|
H A D | f81232.c | 288 size_t actual_length) in f81232_update_line_status() argument 292 if (!actual_length) in f81232_update_line_status() 315 unsigned int actual_length = urb->actual_length; in f81232_read_int_callback() local 337 urb->actual_length, urb->transfer_buffer); in f81232_read_int_callback() 339 f81232_update_line_status(port, data, actual_length); in f81232_read_int_callback() 390 if ((urb->actual_length < 2) || (urb->actual_length % 2)) in f81232_process_read_urb() 395 for (i = 0; i < urb->actual_length; i += 2) { in f81232_process_read_urb() 419 if (urb->actual_length < 3) { in f81534a_process_read_urb() 421 urb->actual_length); in f81534a_process_read_urb() 426 if (len != urb->actual_length) { in f81534a_process_read_urb() [all …]
|
H A D | ir-usb.c | 361 if (!urb->actual_length) in ir_process_read_urb() 371 if (urb->actual_length == 1) in ir_process_read_urb() 374 tty_insert_flip_string(&port->port, data + 1, urb->actual_length - 1); in ir_process_read_urb() 384 int actual_length; in ir_set_termios() local 450 transfer_buffer, 1, &actual_length, 5000); in ir_set_termios() 451 if (ret || actual_length != 1) { in ir_set_termios()
|
H A D | aircable.c | 126 has_headers = (urb->actual_length > 2 && data[0] == RX_HEADER_0); in aircable_process_read_urb() 129 for (i = 0; i < urb->actual_length; i += HCI_COMPLETE_FRAME) { in aircable_process_read_urb() 130 len = min_t(int, urb->actual_length - i, HCI_COMPLETE_FRAME); in aircable_process_read_urb()
|
H A D | cyberjack.c | 262 usb_serial_debug_data(dev, __func__, urb->actual_length, data); in cyberjack_read_int_callback() 265 if (urb->actual_length == 4 && data[0] == 0x01) { in cyberjack_read_int_callback() 315 usb_serial_debug_data(dev, __func__, urb->actual_length, data); in cyberjack_read_bulk_callback() 322 if (urb->actual_length) { in cyberjack_read_bulk_callback() 323 tty_insert_flip_string(&port->port, data, urb->actual_length); in cyberjack_read_bulk_callback() 330 priv->rdtodo -= urb->actual_length; in cyberjack_read_bulk_callback()
|
H A D | garmin_gps.c | 243 char *data, unsigned int actual_length) in send_to_tty() argument 245 if (actual_length) { in send_to_tty() 246 usb_serial_debug_data(&port->dev, __func__, actual_length, data); in send_to_tty() 247 tty_insert_flip_string(&port->port, data, actual_length); in send_to_tty() 1175 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); in garmin_read_bulk_callback() 1177 garmin_read_process(garmin_data_p, data, urb->actual_length, 1); in garmin_read_bulk_callback() 1179 if (urb->actual_length == 0 && in garmin_read_bulk_callback() 1189 } else if (urb->actual_length > 0) { in garmin_read_bulk_callback() 1233 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, in garmin_read_int_callback() 1236 if (urb->actual_length == sizeof(GARMIN_BULK_IN_AVAIL_REPLY) && in garmin_read_int_callback() [all …]
|
/linux/drivers/media/usb/dvb-usb/ |
H A D | usb-urb.c | 24 urb->status,urb->actual_length,urb->transfer_buffer_length, in usb_urb_complete() 47 else if (urb->iso_frame_desc[i].actual_length > 0) in usb_urb_complete() 48 … stream->complete(stream, b + urb->iso_frame_desc[i].offset, urb->iso_frame_desc[i].actual_length); in usb_urb_complete() 51 urb->iso_frame_desc[i].actual_length = 0; in usb_urb_complete() 56 if (urb->actual_length > 0) in usb_urb_complete() 57 stream->complete(stream, b, urb->actual_length); in usb_urb_complete()
|
/linux/drivers/net/usb/ |
H A D | ipheth.c | 200 if (urb->actual_length <= IPHETH_IP_ALIGN) { in ipheth_rcvbulk_callback_legacy() 204 len = urb->actual_length - IPHETH_IP_ALIGN; in ipheth_rcvbulk_callback_legacy() 222 if (urb->actual_length < IPHETH_NCM_HEADER_SIZE) { in ipheth_rcvbulk_callback_ncm() 229 le16_to_cpu(ncmh->wNdpIndex) >= urb->actual_length) { in ipheth_rcvbulk_callback_ncm() 237 urb->actual_length) { in ipheth_rcvbulk_callback_ncm() 245 if (le16_to_cpu(dpe->wDatagramIndex) >= urb->actual_length || in ipheth_rcvbulk_callback_ncm() 247 le16_to_cpu(dpe->wDatagramLength) > urb->actual_length) { in ipheth_rcvbulk_callback_ncm() 292 if (urb->actual_length == 0) in ipheth_rcvbulk_callback() 302 (urb->actual_length == 4 && in ipheth_rcvbulk_callback()
|
/linux/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb_pro.c | 209 int actual_length; in pcan_usb_pro_send_cmd() local 219 &actual_length, PCAN_USBPRO_COMMAND_TIMEOUT); in pcan_usb_pro_send_cmd() 233 int actual_length; in pcan_usb_pro_wait_rsp() local 254 &actual_length, PCAN_USBPRO_COMMAND_TIMEOUT); in pcan_usb_pro_wait_rsp() 260 if (actual_length == 0) in pcan_usb_pro_wait_rsp() 264 if (actual_length < PCAN_USBPRO_MSG_HEADER_LEN) { in pcan_usb_pro_wait_rsp() 267 actual_length); in pcan_usb_pro_wait_rsp() 272 actual_length); in pcan_usb_pro_wait_rsp() 284 actual_length); in pcan_usb_pro_wait_rsp() 708 urb->actual_length); in pcan_usb_pro_decode_buf() [all …]
|
/linux/drivers/usb/musb/ |
H A D | musb_host.c | 227 buf = urb->transfer_buffer + urb->actual_length; in musb_start_urb() 228 len = urb->transfer_buffer_length - urb->actual_length; in musb_start_urb() 455 urb->actual_length += length; in musb_host_packet_rx() 456 d->actual_length = length; in musb_host_packet_rx() 473 urb->actual_length += length; in musb_host_packet_rx() 477 done = (urb->actual_length == urb->transfer_buffer_length) in musb_host_packet_rx() 483 && (urb->actual_length in musb_host_packet_rx() 825 urb->actual_length; in musb_ep_program() 943 urb->actual_length += dma->actual_len; in musb_bulk_nak_timeout() 989 fifo_dest = urb->transfer_buffer + urb->actual_length; in musb_h_ep0_continue() [all …]
|
/linux/drivers/mtd/devices/ |
H A D | mchp23k256.c | 93 if (retlen && message.actual_length > cmd_len) in mchp23k256_write() 94 *retlen += message.actual_length - cmd_len; in mchp23k256_write() 133 if (retlen && message.actual_length > cmd_len) in mchp23k256_read() 134 *retlen += message.actual_length - cmd_len; in mchp23k256_read()
|
/linux/drivers/media/rc/ |
H A D | xbox_remote.c | 104 if (urb->actual_length != 6 || urb->actual_length != data[1]) { in xbox_remote_input_report() 106 urb->actual_length, urb->actual_length, data); in xbox_remote_input_report()
|
/linux/drivers/media/usb/gspca/ |
H A D | benq.c | 172 if (urb0->iso_frame_desc[i].actual_length != SD_PKT_SZ in sd_isoc_irq() 173 || urb->iso_frame_desc[i].actual_length != SD_PKT_SZ) { in sd_isoc_irq() 175 urb0->iso_frame_desc[i].actual_length, in sd_isoc_irq() 176 urb->iso_frame_desc[i].actual_length); in sd_isoc_irq()
|
/linux/drivers/hid/ |
H A D | hid-u2fzero.c | 160 ret = dev->urb->actual_length; in u2fzero_recv() 214 size_t actual_length; in u2fzero_rng_read() local 230 actual_length = min3((size_t)ret - min_length, in u2fzero_rng_read() 233 memcpy(data, resp.init.data, actual_length); in u2fzero_rng_read() 235 return actual_length; in u2fzero_rng_read()
|
/linux/drivers/usb/misc/ |
H A D | legousbtower.c | 666 urb->actual_length, urb->transfer_buffer); in tower_interrupt_in_callback() 681 if (urb->actual_length > 0) { in tower_interrupt_in_callback() 683 if (dev->read_buffer_length + urb->actual_length < read_buffer_size) { in tower_interrupt_in_callback() 686 urb->actual_length); in tower_interrupt_in_callback() 687 dev->read_buffer_length += urb->actual_length; in tower_interrupt_in_callback() 690 __func__, urb->actual_length); in tower_interrupt_in_callback() 693 urb->actual_length); in tower_interrupt_in_callback() 719 urb->actual_length, urb->transfer_buffer); in tower_interrupt_out_callback()
|
/linux/drivers/usb/host/ |
H A D | fhci-q.c | 194 if (urb->actual_length != urb->transfer_buffer_length && in fhci_urb_complete_free() 231 urb->actual_length += len; in fhci_done_td() 232 urb->iso_frame_desc[td->iso_index].actual_length = len; in fhci_done_td() 260 urb->actual_length += td->actual_len; in fhci_done_td()
|