Lines Matching refs:i2c_op
391 struct xgbe_i2c_op *i2c_op) in xgbe_phy_i2c_xfer() argument
393 return pdata->i2c_if.i2c_xfer(pdata, i2c_op); in xgbe_phy_i2c_xfer()
400 struct xgbe_i2c_op i2c_op; in xgbe_phy_redrv_write() local
423 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_redrv_write()
424 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
425 i2c_op.len = sizeof(redrv_data); in xgbe_phy_redrv_write()
426 i2c_op.buf = redrv_data; in xgbe_phy_redrv_write()
427 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_redrv_write()
437 i2c_op.cmd = XGBE_I2C_CMD_READ; in xgbe_phy_redrv_write()
438 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
439 i2c_op.len = 1; in xgbe_phy_redrv_write()
440 i2c_op.buf = redrv_data; in xgbe_phy_redrv_write()
441 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_redrv_write()
461 struct xgbe_i2c_op i2c_op; in xgbe_phy_i2c_write() local
467 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_i2c_write()
468 i2c_op.target = target; in xgbe_phy_i2c_write()
469 i2c_op.len = val_len; in xgbe_phy_i2c_write()
470 i2c_op.buf = val; in xgbe_phy_i2c_write()
471 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_i2c_write()
482 struct xgbe_i2c_op i2c_op; in xgbe_phy_i2c_read() local
488 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_i2c_read()
489 i2c_op.target = target; in xgbe_phy_i2c_read()
490 i2c_op.len = reg_len; in xgbe_phy_i2c_read()
491 i2c_op.buf = reg; in xgbe_phy_i2c_read()
492 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_i2c_read()
503 i2c_op.cmd = XGBE_I2C_CMD_READ; in xgbe_phy_i2c_read()
504 i2c_op.target = target; in xgbe_phy_i2c_read()
505 i2c_op.len = val_len; in xgbe_phy_i2c_read()
506 i2c_op.buf = val; in xgbe_phy_i2c_read()
507 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_i2c_read()
517 struct xgbe_i2c_op i2c_op; in xgbe_phy_sfp_put_mux() local
525 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_sfp_put_mux()
526 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_put_mux()
527 i2c_op.len = sizeof(mux_channel); in xgbe_phy_sfp_put_mux()
528 i2c_op.buf = &mux_channel; in xgbe_phy_sfp_put_mux()
530 return xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_sfp_put_mux()
536 struct xgbe_i2c_op i2c_op; in xgbe_phy_sfp_get_mux() local
544 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_sfp_get_mux()
545 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_get_mux()
546 i2c_op.len = sizeof(mux_channel); in xgbe_phy_sfp_get_mux()
547 i2c_op.buf = &mux_channel; in xgbe_phy_sfp_get_mux()
549 return xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_sfp_get_mux()