Lines Matching refs:target

274 static int __i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr,
282 bus = target ? dd->asic_data->i2c_bus1 : dd->asic_data->i2c_bus0;
293 int i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset,
298 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
301 ret = __i2c_write(ppd, target, i2c_addr, offset, bp, len);
313 static int __i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr,
321 bus = target ? dd->asic_data->i2c_bus1 : dd->asic_data->i2c_bus0;
332 int i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset,
337 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
340 ret = __i2c_read(ppd, target, i2c_addr, offset, bp, len);
355 int qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
364 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
374 ret = __i2c_write(ppd, target, QSFP_DEV | QSFP_OFFSET_SIZE,
381 target, ret);
391 ret = __i2c_write(ppd, target, QSFP_DEV | QSFP_OFFSET_SIZE,
411 int one_qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
421 ret = qsfp_write(ppd, target, addr, bp, len);
435 int qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
444 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
453 ret = __i2c_write(ppd, target, QSFP_DEV | QSFP_OFFSET_SIZE,
460 target, ret);
470 ret = __i2c_read(ppd, target, QSFP_DEV | QSFP_OFFSET_SIZE,
488 int one_qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
498 ret = qsfp_read(ppd, target, addr, bp, len);
518 u32 target = ppd->dd->hfi1_id;
534 ret = qsfp_read(ppd, target, 0, cache, QSFP_PAGESIZE);
547 ret = qsfp_read(ppd, target, 384, cache + 256, 128);
552 ret = qsfp_read(ppd, target, 640, cache + 384, 128);
557 ret = qsfp_read(ppd, target, 896, cache + 512, 128);
564 ret = qsfp_read(ppd, target, 640, cache + 384, 128);
569 ret = qsfp_read(ppd, target, 896, cache + 512, 128);
576 ret = qsfp_read(ppd, target, 384, cache + 256, 128);
581 ret = qsfp_read(ppd, target, 896, cache + 512, 128);
588 ret = qsfp_read(ppd, target, 896, cache + 512, 128);