Home
last modified time | relevance | path

Searched refs:actual_length (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/drivers/usb/usbip/
Dusbip_common.c260 dev_dbg(dev, " actual_length :%d\n", urb->actual_length); in usbip_dump_urb()
298 pdu->u.ret_submit.actual_length, in usbip_dump_header()
409 rpdu->actual_length = urb->actual_length; in usbip_pack_ret_submit()
415 urb->actual_length = rpdu->actual_length; in usbip_pack_ret_submit()
482 cpu_to_be32s(&pdu->actual_length); in correct_endian_ret_submit()
488 be32_to_cpus(&pdu->actual_length); in correct_endian_ret_submit()
554 iso->actual_length = cpu_to_be32(iso->actual_length); in usbip_iso_packet_correct_endian()
559 iso->actual_length = be32_to_cpu(iso->actual_length); in usbip_iso_packet_correct_endian()
570 iso->actual_length = uiso->actual_length; in usbip_pack_iso()
575 uiso->actual_length = iso->actual_length; in usbip_pack_iso()
[all …]
Dvudc_tx.c100 if (urb->actual_length > 0 && !urb->transfer_buffer) { in v_send_ret_submit()
103 urb->actual_length); in v_send_ret_submit()
133 usb_pipein(urb->pipe) && urb->actual_length > 0) { in v_send_ret_submit()
135 iov[iovnum].iov_len = urb->actual_length; in v_send_ret_submit()
137 txsize += urb->actual_length; in v_send_ret_submit()
147 urb->iso_frame_desc[i].actual_length; in v_send_ret_submit()
149 txsize += urb->iso_frame_desc[i].actual_length; in v_send_ret_submit()
152 if (txsize != sizeof(pdu_header) + urb->actual_length) { in v_send_ret_submit()
Dstub_tx.c184 if (urb->actual_length > 0 && !urb->transfer_buffer) { in stub_send_ret_submit()
187 urb->actual_length); in stub_send_ret_submit()
219 urb->actual_length > 0) { in stub_send_ret_submit()
221 iov[iovnum].iov_len = urb->actual_length; in stub_send_ret_submit()
223 txsize += urb->actual_length; in stub_send_ret_submit()
240 urb->iso_frame_desc[i].actual_length; in stub_send_ret_submit()
242 txsize += urb->iso_frame_desc[i].actual_length; in stub_send_ret_submit()
245 if (txsize != sizeof(pdu_header) + urb->actual_length) { in stub_send_ret_submit()
248 urb->actual_length, in stub_send_ret_submit()
Dvudc_transfer.c184 urb->actual_length = min_t(u32, 2, in handle_control_request()
216 host_len = urb->transfer_buffer_length - urb->actual_length; in transfer()
234 ubuf_pos = urb->transfer_buffer + urb->actual_length; in transfer()
242 urb->actual_length += len; in transfer()
282 if (urb->transfer_buffer_length == urb->actual_length) { in transfer()
401 urb->actual_length = 0; in v_timer()
/drivers/usb/serial/
Dsafe_serial.c193 unsigned char length = urb->actual_length; in safe_process_read_urb()
194 int actual_length; in safe_process_read_urb() local
214 actual_length = data[length - 2] >> 2; in safe_process_read_urb()
215 if (actual_length > (length - 2)) { in safe_process_read_urb()
217 __func__, actual_length, length); in safe_process_read_urb()
220 dev_info(&urb->dev->dev, "%s - actual: %d\n", __func__, actual_length); in safe_process_read_urb()
221 length = actual_length; in safe_process_read_urb()
Df81232.c225 size_t actual_length) in f81232_update_line_status() argument
229 if (!actual_length) in f81232_update_line_status()
252 unsigned int actual_length = urb->actual_length; in f81232_read_int_callback() local
274 urb->actual_length, urb->transfer_buffer); in f81232_read_int_callback()
276 f81232_update_line_status(port, data, actual_length); in f81232_read_int_callback()
298 if ((urb->actual_length < 2) || (urb->actual_length % 2)) in f81232_process_read_urb()
303 for (i = 0; i < urb->actual_length; i += 2) { in f81232_process_read_urb()
Dsymbolserial.c61 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); in symbol_int_callback()
68 if (urb->actual_length > 1) { in symbol_int_callback()
70 if (data_length > (urb->actual_length - 1)) in symbol_int_callback()
71 data_length = urb->actual_length - 1; in symbol_int_callback()
Dnavman.c54 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); in navman_read_int_callback()
56 if (urb->actual_length) { in navman_read_int_callback()
57 tty_insert_flip_string(&port->port, data, urb->actual_length); in navman_read_int_callback()
Dcyberjack.c277 usb_serial_debug_data(dev, __func__, urb->actual_length, data); in cyberjack_read_int_callback()
280 if (urb->actual_length == 4 && data[0] == 0x01) { in cyberjack_read_int_callback()
329 usb_serial_debug_data(dev, __func__, urb->actual_length, data); in cyberjack_read_bulk_callback()
336 if (urb->actual_length) { in cyberjack_read_bulk_callback()
337 tty_insert_flip_string(&port->port, data, urb->actual_length); in cyberjack_read_bulk_callback()
344 priv->rdtodo -= urb->actual_length; in cyberjack_read_bulk_callback()
Daircable.c148 has_headers = (urb->actual_length > 2 && data[0] == RX_HEADER_0); in aircable_process_read_urb()
151 for (i = 0; i < urb->actual_length; i += HCI_COMPLETE_FRAME) { in aircable_process_read_urb()
152 len = min_t(int, urb->actual_length - i, HCI_COMPLETE_FRAME); in aircable_process_read_urb()
Dkeyspan.c309 if (urb->actual_length) { in usa26_indat_callback()
318 for (i = 1; i < urb->actual_length ; ++i) in usa26_indat_callback()
324 for (i = 0; i + 1 < urb->actual_length; i += 2) { in usa26_indat_callback()
400 if (urb->actual_length != 9) { in usa26_instat_callback()
401 dev_dbg(&urb->dev->dev, "%s - %d byte report??\n", __func__, urb->actual_length); in usa26_instat_callback()
465 if (urb->actual_length) { in usa28_indat_callback()
467 urb->actual_length); in usa28_indat_callback()
520 if (urb->actual_length != sizeof(struct keyspan_usa28_portStatusMessage)) { in usa28_instat_callback()
521 dev_dbg(&urb->dev->dev, "%s - bad length %d\n", __func__, urb->actual_length); in usa28_instat_callback()
601 if (urb->actual_length != in usa49_instat_callback()
[all …]
Dgarmin_gps.c253 char *data, unsigned int actual_length) in send_to_tty() argument
255 if (actual_length) { in send_to_tty()
256 usb_serial_debug_data(&port->dev, __func__, actual_length, data); in send_to_tty()
257 tty_insert_flip_string(&port->port, data, actual_length); in send_to_tty()
1198 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); in garmin_read_bulk_callback()
1200 garmin_read_process(garmin_data_p, data, urb->actual_length, 1); in garmin_read_bulk_callback()
1202 if (urb->actual_length == 0 && in garmin_read_bulk_callback()
1212 } else if (urb->actual_length > 0) { in garmin_read_bulk_callback()
1256 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, in garmin_read_int_callback()
1259 if (urb->actual_length == sizeof(GARMIN_BULK_IN_AVAIL_REPLY) && in garmin_read_int_callback()
[all …]
/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_urb.c27 int ret, actual_length; in dvb_usb_v2_generic_io() local
39 &actual_length, 2000); in dvb_usb_v2_generic_io()
44 ret = actual_length != wlen ? -EIO : 0; in dvb_usb_v2_generic_io()
55 rbuf, rlen, &actual_length, 2000); in dvb_usb_v2_generic_io()
62 actual_length, rbuf); in dvb_usb_v2_generic_io()
Dusb_urb.c28 urb->status, urb->actual_length, in usb_urb_complete()
56 else if (urb->iso_frame_desc[i].actual_length > 0) in usb_urb_complete()
59 urb->iso_frame_desc[i].actual_length); in usb_urb_complete()
62 urb->iso_frame_desc[i].actual_length = 0; in usb_urb_complete()
66 if (urb->actual_length > 0) in usb_urb_complete()
67 stream->complete(stream, b, urb->actual_length); in usb_urb_complete()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.c213 int actual_length; in pcan_usb_pro_send_cmd() local
223 &actual_length, PCAN_USBPRO_COMMAND_TIMEOUT); in pcan_usb_pro_send_cmd()
237 int actual_length; in pcan_usb_pro_wait_rsp() local
258 &actual_length, PCAN_USBPRO_COMMAND_TIMEOUT); in pcan_usb_pro_wait_rsp()
264 if (actual_length == 0) in pcan_usb_pro_wait_rsp()
268 if (actual_length < PCAN_USBPRO_MSG_HEADER_LEN) { in pcan_usb_pro_wait_rsp()
271 actual_length); in pcan_usb_pro_wait_rsp()
276 actual_length); in pcan_usb_pro_wait_rsp()
288 actual_length); in pcan_usb_pro_wait_rsp()
704 urb->actual_length); in pcan_usb_pro_decode_buf()
[all …]
Dpcan_usb.c122 int actual_length; in pcan_usb_send_cmd() local
137 dev->cmd_buf, PCAN_USB_CMD_LEN, &actual_length, in pcan_usb_send_cmd()
152 int actual_length; in pcan_usb_wait_rsp() local
165 dev->cmd_buf, PCAN_USB_CMD_LEN, &actual_length, in pcan_usb_wait_rsp()
712 if (urb->actual_length > PCAN_USB_MSG_HEADER_LEN) { in pcan_usb_decode_buf()
714 urb->actual_length); in pcan_usb_decode_buf()
716 } else if (urb->actual_length > 0) { in pcan_usb_decode_buf()
718 urb->actual_length); in pcan_usb_decode_buf()
/drivers/media/usb/dvb-usb/
Dusb-urb.c23 urb->status,urb->actual_length,urb->transfer_buffer_length, in usb_urb_complete()
46 else if (urb->iso_frame_desc[i].actual_length > 0) in usb_urb_complete()
47 … stream->complete(stream, b + urb->iso_frame_desc[i].offset, urb->iso_frame_desc[i].actual_length); in usb_urb_complete()
50 urb->iso_frame_desc[i].actual_length = 0; in usb_urb_complete()
55 if (urb->actual_length > 0) in usb_urb_complete()
56 stream->complete(stream, b, urb->actual_length); in usb_urb_complete()
/drivers/net/wimax/i2400m/
Dusb-notif.c130 urb, urb->status, urb->actual_length); in i2400mu_notification_cb()
135 urb->actual_length); in i2400mu_notification_cb()
170 urb, urb->status, urb->actual_length); in i2400mu_notification_cb()
180 urb, urb->status, urb->actual_length); in i2400mu_notification_cb()
/drivers/usb/musb/
Dmusb_host.c253 buf = urb->transfer_buffer + urb->actual_length; in musb_start_urb()
254 len = urb->transfer_buffer_length - urb->actual_length; in musb_start_urb()
493 urb->actual_length += length; in musb_host_packet_rx()
494 d->actual_length = length; in musb_host_packet_rx()
511 urb->actual_length += length; in musb_host_packet_rx()
515 done = (urb->actual_length == urb->transfer_buffer_length) in musb_host_packet_rx()
521 && (urb->actual_length in musb_host_packet_rx()
880 urb->actual_length; in musb_ep_program()
1002 urb->actual_length += dma->actual_len; in musb_bulk_nak_timeout()
1045 fifo_dest = urb->transfer_buffer + urb->actual_length; in musb_h_ep0_continue()
[all …]
/drivers/net/wireless/rsi/
Drsi_91x_main.c115 u16 actual_length = 0, offset; in rsi_read_pkt() local
121 actual_length = *(u16 *)&frame_desc[0]; in rsi_read_pkt()
150 index += actual_length; in rsi_read_pkt()
151 rcv_pkt_len -= actual_length; in rsi_read_pkt()
/drivers/media/usb/gspca/
Dbenq.c185 if (urb0->iso_frame_desc[i].actual_length != SD_PKT_SZ in sd_isoc_irq()
186 || urb->iso_frame_desc[i].actual_length != SD_PKT_SZ) { in sd_isoc_irq()
188 urb0->iso_frame_desc[i].actual_length, in sd_isoc_irq()
189 urb->iso_frame_desc[i].actual_length); in sd_isoc_irq()
/drivers/isdn/hisax/
Dst5481_usb.c201 if (urb->actual_length == 0) { in usb_int_complete()
226 urb->actual_length = 0; in usb_int_complete()
417 urb->actual_length = 0; in fill_isoc_urb()
424 urb->iso_frame_desc[k].actual_length = 0; in fill_isoc_urb()
543 urb->actual_length = 0; in usb_in_complete()
605 len = pipd->actual_length; in st5481_isoc_flatten()
606 pipd->actual_length = 0; in st5481_isoc_flatten()
/drivers/usb/host/
Dfhci-q.c198 if (urb->actual_length != urb->transfer_buffer_length && in fhci_urb_complete_free()
235 urb->actual_length += len; in fhci_done_td()
236 urb->iso_frame_desc[td->iso_index].actual_length = len; in fhci_done_td()
264 urb->actual_length += td->actual_len; in fhci_done_td()
/drivers/usb/misc/
Dadutux.c163 urb->actual_length, urb->transfer_buffer); in adu_interrupt_in_callback()
177 if (urb->actual_length > 0 && dev->interrupt_in_buffer[0] != 0x00) { in adu_interrupt_in_callback()
180 (urb->actual_length)) { in adu_interrupt_in_callback()
183 dev->interrupt_in_buffer, urb->actual_length); in adu_interrupt_in_callback()
185 dev->read_buffer_length += urb->actual_length; in adu_interrupt_in_callback()
187 urb->actual_length); in adu_interrupt_in_callback()
207 urb->actual_length, urb->transfer_buffer); in adu_interrupt_out_callback()
601 dev->interrupt_out_urb->actual_length = bytes_to_write; in adu_write()
Dlegousbtower.c733 urb->actual_length, urb->transfer_buffer); in tower_interrupt_in_callback()
748 if (urb->actual_length > 0) { in tower_interrupt_in_callback()
750 if (dev->read_buffer_length + urb->actual_length < read_buffer_size) { in tower_interrupt_in_callback()
753 urb->actual_length); in tower_interrupt_in_callback()
754 dev->read_buffer_length += urb->actual_length; in tower_interrupt_in_callback()
757 __func__, urb->actual_length); in tower_interrupt_in_callback()
760 urb->actual_length); in tower_interrupt_in_callback()
790 urb->actual_length, urb->transfer_buffer); in tower_interrupt_out_callback()

12345678910>>...12