Lines Matching refs:target
316 static int __i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr,
324 bus = target ? dd->asic_data->i2c_bus1 : dd->asic_data->i2c_bus0;
335 int i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset,
340 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
343 ret = __i2c_write(ppd, target, i2c_addr, offset, bp, len);
355 static int __i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr,
363 bus = target ? dd->asic_data->i2c_bus1 : dd->asic_data->i2c_bus0;
374 int i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset,
379 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
382 ret = __i2c_read(ppd, target, i2c_addr, offset, bp, len);
397 int qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
406 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
416 ret = __i2c_write(ppd, target, QSFP_DEV | QSFP_OFFSET_SIZE,
423 target, ret);
433 ret = __i2c_write(ppd, target, QSFP_DEV | QSFP_OFFSET_SIZE,
453 int one_qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
463 ret = qsfp_write(ppd, target, addr, bp, len);
477 int qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
486 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
495 ret = __i2c_write(ppd, target, QSFP_DEV | QSFP_OFFSET_SIZE,
502 target, ret);
512 ret = __i2c_read(ppd, target, QSFP_DEV | QSFP_OFFSET_SIZE,
530 int one_qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
540 ret = qsfp_read(ppd, target, addr, bp, len);
560 u32 target = ppd->dd->hfi1_id;
576 ret = qsfp_read(ppd, target, 0, cache, QSFP_PAGESIZE);
589 ret = qsfp_read(ppd, target, 384, cache + 256, 128);
594 ret = qsfp_read(ppd, target, 640, cache + 384, 128);
599 ret = qsfp_read(ppd, target, 896, cache + 512, 128);
606 ret = qsfp_read(ppd, target, 640, cache + 384, 128);
611 ret = qsfp_read(ppd, target, 896, cache + 512, 128);
618 ret = qsfp_read(ppd, target, 384, cache + 256, 128);
623 ret = qsfp_read(ppd, target, 896, cache + 512, 128);
630 ret = qsfp_read(ppd, target, 896, cache + 512, 128);