Searched refs:dp (Results 1 - 25 of 50) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Ddir.h87 * null byte (dp->d_namlen+1), rounded up to a 4 byte boundary.
90 #define DIRSIZ(dp) \
91 ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
H A Ddomain.h121 extern void net_add_domain(struct domain *dp);
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Duipc_domain.c80 void init_domain(struct domain *dp) __attribute__((section("__TEXT, initcode")));
81 void concat_domain(struct domain *dp) __attribute__((section("__TEXT, initcode")));
117 init_domain(struct domain *dp) argument
121 if ((dp->dom_mtx = lck_mtx_alloc_init(domain_proto_mtx_grp, domain_proto_mtx_attr)) == NULL) {
122 printf("init_domain: can't init domain mtx for domain=%s\n", dp->dom_name);
126 if (dp->dom_init)
127 (*dp->dom_init)();
131 for (pr = dp->dom_protosw; pr; pr = pr->pr_next) {
134 dp->dom_name,
135 (int)(pr - dp
151 concat_domain(struct domain *dp) argument
159 net_add_domain(struct domain *dp) argument
174 net_del_domain(struct domain *dp) argument
207 net_add_proto(struct protosw *pp, struct domain *dp) argument
235 net_del_proto(int type, int protocol, struct domain *dp) argument
282 register struct domain *dp; local
347 struct domain *dp; local
362 register struct domain *dp; local
384 struct domain *dp; local
407 register struct domain *dp; local
431 register struct domain *dp; local
466 register struct domain *dp; local
509 struct domain *dp; local
526 register struct domain *dp; local
546 register struct domain *dp; local
[all...]
H A Duipc_proto.c110 struct domain *dp = &localdomain; local
113 net_add_proto(pr, dp);
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dppp_comp.h142 #define CCP_CODE(dp) ((dp)[0])
143 #define CCP_ID(dp) ((dp)[1])
144 #define CCP_LENGTH(dp) (((dp)[2] << 8) + (dp)[3])
147 #define CCP_OPT_CODE(dp) ((dp)[0])
148 #define CCP_OPT_LENGTH(dp) ((d
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/
H A Dufs_lookup.c140 register struct inode *dp; /* inode for directory being searched */ local
151 doff_t prevoff; /* prev entry dp->i_offset */
152 struct vnode *pdp; /* saved dp during symlink work */
177 dp = VTOI(vdp);
188 if ((dp->i_mode & IFMT) != IFDIR)
229 if (nameiop != LOOKUP || dp->i_diroff == 0 ||
230 dp->i_diroff > dp->i_size) {
232 dp->i_offset = 0;
235 dp
645 register struct inode *dp; local
673 struct inode *dp; local
815 register struct inode *dp; local
938 register struct direct *dp = (struct direct *)&dbuf; local
[all...]
H A Ddir.h96 * The macro DIRSIZ(fmt, dp) gives the amount of space required to represent
98 * entries which have dp->d_reclen > DIRSIZ(fmt, dp). All DIRBLKSIZ bytes
101 * dp->d_reclen. When entries are deleted from a directory, the
103 * block by increasing its dp->d_reclen. If the first entry of
104 * a directory block is free, then its dp->d_ino is set to 0.
106 * dp->d_ino set to 0.
146 * null byte (dp->d_namlen+1), rounded up to a 4 byte boundary.
149 #define DIRSIZ(oldfmt, dp) \
151 ((sizeof(struct direct) - (UFSMAXNAMLEN+1)) + (((dp)
[all...]
H A Dufs_vnops.c741 struct inode *ip, *xp, *dp; local
806 dp = VTOI(fdvp);
815 oldparent = dp->i_number;
824 dp = VTOI(tdvp);
853 if (oldparent != dp->i_number)
854 newparent = dp->i_number;
860 if ( (error = ufs_checkpath(ip, dp, vfs_context_ucred(tcnp->cn_context))) )
867 dp = VTOI(tdvp);
881 if (dp->i_dev != ip->i_dev)
889 if ((nlink_t)dp
1106 register struct inode *ip, *dp; local
1236 struct inode *ip, *dp; local
1386 struct dirent *dp, *edp; local
1466 struct dirent *dp, *edp; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/isofs/cd9660/
H A Dcd9660_lookup.c127 register struct iso_node *dp; /* inode for directory being searched */ local
135 struct vnode *pdp; /* saved dp during symlink work */
160 dp = VTOI(vdp);
161 imp = dp->i_mnt;
216 if (nameiop != LOOKUP || dp->i_diroff == 0 ||
217 dp->i_diroff > dp->i_size) {
219 dp->i_offset = 0;
222 dp->i_offset = dp
[all...]
H A Dcd9660_node.c140 register struct iso_dnode **dpp, *dp, *dq; local
143 for (dp = *dpp;; dp = dp->d_next) {
144 if (dp == NULL)
146 if (inum == dp->i_number && device == dp->i_dev)
147 return (dp);
152 MALLOC(dp, struct iso_dnode *, sizeof(struct iso_dnode), M_CACHE,
154 dp
169 struct iso_dnode **dpp, *dp, *dq; local
[all...]
H A Dcd9660_util.c325 struct iso_node *dp; local
337 dp = VTOI(vdp);
338 imp = dp->i_mnt;
344 while (diroffset < dp->i_size) {
380 if ((diroffset == 0) && (isonum_733(ep->size) > dp->i_size)) {
381 dp->i_size = isonum_733(ep->size);
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_lookup.c108 static void kdebug_lookup(struct vnode *dp, struct componentname *cnp);
154 struct vnode *dp; /* the directory we are searching */ local
286 dp = ndp->ni_rootdir;
288 dp = ndp->ni_dvp;
289 ndp->ni_usedvp = dp;
291 dp = vfs_context_cwd(ctx);
293 if (dp == NULLVP || (dp->v_lflag & VL_DEAD)) {
304 ndp->ni_startdir = dp;
382 dp
497 vnode_t dp; /* the directory we are searching */ local
1080 struct vnode *dp = NULL; /* the directory we are searching */ local
1235 kdebug_lookup(struct vnode *dp, struct componentname *cnp) argument
[all...]
H A Dvfs_cache.c832 cache_lookup_path(struct nameidata *ndp, struct componentname *cnp, vnode_t dp, argument
852 if ( dp->v_mount && (dp->v_mount->mnt_kern_flag & (MNTK_AUTH_OPAQUE | MNTK_AUTH_CACHE_TTL)) ) {
920 if ((dp->v_mount != NULL) &&
921 (dp->v_mount->mnt_flag & MNT_DOVOLFS) &&
922 (dp->v_mount->mnt_kern_flag & MNTK_NAMED_STREAMS) == 0) {
943 error = mac_vnode_check_lookup(ctx, dp, cnp);
950 if (ttl_enabled && ((tv.tv_sec - dp->v_cred_timestamp) > dp->v_mount->mnt_authcache_ttl))
956 if ((dp
[all...]
H A Dvfs_bio.c146 static buf_t incore_locked(vnode_t vp, daddr64_t blkno, struct bufhashhdr *dp);
180 #define binsheadfree(bp, dp, whichq) do { \
181 TAILQ_INSERT_HEAD(dp, bp, b_freelist); \
185 #define binstailfree(bp, dp, whichq) do { \
186 TAILQ_INSERT_TAIL(dp, bp, b_freelist); \
190 #define binsheadfree(bp, dp, whichq) do { \
191 TAILQ_INSERT_HEAD(dp, bp, b_freelist); \
194 #define binstailfree(bp, dp, whichq) do { \
195 TAILQ_INSERT_TAIL(dp, bp, b_freelist); \
211 #define bufinsvn(bp, dp) LIST_INSERT_HEA
244 binshash(buf_t bp, struct bufhashhdr *dp) argument
1328 struct bqueues *dp = NULL; local
1448 struct bqueues *dp; local
2174 struct bufhashhdr *dp; local
2191 incore_locked(vnode_t vp, daddr64_t blkno, struct bufhashhdr *dp) argument
2226 struct bufhashhdr *dp; local
2953 struct bufhashhdr *dp; local
3332 register struct bqueues *dp; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dnd6_nbr.c1009 struct dadq *dp; local
1011 for (dp = dadq.tqh_first; dp; dp = dp->dad_list.tqe_next) {
1012 if (dp->dad_ifa == ifa) {
1014 return dp;
1032 struct dadq *dp,
1036 callout_reset(&dp->dad_timer_ch, ticks,
1037 (void (*)(void *))nd6_dad_timer, (void *)dp
1031 nd6_dad_starttimer( struct dadq *dp, int ticks) argument
1041 nd6_dad_stoptimer( struct dadq *dp) argument
1058 struct dadq *dp; local
1147 struct dadq *dp; local
1173 struct dadq *dp; local
1304 struct dadq *dp; local
1338 nd6_dad_ns_output( struct dadq *dp, struct ifaddr *ifa) argument
1369 struct dadq *dp; local
1415 struct dadq *dp; local
[all...]
H A Desp_rijndael.c120 struct mbuf *d, *d0, *dp; local
166 d = d0 = dp = NULL;
203 dp = d;
224 if (dp)
225 dp->m_next = d;
280 struct mbuf *d, *d0, *dp; local
326 d = d0 = dp = NULL;
363 dp = d;
384 if (dp)
385 dp
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dip_encap.c339 * sp (src ptr) is always my side, and dp (dst ptr) is always remote side.
340 * length of mask (sm and dm) is assumed to be same as sp/dp.
344 encap_attach(af, proto, sp, sm, dp, dm, psw, arg)
348 const struct sockaddr *dp, *dm;
356 if (sp->sa_len > sizeof(ep->src) || dp->sa_len > sizeof(ep->dst)) {
360 if (sp->sa_len != dp->sa_len) {
364 if (af != sp->sa_family || af != dp->sa_family) {
379 if (ep->dst.ss_len != dp->sa_len ||
380 bcmp(&ep->dst, dp, dp
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/device/
H A Dsubrs.c406 char *dp; local
413 dp = digits;
415 *dp++ = '0' + num % 10;
418 while (dp != digits) {
419 *cp++ = *--dp;
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/synthfs/
H A Dsynthfs_util.c91 synthfs_newnode(mount_t mp, vnode_t dp, const char *name, unsigned long nodeid, argument
151 if (dp) {
152 result = synthfs_insertnode(sp, VTOS(dp));
208 int synthfs_new_directory(struct mount *mp, struct vnode *dp, const char *name, unsigned long nodeid, mode_t mode, struct proc *p, struct vnode **vpp) { argument
213 result = synthfs_newnode(mp, dp, name, nodeid, mode, p, VDIR, &vp);
220 if (dp) {
221 ++VTOS(dp)->s_linkcount; /* Account for the [fictitious] ".." link */
254 struct vnode *dp,
265 result = synthfs_newnode(mp, dp, name, nodeid, 0, p, VLNK, &vp);
252 synthfs_new_symlink( struct mount *mp, struct vnode *dp, const char *name, unsigned long nodeid, char *targetstring, struct proc *p, struct vnode **vpp) argument
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Ddb_trace.c196 unsigned int *dp = 0; local
207 dp = vp->valuep;
211 dp = vp->valuep;
221 dp = (unsigned int *) (((unsigned int)cpu_datap(cpu)->cpu_kdb_saved_state) +
227 if (dp == 0 && thr_act)
228 dp = db_lookup_i386_kreg(vp->name,
230 if (dp == 0)
231 dp = &null_reg;
236 dp = (unsigned int *)(&thr_act->continuation);
238 dp
[all...]
H A Duser_ldt.c97 struct real_descriptor *dp; local
231 for (i = 0, dp = (struct real_descriptor *) &new_ldt->ldt[start_sel - begin_sel];
233 i++, dp++)
235 switch (dp->access & ~ACC_A) {
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/fdesc/
H A Dfdesc_vnops.c591 struct dirent *dp = &d; local
619 bzero((caddr_t) dp, UIO_MX);
620 dp->d_fileno = dt->d_fileno;
621 dp->d_namlen = dt->d_namlen;
622 dp->d_type = DT_UNKNOWN;
623 dp->d_reclen = dt->d_reclen;
624 bcopy(dt->d_name, dp->d_name, dp->d_namlen+1);
625 error = uiomove((caddr_t) dp, UIO_MX, uio);
641 struct dirent *dp local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/
H A Ddis_tables.c1705 instable_t *dp; /* decode table being used */ local
1792 dp = (instable_t *)&dis_distable[opcode1][opcode2];
1794 switch (dp->it_adrmode) {
1804 x->d86_seg_prefix = (char *)dp->it_name;
1806 if (dp->it_invalid64 && cpu_mode == SIZE64)
1836 dp = (instable_t *)&dis_distable[opcode1][opcode2];
1872 dp = (instable_t *)&dis_opPause;
1879 if (dp->it_indirect == (instable_t *)dis_op0F) {
1891 dp = (instable_t *)&dis_op0F7123[opcode5][subcode];
1893 dp
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A Ddb_trace.c518 db_expr_t *dp = 0; local
530 if (IS_USER_TRAP((&ddb_regs))) dp = vp->valuep;
537 dp = vp->valuep;
546 dp = (db_expr_t)(((uint32_t)(PerProcTable[cpu].ppe_vaddr->db_saved_state)) +
553 if (dp == 0)
554 dp = &null_reg;
559 dp = (db_expr_t *)&thr_act->continuation;
561 dp = &null_reg;
565 if (dp == 0) {
571 dp
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_boot.c347 char *sp, *dp, *endp; local
360 dp = ndmntp->ndm_host;
361 endp = dp + MNAMELEN - 1;
362 dp += strlen(dp);
363 *dp++ = ':';
364 for (sp = ndmntp->ndm_path; *sp && dp < endp;)
365 *dp++ = *sp++;
366 *dp = '\0';

Completed in 300 milliseconds

12