Lines Matching refs:p
143 static uint32_t *rpc_add_credentials(uint32_t *p) in rpc_add_credentials() argument
155 *p++ = htonl(1); /* AUTH_UNIX */ in rpc_add_credentials()
156 *p++ = htonl(20); /* auth length */ in rpc_add_credentials()
157 *p++ = 0; /* stamp */ in rpc_add_credentials()
158 *p++ = 0; /* hostname string */ in rpc_add_credentials()
159 *p++ = 0; /* uid */ in rpc_add_credentials()
160 *p++ = 0; /* gid */ in rpc_add_credentials()
161 *p++ = 0; /* auxiliary gid list */ in rpc_add_credentials()
164 *p++ = 0; /* AUTH_NONE */ in rpc_add_credentials()
165 *p++ = 0; /* auth length */ in rpc_add_credentials()
167 return p; in rpc_add_credentials()
177 uint32_t *p; in rpc_req() local
199 p = (uint32_t *)&(rpc_pkt.u.call.data); in rpc_req()
202 memcpy((char *)p, (char *)data, datalen*sizeof(uint32_t)); in rpc_req()
204 pktlen = (char *)p + datalen * sizeof(uint32_t) - (char *)&rpc_pkt; in rpc_req()
242 uint32_t *p; in nfs_mount_req() local
248 p = &(data[0]); in nfs_mount_req()
249 p = rpc_add_credentials(p); in nfs_mount_req()
251 *p++ = htonl(pathlen); in nfs_mount_req()
253 *(p + pathlen / 4) = 0; in nfs_mount_req()
254 memcpy(p, path, pathlen); in nfs_mount_req()
255 p += (pathlen + 3) / 4; in nfs_mount_req()
257 len = (uint32_t *)p - (uint32_t *)&(data[0]); in nfs_mount_req()
268 uint32_t *p; in nfs_umountall_req() local
275 p = &(data[0]); in nfs_umountall_req()
276 p = rpc_add_credentials(p); in nfs_umountall_req()
278 len = (uint32_t *)p - (uint32_t *)&(data[0]); in nfs_umountall_req()
293 uint32_t *p; in nfs_readlink_req() local
296 p = &(data[0]); in nfs_readlink_req()
297 p = rpc_add_credentials(p); in nfs_readlink_req()
300 memcpy(p, filefh, NFS_FHSIZE); in nfs_readlink_req()
301 p += (NFS_FHSIZE / 4); in nfs_readlink_req()
303 *p++ = htonl(filefh3_length); in nfs_readlink_req()
304 memcpy(p, filefh, filefh3_length); in nfs_readlink_req()
305 p += (filefh3_length / 4); in nfs_readlink_req()
308 len = (uint32_t *)p - (uint32_t *)&(data[0]); in nfs_readlink_req()
319 uint32_t *p; in nfs_lookup_req() local
325 p = &(data[0]); in nfs_lookup_req()
326 p = rpc_add_credentials(p); in nfs_lookup_req()
329 memcpy(p, dirfh, NFS_FHSIZE); in nfs_lookup_req()
330 p += (NFS_FHSIZE / 4); in nfs_lookup_req()
331 *p++ = htonl(fnamelen); in nfs_lookup_req()
333 *(p + fnamelen / 4) = 0; in nfs_lookup_req()
334 memcpy(p, fname, fnamelen); in nfs_lookup_req()
335 p += (fnamelen + 3) / 4; in nfs_lookup_req()
337 len = (uint32_t *)p - (uint32_t *)&(data[0]); in nfs_lookup_req()
341 *p++ = htonl(NFS_FHSIZE); /* Dir handle length */ in nfs_lookup_req()
342 memcpy(p, dirfh, NFS_FHSIZE); in nfs_lookup_req()
343 p += (NFS_FHSIZE / 4); in nfs_lookup_req()
344 *p++ = htonl(fnamelen); in nfs_lookup_req()
346 *(p + fnamelen / 4) = 0; in nfs_lookup_req()
347 memcpy(p, fname, fnamelen); in nfs_lookup_req()
348 p += (fnamelen + 3) / 4; in nfs_lookup_req()
350 len = (uint32_t *)p - (uint32_t *)&(data[0]); in nfs_lookup_req()
362 uint32_t *p; in nfs_read_req() local
365 p = &(data[0]); in nfs_read_req()
366 p = rpc_add_credentials(p); in nfs_read_req()
369 memcpy(p, filefh, NFS_FHSIZE); in nfs_read_req()
370 p += (NFS_FHSIZE / 4); in nfs_read_req()
371 *p++ = htonl(offset); in nfs_read_req()
372 *p++ = htonl(readlen); in nfs_read_req()
373 *p++ = 0; in nfs_read_req()
375 *p++ = htonl(filefh3_length); in nfs_read_req()
376 memcpy(p, filefh, filefh3_length); in nfs_read_req()
377 p += (filefh3_length / 4); in nfs_read_req()
378 *p++ = htonl(0); /* offset is 64-bit long, so fill with 0 */ in nfs_read_req()
379 *p++ = htonl(offset); in nfs_read_req()
380 *p++ = htonl(readlen); in nfs_read_req()
381 *p++ = 0; in nfs_read_req()
384 len = (uint32_t *)p - (uint32_t *)&(data[0]); in nfs_read_req()