Lines Matching refs:i2c_op
397 struct xgbe_i2c_op *i2c_op) in xgbe_phy_i2c_xfer() argument
399 return pdata->i2c_if.i2c_xfer(pdata, i2c_op); in xgbe_phy_i2c_xfer()
406 struct xgbe_i2c_op i2c_op; in xgbe_phy_redrv_write() local
429 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_redrv_write()
430 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
431 i2c_op.len = sizeof(redrv_data); in xgbe_phy_redrv_write()
432 i2c_op.buf = redrv_data; in xgbe_phy_redrv_write()
433 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_redrv_write()
443 i2c_op.cmd = XGBE_I2C_CMD_READ; in xgbe_phy_redrv_write()
444 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
445 i2c_op.len = 1; in xgbe_phy_redrv_write()
446 i2c_op.buf = redrv_data; in xgbe_phy_redrv_write()
447 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_redrv_write()
467 struct xgbe_i2c_op i2c_op; in xgbe_phy_i2c_write() local
473 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_i2c_write()
474 i2c_op.target = target; in xgbe_phy_i2c_write()
475 i2c_op.len = val_len; in xgbe_phy_i2c_write()
476 i2c_op.buf = val; in xgbe_phy_i2c_write()
477 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_i2c_write()
488 struct xgbe_i2c_op i2c_op; in xgbe_phy_i2c_read() local
494 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_i2c_read()
495 i2c_op.target = target; in xgbe_phy_i2c_read()
496 i2c_op.len = reg_len; in xgbe_phy_i2c_read()
497 i2c_op.buf = reg; in xgbe_phy_i2c_read()
498 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_i2c_read()
509 i2c_op.cmd = XGBE_I2C_CMD_READ; in xgbe_phy_i2c_read()
510 i2c_op.target = target; in xgbe_phy_i2c_read()
511 i2c_op.len = val_len; in xgbe_phy_i2c_read()
512 i2c_op.buf = val; in xgbe_phy_i2c_read()
513 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_i2c_read()
523 struct xgbe_i2c_op i2c_op; in xgbe_phy_sfp_put_mux() local
531 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_sfp_put_mux()
532 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_put_mux()
533 i2c_op.len = sizeof(mux_channel); in xgbe_phy_sfp_put_mux()
534 i2c_op.buf = &mux_channel; in xgbe_phy_sfp_put_mux()
536 return xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_sfp_put_mux()
542 struct xgbe_i2c_op i2c_op; in xgbe_phy_sfp_get_mux() local
550 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_sfp_get_mux()
551 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_get_mux()
552 i2c_op.len = sizeof(mux_channel); in xgbe_phy_sfp_get_mux()
553 i2c_op.buf = &mux_channel; in xgbe_phy_sfp_get_mux()
555 return xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_sfp_get_mux()