Lines Matching refs:i2c_op

394 			     struct xgbe_i2c_op *i2c_op)  in xgbe_phy_i2c_xfer()  argument
396 return pdata->i2c_if.i2c_xfer(pdata, i2c_op); in xgbe_phy_i2c_xfer()
403 struct xgbe_i2c_op i2c_op; in xgbe_phy_redrv_write() local
426 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_redrv_write()
427 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
428 i2c_op.len = sizeof(redrv_data); in xgbe_phy_redrv_write()
429 i2c_op.buf = redrv_data; in xgbe_phy_redrv_write()
430 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_redrv_write()
440 i2c_op.cmd = XGBE_I2C_CMD_READ; in xgbe_phy_redrv_write()
441 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
442 i2c_op.len = 1; in xgbe_phy_redrv_write()
443 i2c_op.buf = redrv_data; in xgbe_phy_redrv_write()
444 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_redrv_write()
464 struct xgbe_i2c_op i2c_op; in xgbe_phy_i2c_write() local
470 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_i2c_write()
471 i2c_op.target = target; in xgbe_phy_i2c_write()
472 i2c_op.len = val_len; in xgbe_phy_i2c_write()
473 i2c_op.buf = val; in xgbe_phy_i2c_write()
474 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_i2c_write()
485 struct xgbe_i2c_op i2c_op; in xgbe_phy_i2c_read() local
491 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_i2c_read()
492 i2c_op.target = target; in xgbe_phy_i2c_read()
493 i2c_op.len = reg_len; in xgbe_phy_i2c_read()
494 i2c_op.buf = reg; in xgbe_phy_i2c_read()
495 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_i2c_read()
506 i2c_op.cmd = XGBE_I2C_CMD_READ; in xgbe_phy_i2c_read()
507 i2c_op.target = target; in xgbe_phy_i2c_read()
508 i2c_op.len = val_len; in xgbe_phy_i2c_read()
509 i2c_op.buf = val; in xgbe_phy_i2c_read()
510 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_i2c_read()
520 struct xgbe_i2c_op i2c_op; in xgbe_phy_sfp_put_mux() local
528 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_sfp_put_mux()
529 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_put_mux()
530 i2c_op.len = sizeof(mux_channel); in xgbe_phy_sfp_put_mux()
531 i2c_op.buf = &mux_channel; in xgbe_phy_sfp_put_mux()
533 return xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_sfp_put_mux()
539 struct xgbe_i2c_op i2c_op; in xgbe_phy_sfp_get_mux() local
547 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_sfp_get_mux()
548 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_get_mux()
549 i2c_op.len = sizeof(mux_channel); in xgbe_phy_sfp_get_mux()
550 i2c_op.buf = &mux_channel; in xgbe_phy_sfp_get_mux()
552 return xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_sfp_get_mux()