/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_eventq.c | 38 fmd_eventq_t *eq = fmd_zalloc(sizeof (fmd_eventq_t), FMD_SLEEP); in fmd_eventq_create() local 40 (void) pthread_mutex_init(&eq->eq_lock, NULL); in fmd_eventq_create() 41 (void) pthread_cond_init(&eq->eq_cv, NULL); in fmd_eventq_create() 43 eq->eq_mod = mp; in fmd_eventq_create() 44 eq->eq_stats = stats; in fmd_eventq_create() 45 eq->eq_stats_lock = stats_lock; in fmd_eventq_create() 46 eq->eq_limit = limit; in fmd_eventq_create() 47 eq->eq_sgid = fmd_dispq_getgid(fmd.d_disp, eq); in fmd_eventq_create() 49 return (eq); in fmd_eventq_create() 53 fmd_eventq_destroy(fmd_eventq_t *eq) in fmd_eventq_destroy() argument [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | test.c | 50 if (eq(com[0],"[")) in test() 52 if (!eq(com[--ac], "]")) in test() 86 if (eq(p2, "-o")) in exp() 105 if ((p2 != 0) && eq(p2, "-a")) in e1() 114 if (eq(nxtarg(0), "!")) in e2() 129 if (eq(a, "(")) in e3() 132 if (!eq(nxtarg(0), ")")) in e3() 138 if ((p2 == 0) || (!eq(p2, "=") && !eq(p2, "!="))) in e3() 140 if (eq(a, "-r")) in e3() 142 if (eq(a, "-w")) in e3() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_event.c | 46 static void hermon_eq_poll(hermon_state_t *state, hermon_eqhdl_t eq); 51 static int hermon_eq_handler_init(hermon_state_t *state, hermon_eqhdl_t eq, 53 hermon_eqhdl_t eq, hermon_hw_eqe_t *eqe)); 54 static int hermon_eq_handler_fini(hermon_state_t *state, hermon_eqhdl_t eq); 56 hermon_eqhdl_t eq, hermon_hw_eqe_t *eqe); 58 hermon_eqhdl_t eq, hermon_hw_eqe_t *eqe); 60 hermon_eqhdl_t eq, hermon_hw_eqe_t *eqe); 62 hermon_eqhdl_t eq, hermon_hw_eqe_t *eqe); 64 hermon_eqhdl_t eq, hermon_hw_eqe_t *eqe); 66 hermon_eqhdl_t eq, hermon_hw_eqe_t *eqe); [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_event.c | 47 static void tavor_eq_poll(tavor_state_t *state, tavor_eqhdl_t eq); 52 static int tavor_eq_handler_init(tavor_state_t *state, tavor_eqhdl_t eq, 54 tavor_eqhdl_t eq, tavor_hw_eqe_t *eqe)); 55 static int tavor_eq_handler_fini(tavor_state_t *state, tavor_eqhdl_t eq); 56 static void tavor_eqe_sync(tavor_eqhdl_t eq, tavor_hw_eqe_t *eqe, uint_t flag, 59 tavor_eqhdl_t eq, tavor_hw_eqe_t *eqe); 61 tavor_eqhdl_t eq, tavor_hw_eqe_t *eqe); 63 tavor_eqhdl_t eq, tavor_hw_eqe_t *eqe); 65 tavor_eqhdl_t eq, tavor_hw_eqe_t *eqe); 67 tavor_eqhdl_t eq, tavor_hw_eqe_t *eqe); [all …]
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | sttyparse.c | 64 static int eq(const char *string); 83 if (eq("erase") && --argc) 85 else if (eq("intr") && --argc) 87 else if (eq("quit") && --argc) 89 else if (eq("eof") && --argc) 91 else if (eq("min") && --argc) { 96 } else if (eq("eol") && --argc) 98 else if (eq("eol2") && --argc) 100 else if (eq("time") && --argc) { 105 } else if (eq("kill") && --argc) [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_sge.c | 92 static inline void init_eq(struct adapter *sc, struct sge_eq *eq, 103 static int ctrl_eq_alloc(struct adapter *sc, struct sge_eq *eq); 105 struct sge_eq *eq); 107 struct sge_eq *eq); 108 static int free_eq(struct adapter *sc, struct sge_eq *eq); 148 static inline void copy_to_txd(struct sge_eq *eq, caddr_t from, caddr_t *to, 150 static inline void ring_tx_db(struct adapter *sc, struct sge_eq *eq); 177 reclaimable(struct sge_eq *eq) in reclaimable() argument 181 cidx = eq->spg->cidx; /* stable snapshot */ in reclaimable() 184 if (cidx >= eq->cidx) in reclaimable() [all …]
|
H A D | adapter.h | 310 struct sge_eq eq; /* MUST be first */ member 578 #define EQ_LOCK(eq) mutex_enter(&(eq)->lock) argument 579 #define EQ_UNLOCK(eq) mutex_exit(&(eq)->lock) argument 580 #define EQ_LOCK_ASSERT_OWNED(eq) ASSERT(mutex_owned(&(eq)->lock)) argument 581 #define EQ_LOCK_ASSERT_NOTOWNED(eq) ASSERT(!mutex_owned(&(eq)->lock)) argument 583 #define TXQ_LOCK(txq) EQ_LOCK(&(txq)->eq) 584 #define TXQ_UNLOCK(txq) EQ_UNLOCK(&(txq)->eq) 585 #define TXQ_LOCK_ASSERT_OWNED(txq) EQ_LOCK_ASSERT_OWNED(&(txq)->eq) 586 #define TXQ_LOCK_ASSERT_NOTOWNED(txq) EQ_LOCK_ASSERT_NOTOWNED(&(txq)->eq)
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_queue.c | 36 oce_mq_create(struct oce_dev *dev, struct oce_eq *eq, uint32_t q_len); 45 oce_cq_create(struct oce_dev *dev, struct oce_eq *eq, uint32_t q_len, 54 static int oce_wq_create(struct oce_wq *wq, struct oce_eq *eq); 61 static int oce_rq_create(struct oce_rq *rq, uint32_t if_id, struct oce_eq *eq); 76 struct oce_eq *eq; in oce_eq_create() local 82 eq = kmem_zalloc(sizeof (struct oce_eq), KM_NOSLEEP); in oce_eq_create() 84 if (eq == NULL) { in oce_eq_create() 92 eq->ring = create_ring_buffer(dev, q_len, in oce_eq_create() 95 if (eq->ring == NULL) { in oce_eq_create() 97 "EQ ring alloc failed:0x%p", (void *)eq->ring); in oce_eq_create() [all …]
|
H A D | oce_intr.c | 189 (caddr_t)dev->eq[i], NULL); in oce_setup_handlers() 306 struct oce_eq *eq; in oce_isr() local 315 eq = (struct oce_eq *)(void *)(arg1); in oce_isr() 317 dev = eq->parent; in oce_isr() 319 eqe = RING_GET_CONSUMER_ITEM_VA(eq->ring, struct oce_eqe); in oce_isr() 341 RING_GET(eq->ring, 1); in oce_isr() 342 eqe = RING_GET_CONSUMER_ITEM_VA(eq->ring, struct oce_eqe); in oce_isr() 347 oce_arm_eq(dev, eq->eq_id, num_eqe, B_TRUE, B_TRUE); in oce_isr()
|
/illumos-gate/usr/src/ucbcmd/stty/ |
H A D | sttyparse.c | 40 static int gct(), eq(), encode(); 117 if (eq("ek")) { 121 else if (eq("crt") || eq("newcrt")) { 127 else if (eq("dec")) { 140 else if (eq("raw") || eq("cbreak")) { 144 else if (eq("-raw") || eq("-cbreak") || eq("cooked")) { 148 else if(eq("sane")) { 161 if(eq(speeds[i].string)) 171 if(eq(speeds[i].string)) 182 if(eq(speeds[i].string)) { [all …]
|
/illumos-gate/usr/src/cmd/make/lib/mksh/ |
H A D | macro.cc | 275 wchar_t *eq = (wchar_t *) NULL; in expand_macro() local 481 if ((eq = (wchar_t *) wcschr(colon + 1, in expand_macro() 485 left_tail_len = eq - colon - 1; in expand_macro() 492 eq - colon - 1); in expand_macro() 493 left_tail[eq - colon - 1] = (int) nul_char; in expand_macro() 495 if ((colon = (wchar_t *) wcschr(eq + 1, in expand_macro() 497 tmp_len = colon - eq; in expand_macro() 503 eq + 1, in expand_macro() 504 colon - eq - 1); in expand_macro() 505 right_tail[colon - eq - 1] = in expand_macro() [all …]
|
/illumos-gate/usr/src/cmd/checkeq/ |
H A D | checkeq.c | 51 int start, line, eq, ndel, totdel; in check() local 54 start = eq = line = ndel = totdel = 0; in check() 62 if (eq++) in check() 71 if (eq == 0) in check() 76 eq = 0; in check() 82 } else if (eq && *in == 'd' && *(in+1) == 'e' && in check() 101 if (ndel > 0 && eq > 0) in check() 129 if (eq) in check()
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwgetopt.c | 98 const char *eq = 0; in dwoptnamematches() local 103 for(eq = iplace; *eq; ++eq) { in dwoptnamematches() 104 if (*eq != '=') { in dwoptnamematches() 108 namelen = (eq - iplace); in dwoptnamematches() 112 eq++; in dwoptnamematches() 113 arglen = strlen(eq); in dwoptnamematches() 128 dwoptarg = (char *)eq; in dwoptnamematches() 129 *argloc = (const char *)eq; in dwoptnamematches()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | fm.c | 47 errorq_t eq; in ereportq_pend_walk_init() local 56 if (mdb_vread(&eq, sizeof (eq), addr) == -1) { in ereportq_pend_walk_init() 61 if (!(eq.eq_flags & ERRORQ_NVLIST)) { in ereportq_pend_walk_init() 66 wsp->walk_addr = (uintptr_t)eq.eq_pend; in ereportq_pend_walk_init() 99 errorq_t eq; in ereportq_dump_walk_init() local 108 if (mdb_vread(&eq, sizeof (eq), addr) == -1) { in ereportq_dump_walk_init() 113 if (!(eq.eq_flags & ERRORQ_NVLIST)) { in ereportq_dump_walk_init() 118 wsp->walk_addr = (uintptr_t)eq.eq_dump; in ereportq_dump_walk_init()
|
/illumos-gate/usr/src/lib/libadt_jni/ |
H A D | auditxml_jni | 269 $eventCode{$eventId} = -1 if ($eventType eq 'generic'); 344 if ($type eq 'ADT_UINT32STAR') { # int array 375 } elsif (($type eq 'ADT_UIDSTAR') || 376 ($type eq 'ADT_GIDSTAR')) { # gid_t array 378 $cType = 'gid_t' if ($type eq 'ADT_GIDSTAR'); 410 } elsif ($type eq 'ADT_UINT64STAR') { # long array 437 } elsif ($type eq 'ADT_CHAR') { # string in Java, char in C 455 } elsif ($type eq 'ADT_CHARSTAR') { 485 } elsif ($type eq 'ADT_CHAR2STAR') { # array of string 547 } elsif ($type eq 'ADT_TERMIDSTAR') { [all …]
|
/illumos-gate/usr/src/cmd/print/selector/ |
H A D | print-service | 139 ($command =~ /(en|dis)able/) && ($service eq 'cups') && 154 if ($service eq 'lp') { 200 ($1 eq 'DeviceURI') && 202 ($1 eq 'Info') && 205 ($service eq 'lp') && 211 ($printer{'Accepting'} eq 'Yes') && 234 if ($service eq 'cups') { 270 if ($cmd eq 'print-service') {
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_set.c | 69 if (eq("all", cp)) { in set() 81 if (eq("marks", cp)) { in set() 95 if (eq("named",cp)) { in set() 107 if (eq("nbrreg",cp)) { in set() 119 if (eq("buffers",cp)) { in set() 244 if (eq(cp, "w300")) { in set() 252 } else if (eq(cp, "w1200")) { in set() 256 } else if (eq(cp, "w9600")) { in set() 262 if (eq(op->oname, cp) || op->oabbrev && eq(op->oabbrev, cp)) in set()
|
/illumos-gate/usr/src/cmd/sgs/lex/common/ |
H A D | nrform | 55 if (yymorf .eq. 0) 62 if (yyprev .eq. YYNEWLINE) 66 if (r .eq. 0){ 68 if (z .eq. 0) 80 if (verif(t) .eq. state){ 95 if (t <= yytop .and. verif(t) .eq. state){ 141 if (yyback(atable(ilsp), -r) .eq. 1) 157 if (yytext(1) .eq. 0){ 172 if (vstop(isub) .eq. m){
|
/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/ |
H A D | hermon_event.h | 249 #define ARM_EQ_INDEX(eq) \ argument 250 (((eq >> 2) * PAGESIZE) + (0x0800 + ((eq & 0x03) * 0x08))) 286 int (*eq_func)(hermon_state_t *state, hermon_eqhdl_t eq, 298 void hermon_eq_overflow_handler(hermon_state_t *state, hermon_eqhdl_t eq,
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.exp.c | 120 if (**vp && eq(**vp, S_BARBAR /* "||" */)) { in exp0() 144 if (**vp && eq(**vp, S_ANDAND /* "&&" */)) { in exp1() 168 if (**vp && eq(**vp, S_BAR /* "|" */)) { in exp2() 192 if (**vp && eq(**vp, S_HAT /* "^" */)) { in exp2a() 216 if (**vp && eq(**vp, S_AND /* "&" */)) { in exp2b() 253 i = eq(p1, p2); in exp2c() 257 i = !eq(p1, p2); in exp2c() 291 if (**vp && eq(**vp, S_EQ /* "=" */)) in exp3() 445 if (eq(**vp, S_EXAS /* "!" */)) { in exp6() 455 if (eq(**vp, S_TIL /* "~" */)) { in exp6() [all …]
|
H A D | sh.set.c | 76 } else if (*v && eq(*v, S_EQ /* "=" */)) { in doset() 84 if (eq(p, S_LPAR /* "(" */)) { in doset() 109 if (eq(vp, S_path /* "path" */)) { in doset() 112 } else if (eq(vp, S_histchars /* "histchars" */)) { in doset() 116 } else if (eq(vp, S_user /* "user" */)) in doset() 118 else if (eq(vp, S_term /* "term" */)) in doset() 120 else if (eq(vp, S_home /* "home" */)) in doset() 123 else if (eq(vp, S_filec /* "filec" */)) in doset() 125 else if (eq(vp, S_cdpath /* "cdpath" */)) in doset() 250 if (eq(vp, S_path /* "path" */)) { in dolet() [all …]
|
/illumos-gate/usr/src/cmd/auditrecord/ |
H A D | audit_record_xml | 60 next if ($event->getOmit eq 'always'); 82 next if $entryId eq 'subject'; 83 next if $entryId eq 'return'; 88 $token = "[$token]" if ($opt eq 'optional');
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | microcode_amd.c | 149 struct _buf *eq; in ucode_equiv_cpu_amd() local 155 if ((eq = kobj_open_file(name)) == (struct _buf *)-1) { in ucode_equiv_cpu_amd() 160 if (kobj_get_filesize(eq, &size) < 0) { in ucode_equiv_cpu_amd() 161 kobj_close_file(eq); in ucode_equiv_cpu_amd() 168 kobj_close_file(eq); in ucode_equiv_cpu_amd() 175 kobj_close_file(eq); in ucode_equiv_cpu_amd() 179 count = kobj_read_file(eq, (char *)ucode_eqtbl_amd, in ucode_equiv_cpu_amd() 181 kobj_close_file(eq); in ucode_equiv_cpu_amd()
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | dm_platform.c | 117 char *tok, *lasts, *eq; in parse_action_string() local 136 if ((eq = strchr(tok, '=')) != NULL && eq[1] != 0) { in parse_action_string() 138 *eq = 0; in parse_action_string() 139 eq++; in parse_action_string() 148 if (isnumber(eq)) { in parse_action_string() 152 strtoull(eq, NULL, 0)) != 0) in parse_action_string() 158 eq) != 0) in parse_action_string() 161 } else if (eq == NULL) { in parse_action_string()
|
/illumos-gate/usr/src/cmd/checknr/ |
H A D | checknr.c | 162 static int eq(char *s1, char *s2); 313 if (eq(mac, "de")) in process() 416 if (stktop >= 0 && eq(mac, br[stk[stktop].opno].clbr)) in chkcmd() 421 if (eq(mac, br[i].opbr)) { in chkcmd() 436 if (eq(mac, br[i].clbr)) { in chkcmd() 455 if (eq(mac, br[stk[j].opno].clbr)) { in nomatch() 493 eq(char *s1, char *s2) in eq() function 511 if (eq(mac, ".")) in checkknown()
|