Home
last modified time | relevance | path

Searched refs:actual_len (Results 1 – 25 of 55) sorted by relevance

123

/linux-5.19.10/drivers/net/can/usb/etas_es58x/
Des58x_core.h445 size_t actual_len, size_t expected_len) in __es58x_check_msg_len() argument
447 if (expected_len != actual_len) { in __es58x_check_msg_len()
450 stringified_msg, expected_len, actual_len); in __es58x_check_msg_len()
469 #define es58x_check_msg_len(dev, msg, actual_len) \ argument
471 actual_len, sizeof(msg))
475 size_t actual_len, in __es58x_check_msg_max_len() argument
478 if (actual_len > expected_len) { in __es58x_check_msg_max_len()
481 stringified_msg, expected_len, actual_len); in __es58x_check_msg_max_len()
501 #define es58x_check_msg_max_len(dev, msg, actual_len) \ argument
503 actual_len, sizeof(msg))
[all …]
/linux-5.19.10/drivers/media/usb/gspca/
Dkinect.c125 int res, actual_len; in send_cmd() local
154 actual_len = kinect_read(udev, ibuf, 0x200); in send_cmd()
155 } while (actual_len == 0); in send_cmd()
156 gspca_dbg(gspca_dev, D_USBO, "Control reply: %d\n", actual_len); in send_cmd()
157 if (actual_len < (int)sizeof(*rhdr)) { in send_cmd()
159 actual_len); in send_cmd()
160 return actual_len < 0 ? actual_len : -EREMOTEIO; in send_cmd()
162 actual_len -= sizeof(*rhdr); in send_cmd()
179 if (le16_to_cpu(rhdr->len) != (actual_len/2)) { in send_cmd()
181 le16_to_cpu(rhdr->len), (int)(actual_len/2)); in send_cmd()
[all …]
/linux-5.19.10/drivers/media/usb/as102/
Das102_usb_drv.c139 int ret, actual_len; in as102_send_ep1() local
143 send_buf, send_buf_len, &actual_len, 200); in as102_send_ep1()
150 if (actual_len != send_buf_len) { in as102_send_ep1()
152 actual_len, send_buf_len); in as102_send_ep1()
155 return actual_len; in as102_send_ep1()
161 int ret, actual_len; in as102_read_ep2() local
168 recv_buf, recv_buf_len, &actual_len, 200); in as102_read_ep2()
175 if (actual_len != recv_buf_len) { in as102_read_ep2()
177 actual_len, recv_buf_len); in as102_read_ep2()
180 return actual_len; in as102_read_ep2()
/linux-5.19.10/drivers/net/wireless/ti/wlcore/
Devent.c37 u32 actual_len; in wlcore_event_fw_logger() local
45 actual_len = 0; in wlcore_event_fw_logger()
54 actual_len = 0; in wlcore_event_fw_logger()
60 actual_len = le32_to_cpu(fw_log.actual_buff_size); in wlcore_event_fw_logger()
61 if (actual_len == 0) in wlcore_event_fw_logger()
84 len = min(actual_len, available_len); in wlcore_event_fw_logger()
86 clear_ptr = addr_ptr + start_loc + actual_len; in wlcore_event_fw_logger()
91 len = actual_len - len; in wlcore_event_fw_logger()
105 return actual_len; in wlcore_event_fw_logger()
/linux-5.19.10/drivers/nfc/
Dvirtual_ncidev.c80 size_t actual_len; in virtual_ncidev_read() local
90 actual_len = min_t(size_t, count, send_buff->len); in virtual_ncidev_read()
92 if (copy_to_user(buf, send_buff->data, actual_len)) { in virtual_ncidev_read()
97 skb_pull(send_buff, actual_len); in virtual_ncidev_read()
104 return actual_len; in virtual_ncidev_read()
/linux-5.19.10/drivers/media/radio/
Dradio-shark2.c78 int i, res, actual_len; in shark_write_reg() local
91 &actual_len, 1000); in shark_write_reg()
103 int i, res, actual_len; in shark_read_reg() local
111 &actual_len, 1000); in shark_read_reg()
120 &actual_len, 1000); in shark_read_reg()
146 int i, res, brightness, actual_len; in shark_led_work() local
160 &actual_len, 1000); in shark_led_work()
Dradio-shark.c83 int i, res, actual_len; in shark_write_val() local
97 &actual_len, 1000); in shark_write_val()
107 int i, res, actual_len; in shark_read_val() local
115 &actual_len, 1000); in shark_read_val()
124 &actual_len, 1000); in shark_read_val()
159 int i, res, brightness, actual_len; in shark_led_work() local
175 &actual_len, 1000); in shark_led_work()
/linux-5.19.10/drivers/usb/musb/
Dmusbhsdma.c121 channel->actual_len = 0; in dma_channel_allocate()
133 channel->actual_len = 0; in dma_channel_release()
209 channel->actual_len = 0; in dma_channel_program()
326 channel->actual_len = addr in dma_controller_irq()
331 addr, channel->actual_len, in dma_controller_irq()
333 (channel->actual_len in dma_controller_irq()
342 (channel->actual_len % in dma_controller_irq()
Dmusb_trace.h184 __field(u32, actual_len)
193 __entry->actual_len = urb->actual_length;
201 __entry->actual_len, __entry->buf_len,
245 __field(unsigned int, actual_len)
256 __entry->actual_len = req->request.actual;
267 __entry->actual_len, __entry->buf_len,
Dcppi_dma.c495 if (n_bds && rx->channel.actual_len) { in cppi_autoreq_update()
826 rx->channel.actual_len, rx->buf_len); in cppi_next_rx_segment()
990 cppi_ch->channel.actual_len = 0; in cppi_channel_program()
1035 rx->channel.actual_len); in cppi_rx_scan()
1055 rx->channel.actual_len); in cppi_rx_scan()
1074 rx->channel.actual_len += len; in cppi_rx_scan()
1214 tx_ch->channel.actual_len += len; in cppi_interrupt()
1271 if (rx_ch->channel.actual_len != rx_ch->buf_len in cppi_interrupt()
1272 && rx_ch->channel.actual_len in cppi_interrupt()
Dtusb6010_omap.c128 channel->actual_len = chdat->transfer_len - remaining; in tusb_omap_dma_cb()
129 pio = chdat->len - channel->actual_len; in tusb_omap_dma_cb()
150 channel->actual_len += pio; in tusb_omap_dma_cb()
255 channel->actual_len = 0; in tusb_omap_dma_program()
468 channel->actual_len = 0; in tusb_omap_dma_allocate()
Dux500_dma.c63 ux500_channel->channel.actual_len = ux500_channel->cur_len; in ux500_dma_callback()
173 channel->actual_len = 0; in ux500_dma_channel_release()
199 channel->actual_len = 0; in ux500_dma_channel_program()
/linux-5.19.10/drivers/net/usb/
Dcx82310_eth.c57 int actual_len, retries, ret; in cx82310_cmd() local
71 CMD_PACKET_SIZE, &actual_len, CMD_TIMEOUT); in cx82310_cmd()
83 buf, CMD_PACKET_SIZE, &actual_len, in cx82310_cmd()
91 if (actual_len > 0) in cx82310_cmd()
94 if (actual_len == 0) { in cx82310_cmd()
/linux-5.19.10/sound/usb/6fire/
Dcomm.c95 int actual_len; in usb6fire_comm_send_buffer() local
98 buffer, buffer[1] + 2, &actual_len, 1000); in usb6fire_comm_send_buffer()
101 else if (actual_len != buffer[1] + 2) in usb6fire_comm_send_buffer()
Dfirmware.c177 int actual_len; in usb6fire_fw_fpga_write() local
181 &actual_len, 1000); in usb6fire_fw_fpga_write()
184 else if (actual_len != len) in usb6fire_fw_fpga_write()
/linux-5.19.10/drivers/usb/host/
Dfhci-sched.c53 if ((td->data + td->actual_len) && trans_len) in fhci_transaction_confirm()
54 memcpy(td->data + td->actual_len, pkt->data, in fhci_transaction_confirm()
70 td->actual_len = trans_len; in fhci_transaction_confirm()
89 td->actual_len += trans_len; in fhci_transaction_confirm()
111 td->actual_len += trans_len; in fhci_transaction_confirm()
113 if (td->len == td->actual_len) in fhci_transaction_confirm()
173 len = min(td->len - td->actual_len, ed->max_pkt_size); in add_packet()
175 ((len + td->actual_len) == td->len))) in add_packet()
176 data = td->data + td->actual_len; in add_packet()
Dfhci-q.c229 len = td->actual_len; in fhci_done_td()
260 urb->actual_length += td->actual_len; in fhci_done_td()
/linux-5.19.10/arch/parisc/kernel/
Dinventory.c305 unsigned long actual_len; in pat_memconfig() local
316 status = pdc_pat_pd_get_addr_map(&actual_len, mem_table, length, 0L); in pat_memconfig()
319 || ((actual_len % sizeof(struct pdc_pat_pd_addr_map_entry)) != 0)) { in pat_memconfig()
332 entries = actual_len / sizeof(struct pdc_pat_pd_addr_map_entry); in pat_memconfig()
/linux-5.19.10/drivers/usb/serial/
Dmetro-usb.c81 int actual_len; in metrousb_send_unidirectional_cmd() local
96 &actual_len, USB_CTRL_SET_TIMEOUT); in metrousb_send_unidirectional_cmd()
102 else if (actual_len != sizeof(cmd)) in metrousb_send_unidirectional_cmd()
/linux-5.19.10/sound/usb/caiaq/
Ddevice.c195 int actual_len; in snd_usb_caiaq_send_command() local
209 cdev->ep1_out_buf, len+1, &actual_len, 200); in snd_usb_caiaq_send_command()
218 int actual_len; in snd_usb_caiaq_send_command_bank() local
234 cdev->ep1_out_buf, len+2, &actual_len, 200); in snd_usb_caiaq_send_command_bank()
/linux-5.19.10/drivers/media/usb/ttusb-budget/
Ddvb-ttusb-budget.c143 int actual_len; in ttusb_cmd() local
155 ttusb->send_buf, len, &actual_len, 1000); in ttusb_cmd()
160 if (actual_len != len) { in ttusb_cmd()
163 actual_len, len); in ttusb_cmd()
168 ttusb->last_result, MAX_RCV, &actual_len, 1000); in ttusb_cmd()
176 actual_len = ttusb->last_result[3] + 4; in ttusb_cmd()
177 dprintk("< %*ph\n", actual_len, ttusb->last_result); in ttusb_cmd()
510 int err, actual_len;
/linux-5.19.10/fs/afs/
Dyfsclient.c359 req->actual_len); in yfs_deliver_fs_fetch_data64()
363 req->actual_len = 0; in yfs_deliver_fs_fetch_data64()
378 req->actual_len = be64_to_cpu(call->tmp64); in yfs_deliver_fs_fetch_data64()
379 _debug("DATA length: %llu", req->actual_len); in yfs_deliver_fs_fetch_data64()
381 if (req->actual_len == 0) in yfs_deliver_fs_fetch_data64()
385 call->iov_len = min(req->actual_len, req->len); in yfs_deliver_fs_fetch_data64()
392 iov_iter_count(call->iter), req->actual_len); in yfs_deliver_fs_fetch_data64()
399 if (req->actual_len <= req->len) in yfs_deliver_fs_fetch_data64()
403 afs_extract_discard(call, req->actual_len - req->len); in yfs_deliver_fs_fetch_data64()
409 iov_iter_count(call->iter), req->actual_len - req->len); in yfs_deliver_fs_fetch_data64()
Dfsclient.c310 req->actual_len); in afs_deliver_fs_fetch_data()
314 req->actual_len = 0; in afs_deliver_fs_fetch_data()
334 req->actual_len = be64_to_cpu(call->tmp64); in afs_deliver_fs_fetch_data()
335 _debug("DATA length: %llu", req->actual_len); in afs_deliver_fs_fetch_data()
337 if (req->actual_len == 0) in afs_deliver_fs_fetch_data()
341 call->iov_len = min(req->actual_len, req->len); in afs_deliver_fs_fetch_data()
348 iov_iter_count(call->iter), req->actual_len); in afs_deliver_fs_fetch_data()
355 if (req->actual_len <= req->len) in afs_deliver_fs_fetch_data()
359 afs_extract_discard(call, req->actual_len - req->len); in afs_deliver_fs_fetch_data()
365 iov_iter_count(call->iter), req->actual_len - req->len); in afs_deliver_fs_fetch_data()
/linux-5.19.10/drivers/leds/rgb/
Dleds-qcom-lpg.c715 unsigned int actual_len; in lpg_pattern_set() local
799 actual_len = (len + 1) / 2; in lpg_pattern_set()
801 actual_len = len; in lpg_pattern_set()
814 if (i != actual_len - 1) in lpg_pattern_set()
825 hi_pause = pattern[actual_len - 1].delta_t; in lpg_pattern_set()
828 ret = lpg_lut_store(lpg, pattern, actual_len, &lo_idx, &hi_idx); in lpg_pattern_set()
/linux-5.19.10/drivers/media/usb/ttusb-dec/
Dttusb_dec.c318 int result, actual_len; in ttusb_dec_send_command() local
347 COMMAND_PACKET_SIZE + 4, &actual_len, 1000); in ttusb_dec_send_command()
356 COMMAND_PACKET_SIZE + 4, &actual_len, 1000); in ttusb_dec_send_command()
365 __func__, actual_len, b); in ttusb_dec_send_command()
1301 int i, j, actual_len, result, size, trans_count; in ttusb_dec_boot_dsp() local
1389 ARM_PACKET_SIZE, &actual_len, in ttusb_dec_boot_dsp()
1395 &actual_len, 100); in ttusb_dec_boot_dsp()

123