Home
last modified time | relevance | path

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

123

/drivers/media/usb/gspca/
Dstv0680.c77 val, 0, gspca_dev->usb_buf, size, 500); in stv_sndctrl()
90 gspca_dev->usb_buf[0], gspca_dev->usb_buf[1]); in stv0680_handle_error()
97 memset(gspca_dev->usb_buf, 0, 8); in stv0680_get_video_mode()
98 gspca_dev->usb_buf[0] = 0x0f; in stv0680_get_video_mode()
105 return gspca_dev->usb_buf[0]; /* 01 = VGA, 03 = QVGA, 00 = CIF */ in stv0680_get_video_mode()
115 memset(gspca_dev->usb_buf, 0, 8); in stv0680_set_video_mode()
116 gspca_dev->usb_buf[0] = mode; in stv0680_set_video_mode()
148 gspca_dev->usb_buf[0] != 0x56 || gspca_dev->usb_buf[1] != 0x78) { in sd_config()
158 gspca_dev->usb_buf[7] != 0xa0 || gspca_dev->usb_buf[8] != 0x23) { in sd_config()
169 if (!(gspca_dev->usb_buf[7] & 0x09)) { in sd_config()
[all …]
Dmars.c91 gspca_dev->usb_buf, in reg_w()
97 gspca_dev->usb_buf[0], ret); in reg_w()
106 gspca_dev->usb_buf[0] = 0x1f; in mi_w()
107 gspca_dev->usb_buf[1] = 0; /* control byte */ in mi_w()
108 gspca_dev->usb_buf[2] = addr; in mi_w()
109 gspca_dev->usb_buf[3] = value; in mi_w()
116 gspca_dev->usb_buf[0] = 0x61; in setbrightness()
117 gspca_dev->usb_buf[1] = val; in setbrightness()
123 gspca_dev->usb_buf[0] = 0x5f; in setcolors()
124 gspca_dev->usb_buf[1] = val << 3; in setcolors()
[all …]
Dmr97310a.c143 gspca_dev->usb_buf, len, NULL, 500); in mr_write()
146 gspca_dev->usb_buf[0], rc); in mr_write()
157 gspca_dev->usb_buf, len, NULL, 500); in mr_read()
160 gspca_dev->usb_buf[0], rc); in mr_read()
167 gspca_dev->usb_buf[0] = 0x1f; in sensor_write_reg()
168 gspca_dev->usb_buf[1] = flags; in sensor_write_reg()
169 gspca_dev->usb_buf[2] = reg; in sensor_write_reg()
170 memcpy(gspca_dev->usb_buf + 3, data, len); in sensor_write_reg()
219 gspca_dev->usb_buf[0] = reg; in cam_get_response16()
230 gspca_dev->usb_buf[0], in cam_get_response16()
[all …]
Dspca561.c323 index, gspca_dev->usb_buf, length, 500); in reg_r()
335 index, gspca_dev->usb_buf, len, 500); in reg_w_buf()
347 if (!gspca_dev->usb_buf[0]) in i2c_write()
363 if (!gspca_dev->usb_buf[0]) { in i2c_read()
365 value = gspca_dev->usb_buf[0]; in i2c_read()
367 return ((int) value << 8) | gspca_dev->usb_buf[0]; in i2c_read()
378 gspca_dev->usb_buf[0] = (*sensormap)[1]; in sensor_mapwrite()
379 gspca_dev->usb_buf[1] = (*sensormap)[1] >> 8; in sensor_mapwrite()
417 data1 = gspca_dev->usb_buf[0]; in sd_config()
419 data2 = gspca_dev->usb_buf[0]; in sd_config()
[all …]
Dnw80x.c1554 memcpy(gspca_dev->usb_buf, data, len); in reg_w()
1560 gspca_dev->usb_buf, in reg_w()
1583 gspca_dev->usb_buf, len, 500); in reg_r()
1591 index, gspca_dev->usb_buf[0]); in reg_r()
1594 index, gspca_dev->usb_buf[0], in reg_r()
1595 gspca_dev->usb_buf[1]); in reg_r()
1618 if (gspca_dev->usb_buf[0] == 0) in i2c_w()
1710 if (gspca_dev->usb_buf[0] & 0x04) { /* if AE_FULL_FRM */ in setautogain()
1714 w = (gspca_dev->usb_buf[1] << 8) + gspca_dev->usb_buf[0] in setautogain()
1715 - (gspca_dev->usb_buf[3] << 8) - gspca_dev->usb_buf[2]; in setautogain()
[all …]
Dspca500.c327 index, gspca_dev->usb_buf, length, 500); in reg_r()
354 gspca_dev->usb_buf[1] = 0; in reg_r_12()
361 gspca_dev->usb_buf, length, in reg_r_12()
367 return (gspca_dev->usb_buf[1] << 8) + gspca_dev->usb_buf[0]; in reg_r_12()
431 gspca_dev->usb_buf[0], gspca_dev->usb_buf[1]); in spca500_ping310()
438 gspca_dev->usb_buf[0], gspca_dev->usb_buf[1]); in spca500_clksmart310_init()
564 Data = gspca_dev->usb_buf[0]; in spca500_reinit()
627 gspca_dev->usb_buf[0]); in sd_start()
654 Data = gspca_dev->usb_buf[0]; in sd_start()
682 Data = gspca_dev->usb_buf[0]; in sd_start()
[all …]
Dcpia1.c434 gspca_dev->usb_buf, databytes, 1000); in cpia_usb_transferCmd()
489 sd->params.version.firmwareVersion = gspca_dev->usb_buf[0]; in do_command()
490 sd->params.version.firmwareRevision = gspca_dev->usb_buf[1]; in do_command()
491 sd->params.version.vcVersion = gspca_dev->usb_buf[2]; in do_command()
492 sd->params.version.vcRevision = gspca_dev->usb_buf[3]; in do_command()
496 gspca_dev->usb_buf[0] | (gspca_dev->usb_buf[1] << 8); in do_command()
498 gspca_dev->usb_buf[2] | (gspca_dev->usb_buf[3] << 8); in do_command()
500 gspca_dev->usb_buf[4] | (gspca_dev->usb_buf[5] << 8); in do_command()
503 sd->params.status.systemState = gspca_dev->usb_buf[0]; in do_command()
504 sd->params.status.grabState = gspca_dev->usb_buf[1]; in do_command()
[all …]
Dsonixj.c1171 gspca_dev->usb_buf, len, in reg_r()
1173 PDEBUG(D_USBI, "reg_r [%02x] -> %02x", value, gspca_dev->usb_buf[0]); in reg_r()
1189 gspca_dev->usb_buf[0] = data; in reg_w1()
1196 gspca_dev->usb_buf, 1, in reg_w1()
1220 memcpy(gspca_dev->usb_buf, buffer, len); in reg_w()
1226 gspca_dev->usb_buf, len, in reg_w()
1247 gspca_dev->usb_buf[0] = 0x80 | (2 << 4); in i2c_w1()
1250 gspca_dev->usb_buf[0] = 0x81 | (2 << 4); in i2c_w1()
1253 gspca_dev->usb_buf[1] = sd->i2c_addr; in i2c_w1()
1254 gspca_dev->usb_buf[2] = reg; in i2c_w1()
[all …]
Dsq905.c120 gspca_dev->usb_buf[0] = '\0'; in sq905_command()
125 SQ905_COMMAND, index, gspca_dev->usb_buf, 1, in sq905_command()
136 SQ905_PING, 0, gspca_dev->usb_buf, 1, in sq905_command()
153 gspca_dev->usb_buf[0] = '\0'; in sq905_ack_frame()
158 SQ905_READ_DONE, 0, gspca_dev->usb_buf, 1, in sq905_ack_frame()
177 gspca_dev->usb_buf[0] = '\0'; in sq905_read_data()
184 SQ905_BULK_READ, size, gspca_dev->usb_buf, in sq905_read_data()
343 ret = sq905_read_data(gspca_dev, gspca_dev->usb_buf, 4, 0); in sd_init()
349 ident = be32_to_cpup((__be32 *)gspca_dev->usb_buf); in sd_init()
Djl2005bcd.c91 memcpy(gspca_dev->usb_buf, command, 2); in jl2005c_write2()
94 gspca_dev->usb_buf, 2, NULL, 500); in jl2005c_write2()
97 gspca_dev->usb_buf[0], retval); in jl2005c_write2()
108 gspca_dev->usb_buf, 1, NULL, 500); in jl2005c_read1()
111 gspca_dev->usb_buf[0], retval); in jl2005c_read1()
150 frame_brightness = gspca_dev->usb_buf[0]; in jl2005c_start_new_frame()
156 PDEBUG(D_FRAM, "frame_brightness is 0x%02x", gspca_dev->usb_buf[0]); in jl2005c_start_new_frame()
186 PDEBUG(D_PROBE, "response is %02x", gspca_dev->usb_buf[0]); in jl2005c_get_firmware_id()
194 sd->firmware_id[i] = gspca_dev->usb_buf[0]; in jl2005c_get_firmware_id()
Dsq930x.c436 value, 0, gspca_dev->usb_buf, len, in reg_r()
473 memcpy(gspca_dev->usb_buf, data, len); in reg_wb()
478 value, index, gspca_dev->usb_buf, len, in reg_wb()
505 buf = gspca_dev->usb_buf; in i2c_write()
518 val, idx, gspca_dev->usb_buf[0], buf[-1]); in i2c_write()
524 gspca_dev->usb_buf, buf - gspca_dev->usb_buf, in i2c_write()
559 buf = gspca_dev->usb_buf; in ucbus_write()
566 if (buf != gspca_dev->usb_buf) in ucbus_write()
569 gspca_dev->usb_buf[0], buf[-1]); in ucbus_write()
578 gspca_dev->usb_buf, buf - gspca_dev->usb_buf, in ucbus_write()
[all …]
Dspca1528.c80 gspca_dev->usb_buf, len, in reg_r()
83 gspca_dev->usb_buf[0]); in reg_r()
124 gspca_dev->usb_buf[0] = byte; in reg_wb()
129 gspca_dev->usb_buf, 1, 500); in reg_wb()
144 if (gspca_dev->usb_buf[0] == 0) in wait_status_0()
161 if (gspca_dev->usb_buf[0] == 1) { in wait_status_1()
223 PDEBUG(D_PROBE, "%s%s", &gspca_dev->usb_buf[0x1c], in sd_init()
224 &gspca_dev->usb_buf[0x30]); in sd_init()
Dtopro.c1016 0, index, gspca_dev->usb_buf, 1, 500); in reg_r()
1044 if (gspca_dev->usb_buf[0] == 0) in i2c_w()
1068 v = gspca_dev->usb_buf[0]; in i2c_r()
1073 v |= (gspca_dev->usb_buf[0] << 8); in i2c_r()
1076 if (gspca_dev->usb_buf[0] == 0) in i2c_r()
1095 gspca_dev->usb_buf[0] = tag; in bulk_w()
1096 memcpy(&gspca_dev->usb_buf[1], data, count); in bulk_w()
1099 gspca_dev->usb_buf, count + 1, in bulk_w()
1120 gpio = gspca_dev->usb_buf[0]; in probe_6810()
4057 PDEBUG(D_PROBE, "gpio: %02x", gspca_dev->usb_buf[0]); in sd_init()
[all …]
Detoms.c176 index, gspca_dev->usb_buf, len, 500); in reg_r()
178 index, gspca_dev->usb_buf[0]); in reg_r()
187 gspca_dev->usb_buf[0] = val; in reg_w_val()
193 index, gspca_dev->usb_buf, 1, 500); in reg_w_val()
209 memcpy(gspca_dev->usb_buf, buffer, len); in reg_w()
214 0, index, gspca_dev->usb_buf, len, 500); in reg_w()
259 if (gspca_dev->usb_buf[0] != 0) in Et_WaitStatus()
434 return gspca_dev->usb_buf[0] & 0x0f; in getcolors()
611 PDEBUG(D_CONF, "Etoms gain G %d", gspca_dev->usb_buf[0]); in Et_getgainG()
612 return gspca_dev->usb_buf[0]; in Et_getgainG()
[all …]
Dstk014.c67 gspca_dev->usb_buf, 1, in reg_r()
74 return gspca_dev->usb_buf[0]; in reg_r()
120 gspca_dev->usb_buf, in rcv_val()
157 gspca_dev->usb_buf[0] = val >> 24; in snd_val()
158 gspca_dev->usb_buf[1] = val >> 16; in snd_val()
159 gspca_dev->usb_buf[2] = val >> 8; in snd_val()
160 gspca_dev->usb_buf[3] = val; in snd_val()
163 gspca_dev->usb_buf, in snd_val()
Dsn9c2028.c79 memcpy(gspca_dev->usb_buf, command, 6); in sn9c2028_command()
84 2, 0, gspca_dev->usb_buf, 6, 500); in sn9c2028_command()
87 gspca_dev->usb_buf[0], rc); in sn9c2028_command()
102 1, 0, gspca_dev->usb_buf, 1, 500); in sn9c2028_read1()
107 PDEBUG(D_USBI, "read1 response %02x", gspca_dev->usb_buf[0]); in sn9c2028_read1()
108 return gspca_dev->usb_buf[0]; in sn9c2028_read1()
118 4, 0, gspca_dev->usb_buf, 4, 500); in sn9c2028_read4()
123 memcpy(reading, gspca_dev->usb_buf, 4); in sn9c2028_read4()
Dsunplus.c266 len ? gspca_dev->usb_buf : NULL, len, in reg_r()
285 gspca_dev->usb_buf[0] = byte; in reg_w_1()
291 gspca_dev->usb_buf, 1, in reg_w_1()
350 PDEBUG(D_FRAM, "before wait 0x%04x", gspca_dev->usb_buf[0]); in spca504_acknowledged_command()
355 PDEBUG(D_FRAM, "after wait 0x%04x", gspca_dev->usb_buf[0]); in spca504_acknowledged_command()
368 info[i] = gspca_dev->usb_buf[0]; in spca504_read_info()
388 gspca_dev->usb_buf[0], endcode); in spca504A_acknowledged_command()
397 status = gspca_dev->usb_buf[0]; in spca504A_acknowledged_command()
412 if ((gspca_dev->usb_buf[0] & 0x01) == 0) in spca504B_PollingDataReady()
424 if (gspca_dev->usb_buf[0] != 0) { in spca504B_WaitCmdStatus()
[all …]
Dvc032x.c2917 index, gspca_dev->usb_buf, len, in reg_r_i()
2934 gspca_dev->usb_buf[0]); in reg_r()
2937 req, index, 3, gspca_dev->usb_buf); in reg_r()
2978 if (!(gspca_dev->usb_buf[0] & 0x02)) { in read_sensor_register()
2979 pr_err("I2c Bus Busy Wait %02x\n", gspca_dev->usb_buf[0]); in read_sensor_register()
2987 if (gspca_dev->usb_buf[0] == 0x00) in read_sensor_register()
2993 ldata = gspca_dev->usb_buf[0]; in read_sensor_register()
2995 mdata = gspca_dev->usb_buf[0]; in read_sensor_register()
2997 hdata = gspca_dev->usb_buf[0]; in read_sensor_register()
3002 if (gspca_dev->usb_buf[0] == 0x02) in read_sensor_register()
[all …]
Dspca508.c1274 gspca_dev->usb_buf, 1, in reg_read()
1277 index, gspca_dev->usb_buf[0]); in reg_read()
1282 return gspca_dev->usb_buf[0]; in reg_read()
1313 if (gspca_dev->usb_buf[0] == 0) in ssi_w()
1316 PERR("ssi_w busy %02x", gspca_dev->usb_buf[0]); in ssi_w()
Dconex.c86 index, gspca_dev->usb_buf, len, in reg_r()
89 index, gspca_dev->usb_buf[0]); in reg_r()
99 gspca_dev->usb_buf[0] = val; in reg_w_val()
105 index, gspca_dev->usb_buf, 1, 500); in reg_w_val()
121 memcpy(gspca_dev->usb_buf, buffer, len); in reg_w()
127 index, gspca_dev->usb_buf, len, 500); in reg_w()
685 if (gspca_dev->usb_buf[0] == 0x00) in cx11646_jpeg()
812 if (gspca_dev->usb_buf[0] == 0) in sd_stop0()
Dtv8532.c122 gspca_dev->usb_buf[0] = value; in reg_w1()
128 index, gspca_dev->usb_buf, 1, 500); in reg_w1()
135 gspca_dev->usb_buf[0] = value; in reg_w2()
136 gspca_dev->usb_buf[1] = value >> 8; in reg_w2()
142 index, gspca_dev->usb_buf, 2, 500); in reg_w2()
/drivers/media/radio/si470x/
Dradio-si470x-usb.c261 radio->usb_buf[0] = REGISTER_REPORT(regnr); in si470x_get_register()
263 retval = si470x_get_report(radio, radio->usb_buf, REGISTER_REPORT_SIZE); in si470x_get_register()
266 radio->registers[regnr] = get_unaligned_be16(&radio->usb_buf[1]); in si470x_get_register()
279 radio->usb_buf[0] = REGISTER_REPORT(regnr); in si470x_set_register()
280 put_unaligned_be16(radio->registers[regnr], &radio->usb_buf[1]); in si470x_set_register()
282 retval = si470x_set_report(radio, radio->usb_buf, REGISTER_REPORT_SIZE); in si470x_set_register()
301 radio->usb_buf[0] = ENTIRE_REPORT; in si470x_get_all_registers()
303 retval = si470x_get_report(radio, radio->usb_buf, ENTIRE_REPORT_SIZE); in si470x_get_all_registers()
308 &radio->usb_buf[regnr * RADIO_REGISTER_SIZE + 1]); in si470x_get_all_registers()
327 radio->usb_buf[0] = LED_REPORT; in si470x_set_led_state()
[all …]
/drivers/net/usb/
Dkalmia.c109 char *usb_buf; in kalmia_init_and_get_ethernet_addr() local
112 usb_buf = kmalloc(buflen, GFP_DMA | GFP_KERNEL); in kalmia_init_and_get_ethernet_addr()
113 if (!usb_buf) in kalmia_init_and_get_ethernet_addr()
116 memcpy(usb_buf, init_msg_1, 12); in kalmia_init_and_get_ethernet_addr()
117 status = kalmia_send_init_packet(dev, usb_buf, sizeof(init_msg_1) in kalmia_init_and_get_ethernet_addr()
118 / sizeof(init_msg_1[0]), usb_buf, 24); in kalmia_init_and_get_ethernet_addr()
122 memcpy(usb_buf, init_msg_2, 12); in kalmia_init_and_get_ethernet_addr()
123 status = kalmia_send_init_packet(dev, usb_buf, sizeof(init_msg_2) in kalmia_init_and_get_ethernet_addr()
124 / sizeof(init_msg_2[0]), usb_buf, 28); in kalmia_init_and_get_ethernet_addr()
128 memcpy(ethernet_addr, usb_buf + 10, ETH_ALEN); in kalmia_init_and_get_ethernet_addr()
[all …]
/drivers/media/usb/dvb-usb-v2/
Dau6610.c32 u8 *usb_buf; in au6610_usb_msg() local
38 usb_buf = kmalloc(6, GFP_KERNEL); in au6610_usb_msg()
39 if (!usb_buf) in au6610_usb_msg()
59 usb_buf, 6, AU6610_USB_TIMEOUT); in au6610_usb_msg()
63 usb_buf, 6); in au6610_usb_msg()
72 rbuf[0] = usb_buf[4]; in au6610_usb_msg()
75 kfree(usb_buf); in au6610_usb_msg()
/drivers/media/usb/go7007/
Dgo7007-usb.c697 0, HPI_STATUS_ADDR, go->usb_buf, in go7007_usb_ezusb_write_interrupt()
701 status_reg = le16_to_cpu(*((__le16 *)go->usb_buf)); in go7007_usb_ezusb_write_interrupt()
738 go->usb_buf[0] = data & 0xff; in go7007_usb_onboard_write_interrupt()
739 go->usb_buf[1] = data >> 8; in go7007_usb_onboard_write_interrupt()
740 go->usb_buf[2] = addr & 0xff; in go7007_usb_onboard_write_interrupt()
741 go->usb_buf[3] = addr >> 8; in go7007_usb_onboard_write_interrupt()
742 go->usb_buf[4] = go->usb_buf[5] = go->usb_buf[6] = go->usb_buf[7] = 0; in go7007_usb_onboard_write_interrupt()
745 0xf0f0, go->usb_buf, 8, timeout); in go7007_usb_onboard_write_interrupt()
962 u8 *buf = go->usb_buf; in go7007_usb_i2c_master_xfer()
1225 if (go7007_usb_vendor_request(go, 0x41, 0, 0, go->usb_buf, 3, in go7007_usb_probe()
[all …]

123