Home
last modified time | relevance | path

Searched refs:ncp (Results 1 – 25 of 49) sorted by relevance

12

/titanic_41/usr/src/cmd/fs.d/nfs/nfslog/
H A Dprocess_buffer.c92 nfsl_config_t *ncp = NULL, *last_good_ncp; in process_buffer() local
184 if ((ncp = last_good_ncp = in process_buffer()
207 ncp = nfsl_findconfig(*config_list, tag, &error); in process_buffer()
217 if (ncp == NULL) { in process_buffer()
219 ncp = last_good_ncp; in process_buffer()
222 last_good_ncp = ncp; in process_buffer()
225 if (ncp->nc_flags & NC_UPDATED) { in process_buffer()
232 cleanup_elf_state(ncp); in process_buffer()
233 cleanup_trans_state(ncp); in process_buffer()
235 ncp->nc_flags &= ~NC_UPDATED; in process_buffer()
[all …]
/titanic_41/usr/src/uts/common/fs/
H A Ddnlc.c233 #define nc_inshash(ncp, hp) \ argument
235 (ncp)->hash_next = (hp)->hash_next; \
236 (ncp)->hash_prev = (ncache_t *)(hp); \
237 (hp)->hash_next->hash_prev = (ncp); \
238 (hp)->hash_next = (ncp); \
244 #define nc_rmhash(ncp) \ argument
246 (ncp)->hash_prev->hash_next = (ncp)->hash_next; \
247 (ncp)->hash_next->hash_prev = (ncp)->hash_prev; \
248 (ncp)->hash_prev = NULL; \
249 (ncp)->hash_next = NULL; \
[all …]
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dasctime.c26 char *cp, *ncp; in asctime() local
30 for (ncp = "Day Mon 00 00:00:00 1900\n"; *cp++ = *ncp++;); in asctime()
31 ncp = &"SunMonTueWedThuFriSat"[3*t->tm_wday]; in asctime()
33 *cp++ = *ncp++; in asctime()
34 *cp++ = *ncp++; in asctime()
35 *cp++ = *ncp++; in asctime()
38 ncp = &"JanFebMarAprMayJunJulAugSepOctNovDec"[(*tp)*3]; in asctime()
39 *cp++ = *ncp++; in asctime()
40 *cp++ = *ncp++; in asctime()
41 *cp++ = *ncp++; in asctime()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dctime.c112 const char *ncp; in __posix_asctime_r() local
120 for (ncp = Date; *cp++ = *ncp++; /* */) in __posix_asctime_r()
122 ncp = Day + (3 * t->tm_wday); in __posix_asctime_r()
124 *cp++ = *ncp++; in __posix_asctime_r()
125 *cp++ = *ncp++; in __posix_asctime_r()
126 *cp++ = *ncp++; in __posix_asctime_r()
128 ncp = Month + (3 * t->tm_mon); in __posix_asctime_r()
129 *cp++ = *ncp++; in __posix_asctime_r()
130 *cp++ = *ncp++; in __posix_asctime_r()
131 *cp++ = *ncp++; in __posix_asctime_r()
/titanic_41/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_ncallio.c98 nsc_ncio_dev_t *ncp, *new; in nsc_ncio_open() local
118 for (ncp = nsc_ncio_top; ncp; ncp = ncp->next) in nsc_ncio_open()
119 if (ncp->phash == phash && strcmp(path, ncp->path) == 0) in nsc_ncio_open()
122 if (ncp == NULL && new != NULL) { in nsc_ncio_open()
123 ncp = new; in nsc_ncio_open()
125 ncp->next = nsc_ncio_top; in nsc_ncio_open()
126 nsc_ncio_top = ncp; in nsc_ncio_open()
129 if (ncp != NULL) in nsc_ncio_open()
130 ncp->ref++; in nsc_ncio_open()
137 if (!ncp) in nsc_ncio_open()
[all …]
/titanic_41/usr/src/cmd/mdb/common/libstand/
H A Dctime.c162 const char *ncp; in __posix_asctime_r() local
170 for (ncp = Date; *cp++ = *ncp++; /* */) in __posix_asctime_r()
172 ncp = Day + (3*t->tm_wday); in __posix_asctime_r()
174 *cp++ = *ncp++; in __posix_asctime_r()
175 *cp++ = *ncp++; in __posix_asctime_r()
176 *cp++ = *ncp++; in __posix_asctime_r()
179 ncp = Month + ((*tp) * 3); in __posix_asctime_r()
180 *cp++ = *ncp++; in __posix_asctime_r()
181 *cp++ = *ncp++; in __posix_asctime_r()
182 *cp++ = *ncp++; in __posix_asctime_r()
/titanic_41/usr/src/stand/lib/sa/
H A Dtime.c167 const char *ncp; in asctime() local
175 for (ncp = Date; *cp++ = *ncp++; /* */); in asctime()
176 ncp = Day + (3 * t->tm_wday); in asctime()
178 *cp++ = *ncp++; in asctime()
179 *cp++ = *ncp++; in asctime()
180 *cp++ = *ncp++; in asctime()
183 ncp = Month + ((*tp) * 3); in asctime()
184 *cp++ = *ncp++; in asctime()
185 *cp++ = *ncp++; in asctime()
186 *cp++ = *ncp++; in asctime()
/titanic_41/usr/src/lib/krb5/kadm5/srv/
H A Dserver_misc.c106 char *cp, *ncp, *tcp; local
114 for (ncp = cp; *ncp; ncp++)
115 if (!isalnum(*ncp) && *ncp != '\'')
118 if (*ncp)
119 *ncp++ = '\0';
127 cp = ncp;
/titanic_41/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_device_cache.c366 name_cache_t *ncp; in add_cached_name() local
371 if ((ncp = (name_cache_t *) in add_cached_name()
377 ncp->desc = strdup(buf); in add_cached_name()
378 if (ncp->desc == NULL) { in add_cached_name()
379 free(ncp); in add_cached_name()
383 ncp->name = strdup(name); in add_cached_name()
384 if (ncp->name == NULL) { in add_cached_name()
385 free(ncp->desc); in add_cached_name()
386 free(ncp); in add_cached_name()
396 entry.key = ncp->desc; in add_cached_name()
[all …]
/titanic_41/usr/src/cmd/fm/fmd/common/
H A Dfmd_rpc.c64 struct netconfig *ncp; in fmd_rpc_svc_create_local() local
86 while ((ncp = getnetconfig(hdl)) != NULL) { in fmd_rpc_svc_create_local()
87 if (strcmp(ncp->nc_protofmly, NC_LOOPBACK) != 0) in fmd_rpc_svc_create_local()
90 if (!force && rpcb_getaddr(prog, vers, ncp, &buf, HOST_SELF)) { in fmd_rpc_svc_create_local()
95 if ((fd = t_open(ncp->nc_device, O_RDWR, NULL)) == -1) { in fmd_rpc_svc_create_local()
97 ncp->nc_device, t_strerror(t_errno)); in fmd_rpc_svc_create_local()
103 if ((xprt = svc_tli_create(fd, ncp, NULL, ssz, rsz)) == NULL) { in fmd_rpc_svc_create_local()
108 if (svc_reg(xprt, prog, vers, disp, ncp) == FALSE) { in fmd_rpc_svc_create_local()
110 "rpc service on %s\n", ncp->nc_netid); in fmd_rpc_svc_create_local()
/titanic_41/usr/src/cmd/mdb/common/modules/mdb_ks/
H A Dmdb_ks.c98 #define MDB_DNLC_NCACHE_SZ(ncp) (sizeof (ncache_t) + (ncp)->namlen) argument
160 ncache_t *ncp, *next; in dnlc_free() local
171 for (ncp = dnlc_hash[i]; ncp; ncp = next) { in dnlc_free()
172 next = ncp->hash_next; in dnlc_free()
173 mdb_free(ncp, MDB_DNLC_NCACHE_SZ(ncp)); in dnlc_free()
242 ncache_t *ncp; /* name cache pointer */ in dnlc_load() local
280 ncp = mdb_alloc(nc_size, UM_SLEEP); in dnlc_load()
281 if (mdb_vread(ncp, nc_size - 1, nc_va) == -1) { in dnlc_load()
282 mdb_free(ncp, nc_size); in dnlc_load()
293 if ((uintptr_t)ncp->hash_prev != ncprev_va) { in dnlc_load()
[all …]
/titanic_41/usr/src/uts/sun4u/starfire/os/
H A Dpda.c495 register int i, cp, ncp; in p2o_mem_coalesce() local
502 for (cp = i = 0; i < (nchunks-1); i++, cp = ncp) { in p2o_mem_coalesce()
503 ncp = cp + 1; in p2o_mem_coalesce()
506 naddr = mc[ncp].Memc_StartAddress; in p2o_mem_coalesce()
507 nsize = mc[ncp].Memc_Size; in p2o_mem_coalesce()
522 bcopy((char *)&mc[ncp+1], in p2o_mem_coalesce()
523 (char *)&mc[ncp], in p2o_mem_coalesce()
524 (nchunks - ncp - 1) * sizeof (MemChunk_t)); in p2o_mem_coalesce()
525 ncp = cp; in p2o_mem_coalesce()
/titanic_41/usr/src/cmd/syslogd/
H A Dsyslogd.h80 struct netconfig *ncp; member
228 struct netconfig *ncp; member
247 static host_list_t *cvthname(struct netbuf *nbp, struct netconfig *ncp, char *);
257 static int addnet(struct netconfig *ncp, struct netbuf *nbp);
H A Dsyslogd.c924 hinfo->ncp = &Ncf[i]; in net_poll()
2197 cvthname(struct netbuf *nbp, struct netconfig *ncp, char *failsafe_addr) in cvthname() argument
2212 uap = taddr2uaddr(ncp, nbp); in cvthname()
2217 if ((h = hnc_lookup(nbp, ncp, &hindex)) != NULL) { in cvthname()
2229 if (ncp->nc_semantics != NC_TPI_CLTS) { in cvthname()
2239 if (netdir_getbyaddr(ncp, &hsp, nbp) == 0) { in cvthname()
2300 hnc_register(nbp, ncp, h, hindex); in cvthname()
3612 struct netconfig *ncp; in getnets() local
3637 while ((ncp = getnetconfig(handle)) != NULL) { in getnets()
3638 if (ncp->nc_semantics != NC_TPI_CLTS) { in getnets()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dclock_tick.c620 cpu_t *cp, *ncp; in clock_tick_cpu_setup() local
669 ncp = cpu_active; in clock_tick_cpu_setup()
671 if (cp == ncp) in clock_tick_cpu_setup()
673 clock_tick_cpus[i] = ncp; in clock_tick_cpu_setup()
675 } while ((ncp = ncp->cpu_next_onln) != cpu_active); in clock_tick_cpu_setup()
/titanic_41/usr/src/cmd/sgs/elfedit/modules/common/
H A Dstr.c523 int i, len, ncp; in cmd_body_set() local
526 ncp = len; in cmd_body_set()
528 ncp++; in cmd_body_set()
531 if (ncp == 0) in cmd_body_set()
535 if ((ndx + ncp) > strsec->sec_data->d_size) in cmd_body_set()
541 if (((ndx + ncp) == strsec->sec_data->d_size) && in cmd_body_set()
559 for (i = 0; i < ncp; i++) in cmd_body_set()
562 if (i == ncp) { /* No change */ in cmd_body_set()
609 bcopy(newstr, oldstr, ncp); in cmd_body_set()
/titanic_41/usr/src/cmd/col/
H A Dcol.c498 int ncp; in emit() local
526 ncp = pcp; in emit()
528 if ((++ncp & 7) == 0 && !xflag) { in emit()
529 pcp = ncp; in emit()
535 while (pcp < ncp) { in emit()
/titanic_41/usr/src/cmd/cmd-inet/lib/nwamd/
H A DMakefile33 main.o ncp.o ncu.o ncu_phys.o ncu_ip.o objects.o\
36 HEADERS= conditions.h events.h known_wlans.h llp.h ncp.h ncu.h\
/titanic_41/usr/src/cmd/fm/modules/common/eversholt/
H A Diexpr.c314 struct iexpr *ncp; in iexpr_fini() local
316 for (cp = Cache[i]; cp != NULL; cp = ncp) { in iexpr_fini()
318 ncp = cp->next; in iexpr_fini()
/titanic_41/usr/src/uts/common/io/drm/
H A Ddrm_sunmod.c803 struct ddi_umem_cookie *ncp; in drm_devmap_unmap() local
812 ncp = (struct ddi_umem_cookie *)ndhp->dh_cookie; in drm_devmap_unmap()
813 ncp->cook_refcnt ++; in drm_devmap_unmap()
815 ASSERT(ncp == cp); in drm_devmap_unmap()
820 ncp = (struct ddi_umem_cookie *)ndhp->dh_cookie; in drm_devmap_unmap()
821 ncp->cook_refcnt ++; in drm_devmap_unmap()
823 ASSERT(ncp == cp); in drm_devmap_unmap()
/titanic_41/usr/src/uts/sun4v/os/
H A Dfillsysinfo.c1227 int ncp; in load_tlb_cpu_mappings() local
1256 ncp = md_scan_dag(mdp, tlbs[tlbs_idx], cpu_sc, bck_sc, cp); in load_tlb_cpu_mappings()
1257 if (ncp < 0) in load_tlb_cpu_mappings()
1259 else if (ncp == 0) in load_tlb_cpu_mappings()
1263 for (cp_idx = 0; cp_idx < ncp; cp_idx++) { in load_tlb_cpu_mappings()
1277 for (cp_idx = 0; cp_idx < ncp; cp_idx++) { in load_tlb_cpu_mappings()
1291 for (cp_idx = 0; cp_idx < ncp; cp_idx++) { in load_tlb_cpu_mappings()
/titanic_41/usr/src/uts/common/disp/
H A Dcpupart.c323 cpu_t *ncp, *newlist; in cpupart_move_cpu() local
478 ncp = cp->cpu_prev_part->cpu_next_part = cp->cpu_next_part; in cpupart_move_cpu()
481 oldpp->cp_cpulist = ncp; in cpupart_move_cpu()
484 ncp = oldpp->cp_cpulist = NULL; in cpupart_move_cpu()
518 ASSERT(ncp != NULL); in cpupart_move_cpu()
572 t->t_cpu = disp_lowpri_cpu(ncp, in cpupart_move_cpu()
625 t->t_cpu = disp_lowpri_cpu(ncp, t->t_lpl, in cpupart_move_cpu()
/titanic_41/usr/src/lib/libnwam/
H A DREADME237 nwam_ncp_handle_t *ncp);
239 nwam_ncp_handle_t *ncp);
240 nwam_error_t nwam_ncp_copy(nwam_ncp_handle_t ncp, const char *newname,
242 nwam_error_t nwam_ncp_walk_ncus(nwam_ncp_handle_t ncp,
244 nwam_error_t nwam_ncp_get_name(nwam_ncp_handle_t ncp, char **name);
245 nwam_error_t nwam_ncp_activate(nwam_ncp_handle_t ncp);
246 nwam_error_t nwam_ncp_deactivate(nwam_ncp_handle_t ncp);
247 nwam_error_t nwam_ncp_destroy(nwam_ncp_handle_t ncp, uint64_t flags);
248 void nwam_ncp_free(nwam_ncp_handle_t ncp);
261 nwam_error_t nwam_ncu_create(nwam_ncp_handle_t ncp, const char *name,
[all …]
/titanic_41/usr/src/uts/common/fs/cachefs/
H A Dcachefs_vnops.c3964 cnode_t *ncp; in cachefs_create_connected() local
4038 &va, tvp, cr, 0, &ncp); in cachefs_create_connected()
4042 *vpp = CTOV(ncp); in cachefs_create_connected()
4053 error = cachefs_dir_enter(dcp, nm, &ncp->c_cookie, in cachefs_create_connected()
4054 &ncp->c_id, SM_ASYNC); in cachefs_create_connected()
4084 cnode_t *ncp = NULL; in cachefs_create_disconnected() local
4172 error = cachefs_cnode_create(fscp, &va, 0, &ncp); in cachefs_create_disconnected()
4176 mutex_enter(&ncp->c_statelock); in cachefs_create_disconnected()
4180 error = cachefs_getfrontfile(ncp); in cachefs_create_disconnected()
4182 mutex_exit(&ncp->c_statelock); in cachefs_create_disconnected()
[all …]
/titanic_41/usr/src/uts/i86pc/io/xsvc/
H A Dxsvc.c1061 struct ddi_umem_cookie *ncp; in xsvc_devmap_unmap() local
1083 ncp = (struct ddi_umem_cookie *)ndhp->dh_cookie; in xsvc_devmap_unmap()
1084 ncp->cook_refcnt++; in xsvc_devmap_unmap()
1089 ncp = (struct ddi_umem_cookie *)ndhp->dh_cookie; in xsvc_devmap_unmap()
1090 ncp->cook_refcnt++; in xsvc_devmap_unmap()

12