| /netbsd/src/external/bsd/ntp/dist/ntpd/ |
| D | refclock_irig.c | 314 struct irigunit *up; in irig_start() local 337 up = emalloc_zero(sizeof(*up)); in irig_start() 346 free(up); in irig_start() 349 pp->unitptr = up; in irig_start() 357 up->tc = MINTC; in irig_start() 358 up->decim = 1; in irig_start() 359 up->gain = 127; in irig_start() 365 up->comp[0] = up->comp[OFFSET] = 0.; in irig_start() 366 up->comp[1] = 1; up->comp[OFFSET + 1] = -1.; in irig_start() 367 up->comp[2] = 3; up->comp[OFFSET + 2] = -3.; in irig_start() [all …]
|
| D | refclock_chu.c | 469 struct chuunit *up; in chu_start() local 515 up = emalloc_zero(sizeof(*up)); in chu_start() 517 pp->unitptr = up; in chu_start() 525 free(up); in chu_start() 535 strlcpy(up->ident, "CHU", sizeof(up->ident)); in chu_start() 536 memcpy(&pp->refid, up->ident, 4); in chu_start() 537 DTOLFP(CHAR, &up->charstamp); in chu_start() 545 up->fd_audio = fd_audio; in chu_start() 546 up->gain = 127; in chu_start() 547 up->comp[0] = up->comp[OFFSET] = 0.; in chu_start() [all …]
|
| D | refclock_jjy.c | 443 …%d iTimestampCount=%d iLen=%d\n", sFunc, up->iProcessState, up->bLineError, up->iCommandSeq, up->i… 456 struct jjyunit *up ; in jjy_start() local 469 up = emalloc( sizeof(*up) ) ; in jjy_start() 470 if ( up == NULL ) { in jjy_start() 474 memset ( up, 0, sizeof(*up) ) ; in jjy_start() 476 up->bInitError = FALSE ; in jjy_start() 477 up->iProcessState = JJY_PROCESS_STATE_IDLE ; in jjy_start() 478 up->bReceiveFlag = FALSE ; in jjy_start() 479 up->iCommandSeq = 0 ; in jjy_start() 480 up->iLineCount = 0 ; in jjy_start() [all …]
|
| D | refclock_gpsdjson.c | 374 static int syslogok(clockprocT * const pp, gpsd_unitT * const up); 420 gpsd_unitT * const up) in syslogok() argument 423 || (0 == up->logthrottle ) in syslogok() 424 || (LOGTHROTTLE == up->logthrottle ); in syslogok() 426 up->logthrottle = LOGTHROTTLE; in syslogok() 506 gpsd_unitT * up; in gpsd_start() local 518 while ((up = *uscan) != NULL && up->unit != (unit & 0x7F)) in gpsd_start() 519 uscan = &up->next_unit; in gpsd_start() 520 if (up == NULL) { in gpsd_start() 522 up = emalloc_zero(sizeof(*up)); in gpsd_start() [all …]
|
| D | refclock_wwv.c | 638 struct wwvunit *up; in wwv_start() local 664 up = emalloc_zero(sizeof(*up)); in wwv_start() 672 free(up); in wwv_start() 675 pp->unitptr = up; in wwv_start() 687 up->comp[0] = up->comp[OFFSET] = 0.; in wwv_start() 688 up->comp[1] = 1.; up->comp[OFFSET + 1] = -1.; in wwv_start() 689 up->comp[2] = 3.; up->comp[OFFSET + 2] = -3.; in wwv_start() 692 up->comp[i] = up->comp[i - 1] + step; in wwv_start() 693 up->comp[OFFSET + i] = -up->comp[i]; in wwv_start() 697 DTOLFP(1. / WWV_SEC, &up->tick); in wwv_start() [all …]
|
| D | refclock_jupiter.c | 181 struct instance * up; in jupiter_start() local 197 up = emalloc_zero(sizeof(*up)); in jupiter_start() 198 up->peer = peer; in jupiter_start() 206 free(up); in jupiter_start() 209 pp->unitptr = up; in jupiter_start() 218 up->assert = 1; in jupiter_start() 219 up->hardpps = 0; in jupiter_start() 224 if (time_pps_create(fd, &up->pps_handle) < 0) { in jupiter_start() 225 up->pps_handle = 0; in jupiter_start() 229 else if (!jupiter_ppsapi(up)) in jupiter_start() [all …]
|
| D | refclock_mx4200.c | 213 register struct mx4200unit *up; in mx4200_start() local 229 up = emalloc_zero(sizeof(*up)); in mx4200_start() 238 free(up); in mx4200_start() 241 pp->unitptr = up; in mx4200_start() 264 register struct mx4200unit *up; in mx4200_shutdown() local 268 up = pp->unitptr; in mx4200_shutdown() 271 if (NULL != up) in mx4200_shutdown() 272 free(up); in mx4200_shutdown() 286 register struct mx4200unit *up; in mx4200_config() local 291 up = pp->unitptr; in mx4200_config() [all …]
|
| D | refclock_palisade.c | 304 struct palisade_unit *up; in palisade_start() local 344 up = emalloc_zero(sizeof(*up)); in palisade_start() 346 up->type = CLK_TYPE(peer); in palisade_start() 347 switch (up->type) { in palisade_start() 393 free(up); in palisade_start() 408 free(up); in palisade_start() 415 pp->unitptr = up; in palisade_start() 424 up->leap_status = 0; in palisade_start() 425 up->unit = (short) unit; in palisade_start() 426 up->rpt_status = TSIP_PARSED_EMPTY; in palisade_start() [all …]
|
| D | refclock_acts.c | 249 struct actsunit *up; in acts_start() local 256 up = emalloc_zero(sizeof(struct actsunit)); in acts_start() 257 up->unit = unit; in acts_start() 259 pp->unitptr = up; in acts_start() 272 up->bufptr = up->buf; in acts_start() 292 struct actsunit *up; in acts_shutdown() local 299 up = pp->unitptr; in acts_shutdown() 301 free(up); in acts_shutdown() 313 struct actsunit *up; in acts_receive() local 316 char tbuf[sizeof(up->buf)]; in acts_receive() [all …]
|
| D | refclock_as2201.c | 162 register struct as2201unit *up; in as2201_start() local 178 up = emalloc_zero(sizeof(*up)); in as2201_start() 187 free(up); in as2201_start() 190 pp->unitptr = up; in as2201_start() 198 up->lastptr = up->stats; in as2201_start() 199 up->index = 0; in as2201_start() 213 register struct as2201unit *up; in as2201_shutdown() local 217 up = pp->unitptr; in as2201_shutdown() 220 if (NULL != up) in as2201_shutdown() 221 free(up); in as2201_shutdown() [all …]
|
| D | refclock_true.c | 221 struct true_unit *up; in true_debug() local 225 up = pp->unitptr; in true_debug() 228 now_debugging = (up->debug != NULL); in true_debug() 236 "/tmp/true%d.debug", up->unit); in true_debug() 239 if (fd >= 0 && (up->debug = fdopen(fd, "w"))) { in true_debug() 243 setvbuf(up->debug, buf, _IOLBF, BUFSIZ); in true_debug() 245 setlinebuf(up->debug); in true_debug() 249 fclose(up->debug); in true_debug() 250 up->debug = NULL; in true_debug() 254 if (up->debug) { in true_debug() [all …]
|
| D | refclock_neoclock4x.c | 166 struct neoclock4x_unit *up; in neoclock4x_start() local 288 up = (struct neoclock4x_unit *) emalloc(sizeof(struct neoclock4x_unit)); in neoclock4x_start() 289 if(!(up)) in neoclock4x_start() 296 memset((char *)up, 0, sizeof(struct neoclock4x_unit)); in neoclock4x_start() 299 pp->unitptr = up; in neoclock4x_start() 319 up->leap_status = 0; in neoclock4x_start() 320 up->unit = unit; in neoclock4x_start() 321 strlcpy(up->firmware, "?", sizeof(up->firmware)); in neoclock4x_start() 322 up->firmwaretag = '?'; in neoclock4x_start() 323 strlcpy(up->serial, "?", sizeof(up->serial)); in neoclock4x_start() [all …]
|
| D | refclock_wwvb.c | 186 register struct wwvbunit *up; in wwvb_start() local 202 up = emalloc_zero(sizeof(*up)); in wwvb_start() 211 free(up); in wwvb_start() 214 pp->unitptr = up; in wwvb_start() 236 struct wwvbunit * up; in wwvb_shutdown() local 239 up = pp->unitptr; in wwvb_shutdown() 242 if (NULL != up) in wwvb_shutdown() 243 free(up); in wwvb_shutdown() 255 struct wwvbunit *up; in wwvb_receive() local 274 up = pp->unitptr; in wwvb_receive() [all …]
|
| D | refclock_arbiter.c | 153 register struct arbunit *up; in arb_start() local 169 up = emalloc_zero(sizeof(*up)); in arb_start() 178 free(up); in arb_start() 181 pp->unitptr = up; in arb_start() 193 free(up); in arb_start() 213 register struct arbunit *up; in arb_shutdown() local 217 up = pp->unitptr; in arb_shutdown() 220 if (NULL != up) in arb_shutdown() 221 free(up); in arb_shutdown() 233 register struct arbunit *up; in arb_receive() local [all …]
|
| D | refclock_hpgps.c | 158 register struct hpgpsunit *up; in hpgps_start() local 182 up = emalloc_zero(sizeof(*up)); in hpgps_start() 191 free(up); in hpgps_start() 194 pp->unitptr = up; in hpgps_start() 202 up->tzhour = 0; in hpgps_start() 203 up->tzminute = 0; in hpgps_start() 205 *up->statscrn = '\0'; in hpgps_start() 206 up->lastptr = up->statscrn; in hpgps_start() 207 up->pollcnt = 2; in hpgps_start() 213 up->linecnt = 1; in hpgps_start() [all …]
|
| D | refclock_nmea.c | 361 nmea_unit * const up = emalloc_zero(sizeof(*up)); in nmea_start() local 397 pp->unitptr = (caddr_t)up; in nmea_start() 403 memset(&up->last_reftime, 0xFF, sizeof(up->last_reftime)); in nmea_start() 404 memset(&up->last_gpsdate, 0x00, sizeof(up->last_gpsdate)); in nmea_start() 406 up->cksum_type[NMEA_GPRMC] = CHECK_CSVALID; in nmea_start() 408 up->ppsapi_fd = -1; in nmea_start() 410 ZERO(up->tally); in nmea_start() 450 nmea_unit * const up = (nmea_unit *)pp->unitptr; in nmea_shutdown() local 454 if (up != NULL) { in nmea_shutdown() 456 if (up->ppsapi_lit) in nmea_shutdown() [all …]
|
| D | refclock_shm.c | 224 struct shmunit * const up = emalloc_zero(sizeof(*up)); in shm_start() local 231 up->forall = (unit >= 2) && !(peer->ttl & SHM_MODE_PRIVATE); in shm_start() 233 up->shm = getShmTime(unit, up->forall); in shm_start() 239 if (up->shm != 0) { in shm_start() 240 pp->unitptr = up; in shm_start() 241 up->shm->precision = PRECISION; in shm_start() 242 peer->precision = up->shm->precision; in shm_start() 243 up->shm->valid = 0; in shm_start() 244 up->shm->nsamples = NSAMPLES; in shm_start() 247 up->max_delay = 5; in shm_start() [all …]
|
| D | refclock_arc.c | 565 #define ENQUEUE(up) \ argument 598 register struct arcunit *up = pp->unitptr; in arc_event_handler() local 605 c = up->cmdqueue[0]; /* Next char to be sent. */ in arc_event_handler() 608 { up->cmdqueue[i] = up->cmdqueue[i+1]; } in arc_event_handler() 620 ENQUEUE(up); in arc_event_handler() 632 register struct arcunit *up; in arc_start() local 705 up = emalloc_zero(sizeof(*up)); in arc_start() 714 free(up); in arc_start() 717 pp->unitptr = up; in arc_start() 747 up->next_resync = current_time + INITIAL_RESYNC_DELAY + (67*unit)%1009; in arc_start() [all …]
|
| /netbsd/src/external/lgpl3/gmp/dist/mpn/generic/ |
| D | sqr_basecase.c | 42 #define MPN_SQR_DIAGONAL(rp, up, n) \ argument 43 mpn_sqr_diagonal (rp, up, n) 45 #define MPN_SQR_DIAGONAL(rp, up, n) \ argument 51 ul = (up)[_i]; \ 59 #define MPN_SQR_DIAG_ADDLSH1(rp, tp, up, n) \ argument 60 mpn_sqr_diag_addlsh1 (rp, tp, up, n) 63 #define MPN_SQR_DIAG_ADDLSH1(rp, tp, up, n) \ argument 66 MPN_SQR_DIAGONAL (rp, up, n); \ 71 #define MPN_SQR_DIAG_ADDLSH1(rp, tp, up, n) \ argument 74 MPN_SQR_DIAGONAL (rp, up, n); \ [all …]
|
| D | mul.c | 115 mp_srcptr up, mp_size_t un, in mpn_mul() argument 120 ASSERT (! MPN_OVERLAP_P (prodp, un+vn, up, un)); in mpn_mul() 129 mpn_mul_basecase (prodp, up, un, vp, vn); in mpn_mul() 133 mpn_mul_n (prodp, up, vp, un); in mpn_mul() 147 mpn_mul_basecase (prodp, up, un, vp, vn); in mpn_mul() 178 mpn_mul_basecase (prodp, up, MUL_BASECASE_MAX_UN, vp, vn); in mpn_mul() 181 up += MUL_BASECASE_MAX_UN; in mpn_mul() 185 mpn_mul_basecase (prodp, up, MUL_BASECASE_MAX_UN, vp, vn); in mpn_mul() 190 up += MUL_BASECASE_MAX_UN; in mpn_mul() 195 mpn_mul_basecase (prodp, up, un, vp, vn); in mpn_mul() [all …]
|
| D | sbpi1_bdiv_q.c | 48 mp_ptr up, mp_size_t un, in mpn_sbpi1_bdiv_q() argument 59 ASSERT (up == qp || !MPN_OVERLAP_P (up, un, qp, un - dn)); in mpn_sbpi1_bdiv_q() 66 q = dinv * up[0]; in mpn_sbpi1_bdiv_q() 67 hi = mpn_addmul_1 (up, dp, dn, q); in mpn_sbpi1_bdiv_q() 69 ASSERT (up[0] == 0); in mpn_sbpi1_bdiv_q() 73 hi += up[dn]; in mpn_sbpi1_bdiv_q() 74 cy += hi < up[dn]; in mpn_sbpi1_bdiv_q() 75 up[dn] = hi; in mpn_sbpi1_bdiv_q() 76 up++; in mpn_sbpi1_bdiv_q() 78 q = dinv * up[0]; in mpn_sbpi1_bdiv_q() [all …]
|
| /netbsd/src/usr.sbin/user/ |
| D | user.c | 735 setdefaults(user_t *up) in setdefaults() argument 758 if (fprintf(fp, "group\t\t%s\n", up->u_primgrp) <= 0 || in setdefaults() 759 fprintf(fp, "base_dir\t%s\n", up->u_basedir) <= 0 || in setdefaults() 760 fprintf(fp, "skel_dir\t%s\n", up->u_skeldir) <= 0 || in setdefaults() 761 fprintf(fp, "shell\t\t%s\n", up->u_shell) <= 0 || in setdefaults() 763 fprintf(fp, "class\t\t%s\n", up->u_class) <= 0 || in setdefaults() 764 fprintf(fp, "homeperm\t0%o\n", up->u_homeperm) <= 0 || in setdefaults() 766 fprintf(fp, "inactive\t%s\n", (up->u_inactive == NULL) ? in setdefaults() 767 UNSET_INACTIVE : up->u_inactive) <= 0 || in setdefaults() 768 fprintf(fp, "expire\t\t%s\n", (up->u_expire == NULL) ? in setdefaults() [all …]
|
| /netbsd/src/external/lgpl3/gmp/dist/mpn/x86_64/fastsse/ |
| D | copyd-palignr.asm | 79 lea -8(up,n,8), up 88 mov (up), %rax C copy one limb 90 lea -8(up), up 95 test $8, R8(up) 103 L(atop):movdqa -8(up), %xmm0 104 movdqa -24(up), %xmm1 105 movdqa -40(up), %xmm2 106 movdqa -56(up), %xmm3 107 lea -64(up), up 118 movdqa -8(up), %xmm0 [all …]
|
| /netbsd/src/external/lgpl3/gmp/dist/mpn/x86_64/k8/ |
| D | redc_1.asm | 67 define(`up', `%rsi') C rdx 130 add 8(up), %rax 131 adc 16(up), %rdx 146 add (up), %r10 149 add 8(up), %r9 163 add 16(up), %r11 167 adc 24(up), %rbx 182 add -8(up), %rbx 187 add (up), %r10 188 mov %r10, (up) [all …]
|
| /netbsd/src/external/lgpl3/gmp/dist/mpn/x86_64/coreisbr/ |
| D | redc_1.asm | 96 mov (up), q0 99 lea 8(up,n,8), up 115 mov -8(up,n,8), %r10 122 mov (up,n,8), %rbx 127 mov (up,i,8), %r10 129 mov %rbx, -8(up,i,8) C next low remainder limb 136 mov -16(up,i,8), %r10 140 mov %rbp, -24(up,i,8) 147 mov -8(up,i,8), %rbp 149 mov %r10, -16(up,i,8) [all …]
|