Lines Matching refs:index
874 size_t offset, int index)
880 size_t offset, int index)
882 return (void __iomem *)&stdev->mmio_part_cfg_all[index] + offset;
886 size_t offset, int index)
888 return (void __iomem *)&stdev->mmio_pff_csr[index] + offset;
898 size_t offset, int index);
938 int event_id, int index)
948 if (index == SWITCHTEC_IOCTL_EVENT_LOCAL_PART_IDX)
949 index = stdev->partition;
950 else if (index < 0 || index >= stdev->partition_count)
953 if (index < 0 || index >= stdev->pff_csr_count)
957 return event_regs[event_id].map_reg(stdev, off, index);
967 reg = event_hdr_addr(stdev, ctl->event_id, ctl->index);
1030 if (ctl.index == SWITCHTEC_IOCTL_EVENT_IDX_ALL) {
1041 for (ctl.index = 0; ctl.index < nr_idxs; ctl.index++) {