Home
last modified time | relevance | path

Searched full:cp (Results 1 – 25 of 2055) sorted by relevance

12345678910>>...83

/titanic_41/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_cfg.c249 tavor_cfg_profile_t *cp);
258 static void tavor_cfg_wqe_sizes(tavor_cfg_profile_t *cp);
260 tavor_cfg_profile_t *cp);
269 tavor_cfg_profile_t *cp; in tavor_cfg_profile_init_phase1() local
276 cp = (tavor_cfg_profile_t *)kmem_zalloc(sizeof (tavor_cfg_profile_t), in tavor_cfg_profile_init_phase1()
279 cp->cp_qp0_agents_in_fw = tavor_qp0_agents_in_fw; in tavor_cfg_profile_init_phase1()
280 cp->cp_qp1_agents_in_fw = tavor_qp1_agents_in_fw; in tavor_cfg_profile_init_phase1()
281 cp->cp_sw_reset_delay = tavor_sw_reset_delay; in tavor_cfg_profile_init_phase1()
282 cp->cp_cmd_poll_delay = tavor_cmd_poll_delay; in tavor_cfg_profile_init_phase1()
283 cp->cp_cmd_poll_max = tavor_cmd_poll_max; in tavor_cfg_profile_init_phase1()
[all …]
/titanic_41/usr/src/uts/common/fs/cachefs/
H A Dcachefs_cnode.c86 cnode_t *cp = VTOC(vp); in cachefs_cnode_idle() local
87 fscache_t *fscp = C_TO_FSCACHE(cp); in cachefs_cnode_idle()
111 mutex_enter(&cp->c_statelock); in cachefs_cnode_idle()
114 if (cp->c_unldvp == NULL) in cachefs_cnode_idle()
118 unldvp = cp->c_unldvp; in cachefs_cnode_idle()
119 unlcred = cp->c_unlcred; in cachefs_cnode_idle()
120 unlname = cp->c_unlname; in cachefs_cnode_idle()
121 cp->c_unldvp = NULL; in cachefs_cnode_idle()
122 cp->c_unlcred = NULL; in cachefs_cnode_idle()
123 cp->c_unlname = NULL; in cachefs_cnode_idle()
[all …]
H A Dcachefs_strict.c67 struct cnode *cp, time_t mtime);
70 c_strict_init_cached_object(fscache_t *fscp, cnode_t *cp, vattr_t *vap, in c_strict_init_cached_object() argument
74 cachefs_metadata_t *mdp = &cp->c_metadata; in c_strict_init_cached_object()
77 ASSERT(MUTEX_HELD(&cp->c_statelock)); in c_strict_init_cached_object()
87 if (cp->c_backvp == NULL) { in c_strict_init_cached_object()
88 error = cachefs_getbackvp(fscp, cp); in c_strict_init_cached_object()
94 cp->c_attr.va_mask = AT_ALL; in c_strict_init_cached_object()
95 error = VOP_GETATTR(cp->c_backvp, &cp->c_attr, 0, cr, NULL); in c_strict_init_cached_object()
100 cp->c_attr = *vap; in c_strict_init_cached_object()
109 mdp->md_x_time.tv_sec = cachefs_gettime_cached_object(fscp, cp, in c_strict_init_cached_object()
[all …]
H A Dcachefs_cod.c67 c_cod_init_cached_object(fscache_t *fscp, cnode_t *cp, vattr_t *vap, in c_cod_init_cached_object() argument
71 cachefs_metadata_t *mdp = &cp->c_metadata; in c_cod_init_cached_object()
74 ASSERT(MUTEX_HELD(&cp->c_statelock)); in c_cod_init_cached_object()
87 if (cp->c_backvp == NULL) { in c_cod_init_cached_object()
88 error = cachefs_getbackvp(fscp, cp); in c_cod_init_cached_object()
94 cp->c_attr.va_mask = AT_ALL; in c_cod_init_cached_object()
95 error = VOP_GETATTR(cp->c_backvp, &cp->c_attr, 0, cr, NULL); in c_cod_init_cached_object()
100 cp->c_attr = *vap; in c_cod_init_cached_object()
103 cp->c_size = cp->c_attr.va_size; in c_cod_init_cached_object()
106 cp->c_flags |= CN_UPDATED; in c_cod_init_cached_object()
[all …]
/titanic_41/usr/src/tools/stabs/
H A Dstabs.c42 static void parseline(char *cp);
43 static char *soudef(char *cp, enum type type, struct tdesc **rtdp);
44 static void enumdef(char *cp, struct tdesc **rtdp);
48 static char *number(char *cp, int *n);
49 static char *name(char *cp, char **w);
50 static char *id(char *cp, int *h);
51 static char *offsize(char *cp, struct mlist *mlp);
52 static char *whitesp(char *cp);
55 static void tagdecl(char *cp, struct tdesc **rtdp, int h, char *w);
56 static char *tdefdecl(char *cp, int h, struct tdesc **rtdp);
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_socks.c35 static void put_method(char *cp, int method);
36 static void put_socks5_addr(char *cp, const unsigned char *buf, int fraglen);
37 static void put_socks4_res(char *cp, int code);
38 static void put_socks5_res(char *cp, int code);
47 char *cp; local
52 cp = get_sum_line();
63 (void) sprintf(cp,
68 cp += strlen(cp);
70 (void) sprintf(cp, " User=");
71 cp += strlen(cp);
[all …]
/titanic_41/usr/src/tools/ctf/cvt/
H A Dst_parse.c62 static char *soudef(char *cp, stabtype_t type, tdesc_t **rtdp);
63 static void enumdef(char *cp, tdesc_t **rtdp);
66 static char *number(char *cp, int *n);
67 static char *name(char *cp, char **w);
68 static char *id(char *cp, int *h);
69 static char *whitesp(char *cp);
72 static char *tdefdecl(char *cp, int h, tdesc_t **rtdp);
73 static char *intrinsic(char *cp, tdesc_t **rtdp);
74 static char *arraydef(char *cp, tdesc_t **rtdp);
81 parse_debug(int level, char *cp, char *fmt, ...) in parse_debug() argument
[all …]
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/
H A Dspppcomp.c165 #define CPDEBUG(x) (IS_CP_KDEBUG(cp) ? CKDEBUG(x) : (void)0)
236 sppp_comp_t *cp; in spppcomp_open() local
244 cp = kmem_zalloc(sizeof (sppp_comp_t), KM_SLEEP); in spppcomp_open()
245 q->q_ptr = WR(q)->q_ptr = (caddr_t)cp; in spppcomp_open()
247 cp->cp_mru = PPP_MRU; in spppcomp_open()
248 cp->cp_mtu = PPP_MTU; in spppcomp_open()
250 mutex_init(&cp->cp_pair_lock, NULL, MUTEX_DRIVER, NULL); in spppcomp_open()
251 vj_compress_init(&cp->cp_vj, -1); in spppcomp_open()
252 cp->cp_nxslots = -1; in spppcomp_open()
253 cp->cp_effort = -1; in spppcomp_open()
[all …]
/titanic_41/usr/src/lib/libc/sparc/sys/
H A Dptrace.c142 cstatus_t *cp; in ptrace() local
216 if ((cp = GrabProc(pid)) == NULLCP) in ptrace()
219 ps = &cp->pstatus; in ptrace()
221 if (ProcUpdate(cp) != 0) { in ptrace()
222 ReleaseProc(cp); in ptrace()
238 if (pread(cp->asfd, (char *)&data, sizeof (data), (off_t)addr) in ptrace()
252 GetPsargs(cp); in ptrace()
254 GetSignal(cp); in ptrace()
257 data = *((int *)((caddr_t)(&cp->user) + xaddr)); in ptrace()
268 if (xaddr >= (unsigned)cp->user.u_reg[REG_SP] && in ptrace()
[all …]
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dstrptime.c40 static char *strmatch(/*char *cp, char *string*/);
41 static char *yearmatch(/*char *cp, char *format, struct tm *tm,
43 static char *cvtnum(/*char *cp, int *nump*/);
55 register char *cp, *p; local
64 cp = buf;
70 if (*cp++ != '%')
77 if ((p = strmatch(cp,
80 || (p = strmatch(cp,
89 cp = p;
96 if ((p = strmatch(cp,
[all …]
H A Dmntent.c51 unsigned char *cp = (unsigned char *) *p; in mntstr() local
54 while (*cp && isspace(*cp)) in mntstr()
55 cp++; in mntstr()
56 retstr = cp; in mntstr()
57 while (*cp && !isspace(*cp)) in mntstr()
58 cp++; in mntstr()
59 if (*cp) { in mntstr()
60 *cp = '\0'; in mntstr()
61 cp++; in mntstr()
63 *p = (char *) cp; in mntstr()
[all …]
H A Dasctime.c26 char *cp, *ncp; in asctime() local
29 cp = cbuf; in asctime()
30 for (ncp = "Day Mon 00 00:00:00 1900\n"; *cp++ = *ncp++;); in asctime()
32 cp = cbuf; in asctime()
33 *cp++ = *ncp++; in asctime()
34 *cp++ = *ncp++; in asctime()
35 *cp++ = *ncp++; in asctime()
36 cp++; in asctime()
39 *cp++ = *ncp++; in asctime()
40 *cp++ = *ncp++; in asctime()
[all …]
/titanic_41/usr/src/lib/libc/i386/sys/
H A Dptrace.c142 cstatus_t *cp; in ptrace() local
216 if ((cp = GrabProc(pid)) == NULLCP) in ptrace()
219 ps = &cp->pstatus; in ptrace()
221 if (ProcUpdate(cp) != 0) { in ptrace()
222 ReleaseProc(cp); in ptrace()
238 if (pread(cp->asfd, (char *)&data, sizeof (data), (off_t)addr) in ptrace()
252 GetPsargs(cp); in ptrace()
254 GetSignal(cp); in ptrace()
257 data = *((int *)((caddr_t)(&cp->user) + xaddr)); in ptrace()
267 if (pwrite(cp->asfd, (char *)&data, sizeof (data), (off_t)addr) in ptrace()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dkmem.c1222 kmem_cache_t *cp; in kmem_cache_applyall() local
1225 for (cp = list_head(&kmem_caches); cp != NULL; in kmem_cache_applyall()
1226 cp = list_next(&kmem_caches, cp)) in kmem_cache_applyall()
1228 (void) taskq_dispatch(tq, (task_func_t *)func, cp, in kmem_cache_applyall()
1231 func(cp); in kmem_cache_applyall()
1238 kmem_cache_t *cp; in kmem_cache_applyall_id() local
1241 for (cp = list_head(&kmem_caches); cp != NULL; in kmem_cache_applyall_id()
1242 cp = list_next(&kmem_caches, cp)) { in kmem_cache_applyall_id()
1243 if (!(cp->cache_cflags & KMC_IDENTIFIER)) in kmem_cache_applyall_id()
1246 (void) taskq_dispatch(tq, (task_func_t *)func, cp, in kmem_cache_applyall_id()
[all …]
H A Dfork.c134 proc_t *cp, **orphpp; in cfork() local
213 if (getproc(&cp, 0, GETPROC_USER) < 0) { in cfork()
222 TRACE_2(TR_FAC_PROC, TR_PROC_FORK, "proc_fork:cp %p p %p", cp, p); in cfork()
242 cp->p_as = as; in cfork()
243 cp->p_flag |= SVFORK; in cfork()
249 cp->p_segacct = p->p_segacct; in cfork()
263 error = as_dup(p->p_as, cp); in cfork()
267 fork_fail(cp); in cfork()
270 while (*orphpp != cp) in cfork()
272 *orphpp = cp->p_nextorph; in cfork()
[all …]
H A Dcpu.c77 extern char *cpu_fru_fmri(cpu_t *cp);
80 static void cpu_add_active_internal(cpu_t *cp);
81 static void cpu_remove_active(cpu_t *cp);
82 static void cpu_info_kstat_create(cpu_t *cp);
83 static void cpu_info_kstat_destroy(cpu_t *cp);
84 static void cpu_stats_kstat_create(cpu_t *cp);
85 static void cpu_stats_kstat_destroy(cpu_t *cp);
400 cpu_t *cp; in thread_affinity_set() local
417 cp = cpu[cpu_id]; in thread_affinity_set()
418 ASSERT(cp != NULL); /* user must provide a good cpu_id */ in thread_affinity_set()
[all …]
/titanic_41/usr/src/cmd/sendmail/db/btree/
H A Dbt_cursor.c48 #define DISCARD(dbc, cp) { \ argument
49 if ((cp)->page != NULL) { \
50 (void)memp_fput((dbc)->dbp->mpf, (cp)->page, 0); \
51 (cp)->page = NULL; \
53 if ((cp)->lock != LOCK_INVALID) { \
54 (void)__BT_TLPUT((dbc), (cp)->lock); \
55 (cp)->lock = LOCK_INVALID; \
61 #define IS_CUR_DELETED(cp) \ argument
62 (((cp)->dpgno == PGNO_INVALID && \
63 B_DISSET(GET_BKEYDATA((cp)->page, \
[all …]
/titanic_41/usr/src/uts/common/fs/sockfs/
H A Dnl7chttp.c206 http_date2time_t(char *cp, char *ep) in http_date2time_t() argument
208 char *scp = cp; in http_date2time_t()
228 while (cp < ep) { in http_date2time_t()
229 c = *cp++; in http_date2time_t()
234 cp = scp; in http_date2time_t()
241 if (cp == NULL) { in http_date2time_t()
243 while (cp < ep) { in http_date2time_t()
244 c = *cp; in http_date2time_t()
246 cp++; in http_date2time_t()
259 if (cp == ep) in http_date2time_t()
[all …]
/titanic_41/usr/src/lib/libresolv/
H A Dres_debug.c105 register char *cp; local
113 cp = msg + sizeof (HEADER);
142 cp = p_cdname(cp, msg, file);
143 if (cp == NULL)
145 fprintf(file, ", type = %s", p_type(_getshort(cp)));
146 cp += sizeof (u_short);
148 p_class(_getshort(cp)));
149 cp += sizeof (u_short);
159 cp = p_rr(cp, msg, file);
160 if (cp == NULL)
[all …]
/titanic_41/usr/src/cmd/mailx/
H A Daux.c63 register char *cp, *cp2, *top; in savestr() local
65 for (cp = str; *cp; cp++) in savestr()
67 top = (char *)salloc((unsigned)(cp-str + 1)); in savestr()
70 for (cp = str, cp2 = top; *cp; cp++) in savestr()
71 *cp2++ = *cp; in savestr()
176 register char *cp, *cp2; in gethfield() local
213 cp = &linebuf[strlen(linebuf)]; in gethfield()
214 while (cp > linebuf && in gethfield()
215 (isspace(cp[-1]) || cp[-1] == '\\')) in gethfield()
216 cp--; in gethfield()
[all …]
/titanic_41/usr/src/cmd/lvm/rpc.metamedd/
H A Dmed_hash.c53 char *cp; in HASH() local
56 for (cp = (char *)datap; cp != ((char *)datap + datalen); hv += *cp++) in HASH()
63 Cache **cp, in init_cache() argument
74 if ((*cp = (Cache *) Malloc(sizeof (**cp))) == NULL) { in init_cache()
75 (void) fprintf(stderr, "Malloc(Cache **cp)"); in init_cache()
78 (*cp)->bp = (Bucket *) Malloc(sizeof (*(*cp)->bp) * hsz); in init_cache()
79 if ((*cp)->bp == NULL) { in init_cache()
80 (void) fprintf(stderr, "Malloc(Bucket cp->bp)"); in init_cache()
83 (*cp)->hsz = hsz; in init_cache()
84 (*cp)->bsz = bsz; in init_cache()
[all …]
/titanic_41/usr/src/cmd/svc/configd/
H A Dclient.c265 repcache_client_t *cp; in client_alloc() local
266 cp = uu_zalloc(sizeof (*cp)); in client_alloc()
267 if (cp == NULL) in client_alloc()
270 cp->rc_entities = uu_avl_create(entity_pool, cp, 0); in client_alloc()
271 if (cp->rc_entities == NULL) in client_alloc()
274 cp->rc_iters = uu_avl_create(iter_pool, cp, 0); in client_alloc()
275 if (cp->rc_iters == NULL) in client_alloc()
278 uu_list_node_init(cp, &cp->rc_link, client_pool); in client_alloc()
280 cp->rc_doorfd = -1; in client_alloc()
281 cp->rc_doorid = INVALID_DOORID; in client_alloc()
[all …]
/titanic_41/usr/src/lib/libumem/common/
H A Dumem.c142 * is always zero. umem_cache_alloc uses cp->cache_cpu_mask to
155 * with either umem_cpu_mask or cp->cache_cpu_mask to find the actual "cpu" id.
931 umem_cache_t *cp; in umem_cache_applyall() local
934 for (cp = umem_null_cache.cache_next; cp != &umem_null_cache; in umem_cache_applyall()
935 cp = cp->cache_next) in umem_cache_applyall()
936 func(cp); in umem_cache_applyall()
941 umem_add_update_unlocked(umem_cache_t *cp, int flags) in umem_add_update_unlocked() argument
950 if (cp->cache_uflags & UMU_ACTIVE) { in umem_add_update_unlocked()
951 cp->cache_uflags |= flags; in umem_add_update_unlocked()
953 if (cp->cache_unext != NULL) { in umem_add_update_unlocked()
[all …]
/titanic_41/usr/src/uts/sun4/io/efcode/
H A Dfc_ops.c164 fc_ops(dev_info_t *ap, fco_handle_t handle, fc_ci_t *cp) in fc_ops() argument
167 char *name = fc_cell2ptr(cp->svc_name); in fc_ops()
171 return (pv->f(ap, handle, cp)); in fc_ops()
200 fco_getproplen(dev_info_t *ap, fco_handle_t rp, fc_ci_t *cp) in fco_getproplen() argument
209 if (strstr(fc_cell2ptr(cp->svc_name), "inherited") == NULL) in fco_getproplen()
212 if (fc_cell2int(cp->nargs) != 2) in fco_getproplen()
213 return (fc_syntax_error(cp, "nargs must be 2")); in fco_getproplen()
215 if (fc_cell2int(cp->nresults) < 1) in fco_getproplen()
216 return (fc_syntax_error(cp, "nresults must be > 0")); in fco_getproplen()
221 h = fc_cell2phandle(fc_arg(cp, 0)); in fco_getproplen()
[all …]
/titanic_41/usr/src/lib/libcmd/common/
H A Dfmt.c81 register char* cp = fp->outbuf; in outline() local
91 while (*cp++ == ' ') in outline()
96 cp = &fp->outbuf[TABSZ*n]; in outline()
98 *--cp = '\t'; in outline()
101 cp = fp->outbuf; in outline()
104 sfputr(fp->out, cp, '\n'); in outline()
105 else if (*cp) in outline()
108 if (*cp != '[') in outline()
110 if (*cp == ' ') in outline()
111 cp++; in outline()
[all …]

12345678910>>...83