/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_irig.c | 567 up->badcnt = (up->badcnt + 1) % up->decim; in irig_rf() 611 up->integ[up->envphase] += (sample - up->integ[up->envphase]) / in irig_base() 632 up->maxsignal = up->intmax; up->noise = up->intmin; in irig_base() 637 up->modndx = (up->maxsignal - up->noise) / in irig_base() 660 up->freq += dtemp / (4. * up->tc * up->tc); in irig_base() 721 up->slice = (up->envmax + up->envmin) / 2; in irig_base() 764 up->exing = -up->yxing; in irig_baud() 774 up->exing -= up->envxing - up->envphase; in irig_baud() 912 up->second = (up->second + up->decim) % 60; in irig_decode() 949 up->maxsignal, up->gain, up->modndx, in irig_decode() [all …]
|
H A D | refclock_chu.c | 845 sp = &up->surv[up->decptr]; in chu_rf() 853 up->decpha = up->decptr; in chu_rf() 1060 up->burdist += chu_dist(up->cbuf[i], up->cbuf[i + 5]); in chu_burst() 1119 up->status, up->maxsignal, nchar, -up->burdist); in chu_b() 1159 up->dut = -up->dut; in chu_b() 1223 up->maxsignal, nchar, up->burdist, k, up->syndist, in chu_a() 1268 up->tstamp[up->ntstamp] = up->cstamp[i]; in chu_a() 1509 up->ndx = up->prevsec = 0; in chu_clear() 1555 sp = &up->xmtr[up->chan]; in chu_newchan() 1591 snprintf(up->ident, sizeof(up->ident), "CHU%d", up->chan); in chu_newchan() [all …]
|
H A D | refclock_jjy.c | 1067 up->year, up->month, up->day, in jjy_synctime() 1068 up->hour, up->minute, up->second, up->msecond, in jjy_synctime() 1559 &up->year, &up->month, &up->day, in jjy_receive_cdex_jst2000() 1568 rc, up->year, up->month, up->day, in jjy_receive_cdex_jst2000() 1569 up->hour, up->minute, up->second ) ; in jjy_receive_cdex_jst2000() 1739 &up->year, &up->month, &up->day, in jjy_receive_echokeisokuki_lt2000() 1747 rc, up->year, up->month, up->day, in jjy_receive_echokeisokuki_lt2000() 1943 rc, up->year, up->month, up->day, in jjy_receive_citizentic_jjy200() 2465 &up->year, &up->month, &up->day, in jjy_receive_seiko_tsys_tdc_300() 2474 rc, up->year, up->month, up->day, in jjy_receive_seiko_tsys_tdc_300() [all …]
|
H A D | refclock_gpsdjson.c | 556 up->logname, up->device); in gpsd_start() 561 up->logname, up->device); in gpsd_start() 693 pdst = up->buffer + up->buflen; in gpsd_receive() 1802 up->pps_peer, up->pps_peer->procptr, up); in gpsd_parse() 1856 up->tickover = up->tickpres; in gpsd_stop_socket() 1945 up->logname, up->fdt)); in gpsd_init_socket() 1966 up->tickover = up->tickpres; in gpsd_init_socket() 1987 up->logname, up->fdt)); in gpsd_test_socket() 2039 up->logname, up->fdt)); in gpsd_test_socket() 2057 up->logname, up->fdt)); in gpsd_test_socket() [all …]
|
H A D | refclock_wwv.c | 1663 up->datpha = up->qrig / up->avgint; in wwv_epoch() 1861 up->status, up->gain, up->yepoch, in wwv_rsec() 1862 up->epomax, up->eposnr, up->datsig, in wwv_rsec() 1874 up->errcnt = up->digcnt = up->alarm = 0; in wwv_rsec() 1991 up->mitig[up->achan].gain = up->gain; in wwv_rsec() 1994 up->mitig[up->achan].gain = up->gain; in wwv_rsec() 2026 nsec, up->status, up->gain, up->yepoch, up->epomax, in wwv_rsec() 2195 up->rsec - 1, up->status, up->gain, up->yepoch, in wwv_corr4() 2507 up->watch = up->status = up->alarm = 0; in wwv_newgame() 2579 up->mitig[up->achan].gain = up->gain; in wwv_qsy() [all …]
|
H A D | refclock_jupiter.c | 195 up = emalloc_zero(sizeof(*up)); in jupiter_start() 252 if (!up) in jupiter_shutdown() 262 free(up); in jupiter_shutdown() 319 if (jupiter_pps(up) || !up->piv_next.weeks) in jupiter_checkpps() 350 if (!up) in jupiter_ticker() 357 if (up->piv_hold && !--up->piv_hold) in jupiter_ticker() 416 up->pps_params.mode, up->hardpps); in jupiter_ppsapi() 549 if (bpcnt > sizeof(up->sbuf) - up->ssize) in jupiter_receive() 550 bpcnt = sizeof(up->sbuf) - up->ssize; in jupiter_receive() 652 memcpy(up->sbuf, (u_char *)up->sbuf + cc, up->ssize); in jupiter_receive() [all …]
|
H A D | refclock_mx4200.c | 227 up = emalloc_zero(sizeof(*up)); in mx4200_start() 550 up->avg_lon += up->central_meridian; in mx4200_ref() 551 if (up->avg_lon < -180.0) up->avg_lon += 360.0; in mx4200_ref() 802 up->N_fixes, up->avg_lat, up->avg_lon, up->avg_alt); in mx4200_receive() 1314 up->avg_lon = (up->N_fixes * up->avg_lon) + lon; in mx4200_parse_p() 1315 up->avg_lat = (up->N_fixes * up->avg_lat) + lat; in mx4200_parse_p() 1316 up->avg_alt = (up->N_fixes * up->avg_alt) + alt; in mx4200_parse_p() 1320 up->avg_lon /= up->N_fixes; in mx4200_parse_p() 1321 up->avg_lat /= up->N_fixes; in mx4200_parse_p() 1322 up->avg_alt /= up->N_fixes; in mx4200_parse_p() [all …]
|
H A D | refclock_palisade.c | 342 up = emalloc_zero(sizeof(*up)); in palisade_start() 391 free(up); in palisade_start() 406 free(up); in palisade_start() 454 free(up); in palisade_shutdown() 701 (6 == up->month || 12 == up->month) ) { in TSIP_decode() 761 (6 == up->month || 12 == up->month) ) in TSIP_decode() 926 up->unit, up->rpt_buf[0] & 0xff, up->rpt_cnt); in TSIP_decode() 1122 up->unit, up->rpt_buf[0] & 0xff, mb(0) & 0xff, in TSIP_decode() 1272 up->unit); in praecis_parse() 1435 up->unit); in HW_poll() [all …]
|
H A D | refclock_as2201.c | 176 up = emalloc_zero(sizeof(*up)); in as2201_start() 185 free(up); in as2201_start() 196 up->lastptr = up->stats; in as2201_start() 197 up->index = 0; in as2201_start() 218 if (NULL != up) in as2201_shutdown() 219 free(up); in as2201_shutdown() 266 up->linect--; in as2201_receive() 285 up->lastptr = up->stats; in as2201_receive() 331 if ((int)(up->lastptr - up->stats + pp->lencode) > SMAX - 2) in as2201_receive() 340 memcpy(up->lastptr, stat_command[up->index], octets); in as2201_receive() [all …]
|
H A D | refclock_acts.c | 270 up->bufptr = up->buf; in acts_start() 299 free(up); in acts_shutdown() 328 octets = sizeof(up->buf) - (up->bufptr - up->buf); in acts_receive() 332 if (up->bufptr == up->buf) { in acts_receive() 337 up->bufptr = up->buf; in acts_receive() 401 up->retry, sys_phone[up->retry]); in acts_message() 408 up->retry++; in acts_message() 522 up->bufptr = up->buf; in acts_timeout() 613 if (up->msgcnt == 0 && up->retry > 0) { in acts_close() 621 up->timer = 0; in acts_close() [all …]
|
H A D | refclock_true.c | 252 if (up->debug) { in true_debug() 253 fprintf(up->debug, "true%d: ", up->unit); in true_debug() 285 up = emalloc_zero(sizeof(*up)); in true_start() 294 free(up); in true_start() 305 up->pollcnt = 2; in true_start() 338 if (up != NULL) in true_shutdown() 339 free(up); in true_shutdown() 668 typeStr(up->type), stateStr(up->state), eventStr(event)); in true_doevent() 698 if (up->state != s_Start && up->state != s_Auto) { in true_doevent() 740 if (up->state != s_Start && up->state != s_Auto) { in true_doevent() [all …]
|
H A D | refclock_neoclock4x.c | 287 if(!(up)) in neoclock4x_start() 318 up->unit = unit; in neoclock4x_start() 319 strlcpy(up->firmware, "?", sizeof(up->firmware)); in neoclock4x_start() 321 strlcpy(up->serial, "?", sizeof(up->serial)); in neoclock4x_start() 322 strlcpy(up->radiosignal, "?", sizeof(up->radiosignal)); in neoclock4x_start() 357 if(neol_query_firmware(pp->io.fd, up->unit, up->firmware, sizeof(up->firmware))) in neoclock4x_start() 364 if(!neol_check_firmware(up->unit, up->firmware, &up->firmwaretag)) in neoclock4x_start() 620 up->unit, in neoclock4x_receive() 695 if(NULL == up) in neoclock4x_control() 735 up->utc_year, up->utc_month, up->utc_day, in neoclock4x_control() [all …]
|
H A D | refclock_wwvb.c | 199 up = emalloc_zero(sizeof(*up)); in wwvb_start() 208 free(up); in wwvb_start() 211 pp->unitptr = up; in wwvb_start() 236 up = pp->unitptr; in wwvb_shutdown() 239 if (NULL != up) in wwvb_shutdown() 240 free(up); in wwvb_shutdown() 302 up->prev_eol_cr = !up->prev_eol_cr; in wwvb_receive() 380 up->linect--; in wwvb_receive() 436 up->tcount++; in wwvb_receive() 485 up->pcount++, in wwvb_timer() [all …]
|
H A D | refclock_arbiter.c | 167 up = emalloc_zero(sizeof(*up)); in arb_start() 176 free(up); in arb_start() 191 free(up); in arb_start() 219 free(up); in arb_shutdown() 296 strlcpy(up->latlon, tbuf + 2, sizeof(up->latlon)); in arb_receive() 301 strlcat(up->latlon, " ", sizeof(up->latlon)); in arb_receive() 302 strlcat(up->latlon, tbuf + 2, sizeof(up->latlon)); in arb_receive() 307 strlcat(up->latlon, " ", sizeof(up->latlon)); in arb_receive() 308 strlcat(up->latlon, tbuf + 2, sizeof(up->latlon)); in arb_receive() 313 strlcat(up->latlon, " ", sizeof(up->latlon)); in arb_receive() [all …]
|
H A D | refclock_hpgps.c | 180 up = emalloc_zero(sizeof(*up)); in hpgps_start() 189 free(up); in hpgps_start() 200 up->tzhour = 0; in hpgps_start() 204 up->lastptr = up->statscrn; in hpgps_start() 235 if (NULL != up) in hpgps_shutdown() 236 free(up); in hpgps_shutdown() 316 up->lastptr = up->statscrn; in hpgps_receive() 377 m = sscanf(tcp,"%d,%d", &up->tzhour, &up->tzminute); in hpgps_receive() 386 if ((up->tzhour < -12) || (up->tzhour > 13) || in hpgps_receive() 387 (up->tzminute < -59) || (up->tzminute > 59)){ in hpgps_receive() [all …]
|
H A D | refclock_nmea.c | 359 nmea_unit * const up = emalloc_zero(sizeof(*up)); in nmea_start() local 520 if (refclock_ppsapi(up->ppsapi_fd, &up->atom)) { in nmea_control() 716 (int)(strchr(up->lb_buf, ',') - up->lb_buf), in nmea_procrec() 1040 if (up->lb_len >= sizeof(up->lb_buf)) in nmea_receive() 1044 dp = up->lb_buf + up->lb_len; in nmea_receive() 1045 de = up->lb_buf + sizeof(up->lb_buf) - 1; in nmea_receive() 1063 up->lb_len = (int)(dp - up->lb_buf); in nmea_receive() 1072 up->lb_len = (int)(dp - up->lb_buf); in nmea_receive() 1141 up->tally.total, up->tally.accepted, in nmea_poll() 1142 up->tally.rejected, up->tally.malformed, in nmea_poll() [all …]
|
H A D | refclock_chronolog.c | 119 up = emalloc_zero(sizeof(*up)); in chronolog_start() 121 pp->unitptr = up; in chronolog_start() 129 free(up); in chronolog_start() 157 up = pp->unitptr; in chronolog_shutdown() 160 if (NULL != up) in chronolog_shutdown() 161 free(up); in chronolog_shutdown() 189 up = pp->unitptr; in chronolog_receive() 203 up->tcswitch = 1; in chronolog_receive() 219 if (sscanf(pp->a_lastcode, "Y %d/%d/%d", &up->year,&up->month,&up->day)) in chronolog_receive() 224 up->year = up->year >= 69 ? up->year : up->year + 100; in chronolog_receive() [all …]
|
H A D | refclock_shm.c | 231 up->shm = getShmTime(unit, up->forall); in shm_start() 249 free(up); in shm_start() 313 free(up); in shm_shutdown() 333 major_error = max(up->notready, up->bad); in shm_poll() 543 shm = up->shm = getShmTime(unit, up->forall); in shm_timer() 611 up->bad++; in shm_timer() 621 if (up->max_delta > 0 && tt > up->max_delta) { in shm_timer() 624 up->bad++; in shm_timer() 656 up->ticks, up->good, up->notready, in shm_clockstats() 657 up->bad, up->clash); in shm_clockstats() [all …]
|
H A D | refclock_arc.c | 606 { up->cmdqueue[i] = up->cmdqueue[i+1]; } in arc_event_handler() 618 ENQUEUE(up); in arc_event_handler() 703 up = emalloc_zero(sizeof(*up)); in arc_start() 712 free(up); in arc_start() 715 pp->unitptr = up; in arc_start() 765 ENQUEUE(up); in arc_start() 786 up = pp->unitptr; in arc_shutdown() 789 if (NULL != up) in arc_shutdown() 790 free(up); in arc_shutdown() 898 if((up->resyncing) && (space_left(up) == CMDQUEUELEN)) { in arc_receive() [all …]
|
H A D | refclock_dumbclock.c | 124 up = emalloc_zero(sizeof(*up)); in dumbclock_start() 126 pp->unitptr = up; in dumbclock_start() 134 free(up); in dumbclock_start() 174 up = pp->unitptr; in dumbclock_shutdown() 177 if (NULL != up) in dumbclock_shutdown() 178 free(up); in dumbclock_shutdown() 206 up = pp->unitptr; in dumbclock_receive() 220 up->tcswitch = 1; in dumbclock_receive() 284 up->ymd = *lt_p; in dumbclock_receive() 316 up->linect--; in dumbclock_receive() [all …]
|
/freebsd/sys/dev/usb/ |
H A D | usb_process.c | 105 up->up_curtd = td; in usb_process() 108 if (up->up_gone) in usb_process() 177 cv_wait(&up->up_cv, up->up_mtx); in usb_process() 180 up->up_ptr = NULL; in usb_process() 352 if (up->up_gone) in usb_proc_is_gone() 378 if (up->up_gone) in usb_proc_mwait() 400 cv_wait(&up->up_drain, up->up_mtx); in usb_proc_mwait() 427 up->up_gone = 1; in usb_proc_drain() 432 if (up->up_msleep || up->up_csleep) { in usb_proc_drain() 446 cv_wait(&up->up_cv, up->up_mtx); in usb_proc_drain() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_uar.c | 86 if (mlx5_cmd_free_uar(up->mdev, up->index)) in up_rel_func() 90 kfree(up); in up_rel_func() 103 up = kzalloc(sizeof(*up), GFP_KERNEL); in alloc_uars_page() 104 if (!up) in alloc_uars_page() 107 up->mdev = mdev; in alloc_uars_page() 135 if (!up->map) { in alloc_uars_page() 148 up->index, up->bfregs); in alloc_uars_page() 149 return up; in alloc_uars_page() 157 kfree(up); in alloc_uars_page() 246 bfreg->up = up; in alloc_bfreg() [all …]
|
/freebsd/sys/kern/ |
H A D | subr_unit.c | 204 return (up->ptr != uh && up->ptr != NULL); in is_bitmap() 425 up = ptr; in delete_unr() 440 Free(up); in clean_unrhdrl() 520 Free(up); in clear_unrhdr() 558 up = uf; in optimize_unr() 560 up = TAILQ_NEXT(up, list); in optimize_unr() 676 up = upp; in collapse_unr() 759 up->len--; in alloc_unrl() 989 up->len--; in free_unrl() 1066 db_printf(" %p len = %5u ", up, up->len); in print_unr() [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | udb.c | 185 for (up = UdbEnts; !breakout; up++) 642 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) 716 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) 730 i = (*up->udb_dbp->get)(up->udb_dbp, 1014 (void) up->udb_dbp->close(up->udb_dbp, 1020 ret = up->udb_dbp->open(up->udb_dbp, 1108 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) 1152 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) 1157 (*up->udb_dbp->close)(up->udb_dbp); 1216 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) in _udbx_close() [all …]
|
/freebsd/tests/sys/mac/ipacl/ |
H A D | ipacl_test.sh | 57 jexec A ifconfig ${epairA}b 192.0.2.2/24 up 67 jexec A ifconfig ${epairA}b 192.0.2.2/24 up 79 jexec A ifconfig ${epairA}b 192.0.2.42/24 up 81 jexec A ifconfig ${epairA}b 192.0.2.43/24 up 93 jexec B ifconfig ${epairB}b 198.18.0.1/24 up 95 jexec B ifconfig ${epairB}b 203.0.113.9/24 up 103 jexec B ifconfig ${epairC}b 198.18.0.1/24 up 105 jexec B ifconfig ${epairC}b 203.0.113.9/24 up 116 jexec A ifconfig ${epairA}b 198.18.0.1/24 up 118 jexec A ifconfig ${epairA}b 198.18.23.2/24 up [all …]
|