/illumos-gate/usr/src/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.neglquant.d | 68 this->i = 1; 69 this->val = (1 << 63) - 1; 71 @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 72 this->i++; 73 this->val = ((1 << 63) - 1) / this->i; 75 @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 76 this->i++; 77 this->val = ((1 << 63) - 1) / this->i; 79 @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 80 this->i++; [all …]
|
H A D | tst.negquant.d | 68 this->i = 1; 69 this->val = (1 << 63) - 1; 71 @["f-market"] = quantize(this->i, this->val); 72 this->i <<= 1; 73 this->val >>= 1; 75 @["f-market"] = quantize(this->i, this->val); 76 this->i <<= 1; 77 this->val >>= 1; 79 @["f-market"] = quantize(this->i, this->val); 80 this->i <<= 1; [all …]
|
/illumos-gate/usr/src/lib/librstp/common/ |
H A D | port.c | 47 PORT_T* this; in STP_port_create() local 53 for (this = stpm->ports; this; this = this->next) { in STP_port_create() 54 if (this->port_index == port_index) { in STP_port_create() 59 STP_NEW_IN_LIST(this, PORT_T, stpm->ports, "port create"); in STP_port_create() 61 this->owner = stpm; in STP_port_create() 62 this->machines = NULL; in STP_port_create() 63 this->port_index = port_index; in STP_port_create() 64 this->port_name = strdup (STP_OUT_get_port_name (port_index)); in STP_port_create() 65 this->uptime = 0; in STP_port_create() 69 this->admin_non_stp = port_cfg.admin_non_stp; in STP_port_create() [all …]
|
H A D | stpm.c | 32 _stp_stpm_init_machine (STATE_MACH_T* this) in _stp_stpm_init_machine() argument 34 this->State = BEGIN; in _stp_stpm_init_machine() 35 (*(this->concreteEnterState)) (this); in _stp_stpm_init_machine() 40 _stp_stpm_iterate_machines (STPM_T* this, in _stp_stpm_iterate_machines() argument 49 for (stater = this->machines; stater; stater = stater->next) { in _stp_stpm_iterate_machines() 58 for (port = this->ports; port; port = port->next) { in _stp_stpm_iterate_machines() 72 _stp_stpm_init_data (STPM_T* this) in _stp_stpm_init_data() argument 74 STP_VECT_create (&this->rootPrio, in _stp_stpm_init_data() 75 &this->BrId, in _stp_stpm_init_data() 77 &this->BrId, in _stp_stpm_init_data() [all …]
|
H A D | statmch.c | 39 STATE_MACH_T *this; in STP_state_mach_create() local 41 STP_MALLOC(this, STATE_MACH_T, "state machine"); in STP_state_mach_create() 43 this->State = BEGIN; in STP_state_mach_create() 44 this->name = (char*) strdup (name); in STP_state_mach_create() 45 this->changeState = False; in STP_state_mach_create() 47 this->debug = False; in STP_state_mach_create() 48 this->ignoreHop2State = BEGIN; in STP_state_mach_create() 50 this->concreteEnterState = concreteEnterState; in STP_state_mach_create() 51 this->concreteCheckCondition = concreteCheckCondition; in STP_state_mach_create() 52 this->concreteGetStatName = concreteGetStatName; in STP_state_mach_create() [all …]
|
H A D | roletrns.c | 54 setSyncBridge (STATE_MACH_T *this) in setSyncBridge() argument 58 for (port = this->owner.port->owner->ports; port; port = port->next) { in setSyncBridge() 64 setReRootBridge (STATE_MACH_T *this) in setReRootBridge() argument 68 for (port = this->owner.port->owner->ports; port; port = port->next) { in setReRootBridge() 74 compute_all_synced (PORT_T* this) in compute_all_synced() argument 78 for (port = this->owner->ports; port; port = port->next) { in compute_all_synced() 79 if (port->port_index == this->port_index) continue; in compute_all_synced() 89 compute_re_rooted (PORT_T* this) in compute_re_rooted() argument 93 for (port = this->owner->ports; port; port = port->next) { in compute_re_rooted() 94 if (port->port_index == this->port_index) continue; in compute_re_rooted() [all …]
|
H A D | topoch.c | 55 flush (STATE_MACH_T *this, char* reason) /* 17.19.9 */ in flush() argument 57 register PORT_T* port = this->owner.port; in flush() 61 if (this->debug) { in flush() 74 setTcPropBridge (STATE_MACH_T* this, char* reason) /* 17.19.14 */ in setTcPropBridge() argument 76 register PORT_T* port = this->owner.port; in setTcPropBridge() 86 if (this->debug) { in setTcPropBridge() 99 newTcWhile (STATE_MACH_T* this) /* 17.19.7 */ in newTcWhile() argument 101 register PORT_T* port = this->owner.port; in newTcWhile() 110 STP_topoch_enter_state (STATE_MACH_T* this) in STP_topoch_enter_state() argument 112 register PORT_T* port = this->owner.port; in STP_topoch_enter_state() [all …]
|
H A D | stp_in.c | 37 register STPM_T* this; in stp_in_stpm_create() local 40 this = stpapi_stpm_find (vlan_id); in stp_in_stpm_create() 41 if (this) { /* it had just been created :( */ in stp_in_stpm_create() 43 return this; in stp_in_stpm_create() 46 this = STP_stpm_create (vlan_id, name); in stp_in_stpm_create() 47 if (! this) { /* can't create stpm :( */ in stp_in_stpm_create() 53 return this; in stp_in_stpm_create() 60 register STPM_T* this; in _stp_in_stpm_enable() local 65 this = stpapi_stpm_find (vlan_id); in _stp_in_stpm_enable() 80 if (! this) { /* it had not yet been created */ in _stp_in_stpm_enable() [all …]
|
H A D | transmit.c | 118 txTcn (STATE_MACH_T* this) in txTcn() argument 124 if (this->owner.port->skip_tx > 0) { in txTcn() 125 if (1 == this->owner.port->skip_tx) in txTcn() 127 this->owner.port->port_name); in txTcn() 128 this->owner.port->skip_tx--; in txTcn() 133 if (this->owner.port->admin_non_stp) return 1; in txTcn() 134 port_index = this->owner.port->port_index; in txTcn() 135 vlan_id = this->owner.port->owner->vlan_id; in txTcn() 142 if (this->debug) in txTcn() 143 stp_trace ("port %s txTcn", this->owner.port->port_name); in txTcn() [all …]
|
H A D | sttrans.c | 41 disableLearning (STATE_MACH_T *this) in disableLearning() argument 43 register PORT_T *port = this->owner.port; in disableLearning() 49 enableLearning (STATE_MACH_T *this) in enableLearning() argument 51 register PORT_T *port = this->owner.port; in enableLearning() 57 disableForwarding (STATE_MACH_T *this) in disableForwarding() argument 59 register PORT_T *port = this->owner.port; in disableForwarding() 65 enableForwarding (STATE_MACH_T *this) in enableForwarding() argument 67 register PORT_T *port = this->owner.port; in enableForwarding() 74 STP_sttrans_enter_state (STATE_MACH_T *this) in STP_sttrans_enter_state() argument 76 register PORT_T *port = this->owner.port; in STP_sttrans_enter_state() [all …]
|
H A D | portinfo.c | 61 rcvBpdu (STATE_MACH_T* this) in rcvBpdu() argument 64 register PORT_T* port = this->owner.port; in rcvBpdu() 68 if (this->debug) { in rcvBpdu() 91 if (this->debug) { in rcvBpdu() 105 if (this->debug) { in rcvBpdu() 119 if (this->debug) { in rcvBpdu() 127 if (this->debug) { in rcvBpdu() 148 recordProposed (STATE_MACH_T* this, char* reason) in recordProposed() argument 150 register PORT_T* port = this->owner.port; in recordProposed() 161 setTcFlags (STATE_MACH_T* this) in setTcFlags() argument [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_waits.c | 104 evWait *this, *prev; in evUnwait() local 108 this = id.opaque; in evUnwait() 109 INSIST(this != NULL); in evUnwait() 110 wl = evGetWaitList(ctx, this->tag, 0); in evUnwait() 112 for (prev = NULL, this = wl->first; in evUnwait() 113 this != NULL; in evUnwait() 114 prev = this, this = this->next) in evUnwait() 115 if (this == (evWait *)id.opaque) { in evUnwait() 118 prev->next = this->next; in evUnwait() 120 wl->first = this->next; in evUnwait() [all …]
|
H A D | eventlib.c | 230 new->u.accept.this = HEAD(ctx->accepts); in evGetNext() 240 new->u.stream.this = ctx->strDone; in evGetNext() 252 new->u.wait.this = ctx->waitDone.first; in evGetNext() 392 new->u.timer.this = nextTimer; in evGetNext() 453 new->u.file.this = fid; in evGetNext() 489 evAccept *this = ev->u.accept.this; in evDispatch() local 493 this->conn->fd, this->fd, in evDispatch() 494 this->conn->func, this->conn->uap); in evDispatch() 495 errno = this->ioErrno; in evDispatch() 496 (this->conn->func)(opaqueCtx, this->conn->uap, this->fd, in evDispatch() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/zh/common/ |
H A D | zh_TW-iso2022-7%zh_TW-euc.c | 518 aisotoeuc(TWNiconv *this, char **inbuf, size_t *inbufsize, in aisotoeuc() argument 521 this->iobuf->myin = *inbuf; in aisotoeuc() 522 this->iobuf->myout = *outbuf; in aisotoeuc() 523 this->iobuf->insize = *inbufsize; in aisotoeuc() 524 this->iobuf->outsize = *outbufsize; in aisotoeuc() 528 if ((ret = yescSeq(this->cntl, this->iobuf)) == -1) in aisotoeuc() 533 if (zconversion(this->conv, this->iobuf) == -1) in aisotoeuc() 537 *inbuf = this->iobuf->myin; in aisotoeuc() 538 *outbuf = this->iobuf->myout; in aisotoeuc() 539 *inbufsize = this->iobuf->insize; in aisotoeuc() [all …]
|
/illumos-gate/usr/src/common/ficl/softcore/ |
H A D | string.fr | 24 : get-count ( 2:this -- count ) my=[ .count get ] ; 25 : set-count ( count 2:this -- ) my=[ .count set ] ; 27 : ?empty ( 2:this -- flag ) --> get-count 0= ; 29 : get-buflen ( 2:this -- len ) my=[ .buflen get ] ; 30 : set-buflen ( len 2:this -- ) my=[ .buflen set ] ; 32 : get-buf ( 2:this -- ptr ) my=[ .buf get-ptr ] ; 33 : set-buf { ptr len 2:this -- } 34 ptr this my=[ .buf set-ptr ] 35 len this my=> set-buflen 39 : clr-buf ( 2:this -- ) [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/ |
H A D | Watch-fksmb.d | 30 this->pn = copyinstr(arg0); 31 this->sr = (userland pid`smb_request_t *)arg1; 34 this->pn, 35 this->sr->smb_mid, 36 this->sr->smb_uid, 37 this->sr->smb_tid); 42 this->pn = copyinstr(arg0); 43 this->sr = (userland pid`smb_request_t *)arg1; 46 this->pn, 47 this->sr->smb_mid, [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_headers.h | 100 #define READLOCK(this, retval, msg) \ argument 101 LOCK(this->acqnonexcl, retval, msg) 102 #define READUNLOCK(this, retval, msg) \ argument 103 LOCK(this->relnonexcl, retval, msg) 106 #define READLOCKV(this, msg) \ argument 107 LOCKV(this->acqnonexcl, msg) 108 #define READUNLOCKV(this, msg) \ argument 109 LOCKV(this->relnonexcl, msg) 112 #define READLOCKNR(this, rescode, msg) \ argument 113 LOCKVAL(this->acqnonexcl, msg, rescode) [all …]
|
/illumos-gate/usr/src/cmd/latencytop/ |
H A D | latencytop.d | 88 this unsigned int priority; 89 this string cause; 154 this unsigned long long end; 155 this unsigned long long now; 159 this->end = lt_timestamps[curpsinfo->pr_pid, curlwpsinfo->pr_lwpid]; 160 this->now = timestamp; 162 this->end = (this->end != 0 && this->end != self->lt_sleep_start) 163 ? this->end : this->now; 165 self->lt_sch_delay = this->now - this->end; 166 self->lt_sleep_duration = this->end - self->lt_sleep_start; [all …]
|
/illumos-gate/usr/src/cmd/dtrace/demo/sched/ |
H A D | whoqueue.d | 36 this->len = ++qlen[this->cpu = args[2]->cpu_id]; 41 /this->len > maxlen && spec[this->cpu]/ 47 discard(spec[this->cpu]); 51 /this->len > maxlen/ 57 maxlen = this->len; 58 longtime[this->cpu] = timestamp; 63 this->spec = spec[this->cpu] = speculation(); 64 speculate(this->spec); 65 printf("Run queue of length %d:\n", this->len); 69 /(this->in = in[args[0]->pr_addr]) && [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/json/ |
H A D | tst.usdt.d | 28 this->value = (int *)alloca(sizeof (int)); 29 *this->value = 1; 30 copyout(this->value, arg0, sizeof (int)); 35 this->j = copyinstr(arg0); 39 /json(this->j, "finished") == NULL && json(this->j, "action") != "ignore"/ 41 this->index = strtoll(json(this->j, "index")); 42 this->size = json(this->j, "sizes[2]"); 43 this->odd = json(this->j, "facts.odd"); 44 this->even = json(this->j, "facts.even"); 45 printf("[%d] sz %s odd %s even %s\n", this->index, this->size, [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/print/ |
H A D | tst.array.d | 41 this->f = (foo_t *)alloca(sizeof (foo_t)); 43 this->f->a[0] = 1; 44 this->f->a[1] = 2; 45 this->f->a[2] = 3; 46 this->f->b[0] = 'a'; 47 this->f->b[1] = 'b'; 48 this->f->b[2] = 0; 49 this->f->c[0].alpha = 5; 50 this->f->c[1].alpha = 6; 51 this->f->c[2].alpha = 7; [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.ddi_pathname.d | 31 this->dev = (struct dev_info *)alloca(sizeof (struct dev_info)); 32 this->minor1 = 34 this->minor2 = 36 this->minor3 = 39 this->minor1->d_minor.dev = 0; 40 this->minor1->next = this->minor2; 42 this->minor2->d_minor.dev = 0; 43 this->minor2->next = this->minor3; 45 this->minor3->d_minor.dev = 0; 46 this->minor3->next = this->minor1; [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | gen_ho.c | 54 static void ho_close(struct irs_ho *this); 55 static struct hostent * ho_byname(struct irs_ho *this, const char *name); 56 static struct hostent * ho_byname2(struct irs_ho *this, const char *name, 58 static struct hostent * ho_byaddr(struct irs_ho *this, const void *addr, 60 static struct hostent * ho_next(struct irs_ho *this); 61 static void ho_rewind(struct irs_ho *this); 62 static void ho_minimize(struct irs_ho *this); 63 static struct __res_state * ho_res_get(struct irs_ho *this); 64 static void ho_res_set(struct irs_ho *this, 67 static struct addrinfo * ho_addrinfo(struct irs_ho *this, const char *name, [all …]
|
H A D | lcl_ho.c | 123 static void ho_close(struct irs_ho *this); 124 static struct hostent * ho_byname(struct irs_ho *this, const char *name); 125 static struct hostent * ho_byname2(struct irs_ho *this, const char *name, 127 static struct hostent * ho_byaddr(struct irs_ho *this, const void *addr, 129 static struct hostent * ho_next(struct irs_ho *this); 130 static void ho_rewind(struct irs_ho *this); 131 static void ho_minimize(struct irs_ho *this); 132 static struct __res_state * ho_res_get(struct irs_ho *this); 133 static void ho_res_set(struct irs_ho *this, 136 static struct addrinfo * ho_addrinfo(struct irs_ho *this, const char *name, [all …]
|
H A D | lcl_nw.c | 102 static struct __res_state * nw_res_get(struct irs_nw *this); 103 static void nw_res_set(struct irs_nw *this, 107 static int init(struct irs_nw *this); 118 irs_lcl_nw(struct irs_acc *this) { in irs_lcl_nw() argument 122 UNUSED(this); in irs_lcl_nw() 150 nw_close(struct irs_nw *this) { in nw_close() argument 151 struct pvt *pvt = (struct pvt *)this->private; in nw_close() 153 nw_minimize(this); in nw_close() 159 memput(this, sizeof *this); in nw_close() 163 nw_byaddr(struct irs_nw *this, void *net, int length, int type) { in nw_byaddr() argument [all …]
|