Lines Matching defs:ptr

198 	u32 *ptr;	/* Pointer to current host location */
352 buf->ptr = buf->start;
374 buf->start = buf->end = buf->ptr = NULL;
1137 r -= ((unsigned long) lvcc->tx.buf.ptr) -
1162 APRINTK((((unsigned long) lvcc->tx.buf.ptr) & 15) == 0,
1163 "vcc_tx_add_aal5_descriptor: bad ptr=%p\n", lvcc->tx.buf.ptr);
1164 lvcc->tx.buf.ptr += 4; /* Hope the values REALLY don't matter */
1165 pos = ((unsigned char *) lvcc->tx.buf.ptr) -
1169 "start,ptr,end=%p,%p,%p\n", pos, lvcc->vci,
1170 lvcc->tx.buf.start, lvcc->tx.buf.ptr, lvcc->tx.buf.end);
1174 "start,ptr,end=%p,%p,%p\n", pos, lvcc->vci,
1175 lvcc->tx.buf.start, lvcc->tx.buf.ptr, lvcc->tx.buf.end);
1176 lvcc->tx.buf.ptr[-1] =
1180 if (lvcc->tx.buf.ptr >= lvcc->tx.buf.end)
1181 lvcc->tx.buf.ptr = lvcc->tx.buf.start;
1188 APRINTK((((unsigned long) lvcc->tx.buf.ptr) & 15) == 8,
1189 "vcc_tx_add_aal5_trailer: bad ptr=%p\n", lvcc->tx.buf.ptr);
1190 lvcc->tx.buf.ptr += 2;
1191 lvcc->tx.buf.ptr[-2] = cpu_to_be32((uu << 24) | (cpi << 16) | len);
1192 if (lvcc->tx.buf.ptr >= lvcc->tx.buf.end)
1193 lvcc->tx.buf.ptr = lvcc->tx.buf.start;
1201 e = ((unsigned char *) lvcc->tx.buf.ptr) + n;
1205 memcpy(lvcc->tx.buf.ptr, src, n - m);
1210 lvcc->tx.buf.ptr = (u32 *) e;
1219 e = ((unsigned char *) lvcc->tx.buf.ptr) + n;
1223 memset(lvcc->tx.buf.ptr, 0, n - m);
1228 lvcc->tx.buf.ptr = (u32 *) e;
1235 int i, ptr = ((unsigned char *) lvcc->tx.buf.ptr) -
1237 APRINTK((ptr & ~0x0001FFF0) == 0,
1238 "lanai_endtx: bad ptr (%d), vci=%d, start,ptr,end=%p,%p,%p\n",
1239 ptr, lvcc->vci, lvcc->tx.buf.start, lvcc->tx.buf.ptr,
1269 reg_write(lanai, (ptr << 12) | lvcc->vci, Butt_Reg);
1362 /* unlike the _tx_ cousins, this doesn't update ptr */
1366 int m = ((const unsigned char *) lvcc->rx.buf.ptr) + n -
1370 memcpy(dest, lvcc->rx.buf.ptr, n - m);
1383 int n = ((unsigned long) end) - ((unsigned long) lvcc->rx.buf.ptr);
1418 lvcc->rx.buf.ptr = end;
1672 (((unsigned long) lvcc->rx.buf.ptr) -
1691 lvcc->rx.buf.ptr = &lvcc->rx.buf.start[SERVICE_GET_END(s) * 4];
1714 while (lanai->service.ptr != end) {
1716 le32_to_cpup(lanai->service.ptr++));
1717 if (lanai->service.ptr >= lanai->service.end)
1718 lanai->service.ptr = lanai->service.start;