Home
last modified time | relevance | path

Searched refs:usb_buf (Results 1 – 25 of 59) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/media/usb/gspca/
Dstv0680.c63 val, 0, gspca_dev->usb_buf, size, 500); in stv_sndctrl()
76 gspca_dev->usb_buf[0], gspca_dev->usb_buf[1]); in stv0680_handle_error()
83 memset(gspca_dev->usb_buf, 0, 8); in stv0680_get_video_mode()
84 gspca_dev->usb_buf[0] = 0x0f; in stv0680_get_video_mode()
91 return gspca_dev->usb_buf[0]; /* 01 = VGA, 03 = QVGA, 00 = CIF */ in stv0680_get_video_mode()
101 memset(gspca_dev->usb_buf, 0, 8); in stv0680_set_video_mode()
102 gspca_dev->usb_buf[0] = mode; in stv0680_set_video_mode()
134 gspca_dev->usb_buf[0] != 0x56 || gspca_dev->usb_buf[1] != 0x78) { in sd_config()
144 gspca_dev->usb_buf[7] != 0xa0 || gspca_dev->usb_buf[8] != 0x23) { in sd_config()
155 if (!(gspca_dev->usb_buf[7] & 0x09)) { in sd_config()
[all …]
Dmars.c78 gspca_dev->usb_buf, in reg_w()
84 gspca_dev->usb_buf[0], ret); in reg_w()
93 gspca_dev->usb_buf[0] = 0x1f; in mi_w()
94 gspca_dev->usb_buf[1] = 0; /* control byte */ in mi_w()
95 gspca_dev->usb_buf[2] = addr; in mi_w()
96 gspca_dev->usb_buf[3] = value; in mi_w()
103 gspca_dev->usb_buf[0] = 0x61; in setbrightness()
104 gspca_dev->usb_buf[1] = val; in setbrightness()
110 gspca_dev->usb_buf[0] = 0x5f; in setcolors()
111 gspca_dev->usb_buf[1] = val << 3; in setcolors()
[all …]
Dmr97310a.c129 gspca_dev->usb_buf, len, NULL, 500); in mr_write()
132 gspca_dev->usb_buf[0], rc); in mr_write()
143 gspca_dev->usb_buf, len, NULL, 500); in mr_read()
146 gspca_dev->usb_buf[0], rc); in mr_read()
153 gspca_dev->usb_buf[0] = 0x1f; in sensor_write_reg()
154 gspca_dev->usb_buf[1] = flags; in sensor_write_reg()
155 gspca_dev->usb_buf[2] = reg; in sensor_write_reg()
156 memcpy(gspca_dev->usb_buf + 3, data, len); in sensor_write_reg()
205 gspca_dev->usb_buf[0] = reg; in cam_get_response16()
217 gspca_dev->usb_buf[0], in cam_get_response16()
[all …]
Dnw80x.c1542 memcpy(gspca_dev->usb_buf, data, len); in reg_w()
1548 gspca_dev->usb_buf, in reg_w()
1571 gspca_dev->usb_buf, len, 500); in reg_r()
1579 memset(gspca_dev->usb_buf, 0, USB_BUF_SZ); in reg_r()
1584 index, gspca_dev->usb_buf[0]); in reg_r()
1587 index, gspca_dev->usb_buf[0], in reg_r()
1588 gspca_dev->usb_buf[1]); in reg_r()
1611 if (gspca_dev->usb_buf[0] == 0) in i2c_w()
1703 if (gspca_dev->usb_buf[0] & 0x04) { /* if AE_FULL_FRM */ in setautogain()
1707 w = (gspca_dev->usb_buf[1] << 8) + gspca_dev->usb_buf[0] in setautogain()
[all …]
Dspca561.c311 index, gspca_dev->usb_buf, length, 500); in reg_r()
323 index, gspca_dev->usb_buf, len, 500); in reg_w_buf()
335 if (!gspca_dev->usb_buf[0]) in i2c_write()
351 if (!gspca_dev->usb_buf[0]) { in i2c_read()
353 value = gspca_dev->usb_buf[0]; in i2c_read()
355 return ((int) value << 8) | gspca_dev->usb_buf[0]; in i2c_read()
366 gspca_dev->usb_buf[0] = (*sensormap)[1]; in sensor_mapwrite()
367 gspca_dev->usb_buf[1] = (*sensormap)[1] >> 8; in sensor_mapwrite()
405 data1 = gspca_dev->usb_buf[0]; in sd_config()
407 data2 = gspca_dev->usb_buf[0]; in sd_config()
[all …]
Dspca500.c313 index, gspca_dev->usb_buf, length, 500); in reg_r()
341 gspca_dev->usb_buf[1] = 0; in reg_r_12()
348 gspca_dev->usb_buf, length, in reg_r_12()
354 return (gspca_dev->usb_buf[1] << 8) + gspca_dev->usb_buf[0]; in reg_r_12()
418 gspca_dev->usb_buf[0], gspca_dev->usb_buf[1]); in spca500_ping310()
425 gspca_dev->usb_buf[0], gspca_dev->usb_buf[1]); in spca500_clksmart310_init()
552 Data = gspca_dev->usb_buf[0]; in spca500_reinit()
615 gspca_dev->usb_buf[0]); in sd_start()
642 Data = gspca_dev->usb_buf[0]; in sd_start()
670 Data = gspca_dev->usb_buf[0]; in sd_start()
[all …]
Dcpia1.c423 gspca_dev->usb_buf, databytes, 1000); in cpia_usb_transferCmd()
478 sd->params.version.firmwareVersion = gspca_dev->usb_buf[0]; in do_command()
479 sd->params.version.firmwareRevision = gspca_dev->usb_buf[1]; in do_command()
480 sd->params.version.vcVersion = gspca_dev->usb_buf[2]; in do_command()
481 sd->params.version.vcRevision = gspca_dev->usb_buf[3]; in do_command()
485 gspca_dev->usb_buf[0] | (gspca_dev->usb_buf[1] << 8); in do_command()
487 gspca_dev->usb_buf[2] | (gspca_dev->usb_buf[3] << 8); in do_command()
489 gspca_dev->usb_buf[4] | (gspca_dev->usb_buf[5] << 8); in do_command()
492 sd->params.status.systemState = gspca_dev->usb_buf[0]; in do_command()
493 sd->params.status.grabState = gspca_dev->usb_buf[1]; in do_command()
[all …]
Dsonixj.c1158 gspca_dev->usb_buf, len, in reg_r()
1161 value, gspca_dev->usb_buf[0]); in reg_r()
1169 memset(gspca_dev->usb_buf, 0, USB_BUF_SZ); in reg_r()
1182 gspca_dev->usb_buf[0] = data; in reg_w1()
1189 gspca_dev->usb_buf, 1, in reg_w1()
1213 memcpy(gspca_dev->usb_buf, buffer, len); in reg_w()
1219 gspca_dev->usb_buf, len, in reg_w()
1240 gspca_dev->usb_buf[0] = 0x80 | (2 << 4); in i2c_w1()
1243 gspca_dev->usb_buf[0] = 0x81 | (2 << 4); in i2c_w1()
1246 gspca_dev->usb_buf[1] = sd->i2c_addr; in i2c_w1()
[all …]
Dsq905.c106 gspca_dev->usb_buf[0] = '\0'; in sq905_command()
111 SQ905_COMMAND, index, gspca_dev->usb_buf, 1, in sq905_command()
122 SQ905_PING, 0, gspca_dev->usb_buf, 1, in sq905_command()
139 gspca_dev->usb_buf[0] = '\0'; in sq905_ack_frame()
144 SQ905_READ_DONE, 0, gspca_dev->usb_buf, 1, in sq905_ack_frame()
163 gspca_dev->usb_buf[0] = '\0'; in sq905_read_data()
170 SQ905_BULK_READ, size, gspca_dev->usb_buf, in sq905_read_data()
329 ret = sq905_read_data(gspca_dev, gspca_dev->usb_buf, 4, 0); in sd_init()
335 ident = be32_to_cpup((__be32 *)gspca_dev->usb_buf); in sd_init()
Dspca1528.c67 gspca_dev->usb_buf, len, in reg_r()
70 gspca_dev->usb_buf[0]); in reg_r()
78 memset(gspca_dev->usb_buf, 0, USB_BUF_SZ); in reg_r()
117 gspca_dev->usb_buf[0] = byte; in reg_wb()
122 gspca_dev->usb_buf, 1, 500); in reg_wb()
137 if (gspca_dev->usb_buf[0] == 0) in wait_status_0()
154 if (gspca_dev->usb_buf[0] == 1) { in wait_status_1()
216 gspca_dbg(gspca_dev, D_PROBE, "%s%s\n", &gspca_dev->usb_buf[0x1c], in sd_init()
217 &gspca_dev->usb_buf[0x30]); in sd_init()
Dsq930x.c423 value, 0, gspca_dev->usb_buf, len, in reg_r()
432 memset(gspca_dev->usb_buf, 0, USB_BUF_SZ); in reg_r()
465 memcpy(gspca_dev->usb_buf, data, len); in reg_wb()
470 value, index, gspca_dev->usb_buf, len, in reg_wb()
497 buf = gspca_dev->usb_buf; in i2c_write()
510 val, idx, gspca_dev->usb_buf[0], buf[-1]); in i2c_write()
516 gspca_dev->usb_buf, buf - gspca_dev->usb_buf, in i2c_write()
551 buf = gspca_dev->usb_buf; in ucbus_write()
558 if (buf != gspca_dev->usb_buf) in ucbus_write()
561 gspca_dev->usb_buf[0], buf[-1]); in ucbus_write()
[all …]
Djl2005bcd.c78 memcpy(gspca_dev->usb_buf, command, 2); in jl2005c_write2()
81 gspca_dev->usb_buf, 2, NULL, 500); in jl2005c_write2()
84 gspca_dev->usb_buf[0], retval); in jl2005c_write2()
95 gspca_dev->usb_buf, 1, NULL, 500); in jl2005c_read1()
98 gspca_dev->usb_buf[0], retval); in jl2005c_read1()
137 frame_brightness = gspca_dev->usb_buf[0]; in jl2005c_start_new_frame()
144 gspca_dev->usb_buf[0]); in jl2005c_start_new_frame()
175 gspca_dev->usb_buf[0]); in jl2005c_get_firmware_id()
183 sd->firmware_id[i] = gspca_dev->usb_buf[0]; in jl2005c_get_firmware_id()
Detoms.c163 index, gspca_dev->usb_buf, len, 500); in reg_r()
165 index, gspca_dev->usb_buf[0]); in reg_r()
174 gspca_dev->usb_buf[0] = val; in reg_w_val()
180 index, gspca_dev->usb_buf, 1, 500); in reg_w_val()
197 memcpy(gspca_dev->usb_buf, buffer, len); in reg_w()
202 0, index, gspca_dev->usb_buf, len, 500); in reg_w()
247 if (gspca_dev->usb_buf[0] != 0) in Et_WaitStatus()
420 return gspca_dev->usb_buf[0] & 0x0f; in getcolors()
598 gspca_dev->usb_buf[0]); in Et_getgainG()
599 return gspca_dev->usb_buf[0]; in Et_getgainG()
[all …]
Dstk014.c54 gspca_dev->usb_buf, 1, in reg_r()
61 return gspca_dev->usb_buf[0]; in reg_r()
107 gspca_dev->usb_buf, in rcv_val()
144 gspca_dev->usb_buf[0] = val >> 24; in snd_val()
145 gspca_dev->usb_buf[1] = val >> 16; in snd_val()
146 gspca_dev->usb_buf[2] = val >> 8; in snd_val()
147 gspca_dev->usb_buf[3] = val; in snd_val()
150 gspca_dev->usb_buf, in snd_val()
Dtopro.c1003 0, index, gspca_dev->usb_buf, 1, 500); in reg_r()
1031 if (gspca_dev->usb_buf[0] == 0) in i2c_w()
1055 v = gspca_dev->usb_buf[0]; in i2c_r()
1060 v |= (gspca_dev->usb_buf[0] << 8); in i2c_r()
1063 if (gspca_dev->usb_buf[0] == 0) in i2c_r()
1082 gspca_dev->usb_buf[0] = tag; in bulk_w()
1083 memcpy(&gspca_dev->usb_buf[1], data, count); in bulk_w()
1086 gspca_dev->usb_buf, count + 1, in bulk_w()
1107 gpio = gspca_dev->usb_buf[0]; in probe_6810()
4044 gspca_dbg(gspca_dev, D_PROBE, "gpio: %02x\n", gspca_dev->usb_buf[0]); in sd_init()
[all …]
Dsunplus.c257 gspca_dev->usb_buf, len, in reg_r()
266 memset(gspca_dev->usb_buf, 0, USB_BUF_SZ); in reg_r()
281 gspca_dev->usb_buf[0] = byte; in reg_w_1()
287 gspca_dev->usb_buf, 1, in reg_w_1()
347 gspca_dev->usb_buf[0]); in spca504_acknowledged_command()
353 gspca_dev->usb_buf[0]); in spca504_acknowledged_command()
366 info[i] = gspca_dev->usb_buf[0]; in spca504_read_info()
385 gspca_dev->usb_buf[0], endcode); in spca504A_acknowledged_command()
394 status = gspca_dev->usb_buf[0]; in spca504A_acknowledged_command()
409 if ((gspca_dev->usb_buf[0] & 0x01) == 0) in spca504B_PollingDataReady()
[all …]
Dsn9c2028.c67 memcpy(gspca_dev->usb_buf, command, 6); in sn9c2028_command()
72 2, 0, gspca_dev->usb_buf, 6, 500); in sn9c2028_command()
75 gspca_dev->usb_buf[0], rc); in sn9c2028_command()
90 1, 0, gspca_dev->usb_buf, 1, 500); in sn9c2028_read1()
96 gspca_dev->usb_buf[0]); in sn9c2028_read1()
97 return gspca_dev->usb_buf[0]; in sn9c2028_read1()
107 4, 0, gspca_dev->usb_buf, 4, 500); in sn9c2028_read4()
112 memcpy(reading, gspca_dev->usb_buf, 4); in sn9c2028_read4()
Dvc032x.c2904 index, gspca_dev->usb_buf, len, in reg_r_i()
2913 memset(gspca_dev->usb_buf, 0, USB_BUF_SZ); in reg_r_i()
2927 gspca_dev->usb_buf[0]); in reg_r()
2930 req, index, 3, gspca_dev->usb_buf); in reg_r()
2971 if (!(gspca_dev->usb_buf[0] & 0x02)) { in read_sensor_register()
2972 pr_err("I2c Bus Busy Wait %02x\n", gspca_dev->usb_buf[0]); in read_sensor_register()
2980 if (gspca_dev->usb_buf[0] == 0x00) in read_sensor_register()
2986 ldata = gspca_dev->usb_buf[0]; in read_sensor_register()
2988 mdata = gspca_dev->usb_buf[0]; in read_sensor_register()
2990 hdata = gspca_dev->usb_buf[0]; in read_sensor_register()
[all …]
Dspca508.c1261 gspca_dev->usb_buf, 1, in reg_read()
1264 index, gspca_dev->usb_buf[0]); in reg_read()
1269 return gspca_dev->usb_buf[0]; in reg_read()
1300 if (gspca_dev->usb_buf[0] == 0) in ssi_w()
1304 gspca_dev->usb_buf[0]); in ssi_w()
Dtv8532.c108 gspca_dev->usb_buf[0] = value; in reg_w1()
114 index, gspca_dev->usb_buf, 1, 500); in reg_w1()
121 gspca_dev->usb_buf[0] = value; in reg_w2()
122 gspca_dev->usb_buf[1] = value >> 8; in reg_w2()
128 index, gspca_dev->usb_buf, 2, 500); in reg_w2()
Dconex.c73 index, gspca_dev->usb_buf, len, in reg_r()
76 index, gspca_dev->usb_buf[0]); in reg_r()
86 gspca_dev->usb_buf[0] = val; in reg_w_val()
92 index, gspca_dev->usb_buf, 1, 500); in reg_w_val()
109 memcpy(gspca_dev->usb_buf, buffer, len); in reg_w()
115 index, gspca_dev->usb_buf, len, 500); in reg_w()
673 if (gspca_dev->usb_buf[0] == 0x00) in cx11646_jpeg()
800 if (gspca_dev->usb_buf[0] == 0) in sd_stop0()
/kernel/linux/linux-5.10/drivers/media/radio/si470x/
Dradio-si470x-usb.c248 radio->usb_buf[0] = REGISTER_REPORT(regnr); in si470x_get_register()
250 retval = si470x_get_report(radio, radio->usb_buf, REGISTER_REPORT_SIZE); in si470x_get_register()
253 radio->registers[regnr] = get_unaligned_be16(&radio->usb_buf[1]); in si470x_get_register()
266 radio->usb_buf[0] = REGISTER_REPORT(regnr); in si470x_set_register()
267 put_unaligned_be16(radio->registers[regnr], &radio->usb_buf[1]); in si470x_set_register()
269 retval = si470x_set_report(radio, radio->usb_buf, REGISTER_REPORT_SIZE); in si470x_set_register()
288 radio->usb_buf[0] = ENTIRE_REPORT; in si470x_get_all_registers()
290 retval = si470x_get_report(radio, radio->usb_buf, ENTIRE_REPORT_SIZE); in si470x_get_all_registers()
295 &radio->usb_buf[regnr * RADIO_REGISTER_SIZE + 1]); in si470x_get_all_registers()
314 radio->usb_buf[0] = LED_REPORT; in si470x_set_led_state()
[all …]
/kernel/linux/linux-5.10/drivers/net/usb/
Dkalmia.c105 char *usb_buf; in kalmia_init_and_get_ethernet_addr() local
108 usb_buf = kmalloc(buflen, GFP_DMA | GFP_KERNEL); in kalmia_init_and_get_ethernet_addr()
109 if (!usb_buf) in kalmia_init_and_get_ethernet_addr()
112 memcpy(usb_buf, init_msg_1, 12); in kalmia_init_and_get_ethernet_addr()
113 status = kalmia_send_init_packet(dev, usb_buf, ARRAY_SIZE(init_msg_1), in kalmia_init_and_get_ethernet_addr()
114 usb_buf, 24); in kalmia_init_and_get_ethernet_addr()
118 memcpy(usb_buf, init_msg_2, 12); in kalmia_init_and_get_ethernet_addr()
119 status = kalmia_send_init_packet(dev, usb_buf, ARRAY_SIZE(init_msg_2), in kalmia_init_and_get_ethernet_addr()
120 usb_buf, 28); in kalmia_init_and_get_ethernet_addr()
124 memcpy(ethernet_addr, usb_buf + 10, ETH_ALEN); in kalmia_init_and_get_ethernet_addr()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb-v2/
Dau6610.c19 u8 *usb_buf; in au6610_usb_msg() local
25 usb_buf = kmalloc(6, GFP_KERNEL); in au6610_usb_msg()
26 if (!usb_buf) in au6610_usb_msg()
46 usb_buf, 6, AU6610_USB_TIMEOUT); in au6610_usb_msg()
50 usb_buf, 6); in au6610_usb_msg()
59 rbuf[0] = usb_buf[4]; in au6610_usb_msg()
62 kfree(usb_buf); in au6610_usb_msg()
/kernel/linux/linux-5.10/sound/usb/caiaq/
Daudio.c357 unsigned char *usb_buf = urb->transfer_buffer + iso->offset; in read_in_urb_mode0() local
372 = usb_buf[i]; in read_in_urb_mode0()
385 unsigned char *usb_buf = urb->transfer_buffer + iso->offset; in read_in_urb_mode2() local
400 if ((usb_buf[i] & 0x3f) != check_byte) in read_in_urb_mode2()
403 if (usb_buf[i] & 0x80) in read_in_urb_mode2()
412 usb_buf[i] = 0; in read_in_urb_mode2()
419 usb_buf[i]; in read_in_urb_mode2()
432 unsigned char *usb_buf = urb->transfer_buffer + iso->offset; in read_in_urb_mode3() local
456 audio_buf[cdev->audio_in_buf_pos[stream]++] = usb_buf[i+n]; in read_in_urb_mode3()
467 if (usb_buf[i] != ((stream << 1) | c) && in read_in_urb_mode3()
[all …]

123