Lines Matching defs:i2c_op
427 xgbe_phy_i2c_xfer(struct xgbe_prv_data *pdata, struct xgbe_i2c_op *i2c_op)
429 return (pdata->i2c_if.i2c_xfer(pdata, i2c_op));
437 struct xgbe_i2c_op i2c_op;
460 i2c_op.cmd = XGBE_I2C_CMD_WRITE;
461 i2c_op.target = phy_data->redrv_addr;
462 i2c_op.len = sizeof(redrv_data);
463 i2c_op.buf = redrv_data;
464 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op);
474 i2c_op.cmd = XGBE_I2C_CMD_READ;
475 i2c_op.target = phy_data->redrv_addr;
476 i2c_op.len = 1;
477 i2c_op.buf = redrv_data;
478 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op);
498 struct xgbe_i2c_op i2c_op;
504 i2c_op.cmd = XGBE_I2C_CMD_WRITE;
505 i2c_op.target = target;
506 i2c_op.len = val_len;
507 i2c_op.buf = val;
508 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op);
519 struct xgbe_i2c_op i2c_op;
527 i2c_op.cmd = XGBE_I2C_CMD_WRITE;
528 i2c_op.target = target;
529 i2c_op.len = reg_len;
530 i2c_op.buf = reg;
531 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op);
543 i2c_op.cmd = XGBE_I2C_CMD_READ;
544 i2c_op.target = target;
545 i2c_op.len = val_len;
546 i2c_op.buf = val;
547 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op);
559 struct xgbe_i2c_op i2c_op;
567 i2c_op.cmd = XGBE_I2C_CMD_WRITE;
568 i2c_op.target = phy_data->sfp_mux_address;
569 i2c_op.len = sizeof(mux_channel);
570 i2c_op.buf = &mux_channel;
572 return (xgbe_phy_i2c_xfer(pdata, &i2c_op));
579 struct xgbe_i2c_op i2c_op;
587 i2c_op.cmd = XGBE_I2C_CMD_WRITE;
588 i2c_op.target = phy_data->sfp_mux_address;
589 i2c_op.len = sizeof(mux_channel);
590 i2c_op.buf = &mux_channel;
592 return (xgbe_phy_i2c_xfer(pdata, &i2c_op));