msgs 1554 drivers/char/ipmi/ipmi_msghandler.c struct list_head msgs; msgs 1561 drivers/char/ipmi/ipmi_msghandler.c INIT_LIST_HEAD(&msgs); msgs 1586 drivers/char/ipmi/ipmi_msghandler.c list_move_tail(&msg->link, &msgs); msgs 1596 drivers/char/ipmi/ipmi_msghandler.c list_for_each_entry_safe(msg, msg2, &msgs, link) { msgs 4093 drivers/char/ipmi/ipmi_msghandler.c struct list_head msgs; msgs 4109 drivers/char/ipmi/ipmi_msghandler.c INIT_LIST_HEAD(&msgs); msgs 4127 drivers/char/ipmi/ipmi_msghandler.c list_for_each_entry_safe(recv_msg, recv_msg2, &msgs, msgs 4146 drivers/char/ipmi/ipmi_msghandler.c list_add_tail(&recv_msg->link, &msgs); msgs 4152 drivers/char/ipmi/ipmi_msghandler.c list_for_each_entry_safe(recv_msg, recv_msg2, &msgs, link) { msgs 106 drivers/char/tpm/tpm_i2c_infineon.c struct i2c_msg msgs[] = {msg1, msg2}; msgs 125 drivers/char/tpm/tpm_i2c_infineon.c rc = __i2c_transfer(tpm_dev.client->adapter, msgs, 2); msgs 453 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c struct i2c_msg msgs[] = { msgs 473 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c ret = i2c_transfer(&amdgpu_connector->ddc_bus->aux.ddc, msgs, 2); msgs 475 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c ret = i2c_transfer(&amdgpu_connector->ddc_bus->adapter, msgs, 2); msgs 290 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct i2c_msg msgs[] = { msgs 308 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c if (i2c_transfer(&i2c_bus->adapter, msgs, 2) == 2) { msgs 345 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c struct i2c_msg *msgs; msgs 359 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c msgs = kcalloc(num, sizeof(*msgs), GFP_KERNEL); msgs 360 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c if (!msgs) { msgs 378 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c struct i2c_msg *msg = &msgs[i]; msgs 407 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c ret = i2c_transfer(&control->eeprom_accessor, msgs, num); msgs 452 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c kfree(msgs); msgs 113 drivers/gpu/drm/amd/amdgpu/atombios_i2c.c struct i2c_msg *msgs, int num) msgs 121 drivers/gpu/drm/amd/amdgpu/atombios_i2c.c p = &msgs[0]; msgs 133 drivers/gpu/drm/amd/amdgpu/atombios_i2c.c p = &msgs[i]; msgs 28 drivers/gpu/drm/amd/amdgpu/atombios_i2c.h struct i2c_msg *msgs, int num); msgs 630 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c struct i2c_msg *msgs, int num) msgs 643 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c if (msgs[i].flags & I2C_M_RD) msgs 645 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c (uint8_t)msgs[i].addr, msgs 646 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c msgs[i].buf, msgs[i].len); msgs 649 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c (uint8_t)msgs[i].addr, msgs 650 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c msgs[i].buf, msgs[i].len); msgs 5114 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct i2c_msg *msgs, int num) msgs 5132 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c cmd.payloads[i].write = !(msgs[i].flags & I2C_M_RD); msgs 5133 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c cmd.payloads[i].address = msgs[i].addr; msgs 5134 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c cmd.payloads[i].length = msgs[i].len; msgs 5135 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c cmd.payloads[i].data = msgs[i].buf; msgs 511 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c struct i2c_msg *msgs; msgs 521 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c msgs = kcalloc(num, sizeof(struct i2c_msg), GFP_KERNEL); msgs 523 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c if (!msgs) msgs 527 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c msgs[i].flags = cmd->payloads[i].write ? 0 : I2C_M_RD; msgs 528 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c msgs[i].addr = cmd->payloads[i].address; msgs 529 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c msgs[i].len = cmd->payloads[i].length; msgs 530 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c msgs[i].buf = cmd->payloads[i].data; msgs 533 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c result = i2c_transfer(&aconnector->i2c->base, msgs, num) == num; msgs 535 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c kfree(msgs); msgs 75 drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c struct i2c_msg msgs[] = { msgs 92 drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c if (i2c_transfer(adapter, msgs, 2) != 2) { msgs 113 drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c msgs[1].len = total_size; msgs 114 drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c msgs[1].buf = block; msgs 116 drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c if (i2c_transfer(adapter, msgs, 2) != 2) { msgs 395 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c struct i2c_msg *msgs, int num) msgs 399 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c u8 addr = msgs[0].addr; msgs 414 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c if (msgs[i].len == 0) { msgs 438 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c i + 1, num, msgs[i].len, msgs[i].flags); msgs 439 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c if (msgs[i].addr == DDC_SEGMENT_ADDR && msgs[i].len == 1) { msgs 442 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c hdmi_writeb(hdmi, *msgs[i].buf, HDMI_I2CM_SEGPTR); msgs 444 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c if (msgs[i].flags & I2C_M_RD) msgs 445 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c ret = dw_hdmi_i2c_read(hdmi, msgs[i].buf, msgs 446 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c msgs[i].len); msgs 448 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c ret = dw_hdmi_i2c_write(hdmi, msgs[i].buf, msgs 449 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c msgs[i].len); msgs 65 drivers/gpu/drm/drm_dp_dual_mode_helper.c struct i2c_msg msgs[] = { msgs 81 drivers/gpu/drm/drm_dp_dual_mode_helper.c ret = i2c_transfer(adapter, msgs, ARRAY_SIZE(msgs)); msgs 84 drivers/gpu/drm/drm_dp_dual_mode_helper.c if (ret != ARRAY_SIZE(msgs)) msgs 911 drivers/gpu/drm/drm_dp_helper.c static int drm_dp_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, msgs 925 drivers/gpu/drm/drm_dp_helper.c msg.address = msgs[i].addr; msgs 926 drivers/gpu/drm/drm_dp_helper.c drm_dp_i2c_msg_set_request(&msg, &msgs[i]); msgs 939 drivers/gpu/drm/drm_dp_helper.c drm_dp_i2c_msg_set_request(&msg, &msgs[i]); msgs 948 drivers/gpu/drm/drm_dp_helper.c for (j = 0; j < msgs[i].len; j += msg.size) { msgs 949 drivers/gpu/drm/drm_dp_helper.c msg.buffer = msgs[i].buf + j; msgs 950 drivers/gpu/drm/drm_dp_helper.c msg.size = min(transfer_size, msgs[i].len - j); msgs 958 drivers/gpu/drm/drm_dp_helper.c drm_dp_i2c_msg_set_request(&msg, &msgs[i]); msgs 4020 drivers/gpu/drm/drm_dp_mst_topology.c static bool remote_i2c_read_ok(const struct i2c_msg msgs[], int num) msgs 4028 drivers/gpu/drm/drm_dp_mst_topology.c if (msgs[i].flags & I2C_M_RD || msgs 4029 drivers/gpu/drm/drm_dp_mst_topology.c msgs[i].len > 0xff) msgs 4033 drivers/gpu/drm/drm_dp_mst_topology.c return msgs[num - 1].flags & I2C_M_RD && msgs 4034 drivers/gpu/drm/drm_dp_mst_topology.c msgs[num - 1].len <= 0xff; msgs 4038 drivers/gpu/drm/drm_dp_mst_topology.c static int drm_dp_mst_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, msgs 4054 drivers/gpu/drm/drm_dp_mst_topology.c if (!remote_i2c_read_ok(msgs, num)) { msgs 4065 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.transactions[i].i2c_dev_id = msgs[i].addr; msgs 4066 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.transactions[i].num_bytes = msgs[i].len; msgs 4067 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.transactions[i].bytes = msgs[i].buf; msgs 4068 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.transactions[i].no_stop_bit = !(msgs[i].flags & I2C_M_STOP); msgs 4070 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.read_i2c_device_id = msgs[num - 1].addr; msgs 4071 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.num_bytes_read = msgs[num - 1].len; msgs 4091 drivers/gpu/drm/drm_dp_mst_topology.c if (txmsg->reply.u.remote_i2c_read_ack.num_bytes != msgs[num - 1].len) { msgs 4095 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(msgs[num - 1].buf, txmsg->reply.u.remote_i2c_read_ack.bytes, msgs[num - 1].len); msgs 1518 drivers/gpu/drm/drm_edid.c struct i2c_msg msgs[] = { msgs 1541 drivers/gpu/drm/drm_edid.c ret = i2c_transfer(adapter, &msgs[3 - xfers], xfers); msgs 57 drivers/gpu/drm/drm_scdc_helper.c struct i2c_msg msgs[2] = { msgs 71 drivers/gpu/drm/drm_scdc_helper.c ret = i2c_transfer(adapter, msgs, ARRAY_SIZE(msgs)); msgs 74 drivers/gpu/drm/drm_scdc_helper.c if (ret != ARRAY_SIZE(msgs)) msgs 152 drivers/gpu/drm/gma500/cdv_intel_dp.c struct i2c_msg *msgs, msgs 161 drivers/gpu/drm/gma500/cdv_intel_dp.c u16 len = msgs[m].len; msgs 162 drivers/gpu/drm/gma500/cdv_intel_dp.c u8 *buf = msgs[m].buf; msgs 163 drivers/gpu/drm/gma500/cdv_intel_dp.c reading = (msgs[m].flags & I2C_M_RD) != 0; msgs 164 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = i2c_algo_dp_aux_address(adapter, msgs[m].addr, reading); msgs 87 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct i2c_msg msgs[] = { msgs 106 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (i2c_transfer(&lvds_i2c_bus->adapter, msgs, 1) == 1) msgs 221 drivers/gpu/drm/gma500/intel_gmbus.c struct i2c_msg *msgs, msgs 236 drivers/gpu/drm/gma500/intel_gmbus.c ret = adapter->algo->master_xfer(adapter, msgs, num); msgs 247 drivers/gpu/drm/gma500/intel_gmbus.c struct i2c_msg *msgs, msgs 258 drivers/gpu/drm/gma500/intel_gmbus.c bus->force_bit, msgs, num); msgs 265 drivers/gpu/drm/gma500/intel_gmbus.c u16 len = msgs[i].len; msgs 266 drivers/gpu/drm/gma500/intel_gmbus.c u8 *buf = msgs[i].buf; msgs 268 drivers/gpu/drm/gma500/intel_gmbus.c if (msgs[i].flags & I2C_M_RD) { msgs 273 drivers/gpu/drm/gma500/intel_gmbus.c (msgs[i].addr << GMBUS_SLAVE_ADDR_SHIFT) | msgs 302 drivers/gpu/drm/gma500/intel_gmbus.c (msgs[i].len << GMBUS_BYTE_COUNT_SHIFT) | msgs 303 drivers/gpu/drm/gma500/intel_gmbus.c (msgs[i].addr << GMBUS_SLAVE_ADDR_SHIFT) | msgs 358 drivers/gpu/drm/gma500/intel_gmbus.c return intel_i2c_quirk_xfer(dev_priv, bus->force_bit, msgs, num); msgs 96 drivers/gpu/drm/gma500/psb_intel_lvds.c struct i2c_msg msgs[] = { msgs 115 drivers/gpu/drm/gma500/psb_intel_lvds.c if (i2c_transfer(&lvds_i2c_bus->adapter, msgs, 1) == 1) { msgs 21 drivers/gpu/drm/gma500/psb_intel_modes.c struct i2c_msg msgs[] = { msgs 36 drivers/gpu/drm/gma500/psb_intel_modes.c ret = i2c_transfer(adapter, msgs, 2); msgs 256 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct i2c_msg msgs[] = { msgs 272 drivers/gpu/drm/gma500/psb_intel_sdvo.c if ((ret = i2c_transfer(psb_intel_sdvo->i2c, msgs, 2)) == 2) msgs 439 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct i2c_msg msgs[MAX_ARG_LEN + 3]; msgs 450 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i].addr = psb_intel_sdvo->slave_addr; msgs 451 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i].flags = 0; msgs 452 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i].len = 2; msgs 453 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i].buf = buf + 2 *i; msgs 457 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i].addr = psb_intel_sdvo->slave_addr; msgs 458 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i].flags = 0; msgs 459 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i].len = 2; msgs 460 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i].buf = buf + 2*i; msgs 466 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i+1].addr = psb_intel_sdvo->slave_addr; msgs 467 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i+1].flags = 0; msgs 468 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i+1].len = 1; msgs 469 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i+1].buf = &status; msgs 471 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i+2].addr = psb_intel_sdvo->slave_addr; msgs 472 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i+2].flags = I2C_M_RD; msgs 473 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i+2].len = 1; msgs 474 drivers/gpu/drm/gma500/psb_intel_sdvo.c msgs[i+2].buf = &status; msgs 476 drivers/gpu/drm/gma500/psb_intel_sdvo.c ret = i2c_transfer(psb_intel_sdvo->i2c, msgs, i+3); msgs 2478 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct i2c_msg *msgs, msgs 2486 drivers/gpu/drm/gma500/psb_intel_sdvo.c return sdvo->i2c->algo->master_xfer(sdvo->i2c, msgs, num); msgs 236 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c struct i2c_msg msgs[] = { msgs 245 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c r = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 252 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (r < ARRAY_SIZE(msgs)) { msgs 280 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c struct i2c_msg msgs[] = { msgs 295 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c r = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 302 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (r < ARRAY_SIZE(msgs)) { msgs 171 drivers/gpu/drm/i915/display/dvo_ch7017.c struct i2c_msg msgs[] = { msgs 185 drivers/gpu/drm/i915/display/dvo_ch7017.c return i2c_transfer(dvo->i2c_bus, msgs, 2) == 2; msgs 143 drivers/gpu/drm/i915/display/dvo_ch7xxx.c struct i2c_msg msgs[] = { msgs 161 drivers/gpu/drm/i915/display/dvo_ch7xxx.c if (i2c_transfer(adapter, msgs, 2) == 2) { msgs 199 drivers/gpu/drm/i915/display/dvo_ivch.c struct i2c_msg msgs[] = { msgs 221 drivers/gpu/drm/i915/display/dvo_ivch.c if (i2c_transfer(adapter, msgs, 3) == 3) { msgs 400 drivers/gpu/drm/i915/display/dvo_ns2501.c struct i2c_msg msgs[] = { msgs 418 drivers/gpu/drm/i915/display/dvo_ns2501.c if (i2c_transfer(adapter, msgs, 2) == 2) { msgs 76 drivers/gpu/drm/i915/display/dvo_sil164.c struct i2c_msg msgs[] = { msgs 94 drivers/gpu/drm/i915/display/dvo_sil164.c if (i2c_transfer(adapter, msgs, 2) == 2) { msgs 101 drivers/gpu/drm/i915/display/dvo_tfp410.c struct i2c_msg msgs[] = { msgs 119 drivers/gpu/drm/i915/display/dvo_tfp410.c if (i2c_transfer(adapter, msgs, 2) == 2) { msgs 545 drivers/gpu/drm/i915/display/intel_gmbus.c gmbus_is_index_xfer(struct i2c_msg *msgs, int i, int num) msgs 548 drivers/gpu/drm/i915/display/intel_gmbus.c msgs[i].addr == msgs[i + 1].addr && msgs 549 drivers/gpu/drm/i915/display/intel_gmbus.c !(msgs[i].flags & I2C_M_RD) && msgs 550 drivers/gpu/drm/i915/display/intel_gmbus.c (msgs[i].len == 1 || msgs[i].len == 2) && msgs 551 drivers/gpu/drm/i915/display/intel_gmbus.c msgs[i + 1].len > 0); msgs 555 drivers/gpu/drm/i915/display/intel_gmbus.c gmbus_index_xfer(struct drm_i915_private *dev_priv, struct i2c_msg *msgs, msgs 562 drivers/gpu/drm/i915/display/intel_gmbus.c if (msgs[0].len == 2) msgs 564 drivers/gpu/drm/i915/display/intel_gmbus.c msgs[0].buf[1] | (msgs[0].buf[0] << 8); msgs 565 drivers/gpu/drm/i915/display/intel_gmbus.c if (msgs[0].len == 1) msgs 567 drivers/gpu/drm/i915/display/intel_gmbus.c (msgs[0].buf[0] << GMBUS_SLAVE_INDEX_SHIFT); msgs 573 drivers/gpu/drm/i915/display/intel_gmbus.c if (msgs[1].flags & I2C_M_RD) msgs 574 drivers/gpu/drm/i915/display/intel_gmbus.c ret = gmbus_xfer_read(dev_priv, &msgs[1], gmbus0_reg, msgs 577 drivers/gpu/drm/i915/display/intel_gmbus.c ret = gmbus_xfer_write(dev_priv, &msgs[1], gmbus1_index); msgs 587 drivers/gpu/drm/i915/display/intel_gmbus.c do_gmbus_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num, msgs 608 drivers/gpu/drm/i915/display/intel_gmbus.c if (gmbus_is_index_xfer(msgs, i, num)) { msgs 609 drivers/gpu/drm/i915/display/intel_gmbus.c ret = gmbus_index_xfer(dev_priv, &msgs[i], msgs 612 drivers/gpu/drm/i915/display/intel_gmbus.c } else if (msgs[i].flags & I2C_M_RD) { msgs 613 drivers/gpu/drm/i915/display/intel_gmbus.c ret = gmbus_xfer_read(dev_priv, &msgs[i], msgs 616 drivers/gpu/drm/i915/display/intel_gmbus.c ret = gmbus_xfer_write(dev_priv, &msgs[i], 0); msgs 677 drivers/gpu/drm/i915/display/intel_gmbus.c adapter->name, msgs[i].addr, msgs 678 drivers/gpu/drm/i915/display/intel_gmbus.c (msgs[i].flags & I2C_M_RD) ? 'r' : 'w', msgs[i].len); msgs 716 drivers/gpu/drm/i915/display/intel_gmbus.c gmbus_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) msgs 727 drivers/gpu/drm/i915/display/intel_gmbus.c ret = i2c_bit_algo.master_xfer(adapter, msgs, num); msgs 731 drivers/gpu/drm/i915/display/intel_gmbus.c ret = do_gmbus_xfer(adapter, msgs, num, 0); msgs 748 drivers/gpu/drm/i915/display/intel_gmbus.c struct i2c_msg msgs[] = { msgs 773 drivers/gpu/drm/i915/display/intel_gmbus.c ret = do_gmbus_xfer(adapter, msgs, ARRAY_SIZE(msgs), GMBUS_AKSV_SELECT); msgs 1186 drivers/gpu/drm/i915/display/intel_hdcp.c } msgs; msgs 1195 drivers/gpu/drm/i915/display/intel_hdcp.c ret = hdcp2_prepare_ake_init(connector, &msgs.ake_init); msgs 1199 drivers/gpu/drm/i915/display/intel_hdcp.c ret = shim->write_2_2_msg(intel_dig_port, &msgs.ake_init, msgs 1200 drivers/gpu/drm/i915/display/intel_hdcp.c sizeof(msgs.ake_init)); msgs 1205 drivers/gpu/drm/i915/display/intel_hdcp.c &msgs.send_cert, sizeof(msgs.send_cert)); msgs 1209 drivers/gpu/drm/i915/display/intel_hdcp.c if (msgs.send_cert.rx_caps[0] != HDCP_2_2_RX_CAPS_VERSION_VAL) { msgs 1214 drivers/gpu/drm/i915/display/intel_hdcp.c hdcp->is_repeater = HDCP_2_2_RX_REPEATER(msgs.send_cert.rx_caps[2]); msgs 1216 drivers/gpu/drm/i915/display/intel_hdcp.c if (drm_hdcp_check_ksvs_revoked(dev, msgs.send_cert.cert_rx.receiver_id, msgs 1226 drivers/gpu/drm/i915/display/intel_hdcp.c ret = hdcp2_verify_rx_cert_prepare_km(connector, &msgs.send_cert, msgs 1228 drivers/gpu/drm/i915/display/intel_hdcp.c &msgs.no_stored_km, &size); msgs 1232 drivers/gpu/drm/i915/display/intel_hdcp.c ret = shim->write_2_2_msg(intel_dig_port, &msgs.no_stored_km, size); msgs 1237 drivers/gpu/drm/i915/display/intel_hdcp.c &msgs.send_hprime, sizeof(msgs.send_hprime)); msgs 1241 drivers/gpu/drm/i915/display/intel_hdcp.c ret = hdcp2_verify_hprime(connector, &msgs.send_hprime); msgs 1249 drivers/gpu/drm/i915/display/intel_hdcp.c &msgs.pairing_info, msgs 1250 drivers/gpu/drm/i915/display/intel_hdcp.c sizeof(msgs.pairing_info)); msgs 1254 drivers/gpu/drm/i915/display/intel_hdcp.c ret = hdcp2_store_pairing_info(connector, &msgs.pairing_info); msgs 1270 drivers/gpu/drm/i915/display/intel_hdcp.c } msgs; msgs 1275 drivers/gpu/drm/i915/display/intel_hdcp.c ret = hdcp2_prepare_lc_init(connector, &msgs.lc_init); msgs 1279 drivers/gpu/drm/i915/display/intel_hdcp.c ret = shim->write_2_2_msg(intel_dig_port, &msgs.lc_init, msgs 1280 drivers/gpu/drm/i915/display/intel_hdcp.c sizeof(msgs.lc_init)); msgs 1286 drivers/gpu/drm/i915/display/intel_hdcp.c &msgs.send_lprime, msgs 1287 drivers/gpu/drm/i915/display/intel_hdcp.c sizeof(msgs.send_lprime)); msgs 1291 drivers/gpu/drm/i915/display/intel_hdcp.c ret = hdcp2_verify_lprime(connector, &msgs.send_lprime); msgs 1326 drivers/gpu/drm/i915/display/intel_hdcp.c } msgs; msgs 1331 drivers/gpu/drm/i915/display/intel_hdcp.c msgs.stream_manage.msg_id = HDCP_2_2_REP_STREAM_MANAGE; msgs 1332 drivers/gpu/drm/i915/display/intel_hdcp.c drm_hdcp_cpu_to_be24(msgs.stream_manage.seq_num_m, hdcp->seq_num_m); msgs 1335 drivers/gpu/drm/i915/display/intel_hdcp.c msgs.stream_manage.k = cpu_to_be16(1); msgs 1338 drivers/gpu/drm/i915/display/intel_hdcp.c msgs.stream_manage.streams[0].stream_id = 0; msgs 1339 drivers/gpu/drm/i915/display/intel_hdcp.c msgs.stream_manage.streams[0].stream_type = hdcp->content_type; msgs 1342 drivers/gpu/drm/i915/display/intel_hdcp.c ret = shim->write_2_2_msg(intel_dig_port, &msgs.stream_manage, msgs 1343 drivers/gpu/drm/i915/display/intel_hdcp.c sizeof(msgs.stream_manage)); msgs 1348 drivers/gpu/drm/i915/display/intel_hdcp.c &msgs.stream_ready, sizeof(msgs.stream_ready)); msgs 1355 drivers/gpu/drm/i915/display/intel_hdcp.c ret = hdcp2_verify_mprime(connector, &msgs.stream_ready); msgs 1378 drivers/gpu/drm/i915/display/intel_hdcp.c } msgs; msgs 1385 drivers/gpu/drm/i915/display/intel_hdcp.c &msgs.recvid_list, sizeof(msgs.recvid_list)); msgs 1389 drivers/gpu/drm/i915/display/intel_hdcp.c rx_info = msgs.recvid_list.rx_info; msgs 1399 drivers/gpu/drm/i915/display/intel_hdcp.c drm_hdcp_be24_to_cpu((const u8 *)msgs.recvid_list.seq_num_v); msgs 1409 drivers/gpu/drm/i915/display/intel_hdcp.c if (drm_hdcp_check_ksvs_revoked(dev, msgs.recvid_list.receiver_ids, msgs 1416 drivers/gpu/drm/i915/display/intel_hdcp.c &msgs.recvid_list, msgs 1417 drivers/gpu/drm/i915/display/intel_hdcp.c &msgs.rep_ack); msgs 1422 drivers/gpu/drm/i915/display/intel_hdcp.c ret = shim->write_2_2_msg(intel_dig_port, &msgs.rep_ack, msgs 1423 drivers/gpu/drm/i915/display/intel_hdcp.c sizeof(msgs.rep_ack)); msgs 1252 drivers/gpu/drm/i915/display/intel_hdmi.c struct i2c_msg msgs[] = { msgs 1266 drivers/gpu/drm/i915/display/intel_hdmi.c ret = i2c_transfer(adapter, msgs, ARRAY_SIZE(msgs)); msgs 1267 drivers/gpu/drm/i915/display/intel_hdmi.c if (ret == ARRAY_SIZE(msgs)) msgs 254 drivers/gpu/drm/i915/display/intel_sdvo.c struct i2c_msg msgs[] = { msgs 270 drivers/gpu/drm/i915/display/intel_sdvo.c if ((ret = i2c_transfer(intel_sdvo->i2c, msgs, 2)) == 2) msgs 466 drivers/gpu/drm/i915/display/intel_sdvo.c struct i2c_msg *msgs; msgs 474 drivers/gpu/drm/i915/display/intel_sdvo.c msgs = kcalloc(args_len + 3, sizeof(*msgs), GFP_KERNEL); msgs 475 drivers/gpu/drm/i915/display/intel_sdvo.c if (!msgs) { msgs 483 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i].addr = intel_sdvo->slave_addr; msgs 484 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i].flags = 0; msgs 485 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i].len = 2; msgs 486 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i].buf = buf + 2 *i; msgs 490 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i].addr = intel_sdvo->slave_addr; msgs 491 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i].flags = 0; msgs 492 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i].len = 2; msgs 493 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i].buf = buf + 2*i; msgs 499 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i+1].addr = intel_sdvo->slave_addr; msgs 500 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i+1].flags = 0; msgs 501 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i+1].len = 1; msgs 502 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i+1].buf = &status; msgs 504 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i+2].addr = intel_sdvo->slave_addr; msgs 505 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i+2].flags = I2C_M_RD; msgs 506 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i+2].len = 1; msgs 507 drivers/gpu/drm/i915/display/intel_sdvo.c msgs[i+2].buf = &status; msgs 510 drivers/gpu/drm/i915/display/intel_sdvo.c ret = i2c_transfer(intel_sdvo->i2c, msgs, i+3); msgs 512 drivers/gpu/drm/i915/display/intel_sdvo.c ret = __i2c_transfer(intel_sdvo->i2c, msgs, i+3); msgs 525 drivers/gpu/drm/i915/display/intel_sdvo.c kfree(msgs); msgs 3163 drivers/gpu/drm/i915/display/intel_sdvo.c struct i2c_msg *msgs, msgs 3171 drivers/gpu/drm/i915/display/intel_sdvo.c return sdvo->i2c->algo->master_xfer(sdvo->i2c, msgs, num); msgs 209 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c struct i2c_msg *msgs, int num) msgs 234 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c struct i2c_msg *msg = &msgs[i]; msgs 83 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c struct i2c_msg msgs[] = { msgs 99 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c rc = i2c_transfer(hdmi->i2c, msgs, 2); msgs 122 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c struct i2c_msg msgs[] = { msgs 138 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c msgs[0].buf = buf; msgs 139 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c msgs[0].len = data_len + 1; msgs 141 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c rc = i2c_transfer(hdmi->i2c, msgs, 1); msgs 90 drivers/gpu/drm/msm/hdmi/hdmi_i2c.c struct i2c_msg *msgs, int num) msgs 117 drivers/gpu/drm/msm/hdmi/hdmi_i2c.c struct i2c_msg *p = &msgs[i]; msgs 179 drivers/gpu/drm/msm/hdmi/hdmi_i2c.c struct i2c_msg *p = &msgs[i]; msgs 101 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h struct i2c_msg msgs[] = { msgs 106 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); msgs 117 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h struct i2c_msg msgs[] = { msgs 122 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); msgs 133 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h struct i2c_msg msgs[] = { msgs 137 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); msgs 148 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h struct i2c_msg msgs[] = { msgs 152 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); msgs 43 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c anx9805_bus_xfer(struct nvkm_i2c_bus *base, struct i2c_msg *msgs, int num) msgs 48 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c struct i2c_msg *msg = msgs; msgs 28 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c nvkm_i2c_aux_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 31 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c struct i2c_msg *msg = msgs; msgs 183 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_bit_xfer(struct nvkm_i2c_bus *bus, struct i2c_msg *msgs, int num) msgs 185 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c struct i2c_msg *msg = msgs; msgs 212 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_bit_xfer(struct nvkm_i2c_bus *bus, struct i2c_msg *msgs, int num) msgs 78 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c nvkm_i2c_bus_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 87 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c ret = bus->func->xfer(bus, msgs, num); msgs 35 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c struct i2c_msg msgs[] = { msgs 40 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c return i2c_transfer(&bus->i2c, msgs, 2) == 2; msgs 106 drivers/gpu/drm/radeon/atombios_i2c.c struct i2c_msg *msgs, int num) msgs 114 drivers/gpu/drm/radeon/atombios_i2c.c p = &msgs[0]; msgs 126 drivers/gpu/drm/radeon/atombios_i2c.c p = &msgs[i]; msgs 38 drivers/gpu/drm/radeon/radeon_i2c.c struct i2c_msg *msgs, int num); msgs 50 drivers/gpu/drm/radeon/radeon_i2c.c struct i2c_msg msgs[] = { msgs 70 drivers/gpu/drm/radeon/radeon_i2c.c ret = i2c_transfer(&radeon_connector->ddc_bus->aux.ddc, msgs, 2); msgs 72 drivers/gpu/drm/radeon/radeon_i2c.c ret = i2c_transfer(&radeon_connector->ddc_bus->adapter, msgs, 2); msgs 330 drivers/gpu/drm/radeon/radeon_i2c.c struct i2c_msg *msgs, int num) msgs 467 drivers/gpu/drm/radeon/radeon_i2c.c p = &msgs[0]; msgs 499 drivers/gpu/drm/radeon/radeon_i2c.c p = &msgs[i]; msgs 583 drivers/gpu/drm/radeon/radeon_i2c.c struct i2c_msg *msgs, int num) msgs 670 drivers/gpu/drm/radeon/radeon_i2c.c p = &msgs[0]; msgs 707 drivers/gpu/drm/radeon/radeon_i2c.c p = &msgs[i]; msgs 816 drivers/gpu/drm/radeon/radeon_i2c.c struct i2c_msg *msgs, int num) msgs 844 drivers/gpu/drm/radeon/radeon_i2c.c ret = r100_hw_i2c_xfer(i2c_adap, msgs, num); msgs 858 drivers/gpu/drm/radeon/radeon_i2c.c ret = r100_hw_i2c_xfer(i2c_adap, msgs, num); msgs 860 drivers/gpu/drm/radeon/radeon_i2c.c ret = r500_hw_i2c_xfer(i2c_adap, msgs, num); msgs 1056 drivers/gpu/drm/radeon/radeon_i2c.c struct i2c_msg msgs[] = { msgs 1074 drivers/gpu/drm/radeon/radeon_i2c.c if (i2c_transfer(&i2c_bus->adapter, msgs, 2) == 2) { msgs 679 drivers/gpu/drm/rockchip/inno_hdmi.c static int inno_hdmi_i2c_read(struct inno_hdmi *hdmi, struct i2c_msg *msgs) msgs 681 drivers/gpu/drm/rockchip/inno_hdmi.c int length = msgs->len; msgs 682 drivers/gpu/drm/rockchip/inno_hdmi.c u8 *buf = msgs->buf; msgs 695 drivers/gpu/drm/rockchip/inno_hdmi.c static int inno_hdmi_i2c_write(struct inno_hdmi *hdmi, struct i2c_msg *msgs) msgs 702 drivers/gpu/drm/rockchip/inno_hdmi.c if ((msgs->len != 1) || msgs 703 drivers/gpu/drm/rockchip/inno_hdmi.c ((msgs->addr != DDC_ADDR) && (msgs->addr != DDC_SEGMENT_ADDR))) msgs 708 drivers/gpu/drm/rockchip/inno_hdmi.c if (msgs->addr == DDC_SEGMENT_ADDR) msgs 709 drivers/gpu/drm/rockchip/inno_hdmi.c hdmi->i2c->segment_addr = msgs->buf[0]; msgs 710 drivers/gpu/drm/rockchip/inno_hdmi.c if (msgs->addr == DDC_ADDR) msgs 711 drivers/gpu/drm/rockchip/inno_hdmi.c hdmi->i2c->ddc_addr = msgs->buf[0]; msgs 726 drivers/gpu/drm/rockchip/inno_hdmi.c struct i2c_msg *msgs, int num) msgs 741 drivers/gpu/drm/rockchip/inno_hdmi.c i + 1, num, msgs[i].len, msgs[i].flags); msgs 743 drivers/gpu/drm/rockchip/inno_hdmi.c if (msgs[i].flags & I2C_M_RD) msgs 744 drivers/gpu/drm/rockchip/inno_hdmi.c ret = inno_hdmi_i2c_read(hdmi, &msgs[i]); msgs 746 drivers/gpu/drm/rockchip/inno_hdmi.c ret = inno_hdmi_i2c_write(hdmi, &msgs[i]); msgs 609 drivers/gpu/drm/rockchip/rk3066_hdmi.c static int rk3066_hdmi_i2c_read(struct rk3066_hdmi *hdmi, struct i2c_msg *msgs) msgs 611 drivers/gpu/drm/rockchip/rk3066_hdmi.c int length = msgs->len; msgs 612 drivers/gpu/drm/rockchip/rk3066_hdmi.c u8 *buf = msgs->buf; msgs 625 drivers/gpu/drm/rockchip/rk3066_hdmi.c static int rk3066_hdmi_i2c_write(struct rk3066_hdmi *hdmi, struct i2c_msg *msgs) msgs 632 drivers/gpu/drm/rockchip/rk3066_hdmi.c if (msgs->len != 1 || msgs 633 drivers/gpu/drm/rockchip/rk3066_hdmi.c (msgs->addr != DDC_ADDR && msgs->addr != DDC_SEGMENT_ADDR)) msgs 638 drivers/gpu/drm/rockchip/rk3066_hdmi.c if (msgs->addr == DDC_SEGMENT_ADDR) msgs 639 drivers/gpu/drm/rockchip/rk3066_hdmi.c hdmi->i2c->segment_addr = msgs->buf[0]; msgs 640 drivers/gpu/drm/rockchip/rk3066_hdmi.c if (msgs->addr == DDC_ADDR) msgs 641 drivers/gpu/drm/rockchip/rk3066_hdmi.c hdmi->i2c->ddc_addr = msgs->buf[0]; msgs 653 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct i2c_msg *msgs, int num) msgs 671 drivers/gpu/drm/rockchip/rk3066_hdmi.c i + 1, num, msgs[i].len, msgs[i].flags); msgs 673 drivers/gpu/drm/rockchip/rk3066_hdmi.c if (msgs[i].flags & I2C_M_RD) msgs 674 drivers/gpu/drm/rockchip/rk3066_hdmi.c ret = rk3066_hdmi_i2c_read(hdmi, &msgs[i]); msgs 676 drivers/gpu/drm/rockchip/rk3066_hdmi.c ret = rk3066_hdmi_i2c_write(hdmi, &msgs[i]); msgs 147 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c struct i2c_msg *msgs, int num) msgs 154 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c if (!msgs[i].len) msgs 156 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c if (msgs[i].len > SUN4I_HDMI_DDC_BYTE_COUNT_MAX) msgs 177 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c err = xfer_msg(hdmi, &msgs[i]); msgs 561 drivers/gpu/drm/zte/zx_hdmi.c static int zx_hdmi_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 576 drivers/gpu/drm/zte/zx_hdmi.c i + 1, num, msgs[i].len, msgs[i].flags); msgs 578 drivers/gpu/drm/zte/zx_hdmi.c if (msgs[i].flags & I2C_M_RD) msgs 579 drivers/gpu/drm/zte/zx_hdmi.c ret = zx_hdmi_i2c_read(hdmi, &msgs[i]); msgs 581 drivers/gpu/drm/zte/zx_hdmi.c ret = zx_hdmi_i2c_write(hdmi, &msgs[i]); msgs 283 drivers/gpu/drm/zte/zx_vga.c static int zx_vga_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 294 drivers/gpu/drm/zte/zx_vga.c if (msgs[i].flags & I2C_M_RD) msgs 295 drivers/gpu/drm/zte/zx_vga.c ret = zx_vga_i2c_read(vga, &msgs[i]); msgs 297 drivers/gpu/drm/zte/zx_vga.c ret = zx_vga_i2c_write(vga, &msgs[i]); msgs 517 drivers/hid/hid-cp2112.c static int cp2112_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 532 drivers/hid/hid-cp2112.c if (msgs->flags & I2C_M_RD) { msgs 534 drivers/hid/hid-cp2112.c msgs->addr, msgs->len); msgs 535 drivers/hid/hid-cp2112.c read_length = msgs->len; msgs 536 drivers/hid/hid-cp2112.c read_buf = msgs->buf; msgs 537 drivers/hid/hid-cp2112.c count = cp2112_read_req(buf, msgs->addr, msgs->len); msgs 540 drivers/hid/hid-cp2112.c msgs->addr, msgs->len); msgs 541 drivers/hid/hid-cp2112.c count = cp2112_i2c_write_req(buf, msgs->addr, msgs 542 drivers/hid/hid-cp2112.c msgs->buf, msgs->len); msgs 548 drivers/hid/hid-cp2112.c msgs[0].addr == msgs[1].addr && msgs 549 drivers/hid/hid-cp2112.c !(msgs[0].flags & I2C_M_RD) && (msgs[1].flags & I2C_M_RD)) { msgs 551 drivers/hid/hid-cp2112.c msgs[0].addr, msgs[0].len, msgs[1].len); msgs 552 drivers/hid/hid-cp2112.c read_length = msgs[1].len; msgs 553 drivers/hid/hid-cp2112.c read_buf = msgs[1].buf; msgs 554 drivers/hid/hid-cp2112.c count = cp2112_i2c_write_read_req(buf, msgs[0].addr, msgs 555 drivers/hid/hid-cp2112.c msgs[0].buf, msgs[0].len, msgs[1].len); msgs 88 drivers/hwmon/hih6130.c struct i2c_msg msgs[1] = { msgs 127 drivers/hwmon/hih6130.c ret = i2c_transfer(client->adapter, msgs, 1); msgs 40 drivers/hwmon/occ/p8_i2c.c struct i2c_msg msgs[2]; msgs 45 drivers/hwmon/occ/p8_i2c.c msgs[0].addr = client->addr; msgs 46 drivers/hwmon/occ/p8_i2c.c msgs[0].flags = client->flags & I2C_M_TEN; msgs 47 drivers/hwmon/occ/p8_i2c.c msgs[0].len = sizeof(u32); msgs 49 drivers/hwmon/occ/p8_i2c.c msgs[0].buf = (char *)&address; msgs 52 drivers/hwmon/occ/p8_i2c.c msgs[1].addr = client->addr; msgs 53 drivers/hwmon/occ/p8_i2c.c msgs[1].flags = (client->flags & I2C_M_TEN) | I2C_M_RD; msgs 54 drivers/hwmon/occ/p8_i2c.c msgs[1].len = sizeof(u64); msgs 55 drivers/hwmon/occ/p8_i2c.c msgs[1].buf = (char *)&buf; msgs 57 drivers/hwmon/occ/p8_i2c.c rc = i2c_transfer(client->adapter, msgs, 2); msgs 165 drivers/hwmon/sht21.c struct i2c_msg msgs[2] = { msgs 183 drivers/hwmon/sht21.c ret = i2c_transfer(client->adapter, msgs, 2); msgs 193 drivers/hwmon/sht21.c msgs[1].len = 6; msgs 194 drivers/hwmon/sht21.c ret = i2c_transfer(client->adapter, msgs, 2); msgs 532 drivers/i2c/algos/i2c-algo-bit.c struct i2c_msg msgs[], int num) msgs 548 drivers/i2c/algos/i2c-algo-bit.c pmsg = &msgs[i]; msgs 552 drivers/i2c/algos/i2c-algo-bit.c if (msgs[i - 1].flags & I2C_M_STOP) { msgs 567 drivers/i2c/algos/i2c-algo-bit.c msgs[i].addr, i); msgs 612 drivers/i2c/algos/i2c-algo-bit.c static int bit_xfer_atomic(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], msgs 620 drivers/i2c/algos/i2c-algo-bit.c return bit_xfer(i2c_adap, msgs, num); msgs 169 drivers/i2c/algos/i2c-algo-pca.c struct i2c_msg *msgs, msgs 196 drivers/i2c/algos/i2c-algo-pca.c msg = &msgs[curmsg]; msgs 220 drivers/i2c/algos/i2c-algo-pca.c msg = &msgs[curmsg]; msgs 295 drivers/i2c/algos/i2c-algo-pcf.c struct i2c_msg *msgs, msgs 316 drivers/i2c/algos/i2c-algo-pcf.c pmsg = &msgs[i]; msgs 352 drivers/i2c/algos/i2c-algo-pcf.c i, msgs[i].addr, msgs[i].flags, msgs[i].len);) msgs 366 drivers/i2c/busses/i2c-altera.c altr_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 372 drivers/i2c/busses/i2c-altera.c ret = altr_i2c_xfer_msg(idev, msgs++); msgs 153 drivers/i2c/busses/i2c-amd-mp2-plat.c static int i2c_amd_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 167 drivers/i2c/busses/i2c-amd-mp2-plat.c pmsg = &msgs[i]; msgs 156 drivers/i2c/busses/i2c-aspeed.c struct i2c_msg *msgs; msgs 342 drivers/i2c/busses/i2c-aspeed.c struct i2c_msg *msg = &bus->msgs[bus->msgs_index]; msgs 438 drivers/i2c/busses/i2c-aspeed.c if (!bus->msgs) { msgs 447 drivers/i2c/busses/i2c-aspeed.c msg = &bus->msgs[bus->msgs_index]; msgs 586 drivers/i2c/busses/i2c-aspeed.c bus->msgs = NULL; msgs 659 drivers/i2c/busses/i2c-aspeed.c struct i2c_msg *msgs, int num) msgs 681 drivers/i2c/busses/i2c-aspeed.c bus->msgs = msgs; msgs 213 drivers/i2c/busses/i2c-au1550.c au1550_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) msgs 222 drivers/i2c/busses/i2c-au1550.c p = &msgs[i]; msgs 479 drivers/i2c/busses/i2c-axxia.c static int axxia_i2c_xfer_seq(struct axxia_i2c_dev *idev, struct i2c_msg msgs[]) msgs 482 drivers/i2c/busses/i2c-axxia.c u32 rlen = i2c_m_recv_len(&msgs[1]) ? I2C_SMBUS_BLOCK_MAX : msgs[1].len; msgs 485 drivers/i2c/busses/i2c-axxia.c axxia_i2c_set_addr(idev, &msgs[0]); msgs 487 drivers/i2c/busses/i2c-axxia.c writel(msgs[0].len, idev->base + MST_TX_XFER); msgs 490 drivers/i2c/busses/i2c-axxia.c idev->msg = &msgs[0]; msgs 491 drivers/i2c/busses/i2c-axxia.c idev->msg_r = &msgs[1]; msgs 605 drivers/i2c/busses/i2c-axxia.c static bool axxia_i2c_sequence_ok(struct i2c_msg msgs[], int num) msgs 607 drivers/i2c/busses/i2c-axxia.c return num == SEQ_LEN && !i2c_m_rd(&msgs[0]) && i2c_m_rd(&msgs[1]) && msgs 608 drivers/i2c/busses/i2c-axxia.c msgs[0].len > 0 && msgs[0].len <= FIFO_SIZE && msgs 609 drivers/i2c/busses/i2c-axxia.c msgs[1].len > 0 && msgs[0].addr == msgs[1].addr; msgs 613 drivers/i2c/busses/i2c-axxia.c axxia_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) msgs 621 drivers/i2c/busses/i2c-axxia.c if (axxia_i2c_sequence_ok(msgs, num)) { msgs 622 drivers/i2c/busses/i2c-axxia.c ret = axxia_i2c_xfer_seq(idev, msgs); msgs 629 drivers/i2c/busses/i2c-axxia.c ret = axxia_i2c_xfer_msg(idev, &msgs[i], i == (num - 1)); msgs 777 drivers/i2c/busses/i2c-bcm-iproc.c struct i2c_msg msgs[], int num) msgs 784 drivers/i2c/busses/i2c-bcm-iproc.c ret = bcm_iproc_i2c_xfer_single_msg(iproc_i2c, &msgs[i]); msgs 602 drivers/i2c/busses/i2c-bcm-kona.c struct i2c_msg msgs[], int num) msgs 638 drivers/i2c/busses/i2c-bcm-kona.c pmsg = &msgs[i]; msgs 340 drivers/i2c/busses/i2c-bcm2835.c static int bcm2835_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], msgs 348 drivers/i2c/busses/i2c-bcm2835.c if (msgs[i].flags & I2C_M_RD) { msgs 354 drivers/i2c/busses/i2c-bcm2835.c i2c_dev->curr_msg = msgs; msgs 456 drivers/i2c/busses/i2c-brcmstb.c struct i2c_msg msgs[], int num) msgs 470 drivers/i2c/busses/i2c-brcmstb.c pmsg = &msgs[i]; msgs 479 drivers/i2c/busses/i2c-brcmstb.c if (i < (num - 1) && (msgs[i + 1].flags & I2C_M_NOSTART)) msgs 568 drivers/i2c/busses/i2c-cadence.c static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 599 drivers/i2c/busses/i2c-cadence.c if (msgs[count].flags & I2C_M_RD) { msgs 615 drivers/i2c/busses/i2c-cadence.c for (count = 0; count < num; count++, msgs++) { msgs 619 drivers/i2c/busses/i2c-cadence.c ret = cdns_i2c_process_msg(id, msgs, adap); msgs 294 drivers/i2c/busses/i2c-cpm.c static int cpm_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 325 drivers/i2c/busses/i2c-cpm.c pmsg = &msgs[tptr]; msgs 348 drivers/i2c/busses/i2c-cpm.c pmsg = &msgs[tptr]; msgs 534 drivers/i2c/busses/i2c-davinci.c i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) msgs 556 drivers/i2c/busses/i2c-davinci.c ret = i2c_davinci_xfer_msg(adap, &msgs[i], (i == (num - 1))); msgs 237 drivers/i2c/busses/i2c-designware-core.h struct i2c_msg *msgs; msgs 190 drivers/i2c/busses/i2c-designware-master.c struct i2c_msg *msgs = dev->msgs; msgs 198 drivers/i2c/busses/i2c-designware-master.c if (msgs[dev->msg_write_idx].flags & I2C_M_TEN) { msgs 217 drivers/i2c/busses/i2c-designware-master.c dw_writel(dev, msgs[dev->msg_write_idx].addr | ic_tar, DW_IC_TAR); msgs 242 drivers/i2c/busses/i2c-designware-master.c struct i2c_msg *msgs = dev->msgs; msgs 245 drivers/i2c/busses/i2c-designware-master.c u32 addr = msgs[dev->msg_write_idx].addr; msgs 253 drivers/i2c/busses/i2c-designware-master.c u32 flags = msgs[dev->msg_write_idx].flags; msgs 260 drivers/i2c/busses/i2c-designware-master.c if (msgs[dev->msg_write_idx].addr != addr) { msgs 269 drivers/i2c/busses/i2c-designware-master.c buf = msgs[dev->msg_write_idx].buf; msgs 270 drivers/i2c/busses/i2c-designware-master.c buf_len = msgs[dev->msg_write_idx].len; msgs 309 drivers/i2c/busses/i2c-designware-master.c if (msgs[dev->msg_write_idx].flags & I2C_M_RD) { msgs 355 drivers/i2c/busses/i2c-designware-master.c struct i2c_msg *msgs = dev->msgs; msgs 356 drivers/i2c/busses/i2c-designware-master.c u32 flags = msgs[dev->msg_read_idx].flags; msgs 364 drivers/i2c/busses/i2c-designware-master.c msgs[dev->msg_read_idx].len = len; msgs 365 drivers/i2c/busses/i2c-designware-master.c msgs[dev->msg_read_idx].flags &= ~I2C_M_RECV_LEN; msgs 373 drivers/i2c/busses/i2c-designware-master.c struct i2c_msg *msgs = dev->msgs; msgs 380 drivers/i2c/busses/i2c-designware-master.c if (!(msgs[dev->msg_read_idx].flags & I2C_M_RD)) msgs 384 drivers/i2c/busses/i2c-designware-master.c len = msgs[dev->msg_read_idx].len; msgs 385 drivers/i2c/busses/i2c-designware-master.c buf = msgs[dev->msg_read_idx].buf; msgs 394 drivers/i2c/busses/i2c-designware-master.c u32 flags = msgs[dev->msg_read_idx].flags; msgs 420 drivers/i2c/busses/i2c-designware-master.c i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) msgs 435 drivers/i2c/busses/i2c-designware-master.c dev->msgs = msgs; msgs 245 drivers/i2c/busses/i2c-digicolor.c static int dc_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 251 drivers/i2c/busses/i2c-digicolor.c ret = dc_i2c_xfer_msg(i2c, &msgs[i], i == 0, i == num - 1); msgs 341 drivers/i2c/busses/i2c-diolan-u2c.c static int diolan_usb_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, msgs 354 drivers/i2c/busses/i2c-diolan-u2c.c pmsg = &msgs[i]; msgs 141 drivers/i2c/busses/i2c-dln2.c struct i2c_msg *msgs, int num) msgs 150 drivers/i2c/busses/i2c-dln2.c pmsg = &msgs[i]; msgs 122 drivers/i2c/busses/i2c-efm32.c struct i2c_msg *msgs; msgs 141 drivers/i2c/busses/i2c-efm32.c struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; msgs 149 drivers/i2c/busses/i2c-efm32.c struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; msgs 170 drivers/i2c/busses/i2c-efm32.c struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; msgs 195 drivers/i2c/busses/i2c-efm32.c struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; msgs 255 drivers/i2c/busses/i2c-efm32.c struct i2c_msg *msgs, int num) msgs 260 drivers/i2c/busses/i2c-efm32.c if (ddata->msgs) msgs 263 drivers/i2c/busses/i2c-efm32.c ddata->msgs = msgs; msgs 367 drivers/i2c/busses/i2c-eg20t.c struct i2c_msg *msgs, u32 last, u32 first) msgs 379 drivers/i2c/busses/i2c-eg20t.c length = msgs->len; msgs 380 drivers/i2c/busses/i2c-eg20t.c buf = msgs->buf; msgs 381 drivers/i2c/busses/i2c-eg20t.c addr = msgs->addr; msgs 394 drivers/i2c/busses/i2c-eg20t.c if (msgs->flags & I2C_M_TEN) { msgs 408 drivers/i2c/busses/i2c-eg20t.c iowrite32(i2c_8bit_addr_from_msg(msgs), p + PCH_I2CDR); msgs 483 drivers/i2c/busses/i2c-eg20t.c static s32 pch_i2c_readbytes(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, msgs 497 drivers/i2c/busses/i2c-eg20t.c length = msgs->len; msgs 498 drivers/i2c/busses/i2c-eg20t.c buf = msgs->buf; msgs 499 drivers/i2c/busses/i2c-eg20t.c addr = msgs->addr; msgs 509 drivers/i2c/busses/i2c-eg20t.c if (msgs->flags & I2C_M_TEN) { msgs 532 drivers/i2c/busses/i2c-eg20t.c iowrite32(i2c_8bit_addr_from_msg(msgs), p + PCH_I2CDR); msgs 653 drivers/i2c/busses/i2c-eg20t.c struct i2c_msg *msgs, s32 num) msgs 677 drivers/i2c/busses/i2c-eg20t.c pmsg = &msgs[i]; msgs 209 drivers/i2c/busses/i2c-emev2.c static int em_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 219 drivers/i2c/busses/i2c-emev2.c ret = __em_i2c_xfer(adap, &msgs[i], (i == (num - 1))); msgs 670 drivers/i2c/busses/i2c-exynos5.c struct i2c_msg *msgs, int stop) msgs 675 drivers/i2c/busses/i2c-exynos5.c i2c->msg = msgs; msgs 701 drivers/i2c/busses/i2c-exynos5.c (msgs->flags & I2C_M_RD) ? "rx" : "tx"); msgs 709 drivers/i2c/busses/i2c-exynos5.c struct i2c_msg *msgs, int num) msgs 719 drivers/i2c/busses/i2c-exynos5.c ret = exynos5_i2c_xfer_msg(i2c, msgs + i, i + 1 == num); msgs 606 drivers/i2c/busses/i2c-fsi.c static int fsi_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 622 drivers/i2c/busses/i2c-fsi.c msg = msgs + i; msgs 317 drivers/i2c/busses/i2c-hix5hd2.c struct i2c_msg *msgs, int stop) msgs 322 drivers/i2c/busses/i2c-hix5hd2.c priv->msg = msgs; msgs 338 drivers/i2c/busses/i2c-hix5hd2.c msgs->flags & I2C_M_RD ? "rx" : "tx", msgs 357 drivers/i2c/busses/i2c-hix5hd2.c struct i2c_msg *msgs, int num) msgs 364 drivers/i2c/busses/i2c-hix5hd2.c for (i = 0; i < num; i++, msgs++) { msgs 366 drivers/i2c/busses/i2c-hix5hd2.c ret = hix5hd2_i2c_xfer_msg(priv, msgs, stop); msgs 551 drivers/i2c/busses/i2c-ibm_iic.c static int iic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 562 drivers/i2c/busses/i2c-ibm_iic.c if (unlikely(iic_invalid_address(&msgs[0]))){ msgs 564 drivers/i2c/busses/i2c-ibm_iic.c msgs[0].addr, msgs[0].flags & I2C_M_TEN ? 10 : 7); msgs 568 drivers/i2c/busses/i2c-ibm_iic.c if (unlikely(msgs[i].len <= 0)){ msgs 569 drivers/i2c/busses/i2c-ibm_iic.c if (num == 1 && !msgs[0].len){ msgs 574 drivers/i2c/busses/i2c-ibm_iic.c return iic_smbus_quick(dev, &msgs[0]); msgs 577 drivers/i2c/busses/i2c-ibm_iic.c msgs[i].len, i); msgs 580 drivers/i2c/busses/i2c-ibm_iic.c if (unlikely(iic_address_neq(&msgs[0], &msgs[i]))){ msgs 611 drivers/i2c/busses/i2c-ibm_iic.c iic_address(dev, &msgs[0]); msgs 615 drivers/i2c/busses/i2c-ibm_iic.c ret = iic_xfer_bytes(dev, &msgs[i], i < num - 1); msgs 1024 drivers/i2c/busses/i2c-img-scb.c static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 1045 drivers/i2c/busses/i2c-img-scb.c if (!msgs[i].len && msgs[i].flags & I2C_M_RD) msgs 1055 drivers/i2c/busses/i2c-img-scb.c if (!msgs[i].len || msgs 1056 drivers/i2c/busses/i2c-img-scb.c (msgs[i].flags & I2C_M_IGNORE_NAK)) msgs 1065 drivers/i2c/busses/i2c-img-scb.c struct i2c_msg *msg = &msgs[i]; msgs 170 drivers/i2c/busses/i2c-imx-lpi2c.c struct i2c_msg *msgs) msgs 179 drivers/i2c/busses/i2c-imx-lpi2c.c temp = i2c_8bit_addr_from_msg(msgs) | (GEN_START << 8); msgs 428 drivers/i2c/busses/i2c-imx-lpi2c.c struct i2c_msg *msgs) msgs 430 drivers/i2c/busses/i2c-imx-lpi2c.c lpi2c_imx->tx_buf = msgs->buf; msgs 436 drivers/i2c/busses/i2c-imx-lpi2c.c struct i2c_msg *msgs) msgs 440 drivers/i2c/busses/i2c-imx-lpi2c.c lpi2c_imx->rx_buf = msgs->buf; msgs 441 drivers/i2c/busses/i2c-imx-lpi2c.c lpi2c_imx->block_data = msgs->flags & I2C_M_RECV_LEN; msgs 444 drivers/i2c/busses/i2c-imx-lpi2c.c temp = msgs->len > CHUNK_DATA ? CHUNK_DATA - 1 : msgs->len - 1; msgs 452 drivers/i2c/busses/i2c-imx-lpi2c.c struct i2c_msg *msgs, int num) msgs 463 drivers/i2c/busses/i2c-imx-lpi2c.c result = lpi2c_imx_start(lpi2c_imx, &msgs[i]); msgs 468 drivers/i2c/busses/i2c-imx-lpi2c.c if (num == 1 && msgs[0].len == 0) msgs 472 drivers/i2c/busses/i2c-imx-lpi2c.c lpi2c_imx->msglen = msgs[i].len; msgs 475 drivers/i2c/busses/i2c-imx-lpi2c.c if (msgs[i].flags & I2C_M_RD) msgs 476 drivers/i2c/busses/i2c-imx-lpi2c.c lpi2c_imx_read(lpi2c_imx, &msgs[i]); msgs 478 drivers/i2c/busses/i2c-imx-lpi2c.c lpi2c_imx_write(lpi2c_imx, &msgs[i]); msgs 484 drivers/i2c/busses/i2c-imx-lpi2c.c if (!(msgs[i].flags & I2C_M_RD)) { msgs 359 drivers/i2c/busses/i2c-imx.c struct i2c_msg *msgs) msgs 366 drivers/i2c/busses/i2c-imx.c dma->dma_buf = dma_map_single(chan_dev, msgs->buf, msgs 611 drivers/i2c/busses/i2c-imx.c struct i2c_msg *msgs) msgs 623 drivers/i2c/busses/i2c-imx.c dma->dma_len = msgs->len - 1; msgs 624 drivers/i2c/busses/i2c-imx.c result = i2c_imx_dma_xfer(i2c_imx, msgs); msgs 636 drivers/i2c/busses/i2c-imx.c imx_i2c_write_reg(i2c_8bit_addr_from_msg(msgs), i2c_imx, IMX_I2C_I2DR); msgs 663 drivers/i2c/busses/i2c-imx.c imx_i2c_write_reg(msgs->buf[msgs->len-1], msgs 673 drivers/i2c/busses/i2c-imx.c struct i2c_msg *msgs, bool is_lastmsg) msgs 687 drivers/i2c/busses/i2c-imx.c dma->dma_len = msgs->len - 2; msgs 688 drivers/i2c/busses/i2c-imx.c result = i2c_imx_dma_xfer(i2c_imx, msgs); msgs 722 drivers/i2c/busses/i2c-imx.c msgs->buf[msgs->len-2] = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR); msgs 750 drivers/i2c/busses/i2c-imx.c msgs->buf[msgs->len-1] = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR); msgs 755 drivers/i2c/busses/i2c-imx.c static int i2c_imx_write(struct imx_i2c_struct *i2c_imx, struct i2c_msg *msgs) msgs 760 drivers/i2c/busses/i2c-imx.c __func__, i2c_8bit_addr_from_msg(msgs)); msgs 763 drivers/i2c/busses/i2c-imx.c imx_i2c_write_reg(i2c_8bit_addr_from_msg(msgs), i2c_imx, IMX_I2C_I2DR); msgs 773 drivers/i2c/busses/i2c-imx.c for (i = 0; i < msgs->len; i++) { msgs 776 drivers/i2c/busses/i2c-imx.c __func__, i, msgs->buf[i]); msgs 777 drivers/i2c/busses/i2c-imx.c imx_i2c_write_reg(msgs->buf[i], i2c_imx, IMX_I2C_I2DR); msgs 788 drivers/i2c/busses/i2c-imx.c static int i2c_imx_read(struct imx_i2c_struct *i2c_imx, struct i2c_msg *msgs, bool is_lastmsg) msgs 792 drivers/i2c/busses/i2c-imx.c int block_data = msgs->flags & I2C_M_RECV_LEN; msgs 793 drivers/i2c/busses/i2c-imx.c int use_dma = i2c_imx->dma && msgs->len >= DMA_THRESHOLD && !block_data; msgs 797 drivers/i2c/busses/i2c-imx.c __func__, i2c_8bit_addr_from_msg(msgs)); msgs 800 drivers/i2c/busses/i2c-imx.c imx_i2c_write_reg(i2c_8bit_addr_from_msg(msgs), i2c_imx, IMX_I2C_I2DR); msgs 818 drivers/i2c/busses/i2c-imx.c if ((msgs->len - 1) || block_data) msgs 828 drivers/i2c/busses/i2c-imx.c return i2c_imx_dma_read(i2c_imx, msgs, is_lastmsg); msgs 831 drivers/i2c/busses/i2c-imx.c for (i = 0; i < msgs->len; i++) { msgs 849 drivers/i2c/busses/i2c-imx.c msgs->len += len; msgs 851 drivers/i2c/busses/i2c-imx.c if (i == (msgs->len - 1)) { msgs 875 drivers/i2c/busses/i2c-imx.c } else if (i == (msgs->len - 2)) { msgs 883 drivers/i2c/busses/i2c-imx.c msgs->buf[0] = len; msgs 885 drivers/i2c/busses/i2c-imx.c msgs->buf[i] = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR); msgs 888 drivers/i2c/busses/i2c-imx.c __func__, i, msgs->buf[i]); msgs 894 drivers/i2c/busses/i2c-imx.c struct i2c_msg *msgs, int num) msgs 954 drivers/i2c/busses/i2c-imx.c if (msgs[i].flags & I2C_M_RD) msgs 955 drivers/i2c/busses/i2c-imx.c result = i2c_imx_read(i2c_imx, &msgs[i], is_lastmsg); msgs 957 drivers/i2c/busses/i2c-imx.c if (i2c_imx->dma && msgs[i].len >= DMA_THRESHOLD) msgs 958 drivers/i2c/busses/i2c-imx.c result = i2c_imx_dma_write(i2c_imx, &msgs[i]); msgs 960 drivers/i2c/busses/i2c-imx.c result = i2c_imx_write(i2c_imx, &msgs[i]); msgs 354 drivers/i2c/busses/i2c-iop3xx.c iop3xx_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, msgs 367 drivers/i2c/busses/i2c-iop3xx.c ret = iop3xx_i2c_handle_msg(i2c_adap, &msgs[im]); msgs 186 drivers/i2c/busses/i2c-kempld.c static int kempld_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 194 drivers/i2c/busses/i2c-kempld.c i2c->msg = msgs; msgs 293 drivers/i2c/busses/i2c-lpc2k.c static int i2c_lpc2k_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 310 drivers/i2c/busses/i2c-lpc2k.c i2c->msg = &msgs[i]; msgs 334 drivers/i2c/busses/i2c-meson.c static int meson_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 343 drivers/i2c/busses/i2c-meson.c ret = meson_i2c_xfer_msg(i2c, msgs + i, i == num - 1); msgs 167 drivers/i2c/busses/i2c-mlxcpld.c struct i2c_msg *msgs, int num) msgs 176 drivers/i2c/busses/i2c-mlxcpld.c if (unlikely(msgs[0].addr > 0x7f)) { msgs 178 drivers/i2c/busses/i2c-mlxcpld.c msgs[0].addr); msgs 183 drivers/i2c/busses/i2c-mlxcpld.c if (unlikely(!msgs[i].buf)) { msgs 188 drivers/i2c/busses/i2c-mlxcpld.c if (unlikely(msgs[0].addr != msgs[i].addr)) { msgs 227 drivers/i2c/busses/i2c-mlxcpld.c struct i2c_msg *msgs, int num, msgs 230 drivers/i2c/busses/i2c-mlxcpld.c priv->xfer.msg = msgs; msgs 239 drivers/i2c/busses/i2c-mlxcpld.c priv->xfer.cmd = msgs[num - 1].flags & I2C_M_RD; msgs 241 drivers/i2c/busses/i2c-mlxcpld.c if (priv->xfer.cmd == I2C_M_RD && comm_len != msgs[0].len) { msgs 242 drivers/i2c/busses/i2c-mlxcpld.c priv->xfer.addr_width = msgs[0].len; msgs 401 drivers/i2c/busses/i2c-mlxcpld.c static int mlxcpld_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 408 drivers/i2c/busses/i2c-mlxcpld.c err = mlxcpld_i2c_check_msg_params(priv, msgs, num); msgs 415 drivers/i2c/busses/i2c-mlxcpld.c comm_len += msgs[i].len; msgs 436 drivers/i2c/busses/i2c-mlxcpld.c mlxcpld_i2c_set_transf_data(priv, msgs, num, comm_len); msgs 565 drivers/i2c/busses/i2c-mpc.c static int mpc_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 597 drivers/i2c/busses/i2c-mpc.c pmsg = &msgs[i]; msgs 561 drivers/i2c/busses/i2c-mt65xx.c static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs, msgs 598 drivers/i2c/busses/i2c-mt65xx.c addr_reg = i2c_8bit_addr_from_msg(msgs); msgs 614 drivers/i2c/busses/i2c-mt65xx.c mtk_i2c_writew(i2c, msgs->len, OFFSET_TRANSFER_LEN); msgs 615 drivers/i2c/busses/i2c-mt65xx.c mtk_i2c_writew(i2c, (msgs + 1)->len, msgs 618 drivers/i2c/busses/i2c-mt65xx.c mtk_i2c_writew(i2c, msgs->len | ((msgs + 1)->len) << 8, msgs 623 drivers/i2c/busses/i2c-mt65xx.c mtk_i2c_writew(i2c, msgs->len, OFFSET_TRANSFER_LEN); msgs 632 drivers/i2c/busses/i2c-mt65xx.c dma_rd_buf = i2c_get_dma_safe_msg_buf(msgs, 1); msgs 637 drivers/i2c/busses/i2c-mt65xx.c msgs->len, DMA_FROM_DEVICE); msgs 639 drivers/i2c/busses/i2c-mt65xx.c i2c_put_dma_safe_msg_buf(dma_rd_buf, msgs, false); msgs 650 drivers/i2c/busses/i2c-mt65xx.c writel(msgs->len, i2c->pdmabase + OFFSET_RX_LEN); msgs 655 drivers/i2c/busses/i2c-mt65xx.c dma_wr_buf = i2c_get_dma_safe_msg_buf(msgs, 1); msgs 660 drivers/i2c/busses/i2c-mt65xx.c msgs->len, DMA_TO_DEVICE); msgs 662 drivers/i2c/busses/i2c-mt65xx.c i2c_put_dma_safe_msg_buf(dma_wr_buf, msgs, false); msgs 673 drivers/i2c/busses/i2c-mt65xx.c writel(msgs->len, i2c->pdmabase + OFFSET_TX_LEN); msgs 678 drivers/i2c/busses/i2c-mt65xx.c dma_wr_buf = i2c_get_dma_safe_msg_buf(msgs, 1); msgs 683 drivers/i2c/busses/i2c-mt65xx.c msgs->len, DMA_TO_DEVICE); msgs 685 drivers/i2c/busses/i2c-mt65xx.c i2c_put_dma_safe_msg_buf(dma_wr_buf, msgs, false); msgs 690 drivers/i2c/busses/i2c-mt65xx.c dma_rd_buf = i2c_get_dma_safe_msg_buf((msgs + 1), 1); msgs 693 drivers/i2c/busses/i2c-mt65xx.c msgs->len, DMA_TO_DEVICE); msgs 695 drivers/i2c/busses/i2c-mt65xx.c i2c_put_dma_safe_msg_buf(dma_wr_buf, msgs, false); msgs 701 drivers/i2c/busses/i2c-mt65xx.c (msgs + 1)->len, msgs 705 drivers/i2c/busses/i2c-mt65xx.c msgs->len, DMA_TO_DEVICE); msgs 707 drivers/i2c/busses/i2c-mt65xx.c i2c_put_dma_safe_msg_buf(dma_wr_buf, msgs, false); msgs 708 drivers/i2c/busses/i2c-mt65xx.c i2c_put_dma_safe_msg_buf(dma_rd_buf, (msgs + 1), false); msgs 723 drivers/i2c/busses/i2c-mt65xx.c writel(msgs->len, i2c->pdmabase + OFFSET_TX_LEN); msgs 724 drivers/i2c/busses/i2c-mt65xx.c writel((msgs + 1)->len, i2c->pdmabase + OFFSET_RX_LEN); msgs 747 drivers/i2c/busses/i2c-mt65xx.c msgs->len, DMA_TO_DEVICE); msgs 749 drivers/i2c/busses/i2c-mt65xx.c i2c_put_dma_safe_msg_buf(dma_wr_buf, msgs, true); msgs 752 drivers/i2c/busses/i2c-mt65xx.c msgs->len, DMA_FROM_DEVICE); msgs 754 drivers/i2c/busses/i2c-mt65xx.c i2c_put_dma_safe_msg_buf(dma_rd_buf, msgs, true); msgs 756 drivers/i2c/busses/i2c-mt65xx.c dma_unmap_single(i2c->dev, wpaddr, msgs->len, msgs 758 drivers/i2c/busses/i2c-mt65xx.c dma_unmap_single(i2c->dev, rpaddr, (msgs + 1)->len, msgs 761 drivers/i2c/busses/i2c-mt65xx.c i2c_put_dma_safe_msg_buf(dma_wr_buf, msgs, true); msgs 762 drivers/i2c/busses/i2c-mt65xx.c i2c_put_dma_safe_msg_buf(dma_rd_buf, (msgs + 1), true); msgs 766 drivers/i2c/busses/i2c-mt65xx.c dev_dbg(i2c->dev, "addr: %x, transfer timeout\n", msgs->addr); msgs 772 drivers/i2c/busses/i2c-mt65xx.c dev_dbg(i2c->dev, "addr: %x, transfer ACK error\n", msgs->addr); msgs 781 drivers/i2c/busses/i2c-mt65xx.c struct i2c_msg msgs[], int num) msgs 795 drivers/i2c/busses/i2c-mt65xx.c if (!(msgs[0].flags & I2C_M_RD) && (msgs[1].flags & I2C_M_RD) && msgs 796 drivers/i2c/busses/i2c-mt65xx.c msgs[0].addr == msgs[1].addr) { msgs 810 drivers/i2c/busses/i2c-mt65xx.c if (!msgs->buf) { msgs 816 drivers/i2c/busses/i2c-mt65xx.c if (msgs->flags & I2C_M_RD) msgs 830 drivers/i2c/busses/i2c-mt65xx.c ret = mtk_i2c_do_transfer(i2c, msgs, num, left_num); msgs 834 drivers/i2c/busses/i2c-mt65xx.c msgs++; msgs 138 drivers/i2c/busses/i2c-mt7621.c static int mtk_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 151 drivers/i2c/busses/i2c-mt7621.c pmsg = &msgs[i]; msgs 119 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msgs; msgs 334 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msg = drv_data->msgs; msgs 340 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_prepare_for_io(drv_data, drv_data->msgs); msgs 353 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs++; msgs 468 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->num_msgs == 1 && drv_data->msgs[0].flags & I2C_M_RD) { msgs 469 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_read_offload_rx_data(drv_data, drv_data->msgs); msgs 470 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs++; msgs 478 drivers/i2c/busses/i2c-mv64xxx.c !(drv_data->msgs[0].flags & I2C_M_RD) && msgs 479 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs[1].flags & I2C_M_RD) { msgs 480 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_read_offload_rx_data(drv_data, drv_data->msgs + 1); msgs 481 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs += 2; msgs 593 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msg = drv_data->msgs; msgs 605 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msgs = drv_data->msgs; msgs 614 drivers/i2c/busses/i2c-mv64xxx.c (msgs[0].addr << MV64XXX_I2C_BRIDGE_CONTROL_ADDR_SHIFT); msgs 616 drivers/i2c/busses/i2c-mv64xxx.c if (msgs[0].flags & I2C_M_TEN) msgs 620 drivers/i2c/busses/i2c-mv64xxx.c if (num == 1 && !(msgs[0].flags & I2C_M_RD)) { msgs 621 drivers/i2c/busses/i2c-mv64xxx.c size_t len = msgs[0].len - 1; msgs 628 drivers/i2c/busses/i2c-mv64xxx.c else if (num == 1 && msgs[0].flags & I2C_M_RD) { msgs 629 drivers/i2c/busses/i2c-mv64xxx.c size_t len = msgs[0].len - 1; msgs 639 drivers/i2c/busses/i2c-mv64xxx.c size_t lentx = msgs[0].len - 1; msgs 640 drivers/i2c/busses/i2c-mv64xxx.c size_t lenrx = msgs[1].len - 1; msgs 670 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msgs = drv_data->msgs; msgs 681 drivers/i2c/busses/i2c-mv64xxx.c if (num == 1 && mv64xxx_i2c_valid_offload_sz(msgs)) msgs 690 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_valid_offload_sz(msgs) && msgs 691 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_valid_offload_sz(msgs + 1) && msgs 692 drivers/i2c/busses/i2c-mv64xxx.c !(msgs[0].flags & I2C_M_RD) && msgs 693 drivers/i2c/busses/i2c-mv64xxx.c msgs[1].flags & I2C_M_RD) msgs 713 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) msgs 718 drivers/i2c/busses/i2c-mv64xxx.c BUG_ON(drv_data->msgs != NULL); msgs 719 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs = msgs; msgs 725 drivers/i2c/busses/i2c-mv64xxx.c rc = mv64xxx_i2c_execute_msg(drv_data, &msgs[0], num == 1); msgs 731 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs = NULL; msgs 637 drivers/i2c/busses/i2c-mxs.c static int mxs_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], msgs 644 drivers/i2c/busses/i2c-mxs.c err = mxs_i2c_xfer_msg(adap, &msgs[i], i == (num - 1)); msgs 662 drivers/i2c/busses/i2c-nomadik.c struct i2c_msg msgs[], int num_msgs) msgs 677 drivers/i2c/busses/i2c-nomadik.c dev->cli.slave_adr = msgs[i].addr; msgs 678 drivers/i2c/busses/i2c-nomadik.c dev->cli.buffer = msgs[i].buf; msgs 679 drivers/i2c/busses/i2c-nomadik.c dev->cli.count = msgs[i].len; msgs 683 drivers/i2c/busses/i2c-nomadik.c status = nmk_i2c_xfer_one(dev, msgs[i].flags); msgs 165 drivers/i2c/busses/i2c-nvidia-gpu.c struct i2c_msg *msgs, int num) msgs 178 drivers/i2c/busses/i2c-nvidia-gpu.c if (msgs[i].flags & I2C_M_RD) { msgs 180 drivers/i2c/busses/i2c-nvidia-gpu.c writel(msgs[i].addr, i2cd->regs + I2C_MST_ADDR); msgs 182 drivers/i2c/busses/i2c-nvidia-gpu.c status = gpu_i2c_read(i2cd, msgs[i].buf, msgs[i].len); msgs 186 drivers/i2c/busses/i2c-nvidia-gpu.c u8 addr = i2c_8bit_addr_from_msg(msgs + i); msgs 199 drivers/i2c/busses/i2c-nvidia-gpu.c for (j = 0; j < msgs[i].len; j++) { msgs 200 drivers/i2c/busses/i2c-nvidia-gpu.c status = gpu_i2c_write(i2cd, msgs[i].buf[j]); msgs 371 drivers/i2c/busses/i2c-ocores.c struct i2c_msg *msgs, int num, msgs 383 drivers/i2c/busses/i2c-ocores.c i2c->msg = msgs; msgs 407 drivers/i2c/busses/i2c-ocores.c struct i2c_msg *msgs, int num) msgs 409 drivers/i2c/busses/i2c-ocores.c return ocores_xfer_core(i2c_get_adapdata(adap), msgs, num, true); msgs 413 drivers/i2c/busses/i2c-ocores.c struct i2c_msg *msgs, int num) msgs 415 drivers/i2c/busses/i2c-ocores.c return ocores_xfer_core(i2c_get_adapdata(adap), msgs, num, false); msgs 403 drivers/i2c/busses/i2c-octeon-core.c static int octeon_i2c_hlc_read(struct octeon_i2c *i2c, struct i2c_msg *msgs) msgs 413 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)(msgs[0].len - 1) << SW_TWSI_SIZE_SHIFT; msgs 415 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)(msgs[0].addr & 0x7full) << SW_TWSI_ADDR_SHIFT; msgs 417 drivers/i2c/busses/i2c-octeon-core.c if (msgs[0].flags & I2C_M_TEN) msgs 431 drivers/i2c/busses/i2c-octeon-core.c for (i = 0, j = msgs[0].len - 1; i < msgs[0].len && i < 4; i++, j--) msgs 432 drivers/i2c/busses/i2c-octeon-core.c msgs[0].buf[j] = (cmd >> (8 * i)) & 0xff; msgs 434 drivers/i2c/busses/i2c-octeon-core.c if (msgs[0].len > 4) { msgs 436 drivers/i2c/busses/i2c-octeon-core.c for (i = 0; i < msgs[0].len - 4 && i < 4; i++, j--) msgs 437 drivers/i2c/busses/i2c-octeon-core.c msgs[0].buf[j] = (cmd >> (8 * i)) & 0xff; msgs 445 drivers/i2c/busses/i2c-octeon-core.c static int octeon_i2c_hlc_write(struct octeon_i2c *i2c, struct i2c_msg *msgs) msgs 455 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)(msgs[0].len - 1) << SW_TWSI_SIZE_SHIFT; msgs 457 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)(msgs[0].addr & 0x7full) << SW_TWSI_ADDR_SHIFT; msgs 459 drivers/i2c/busses/i2c-octeon-core.c if (msgs[0].flags & I2C_M_TEN) msgs 464 drivers/i2c/busses/i2c-octeon-core.c for (i = 0, j = msgs[0].len - 1; i < msgs[0].len && i < 4; i++, j--) msgs 465 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)msgs[0].buf[j] << (8 * i); msgs 467 drivers/i2c/busses/i2c-octeon-core.c if (msgs[0].len > 4) { msgs 470 drivers/i2c/busses/i2c-octeon-core.c for (i = 0; i < msgs[0].len - 4 && i < 4; i++, j--) msgs 471 drivers/i2c/busses/i2c-octeon-core.c ext |= (u64)msgs[0].buf[j] << (8 * i); msgs 489 drivers/i2c/busses/i2c-octeon-core.c static int octeon_i2c_hlc_comp_read(struct octeon_i2c *i2c, struct i2c_msg *msgs) msgs 498 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)(msgs[1].len - 1) << SW_TWSI_SIZE_SHIFT; msgs 500 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)(msgs[0].addr & 0x7full) << SW_TWSI_ADDR_SHIFT; msgs 502 drivers/i2c/busses/i2c-octeon-core.c if (msgs[0].flags & I2C_M_TEN) msgs 507 drivers/i2c/busses/i2c-octeon-core.c if (msgs[0].len == 2) { msgs 511 drivers/i2c/busses/i2c-octeon-core.c ext = (u64)msgs[0].buf[0] << SW_TWSI_IA_SHIFT; msgs 512 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)msgs[0].buf[1] << SW_TWSI_IA_SHIFT; msgs 515 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)msgs[0].buf[0] << SW_TWSI_IA_SHIFT; msgs 529 drivers/i2c/busses/i2c-octeon-core.c for (i = 0, j = msgs[1].len - 1; i < msgs[1].len && i < 4; i++, j--) msgs 530 drivers/i2c/busses/i2c-octeon-core.c msgs[1].buf[j] = (cmd >> (8 * i)) & 0xff; msgs 532 drivers/i2c/busses/i2c-octeon-core.c if (msgs[1].len > 4) { msgs 534 drivers/i2c/busses/i2c-octeon-core.c for (i = 0; i < msgs[1].len - 4 && i < 4; i++, j--) msgs 535 drivers/i2c/busses/i2c-octeon-core.c msgs[1].buf[j] = (cmd >> (8 * i)) & 0xff; msgs 543 drivers/i2c/busses/i2c-octeon-core.c static int octeon_i2c_hlc_comp_write(struct octeon_i2c *i2c, struct i2c_msg *msgs) msgs 553 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)(msgs[1].len - 1) << SW_TWSI_SIZE_SHIFT; msgs 555 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)(msgs[0].addr & 0x7full) << SW_TWSI_ADDR_SHIFT; msgs 557 drivers/i2c/busses/i2c-octeon-core.c if (msgs[0].flags & I2C_M_TEN) msgs 562 drivers/i2c/busses/i2c-octeon-core.c if (msgs[0].len == 2) { msgs 564 drivers/i2c/busses/i2c-octeon-core.c ext |= (u64)msgs[0].buf[0] << SW_TWSI_IA_SHIFT; msgs 566 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)msgs[0].buf[1] << SW_TWSI_IA_SHIFT; msgs 568 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)msgs[0].buf[0] << SW_TWSI_IA_SHIFT; msgs 571 drivers/i2c/busses/i2c-octeon-core.c for (i = 0, j = msgs[1].len - 1; i < msgs[1].len && i < 4; i++, j--) msgs 572 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)msgs[1].buf[j] << (8 * i); msgs 574 drivers/i2c/busses/i2c-octeon-core.c if (msgs[1].len > 4) { msgs 575 drivers/i2c/busses/i2c-octeon-core.c for (i = 0; i < msgs[1].len - 4 && i < 4; i++, j--) msgs 576 drivers/i2c/busses/i2c-octeon-core.c ext |= (u64)msgs[1].buf[j] << (8 * i); msgs 605 drivers/i2c/busses/i2c-octeon-core.c int octeon_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 611 drivers/i2c/busses/i2c-octeon-core.c if (msgs[0].len > 0 && msgs[0].len <= 8) { msgs 612 drivers/i2c/busses/i2c-octeon-core.c if (msgs[0].flags & I2C_M_RD) msgs 613 drivers/i2c/busses/i2c-octeon-core.c ret = octeon_i2c_hlc_read(i2c, msgs); msgs 615 drivers/i2c/busses/i2c-octeon-core.c ret = octeon_i2c_hlc_write(i2c, msgs); msgs 619 drivers/i2c/busses/i2c-octeon-core.c if ((msgs[0].flags & I2C_M_RD) == 0 && msgs 620 drivers/i2c/busses/i2c-octeon-core.c (msgs[1].flags & I2C_M_RECV_LEN) == 0 && msgs 621 drivers/i2c/busses/i2c-octeon-core.c msgs[0].len > 0 && msgs[0].len <= 2 && msgs 622 drivers/i2c/busses/i2c-octeon-core.c msgs[1].len > 0 && msgs[1].len <= 8 && msgs 623 drivers/i2c/busses/i2c-octeon-core.c msgs[0].addr == msgs[1].addr) { msgs 624 drivers/i2c/busses/i2c-octeon-core.c if (msgs[1].flags & I2C_M_RD) msgs 625 drivers/i2c/busses/i2c-octeon-core.c ret = octeon_i2c_hlc_comp_read(i2c, msgs); msgs 627 drivers/i2c/busses/i2c-octeon-core.c ret = octeon_i2c_hlc_comp_write(i2c, msgs); msgs 633 drivers/i2c/busses/i2c-octeon-core.c struct i2c_msg *pmsg = &msgs[i]; msgs 216 drivers/i2c/busses/i2c-octeon-core.h int octeon_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); msgs 792 drivers/i2c/busses/i2c-omap.c omap_i2c_xfer_common(struct i2c_adapter *adap, struct i2c_msg msgs[], int num, msgs 815 drivers/i2c/busses/i2c-omap.c r = omap_i2c_xfer_msg(adap, &msgs[i], (i == (num - 1)), msgs 836 drivers/i2c/busses/i2c-omap.c omap_i2c_xfer_irq(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) msgs 838 drivers/i2c/busses/i2c-omap.c return omap_i2c_xfer_common(adap, msgs, num, false); msgs 842 drivers/i2c/busses/i2c-omap.c omap_i2c_xfer_polling(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) msgs 844 drivers/i2c/busses/i2c-omap.c return omap_i2c_xfer_common(adap, msgs, num, true); msgs 73 drivers/i2c/busses/i2c-opal.c static int i2c_opal_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 86 drivers/i2c/busses/i2c-opal.c req.type = (msgs[0].flags & I2C_M_RD) ? msgs 88 drivers/i2c/busses/i2c-opal.c req.addr = cpu_to_be16(msgs[0].addr); msgs 89 drivers/i2c/busses/i2c-opal.c req.size = cpu_to_be32(msgs[0].len); msgs 90 drivers/i2c/busses/i2c-opal.c req.buffer_ra = cpu_to_be64(__pa(msgs[0].buf)); msgs 93 drivers/i2c/busses/i2c-opal.c req.type = (msgs[1].flags & I2C_M_RD) ? msgs 95 drivers/i2c/busses/i2c-opal.c req.addr = cpu_to_be16(msgs[0].addr); msgs 96 drivers/i2c/busses/i2c-opal.c req.subaddr_sz = msgs[0].len; msgs 97 drivers/i2c/busses/i2c-opal.c for (i = 0; i < msgs[0].len; i++) msgs 98 drivers/i2c/busses/i2c-opal.c req.subaddr = (req.subaddr << 8) | msgs[0].buf[i]; msgs 100 drivers/i2c/busses/i2c-opal.c req.size = cpu_to_be32(msgs[1].len); msgs 101 drivers/i2c/busses/i2c-opal.c req.buffer_ra = cpu_to_be64(__pa(msgs[1].buf)); msgs 241 drivers/i2c/busses/i2c-owl.c static int owl_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 302 drivers/i2c/busses/i2c-owl.c i2c_cmd |= OWL_I2C_CMD_AS(msgs[0].len + 1) | msgs 306 drivers/i2c/busses/i2c-owl.c addr = i2c_8bit_addr_from_msg(&msgs[0]); msgs 310 drivers/i2c/busses/i2c-owl.c for (idx = 0; idx < msgs[0].len; idx++) msgs 311 drivers/i2c/busses/i2c-owl.c writel(msgs[0].buf[idx], msgs 314 drivers/i2c/busses/i2c-owl.c msg = &msgs[1]; msgs 318 drivers/i2c/busses/i2c-owl.c msg = &msgs[0]; msgs 151 drivers/i2c/busses/i2c-pasemi.c struct i2c_msg *msgs, int num) msgs 161 drivers/i2c/busses/i2c-pasemi.c ret = pasemi_i2c_xfer_msg(adapter, &msgs[i], (i == (num - 1))); msgs 512 drivers/i2c/busses/i2c-pnx.c i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 529 drivers/i2c/busses/i2c-pnx.c pmsg = &msgs[i]; msgs 140 drivers/i2c/busses/i2c-powermac.c struct i2c_msg *msgs, msgs 147 drivers/i2c/busses/i2c-powermac.c if (msgs->flags & I2C_M_TEN) msgs 149 drivers/i2c/busses/i2c-powermac.c addrdir = i2c_8bit_addr_from_msg(msgs); msgs 162 drivers/i2c/busses/i2c-powermac.c rc = pmac_i2c_xfer(bus, addrdir, 0, 0, msgs->buf, msgs->len); msgs 879 drivers/i2c/busses/i2c-pxa.c struct i2c_msg msgs[], int num) msgs 892 drivers/i2c/busses/i2c-pxa.c ret = i2c_pxa_do_pio_xfer(i2c, msgs, num); msgs 1114 drivers/i2c/busses/i2c-pxa.c static int i2c_pxa_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) msgs 1120 drivers/i2c/busses/i2c-pxa.c ret = i2c_pxa_do_xfer(i2c, msgs, num); msgs 439 drivers/i2c/busses/i2c-qcom-geni.c struct i2c_msg msgs[], msgs 460 drivers/i2c/busses/i2c-qcom-geni.c m_param |= ((msgs[i].addr << SLV_ADDR_SHFT) & SLV_ADDR_MSK); msgs 462 drivers/i2c/busses/i2c-qcom-geni.c gi2c->cur = &msgs[i]; msgs 463 drivers/i2c/busses/i2c-qcom-geni.c if (msgs[i].flags & I2C_M_RD) msgs 464 drivers/i2c/busses/i2c-qcom-geni.c ret = geni_i2c_rx_one_msg(gi2c, &msgs[i], m_param); msgs 466 drivers/i2c/busses/i2c-qcom-geni.c ret = geni_i2c_tx_one_msg(gi2c, &msgs[i], m_param); msgs 1069 drivers/i2c/busses/i2c-qup.c struct i2c_msg msgs[], msgs 1096 drivers/i2c/busses/i2c-qup.c if (qup_i2c_check_msg_len(&msgs[idx])) { msgs 1101 drivers/i2c/busses/i2c-qup.c qup->msg = &msgs[idx]; msgs 1102 drivers/i2c/busses/i2c-qup.c if (msgs[idx].flags & I2C_M_RD) msgs 1510 drivers/i2c/busses/i2c-qup.c struct i2c_msg msgs[], int num) msgs 1518 drivers/i2c/busses/i2c-qup.c if (msgs[idx].flags & I2C_M_RD) msgs 1520 drivers/i2c/busses/i2c-qup.c msgs[idx].len); msgs 1523 drivers/i2c/busses/i2c-qup.c msgs[idx].len); msgs 1525 drivers/i2c/busses/i2c-qup.c if (is_vmalloc_addr(msgs[idx].buf)) msgs 1528 drivers/i2c/busses/i2c-qup.c total_len += msgs[idx].len; msgs 1545 drivers/i2c/busses/i2c-qup.c struct i2c_msg msgs[], msgs 1558 drivers/i2c/busses/i2c-qup.c ret = qup_i2c_determine_mode_v2(qup, msgs, num); msgs 1578 drivers/i2c/busses/i2c-qup.c ret = qup_i2c_bam_xfer(adap, &msgs[0], num); msgs 1584 drivers/i2c/busses/i2c-qup.c qup->msg = &msgs[idx]; msgs 1588 drivers/i2c/busses/i2c-qup.c !!(msgs[idx].flags & I2C_M_RD)); msgs 775 drivers/i2c/busses/i2c-rcar.c struct i2c_msg *msgs, msgs 803 drivers/i2c/busses/i2c-rcar.c rcar_i2c_request_dma(priv, msgs + i); msgs 806 drivers/i2c/busses/i2c-rcar.c priv->msg = msgs; msgs 112 drivers/i2c/busses/i2c-riic.c static int riic_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) msgs 133 drivers/i2c/busses/i2c-riic.c riic->buf = msgs[i].buf; msgs 134 drivers/i2c/busses/i2c-riic.c riic->msg = &msgs[i]; msgs 971 drivers/i2c/busses/i2c-rk3x.c static int rk3x_i2c_setup(struct rk3x_i2c *i2c, struct i2c_msg *msgs, int num) msgs 973 drivers/i2c/busses/i2c-rk3x.c u32 addr = (msgs[0].addr & 0x7f) << 1; msgs 983 drivers/i2c/busses/i2c-rk3x.c if (num >= 2 && msgs[0].len < 4 && msgs 984 drivers/i2c/busses/i2c-rk3x.c !(msgs[0].flags & I2C_M_RD) && (msgs[1].flags & I2C_M_RD)) { msgs 992 drivers/i2c/busses/i2c-rk3x.c for (i = 0; i < msgs[0].len; ++i) { msgs 993 drivers/i2c/busses/i2c-rk3x.c reg_addr |= msgs[0].buf[i] << (i * 8); msgs 998 drivers/i2c/busses/i2c-rk3x.c i2c->msg = &msgs[1]; msgs 1012 drivers/i2c/busses/i2c-rk3x.c if (msgs[0].flags & I2C_M_RD) { msgs 1027 drivers/i2c/busses/i2c-rk3x.c i2c->msg = &msgs[0]; msgs 1032 drivers/i2c/busses/i2c-rk3x.c i2c->addr = msgs[0].addr; msgs 1044 drivers/i2c/busses/i2c-rk3x.c struct i2c_msg *msgs, int num) msgs 1064 drivers/i2c/busses/i2c-rk3x.c ret = rk3x_i2c_setup(i2c, msgs + i, num - i); msgs 57 drivers/i2c/busses/i2c-robotfuzz-osif.c static int osif_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, msgs 66 drivers/i2c/busses/i2c-robotfuzz-osif.c pmsg = &msgs[i]; msgs 692 drivers/i2c/busses/i2c-s3c2410.c struct i2c_msg *msgs, int num) msgs 704 drivers/i2c/busses/i2c-s3c2410.c i2c->msg = msgs; msgs 711 drivers/i2c/busses/i2c-s3c2410.c s3c24xx_i2c_message_start(i2c, msgs); msgs 754 drivers/i2c/busses/i2c-s3c2410.c struct i2c_msg *msgs, int num) msgs 766 drivers/i2c/busses/i2c-s3c2410.c ret = s3c24xx_i2c_doxfer(i2c, msgs, num); msgs 304 drivers/i2c/busses/i2c-sh7760.c struct i2c_msg *msgs, msgs 321 drivers/i2c/busses/i2c-sh7760.c id->msg = msgs; msgs 324 drivers/i2c/busses/i2c-sh7760.c if (msgs->flags & I2C_M_RD) msgs 352 drivers/i2c/busses/i2c-sh7760.c msgs++; msgs 647 drivers/i2c/busses/i2c-sh_mobile.c struct i2c_msg *msgs, msgs 662 drivers/i2c/busses/i2c-sh_mobile.c msg = &msgs[i]; msgs 237 drivers/i2c/busses/i2c-sirf.c static int i2c_sirfsoc_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 246 drivers/i2c/busses/i2c-sirf.c siic->buf = msgs[i].buf; msgs 247 drivers/i2c/busses/i2c-sirf.c siic->msg_len = msgs[i].len; msgs 248 drivers/i2c/busses/i2c-sirf.c siic->msg_read = !!(msgs[i].flags & I2C_M_RD); msgs 254 drivers/i2c/busses/i2c-sirf.c ret = i2c_sirfsoc_xfer_msg(siic, &msgs[i]); msgs 282 drivers/i2c/busses/i2c-sprd.c struct i2c_msg *msgs, int num) msgs 292 drivers/i2c/busses/i2c-sprd.c ret = sprd_i2c_handle_msg(i2c_adap, &msgs[im], 0); msgs 297 drivers/i2c/busses/i2c-sprd.c ret = sprd_i2c_handle_msg(i2c_adap, &msgs[im++], 1); msgs 714 drivers/i2c/busses/i2c-st.c struct i2c_msg msgs[], int num) msgs 732 drivers/i2c/busses/i2c-st.c ret = st_i2c_xfer_msg(i2c_dev, &msgs[i], i == 0, i == num - 1); msgs 725 drivers/i2c/busses/i2c-stm32f4.c static int stm32f4_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], msgs 738 drivers/i2c/busses/i2c-stm32f4.c ret = stm32f4_i2c_xfer_msg(i2c_dev, &msgs[i], i == 0, msgs 1554 drivers/i2c/busses/i2c-stm32f7.c struct i2c_msg msgs[], int num) msgs 1562 drivers/i2c/busses/i2c-stm32f7.c i2c_dev->msg = msgs; msgs 1575 drivers/i2c/busses/i2c-stm32f7.c stm32f7_i2c_xfer_msg(i2c_dev, msgs); msgs 806 drivers/i2c/busses/i2c-stu300.c static int stu300_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 825 drivers/i2c/busses/i2c-stu300.c ret = stu300_xfer_msg(adap, &msgs[i], (i == (num - 1))); msgs 836 drivers/i2c/busses/i2c-stu300.c static int stu300_xfer_todo(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 165 drivers/i2c/busses/i2c-synquacer.c struct i2c_msg *msgs, msgs 171 drivers/i2c/busses/i2c-synquacer.c for (i = 0; i < num; i++, msgs++) msgs 172 drivers/i2c/busses/i2c-synquacer.c bit_count += msgs->len; msgs 311 drivers/i2c/busses/i2c-synquacer.c struct i2c_msg *msgs, int num) msgs 326 drivers/i2c/busses/i2c-synquacer.c i2c->msg = msgs; msgs 495 drivers/i2c/busses/i2c-synquacer.c static int synquacer_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 503 drivers/i2c/busses/i2c-synquacer.c i2c->timeout_ms = calc_timeout_ms(i2c, msgs, num); msgs 508 drivers/i2c/busses/i2c-synquacer.c ret = synquacer_i2c_doxfer(i2c, msgs, num); msgs 102 drivers/i2c/busses/i2c-tegra-bpmp.c struct i2c_msg *msgs, msgs 110 drivers/i2c/busses/i2c-tegra-bpmp.c struct i2c_msg *msg = &msgs[i]; msgs 151 drivers/i2c/busses/i2c-tegra-bpmp.c struct i2c_msg *msgs, msgs 159 drivers/i2c/busses/i2c-tegra-bpmp.c if (msgs[i].flags & I2C_M_RD) msgs 160 drivers/i2c/busses/i2c-tegra-bpmp.c len += msgs[i].len; msgs 166 drivers/i2c/busses/i2c-tegra-bpmp.c if (msgs[i].flags & I2C_M_RD) { msgs 167 drivers/i2c/busses/i2c-tegra-bpmp.c memcpy(msgs[i].buf, buf + pos, msgs[i].len); msgs 168 drivers/i2c/busses/i2c-tegra-bpmp.c pos += msgs[i].len; msgs 175 drivers/i2c/busses/i2c-tegra-bpmp.c static int tegra_bpmp_i2c_msg_len_check(struct i2c_msg *msgs, unsigned int num) msgs 181 drivers/i2c/busses/i2c-tegra-bpmp.c if (!(msgs[i].flags & I2C_M_RD)) msgs 182 drivers/i2c/busses/i2c-tegra-bpmp.c tx_len += SERIALI2C_HDR_SIZE + msgs[i].len; msgs 188 drivers/i2c/busses/i2c-tegra-bpmp.c if ((msgs[i].flags & I2C_M_RD)) msgs 189 drivers/i2c/busses/i2c-tegra-bpmp.c rx_len += msgs[i].len; msgs 224 drivers/i2c/busses/i2c-tegra-bpmp.c struct i2c_msg *msgs, int num, msgs 232 drivers/i2c/busses/i2c-tegra-bpmp.c err = tegra_bpmp_i2c_msg_len_check(msgs, num); msgs 241 drivers/i2c/busses/i2c-tegra-bpmp.c err = tegra_bpmp_serialize_i2c_msg(i2c, &request, msgs, num); msgs 253 drivers/i2c/busses/i2c-tegra-bpmp.c err = tegra_bpmp_i2c_deserialize(i2c, &response, msgs, num); msgs 263 drivers/i2c/busses/i2c-tegra-bpmp.c struct i2c_msg *msgs, int num) msgs 265 drivers/i2c/busses/i2c-tegra-bpmp.c return tegra_bpmp_i2c_xfer_common(adapter, msgs, num, false); msgs 269 drivers/i2c/busses/i2c-tegra-bpmp.c struct i2c_msg *msgs, int num) msgs 271 drivers/i2c/busses/i2c-tegra-bpmp.c return tegra_bpmp_i2c_xfer_common(adapter, msgs, num, true); msgs 1241 drivers/i2c/busses/i2c-tegra.c static int tegra_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], msgs 1258 drivers/i2c/busses/i2c-tegra.c if (msgs[i + 1].flags & I2C_M_NOSTART) msgs 1263 drivers/i2c/busses/i2c-tegra.c ret = tegra_i2c_xfer_msg(i2c_dev, &msgs[i], end_type); msgs 51 drivers/i2c/busses/i2c-tiny-usb.c static int usb_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) msgs 72 drivers/i2c/busses/i2c-tiny-usb.c pmsg = &msgs[i]; msgs 410 drivers/i2c/busses/i2c-uniphier-f.c struct i2c_msg *msgs, int num) msgs 412 drivers/i2c/busses/i2c-uniphier-f.c struct i2c_msg *msg, *emsg = msgs + num; msgs 420 drivers/i2c/busses/i2c-uniphier-f.c for (msg = msgs; msg < emsg; msg++) { msgs 220 drivers/i2c/busses/i2c-uniphier.c struct i2c_msg *msgs, int num) msgs 222 drivers/i2c/busses/i2c-uniphier.c struct i2c_msg *msg, *emsg = msgs + num; msgs 229 drivers/i2c/busses/i2c-uniphier.c for (msg = msgs; msg < emsg; msg++) { msgs 265 drivers/i2c/busses/i2c-viperboard.c static int vprbrd_i2c_xfer(struct i2c_adapter *i2c, struct i2c_msg *msgs, msgs 279 drivers/i2c/busses/i2c-viperboard.c pmsg = &msgs[i]; msgs 294 drivers/i2c/busses/i2c-wmt.c struct i2c_msg msgs[], msgs 304 drivers/i2c/busses/i2c-wmt.c pmsg = &msgs[i]; msgs 664 drivers/i2c/busses/i2c-xiic.c static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 680 drivers/i2c/busses/i2c-xiic.c i2c->tx_msg = msgs; msgs 427 drivers/i2c/busses/i2c-xlp9xx.c static int xlp9xx_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 442 drivers/i2c/busses/i2c-xlp9xx.c ret = xlp9xx_i2c_xfer_msg(priv, &msgs[i], i == num - 1); msgs 291 drivers/i2c/busses/i2c-xlr.c struct i2c_msg *msgs, int num) msgs 307 drivers/i2c/busses/i2c-xlr.c msg = &msgs[i]; msgs 306 drivers/i2c/busses/i2c-zx2967.c struct i2c_msg *msgs, int num) msgs 312 drivers/i2c/busses/i2c-zx2967.c zx2967_set_addr(i2c, msgs->addr); msgs 315 drivers/i2c/busses/i2c-zx2967.c ret = zx2967_i2c_xfer_msg(i2c, &msgs[i]); msgs 513 drivers/i2c/i2c-core-acpi.c struct i2c_msg msgs[2]; msgs 521 drivers/i2c/i2c-core-acpi.c msgs[0].addr = client->addr; msgs 522 drivers/i2c/i2c-core-acpi.c msgs[0].flags = client->flags; msgs 523 drivers/i2c/i2c-core-acpi.c msgs[0].len = 1; msgs 524 drivers/i2c/i2c-core-acpi.c msgs[0].buf = &cmd; msgs 526 drivers/i2c/i2c-core-acpi.c msgs[1].addr = client->addr; msgs 527 drivers/i2c/i2c-core-acpi.c msgs[1].flags = client->flags | I2C_M_RD; msgs 528 drivers/i2c/i2c-core-acpi.c msgs[1].len = data_len; msgs 529 drivers/i2c/i2c-core-acpi.c msgs[1].buf = buffer; msgs 531 drivers/i2c/i2c-core-acpi.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 556 drivers/i2c/i2c-core-acpi.c struct i2c_msg msgs[1]; msgs 567 drivers/i2c/i2c-core-acpi.c msgs[0].addr = client->addr; msgs 568 drivers/i2c/i2c-core-acpi.c msgs[0].flags = client->flags; msgs 569 drivers/i2c/i2c-core-acpi.c msgs[0].len = data_len + 1; msgs 570 drivers/i2c/i2c-core-acpi.c msgs[0].buf = buffer; msgs 572 drivers/i2c/i2c-core-acpi.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 1900 drivers/i2c/i2c-core-base.c static int i2c_check_for_quirks(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 1911 drivers/i2c/i2c-core-base.c if (q->flags & I2C_AQ_COMB_WRITE_FIRST && msgs[0].flags & I2C_M_RD) msgs 1912 drivers/i2c/i2c-core-base.c return i2c_quirk_error(adap, &msgs[0], "1st comb msg must be write"); msgs 1914 drivers/i2c/i2c-core-base.c if (q->flags & I2C_AQ_COMB_READ_SECOND && !(msgs[1].flags & I2C_M_RD)) msgs 1915 drivers/i2c/i2c-core-base.c return i2c_quirk_error(adap, &msgs[1], "2nd comb msg must be read"); msgs 1917 drivers/i2c/i2c-core-base.c if (q->flags & I2C_AQ_COMB_SAME_ADDR && msgs[0].addr != msgs[1].addr) msgs 1918 drivers/i2c/i2c-core-base.c return i2c_quirk_error(adap, &msgs[0], "comb msg only to same addr"); msgs 1920 drivers/i2c/i2c-core-base.c if (i2c_quirk_exceeded(msgs[0].len, q->max_comb_1st_msg_len)) msgs 1921 drivers/i2c/i2c-core-base.c return i2c_quirk_error(adap, &msgs[0], "msg too long"); msgs 1923 drivers/i2c/i2c-core-base.c if (i2c_quirk_exceeded(msgs[1].len, q->max_comb_2nd_msg_len)) msgs 1924 drivers/i2c/i2c-core-base.c return i2c_quirk_error(adap, &msgs[1], "msg too long"); msgs 1931 drivers/i2c/i2c-core-base.c return i2c_quirk_error(adap, &msgs[0], "too many messages"); msgs 1934 drivers/i2c/i2c-core-base.c u16 len = msgs[i].len; msgs 1936 drivers/i2c/i2c-core-base.c if (msgs[i].flags & I2C_M_RD) { msgs 1938 drivers/i2c/i2c-core-base.c return i2c_quirk_error(adap, &msgs[i], "msg too long"); msgs 1941 drivers/i2c/i2c-core-base.c return i2c_quirk_error(adap, &msgs[i], "no zero length"); msgs 1944 drivers/i2c/i2c-core-base.c return i2c_quirk_error(adap, &msgs[i], "msg too long"); msgs 1947 drivers/i2c/i2c-core-base.c return i2c_quirk_error(adap, &msgs[i], "no zero length"); msgs 1966 drivers/i2c/i2c-core-base.c int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 1971 drivers/i2c/i2c-core-base.c if (WARN_ON(!msgs || num < 1)) msgs 1978 drivers/i2c/i2c-core-base.c if (adap->quirks && i2c_check_for_quirks(adap, msgs, num)) msgs 1989 drivers/i2c/i2c-core-base.c if (msgs[i].flags & I2C_M_RD) msgs 1990 drivers/i2c/i2c-core-base.c trace_i2c_read(adap, &msgs[i], i); msgs 1992 drivers/i2c/i2c-core-base.c trace_i2c_write(adap, &msgs[i], i); msgs 1999 drivers/i2c/i2c-core-base.c ret = adap->algo->master_xfer_atomic(adap, msgs, num); msgs 2001 drivers/i2c/i2c-core-base.c ret = adap->algo->master_xfer(adap, msgs, num); msgs 2012 drivers/i2c/i2c-core-base.c if (msgs[i].flags & I2C_M_RD) msgs 2013 drivers/i2c/i2c-core-base.c trace_i2c_reply(adap, &msgs[i], i); msgs 2033 drivers/i2c/i2c-core-base.c int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 2062 drivers/i2c/i2c-core-base.c ret = __i2c_transfer(adap, msgs, num); msgs 236 drivers/i2c/i2c-dev.c unsigned nmsgs, struct i2c_msg *msgs) msgs 243 drivers/i2c/i2c-dev.c kfree(msgs); msgs 250 drivers/i2c/i2c-dev.c if (msgs[i].len > 8192) { msgs 255 drivers/i2c/i2c-dev.c data_ptrs[i] = (u8 __user *)msgs[i].buf; msgs 256 drivers/i2c/i2c-dev.c msgs[i].buf = memdup_user(data_ptrs[i], msgs[i].len); msgs 257 drivers/i2c/i2c-dev.c if (IS_ERR(msgs[i].buf)) { msgs 258 drivers/i2c/i2c-dev.c res = PTR_ERR(msgs[i].buf); msgs 262 drivers/i2c/i2c-dev.c msgs[i].flags |= I2C_M_DMA_SAFE; msgs 275 drivers/i2c/i2c-dev.c if (msgs[i].flags & I2C_M_RECV_LEN) { msgs 276 drivers/i2c/i2c-dev.c if (!(msgs[i].flags & I2C_M_RD) || msgs 277 drivers/i2c/i2c-dev.c msgs[i].len < 1 || msgs[i].buf[0] < 1 || msgs 278 drivers/i2c/i2c-dev.c msgs[i].len < msgs[i].buf[0] + msgs 285 drivers/i2c/i2c-dev.c msgs[i].len = msgs[i].buf[0]; msgs 291 drivers/i2c/i2c-dev.c kfree(msgs[j].buf); msgs 293 drivers/i2c/i2c-dev.c kfree(msgs); msgs 297 drivers/i2c/i2c-dev.c res = i2c_transfer(client->adapter, msgs, nmsgs); msgs 299 drivers/i2c/i2c-dev.c if (res >= 0 && (msgs[i].flags & I2C_M_RD)) { msgs 300 drivers/i2c/i2c-dev.c if (copy_to_user(data_ptrs[i], msgs[i].buf, msgs 301 drivers/i2c/i2c-dev.c msgs[i].len)) msgs 304 drivers/i2c/i2c-dev.c kfree(msgs[i].buf); msgs 307 drivers/i2c/i2c-dev.c kfree(msgs); msgs 448 drivers/i2c/i2c-dev.c rdwr_pa = memdup_user(rdwr_arg.msgs, msgs 510 drivers/i2c/i2c-dev.c compat_caddr_t msgs; /* struct i2c_msg __user *msgs */ msgs 541 drivers/i2c/i2c-dev.c p = compat_ptr(rdwr_arg.msgs); msgs 40 drivers/i2c/i2c-mux.c struct i2c_msg msgs[], int num) msgs 51 drivers/i2c/i2c-mux.c ret = __i2c_transfer(parent, msgs, num); msgs 59 drivers/i2c/i2c-mux.c struct i2c_msg msgs[], int num) msgs 70 drivers/i2c/i2c-mux.c ret = i2c_transfer(parent, msgs, num); msgs 38 drivers/i2c/muxes/i2c-demux-pinctrl.c static int i2c_demux_master_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) msgs 43 drivers/i2c/muxes/i2c-demux-pinctrl.c return __i2c_transfer(parent, msgs, num); msgs 204 drivers/iio/light/max44009.c struct i2c_msg msgs[] = { msgs 238 drivers/iio/light/max44009.c msgs, MAX44009_READ_LUX_XFER_LEN); msgs 131 drivers/iio/light/vl6180.c struct i2c_msg msgs[2] = { msgs 137 drivers/iio/light/vl6180.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 171 drivers/iio/light/vl6180.c struct i2c_msg msgs[1] = { msgs 179 drivers/iio/light/vl6180.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 191 drivers/iio/light/vl6180.c struct i2c_msg msgs[1] = { msgs 198 drivers/iio/light/vl6180.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 222 drivers/infiniband/hw/hfi1/qsfp.c struct i2c_msg msgs[2]; msgs 227 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].addr = slave_addr; msgs 228 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].flags = 0; msgs 229 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].len = len; msgs 230 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].buf = data; msgs 239 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].addr = slave_addr; msgs 240 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].flags = 0; msgs 241 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].len = offset_size; msgs 242 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].buf = offset_bytes; msgs 244 drivers/infiniband/hw/hfi1/qsfp.c msgs[1].addr = slave_addr; msgs 245 drivers/infiniband/hw/hfi1/qsfp.c msgs[1].flags = I2C_M_NOSTART, msgs 246 drivers/infiniband/hw/hfi1/qsfp.c msgs[1].len = len; msgs 247 drivers/infiniband/hw/hfi1/qsfp.c msgs[1].buf = data; msgs 254 drivers/infiniband/hw/hfi1/qsfp.c ret = i2c_transfer(&i2c->adapter, msgs, num_msgs); msgs 270 drivers/infiniband/hw/hfi1/qsfp.c struct i2c_msg msgs[2]; msgs 275 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].addr = slave_addr; msgs 276 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].flags = I2C_M_RD; msgs 277 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].len = len; msgs 278 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].buf = data; msgs 287 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].addr = slave_addr; msgs 288 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].flags = 0; msgs 289 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].len = offset_size; msgs 290 drivers/infiniband/hw/hfi1/qsfp.c msgs[0].buf = offset_bytes; msgs 292 drivers/infiniband/hw/hfi1/qsfp.c msgs[1].addr = slave_addr; msgs 293 drivers/infiniband/hw/hfi1/qsfp.c msgs[1].flags = I2C_M_RD, msgs 294 drivers/infiniband/hw/hfi1/qsfp.c msgs[1].len = len; msgs 295 drivers/infiniband/hw/hfi1/qsfp.c msgs[1].buf = data; msgs 302 drivers/infiniband/hw/hfi1/qsfp.c ret = i2c_transfer(&bus->adapter, msgs, num_msgs); msgs 86 drivers/input/misc/kxtj9.c struct i2c_msg msgs[] = { msgs 101 drivers/input/misc/kxtj9.c return i2c_transfer(tj9->client->adapter, msgs, 2); msgs 95 drivers/input/mouse/cyapa.c struct i2c_msg msgs[] = { msgs 111 drivers/input/mouse/cyapa.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 113 drivers/input/mouse/cyapa.c if (ret != ARRAY_SIZE(msgs)) msgs 73 drivers/input/mouse/elan_i2c_i2c.c struct i2c_msg msgs[] = { msgs 89 drivers/input/mouse/elan_i2c_i2c.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 90 drivers/input/mouse/elan_i2c_i2c.c return ret == ARRAY_SIZE(msgs) ? 0 : (ret < 0 ? ret : -EIO); msgs 132 drivers/input/rmi4/rmi_i2c.c struct i2c_msg msgs[] = { msgs 154 drivers/input/rmi4/rmi_i2c.c retval = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 155 drivers/input/rmi4/rmi_i2c.c if (retval == ARRAY_SIZE(msgs)) msgs 32 drivers/input/touchscreen/cyttsp_i2c_common.c struct i2c_msg msgs[] = { msgs 48 drivers/input/touchscreen/cyttsp_i2c_common.c retval = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 52 drivers/input/touchscreen/cyttsp_i2c_common.c return retval != ARRAY_SIZE(msgs) ? -EIO : 0; msgs 62 drivers/input/touchscreen/cyttsp_i2c_common.c struct i2c_msg msgs[] = { msgs 75 drivers/input/touchscreen/cyttsp_i2c_common.c retval = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 79 drivers/input/touchscreen/cyttsp_i2c_common.c return retval != ARRAY_SIZE(msgs) ? -EIO : 0; msgs 190 drivers/input/touchscreen/elants_i2c.c struct i2c_msg msgs[2]; msgs 209 drivers/input/touchscreen/elants_i2c.c msgs[0].addr = client->addr; msgs 210 drivers/input/touchscreen/elants_i2c.c msgs[0].flags = client->flags & I2C_M_TEN; msgs 211 drivers/input/touchscreen/elants_i2c.c msgs[0].len = cmd_size; msgs 212 drivers/input/touchscreen/elants_i2c.c msgs[0].buf = (u8 *)cmd; msgs 214 drivers/input/touchscreen/elants_i2c.c msgs[1].addr = client->addr; msgs 215 drivers/input/touchscreen/elants_i2c.c msgs[1].flags = client->flags & I2C_M_TEN; msgs 216 drivers/input/touchscreen/elants_i2c.c msgs[1].flags |= I2C_M_RD; msgs 217 drivers/input/touchscreen/elants_i2c.c msgs[1].len = resp_size; msgs 218 drivers/input/touchscreen/elants_i2c.c msgs[1].buf = resp; msgs 220 drivers/input/touchscreen/elants_i2c.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 224 drivers/input/touchscreen/elants_i2c.c if (ret != ARRAY_SIZE(msgs) || resp[FW_HDR_TYPE] != expected_response) msgs 182 drivers/input/touchscreen/goodix.c struct i2c_msg msgs[2]; msgs 186 drivers/input/touchscreen/goodix.c msgs[0].flags = 0; msgs 187 drivers/input/touchscreen/goodix.c msgs[0].addr = client->addr; msgs 188 drivers/input/touchscreen/goodix.c msgs[0].len = 2; msgs 189 drivers/input/touchscreen/goodix.c msgs[0].buf = (u8 *)&wbuf; msgs 191 drivers/input/touchscreen/goodix.c msgs[1].flags = I2C_M_RD; msgs 192 drivers/input/touchscreen/goodix.c msgs[1].addr = client->addr; msgs 193 drivers/input/touchscreen/goodix.c msgs[1].len = len; msgs 194 drivers/input/touchscreen/goodix.c msgs[1].buf = buf; msgs 196 drivers/input/touchscreen/goodix.c ret = i2c_transfer(client->adapter, msgs, 2); msgs 197 drivers/input/touchscreen/goodix.c return ret < 0 ? ret : (ret != ARRAY_SIZE(msgs) ? -EIO : 0); msgs 120 drivers/input/touchscreen/s6sy761.c struct i2c_msg msgs[2] = { msgs 135 drivers/input/touchscreen/s6sy761.c ret = i2c_transfer(sdata->client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 139 drivers/input/touchscreen/s6sy761.c return ret == ARRAY_SIZE(msgs) ? 0 : -EIO; msgs 149 drivers/input/touchscreen/stmfts.c struct i2c_msg msgs[2] = { msgs 164 drivers/input/touchscreen/stmfts.c ret = i2c_transfer(sdata->client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 168 drivers/input/touchscreen/stmfts.c return ret == ARRAY_SIZE(msgs) ? 0 : -EIO; msgs 49 drivers/input/touchscreen/wacom_i2c.c struct i2c_msg msgs[] = { msgs 70 drivers/input/touchscreen/wacom_i2c.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 73 drivers/input/touchscreen/wacom_i2c.c if (ret != ARRAY_SIZE(msgs)) msgs 191 drivers/input/touchscreen/wdt87xx_i2c.c struct i2c_msg msgs[] = { msgs 208 drivers/input/touchscreen/wdt87xx_i2c.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 209 drivers/input/touchscreen/wdt87xx_i2c.c if (ret != ARRAY_SIZE(msgs)) { msgs 1213 drivers/mailbox/bcm-flexrm-mailbox.c &msg->batch.msgs[i]); msgs 244 drivers/media/cec/cec-adap.c list_add_tail(&entry->list, &fh->msgs); msgs 258 drivers/media/cec/cec-adap.c entry = list_first_entry(&fh->msgs, struct cec_msg_entry, list); msgs 230 drivers/media/cec/cec-api.c list_first_entry(&fh->msgs, msgs 549 drivers/media/cec/cec-api.c INIT_LIST_HEAD(&fh->msgs); msgs 649 drivers/media/cec/cec-api.c while (!list_empty(&fh->msgs)) { msgs 651 drivers/media/cec/cec-api.c list_first_entry(&fh->msgs, struct cec_msg_entry, list); msgs 168 drivers/media/common/b2c2/flexcop-i2c.c struct i2c_msg msgs[], int num) msgs 177 drivers/media/common/b2c2/flexcop-i2c.c if (num == 1 && msgs[0].flags == I2C_M_RD && msgs[0].len <= 1) msgs 185 drivers/media/common/b2c2/flexcop-i2c.c if (i+1 < num && (msgs[i+1].flags == I2C_M_RD)) { msgs 186 drivers/media/common/b2c2/flexcop-i2c.c ret = i2c->fc->i2c_request(i2c, FC_READ, msgs[i].addr, msgs 187 drivers/media/common/b2c2/flexcop-i2c.c msgs[i].buf[0], msgs[i+1].buf, msgs 188 drivers/media/common/b2c2/flexcop-i2c.c msgs[i+1].len); msgs 191 drivers/media/common/b2c2/flexcop-i2c.c ret = i2c->fc->i2c_request(i2c, FC_WRITE, msgs[i].addr, msgs 192 drivers/media/common/b2c2/flexcop-i2c.c msgs[i].buf[0], &msgs[i].buf[1], msgs 193 drivers/media/common/b2c2/flexcop-i2c.c msgs[i].len - 1); msgs 291 drivers/media/common/saa7146/saa7146_i2c.c static int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg *msgs, int num, int retries) msgs 306 drivers/media/common/saa7146/saa7146_i2c.c count = saa7146_i2c_msg_prepare(msgs, num, buffer); msgs 358 drivers/media/common/saa7146/saa7146_i2c.c if ( 0 != saa7146_i2c_msg_cleanup(msgs, num, buffer)) { msgs 201 drivers/media/dvb-frontends/drxd_hard.c struct i2c_msg msgs[2] = { msgs 210 drivers/media/dvb-frontends/drxd_hard.c if (i2c_transfer(adap, msgs, 2) != 2) msgs 219 drivers/media/dvb-frontends/drxk_hard.c static int drxk_i2c_transfer(struct drxk_state *state, struct i2c_msg *msgs, msgs 223 drivers/media/dvb-frontends/drxk_hard.c return __i2c_transfer(state->i2c, msgs, len); msgs 225 drivers/media/dvb-frontends/drxk_hard.c return i2c_transfer(state->i2c, msgs, len); msgs 230 drivers/media/dvb-frontends/drxk_hard.c struct i2c_msg msgs[1] = { {.addr = adr, .flags = I2C_M_RD, msgs 234 drivers/media/dvb-frontends/drxk_hard.c return drxk_i2c_transfer(state, msgs, 1); msgs 264 drivers/media/dvb-frontends/drxk_hard.c struct i2c_msg msgs[2] = { msgs 271 drivers/media/dvb-frontends/drxk_hard.c status = drxk_i2c_transfer(state, msgs, 2); msgs 55 drivers/media/dvb-frontends/nxt6000.c struct i2c_msg msgs[] = { msgs 60 drivers/media/dvb-frontends/nxt6000.c ret = i2c_transfer(state->i2c, msgs, 2); msgs 160 drivers/media/dvb-frontends/stv0910.c struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, msgs 165 drivers/media/dvb-frontends/stv0910.c if (i2c_transfer(adapter, msgs, 2) != 2) { msgs 307 drivers/media/dvb-frontends/stv6111.c struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, msgs 311 drivers/media/dvb-frontends/stv6111.c if (i2c_transfer(adap, msgs, 2) != 2) { msgs 68 drivers/media/dvb-frontends/tc90522.c struct i2c_msg msgs[2] = { msgs 84 drivers/media/dvb-frontends/tc90522.c ret = i2c_transfer(state->i2c_client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 85 drivers/media/dvb-frontends/tc90522.c if (ret == ARRAY_SIZE(msgs)) msgs 634 drivers/media/dvb-frontends/tc90522.c tc90522_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 648 drivers/media/dvb-frontends/tc90522.c if (msgs[i].flags & I2C_M_RD) msgs 659 drivers/media/dvb-frontends/tc90522.c new_msgs[j].flags = msgs[i].flags; msgs 661 drivers/media/dvb-frontends/tc90522.c if (msgs[i].flags & I2C_M_RD) { msgs 666 drivers/media/dvb-frontends/tc90522.c p[1] = msgs[i].addr << 1 | 0x01; msgs 672 drivers/media/dvb-frontends/tc90522.c new_msgs[j].flags = msgs[i].flags; msgs 673 drivers/media/dvb-frontends/tc90522.c new_msgs[j].buf = msgs[i].buf; msgs 674 drivers/media/dvb-frontends/tc90522.c new_msgs[j].len = msgs[i].len; msgs 678 drivers/media/dvb-frontends/tc90522.c if (p + msgs[i].len + 2 > bufend) msgs 681 drivers/media/dvb-frontends/tc90522.c p[1] = msgs[i].addr << 1; msgs 682 drivers/media/dvb-frontends/tc90522.c memcpy(p + 2, msgs[i].buf, msgs[i].len); msgs 684 drivers/media/dvb-frontends/tc90522.c new_msgs[j].len = msgs[i].len + 2; msgs 107 drivers/media/dvb-frontends/tda18271c2dd.c struct i2c_msg msgs[1] = {{.addr = adr, .flags = I2C_M_RD, msgs 109 drivers/media/dvb-frontends/tda18271c2dd.c return (i2c_transfer(adapter, msgs, 1) == 1) ? 0 : -1; msgs 101 drivers/media/i2c/cx25840/cx25840-core.c struct i2c_msg msgs[2]; msgs 107 drivers/media/i2c/cx25840/cx25840-core.c msgs[0].addr = client->addr; msgs 108 drivers/media/i2c/cx25840/cx25840-core.c msgs[0].flags = 0; msgs 109 drivers/media/i2c/cx25840/cx25840-core.c msgs[0].len = 2; msgs 110 drivers/media/i2c/cx25840/cx25840-core.c msgs[0].buf = (char *)tx_buf; msgs 113 drivers/media/i2c/cx25840/cx25840-core.c msgs[1].addr = client->addr; msgs 114 drivers/media/i2c/cx25840/cx25840-core.c msgs[1].flags = I2C_M_RD; msgs 115 drivers/media/i2c/cx25840/cx25840-core.c msgs[1].len = 1; msgs 116 drivers/media/i2c/cx25840/cx25840-core.c msgs[1].buf = (char *)rx_buf; msgs 118 drivers/media/i2c/cx25840/cx25840-core.c if (i2c_transfer(client->adapter, msgs, 2) < 2) msgs 126 drivers/media/i2c/cx25840/cx25840-core.c struct i2c_msg msgs[2]; msgs 132 drivers/media/i2c/cx25840/cx25840-core.c msgs[0].addr = client->addr; msgs 133 drivers/media/i2c/cx25840/cx25840-core.c msgs[0].flags = 0; msgs 134 drivers/media/i2c/cx25840/cx25840-core.c msgs[0].len = 2; msgs 135 drivers/media/i2c/cx25840/cx25840-core.c msgs[0].buf = (char *)tx_buf; msgs 138 drivers/media/i2c/cx25840/cx25840-core.c msgs[1].addr = client->addr; msgs 139 drivers/media/i2c/cx25840/cx25840-core.c msgs[1].flags = I2C_M_RD; msgs 140 drivers/media/i2c/cx25840/cx25840-core.c msgs[1].len = 4; msgs 141 drivers/media/i2c/cx25840/cx25840-core.c msgs[1].buf = (char *)rx_buf; msgs 143 drivers/media/i2c/cx25840/cx25840-core.c if (i2c_transfer(client->adapter, msgs, 2) < 2) msgs 624 drivers/media/i2c/imx258.c struct i2c_msg msgs[2]; msgs 633 drivers/media/i2c/imx258.c msgs[0].addr = client->addr; msgs 634 drivers/media/i2c/imx258.c msgs[0].flags = 0; msgs 635 drivers/media/i2c/imx258.c msgs[0].len = ARRAY_SIZE(addr_buf); msgs 636 drivers/media/i2c/imx258.c msgs[0].buf = addr_buf; msgs 639 drivers/media/i2c/imx258.c msgs[1].addr = client->addr; msgs 640 drivers/media/i2c/imx258.c msgs[1].flags = I2C_M_RD; msgs 641 drivers/media/i2c/imx258.c msgs[1].len = len; msgs 642 drivers/media/i2c/imx258.c msgs[1].buf = &data_buf[4 - len]; msgs 644 drivers/media/i2c/imx258.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 645 drivers/media/i2c/imx258.c if (ret != ARRAY_SIZE(msgs)) msgs 1790 drivers/media/i2c/imx319.c struct i2c_msg msgs[2]; msgs 1800 drivers/media/i2c/imx319.c msgs[0].addr = client->addr; msgs 1801 drivers/media/i2c/imx319.c msgs[0].flags = 0; msgs 1802 drivers/media/i2c/imx319.c msgs[0].len = ARRAY_SIZE(addr_buf); msgs 1803 drivers/media/i2c/imx319.c msgs[0].buf = addr_buf; msgs 1806 drivers/media/i2c/imx319.c msgs[1].addr = client->addr; msgs 1807 drivers/media/i2c/imx319.c msgs[1].flags = I2C_M_RD; msgs 1808 drivers/media/i2c/imx319.c msgs[1].len = len; msgs 1809 drivers/media/i2c/imx319.c msgs[1].buf = &data_buf[4 - len]; msgs 1811 drivers/media/i2c/imx319.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 1812 drivers/media/i2c/imx319.c if (ret != ARRAY_SIZE(msgs)) msgs 1090 drivers/media/i2c/imx355.c struct i2c_msg msgs[2]; msgs 1100 drivers/media/i2c/imx355.c msgs[0].addr = client->addr; msgs 1101 drivers/media/i2c/imx355.c msgs[0].flags = 0; msgs 1102 drivers/media/i2c/imx355.c msgs[0].len = ARRAY_SIZE(addr_buf); msgs 1103 drivers/media/i2c/imx355.c msgs[0].buf = addr_buf; msgs 1106 drivers/media/i2c/imx355.c msgs[1].addr = client->addr; msgs 1107 drivers/media/i2c/imx355.c msgs[1].flags = I2C_M_RD; msgs 1108 drivers/media/i2c/imx355.c msgs[1].len = len; msgs 1109 drivers/media/i2c/imx355.c msgs[1].buf = &data_buf[4 - len]; msgs 1111 drivers/media/i2c/imx355.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 1112 drivers/media/i2c/imx355.c if (ret != ARRAY_SIZE(msgs)) msgs 306 drivers/media/i2c/ks0127.c struct i2c_msg msgs[] = { msgs 321 drivers/media/i2c/ks0127.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 322 drivers/media/i2c/ks0127.c if (ret != ARRAY_SIZE(msgs)) msgs 150 drivers/media/i2c/msp3400-driver.c struct i2c_msg msgs[2] = { msgs 169 drivers/media/i2c/msp3400-driver.c if (i2c_transfer(client->adapter, msgs, 2) == 2) msgs 1057 drivers/media/i2c/ov13858.c struct i2c_msg msgs[2]; msgs 1068 drivers/media/i2c/ov13858.c msgs[0].addr = client->addr; msgs 1069 drivers/media/i2c/ov13858.c msgs[0].flags = 0; msgs 1070 drivers/media/i2c/ov13858.c msgs[0].len = 2; msgs 1071 drivers/media/i2c/ov13858.c msgs[0].buf = (u8 *)®_addr_be; msgs 1074 drivers/media/i2c/ov13858.c msgs[1].addr = client->addr; msgs 1075 drivers/media/i2c/ov13858.c msgs[1].flags = I2C_M_RD; msgs 1076 drivers/media/i2c/ov13858.c msgs[1].len = len; msgs 1077 drivers/media/i2c/ov13858.c msgs[1].buf = &data_be_p[4 - len]; msgs 1079 drivers/media/i2c/ov13858.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 1080 drivers/media/i2c/ov13858.c if (ret != ARRAY_SIZE(msgs)) msgs 231 drivers/media/i2c/ov2680.c struct i2c_msg msgs[2]; msgs 239 drivers/media/i2c/ov2680.c msgs[0].addr = client->addr; msgs 240 drivers/media/i2c/ov2680.c msgs[0].flags = 0; msgs 241 drivers/media/i2c/ov2680.c msgs[0].len = ARRAY_SIZE(addr_buf); msgs 242 drivers/media/i2c/ov2680.c msgs[0].buf = addr_buf; msgs 244 drivers/media/i2c/ov2680.c msgs[1].addr = client->addr; msgs 245 drivers/media/i2c/ov2680.c msgs[1].flags = I2C_M_RD; msgs 246 drivers/media/i2c/ov2680.c msgs[1].len = len; msgs 247 drivers/media/i2c/ov2680.c msgs[1].buf = &data_buf[4 - len]; msgs 249 drivers/media/i2c/ov2680.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 250 drivers/media/i2c/ov2680.c if (ret != ARRAY_SIZE(msgs)) { msgs 290 drivers/media/i2c/ov2685.c struct i2c_msg msgs[2]; msgs 301 drivers/media/i2c/ov2685.c msgs[0].addr = client->addr; msgs 302 drivers/media/i2c/ov2685.c msgs[0].flags = 0; msgs 303 drivers/media/i2c/ov2685.c msgs[0].len = 2; msgs 304 drivers/media/i2c/ov2685.c msgs[0].buf = (u8 *)®_addr_be; msgs 307 drivers/media/i2c/ov2685.c msgs[1].addr = client->addr; msgs 308 drivers/media/i2c/ov2685.c msgs[1].flags = I2C_M_RD; msgs 309 drivers/media/i2c/ov2685.c msgs[1].len = len; msgs 310 drivers/media/i2c/ov2685.c msgs[1].buf = &data_be_p[4 - len]; msgs 312 drivers/media/i2c/ov2685.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 313 drivers/media/i2c/ov2685.c if (ret != ARRAY_SIZE(msgs)) msgs 1843 drivers/media/i2c/ov5670.c struct i2c_msg msgs[2]; msgs 1854 drivers/media/i2c/ov5670.c msgs[0].addr = client->addr; msgs 1855 drivers/media/i2c/ov5670.c msgs[0].flags = 0; msgs 1856 drivers/media/i2c/ov5670.c msgs[0].len = 2; msgs 1857 drivers/media/i2c/ov5670.c msgs[0].buf = (u8 *)®_addr_be; msgs 1860 drivers/media/i2c/ov5670.c msgs[1].addr = client->addr; msgs 1861 drivers/media/i2c/ov5670.c msgs[1].flags = I2C_M_RD; msgs 1862 drivers/media/i2c/ov5670.c msgs[1].len = len; msgs 1863 drivers/media/i2c/ov5670.c msgs[1].buf = &data_be_p[4 - len]; msgs 1865 drivers/media/i2c/ov5670.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 1866 drivers/media/i2c/ov5670.c if (ret != ARRAY_SIZE(msgs)) msgs 515 drivers/media/i2c/ov5675.c struct i2c_msg msgs[2]; msgs 524 drivers/media/i2c/ov5675.c msgs[0].addr = client->addr; msgs 525 drivers/media/i2c/ov5675.c msgs[0].flags = 0; msgs 526 drivers/media/i2c/ov5675.c msgs[0].len = sizeof(addr_buf); msgs 527 drivers/media/i2c/ov5675.c msgs[0].buf = addr_buf; msgs 528 drivers/media/i2c/ov5675.c msgs[1].addr = client->addr; msgs 529 drivers/media/i2c/ov5675.c msgs[1].flags = I2C_M_RD; msgs 530 drivers/media/i2c/ov5675.c msgs[1].len = len; msgs 531 drivers/media/i2c/ov5675.c msgs[1].buf = &data_buf[4 - len]; msgs 533 drivers/media/i2c/ov5675.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 534 drivers/media/i2c/ov5675.c if (ret != ARRAY_SIZE(msgs)) msgs 750 drivers/media/i2c/ov5695.c struct i2c_msg msgs[2]; msgs 761 drivers/media/i2c/ov5695.c msgs[0].addr = client->addr; msgs 762 drivers/media/i2c/ov5695.c msgs[0].flags = 0; msgs 763 drivers/media/i2c/ov5695.c msgs[0].len = 2; msgs 764 drivers/media/i2c/ov5695.c msgs[0].buf = (u8 *)®_addr_be; msgs 767 drivers/media/i2c/ov5695.c msgs[1].addr = client->addr; msgs 768 drivers/media/i2c/ov5695.c msgs[1].flags = I2C_M_RD; msgs 769 drivers/media/i2c/ov5695.c msgs[1].len = len; msgs 770 drivers/media/i2c/ov5695.c msgs[1].buf = &data_be_p[4 - len]; msgs 772 drivers/media/i2c/ov5695.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 773 drivers/media/i2c/ov5695.c if (ret != ARRAY_SIZE(msgs)) msgs 607 drivers/media/i2c/ov8856.c struct i2c_msg msgs[2]; msgs 616 drivers/media/i2c/ov8856.c msgs[0].addr = client->addr; msgs 617 drivers/media/i2c/ov8856.c msgs[0].flags = 0; msgs 618 drivers/media/i2c/ov8856.c msgs[0].len = sizeof(addr_buf); msgs 619 drivers/media/i2c/ov8856.c msgs[0].buf = addr_buf; msgs 620 drivers/media/i2c/ov8856.c msgs[1].addr = client->addr; msgs 621 drivers/media/i2c/ov8856.c msgs[1].flags = I2C_M_RD; msgs 622 drivers/media/i2c/ov8856.c msgs[1].len = len; msgs 623 drivers/media/i2c/ov8856.c msgs[1].buf = &data_buf[4 - len]; msgs 625 drivers/media/i2c/ov8856.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 626 drivers/media/i2c/ov8856.c if (ret != ARRAY_SIZE(msgs)) msgs 127 drivers/media/i2c/saa717x.c struct i2c_msg msgs[2]; msgs 130 drivers/media/i2c/saa717x.c msgs[0].flags = 0; msgs 131 drivers/media/i2c/saa717x.c msgs[1].flags = I2C_M_RD; msgs 132 drivers/media/i2c/saa717x.c msgs[0].addr = msgs[1].addr = client->addr; msgs 135 drivers/media/i2c/saa717x.c msgs[0].len = 2; msgs 136 drivers/media/i2c/saa717x.c msgs[0].buf = mm1; msgs 137 drivers/media/i2c/saa717x.c msgs[1].len = fw_addr ? 3 : 1; /* Multibyte Registers contains *only* 3 bytes */ msgs 138 drivers/media/i2c/saa717x.c msgs[1].buf = mm2; msgs 139 drivers/media/i2c/saa717x.c i2c_transfer(adap, msgs, 2); msgs 229 drivers/media/i2c/sony-btf-mpx.c struct i2c_msg msgs[2]; msgs 244 drivers/media/i2c/sony-btf-mpx.c msgs[0].addr = client->addr; msgs 245 drivers/media/i2c/sony-btf-mpx.c msgs[0].flags = 0; msgs 246 drivers/media/i2c/sony-btf-mpx.c msgs[0].len = 3; msgs 247 drivers/media/i2c/sony-btf-mpx.c msgs[0].buf = buf1; msgs 248 drivers/media/i2c/sony-btf-mpx.c msgs[1].addr = client->addr; msgs 249 drivers/media/i2c/sony-btf-mpx.c msgs[1].flags = I2C_M_RD; msgs 250 drivers/media/i2c/sony-btf-mpx.c msgs[1].len = 2; msgs 251 drivers/media/i2c/sony-btf-mpx.c msgs[1].buf = buf2; msgs 252 drivers/media/i2c/sony-btf-mpx.c i2c_transfer(client->adapter, msgs, 2); msgs 258 drivers/media/i2c/sony-btf-mpx.c i2c_transfer(client->adapter, msgs, 2); msgs 119 drivers/media/i2c/tc358743.c struct i2c_msg msgs[] = { msgs 134 drivers/media/i2c/tc358743.c err = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 135 drivers/media/i2c/tc358743.c if (err != ARRAY_SIZE(msgs)) { msgs 244 drivers/media/i2c/tvaudio.c struct i2c_msg msgs[2] = { msgs 260 drivers/media/i2c/tvaudio.c rc = i2c_transfer(c->adapter, msgs, 2); msgs 220 drivers/media/pci/bt8xx/bttv-i2c.c static int bttv_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) msgs 232 drivers/media/pci/bt8xx/bttv-i2c.c if (msgs[i].flags & I2C_M_RD) { msgs 234 drivers/media/pci/bt8xx/bttv-i2c.c retval = bttv_i2c_readbytes(btv, &msgs[i], i+1 == num); msgs 239 drivers/media/pci/bt8xx/bttv-i2c.c retval = bttv_i2c_sendbytes(btv, &msgs[i], i+1 == num); msgs 231 drivers/media/pci/cobalt/cobalt-i2c.c struct i2c_msg msgs[], int num) msgs 243 drivers/media/pci/cobalt/cobalt-i2c.c pmsg = &msgs[i]; msgs 210 drivers/media/pci/cx23885/cx23885-i2c.c struct i2c_msg *msgs, int num) msgs 218 drivers/media/pci/cx23885/cx23885-i2c.c __func__, num, msgs[i].addr, msgs[i].len); msgs 219 drivers/media/pci/cx23885/cx23885-i2c.c if (msgs[i].flags & I2C_M_RD) { msgs 221 drivers/media/pci/cx23885/cx23885-i2c.c retval = i2c_readbytes(i2c_adap, &msgs[i], 0); msgs 222 drivers/media/pci/cx23885/cx23885-i2c.c } else if (i + 1 < num && (msgs[i + 1].flags & I2C_M_RD) && msgs 223 drivers/media/pci/cx23885/cx23885-i2c.c msgs[i].addr == msgs[i + 1].addr) { msgs 225 drivers/media/pci/cx23885/cx23885-i2c.c retval = i2c_sendbytes(i2c_adap, &msgs[i], msgs 226 drivers/media/pci/cx23885/cx23885-i2c.c msgs[i + 1].len); msgs 230 drivers/media/pci/cx23885/cx23885-i2c.c retval = i2c_readbytes(i2c_adap, &msgs[i], 1); msgs 233 drivers/media/pci/cx23885/cx23885-i2c.c retval = i2c_sendbytes(i2c_adap, &msgs[i], 0); msgs 224 drivers/media/pci/cx25821/cx25821-i2c.c static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) msgs 234 drivers/media/pci/cx25821/cx25821-i2c.c __func__, num, msgs[i].addr, msgs[i].len); msgs 236 drivers/media/pci/cx25821/cx25821-i2c.c if (msgs[i].flags & I2C_M_RD) { msgs 238 drivers/media/pci/cx25821/cx25821-i2c.c retval = i2c_readbytes(i2c_adap, &msgs[i], 0); msgs 239 drivers/media/pci/cx25821/cx25821-i2c.c } else if (i + 1 < num && (msgs[i + 1].flags & I2C_M_RD) && msgs 240 drivers/media/pci/cx25821/cx25821-i2c.c msgs[i].addr == msgs[i + 1].addr) { msgs 242 drivers/media/pci/cx25821/cx25821-i2c.c retval = i2c_sendbytes(i2c_adap, &msgs[i], msgs 243 drivers/media/pci/cx25821/cx25821-i2c.c msgs[i + 1].len); msgs 248 drivers/media/pci/cx25821/cx25821-i2c.c retval = i2c_readbytes(i2c_adap, &msgs[i], 1); msgs 251 drivers/media/pci/cx25821/cx25821-i2c.c retval = i2c_sendbytes(i2c_adap, &msgs[i], 0); msgs 351 drivers/media/pci/cx25821/cx25821-i2c.c struct i2c_msg msgs[2] = { msgs 367 drivers/media/pci/cx25821/cx25821-i2c.c msgs[0].addr = 0x44; msgs 368 drivers/media/pci/cx25821/cx25821-i2c.c msgs[1].addr = 0x44; msgs 370 drivers/media/pci/cx25821/cx25821-i2c.c i2c_xfer(client->adapter, msgs, 2); msgs 384 drivers/media/pci/cx25821/cx25821-i2c.c struct i2c_msg msgs[1] = { msgs 400 drivers/media/pci/cx25821/cx25821-i2c.c msgs[0].addr = 0x44; msgs 402 drivers/media/pci/cx25821/cx25821-i2c.c retval = i2c_xfer(client->adapter, msgs, 1); msgs 1651 drivers/media/pci/ddbridge/ddbridge-core.c struct i2c_msg msgs[2] = {{ .addr = 0x40, .flags = 0, msgs 1655 drivers/media/pci/ddbridge/ddbridge-core.c val = i2c_transfer(&port->i2c->adap, msgs, 2); msgs 36 drivers/media/pci/ddbridge/ddbridge-i2c.h struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, msgs 41 drivers/media/pci/ddbridge/ddbridge-i2c.h return (i2c_transfer(adapter, msgs, 2) == 2) ? 0 : -1; msgs 55 drivers/media/pci/ddbridge/ddbridge-i2c.h struct i2c_msg msgs[1] = { { .addr = adr, .flags = I2C_M_RD, msgs 58 drivers/media/pci/ddbridge/ddbridge-i2c.h return (i2c_transfer(adapter, msgs, 1) == 1) ? 0 : -1; msgs 64 drivers/media/pci/ddbridge/ddbridge-i2c.h struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, msgs 69 drivers/media/pci/ddbridge/ddbridge-i2c.h return (i2c_transfer(adapter, msgs, 2) == 2) ? 0 : -1; msgs 76 drivers/media/pci/ddbridge/ddbridge-i2c.h struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, msgs 81 drivers/media/pci/ddbridge/ddbridge-i2c.h return (i2c_transfer(adapter, msgs, 2) == 2) ? 0 : -1; msgs 475 drivers/media/pci/dm1105/dm1105.c struct i2c_msg *msgs, int num) msgs 485 drivers/media/pci/dm1105/dm1105.c if (msgs[i].flags & I2C_M_RD) { msgs 487 drivers/media/pci/dm1105/dm1105.c addr = msgs[i].addr << 1; msgs 490 drivers/media/pci/dm1105/dm1105.c for (byte = 0; byte < msgs[i].len; byte++) msgs 493 drivers/media/pci/dm1105/dm1105.c dm_writeb(DM1105_I2CCTR, 0x81 + msgs[i].len); msgs 503 drivers/media/pci/dm1105/dm1105.c for (byte = 0; byte < msgs[i].len; byte++) { msgs 507 drivers/media/pci/dm1105/dm1105.c msgs[i].buf[byte] = rc; msgs 509 drivers/media/pci/dm1105/dm1105.c } else if ((msgs[i].buf[0] == 0xf7) && (msgs[i].addr == 0x55)) { msgs 512 drivers/media/pci/dm1105/dm1105.c len = msgs[i].len - 1; msgs 515 drivers/media/pci/dm1105/dm1105.c dm_writeb(DM1105_I2CDAT, msgs[i].addr << 1); msgs 518 drivers/media/pci/dm1105/dm1105.c data = msgs[i].buf[k + byte]; msgs 537 drivers/media/pci/dm1105/dm1105.c dm_writeb(DM1105_I2CDAT, msgs[i].addr << 1); msgs 538 drivers/media/pci/dm1105/dm1105.c for (byte = 0; byte < msgs[i].len; byte++) { msgs 539 drivers/media/pci/dm1105/dm1105.c data = msgs[i].buf[byte]; msgs 542 drivers/media/pci/dm1105/dm1105.c dm_writeb(DM1105_I2CCTR, 0x81 + msgs[i].len); msgs 578 drivers/media/pci/ivtv/ivtv-i2c.c static int ivtv_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) msgs 587 drivers/media/pci/ivtv/ivtv-i2c.c if (msgs[i].flags & I2C_M_RD) msgs 588 drivers/media/pci/ivtv/ivtv-i2c.c retval = ivtv_read(itv, msgs[i].addr, msgs[i].buf, msgs[i].len); msgs 591 drivers/media/pci/ivtv/ivtv-i2c.c int stop = !(i + 1 < num && msgs[i + 1].flags == I2C_M_RD); msgs 593 drivers/media/pci/ivtv/ivtv-i2c.c retval = ivtv_write(itv, msgs[i].addr, msgs[i].buf, msgs[i].len, stop); msgs 116 drivers/media/pci/mantis/mantis_i2c.c static int mantis_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) msgs 135 drivers/media/pci/mantis/mantis_i2c.c (msgs[i].len < 2) && msgs 136 drivers/media/pci/mantis/mantis_i2c.c (msgs[i + 1].len < 2) && msgs 137 drivers/media/pci/mantis/mantis_i2c.c (msgs[i + 1].flags & I2C_M_RD)) { msgs 142 drivers/media/pci/mantis/mantis_i2c.c txd = msgs[i].addr << 25 | (0x1 << 24) msgs 143 drivers/media/pci/mantis/mantis_i2c.c | (msgs[i].buf[0] << 16) msgs 159 drivers/media/pci/mantis/mantis_i2c.c msgs[i + 1].buf[0] = (data >> 8) & 0xff; msgs 160 drivers/media/pci/mantis/mantis_i2c.c dprintk(MANTIS_DEBUG, 0, " Byte <%d> RXD=0x%02x [%02x]\n", 0x0, data, msgs[i + 1].buf[0]); msgs 177 drivers/media/pci/mantis/mantis_i2c.c if (msgs[i].flags & I2C_M_RD) msgs 178 drivers/media/pci/mantis/mantis_i2c.c ret = mantis_i2c_read(mantis, &msgs[i]); msgs 180 drivers/media/pci/mantis/mantis_i2c.c ret = mantis_i2c_write(mantis, &msgs[i]); msgs 201 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c struct i2c_msg *msgs, int num) msgs 217 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c i2c->msg = &msgs[i]; msgs 47 drivers/media/pci/ngene/ngene-cards.c struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, msgs 51 drivers/media/pci/ngene/ngene-cards.c return (i2c_transfer(adapter, msgs, 2) == 2) ? 0 : -1; msgs 72 drivers/media/pci/ngene/ngene-cards.c struct i2c_msg msgs[1] = {{.addr = adr, .flags = I2C_M_RD, msgs 74 drivers/media/pci/ngene/ngene-cards.c return (i2c_transfer(adapter, msgs, 1) == 1) ? 0 : -1; msgs 81 drivers/media/pci/ngene/ngene-cards.c struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, msgs 85 drivers/media/pci/ngene/ngene-cards.c return (i2c_transfer(adapter, msgs, 2) == 2) ? 0 : -1; msgs 91 drivers/media/pci/ngene/ngene-cards.c struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, msgs 96 drivers/media/pci/ngene/ngene-cards.c return (i2c_transfer(adapter, msgs, 2) == 2) ? 0 : -1; msgs 472 drivers/media/pci/ngene/ngene-cards.c struct i2c_msg msgs[2] = {{ .addr = 0x40, .flags = 0, msgs 476 drivers/media/pci/ngene/ngene-cards.c val = i2c_transfer(i2c, msgs, 2); msgs 807 drivers/media/pci/ngene/ngene-cards.c struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, msgs 812 drivers/media/pci/ngene/ngene-cards.c if (i2c_transfer(adapter, msgs, 2) != 2) { msgs 1140 drivers/media/pci/pt1/pt1.c static int pt1_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 1152 drivers/media/pci/pt1/pt1.c msg = &msgs[i]; msgs 1157 drivers/media/pci/pt1/pt1.c next_msg = &msgs[i + 1]; msgs 172 drivers/media/pci/pt3/pt3.h struct i2c_msg *msgs, int num); msgs 104 drivers/media/pci/pt3/pt3_i2c.c static void translate(struct pt3_i2cbuf *cbuf, struct i2c_msg *msgs, int num) msgs 111 drivers/media/pci/pt3/pt3_i2c.c rd = !!(msgs[i].flags & I2C_M_RD); msgs 113 drivers/media/pci/pt3/pt3_i2c.c put_byte_write(cbuf, msgs[i].addr << 1 | rd); msgs 115 drivers/media/pci/pt3/pt3_i2c.c put_byte_read(cbuf, msgs[i].len); msgs 117 drivers/media/pci/pt3/pt3_i2c.c for (j = 0; j < msgs[i].len; j++) msgs 118 drivers/media/pci/pt3/pt3_i2c.c put_byte_write(cbuf, msgs[i].buf[j]); msgs 192 drivers/media/pci/pt3/pt3_i2c.c pt3_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) msgs 203 drivers/media/pci/pt3/pt3_i2c.c if (msgs[i].flags & I2C_M_RECV_LEN) { msgs 210 drivers/media/pci/pt3/pt3_i2c.c translate(cbuf, msgs, num); msgs 219 drivers/media/pci/pt3/pt3_i2c.c if ((msgs[i].flags & I2C_M_RD) && msgs[i].len > 0) { msgs 220 drivers/media/pci/pt3/pt3_i2c.c memcpy_fromio(msgs[i].buf, p, msgs[i].len); msgs 221 drivers/media/pci/pt3/pt3_i2c.c p += msgs[i].len; msgs 228 drivers/media/pci/saa7134/saa7134-i2c.c struct i2c_msg *msgs, int num) msgs 243 drivers/media/pci/saa7134/saa7134-i2c.c if (!(msgs[i].flags & I2C_M_NOSTART) || 0 == i) { msgs 246 drivers/media/pci/saa7134/saa7134-i2c.c addr = msgs[i].addr << 1; msgs 247 drivers/media/pci/saa7134/saa7134-i2c.c if (msgs[i].flags & I2C_M_RD) msgs 249 drivers/media/pci/saa7134/saa7134-i2c.c if (i > 0 && msgs[i].flags & msgs 250 drivers/media/pci/saa7134/saa7134-i2c.c I2C_M_RD && msgs[i].addr != 0x40 && msgs 251 drivers/media/pci/saa7134/saa7134-i2c.c msgs[i].addr != 0x41 && msgs 252 drivers/media/pci/saa7134/saa7134-i2c.c msgs[i].addr != 0x19) { msgs 266 drivers/media/pci/saa7134/saa7134-i2c.c if (msgs[i].flags & I2C_M_RD) { msgs 269 drivers/media/pci/saa7134/saa7134-i2c.c for (byte = 0; byte < msgs[i].len; byte++) { msgs 275 drivers/media/pci/saa7134/saa7134-i2c.c msgs[i].buf[byte] = rc; msgs 280 drivers/media/pci/saa7134/saa7134-i2c.c if (0x19 == msgs[i].addr) { msgs 290 drivers/media/pci/saa7134/saa7134-i2c.c for (byte = 0; byte < msgs[i].len; byte++) { msgs 291 drivers/media/pci/saa7134/saa7134-i2c.c data = msgs[i].buf[byte]; msgs 16 drivers/media/pci/saa7164/saa7164-i2c.c static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) msgs 26 drivers/media/pci/saa7164/saa7164-i2c.c __func__, num, msgs[i].addr, msgs[i].len); msgs 27 drivers/media/pci/saa7164/saa7164-i2c.c if (msgs[i].flags & I2C_M_RD) { msgs 29 drivers/media/pci/saa7164/saa7164-i2c.c msgs[i].addr, msgs 31 drivers/media/pci/saa7164/saa7164-i2c.c NULL /* reg */, msgs[i].len, msgs[i].buf); msgs 32 drivers/media/pci/saa7164/saa7164-i2c.c } else if (i + 1 < num && (msgs[i + 1].flags & I2C_M_RD) && msgs 33 drivers/media/pci/saa7164/saa7164-i2c.c msgs[i].addr == msgs[i + 1].addr) { msgs 36 drivers/media/pci/saa7164/saa7164-i2c.c retval = saa7164_api_i2c_read(bus, msgs[i].addr, msgs 37 drivers/media/pci/saa7164/saa7164-i2c.c msgs[i].len, msgs[i].buf, msgs 38 drivers/media/pci/saa7164/saa7164-i2c.c msgs[i+1].len, msgs[i+1].buf msgs 47 drivers/media/pci/saa7164/saa7164-i2c.c retval = saa7164_api_i2c_write(bus, msgs[i].addr, msgs 48 drivers/media/pci/saa7164/saa7164-i2c.c msgs[i].len, msgs[i].buf); msgs 27 drivers/media/pci/solo6x10/solo6x10-i2c.c struct i2c_msg msgs[2]; msgs 30 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs[0].flags = 0; msgs 31 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs[0].addr = addr; msgs 32 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs[0].len = 1; msgs 33 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs[0].buf = &off; msgs 35 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs[1].flags = I2C_M_RD; msgs 36 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs[1].addr = addr; msgs 37 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs[1].len = 1; msgs 38 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs[1].buf = &data; msgs 40 drivers/media/pci/solo6x10/solo6x10-i2c.c i2c_transfer(&solo_dev->i2c_adap[id], msgs, 2); msgs 48 drivers/media/pci/solo6x10/solo6x10-i2c.c struct i2c_msg msgs; msgs 53 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs.flags = 0; msgs 54 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs.addr = addr; msgs 55 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs.len = 2; msgs 56 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs.buf = buf; msgs 58 drivers/media/pci/solo6x10/solo6x10-i2c.c i2c_transfer(&solo_dev->i2c_adap[id], &msgs, 1); msgs 207 drivers/media/pci/solo6x10/solo6x10-i2c.c struct i2c_msg msgs[], int num) msgs 225 drivers/media/pci/solo6x10/solo6x10-i2c.c solo_dev->i2c_msg = msgs; msgs 1408 drivers/media/pci/ttpci/av7110.c struct i2c_msg msgs; msgs 1410 drivers/media/pci/ttpci/av7110.c msgs.flags = 0; msgs 1411 drivers/media/pci/ttpci/av7110.c msgs.addr = id / 2; msgs 1412 drivers/media/pci/ttpci/av7110.c msgs.len = 2; msgs 1413 drivers/media/pci/ttpci/av7110.c msgs.buf = msg; msgs 1414 drivers/media/pci/ttpci/av7110.c return i2c_transfer(&av7110->i2c_adap, &msgs, 1); msgs 1421 drivers/media/pci/ttpci/av7110.c struct i2c_msg msgs[2]; msgs 1423 drivers/media/pci/ttpci/av7110.c msgs[0].flags = 0; msgs 1424 drivers/media/pci/ttpci/av7110.c msgs[1].flags = I2C_M_RD; msgs 1425 drivers/media/pci/ttpci/av7110.c msgs[0].addr = msgs[1].addr = id / 2; msgs 1427 drivers/media/pci/ttpci/av7110.c msgs[0].len = 1; msgs[1].len = 1; msgs 1428 drivers/media/pci/ttpci/av7110.c msgs[0].buf = mm1; msgs[1].buf = mm2; msgs 1429 drivers/media/pci/ttpci/av7110.c i2c_transfer(&av7110->i2c_adap, msgs, 2); msgs 30 drivers/media/pci/ttpci/av7110_v4l.c struct i2c_msg msgs = { .flags = 0, .len = 5, .buf = msg }; msgs 34 drivers/media/pci/ttpci/av7110_v4l.c msgs.addr = 0x40; msgs 37 drivers/media/pci/ttpci/av7110_v4l.c msgs.addr = 0x42; msgs 43 drivers/media/pci/ttpci/av7110_v4l.c if (i2c_transfer(&av7110->i2c_adap, &msgs, 1) != 1) { msgs 55 drivers/media/pci/ttpci/av7110_v4l.c struct i2c_msg msgs[2] = { msgs 62 drivers/media/pci/ttpci/av7110_v4l.c msgs[0].addr = 0x40; msgs 63 drivers/media/pci/ttpci/av7110_v4l.c msgs[1].addr = 0x40; msgs 66 drivers/media/pci/ttpci/av7110_v4l.c msgs[0].addr = 0x42; msgs 67 drivers/media/pci/ttpci/av7110_v4l.c msgs[1].addr = 0x42; msgs 73 drivers/media/pci/ttpci/av7110_v4l.c if (i2c_transfer(&av7110->i2c_adap, &msgs[0], 2) != 2) { msgs 81 drivers/media/pci/ttpci/budget-av.c struct i2c_msg msgs[2]; msgs 83 drivers/media/pci/ttpci/budget-av.c msgs[0].flags = 0; msgs 84 drivers/media/pci/ttpci/budget-av.c msgs[1].flags = I2C_M_RD; msgs 85 drivers/media/pci/ttpci/budget-av.c msgs[0].addr = msgs[1].addr = id / 2; msgs 87 drivers/media/pci/ttpci/budget-av.c msgs[0].len = 1; msgs 88 drivers/media/pci/ttpci/budget-av.c msgs[1].len = 1; msgs 89 drivers/media/pci/ttpci/budget-av.c msgs[0].buf = mm1; msgs 90 drivers/media/pci/ttpci/budget-av.c msgs[1].buf = mm2; msgs 92 drivers/media/pci/ttpci/budget-av.c i2c_transfer(i2c, msgs, 2); msgs 100 drivers/media/pci/ttpci/budget-av.c struct i2c_msg msgs[2] = { msgs 105 drivers/media/pci/ttpci/budget-av.c if (i2c_transfer(i2c, msgs, 2) != 2) msgs 114 drivers/media/pci/ttpci/budget-av.c struct i2c_msg msgs; msgs 116 drivers/media/pci/ttpci/budget-av.c msgs.flags = 0; msgs 117 drivers/media/pci/ttpci/budget-av.c msgs.addr = id / 2; msgs 118 drivers/media/pci/ttpci/budget-av.c msgs.len = 2; msgs 119 drivers/media/pci/ttpci/budget-av.c msgs.buf = msg; msgs 120 drivers/media/pci/ttpci/budget-av.c return i2c_transfer(i2c, &msgs, 1); msgs 145 drivers/media/radio/radio-tea5764.c struct i2c_msg msgs[1] = { msgs 152 drivers/media/radio/radio-tea5764.c if (i2c_transfer(radio->i2c_client->adapter, msgs, 1) != 1) msgs 164 drivers/media/radio/radio-tea5764.c struct i2c_msg msgs[1] = { msgs 177 drivers/media/radio/radio-tea5764.c if (i2c_transfer(radio->i2c_client->adapter, msgs, 1) != 1) msgs 136 drivers/media/radio/saa7706h.c struct i2c_msg *msgs, int num) msgs 138 drivers/media/radio/saa7706h.c int err = i2c_transfer(client->adapter, msgs, num); msgs 87 drivers/media/radio/si470x/radio-si470x-i2c.c struct i2c_msg msgs[1] = { msgs 96 drivers/media/radio/si470x/radio-si470x-i2c.c if (i2c_transfer(radio->client->adapter, msgs, 1) != 1) msgs 112 drivers/media/radio/si470x/radio-si470x-i2c.c struct i2c_msg msgs[1] = { msgs 123 drivers/media/radio/si470x/radio-si470x-i2c.c if (i2c_transfer(radio->client->adapter, msgs, 1) != 1) msgs 142 drivers/media/radio/si470x/radio-si470x-i2c.c struct i2c_msg msgs[1] = { msgs 151 drivers/media/radio/si470x/radio-si470x-i2c.c if (i2c_transfer(radio->client->adapter, msgs, 1) != 1) msgs 364 drivers/media/radio/si4713/radio-usb-si4713.c struct i2c_msg *msgs, int num) msgs 371 drivers/media/radio/si4713/radio-usb-si4713.c if (msgs[i].flags & I2C_M_RD) msgs 372 drivers/media/radio/si4713/radio-usb-si4713.c retval = si4713_i2c_read(radio, msgs[i].buf, msgs[i].len); msgs 374 drivers/media/radio/si4713/radio-usb-si4713.c retval = si4713_i2c_write(radio, msgs[i].buf, msgs[i].len); msgs 77 drivers/media/tuners/qm1d1c0042.c struct i2c_msg msgs[2] = { msgs 93 drivers/media/tuners/qm1d1c0042.c ret = i2c_transfer(state->i2c->adapter, msgs, ARRAY_SIZE(msgs)); msgs 94 drivers/media/tuners/qm1d1c0042.c if (ret >= 0 && ret < ARRAY_SIZE(msgs)) msgs 96 drivers/media/tuners/qm1d1c0042.c return (ret == ARRAY_SIZE(msgs)) ? 0 : ret; msgs 283 drivers/media/usb/au0828/au0828-i2c.c struct i2c_msg *msgs, int num) msgs 291 drivers/media/usb/au0828/au0828-i2c.c __func__, num, msgs[i].addr, msgs[i].len); msgs 292 drivers/media/usb/au0828/au0828-i2c.c if (msgs[i].flags & I2C_M_RD) { msgs 294 drivers/media/usb/au0828/au0828-i2c.c retval = i2c_readbytes(i2c_adap, &msgs[i], 0); msgs 295 drivers/media/usb/au0828/au0828-i2c.c } else if (i + 1 < num && (msgs[i + 1].flags & I2C_M_RD) && msgs 296 drivers/media/usb/au0828/au0828-i2c.c msgs[i].addr == msgs[i + 1].addr) { msgs 298 drivers/media/usb/au0828/au0828-i2c.c retval = i2c_sendbytes(i2c_adap, &msgs[i], msgs 299 drivers/media/usb/au0828/au0828-i2c.c msgs[i + 1].len); msgs 303 drivers/media/usb/au0828/au0828-i2c.c retval = i2c_readbytes(i2c_adap, &msgs[i], 1); msgs 306 drivers/media/usb/au0828/au0828-i2c.c retval = i2c_sendbytes(i2c_adap, &msgs[i], 0); msgs 361 drivers/media/usb/cx231xx/cx231xx-i2c.c struct i2c_msg msgs[], int num) msgs 370 drivers/media/usb/cx231xx/cx231xx-i2c.c addr = msgs[i].addr; msgs 373 drivers/media/usb/cx231xx/cx231xx-i2c.c (msgs[i].flags & I2C_M_RD) ? "read" : "write", msgs 374 drivers/media/usb/cx231xx/cx231xx-i2c.c i == num - 1 ? "stop" : "nonstop", addr, msgs[i].len); msgs 375 drivers/media/usb/cx231xx/cx231xx-i2c.c if (!msgs[i].len) { msgs 377 drivers/media/usb/cx231xx/cx231xx-i2c.c rc = cx231xx_i2c_check_for_device(i2c_adap, &msgs[i]); msgs 384 drivers/media/usb/cx231xx/cx231xx-i2c.c } else if (msgs[i].flags & I2C_M_RD) { msgs 386 drivers/media/usb/cx231xx/cx231xx-i2c.c rc = cx231xx_i2c_recv_bytes(i2c_adap, &msgs[i]); msgs 388 drivers/media/usb/cx231xx/cx231xx-i2c.c for (byte = 0; byte < msgs[i].len; byte++) msgs 389 drivers/media/usb/cx231xx/cx231xx-i2c.c printk(KERN_CONT " %02x", msgs[i].buf[byte]); msgs 391 drivers/media/usb/cx231xx/cx231xx-i2c.c } else if (i + 1 < num && (msgs[i + 1].flags & I2C_M_RD) && msgs 392 drivers/media/usb/cx231xx/cx231xx-i2c.c msgs[i].addr == msgs[i + 1].addr msgs 393 drivers/media/usb/cx231xx/cx231xx-i2c.c && (msgs[i].len <= 2) && (bus->nr < 3)) { msgs 396 drivers/media/usb/cx231xx/cx231xx-i2c.c for (byte = 0; byte < msgs[i].len; byte++) msgs 397 drivers/media/usb/cx231xx/cx231xx-i2c.c printk(KERN_CONT " %02x", msgs[i].buf[byte]); msgs 402 drivers/media/usb/cx231xx/cx231xx-i2c.c (msgs[i+1].flags & I2C_M_RD) ? "read" : "write", msgs 403 drivers/media/usb/cx231xx/cx231xx-i2c.c i+1 == num - 1 ? "stop" : "nonstop", addr, msgs[i+1].len); msgs 405 drivers/media/usb/cx231xx/cx231xx-i2c.c &msgs[i], msgs 406 drivers/media/usb/cx231xx/cx231xx-i2c.c &msgs[i + 1]); msgs 408 drivers/media/usb/cx231xx/cx231xx-i2c.c for (byte = 0; byte < msgs[i+1].len; byte++) msgs 409 drivers/media/usb/cx231xx/cx231xx-i2c.c printk(KERN_CONT " %02x", msgs[i+1].buf[byte]); msgs 415 drivers/media/usb/cx231xx/cx231xx-i2c.c for (byte = 0; byte < msgs[i].len; byte++) msgs 416 drivers/media/usb/cx231xx/cx231xx-i2c.c printk(KERN_CONT " %02x", msgs[i].buf[byte]); msgs 418 drivers/media/usb/cx231xx/cx231xx-i2c.c rc = cx231xx_i2c_send_bytes(i2c_adap, &msgs[i]); msgs 742 drivers/media/usb/dvb-usb-v2/az6007.c static int az6007_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], msgs 758 drivers/media/usb/dvb-usb-v2/az6007.c addr = msgs[i].addr << 1; msgs 760 drivers/media/usb/dvb-usb-v2/az6007.c && (msgs[i].len == 1) msgs 761 drivers/media/usb/dvb-usb-v2/az6007.c && ((msgs[i].flags & I2C_M_RD) != I2C_M_RD) msgs 762 drivers/media/usb/dvb-usb-v2/az6007.c && (msgs[i + 1].flags & I2C_M_RD) msgs 763 drivers/media/usb/dvb-usb-v2/az6007.c && (msgs[i].addr == msgs[i + 1].addr)) { msgs 771 drivers/media/usb/dvb-usb-v2/az6007.c addr, msgs[i].len, msgs[i + 1].len); msgs 773 drivers/media/usb/dvb-usb-v2/az6007.c index = msgs[i].buf[0]; msgs 775 drivers/media/usb/dvb-usb-v2/az6007.c length = 6 + msgs[i + 1].len; msgs 776 drivers/media/usb/dvb-usb-v2/az6007.c len = msgs[i + 1].len; msgs 781 drivers/media/usb/dvb-usb-v2/az6007.c msgs[i + 1].buf[j] = st->data[j + 5]; msgs 785 drivers/media/usb/dvb-usb-v2/az6007.c } else if (!(msgs[i].flags & I2C_M_RD)) { msgs 789 drivers/media/usb/dvb-usb-v2/az6007.c addr, msgs[i].len); msgs 791 drivers/media/usb/dvb-usb-v2/az6007.c index = msgs[i].buf[0]; msgs 793 drivers/media/usb/dvb-usb-v2/az6007.c length = msgs[i].len - 1; msgs 794 drivers/media/usb/dvb-usb-v2/az6007.c len = msgs[i].len - 1; msgs 796 drivers/media/usb/dvb-usb-v2/az6007.c st->data[j] = msgs[i].buf[j + 1]; msgs 803 drivers/media/usb/dvb-usb-v2/az6007.c addr, msgs[i].len); msgs 805 drivers/media/usb/dvb-usb-v2/az6007.c index = msgs[i].buf[0]; msgs 807 drivers/media/usb/dvb-usb-v2/az6007.c length = msgs[i].len + 6; msgs 808 drivers/media/usb/dvb-usb-v2/az6007.c len = msgs[i].len; msgs 812 drivers/media/usb/dvb-usb-v2/az6007.c msgs[i].buf[j] = st->data[j + 5]; msgs 531 drivers/media/usb/em28xx/em28xx-i2c.c struct i2c_msg msgs[], int num) msgs 563 drivers/media/usb/em28xx/em28xx-i2c.c addr = msgs[i].addr << 1; msgs 564 drivers/media/usb/em28xx/em28xx-i2c.c if (!msgs[i].len) { msgs 573 drivers/media/usb/em28xx/em28xx-i2c.c } else if (msgs[i].flags & I2C_M_RD) { msgs 575 drivers/media/usb/em28xx/em28xx-i2c.c rc = i2c_recv_bytes(i2c_bus, msgs[i]); msgs 578 drivers/media/usb/em28xx/em28xx-i2c.c rc = i2c_send_bytes(i2c_bus, msgs[i], i == num - 1); msgs 585 drivers/media/usb/em28xx/em28xx-i2c.c (msgs[i].flags & I2C_M_RD) ? "read" : "write", msgs 587 drivers/media/usb/em28xx/em28xx-i2c.c addr, msgs[i].len, msgs 588 drivers/media/usb/em28xx/em28xx-i2c.c msgs[i].len, msgs[i].buf); msgs 596 drivers/media/usb/em28xx/em28xx-i2c.c (msgs[i].flags & I2C_M_RD) ? "read" : "write", msgs 598 drivers/media/usb/em28xx/em28xx-i2c.c addr, msgs[i].len, msgs 146 drivers/media/usb/go7007/go7007-i2c.c struct i2c_msg msgs[], int num) msgs 154 drivers/media/usb/go7007/go7007-i2c.c if (msgs[i].len == 2) { msgs 155 drivers/media/usb/go7007/go7007-i2c.c if (i + 1 == num || msgs[i].addr != msgs[i + 1].addr || msgs 156 drivers/media/usb/go7007/go7007-i2c.c (msgs[i].flags & I2C_M_RD) || msgs 157 drivers/media/usb/go7007/go7007-i2c.c !(msgs[i + 1].flags & I2C_M_RD) || msgs 158 drivers/media/usb/go7007/go7007-i2c.c msgs[i + 1].len != 1) msgs 160 drivers/media/usb/go7007/go7007-i2c.c if (go7007_i2c_xfer(go, msgs[i].addr, 1, msgs 161 drivers/media/usb/go7007/go7007-i2c.c (msgs[i].buf[0] << 8) | msgs[i].buf[1], msgs 162 drivers/media/usb/go7007/go7007-i2c.c 0x01, &msgs[i + 1].buf[0]) < 0) msgs 165 drivers/media/usb/go7007/go7007-i2c.c } else if (msgs[i].len == 3) { msgs 166 drivers/media/usb/go7007/go7007-i2c.c if (msgs[i].flags & I2C_M_RD) msgs 168 drivers/media/usb/go7007/go7007-i2c.c if (msgs[i].len != 3) msgs 170 drivers/media/usb/go7007/go7007-i2c.c if (go7007_i2c_xfer(go, msgs[i].addr, 0, msgs 171 drivers/media/usb/go7007/go7007-i2c.c (msgs[i].buf[0] << 8) | msgs[i].buf[1], msgs 172 drivers/media/usb/go7007/go7007-i2c.c 0x01, &msgs[i].buf[2]) < 0) msgs 950 drivers/media/usb/go7007/go7007-usb.c struct i2c_msg msgs[], int num) msgs 967 drivers/media/usb/go7007/go7007-usb.c if (i + 1 < num && msgs[i].addr == msgs[i + 1].addr && msgs 968 drivers/media/usb/go7007/go7007-usb.c !(msgs[i].flags & I2C_M_RD) && msgs 969 drivers/media/usb/go7007/go7007-usb.c (msgs[i + 1].flags & I2C_M_RD)) { msgs 972 drivers/media/usb/go7007/go7007-usb.c msgs[i].len, msgs[i + 1].len, msgs[i].addr); msgs 975 drivers/media/usb/go7007/go7007-usb.c buf[1] = msgs[i].len + 1; msgs 976 drivers/media/usb/go7007/go7007-usb.c buf[2] = msgs[i].addr << 1; msgs 977 drivers/media/usb/go7007/go7007-usb.c memcpy(&buf[3], msgs[i].buf, msgs[i].len); msgs 978 drivers/media/usb/go7007/go7007-usb.c buf_len = msgs[i].len + 3; msgs 979 drivers/media/usb/go7007/go7007-usb.c buf[buf_len++] = msgs[++i].len; msgs 980 drivers/media/usb/go7007/go7007-usb.c } else if (msgs[i].flags & I2C_M_RD) { msgs 983 drivers/media/usb/go7007/go7007-usb.c msgs[i].len, msgs[i].addr); msgs 987 drivers/media/usb/go7007/go7007-usb.c buf[2] = msgs[i].addr << 1; msgs 988 drivers/media/usb/go7007/go7007-usb.c buf[3] = msgs[i].len; msgs 993 drivers/media/usb/go7007/go7007-usb.c msgs[i].len, msgs[i].addr); msgs 996 drivers/media/usb/go7007/go7007-usb.c buf[1] = msgs[i].len + 1; msgs 997 drivers/media/usb/go7007/go7007-usb.c buf[2] = msgs[i].addr << 1; msgs 998 drivers/media/usb/go7007/go7007-usb.c memcpy(&buf[3], msgs[i].buf, msgs[i].len); msgs 999 drivers/media/usb/go7007/go7007-usb.c buf_len = msgs[i].len + 3; msgs 1005 drivers/media/usb/go7007/go7007-usb.c if (msgs[i].flags & I2C_M_RD) { msgs 1006 drivers/media/usb/go7007/go7007-usb.c memset(buf, 0, msgs[i].len + 1); msgs 1008 drivers/media/usb/go7007/go7007-usb.c msgs[i].len + 1, 1) < 0) msgs 1010 drivers/media/usb/go7007/go7007-usb.c memcpy(msgs[i].buf, buf + 1, msgs[i].len); msgs 110 drivers/media/usb/hdpvr/hdpvr-i2c.c static int hdpvr_transfer(struct i2c_adapter *i2c_adapter, struct i2c_msg *msgs, msgs 118 drivers/media/usb/hdpvr/hdpvr-i2c.c addr = msgs[0].addr << 1; msgs 121 drivers/media/usb/hdpvr/hdpvr-i2c.c if (msgs[0].flags & I2C_M_RD) msgs 123 drivers/media/usb/hdpvr/hdpvr-i2c.c msgs[0].buf, msgs[0].len); msgs 125 drivers/media/usb/hdpvr/hdpvr-i2c.c retval = hdpvr_i2c_write(dev, 1, addr, msgs[0].buf, msgs 126 drivers/media/usb/hdpvr/hdpvr-i2c.c msgs[0].len); msgs 128 drivers/media/usb/hdpvr/hdpvr-i2c.c if (msgs[0].addr != msgs[1].addr) { msgs 134 drivers/media/usb/hdpvr/hdpvr-i2c.c if ((msgs[0].flags & I2C_M_RD) || !(msgs[1].flags & I2C_M_RD)) { msgs 136 drivers/media/usb/hdpvr/hdpvr-i2c.c msgs[0].flags & I2C_M_RD, msgs 137 drivers/media/usb/hdpvr/hdpvr-i2c.c msgs[1].flags & I2C_M_RD); msgs 146 drivers/media/usb/hdpvr/hdpvr-i2c.c retval = hdpvr_i2c_read(dev, 1, addr, msgs[0].buf, msgs[0].len, msgs 147 drivers/media/usb/hdpvr/hdpvr-i2c.c msgs[1].buf, msgs[1].len); msgs 363 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c struct i2c_msg msgs[], msgs 374 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (msgs[0].addr < PVR2_I2C_FUNC_CNT) { msgs 375 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c funcp = hdw->i2c_func[msgs[0].addr]; msgs 383 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (msgs[0].flags & I2C_M_RD) { msgs 386 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (!msgs[0].len) { msgs 388 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (funcp(hdw,msgs[0].addr,NULL,0,NULL,0)) { msgs 398 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c tcnt = msgs[0].len; msgs 405 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (funcp(hdw,msgs[0].addr,NULL,0, msgs 406 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c msgs[0].buf+offs,bcnt)) { msgs 418 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (funcp(hdw,msgs[0].addr, msgs 419 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c msgs[0].buf,msgs[0].len,NULL,0)) { msgs 425 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (msgs[0].addr != msgs[1].addr) { msgs 430 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if ((!((msgs[0].flags & I2C_M_RD))) && msgs 431 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c (msgs[1].flags & I2C_M_RD)) { msgs 437 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c tcnt = msgs[1].len; msgs 438 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c wcnt = msgs[0].len; msgs 445 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (funcp(hdw,msgs[0].addr, msgs 446 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c msgs[0].buf,wcnt, msgs 447 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c msgs[1].buf+offs,bcnt)) { msgs 459 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c (msgs[0].flags & I2C_M_RD), msgs 460 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c (msgs[1].flags & I2C_M_RD)); msgs 470 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c cnt = msgs[idx].len; msgs 473 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c msgs[idx].addr, msgs 475 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c (msgs[idx].flags & I2C_M_RD ? msgs 477 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if ((ret > 0) || !(msgs[idx].flags & I2C_M_RD)) { msgs 482 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c pr_cont("%02x", msgs[idx].buf[offs]); msgs 152 drivers/media/usb/stk1160/stk1160-i2c.c struct i2c_msg msgs[], int num) msgs 158 drivers/media/usb/stk1160/stk1160-i2c.c addr = msgs[i].addr << 1; msgs 161 drivers/media/usb/stk1160/stk1160-i2c.c if (!msgs[i].len) { msgs 169 drivers/media/usb/stk1160/stk1160-i2c.c } else if (msgs[i].flags & I2C_M_RD) { msgs 175 drivers/media/usb/stk1160/stk1160-i2c.c } else if (i + 1 < num && msgs[i].len <= 2 && msgs 176 drivers/media/usb/stk1160/stk1160-i2c.c (msgs[i + 1].flags & I2C_M_RD) && msgs 177 drivers/media/usb/stk1160/stk1160-i2c.c msgs[i].addr == msgs[i + 1].addr) { msgs 179 drivers/media/usb/stk1160/stk1160-i2c.c if (msgs[i].len != 1 || msgs[i + 1].len != 1) { msgs 185 drivers/media/usb/stk1160/stk1160-i2c.c dprintk_i2c(" subaddr=%x", msgs[i].buf[0]); msgs 187 drivers/media/usb/stk1160/stk1160-i2c.c rc = stk1160_i2c_read_reg(dev, addr, msgs[i].buf[0], msgs 188 drivers/media/usb/stk1160/stk1160-i2c.c msgs[i + 1].buf); msgs 190 drivers/media/usb/stk1160/stk1160-i2c.c dprintk_i2c(" read=%x", *msgs[i + 1].buf); msgs 196 drivers/media/usb/stk1160/stk1160-i2c.c if (msgs[i].len != 2) { msgs 203 drivers/media/usb/stk1160/stk1160-i2c.c msgs[i].buf[0], msgs[i].buf[1]); msgs 205 drivers/media/usb/stk1160/stk1160-i2c.c rc = stk1160_i2c_write_reg(dev, addr, msgs[i].buf[0], msgs 206 drivers/media/usb/stk1160/stk1160-i2c.c msgs[i].buf[1]); msgs 143 drivers/media/usb/tm6000/tm6000-i2c.c struct i2c_msg msgs[], int num) msgs 149 drivers/media/usb/tm6000/tm6000-i2c.c addr = (msgs[i].addr << 1) & 0xff; msgs 151 drivers/media/usb/tm6000/tm6000-i2c.c (msgs[i].flags & I2C_M_RD) ? "read" : "write", msgs 152 drivers/media/usb/tm6000/tm6000-i2c.c i == num - 1 ? "stop" : "nonstop", addr, msgs[i].len); msgs 153 drivers/media/usb/tm6000/tm6000-i2c.c if (msgs[i].flags & I2C_M_RD) { msgs 163 drivers/media/usb/tm6000/tm6000-i2c.c } else if (i + 1 < num && msgs[i].len <= 2 && msgs 164 drivers/media/usb/tm6000/tm6000-i2c.c (msgs[i + 1].flags & I2C_M_RD) && msgs 165 drivers/media/usb/tm6000/tm6000-i2c.c msgs[i].addr == msgs[i + 1].addr) { msgs 168 drivers/media/usb/tm6000/tm6000-i2c.c for (byte = 0; byte < msgs[i].len; byte++) msgs 169 drivers/media/usb/tm6000/tm6000-i2c.c printk(KERN_CONT " %02x", msgs[i].buf[byte]); msgs 172 drivers/media/usb/tm6000/tm6000-i2c.c msgs[i + 1].len); msgs 174 drivers/media/usb/tm6000/tm6000-i2c.c if (msgs[i].len == 2) { msgs 176 drivers/media/usb/tm6000/tm6000-i2c.c msgs[i].buf[0] << 8 | msgs[i].buf[1], msgs 177 drivers/media/usb/tm6000/tm6000-i2c.c msgs[i + 1].buf, msgs[i + 1].len); msgs 179 drivers/media/usb/tm6000/tm6000-i2c.c rc = tm6000_i2c_recv_regs(dev, addr, msgs[i].buf[0], msgs 180 drivers/media/usb/tm6000/tm6000-i2c.c msgs[i + 1].buf, msgs[i + 1].len); msgs 190 drivers/media/usb/tm6000/tm6000-i2c.c for (byte = 0; byte < msgs[i].len; byte++) msgs 191 drivers/media/usb/tm6000/tm6000-i2c.c printk(KERN_CONT " %02x", msgs[i].buf[byte]); msgs 195 drivers/media/usb/tm6000/tm6000-i2c.c for (byte = 0; byte < msgs[i].len; byte++) msgs 196 drivers/media/usb/tm6000/tm6000-i2c.c printk(KERN_CONT " %02x", msgs[i].buf[byte]); msgs 197 drivers/media/usb/tm6000/tm6000-i2c.c rc = tm6000_i2c_send_regs(dev, addr, msgs[i].buf[0], msgs 198 drivers/media/usb/tm6000/tm6000-i2c.c msgs[i].buf + 1, msgs[i].len - 1); msgs 118 drivers/media/usb/usbvision/usbvision-i2c.c usbvision_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) msgs 128 drivers/media/usb/usbvision/usbvision-i2c.c pmsg = &msgs[i]; msgs 156 drivers/misc/ibmvmc.c queue->size * sizeof(*queue->msgs), DMA_BIDIRECTIONAL); msgs 157 drivers/misc/ibmvmc.c free_page((unsigned long)queue->msgs); msgs 182 drivers/misc/ibmvmc.c memset(queue->msgs, 0x00, PAGE_SIZE); msgs 211 drivers/misc/ibmvmc.c crq = &queue->msgs[queue->cur]; msgs 2120 drivers/misc/ibmvmc.c queue->msgs = (struct ibmvmc_crq_msg *)get_zeroed_page(GFP_KERNEL); msgs 2122 drivers/misc/ibmvmc.c if (!queue->msgs) msgs 2125 drivers/misc/ibmvmc.c queue->size = PAGE_SIZE / sizeof(*queue->msgs); msgs 2127 drivers/misc/ibmvmc.c queue->msg_token = dma_map_single(adapter->dev, queue->msgs, msgs 2128 drivers/misc/ibmvmc.c queue->size * sizeof(*queue->msgs), msgs 2180 drivers/misc/ibmvmc.c queue->size * sizeof(*queue->msgs), DMA_BIDIRECTIONAL); msgs 2182 drivers/misc/ibmvmc.c free_page((unsigned long)queue->msgs); msgs 153 drivers/misc/ibmvmc.h struct ibmvmc_crq_msg *msgs; msgs 334 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->msgs |= CXGB4_DCB_FW_PGID; msgs 343 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->msgs |= CXGB4_DCB_FW_PGRATE; msgs 344 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->msgs & CXGB4_DCB_FW_PGID) msgs 351 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->msgs |= CXGB4_DCB_FW_PRIORATE; msgs 357 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->msgs |= CXGB4_DCB_FW_PFC; msgs 394 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->msgs |= CXGB4_DCB_FW_APP_ID; msgs 734 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.msgs & CXGB4_DCB_FW_PGRATE) msgs 933 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb_subtype && !(dcb->msgs & dcb_subtype)) msgs 950 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!(dcb->msgs & (CXGB4_DCB_FW_PGID | CXGB4_DCB_FW_PGRATE))) msgs 1008 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!(dcb->msgs & CXGB4_DCB_FW_PFC)) msgs 98 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.h enum cxgb4_dcb_fw_msgs msgs; /* DCB Firmware messages received */ msgs 2414 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs) { msgs 2423 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs & CXGB4_DCB_FW_PGID) { msgs 2434 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs & CXGB4_DCB_FW_PGRATE) { msgs 2455 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs & CXGB4_DCB_FW_PRIORATE) { msgs 2464 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs & CXGB4_DCB_FW_PFC) { msgs 2481 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs & CXGB4_DCB_FW_APP_ID) { msgs 2685 drivers/net/ethernet/ibm/ibmvnic.c memset(scrq->msgs, 0, 4 * PAGE_SIZE); msgs 2741 drivers/net/ethernet/ibm/ibmvnic.c free_pages((unsigned long)scrq->msgs, 2); msgs 2756 drivers/net/ethernet/ibm/ibmvnic.c scrq->msgs = msgs 2758 drivers/net/ethernet/ibm/ibmvnic.c if (!scrq->msgs) { msgs 2763 drivers/net/ethernet/ibm/ibmvnic.c scrq->msg_token = dma_map_single(dev, scrq->msgs, 4 * PAGE_SIZE, msgs 2784 drivers/net/ethernet/ibm/ibmvnic.c scrq->size = 4 * PAGE_SIZE / sizeof(*scrq->msgs); msgs 2797 drivers/net/ethernet/ibm/ibmvnic.c free_pages((unsigned long)scrq->msgs, 2); msgs 3292 drivers/net/ethernet/ibm/ibmvnic.c union sub_crq *entry = &scrq->msgs[scrq->cur]; msgs 3307 drivers/net/ethernet/ibm/ibmvnic.c entry = &scrq->msgs[scrq->cur]; msgs 3324 drivers/net/ethernet/ibm/ibmvnic.c crq = &queue->msgs[queue->cur]; msgs 4698 drivers/net/ethernet/ibm/ibmvnic.c memset(crq->msgs, 0, PAGE_SIZE); msgs 4721 drivers/net/ethernet/ibm/ibmvnic.c if (!crq->msgs) msgs 4733 drivers/net/ethernet/ibm/ibmvnic.c free_page((unsigned long)crq->msgs); msgs 4734 drivers/net/ethernet/ibm/ibmvnic.c crq->msgs = NULL; msgs 4745 drivers/net/ethernet/ibm/ibmvnic.c if (crq->msgs) msgs 4748 drivers/net/ethernet/ibm/ibmvnic.c crq->msgs = (union ibmvnic_crq *)get_zeroed_page(GFP_KERNEL); msgs 4751 drivers/net/ethernet/ibm/ibmvnic.c if (!crq->msgs) msgs 4754 drivers/net/ethernet/ibm/ibmvnic.c crq->size = PAGE_SIZE / sizeof(*crq->msgs); msgs 4755 drivers/net/ethernet/ibm/ibmvnic.c crq->msg_token = dma_map_single(dev, crq->msgs, PAGE_SIZE, msgs 4809 drivers/net/ethernet/ibm/ibmvnic.c free_page((unsigned long)crq->msgs); msgs 4810 drivers/net/ethernet/ibm/ibmvnic.c crq->msgs = NULL; msgs 845 drivers/net/ethernet/ibm/ibmvnic.h union ibmvnic_crq *msgs; msgs 865 drivers/net/ethernet/ibm/ibmvnic.h union sub_crq *msgs; msgs 237 drivers/net/ethernet/marvell/octeontx2/af/mbox.c u16 msgs; msgs 242 drivers/net/ethernet/marvell/octeontx2/af/mbox.c for (msgs = 0; msgs < mdev->msgs_acked; msgs++) { msgs 12893 drivers/net/ethernet/qlogic/qed/qed_hsi.h #define MFW_DRV_MSG_MAX_DWORDS(msgs) (((msgs - 1) >> 2) + 1) msgs 35 drivers/net/phy/mdio-i2c.c struct i2c_msg msgs[2]; msgs 43 drivers/net/phy/mdio-i2c.c msgs[0].addr = bus_addr; msgs 44 drivers/net/phy/mdio-i2c.c msgs[0].flags = 0; msgs 45 drivers/net/phy/mdio-i2c.c msgs[0].len = 1; msgs 46 drivers/net/phy/mdio-i2c.c msgs[0].buf = &dev_addr; msgs 47 drivers/net/phy/mdio-i2c.c msgs[1].addr = bus_addr; msgs 48 drivers/net/phy/mdio-i2c.c msgs[1].flags = I2C_M_RD; msgs 49 drivers/net/phy/mdio-i2c.c msgs[1].len = sizeof(data); msgs 50 drivers/net/phy/mdio-i2c.c msgs[1].buf = data; msgs 52 drivers/net/phy/mdio-i2c.c ret = i2c_transfer(i2c, msgs, ARRAY_SIZE(msgs)); msgs 53 drivers/net/phy/mdio-i2c.c if (ret != ARRAY_SIZE(msgs)) msgs 285 drivers/net/phy/sfp.c struct i2c_msg msgs[2]; msgs 290 drivers/net/phy/sfp.c msgs[0].addr = bus_addr; msgs 291 drivers/net/phy/sfp.c msgs[0].flags = 0; msgs 292 drivers/net/phy/sfp.c msgs[0].len = 1; msgs 293 drivers/net/phy/sfp.c msgs[0].buf = &dev_addr; msgs 294 drivers/net/phy/sfp.c msgs[1].addr = bus_addr; msgs 295 drivers/net/phy/sfp.c msgs[1].flags = I2C_M_RD; msgs 296 drivers/net/phy/sfp.c msgs[1].len = len; msgs 297 drivers/net/phy/sfp.c msgs[1].buf = buf; msgs 304 drivers/net/phy/sfp.c msgs[1].len = this_len; msgs 306 drivers/net/phy/sfp.c ret = i2c_transfer(sfp->i2c, msgs, ARRAY_SIZE(msgs)); msgs 310 drivers/net/phy/sfp.c if (ret != ARRAY_SIZE(msgs)) msgs 313 drivers/net/phy/sfp.c msgs[1].buf += this_len; msgs 318 drivers/net/phy/sfp.c return msgs[1].buf - (u8 *)buf; msgs 324 drivers/net/phy/sfp.c struct i2c_msg msgs[1]; msgs 328 drivers/net/phy/sfp.c msgs[0].addr = bus_addr; msgs 329 drivers/net/phy/sfp.c msgs[0].flags = 0; msgs 330 drivers/net/phy/sfp.c msgs[0].len = 1 + len; msgs 331 drivers/net/phy/sfp.c msgs[0].buf = kmalloc(1 + len, GFP_KERNEL); msgs 332 drivers/net/phy/sfp.c if (!msgs[0].buf) msgs 335 drivers/net/phy/sfp.c msgs[0].buf[0] = dev_addr; msgs 336 drivers/net/phy/sfp.c memcpy(&msgs[0].buf[1], buf, len); msgs 338 drivers/net/phy/sfp.c ret = i2c_transfer(sfp->i2c, msgs, ARRAY_SIZE(msgs)); msgs 340 drivers/net/phy/sfp.c kfree(msgs[0].buf); msgs 345 drivers/net/phy/sfp.c return ret == ARRAY_SIZE(msgs) ? len : 0; msgs 1762 drivers/ntb/hw/idt/ntb_hw_idt.c srcpart = idt_nt_read(ndev, ntdata_tbl.msgs[midx].src); msgs 1771 drivers/ntb/hw/idt/ntb_hw_idt.c return idt_nt_read(ndev, ntdata_tbl.msgs[midx].in); msgs 1808 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, ntdata_tbl.msgs[midx].out, msg); msgs 1189 drivers/ntb/hw/idt/ntb_hw_idt.h struct idt_ntb_msg msgs[IDT_MSG_CNT]; msgs 1821 drivers/of/unittest.c struct i2c_msg *msgs, int num) msgs 100 drivers/power/supply/ltc2941-battery-gauge.c struct i2c_msg msgs[2] = { }; msgs 103 drivers/power/supply/ltc2941-battery-gauge.c msgs[0].addr = client->addr; msgs 104 drivers/power/supply/ltc2941-battery-gauge.c msgs[0].len = 1; msgs 105 drivers/power/supply/ltc2941-battery-gauge.c msgs[0].buf = ®_start; msgs 107 drivers/power/supply/ltc2941-battery-gauge.c msgs[1].addr = client->addr; msgs 108 drivers/power/supply/ltc2941-battery-gauge.c msgs[1].len = num_regs; msgs 109 drivers/power/supply/ltc2941-battery-gauge.c msgs[1].buf = buf; msgs 110 drivers/power/supply/ltc2941-battery-gauge.c msgs[1].flags = I2C_M_RD; msgs 112 drivers/power/supply/ltc2941-battery-gauge.c ret = i2c_transfer(client->adapter, &msgs[0], 2); msgs 55 drivers/rtc/rtc-bq32k.c struct i2c_msg msgs[] = { msgs 69 drivers/rtc/rtc-bq32k.c if (i2c_transfer(client->adapter, msgs, 2) == 2) msgs 33 drivers/rtc/rtc-ds1672.c struct i2c_msg msgs[] = { msgs 48 drivers/rtc/rtc-ds1672.c if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { msgs 59 drivers/rtc/rtc-ds1672.c msgs[1].len = 4; msgs 62 drivers/rtc/rtc-ds1672.c if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { msgs 49 drivers/rtc/rtc-em3027.c struct i2c_msg msgs[] = { msgs 64 drivers/rtc/rtc-em3027.c if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { msgs 53 drivers/rtc/rtc-isl12022.c struct i2c_msg msgs[] = { msgs 71 drivers/rtc/rtc-isl12022.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 72 drivers/rtc/rtc-isl12022.c if (ret != ARRAY_SIZE(msgs)) { msgs 49 drivers/rtc/rtc-isl12026.c struct i2c_msg msgs[] = { msgs 63 drivers/rtc/rtc-isl12026.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 64 drivers/rtc/rtc-isl12026.c if (ret != ARRAY_SIZE(msgs)) { msgs 211 drivers/rtc/rtc-isl12026.c struct i2c_msg msgs[] = { msgs 226 drivers/rtc/rtc-isl12026.c msgs[1].len = 1; msgs 227 drivers/rtc/rtc-isl12026.c msgs[1].buf = &sr; msgs 229 drivers/rtc/rtc-isl12026.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 230 drivers/rtc/rtc-isl12026.c if (ret != ARRAY_SIZE(msgs)) { msgs 244 drivers/rtc/rtc-isl12026.c msgs[1].len = sizeof(ccr); msgs 245 drivers/rtc/rtc-isl12026.c msgs[1].buf = ccr; msgs 247 drivers/rtc/rtc-isl12026.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 248 drivers/rtc/rtc-isl12026.c if (ret != ARRAY_SIZE(msgs)) { msgs 284 drivers/rtc/rtc-isl12026.c struct i2c_msg msgs[] = { msgs 308 drivers/rtc/rtc-isl12026.c msgs[1].len = bytes; msgs 309 drivers/rtc/rtc-isl12026.c ret = i2c_transfer(priv->nvm_client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 313 drivers/rtc/rtc-isl12026.c if (ret != ARRAY_SIZE(msgs)) { msgs 330 drivers/rtc/rtc-isl12026.c struct i2c_msg msgs[] = { msgs 358 drivers/rtc/rtc-isl12026.c msgs[0].len = chunk_size + 2; msgs 360 drivers/rtc/rtc-isl12026.c msgs, ARRAY_SIZE(msgs)); msgs 361 drivers/rtc/rtc-isl12026.c if (ret != ARRAY_SIZE(msgs)) { msgs 57 drivers/rtc/rtc-max6900.c struct i2c_msg msgs[4] = { msgs 85 drivers/rtc/rtc-max6900.c rc = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 86 drivers/rtc/rtc-max6900.c if (rc != ARRAY_SIZE(msgs)) { msgs 44 drivers/rtc/rtc-pcf8523.c struct i2c_msg msgs[2]; msgs 48 drivers/rtc/rtc-pcf8523.c msgs[0].addr = client->addr; msgs 49 drivers/rtc/rtc-pcf8523.c msgs[0].flags = 0; msgs 50 drivers/rtc/rtc-pcf8523.c msgs[0].len = sizeof(reg); msgs 51 drivers/rtc/rtc-pcf8523.c msgs[0].buf = ® msgs 53 drivers/rtc/rtc-pcf8523.c msgs[1].addr = client->addr; msgs 54 drivers/rtc/rtc-pcf8523.c msgs[1].flags = I2C_M_RD; msgs 55 drivers/rtc/rtc-pcf8523.c msgs[1].len = sizeof(value); msgs 56 drivers/rtc/rtc-pcf8523.c msgs[1].buf = &value; msgs 58 drivers/rtc/rtc-pcf8523.c err = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 187 drivers/rtc/rtc-pcf8523.c struct i2c_msg msgs[2]; msgs 198 drivers/rtc/rtc-pcf8523.c msgs[0].addr = client->addr; msgs 199 drivers/rtc/rtc-pcf8523.c msgs[0].flags = 0; msgs 200 drivers/rtc/rtc-pcf8523.c msgs[0].len = 1; msgs 201 drivers/rtc/rtc-pcf8523.c msgs[0].buf = &start; msgs 203 drivers/rtc/rtc-pcf8523.c msgs[1].addr = client->addr; msgs 204 drivers/rtc/rtc-pcf8523.c msgs[1].flags = I2C_M_RD; msgs 205 drivers/rtc/rtc-pcf8523.c msgs[1].len = sizeof(regs); msgs 206 drivers/rtc/rtc-pcf8523.c msgs[1].buf = regs; msgs 208 drivers/rtc/rtc-pcf8523.c err = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 90 drivers/rtc/rtc-pcf8563.c struct i2c_msg msgs[] = { msgs 104 drivers/rtc/rtc-pcf8563.c if ((i2c_transfer(client->adapter, msgs, 2)) != 2) { msgs 52 drivers/rtc/rtc-pcf8583.c struct i2c_msg msgs[2] = { msgs 69 drivers/rtc/rtc-pcf8583.c ret = i2c_transfer(client->adapter, msgs, 2); msgs 135 drivers/rtc/rtc-pcf8583.c struct i2c_msg msgs[2] = { msgs 154 drivers/rtc/rtc-pcf8583.c return i2c_transfer(client->adapter, msgs, 2) == 2 ? 0 : -EIO; msgs 134 drivers/rtc/rtc-rs5c372.c struct i2c_msg msgs[] = { msgs 164 drivers/rtc/rtc-rs5c372.c if ((i2c_transfer(client->adapter, msgs, 1)) != 1) { msgs 95 drivers/rtc/rtc-x1205.c struct i2c_msg msgs[] = { msgs 110 drivers/rtc/rtc-x1205.c if (i2c_transfer(client->adapter, &msgs[0], 2) != 2) { msgs 149 drivers/rtc/rtc-x1205.c struct i2c_msg msgs[] = { msgs 164 drivers/rtc/rtc-x1205.c if (i2c_transfer(client->adapter, &msgs[0], 2) != 2) { msgs 298 drivers/rtc/rtc-x1205.c struct i2c_msg msgs[] = { msgs 313 drivers/rtc/rtc-x1205.c if (i2c_transfer(client->adapter, &msgs[0], 2) != 2) { msgs 339 drivers/rtc/rtc-x1205.c struct i2c_msg msgs[] = { msgs 354 drivers/rtc/rtc-x1205.c if (i2c_transfer(client->adapter, &msgs[0], 2) != 2) { msgs 416 drivers/rtc/rtc-x1205.c struct i2c_msg msgs[2] = { msgs 430 drivers/rtc/rtc-x1205.c xfer = i2c_transfer(client->adapter, msgs, 2); msgs 454 drivers/rtc/rtc-x1205.c struct i2c_msg msgs[2] = { msgs 468 drivers/rtc/rtc-x1205.c xfer = i2c_transfer(client->adapter, msgs, 2); msgs 499 drivers/rtc/rtc-x1205.c struct i2c_msg msgs[] = { msgs 515 drivers/rtc/rtc-x1205.c if (i2c_transfer(client->adapter, &msgs[0], 2) != 2) { msgs 1324 drivers/scsi/arm/acornscsi.c unsigned int message_length = msgqueue_msglength(&host->scsi.msgs); msgs 1349 drivers/scsi/arm/acornscsi.c msg = msgqueue_getmsg(&host->scsi.msgs, 0); msgs 1376 drivers/scsi/arm/acornscsi.c while ((msg = msgqueue_getmsg(&host->scsi.msgs, msgnr++)) != NULL) { msgs 1562 drivers/scsi/arm/acornscsi.c if (msgqueue_msglength(&host->scsi.msgs)) msgs 1636 drivers/scsi/arm/acornscsi.c msgqueue_addmsg(&host->scsi.msgs, 5, EXTENDED_MESSAGE, 3, msgs 1655 drivers/scsi/arm/acornscsi.c msgqueue_flush(&host->scsi.msgs); msgs 1656 drivers/scsi/arm/acornscsi.c msgqueue_addmsg(&host->scsi.msgs, 1, MESSAGE_REJECT); msgs 1666 drivers/scsi/arm/acornscsi.c msgqueue_flush(&host->scsi.msgs); msgs 1667 drivers/scsi/arm/acornscsi.c msgqueue_addmsg(&host->scsi.msgs, 1, MESSAGE_REJECT); msgs 1685 drivers/scsi/arm/acornscsi.c msgqueue_addmsg(&host->scsi.msgs, 1, BUS_DEVICE_RESET); msgs 1690 drivers/scsi/arm/acornscsi.c msgqueue_addmsg(&host->scsi.msgs, 1, msgs 1712 drivers/scsi/arm/acornscsi.c msgqueue_addmsg(&host->scsi.msgs, 2, tag_type, host->SCpnt->tag); msgs 1719 drivers/scsi/arm/acornscsi.c msgqueue_addmsg(&host->scsi.msgs, 5, msgs 1907 drivers/scsi/arm/acornscsi.c msgqueue_flush(&host->scsi.msgs); msgs 1910 drivers/scsi/arm/acornscsi.c msgqueue_addmsg(&host->scsi.msgs, 2, ABORT_TAG, tag); msgs 1913 drivers/scsi/arm/acornscsi.c msgqueue_addmsg(&host->scsi.msgs, 1, ABORT); msgs 1961 drivers/scsi/arm/acornscsi.c msgqueue_flush(&host->scsi.msgs); msgs 1975 drivers/scsi/arm/acornscsi.c msgqueue_flush(&host->scsi.msgs); msgs 1995 drivers/scsi/arm/acornscsi.c msgqueue_flush(&host->scsi.msgs); msgs 2934 drivers/scsi/arm/acornscsi.c msgqueue_initialise(&ashost->scsi.msgs); msgs 2947 drivers/scsi/arm/acornscsi.c msgqueue_free(&ashost->scsi.msgs); msgs 2975 drivers/scsi/arm/acornscsi.c msgqueue_free(&ashost->scsi.msgs); msgs 294 drivers/scsi/arm/acornscsi.h MsgQueue_t msgs; msgs 418 drivers/scsi/arm/fas216.c while ((msg = msgqueue_getmsg(&info->scsi.msgs, msgnr++)) != NULL) { msgs 560 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 561 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 5, msgs 603 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 604 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, MESSAGE_REJECT); msgs 891 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 984 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 1027 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 2, ABORT_TAG, tag); msgs 1030 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, ABORT); msgs 1046 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 1047 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, INITIATOR_ERROR); msgs 1157 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 1158 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, MESSAGE_REJECT); msgs 1274 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 1275 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, MSG_PARITY_ERROR); msgs 1314 drivers/scsi/arm/fas216.c unsigned int tot_msglen = msgqueue_msglength(&info->scsi.msgs); msgs 1324 drivers/scsi/arm/fas216.c while ((msg = msgqueue_getmsg(&info->scsi.msgs, msgnr++)) != NULL) { msgs 1480 drivers/scsi/arm/fas216.c if (msgqueue_msglength(&info->scsi.msgs) > 1) msgs 1508 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 1509 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, INITIATOR_ERROR); msgs 1518 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 1520 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, INITIATOR_ERROR); msgs 1598 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 1687 drivers/scsi/arm/fas216.c tot_msglen = msgqueue_msglength(&info->scsi.msgs); msgs 1696 drivers/scsi/arm/fas216.c while ((msg = msgqueue_getmsg(&info->scsi.msgs, msgnr++)) != NULL) { msgs 1716 drivers/scsi/arm/fas216.c while ((msg = msgqueue_getmsg(&info->scsi.msgs, msgnr++)) != NULL) { msgs 1736 drivers/scsi/arm/fas216.c struct message *msg = msgqueue_getmsg(&info->scsi.msgs, 0); msgs 1787 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 1788 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, IDENTIFY(disconnect_ok, SCpnt->device->lun)); msgs 1794 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 2, SIMPLE_QUEUE_TAG, SCpnt->tag); msgs 1803 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 5, msgs 1865 drivers/scsi/arm/fas216.c msgqueue_flush(&info->scsi.msgs); msgs 1866 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, BUS_DEVICE_RESET); msgs 1882 drivers/scsi/arm/fas216.c msg = msgqueue_getmsg(&info->scsi.msgs, 0); msgs 2863 drivers/scsi/arm/fas216.c msgqueue_initialise(&info->scsi.msgs); msgs 243 drivers/scsi/arm/fas216.h MsgQueue_t msgs; /* message queue for connected device */ msgs 582 drivers/scsi/ibmvscsi/ibmvfc.c memset(vhost->async_crq.msgs, 0, PAGE_SIZE); msgs 660 drivers/scsi/ibmvscsi/ibmvfc.c free_page((unsigned long)crq->msgs); msgs 714 drivers/scsi/ibmvscsi/ibmvfc.c memset(crq->msgs, 0, PAGE_SIZE); msgs 1179 drivers/scsi/ibmvscsi/ibmvfc.c login_info->async.len = cpu_to_be32(vhost->async_crq.size * sizeof(*vhost->async_crq.msgs)); msgs 3110 drivers/scsi/ibmvscsi/ibmvfc.c crq = &async_crq->msgs[async_crq->cur]; msgs 3133 drivers/scsi/ibmvscsi/ibmvfc.c crq = &queue->msgs[queue->cur]; msgs 4511 drivers/scsi/ibmvscsi/ibmvfc.c crq->msgs = (struct ibmvfc_crq *)get_zeroed_page(GFP_KERNEL); msgs 4513 drivers/scsi/ibmvscsi/ibmvfc.c if (!crq->msgs) msgs 4516 drivers/scsi/ibmvscsi/ibmvfc.c crq->size = PAGE_SIZE / sizeof(*crq->msgs); msgs 4517 drivers/scsi/ibmvscsi/ibmvfc.c crq->msg_token = dma_map_single(dev, crq->msgs, msgs 4563 drivers/scsi/ibmvscsi/ibmvfc.c free_page((unsigned long)crq->msgs); msgs 4587 drivers/scsi/ibmvscsi/ibmvfc.c async_q->size * sizeof(*async_q->msgs), DMA_BIDIRECTIONAL); msgs 4588 drivers/scsi/ibmvscsi/ibmvfc.c free_page((unsigned long)async_q->msgs); msgs 4605 drivers/scsi/ibmvscsi/ibmvfc.c async_q->msgs = (struct ibmvfc_async_crq *)get_zeroed_page(GFP_KERNEL); msgs 4606 drivers/scsi/ibmvscsi/ibmvfc.c if (!async_q->msgs) { msgs 4612 drivers/scsi/ibmvscsi/ibmvfc.c async_q->msg_token = dma_map_single(dev, async_q->msgs, msgs 4613 drivers/scsi/ibmvscsi/ibmvfc.c async_q->size * sizeof(*async_q->msgs), msgs 4676 drivers/scsi/ibmvscsi/ibmvfc.c async_q->size * sizeof(*async_q->msgs), DMA_BIDIRECTIONAL); msgs 4678 drivers/scsi/ibmvscsi/ibmvfc.c free_page((unsigned long)async_q->msgs); msgs 551 drivers/scsi/ibmvscsi/ibmvfc.h struct ibmvfc_crq *msgs; msgs 576 drivers/scsi/ibmvscsi/ibmvfc.h struct ibmvfc_async_crq *msgs; msgs 155 drivers/scsi/ibmvscsi/ibmvscsi.c queue->size * sizeof(*queue->msgs), DMA_BIDIRECTIONAL); msgs 156 drivers/scsi/ibmvscsi/ibmvscsi.c free_page((unsigned long)queue->msgs); msgs 172 drivers/scsi/ibmvscsi/ibmvscsi.c crq = &queue->msgs[queue->cur]; msgs 298 drivers/scsi/ibmvscsi/ibmvscsi.c memset(queue->msgs, 0x00, PAGE_SIZE); msgs 333 drivers/scsi/ibmvscsi/ibmvscsi.c queue->msgs = (struct viosrp_crq *)get_zeroed_page(GFP_KERNEL); msgs 335 drivers/scsi/ibmvscsi/ibmvscsi.c if (!queue->msgs) msgs 337 drivers/scsi/ibmvscsi/ibmvscsi.c queue->size = PAGE_SIZE / sizeof(*queue->msgs); msgs 339 drivers/scsi/ibmvscsi/ibmvscsi.c queue->msg_token = dma_map_single(hostdata->dev, queue->msgs, msgs 340 drivers/scsi/ibmvscsi/ibmvscsi.c queue->size * sizeof(*queue->msgs), msgs 399 drivers/scsi/ibmvscsi/ibmvscsi.c queue->size * sizeof(*queue->msgs), DMA_BIDIRECTIONAL); msgs 401 drivers/scsi/ibmvscsi/ibmvscsi.c free_page((unsigned long)queue->msgs); msgs 44 drivers/scsi/ibmvscsi/ibmvscsi.h struct viosrp_crq *msgs; msgs 79 drivers/staging/greybus/i2c.c struct i2c_msg *msgs, u32 msg_count) msgs 104 drivers/staging/greybus/i2c.c msg = msgs; msgs 125 drivers/staging/greybus/i2c.c msg = msgs; msgs 134 drivers/staging/greybus/i2c.c msg = msgs; msgs 146 drivers/staging/greybus/i2c.c static void gb_i2c_decode_response(struct i2c_msg *msgs, u32 msg_count, msgs 149 drivers/staging/greybus/i2c.c struct i2c_msg *msg = msgs; msgs 174 drivers/staging/greybus/i2c.c struct i2c_msg *msgs, u32 msg_count) msgs 181 drivers/staging/greybus/i2c.c operation = gb_i2c_operation_create(connection, msgs, msg_count); msgs 194 drivers/staging/greybus/i2c.c gb_i2c_decode_response(msgs, msg_count, response); msgs 208 drivers/staging/greybus/i2c.c static int gb_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 215 drivers/staging/greybus/i2c.c return gb_i2c_transfer_operation(gb_i2c_dev, msgs, msg_count); msgs 128 drivers/staging/media/soc_camera/imx074.c struct i2c_msg msgs[] = { msgs 142 drivers/staging/media/soc_camera/imx074.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 629 drivers/usb/storage/usb.c static const char *msgs[3] = { msgs 655 drivers/usb/storage/usb.c msgs[msg], msgs 206 drivers/usb/typec/ucsi/ucsi_ccg.c struct i2c_msg msgs[] = { msgs 228 drivers/usb/typec/ucsi/ucsi_ccg.c msgs[1].buf = &data[len - rem_len]; msgs 230 drivers/usb/typec/ucsi/ucsi_ccg.c msgs[1].len = rlen; msgs 232 drivers/usb/typec/ucsi/ucsi_ccg.c status = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 250 drivers/usb/typec/ucsi/ucsi_ccg.c struct i2c_msg msgs[] = { msgs 265 drivers/usb/typec/ucsi/ucsi_ccg.c msgs[0].len = len + sizeof(rab); msgs 266 drivers/usb/typec/ucsi/ucsi_ccg.c msgs[0].buf = buf; msgs 269 drivers/usb/typec/ucsi/ucsi_ccg.c status = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 26 drivers/video/fbdev/core/fb_ddc.c struct i2c_msg msgs[] = { msgs 46 drivers/video/fbdev/core/fb_ddc.c if (i2c_transfer(adapter, msgs, 2) == 2) msgs 141 drivers/video/fbdev/matrox/matroxfb_maven.c struct i2c_msg msgs[] = { msgs 157 drivers/video/fbdev/matrox/matroxfb_maven.c err = i2c_transfer(c->adapter, msgs, 2); msgs 103 drivers/video/fbdev/mb862xx/mb862xx-i2c.c static int mb862xx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 114 drivers/video/fbdev/mb862xx/mb862xx-i2c.c m = &msgs[i]; msgs 148 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct i2c_msg msgs[] = { msgs 162 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c r = i2c_transfer(adapter, msgs, 2); msgs 111 drivers/video/fbdev/via/via_i2c.c struct i2c_msg msgs[2]; msgs 116 drivers/video/fbdev/via/via_i2c.c msgs[0].flags = 0; msgs 117 drivers/video/fbdev/via/via_i2c.c msgs[1].flags = I2C_M_RD; msgs 118 drivers/video/fbdev/via/via_i2c.c msgs[0].addr = msgs[1].addr = slave_addr / 2; msgs 120 drivers/video/fbdev/via/via_i2c.c msgs[0].len = 1; msgs[1].len = 1; msgs 121 drivers/video/fbdev/via/via_i2c.c msgs[0].buf = mm1; msgs[1].buf = pdata; msgs 122 drivers/video/fbdev/via/via_i2c.c ret = i2c_transfer(&via_i2c_par[adap].adapter, msgs, 2); msgs 135 drivers/video/fbdev/via/via_i2c.c struct i2c_msg msgs; msgs 139 drivers/video/fbdev/via/via_i2c.c msgs.flags = 0; msgs 140 drivers/video/fbdev/via/via_i2c.c msgs.addr = slave_addr / 2; msgs 141 drivers/video/fbdev/via/via_i2c.c msgs.len = 2; msgs 142 drivers/video/fbdev/via/via_i2c.c msgs.buf = msg; msgs 143 drivers/video/fbdev/via/via_i2c.c ret = i2c_transfer(&via_i2c_par[adap].adapter, &msgs, 1); msgs 156 drivers/video/fbdev/via/via_i2c.c struct i2c_msg msgs[2]; msgs 160 drivers/video/fbdev/via/via_i2c.c msgs[0].flags = 0; msgs 161 drivers/video/fbdev/via/via_i2c.c msgs[1].flags = I2C_M_RD; msgs 162 drivers/video/fbdev/via/via_i2c.c msgs[0].addr = msgs[1].addr = slave_addr / 2; msgs 164 drivers/video/fbdev/via/via_i2c.c msgs[0].len = 1; msgs[1].len = buff_len; msgs 165 drivers/video/fbdev/via/via_i2c.c msgs[0].buf = mm1; msgs[1].buf = buff; msgs 166 drivers/video/fbdev/via/via_i2c.c ret = i2c_transfer(&via_i2c_par[adap].adapter, msgs, 2); msgs 347 drivers/w1/slaves/w1_ds28e17.c struct i2c_msg *msgs, int num) msgs 369 drivers/w1/slaves/w1_ds28e17.c && msgs[i].addr == msgs[i+1].addr msgs 370 drivers/w1/slaves/w1_ds28e17.c && !(msgs[i].flags & I2C_M_RD) msgs 371 drivers/w1/slaves/w1_ds28e17.c && (msgs[i+1].flags & I2C_M_RD) msgs 372 drivers/w1/slaves/w1_ds28e17.c && (msgs[i].len <= W1_F19_WRITE_DATA_LIMIT)) { msgs 377 drivers/w1/slaves/w1_ds28e17.c result = w1_f19_i2c_write_read(sl, msgs[i].addr, msgs 378 drivers/w1/slaves/w1_ds28e17.c msgs[i].buf, msgs[i].len, msgs 379 drivers/w1/slaves/w1_ds28e17.c msgs[i+1].buf, msgs[i+1].len); msgs 391 drivers/w1/slaves/w1_ds28e17.c if (msgs[i+1].flags & I2C_M_RECV_LEN) { msgs 392 drivers/w1/slaves/w1_ds28e17.c result = w1_f19_i2c_read(sl, msgs[i+1].addr, msgs 393 drivers/w1/slaves/w1_ds28e17.c &(msgs[i+1].buf[1]), msgs[i+1].buf[0]); msgs 402 drivers/w1/slaves/w1_ds28e17.c } else if (msgs[i].flags & I2C_M_RD) { msgs 404 drivers/w1/slaves/w1_ds28e17.c result = w1_f19_i2c_read(sl, msgs[i].addr, msgs 405 drivers/w1/slaves/w1_ds28e17.c msgs[i].buf, msgs[i].len); msgs 417 drivers/w1/slaves/w1_ds28e17.c if (msgs[i].flags & I2C_M_RECV_LEN) { msgs 419 drivers/w1/slaves/w1_ds28e17.c msgs[i].addr, msgs 420 drivers/w1/slaves/w1_ds28e17.c &(msgs[i].buf[1]), msgs 421 drivers/w1/slaves/w1_ds28e17.c msgs[i].buf[0]); msgs 434 drivers/w1/slaves/w1_ds28e17.c msgs[i].addr, msgs 435 drivers/w1/slaves/w1_ds28e17.c msgs[i].buf, msgs 436 drivers/w1/slaves/w1_ds28e17.c msgs[i].len, msgs 118 include/linux/i2c.h extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 121 include/linux/i2c.h extern int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 536 include/linux/i2c.h int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, msgs 539 include/linux/i2c.h struct i2c_msg *msgs, int num); msgs 42 include/linux/mailbox/brcm-message.h struct brcm_message *msgs; msgs 100 include/media/cec.h struct list_head msgs; /* queued messages */ msgs 18 include/net/strparser.h unsigned long long msgs; msgs 28 include/net/strparser.h unsigned long long msgs; msgs 100 include/net/strparser.h SAVE_PSOCK_STATS(msgs); msgs 121 include/net/strparser.h SAVE_PSOCK_STATS(msgs); msgs 66 include/uapi/linux/i2c-dev.h struct i2c_msg __user *msgs; /* pointers to i2c_msgs */ msgs 145 net/kcm/kcmproc.c psock->strp.stats.msgs, msgs 329 net/kcm/kcmproc.c strp_stats.msgs, msgs 99 net/kcm/kcmsock.c psock->strp.stats.msgs - psock->saved_rx_msgs; msgs 100 net/kcm/kcmsock.c psock->saved_rx_msgs = psock->strp.stats.msgs; msgs 306 net/strparser/strparser.c STRP_STATS_INCR(strp->stats.msgs); msgs 221 sound/soc/codecs/adau1701.c struct i2c_msg msgs[2]; msgs 230 sound/soc/codecs/adau1701.c msgs[0].addr = client->addr; msgs 231 sound/soc/codecs/adau1701.c msgs[0].len = sizeof(send_buf); msgs 232 sound/soc/codecs/adau1701.c msgs[0].buf = send_buf; msgs 233 sound/soc/codecs/adau1701.c msgs[0].flags = 0; msgs 235 sound/soc/codecs/adau1701.c msgs[1].addr = client->addr; msgs 236 sound/soc/codecs/adau1701.c msgs[1].len = size; msgs 237 sound/soc/codecs/adau1701.c msgs[1].buf = recv_buf; msgs 238 sound/soc/codecs/adau1701.c msgs[1].flags = I2C_M_RD; msgs 240 sound/soc/codecs/adau1701.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 243 sound/soc/codecs/adau1701.c else if (ret != ARRAY_SIZE(msgs)) msgs 538 sound/soc/codecs/cx2072x.c struct i2c_msg msgs[2]; msgs 548 sound/soc/codecs/cx2072x.c msgs[0].addr = client->addr; msgs 549 sound/soc/codecs/cx2072x.c msgs[0].len = sizeof(send_buf); msgs 550 sound/soc/codecs/cx2072x.c msgs[0].buf = send_buf; msgs 551 sound/soc/codecs/cx2072x.c msgs[0].flags = 0; msgs 553 sound/soc/codecs/cx2072x.c msgs[1].addr = client->addr; msgs 554 sound/soc/codecs/cx2072x.c msgs[1].len = size; msgs 555 sound/soc/codecs/cx2072x.c msgs[1].buf = (u8 *)&recv_buf; msgs 556 sound/soc/codecs/cx2072x.c msgs[1].flags = I2C_M_RD; msgs 558 sound/soc/codecs/cx2072x.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 559 sound/soc/codecs/cx2072x.c if (ret != ARRAY_SIZE(msgs)) { msgs 43 sound/soc/codecs/sigmadsp-i2c.c struct i2c_msg msgs[2]; msgs 49 sound/soc/codecs/sigmadsp-i2c.c msgs[0].addr = client->addr; msgs 50 sound/soc/codecs/sigmadsp-i2c.c msgs[0].len = sizeof(buf); msgs 51 sound/soc/codecs/sigmadsp-i2c.c msgs[0].buf = buf; msgs 52 sound/soc/codecs/sigmadsp-i2c.c msgs[0].flags = 0; msgs 54 sound/soc/codecs/sigmadsp-i2c.c msgs[1].addr = client->addr; msgs 55 sound/soc/codecs/sigmadsp-i2c.c msgs[1].len = len; msgs 56 sound/soc/codecs/sigmadsp-i2c.c msgs[1].buf = data; msgs 57 sound/soc/codecs/sigmadsp-i2c.c msgs[1].flags = I2C_M_RD; msgs 59 sound/soc/codecs/sigmadsp-i2c.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 62 sound/soc/codecs/sigmadsp-i2c.c else if (ret != ARRAY_SIZE(msgs)) msgs 198 sound/soc/codecs/tas5086.c struct i2c_msg msgs[2]; msgs 209 sound/soc/codecs/tas5086.c msgs[0].addr = client->addr; msgs 210 sound/soc/codecs/tas5086.c msgs[0].len = sizeof(send_buf); msgs 211 sound/soc/codecs/tas5086.c msgs[0].buf = &send_buf; msgs 212 sound/soc/codecs/tas5086.c msgs[0].flags = 0; msgs 214 sound/soc/codecs/tas5086.c msgs[1].addr = client->addr; msgs 215 sound/soc/codecs/tas5086.c msgs[1].len = size; msgs 216 sound/soc/codecs/tas5086.c msgs[1].buf = recv_buf; msgs 217 sound/soc/codecs/tas5086.c msgs[1].flags = I2C_M_RD; msgs 219 sound/soc/codecs/tas5086.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 222 sound/soc/codecs/tas5086.c else if (ret != ARRAY_SIZE(msgs)) msgs 108 sound/soc/codecs/tas571x.c struct i2c_msg msgs[2]; msgs 116 sound/soc/codecs/tas571x.c msgs[0].addr = client->addr; msgs 117 sound/soc/codecs/tas571x.c msgs[0].len = sizeof(send_buf); msgs 118 sound/soc/codecs/tas571x.c msgs[0].buf = &send_buf; msgs 119 sound/soc/codecs/tas571x.c msgs[0].flags = 0; msgs 121 sound/soc/codecs/tas571x.c msgs[1].addr = client->addr; msgs 122 sound/soc/codecs/tas571x.c msgs[1].len = size; msgs 123 sound/soc/codecs/tas571x.c msgs[1].buf = recv_buf; msgs 124 sound/soc/codecs/tas571x.c msgs[1].flags = I2C_M_RD; msgs 126 sound/soc/codecs/tas571x.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 129 sound/soc/codecs/tas571x.c else if (ret != ARRAY_SIZE(msgs)) msgs 182 sound/soc/codecs/tas571x.c struct i2c_msg msgs[2]; msgs 192 sound/soc/codecs/tas571x.c msgs[0].addr = client->addr; msgs 193 sound/soc/codecs/tas571x.c msgs[0].len = sizeof(send_buf); msgs 194 sound/soc/codecs/tas571x.c msgs[0].buf = &send_buf; msgs 195 sound/soc/codecs/tas571x.c msgs[0].flags = 0; msgs 197 sound/soc/codecs/tas571x.c msgs[1].addr = client->addr; msgs 198 sound/soc/codecs/tas571x.c msgs[1].len = recv_size; msgs 199 sound/soc/codecs/tas571x.c msgs[1].buf = recv_buf; msgs 200 sound/soc/codecs/tas571x.c msgs[1].flags = I2C_M_RD; msgs 202 sound/soc/codecs/tas571x.c ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); msgs 205 sound/soc/codecs/tas571x.c else if (ret != ARRAY_SIZE(msgs)) {