Searched refs:pos (Results 1 - 16 of 16) sorted by relevance

/xnu-2422.115.4/EXTERNAL_HEADERS/architecture/i386/
H A Dreg_help.h49 #define BIT_WIDTH(pos) (1) /* mostly to record the position */
54 #define BITMASK(pos) MKMASK(BIT_WIDTH(pos), pos & 0x1f)
/xnu-2422.115.4/bsd/dev/
H A Dmemdev.c114 static char * nonspace(char *pos, char *end);
115 static char * getspace(char *pos, char *end);
116 static char * cvtnum(char *pos, char *end, uint64_t *num);
507 char *nonspace(char *pos, char *end) { /* Find next non-space in string */ argument
509 if(pos >= end) return end; /* Don't go past end */
510 if(pos[0] == 0) return end; /* If at null, make end */
513 if(pos[0] != ' ') return pos; /* Leave if we found one */
514 pos++; /* Stop */
515 if(pos >
519 getspace(char *pos, char *end) argument
529 cvtnum(char *pos, char *end, uint64_t *num) argument
[all...]
/xnu-2422.115.4/bsd/hfs/hfscommon/BTree/
H A DBTreeNodeOps.c264 void *pos; local
293 pos = (char *)node + btreePtr->nodeSize - 2; // find address of last offset
294 *(u_int16_t *)pos = sizeof (BTNodeDescriptor); // set offset to beginning of free space
879 void *pos;
882 pos = (u_int8_t *)node + btreePtr->nodeSize - (index << 1) - kOffsetSize;
884 return *(short *)pos;
908 u_int8_t * pos;
910 pos = (u_int8_t *)node + GetRecordOffset (btreePtr, node, index);
912 return pos;
937 u_int16_t *pos; local
962 void *pos; local
990 u_int8_t * pos; local
[all...]
H A DBTreeAllocate.c124 u_int16_t *mapPtr, *pos; local
147 pos = mapPtr;
154 if ( *pos++ != 0xFFFF ) // assume test fails, and increment pos
158 --pos; // whoa! backup
160 if (*pos != 0xFFFF) // hey, we got one!
168 freeWord = SWAP_BE16 (*pos);
180 nodeNumber += ((pos - mapPtr) << 4) + (15 - bitOffset); // (pos-mapPtr) = # of words!
193 *pos |
633 u_int16_t *mapPtr, *pos; local
[all...]
/xnu-2422.115.4/osfmk/kern/
H A Dipc_kobject.c221 mach_msg_id_t j, pos, nentry, range; local
233 for (pos = MIG_HASH(nentry) % MAX_MIG_ENTRIES, howmany = 1;
234 mig_buckets[pos].num;
235 pos++, pos = pos % MAX_MIG_ENTRIES, howmany++) {
236 if (mig_buckets[pos].num == nentry) {
244 mig_buckets[pos].num = nentry;
245 mig_buckets[pos].routine = mig_e[i]->routine[j].stub_routine;
247 mig_buckets[pos]
[all...]
H A Dtelemetry.c732 log_telemetry_output(vm_offset_t buf, uint32_t pos, uint32_t sz) argument
737 printf("Copying out %d bytes of telemetry at offset %d\n", sz, pos);
739 buf += pos;
/xnu-2422.115.4/bsd/kern/
H A Dsubr_sbuf.c246 sbuf_setpos(struct sbuf *s, int pos) argument
251 KASSERT(pos >= 0,
252 ("attempt to seek to a negative position (%d)", pos));
253 KASSERT(pos < s->s_size,
254 ("attempt to seek past end of sbuf (%d >= %d)", pos, s->s_size));
256 if (pos < 0 || pos > s->s_len)
258 s->s_len = pos;
H A Dkern_mman.c195 file_pos = (vm_object_offset_t)uap->pos;
305 uap->pos = file_pos;
H A Dposix_shm.c849 vm_object_offset_t file_pos = (vm_object_offset_t)uap->pos;
/xnu-2422.115.4/bsd/sys/
H A Dpipe.h115 vm_size_t pos; /* current position of transfer */ member in struct:pipemapping
/xnu-2422.115.4/bsd/vfs/
H A Dvfs_xattr.c3207 off_t pos; local
3225 for(pos=start+len-chunk; pos >= start; pos-=chunk) {
3226 ret = vn_rdwr(UIO_READ, xvp, buff, chunk, pos, UIO_SYSSPACE, IO_NODELOCKED|IO_NOAUTH, ucred, &iolen, p);
3229 pos, ret, chunk, ret);
3233 ret = vn_rdwr(UIO_WRITE, xvp, buff, chunk, pos + delta, UIO_SYSSPACE, IO_NODELOCKED|IO_NOAUTH, ucred, &iolen, p);
3236 pos+delta, ret, chunk, ret);
3240 if ((pos - (off_t)chunk) < start) {
3241 chunk = pos
3260 off_t pos; local
[all...]
H A Dvfs_journal.c1738 off_t pos=0;
1741 pos = i*phys_blksz;
1746 write_journal_data(jnl, &pos, jnl->header_buf, phys_blksz);
/xnu-2422.115.4/iokit/Kernel/
H A DIOPlatformExpert.cpp1300 unsigned short pos = 0; local
1310 while (pos < serialNumberSize && temp[pos] != '-') pos++;
1312 if (pos < serialNumberSize) { // there was a hyphen, so it's a CTO serial number
/xnu-2422.115.4/bsd/miscfs/devfs/
H A Ddevfs_vnops.c1291 int startpos,pos; local
1300 pos = 0;
1353 if(pos >= startpos) /* made it to the offset yet? */
1362 pos += reclen;
1368 uio->uio_offset = pos;
/xnu-2422.115.4/bsd/nfs/
H A Dnfs_vfsops.c5142 uint numExports, totlen, pos, numRecs, count; local
5298 pos = 0;
5299 error = copyout(&stat_desc, oldp + pos, sizeof(struct nfs_export_stat_desc));
5304 pos += sizeof(struct nfs_export_stat_desc);
5326 error = copyout(&statrec, oldp + pos, sizeof(statrec));
5332 pos += sizeof(statrec);
5361 pos = sizeof(struct nfs_user_stat_desc);
5373 error = copyout(&upath_rec, oldp + pos, sizeof(struct nfs_user_stat_path_rec));
5379 pos += sizeof(struct nfs_user_stat_path_rec);
5407 error = copyout(&ustat_rec, oldp + pos, sizeo
[all...]
/xnu-2422.115.4/bsd/dev/dtrace/
H A Ddtrace.c4092 int64_t pos = (int64_t)tupregs[2].dttk_value;
4134 if (pos < 0) {
4141 if (pos > len)
4143 if ((size_t)pos > len)
4145 pos = len;
4147 if (pos < 0)
4148 pos = 0;
4151 if (pos >= len) {
4153 if ((size_t)pos >= len) {
4161 addr = orig + pos;
[all...]

Completed in 103 milliseconds