Home
last modified time | relevance | path

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

/titanic_44/usr/src/lib/libshell/common/sh/
H A Dnvtype.c212 Namval_t *nq = pp->ptype->np; in name_chtype() local
216 cp = nv_name(nq); in name_chtype()
217 if((ap = nv_arrayptr(nq)) && !(ap->nelem&ARRAY_UNDEF) && (sub= nv_getsub(nq))) in name_chtype()
291 Namval_t *nq = nv_namptr(dp->nodes,i); in fixnode() local
293 if(fp=nv_hasdisc(nq,&chtype_disc)) in fixnode()
294 nv_disc(nq, fp, NV_POP); in fixnode()
295 if(nv_isattr(nq,NV_REF)) in fixnode()
297 nq->nvalue.nrp = nrp++; in fixnode()
298 nv_setsize(nq,0); in fixnode()
299 if(strchr(nq->nvname,'.')) in fixnode()
[all …]
H A Darray.c301 Namval_t *nq; in nv_arraysettype() local
310 if(nq = nv_search(sub, ap->table, NV_ADD)) in nv_arraysettype()
312 if(!nq->nvfun && nq->nvalue.cp && *nq->nvalue.cp==0) in nv_arraysettype()
313 _nv_unset(nq,NV_RDONLY); in nv_arraysettype()
314 nv_arraychild(np,nq,0); in nv_arraysettype()
317 sfprintf(sh.strbuf,"%s=%s",nv_name(nq),nv_getval(np)); in nv_arraysettype()
320 if(!nv_clone(tp,nq,flags|NV_NOFREE)) in nv_arraysettype()
324 nv_offattr(nq,NV_RDONLY); in nv_arraysettype()
346 Namval_t *nq, *mq; in array_clone() local
358 if(nq=nv_opensub(np)) in array_clone()
[all …]
H A Dname.c690 register Namval_t *np=0, *nq=0; in nv_create() local
759 nq = np; in nv_create()
796 if(nq==np) in nv_create()
801 else if(nq) in nv_create()
803 if(nv_isnull(np) && c!='.' && (np->nvfun=nv_cover(nq))) in nv_create()
804 np->nvname = nq->nvname; in nv_create()
844 if(np==nq) in nv_create()
877 if(!nq && *sp=='[' && *cp==0 && cp[-1]==']') in nv_create()
980 if(!(nq = nv_opensub(np))) in nv_create()
993 if(ap && ap->table && (nq=nv_search(sub,ap->table,n))) in nv_create()
[all …]
H A Dnvdisc.c242 register Namval_t *nq = vp->disc[type]; in assign() local
264 if(!nq || isblocked(bp,type)) in assign()
280 nq = vp->disc[type=UNASSIGN]; in assign()
281 if(nq && !isblocked(bp,type)) in assign()
287 sh_fun(nq,np,(char**)0); in assign()
322 else if(!nq || !isblocked(bp,type)) in assign()
335 if((nq=vp->disc[n]) && !nv_isattr(nq,NV_NOFREE)) in assign()
337 nv_unset(nq); in assign()
338 dtdelete(root,nq); in assign()
359 register Namval_t *nq = vp->disc[type]; in lookup() local
[all …]
H A Dnvtree.c149 Namval_t *nq=0,fake; in nv_diropen() local
215 np = (*nfp->disc->createf)(nq,last,0,nfp); in nv_diropen()
219 if(nq = nv_opensub(np)) in nv_diropen()
220 np = nq; in nv_diropen()
256 nq = np; in nv_diropen()
278 Namval_t *nq; in nv_dirnext() local
305 if(dp->nextnode && !dp->hp && (nq = (Namval_t*)dp->table)) in nv_dirnext()
307 Namarr_t *ap = nv_arrayptr(nq); in nv_dirnext()
308 if(ap && (ap->nelem&ARRAY_SCAN) && nv_nextsub(nq)) in nv_dirnext()
648 register Namval_t *np, *nq; in outval() local
[all …]
H A Dxec.c611 static int set_instance(Shell_t *shp,Namval_t *nq, Namval_t *node, struct Namref *nr) in set_instance() argument
613 char *sp=0,*cp = nv_name(nq); in set_instance()
616 nr->np = nq; in set_instance()
620 if((ap=nv_arrayptr(nq)) && (sp = nv_getsub(nq))) in set_instance()
639 static void unset_instance(Namval_t *nq, Namval_t *node, struct Namref *nr,long mode) in unset_instance() argument
646 nv_putsub(nq, nr->sub, mode); in unset_instance()
706 Namval_t *np, *nq, *last_table; in sh_exec() local
722 nq = (Namval_t*)(t->com.comnamq); in sh_exec()
734 np = nv_bfsearch(com0, shp->bltin_tree, &nq, &cp); in sh_exec()
751 np = nv_bfsearch(com0, root, &nq, &cp); in sh_exec()
[all …]
H A Dinit.c1455 Namval_t *nq=0; in create_stat() local
1463 nq = nv_namptr(sp->nodes,i); in create_stat()
1464 if((n==0||memcmp(name,nq->nvname,n)==0) && nq->nvname[n]==0) in create_stat()
1467 nq = 0; in create_stat()
1469 if(nq) in create_stat()
1476 return(nq); in create_stat()
H A Dsubshell.c417 register Namval_t *np,*nq; in table_unset() local
419 for(np=(Namval_t*)dtfirst(root);np;np=nq) in table_unset()
421 nq = (Namval_t*)dtnext(root,np); in table_unset()
H A Dmacro.c974 Namval_t *np, *nq; in sh_macfun() local
975 np = nv_bfsearch(name,shp->fun_tree,&nq,(char**)0); in sh_macfun()
1322 Namval_t *nq = nv_type(np); in varsub() local
1324 if(nq) in varsub()
1325 nv_typename(nq,mp->shp->strbuf); in varsub()
/titanic_44/usr/src/lib/libmvec/common/
H A D__vrem_pio2m.c173 int nq, ip, n, i, j, k, eq0, eqnqm1; in __vlibm_rem_pio2m() local
204 nq = 5; in __vlibm_rem_pio2m()
212 z = q[nq] * twon24; in __vlibm_rem_pio2m()
213 for (j = nq-1; j >= 1; j--) { in __vlibm_rem_pio2m()
253 for (j = 0; j <= nq; j++) { in __vlibm_rem_pio2m()
259 if (nq - j < 4) { in __vlibm_rem_pio2m()
260 k = 4 - (nq - j); in __vlibm_rem_pio2m()
268 for (i = nq + 1; i <= nq + k; i++) { in __vlibm_rem_pio2m()
275 nq += k; in __vlibm_rem_pio2m()
281 nq = nq - j; in __vlibm_rem_pio2m()
[all …]
/titanic_44/usr/src/lib/libnisdb/
H A Dldap_nisdbquery.c625 int i, nq, nn; in filterQuery() local
632 nq = *numQueries; in filterQuery()
633 new = am(myself, nq * sizeof (new[0])); in filterQuery()
635 attr = am(myself, nq * sizeof (attr[0])); in filterQuery()
640 freeQueries(q, nq); in filterQuery()
643 freeObjAttr(*objAttr, nq); in filterQuery()
650 for (i = 0, nn = 0; i < nq; i++) { in filterQuery()
695 int nq, iqc; in createNisPlusEntry() local
707 for (r = 0, nq = 0; r < t->numRulesFromLDAP; r++) { in createNisPlusEntry()
813 if (nq <= 0) in createNisPlusEntry()
[all …]
H A Ddb_mindex2.cc729 int i, na, nq = 0, stat, stat2, numAttrs, ret; in queryLDAP() local
1434 int i, size, nq = 0; in storeLDAP() local
1492 nq++; in storeLDAP()
1526 (nq+count) * sizeof (rv[0])); in storeLDAP()
1528 (nq+count) * sizeof (qa[0])); in storeLDAP()
1531 (nq+count) * sizeof (qold[0])); in storeLDAP()
1534 freeQueries(qa, nq); in storeLDAP()
1536 freeQueries(qat, nq); in storeLDAP()
1538 freeRuleValue(rv, nq); in storeLDAP()
1540 freeRuleValue(rvt, nq); in storeLDAP()
[all …]
H A Ddb_mindex3.cc336 int i, na, nau, nq = 0, xid = 0; in entriesFromLDAPreal() local
398 res = mapFromLDAP(t, q, &nq, dbId, &stat, &oa); in entriesFromLDAPreal()
403 ldap_err2string(stat), nq); in entriesFromLDAPreal()
412 table->mapping.enumEntries = nq; in entriesFromLDAPreal()
557 freeQueries(res, nq); in entriesFromLDAPreal()
638 myself, nq); in entriesFromLDAPreal()
667 for (i = 0, na = 0; i < nq; i++) { in entriesFromLDAPreal()
856 freeObjAttr(oa, nq); in entriesFromLDAPreal()
H A Dldap_map.c817 mapToLDAP(__nis_table_mapping_t *tm, int nq, db_query **old, db_query **new, in mapToLDAP() argument
829 if (tm == 0 || (old == 0 && new == 0) || nq <= 0) in mapToLDAP()
833 if (nq == 1) { in mapToLDAP()
857 dn = am(myself, (firstOnly ? 1 : nq) * maxMatches * sizeof (dn[0])); in mapToLDAP()
858 odn = am(myself, (firstOnly ? 1 : nq) * maxMatches * sizeof (odn[0])); in mapToLDAP()
859 rv = am(myself, (firstOnly ? 1 : nq) * maxMatches * sizeof (rv[0])); in mapToLDAP()
860 tpa = am(myself, (firstOnly ? 1 : nq) * maxMatches * sizeof (tpa[0])); in mapToLDAP()
871 if (nq != 1) in mapToLDAP()
881 myself, NIL(tm->objName), nq, maxMatches); in mapToLDAP()
886 for (iq = 0, rnq = 0; iq < nq; iq++) { in mapToLDAP()
[all …]
/titanic_44/usr/src/lib/libshell/common/bltins/
H A Dmkservice.c284 register Namval_t* nq = sp->disc[ACCEPT]; in Accept() local
291 if (nq) in Accept()
299 if (sh_fun(nq, sp->node, av)) in Accept()
312 register Namval_t* nq; in Action() local
316 nq = sp->disc[CLOSE]; in Action()
318 nq = sp->disc[ACTION]; in Action()
319 if (nq) in Action()
327 r=sh_fun(nq, sp->node, av); in Action()
352 register Namval_t* nq; in setdisc() local
362 if (nq = sp->disc[i]) in setdisc()
[all …]
H A Dshiocmd_solaris.c228 register Namval_t *nq; in sh_newnode() local
232 nq = nv_search(stkptr(stkstd,offset),sh.var_tree,NV_ADD); in sh_newnode()
235 nv_putval(nq,val,fp->flags|NV_NOFREE); in sh_newnode()
237 (*fp->make)(nq); in sh_newnode()
238 return(nq); in sh_newnode()
246 Namval_t *nq,**nodes = (Namval_t**)(dcp+1); in fieldcreate() local
250 if(!(nq=nodes[n])) in fieldcreate()
252 nodes[n] = nq = sh_newnode(fp,np); in fieldcreate()
256 return(nq); in fieldcreate()
257 return(nq); in fieldcreate()
H A Dwhence.c142 Namval_t *nq; in whence() local
188 if(np= nv_bfsearch(name, root, &nq, &notused)) in whence()
/titanic_44/usr/src/cmd/krb5/kadmin/kdcmgr/
H A Dklookup.c54 int len = 0, anslen, hostlen, nq, na, type, class; in main() local
118 nq = ntohs(h->qdcount); in main()
122 if (nq != 1 || na < 1) { in main()
/titanic_44/usr/src/uts/common/avs/ns/rdc/
H A Drdc_diskq.c963 net_queue *nq = &group->ra_queue; in rdc_qfill_shldwakeup() local
966 ASSERT(MUTEX_HELD(&nq->net_qlock)); in rdc_qfill_shldwakeup()
971 if (nq->qfill_sleeping != RDC_QFILL_ASLEEP) in rdc_qfill_shldwakeup()
974 if (nq->qfflags & RDC_QFILLSTOP) in rdc_qfill_shldwakeup()
977 if (nq->qfflags & RDC_QFILLSLEEP) in rdc_qfill_shldwakeup()
990 if (nq->qfill_sleeping == RDC_QFILL_ASLEEP) { in rdc_qfill_shldwakeup()
991 if (nq->hwmhit) { in rdc_qfill_shldwakeup()
992 if (nq->blocks <= RDC_LOW_QBLOCKS) { in rdc_qfill_shldwakeup()
993 nq->hwmhit = 0; in rdc_qfill_shldwakeup()
1684 net_queue *nq = &grp->ra_queue; in rdc_diskq_buf2queue() local
[all …]
H A Drdc_clnt.c1834 net_queue *nq; in rdc_flush_diskq() local
1863 nq = &group->ra_queue; in rdc_flush_diskq()
1890 (nq->qfflags & RDC_QFILLSLEEP)) in rdc_flush_diskq()
1897 (nq->qfflags & RDC_QFILLSLEEP)) { in rdc_flush_diskq()
1925 if ((nq->net_qhead == NULL) || in rdc_flush_diskq()
1926 (nq->net_qhead->seq != RDC_NEWSEQ + 1)) { in rdc_flush_diskq()
/titanic_44/usr/src/cmd/mdb/sparc/mdb/
H A Dproc_isadep.c267 int ns, nd, nq; in pt_fpregs() local
352 nq = 16; in pt_fpregs()
360 nq = 16; in pt_fpregs()
365 nq = 0; in pt_fpregs()
398 for (i = 0; i < nq; i++) { in pt_fpregs()
/titanic_44/usr/src/cmd/nvmeadm/
H A Dnvmeadm_print.c1019 nvme_nqueues_t nq; in nvme_print_feat_nqueues() local
1021 nq.r = (uint32_t)res; in nvme_print_feat_nqueues()
1023 nq.b.nq_nsq + 1, NULL, NULL); in nvme_print_feat_nqueues()
1025 nq.b.nq_ncq + 1, NULL, NULL); in nvme_print_feat_nqueues()
/titanic_44/usr/src/uts/common/os/
H A Dstrsubr.c4211 queue_t *nq; in backenable() local
4223 for (nq = backq(q); nq && !nq->q_qinfo->qi_srvp; nq = backq(nq)) { in backenable()
4224 ASSERT(STRMATED(q->q_stream) || STREAM(q) == STREAM(nq)); in backenable()
4227 if (nq) { in backenable()
4238 if (freezer != curthread || STREAM(q) != STREAM(nq)) { in backenable()
4239 mutex_enter(QLOCK(nq)); in backenable()
4245 ASSERT(MUTEX_HELD(QLOCK(nq))); in backenable()
4248 setqback(nq, pri); in backenable()
4249 qenable_locked(nq); in backenable()
4250 if (freezer != curthread || STREAM(q) != STREAM(nq)) in backenable()
[all …]
/titanic_44/usr/src/uts/common/io/nvme/
H A Dnvme.c1981 nvme_nqueues_t nq = { 0 }; in nvme_set_nqueues() local
1984 nq.b.nq_nsq = nq.b.nq_ncq = *nqueues - 1; in nvme_set_nqueues()
1986 ret = nvme_set_features(nvme, 0, NVME_FEAT_NQUEUES, nq.r, &nq.r); in nvme_set_nqueues()
1994 *nqueues = MIN(*nqueues, MIN(nq.b.nq_nsq, nq.b.nq_ncq) + 1); in nvme_set_nqueues()
/titanic_44/usr/src/uts/common/io/cxgbe/common/
H A Dt4_hw.c2390 int nq = min(n, 32); in t4_config_rss_range() local
2397 cmd.niqid = htons(nq); in t4_config_rss_range()
2403 start += nq; in t4_config_rss_range()
2404 n -= nq; in t4_config_rss_range()
2411 while (nq > 0) { in t4_config_rss_range()
2430 nq -= 3; in t4_config_rss_range()