Lines Matching defs:offset

138 /* Bit offset into the GUID which carries HFI id information */
1114 u32 status; /* status CSR offset */
1115 u32 clear; /* clear CSR offset */
1116 u32 mask; /* mask CSR offset */
1207 * offset into dd or ppd to store the counter's value
1209 int offset;
1226 #define CNTR_ELEM(name, csr, offset, flags, accessor) \
1230 offset, \
1327 * @offset - the offset of the CSR within bar0
1330 * based on the indicated offset.
1334 u32 offset)
1336 if (offset >= dd->base2_start)
1337 return dd->kregbase2 + (offset - dd->base2_start);
1338 return dd->kregbase1 + offset;
1342 * read_csr - read CSR at the indicated offset
1344 * @offset - the offset of the CSR within bar0
1349 u64 read_csr(const struct hfi1_devdata *dd, u32 offset)
1352 return readq(hfi1_addr_from_offset(dd, offset));
1357 * write_csr - write CSR at the indicated offset
1359 * @offset - the offset of the CSR within bar0
1362 void write_csr(const struct hfi1_devdata *dd, u32 offset, u64 value)
1365 void __iomem *base = hfi1_addr_from_offset(dd, offset);
1368 if (WARN_ON(offset >= RCV_ARRAY && offset < dd->base2_start))
1375 * get_csr_addr - return te iomem address for offset
1377 * @offset - the offset of the CSR within bar0
1384 u32 offset)
1387 return hfi1_addr_from_offset(dd, offset);
5862 /* fls64() returns a 1-based offset, we want it zero based */
5916 * of 0 so the per-context offset is zero.
8200 * @source: logical IRQ source (offset from IS_RCVAVAIL_START)
8232 * @source: logical IRQ source (offset from IS_RCVURGENT_START)
8624 /* register is an index of LCB registers: (offset - base) / 8 */
8674 pr_warn("%s bad offset 0x%x\n", __func__, off);
8719 /* register is an index of LCB registers: (offset - base) / 8 */
12262 dd->cntrs[entry->offset + j] =
12276 dd->cntrs[entry->offset + j] =
12283 dd->cntrs[entry->offset] = val;
12329 ppd->cntrs[entry->offset + j] = val;
12336 ppd->cntrs[entry->offset] = val;
12470 sval = dd->scntrs + entry->offset;
12484 sval = dd->scntrs + entry->offset;
12498 sval = ppd->scntrs + entry->offset;
12518 sval = ppd->scntrs + entry->offset;
12665 dev_cntrs[i].offset = dd->ndevcntrs;
12677 dev_cntrs[i].offset = dd->ndevcntrs;
12694 dev_cntrs[i].offset = dd->ndevcntrs;
12789 port_cntrs[i].offset = dd->nportcntrs;
12806 port_cntrs[i].offset = dd->nportcntrs;
14257 u8 offset;
14321 (u64)rrd->offset << RCV_RSM_CFG_OFFSET_SHIFT |
14449 rrd.offset = rmt->used;
14482 u8 offset;
14503 * Map entries are accessed as offset + extracted value. Adjust
14504 * the added offset so this sequence can be placed anywhere in
14506 * There are only enough bits in offset for the table size, so
14507 * start with that to allow for a "negative" offset.
14509 offset = (u8)(NUM_MAP_ENTRIES + rmt->used - start);
14531 rrd.offset = offset;
14627 .offset = rmt_start,
14652 .offset = rmt_start,