Searched refs:i2c_read (Results 1 - 22 of 22) sorted by relevance

/linux-master/drivers/gpu/drm/tests/
H A Ddrm_dp_mst_helper_test.c336 .u.i2c_read.port_number = 0xf,
343 .u.i2c_read.read_i2c_device_id = 0x7f,
350 .u.i2c_read.num_transactions = 3,
351 .u.i2c_read.num_bytes_read = ARRAY_SIZE(data) * 3,
352 .u.i2c_read.transactions = {
445 #define IN in->u.i2c_read
446 #define OUT out->u.i2c_read
545 for (i = 0; i < out->u.i2c_read.num_transactions; i++)
546 kfree(out->u.i2c_read.transactions[i].bytes);
/linux-master/drivers/media/pci/ddbridge/
H A Dddbridge-i2c.h44 static int __maybe_unused i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) function
H A Dddbridge-core.c1696 if (i2c_read(&port->i2c->adap, 0x29, &val) < 0)
1698 if (i2c_read(&port->i2c->adap, 0x2a, &val) < 0)
/linux-master/drivers/i2c/busses/
H A Di2c-amd-mp2.h47 i2c_read = 0, enumerator in enum:i2c_cmd
H A Di2c-amd-mp2-plat.c105 if ((i2c_common->reqcmd == i2c_read ||
145 amd_mp2_rw(i2c_common, i2c_read);
H A Di2c-au1550.c155 static int i2c_read(struct i2c_au1550_data *adap, unsigned char *buf, function
228 err = i2c_read(adap, p->buf, p->len);
H A Di2c-amd-mp2-pci.c149 case i2c_read:
/linux-master/drivers/gpu/drm/msm/dp/
H A Ddp_aux.c173 bool i2c_read = input_msg->request & local
177 if (aux->native || i2c_read || ((input_msg->address != edid_address) &&
210 bool i2c_read = input_msg->request & local
213 if (!i2c_mot || !i2c_read || (input_msg->size == 0))
/linux-master/include/trace/events/
H A Di2c.h58 TRACE_EVENT_FN(i2c_read,
/linux-master/drivers/infiniband/hw/hfi1/
H A Dqsfp.h192 int i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr,
H A Dqsfp.c332 int i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset, function
H A Ddebugfs.c803 total_read = i2c_read(ppd, target, i2c_addr, offset, buff, count);
/linux-master/drivers/gpu/drm/display/
H A Ddrm_dp_mst_topology.c402 buf[idx] = (req->u.i2c_read.port_number & 0xf) << 4;
403 buf[idx] |= (req->u.i2c_read.num_transactions & 0x3);
405 for (i = 0; i < (req->u.i2c_read.num_transactions & 0x3); i++) {
406 buf[idx] = req->u.i2c_read.transactions[i].i2c_dev_id & 0x7f;
408 buf[idx] = req->u.i2c_read.transactions[i].num_bytes;
410 memcpy(&buf[idx], req->u.i2c_read.transactions[i].bytes, req->u.i2c_read.transactions[i].num_bytes);
411 idx += req->u.i2c_read.transactions[i].num_bytes;
413 buf[idx] = (req->u.i2c_read.transactions[i].no_stop_bit & 0x1) << 4;
414 buf[idx] |= (req->u.i2c_read
[all...]
/linux-master/drivers/media/usb/gspca/
H A Dzc3xx.c5571 static u16 i2c_read(struct gspca_dev *gspca_dev, function
5772 return (i2c_read(gspca_dev, 0x25) << 9)
5773 | (i2c_read(gspca_dev, 0x26) << 1)
5774 | (i2c_read(gspca_dev, 0x27) >> 7);
5776 return i2c_read(gspca_dev, 0x10);
6052 checkword = ((i2c_read(gspca_dev, 0x00) & 0x0f) << 4)
6053 | ((i2c_read(gspca_dev, 0x01) & 0xf0) >> 4);
6068 retword = i2c_read(gspca_dev, 0x01);
6074 retword = i2c_read(gspca_dev, 0x01);
6081 retword = i2c_read(gspca_de
[all...]
H A Dspca561.c341 static int i2c_read(struct gspca_dev *gspca_dev, __u16 reg, __u8 mode) function
677 expotimes = i2c_read(gspca_dev, 0x09, 0x10);
680 gainG = i2c_read(gspca_dev, 0x35, 0x10);
/linux-master/drivers/media/dvb-frontends/
H A Dstv6111.c295 static int i2c_read(struct i2c_adapter *adap, function
339 return i2c_read(state->i2c, state->adr, &reg, 1, val, 1);
H A Ddrxd_hard.c198 static int i2c_read(struct i2c_adapter *adap, function
232 if (i2c_read(state->i2c, adr, mm1, 4, mm2, 2) < 0)
247 if (i2c_read(state->i2c, adr, mm1, 4, mm2, 4) < 0)
H A Dmxl5xx.c129 static int i2c_read(struct i2c_adapter *adap, u8 adr, function
140 return i2c_read(state->base->i2c, state->base->adr, data, len);
H A Ddrxk_hard.c244 static int i2c_read(struct drxk_state *state, function
289 status = i2c_read(state, adr, mm1, len, mm2, 2);
323 status = i2c_read(state, adr, mm1, len, mm2, 4);
/linux-master/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_detection.c281 static bool i2c_read( function
335 if (!i2c_read(
342 if (i2c_read(ddc,
/linux-master/include/drm/display/
H A Ddrm_dp_mst_helper.h451 struct drm_dp_remote_i2c_read i2c_read; member in union:drm_dp_sideband_msg_req_body::ack_req
/linux-master/drivers/media/pci/ngene/
H A Dngene-cards.c70 static int i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) function
448 if (i2c_read(i2c, 0x29+port, &val) < 0)

Completed in 280 milliseconds