Lines Matching defs:offset
61 * offset 0, to prevent lossage from random cat or od. diag_state
209 /* qib_remap_ioaddr32 - remap an offset into chip address space to __iomem *
212 * @offs: the offset in chip-space
213 * @cntp: Pointer to max (byte) count for transfer starting at offset
231 * If cntp is non-NULL, returns how many bytes from offset can be accessed
232 * Returns 0 if the offset is not mapped.
234 static u32 __iomem *qib_remap_ioaddr32(struct qib_devdata *dd, u32 offset,
244 /* First, simplest case, offset is within the first map. */
246 if (offset < kreglen) {
247 map = krb32 + (offset / sizeof(u32));
248 cnt = kreglen - offset;
264 if (offset >= dd->uregbase && offset < ulim) {
265 map = krb32 + (offset - dd->uregbase) / sizeof(u32);
266 cnt = ulim - offset;
272 * Lastly, check for offset within Send Buffers.
305 if (offset >= snd_bottom && offset < snd_lim) {
306 offset -= snd_bottom;
307 map = (u32 __iomem *)dd->piobase + (offset / sizeof(u32));
308 cnt = snd_lim - offset;
313 if (offset >= (offs4k + tot4k) && offset < snd_lim) {
315 ((offset - (offs4k + tot4k)) / sizeof(u32));
316 cnt = snd_lim - offset;
330 * @regoffs: the offset from BAR0 (_NOT_ full pointer, anymore)
375 * @regoffs: the offset from BAR0 (_NOT_ full pointer, anymore)
422 * @regoffs: the offset from BAR0 (_NOT_ full pointer, anymore)
466 * @regoffs: the offset from BAR0 (_NOT_ full pointer, anymore)
794 u32 offset = *off;
796 ret = op->hook(dd, op, offset, &data64, 0, use_32);
869 u32 offset = *off;
879 ret = op->hook(dd, op, offset, &data64, ~0Ull,