Searched refs:cp (Results 1 - 25 of 116) sorted by relevance

12345

/darwin-on-arm/xnu/bsd/libkern/
H A Dlocc.c71 register u_char *cp, *end, mask; local
74 cp = (u_char *)cp0;
75 for (end = &cp[size]; cp < end && *cp != mask; ++cp);
76 return (end - cp);
H A Dskpc.c68 register u_char *cp, *end, mask; local
71 cp = (u_char *)cp0;
72 for (end = &cp[size]; cp < end && *cp == mask; ++cp);
73 return (end - cp);
H A Dscanc.c66 scanc(u_int size, u_char *cp, const u_char table[], int mask0) argument
72 for (end = &cp[size]; cp != end && (table[*cp] & mask) == 0; ++cp);
73 return (end - cp);
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_chash.c152 struct cnode *cp; local
165 for (cp = CNODEHASH(hfsmp, inum)->lh_first; cp; cp = cp->c_hash.le_next) {
166 if (cp->c_fileid != inum)
169 if (ISSET(cp->c_hflag, H_ALLOC | H_TRANSIT | H_ATTACH)) {
170 SET(cp->c_hflag, H_WAITING);
172 (void) msleep(cp, &hfsmp->hfs_chash_mutex, PDROP | PINOD,
177 vp = wantrsrc ? cp
232 struct cnode *cp; local
300 struct cnode *cp; local
439 hfs_chashwakeup(struct hfsmount *hfsmp, struct cnode *cp, int hflags) argument
476 hfs_chashremove(struct hfsmount *hfsmp, struct cnode *cp) argument
500 hfs_chash_abort(struct hfsmount *hfsmp, struct cnode *cp) argument
522 hfs_chash_mark_in_transit(struct hfsmount *hfsmp, struct cnode *cp) argument
540 struct cnode *cp; local
571 struct cnode *cp; local
[all...]
H A Dhfs_cnode.c65 __inline__ int hfs_checkdeleted (struct cnode *cp) { argument
66 return ((cp->c_flag & (C_DELETED | C_NOEXISTS)) ? ENOENT : 0);
78 struct cnode *cp = NULL; local
81 cp = VTOC(vp);
87 err = hfs_lock (cp, HFS_EXCLUSIVE_LOCK);
93 cp->c_flag |= C_BACKINGSTORE;
96 cp->c_flag &= ~C_BACKINGSTORE;
100 hfs_unlock (cp);
115 struct cnode *cp = NULL; local
123 cp
181 struct cnode *cp; local
640 struct cnode *cp; local
731 struct cnode *cp; local
838 struct cnode *cp; local
972 struct cnode *cp = NULL; local
1393 hfs_reclaim_cnode(struct cnode *cp) argument
1608 hfs_get_dateadded(struct cnode *cp) argument
1646 hfs_touchtimes(struct hfsmount *hfsmp, struct cnode* cp) argument
1739 hfs_lock(struct cnode *cp, enum hfslocktype locktype) argument
1942 hfs_unlock(struct cnode *cp) argument
2055 hfs_lock_truncate(struct cnode *cp, enum hfslocktype locktype) argument
2092 hfs_try_trunclock(struct cnode *cp, enum hfslocktype locktype) argument
2136 hfs_unlock_truncate(struct cnode *cp, int been_recursed) argument
[all...]
H A Dhfs_link.c65 int hfs_makelink(struct hfsmount *hfsmp, struct vnode *src_vp, struct cnode *cp,
126 * Make a link to the cnode cp in the directory dp
128 * corresponds to 'cp' which was part of the arguments to
131 * The cnodes cp and dcp must be locked.
134 hfs_makelink(struct hfsmount *hfsmp, struct vnode *src_vp, struct cnode *cp, argument
152 type = S_ISDIR(cp->c_mode) ? DIR_HARDLINKS : FILE_HARDLINKS;
178 orig_cnid = cp->c_desc.cd_cnid;
184 if ((cp->c_linkcount == 2) && !(cp->c_flag & C_HARDLINK)) {
188 to_desc.cd_cnid = cp
409 struct cnode *cp; local
677 struct cnode *cp; local
1053 hfs_savelinkorigin(cnode_t *cp, cnid_t parentcnid) argument
1091 hfs_relorigins(struct cnode *cp) argument
1108 hfs_relorigin(struct cnode *cp, cnid_t parentcnid) argument
1130 hfs_haslinkorigin(cnode_t *cp) argument
1152 hfs_currentparent(cnode_t *cp) argument
1174 hfs_currentcnid(cnode_t *cp) argument
[all...]
H A Dhfs_vnops.c152 hfs_is_journal_file(struct hfsmount *hfsmp, struct cnode *cp) argument
155 (cp->c_fileid == hfsmp->hfs_jnlinfoblkid ||
156 cp->c_fileid == hfsmp->hfs_jnlfileid)) {
216 struct cnode *cp; local
228 cp = VTOC(*vpp);
229 cp->c_touch_acctime = TRUE;
230 cp->c_touch_chgtime = TRUE;
231 cp->c_touch_modtime = TRUE;
235 cp->c_rdev = vap->va_rdev;
251 hfs_ref_data_vp(struct cnode *cp, struc argument
302 hfs_lazy_init_decmpfs_cnode(struct cnode *cp) argument
329 hfs_file_is_compressed(struct cnode *cp, int skiplock) argument
428 hfs_hides_rsrc(vfs_context_t ctx, struct cnode *cp, int skiplock) argument
438 hfs_hides_xattr(vfs_context_t ctx, struct cnode *cp, const char *name, int skiplock) argument
459 struct cnode *cp = VTOC(vp); local
582 register struct cnode *cp; local
649 hfs_touchtimes(VTOHFS(vp), cp); local
685 struct cnode *cp; local
1116 struct cnode *cp = NULL; local
1397 register struct cnode *cp = VTOC(vp); local
1422 struct cnode *cp = VTOC(vp); local
1477 register struct cnode *cp = VTOC(vp); local
2259 struct cnode *cp = VTOC(vp); local
2559 struct cnode *cp = VTOC(vp); local
2595 struct cnode *cp = VTOC(vp); local
2636 struct cnode *cp; local
2842 struct cnode *cp; local
3011 struct cnode *cp; local
3540 replace_desc(struct cnode *cp, struct cat_desc *cdp) argument
4314 struct cnode *cp = NULL; local
4503 struct cnode *cp; local
4771 struct cnode *cp; local
4924 struct cnode *cp = VTOC(vp); local
5069 struct cnode *cp = NULL; local
5460 struct cnode *cp = VTOC(vp); local
5748 struct cnode *cp; local
5753 hfs_touchtimes(VTOHFS(vp), cp); local
5814 struct cnode *cp; local
5819 hfs_touchtimes(VTOHFS(vp), cp); local
[all...]
H A Dhfs_cprotect.c85 * value into the vfs cp iteration, we need to pass around the int as an ptr.
128 cp_entry_init(struct cnode *cp, struct mount *mp) argument
135 cp->c_cpentry = NULL;
139 if (!S_ISREG(cp->c_mode) && !S_ISDIR(cp->c_mode)) {
140 cp->c_cpentry = NULL;
153 CP_ASSERT (cp->c_cpentry == NULL);
155 error = cp_getxattr(cp, hfsmp, &entry);
168 sub_error = cp_entry_create_keys (&entry, NULL, hfsmp, PROTECTION_CLASS_D, cp->c_fileid, cp
402 struct cnode *cp; local
475 struct cnode *cp; local
577 struct cnode *cp; local
686 struct cnode *cp = NULL; local
808 struct cnode *cp = NULL ; local
868 cp_handle_relocate(struct cnode *cp, struct hfsmount *hfsmp) argument
994 cp_setxattr(struct cnode *cp, struct cprotect *entry, struct hfsmount *hfsmp, uint32_t fileid, int options) argument
1219 cp_getxattr(struct cnode *cp, struct hfsmount *hfsmp, struct cprotect **outentry) argument
1497 cp_check_access(struct cnode *cp, int vnop __unused) argument
1536 cnode_t *cp = NULL; local
[all...]
H A Dhfs_quota.c103 hfs_getinoquota(cp)
104 register struct cnode *cp;
111 vp = cp->c_vp ? cp->c_vp : cp->c_rsrc_vp;
117 if (cp->c_dquot[USRQUOTA] == NODQUOT) {
118 error = dqget(cp->c_uid, &hfsmp->hfs_qfiles[USRQUOTA], USRQUOTA, &cp->c_dquot[USRQUOTA]);
130 if (cp->c_dquot[GRPQUOTA] == NODQUOT) {
131 error = dqget(cp
637 struct cnode *cp; local
923 struct cnode *cp; local
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Dbpf_compat.h75 #define free(cp, type) m_free(*(struct mbuf **)(cp - 8))
H A Dnet_osdep.c81 char *cp; local
84 cp = nam[ifbufround];
86 snprintf(cp, IFNAMSIZ + 10, "%s%d", ifp->if_name, ifp->if_unit);
87 return((const char *)cp);
/darwin-on-arm/xnu/bsd/kern/
H A Dmcache.c263 mcache_t *cp = NULL; local
295 cp = (mcache_t *)
297 pbuf = (void **)((intptr_t)cp - sizeof (void *));
312 cp->mc_align = align;
313 cp->mc_slab_alloc = allocfn;
314 cp->mc_slab_free = freefn;
315 cp->mc_slab_audit = auditfn;
316 cp->mc_slab_log = logfn;
317 cp->mc_slab_notify = notifyfn;
318 cp
422 mcache_alloc_ext(mcache_t *cp, mcache_obj_t **list, unsigned int num, int wait) argument
583 mcache_alloc(mcache_t *cp, int wait) argument
592 mcache_waiter_inc(mcache_t *cp) argument
598 mcache_waiter_dec(mcache_t *cp) argument
604 mcache_bkt_isempty(mcache_t *cp) argument
618 mcache_notify(mcache_t *cp, u_int32_t event) argument
630 mcache_t *cp = arg; local
647 mcache_purge_cache(mcache_t *cp) argument
673 mcache_free(mcache_t *cp, void *buf) argument
683 mcache_free_ext(mcache_t *cp, mcache_obj_t *list) argument
817 mcache_destroy(mcache_t *cp) argument
872 mcache_t *cp = arg; local
949 mcache_t *cp = arg; local
999 mcache_t *cp = arg; local
1054 mcache_bkt_alloc(mcache_t *cp, mcache_bktlist_t *blp, mcache_bkttype_t **btp) argument
1087 mcache_bkt_free(mcache_t *cp, mcache_bktlist_t *blp, mcache_bkt_t *bkt) argument
1102 mcache_cache_bkt_enable(mcache_t *cp) argument
1122 mcache_bkt_purge(mcache_t *cp) argument
1168 mcache_bkt_destroy(mcache_t *cp, mcache_bkttype_t *btp, mcache_bkt_t *bkt, int nobjs) argument
1206 mcache_bkt_ws_update(mcache_t *cp) argument
1222 mcache_bkt_ws_reap(mcache_t *cp) argument
1279 mcache_cache_reap(mcache_t *cp) argument
1288 mcache_cache_update(mcache_t *cp) argument
1338 mcache_t *cp = arg; local
1364 mcache_t *cp = arg; local
1390 mcache_t *cp; local
1407 mcache_buffer_log(mcache_audit_t *mca, void *addr, mcache_t *cp) argument
[all...]
H A Ddecmpfs.c288 decmpfs_cnode_init(decmpfs_cnode *cp) argument
290 memset(cp, 0, sizeof(*cp));
291 lck_rw_init(&cp->compressed_data_lock, decmpfs_lockgrp, NULL);
295 decmpfs_cnode_destroy(decmpfs_cnode *cp) argument
297 lck_rw_destroy(&cp->compressed_data_lock, decmpfs_lockgrp);
301 decmpfs_trylock_compressed_data(decmpfs_cnode *cp, int exclusive) argument
306 if (cp->lockowner == thread) {
308 cp->lockcount++;
311 if ((retval = lck_rw_try_lock_exclusive(&cp
324 decmpfs_lock_compressed_data(decmpfs_cnode *cp, int exclusive) argument
342 decmpfs_unlock_compressed_data(decmpfs_cnode *cp, __unused int exclusive) argument
359 decmpfs_cnode_get_vnode_state(decmpfs_cnode *cp) argument
365 decmpfs_cnode_set_vnode_state(decmpfs_cnode *cp, uint32_t state, int skiplock) argument
377 decmpfs_cnode_set_vnode_cmp_type(decmpfs_cnode *cp, uint32_t cmp_type, int skiplock) argument
385 decmpfs_cnode_set_vnode_minimal_xattr(decmpfs_cnode *cp, int minimal_xattr, int skiplock) argument
393 decmpfs_cnode_get_vnode_cached_size(decmpfs_cnode *cp) argument
399 decmpfs_cnode_set_vnode_cached_size(decmpfs_cnode *cp, uint64_t size) argument
412 decmpfs_cnode_get_decompression_flags(decmpfs_cnode *cp) argument
418 decmpfs_cnode_set_decompression_flags(decmpfs_cnode *cp, uint64_t flags) argument
433 decmpfs_fetch_compressed_header(vnode_t vp, decmpfs_cnode *cp, decmpfs_header **hdrOut, int returnInvalid) argument
530 decmpfs_fast_get_state(decmpfs_cnode *cp) argument
559 decmpfs_fast_file_is_compressed(decmpfs_cnode *cp) argument
584 decmpfs_validate_compressed_file(vnode_t vp, decmpfs_cnode *cp) argument
623 decmpfs_file_is_compressed(vnode_t vp, decmpfs_cnode *cp) argument
839 wait_for_decompress(decmpfs_cnode *cp) argument
857 decmpfs_hides_rsrc(vfs_context_t ctx, decmpfs_cnode *cp) argument
878 decmpfs_hides_xattr(vfs_context_t ctx, decmpfs_cnode *cp, const char *xattr) argument
986 decmpfs_fetch_uncompressed_data(vnode_t vp, decmpfs_cnode *cp, decmpfs_header *hdr, off_t offset, user_ssize_t size, int nvec, decmpfs_vector *vec, uint64_t *bytes_read) argument
1060 decmpfs_pagein_compressed(struct vnop_pagein_args *ap, int *is_compressed, decmpfs_cnode *cp) argument
1184 decmpfs_read_compressed(struct vnop_read_args *ap, int *is_compressed, decmpfs_cnode *cp) argument
1419 decmpfs_free_compressed_data(vnode_t vp, decmpfs_cnode *cp) argument
1486 decmpfs_decompress_file(vnode_t vp, decmpfs_cnode *cp, off_t toSize, int truncate_okay, int skiplock) argument
[all...]
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_gss.c288 struct nfs_gss_clnt_ctx *cp; local
293 TAILQ_FOREACH(cp, &nmp->nm_gsscl, gss_clnt_entries) {
294 if (cp->gss_clnt_uid == uid) {
295 if (cp->gss_clnt_flags & GSS_CTX_INVAL)
297 nfs_gss_clnt_ctx_ref(req, cp);
311 TAILQ_FOREACH(cp, &nmp->nm_gsscl, gss_clnt_entries) {
312 if (!(cp->gss_clnt_flags & GSS_CTX_INVAL)) {
313 nfs_gss_clnt_ctx_ref(req, cp);
342 MALLOC(cp, struct nfs_gss_clnt_ctx *, sizeof(*cp), M_TEM
389 struct nfs_gss_clnt_ctx *cp; local
417 struct nfs_gss_clnt_ctx *cp; local
680 struct nfs_gss_clnt_ctx *cp = req->r_gss_ctx; local
908 struct nfs_gss_clnt_ctx *cp = req->r_gss_ctx; local
975 nfs_gss_clnt_ctx_init(struct nfsreq *req, struct nfs_gss_clnt_ctx *cp) argument
1139 nfs_gss_clnt_ctx_init_retry(struct nfsreq *req, struct nfs_gss_clnt_ctx *cp) argument
1208 nfs_gss_clnt_ctx_callserver(struct nfsreq *req, struct nfs_gss_clnt_ctx *cp) argument
1369 nfs_gss_clnt_gssd_upcall(struct nfsreq *req, struct nfs_gss_clnt_ctx *cp) argument
1522 struct nfs_gss_clnt_ctx *cp = req->r_gss_ctx; local
1565 nfs_gss_clnt_ctx_ref(struct nfsreq *req, struct nfs_gss_clnt_ctx *cp) argument
1583 struct nfs_gss_clnt_ctx *cp = req->r_gss_ctx; local
1610 nfs_gss_clnt_ctx_remove(struct nfsmount *nmp, struct nfs_gss_clnt_ctx *cp) argument
1641 struct nfs_gss_clnt_ctx *cp = req->r_gss_ctx; local
1711 struct nfs_gss_clnt_ctx *cp; local
1784 struct nfs_gss_svc_ctx *cp; local
1833 nfs_gss_svc_ctx_insert(struct nfs_gss_svc_ctx *cp) argument
1877 struct nfs_gss_svc_ctx *cp, *next; local
1940 struct nfs_gss_svc_ctx *cp = NULL; local
2250 struct nfs_gss_svc_ctx *cp; local
2304 struct nfs_gss_svc_ctx *cp = nd->nd_gss_context; local
2338 struct nfs_gss_svc_ctx *cp = nd->nd_gss_context; local
2437 struct nfs_gss_svc_ctx *cp = NULL; local
2578 nfs_gss_svc_gssd_upcall(struct nfs_gss_svc_ctx *cp) argument
2698 nfs_gss_svc_seqnum_valid(struct nfs_gss_svc_ctx *cp, uint32_t seq) argument
2750 nfs_gss_svc_ctx_deref(struct nfs_gss_svc_ctx *cp) argument
2767 struct nfs_gss_svc_ctx *cp, *ncp; local
[all...]
/darwin-on-arm/xnu/libsyscall/mach/
H A Dstring.c50 char *cp = buf + sizeof(buf); local
53 *--cp = '\0';
55 *--cp = hex[n & 0xf];
59 int width = _mach_strlen(cp);
61 *(*buffer)++ = *cp++;
91 char *cp = va_arg(ap, char*); local
92 width = _mach_strlen(cp);
94 *(out_ptr++) = *(cp++);
/darwin-on-arm/xnu/SETUP/config/
H A Dmain.c233 register char *cp; local
244 cp = line;
245 *cp++ = ch;
249 *cp++ = ch;
251 *cp = 0;
269 register char *cp; local
271 cp = line;
275 *cp++ = ch;
277 *cp = 0;
289 register char *cp; local
[all...]
H A Dmkswapconf.c161 char *cp, partition; local
165 cp = name;
166 if (cp == 0) {
170 while (*cp && !isdigit(*cp))
171 cp++;
172 unit = *cp ? atoi(cp) : defunit;
178 if (*cp) {
179 *cp
[all...]
H A Dmkglue.c215 const char *cp; local
219 cp = *cpp;
220 if (cp[0] == 'i' && cp[1] == 'n' && cp[2] == 't') {
221 cp += 3;
222 if (*cp == 'r')
223 cp++;
225 for (tp = buf; *cp; cp
240 register char *cp = vector; local
[all...]
H A Dmkmakefile.c286 register char *cp; local
290 cp = index(line, '\n');
291 if (cp)
292 *cp = 0;
293 cp = line + 6;
294 while (*cp && (*cp == ' ' || *cp == '\t'))
295 cp++;
296 COPTS = malloc((unsigned)(strlen(cp)
375 struct cputype *cp; local
632 opteq(const char *cp, const char *dp) argument
662 char *cp; local
728 char *cp; local
824 struct cputype *cp; local
885 register const char *cp; local
903 char *cp; local
1156 register char *cp = str; local
[all...]
/darwin-on-arm/xnu/bsd/sys/
H A Ddecmpfs.h104 void decmpfs_cnode_init(decmpfs_cnode *cp);
105 void decmpfs_cnode_destroy(decmpfs_cnode *cp);
107 int decmpfs_hides_rsrc(vfs_context_t ctx, decmpfs_cnode *cp);
108 int decmpfs_hides_xattr(vfs_context_t ctx, decmpfs_cnode *cp, const char *xattr);
110 boolean_t decmpfs_trylock_compressed_data(decmpfs_cnode *cp, int exclusive);
111 void decmpfs_lock_compressed_data(decmpfs_cnode *cp, int exclusive);
112 void decmpfs_unlock_compressed_data(decmpfs_cnode *cp, int exclusive);
114 uint32_t decmpfs_cnode_get_vnode_state(decmpfs_cnode *cp);
115 void decmpfs_cnode_set_vnode_state(decmpfs_cnode *cp, uint32_t state, int skiplock);
116 uint64_t decmpfs_cnode_get_vnode_cached_size(decmpfs_cnode *cp);
[all...]
/darwin-on-arm/xnu/tools/tests/libMicro/
H A DMakefile80 @cp bench.sh bench
81 @cp coreos_bench.sh coreos_bench
82 @cp embd_bench.sh embd_bench
83 @cp multiview.sh multiview
84 @cp wrapper.sh wrapper
85 @cp create_stuff.sh create_stuff
86 @cp benchDS.sh benchDS
87 @cp od_account_create.sh od_account_create
88 @cp od_account_delete.sh od_account_delete
111 @cp wrappe
[all...]
/darwin-on-arm/xnu/SETUP/md/
H A Dmd.c147 {register char *cp =name; local
148 while (*cp) if (*cp++ == '/') name = cp;
350 register char *cp = file_array; local
354 while ((*svp++ = (c = *cp++)) && c != ':');
364 register char *cp = dep_line; local
376 *cp++ = c;
380 *cp = 0;
381 cp
597 register char *cp = &makbuf[SALUTATIONLEN+1]; local
[all...]
/darwin-on-arm/xnu/pexpert/gen/
H A Dbootargs.c74 char *cp, c; local
98 cp = args;
99 while (!isargsep (*cp) && *cp != '=')
100 cp++;
101 if (*cp != '=' && !arg_boolean)
104 c = *cp;
106 i = cp-args;
115 while (*cp && isargsep (*cp))
[all...]
/darwin-on-arm/xnu/osfmk/i386/commpage/
H A Dcommpage.c589 char *cp; local
592 cp = commPagePtr32;
593 if ( cp ) {
594 cp += (_COMM_PAGE_MEMORY_PRESSURE - _COMM_PAGE32_BASE_ADDRESS);
595 ip = (uint32_t*) (void *) cp;
599 cp = commPagePtr64;
600 if ( cp ) {
601 cp += (_COMM_PAGE_MEMORY_PRESSURE - _COMM_PAGE32_START_ADDRESS);
602 ip = (uint32_t*) (void *) cp;
615 char *cp; local
641 char *cp; local
[all...]
/darwin-on-arm/xnu/osfmk/device/
H A Dsubrs.c324 atoi(const char *cp) argument
328 for (number = 0; ('0' <= *cp) && (*cp <= '9'); cp++)
329 number = (number * 10) + (*cp - '0');
417 char *cp = str; local
420 *cp++ = '0';
429 *cp++ = *--dp;
432 *cp++ = '\0';

Completed in 113 milliseconds

12345