Home
last modified time | relevance | path

Searched refs:i2c_write (Results 1 – 24 of 24) sorted by relevance

/linux-6.6.21/drivers/media/usb/gspca/
Dvc032x.c3055 static void i2c_write(struct gspca_dev *gspca_dev, in i2c_write() function
3111 i2c_write(gspca_dev, data[i][1], &data[i][2], 1); in usb_exchange()
3114 i2c_write(gspca_dev, data[i][0], &data[i][1], 2); in usb_exchange()
3264 i2c_write(gspca_dev, 0x98, &data, 1); in setbrightness()
3269 i2c_write(gspca_dev, 0x99, &val, 1); in setcontrast()
3277 i2c_write(gspca_dev, 0x94, &data, 1); in setcolors()
3278 i2c_write(gspca_dev, 0x95, &val, 1); in setcolors()
3295 i2c_write(gspca_dev, 0xf0, data, 2); in sethvflip()
3299 i2c_write(gspca_dev, 0x20, data, 2); in sethvflip()
3306 i2c_write(gspca_dev, OV7660_REG_MVFP, data, 1); in sethvflip()
[all …]
Dsq930x.c479 static void i2c_write(struct sd *sd, in i2c_write() function
964 i2c_write(sd, mi0360_init_23, in sd_start()
966 i2c_write(sd, mi0360_init_24, in sd_start()
968 i2c_write(sd, mi0360_init_25, in sd_start()
973 i2c_write(sd, mi0360_start_2, in sd_start()
975 i2c_write(sd, mi0360_start_3, in sd_start()
983 i2c_write(sd, in sd_start()
991 i2c_write(sd, mt9v111_init_0, in sd_start()
993 i2c_write(sd, mt9v111_init_1, in sd_start()
995 i2c_write(sd, mt9v111_init_2, in sd_start()
[all …]
Dzc3xx.c5590 static u8 i2c_write(struct gspca_dev *gspca_dev, in i2c_write() function
5622 i2c_write(gspca_dev, in usb_exchange()
5628 i2c_write(gspca_dev, in usb_exchange()
5788 i2c_write(gspca_dev, 0x25, val >> 9, 0x00); in setexposure()
5789 i2c_write(gspca_dev, 0x26, val >> 1, 0x00); in setexposure()
5790 i2c_write(gspca_dev, 0x27, val << 7, 0x00); in setexposure()
5793 i2c_write(gspca_dev, 0x10, val, 0x00); in setexposure()
5929 i2c_write(gspca_dev, 0x13, val ? 0xa3 : 0x80, 0x00); in setautogain()
6067 i2c_write(gspca_dev, 0x01, 0xaa, 0x00); in vga_2wr_probe()
6073 i2c_write(gspca_dev, 0x01, 0xaa, 0x00); in vga_2wr_probe()
[all …]
Dspca561.c326 static void i2c_write(struct gspca_dev *gspca_dev, __u16 value, __u16 reg) in i2c_write() function
377 i2c_write(gspca_dev, (*sensor)[1], (*sensor)[0]); in write_sensor_72a()
689 i2c_write(gspca_dev, gainG, 0x35); in do_autogain()
695 i2c_write(gspca_dev, expotimes | pixelclk, 0x09); in do_autogain()
/linux-6.6.21/drivers/gpu/drm/tests/
Ddrm_dp_mst_helper_test.c220 .u.i2c_write.port_number = 0xf,
227 .u.i2c_write.write_i2c_device_id = 0x7f,
234 .u.i2c_write.num_bytes = ARRAY_SIZE(data),
235 .u.i2c_write.bytes = data,
339 #define IN in->u.i2c_write in sideband_msg_req_equal()
340 #define OUT out->u.i2c_write in sideband_msg_req_equal()
403 kfree(out->u.i2c_write.bytes); in drm_test_dp_mst_sideband_msg_req_decode()
/linux-6.6.21/sound/pci/ctxfi/
Dcthw20k1.c1376 static void i2c_write(struct hw *hw, u32 device, u32 addr, u32 data) in i2c_write() function
1414 i2c_write(hw, 0x00180080, 0x01, 0x80); in hw_reset_dac()
1415 i2c_write(hw, 0x00180080, 0x02, 0x10); in hw_reset_dac()
1467 i2c_write(hw, 0x00180080, 0x06, data); in hw_dac_init()
1468 i2c_write(hw, 0x00180080, 0x09, data); in hw_dac_init()
1469 i2c_write(hw, 0x00180080, 0x0c, data); in hw_dac_init()
1470 i2c_write(hw, 0x00180080, 0x0f, data); in hw_dac_init()
1618 i2c_write(hw, 0x001a0080, 0x2a, i2c_data); in adc_input_select_SBx()
1620 i2c_write(hw, 0x001a0080, 0x1c, 0xe7); /* +12dB boost */ in adc_input_select_SBx()
1621 i2c_write(hw, 0x001a0080, 0x1e, 0xe7); /* +12dB boost */ in adc_input_select_SBx()
[all …]
/linux-6.6.21/drivers/media/pci/ddbridge/
Dddbridge-i2c.h35 static int __maybe_unused i2c_write(struct i2c_adapter *adap, u8 adr, in i2c_write() function
80 return i2c_write(adap, adr, msg, 3); in i2c_write_reg16()
88 return i2c_write(adap, adr, msg, 2); in i2c_write_reg()
/linux-6.6.21/drivers/media/dvb-frontends/
Dstv6111.c309 static int i2c_write(struct i2c_adapter *adap, u8 adr, u8 *data, int len) in i2c_write() function
327 return i2c_write(state->i2c, state->adr, d, len + 1); in write_regs()
334 return i2c_write(state->i2c, state->adr, d, 2); in write_reg()
Dtda18271c2dd.c112 static int i2c_write(struct i2c_adapter *adap, u8 adr, u8 *data, int len) in i2c_write() function
138 return i2c_write(state->i2c, state->adr, data, nRegs + 1); in WriteRegs()
145 return i2c_write(state->i2c, state->adr, msg, 2); in WriteReg()
Ddrxd_hard.c189 static int i2c_write(struct i2c_adapter *adap, u8 adr, u8 * data, int len) in i2c_write() function
263 if (i2c_write(state->i2c, adr, mm, 6) < 0) in Write16()
277 if (i2c_write(state->i2c, adr, mm, 8) < 0) in Write32()
293 if (i2c_write(state->i2c, adr, mm, 4 + len) < 0) { in write_chunk()
Dmxl5xx.c120 static int i2c_write(struct i2c_adapter *adap, u8 adr, in i2c_write() function
145 return i2c_write(state->base->i2c, state->base->adr, data, len); in i2cwrite()
Ddrxk_hard.c226 static int i2c_write(struct drxk_state *state, u8 adr, u8 *data, int len) in i2c_write() function
359 return i2c_write(state, adr, mm, len + 2); in write16_flags()
390 return i2c_write(state, adr, mm, len + 4); in write32_flags()
432 status = i2c_write(state, state->demod_address, in write_block()
462 status = i2c_write(state, state->demod_address, in power_up_device()
/linux-6.6.21/drivers/i2c/busses/
Di2c-au1550.c185 static int i2c_write(struct i2c_au1550_data *adap, unsigned char *buf, in i2c_write() function
230 err = i2c_write(adap, p->buf, p->len); in au1550_xfer()
Di2c-amd-mp2-plat.c106 i2c_common->reqcmd == i2c_write) && in i2c_amd_check_cmd_completion()
147 amd_mp2_rw(i2c_common, i2c_write); in i2c_amd_xfer_msg()
Di2c-amd-mp2.h48 i2c_write, enumerator
Di2c-amd-mp2-pci.c96 if (reqcmd == i2c_write) in amd_mp2_rw()
160 case i2c_write: in __amd_mp2_process_event()
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Dqsfp.h190 int i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr,
Dqsfp.c293 int i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset, in i2c_write() function
Ddebugfs.c749 total_written = i2c_write(ppd, target, i2c_addr, offset, buff, count); in __i2c_debugfs_write()
/linux-6.6.21/include/trace/events/
Di2c.h25 TRACE_EVENT_FN(i2c_write,
/linux-6.6.21/drivers/gpu/drm/display/
Ddrm_dp_mst_topology.c423 buf[idx] = (req->u.i2c_write.port_number & 0xf) << 4; in drm_dp_encode_sideband_req()
425 buf[idx] = (req->u.i2c_write.write_i2c_device_id) & 0x7f; in drm_dp_encode_sideband_req()
427 buf[idx] = (req->u.i2c_write.num_bytes); in drm_dp_encode_sideband_req()
429 memcpy(&buf[idx], req->u.i2c_write.bytes, req->u.i2c_write.num_bytes); in drm_dp_encode_sideband_req()
430 idx += req->u.i2c_write.num_bytes; in drm_dp_encode_sideband_req()
565 struct drm_dp_remote_i2c_write *w = &req->u.i2c_write; in drm_dp_decode_sideband_req()
663 req->u.i2c_write.port_number, in drm_dp_dump_sideband_msg_req_body()
664 req->u.i2c_write.write_i2c_device_id, in drm_dp_dump_sideband_msg_req_body()
665 req->u.i2c_write.num_bytes, req->u.i2c_write.num_bytes, in drm_dp_dump_sideband_msg_req_body()
666 req->u.i2c_write.bytes); in drm_dp_dump_sideband_msg_req_body()
[all …]
/linux-6.6.21/include/drm/display/
Ddrm_dp_mst_helper.h444 struct drm_dp_remote_i2c_write i2c_write; member
/linux-6.6.21/drivers/media/pci/ngene/
Dngene-cards.c54 static int i2c_write(struct i2c_adapter *adap, u8 adr, u8 *data, int len) in i2c_write() function
67 return i2c_write(adap, adr, msg, 2); in i2c_write_reg()
/linux-6.6.21/drivers/comedi/drivers/
Dcb_pcidas64.c1684 static void i2c_write(struct comedi_device *dev, unsigned int address, in i2c_write() function
1837 i2c_write(dev, RANGE_CAL_I2C_ADDR, &i2c_data, in ai_rinsn()
2517 i2c_write(dev, RANGE_CAL_I2C_ADDR, &i2c_data, in setup_channel_queue()
3600 i2c_write(dev, i2c_addr, serial_bytes, 3); in caldac_i2c_write()
3821 i2c_write(dev, RANGE_CAL_I2C_ADDR, &data, sizeof(data)); in setup_subdevices()