Lines Matching refs:i2c_op
387 xgbe_phy_i2c_xfer(struct xgbe_prv_data *pdata, struct xgbe_i2c_op *i2c_op) in xgbe_phy_i2c_xfer() argument
389 return (pdata->i2c_if.i2c_xfer(pdata, i2c_op)); in xgbe_phy_i2c_xfer()
397 struct xgbe_i2c_op i2c_op; in xgbe_phy_redrv_write() local
420 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_redrv_write()
421 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
422 i2c_op.len = sizeof(redrv_data); in xgbe_phy_redrv_write()
423 i2c_op.buf = redrv_data; in xgbe_phy_redrv_write()
424 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_redrv_write()
434 i2c_op.cmd = XGBE_I2C_CMD_READ; in xgbe_phy_redrv_write()
435 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
436 i2c_op.len = 1; in xgbe_phy_redrv_write()
437 i2c_op.buf = redrv_data; in xgbe_phy_redrv_write()
438 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_redrv_write()
458 struct xgbe_i2c_op i2c_op; in xgbe_phy_i2c_write() local
464 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_i2c_write()
465 i2c_op.target = target; in xgbe_phy_i2c_write()
466 i2c_op.len = val_len; in xgbe_phy_i2c_write()
467 i2c_op.buf = val; in xgbe_phy_i2c_write()
468 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_i2c_write()
479 struct xgbe_i2c_op i2c_op; in xgbe_phy_i2c_read() local
487 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_i2c_read()
488 i2c_op.target = target; in xgbe_phy_i2c_read()
489 i2c_op.len = reg_len; in xgbe_phy_i2c_read()
490 i2c_op.buf = reg; in xgbe_phy_i2c_read()
491 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()
519 struct xgbe_i2c_op i2c_op; in xgbe_phy_sfp_put_mux() local
527 i2c_op.cmd = XGBE_I2C_CMD_WRITE; in xgbe_phy_sfp_put_mux()
528 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_put_mux()
529 i2c_op.len = sizeof(mux_channel); in xgbe_phy_sfp_put_mux()
530 i2c_op.buf = &mux_channel; in xgbe_phy_sfp_put_mux()
532 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()