/dragonfly/sys/dev/netif/ath/ath_hal/ar9002/ |
H A D | ar9285.c | 44 int16_t nf; in ar9285GetNoiseFloor() local 46 nf = MS(OS_REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); in ar9285GetNoiseFloor() 47 if (nf & 0x100) in ar9285GetNoiseFloor() 48 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9285GetNoiseFloor() 50 "NF calibrated [ctl] [chain 0] is %d\n", nf); in ar9285GetNoiseFloor() 51 nfarray[0] = nf; in ar9285GetNoiseFloor() 54 nf = MS(OS_REG_READ(ah, AR_PHY_EXT_CCA), AR9280_PHY_EXT_MINCCA_PWR); in ar9285GetNoiseFloor() 55 if (nf & 0x100) in ar9285GetNoiseFloor() 56 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9285GetNoiseFloor() 58 "NF calibrated [ext] [chain 0] is %d\n", nf); in ar9285GetNoiseFloor() [all …]
|
H A D | ar9280.c | 355 int16_t nf; in ar9280GetNoiseFloor() local 358 if (nf & 0x100) in ar9280GetNoiseFloor() 359 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9280GetNoiseFloor() 362 nfarray[0] = nf; in ar9280GetNoiseFloor() 365 if (nf & 0x100) in ar9280GetNoiseFloor() 366 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9280GetNoiseFloor() 369 nfarray[1] = nf; in ar9280GetNoiseFloor() 372 if (nf & 0x100) in ar9280GetNoiseFloor() 373 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9280GetNoiseFloor() 379 if (nf & 0x100) in ar9280GetNoiseFloor() [all …]
|
H A D | ar9287.c | 297 int16_t nf; in ar9287GetNoiseFloor() local 300 if (nf & 0x100) in ar9287GetNoiseFloor() 301 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9287GetNoiseFloor() 304 nfarray[0] = nf; in ar9287GetNoiseFloor() 307 if (nf & 0x100) in ar9287GetNoiseFloor() 308 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9287GetNoiseFloor() 311 nfarray[1] = nf; in ar9287GetNoiseFloor() 314 if (nf & 0x100) in ar9287GetNoiseFloor() 315 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9287GetNoiseFloor() 321 if (nf & 0x100) in ar9287GetNoiseFloor() [all …]
|
/dragonfly/sys/dev/netif/ath/ath_hal/ar5416/ |
H A D | ar2133.c | 439 int16_t nf; in ar2133GetNoiseFloor() local 451 if (nf & 0x100) in ar2133GetNoiseFloor() 452 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor() 458 if (nf & 0x100) in ar2133GetNoiseFloor() 459 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor() 467 if (nf & 0x100) in ar2133GetNoiseFloor() 468 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor() 475 if (nf & 0x100) in ar2133GetNoiseFloor() 476 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor() 484 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor() [all …]
|
H A D | ar5416_cal.c | 756 if (!nf[i]) in ar5416SanitizeNF() 759 if (nf[i] > limit->max) { in ar5416SanitizeNF() 783 int16_t nf, nfThresh; in ar5416GetNf() local 790 nf = 0; in ar5416GetNf() 799 nf = nfarray[0]; in ar5416GetNf() 802 if (nf > nfThresh) { in ar5416GetNf() 806 nf, nfThresh); in ar5416GetNf() 813 nf = 0; in ar5416GetNf() 817 nf = 0; in ar5416GetNf() 828 ichan->rawNoiseFloor = nf; in ar5416GetNf() [all …]
|
/dragonfly/usr.bin/mail/ |
H A D | edit.c | 131 FILE *nf = NULL; in run_editor() local 150 putc(t, nf); in run_editor() 153 putc(t, nf); in run_editor() 154 fflush(nf); in run_editor() 159 if (ferror(nf)) { in run_editor() 160 Fclose(nf); in run_editor() 163 nf = NULL; in run_editor() 166 if (Fclose(nf) < 0) { in run_editor() 169 nf = NULL; in run_editor() 172 nf = NULL; in run_editor() [all …]
|
H A D | collect.c | 539 FILE *nf = run_editor(fp, (off_t)-1, c, 0); in mesedit() local 541 if (nf != NULL) { in mesedit() 542 fseeko(nf, (off_t)0, SEEK_END); in mesedit() 543 collf = nf; in mesedit() 558 FILE *nf; in mespipe() local 565 (nf = Fdopen(fd, "w+")) == NULL) { in mespipe() 577 Fclose(nf); in mespipe() 580 if (fsize(nf) == 0) { in mespipe() 582 Fclose(nf); in mespipe() 588 fseeko(nf, (off_t)0, SEEK_END); in mespipe() [all …]
|
/dragonfly/contrib/file/src/ |
H A D | is_csv.c | 94 size_t nf = 0, tf = 0, nl = 0; in csv_parse() local 103 nf++; in csv_parse() 106 DPRINTF("%zu %zu %zu\n", nl, nf, tf); in csv_parse() 110 return tf != 0 && tf == nf; in csv_parse() 114 if (nf == 0) in csv_parse() 117 tf = nf; in csv_parse() 118 } else if (tf != nf) { in csv_parse() 122 nf = 0; in csv_parse()
|
/dragonfly/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_spectral.c | 560 int16_t nf; in ar9300_get_ctl_chan_nf() local 567 nf = MS(OS_REG_READ(ah, AR_PHY_CCA_0), AR_PHY_MINCCA_PWR); in ar9300_get_ctl_chan_nf() 570 nf = AH9300(ah)->nfp->nominal; in ar9300_get_ctl_chan_nf() 572 if (nf & 0x100) { in ar9300_get_ctl_chan_nf() 573 nf = (0 - ((nf ^ 0x1ff) + 1)); in ar9300_get_ctl_chan_nf() 575 return nf; in ar9300_get_ctl_chan_nf() 580 int16_t nf; in ar9300_get_ext_chan_nf() local 590 nf = AH9300(ah)->nfp->nominal; in ar9300_get_ext_chan_nf() 592 if (nf & 0x100) { in ar9300_get_ext_chan_nf() 593 nf = (0 - ((nf ^ 0x1ff) + 1)); in ar9300_get_ext_chan_nf() [all …]
|
/dragonfly/contrib/nvi2/ex/ |
H A D | ex_shell.c | 151 int nf, pstat; in proc_wait() local 172 p = msg_print(sp, cmd, &nf); in proc_wait() 178 if (nf) in proc_wait() 194 p = msg_print(sp, cmd, &nf); in proc_wait() 199 if (nf) in proc_wait()
|
/dragonfly/sys/libkern/ |
H A D | linux_idr.c | 423 int nf; in idr_grow() local 426 nf = idp->idr_count; in idr_grow() 428 nf = 2 * nf + 1; in idr_grow() 429 } while (nf <= want); in idr_grow() 432 printf("idr_grow: %d -> %d\n", idp->idr_count, nf); in idr_grow() 436 newnodes = kmalloc(nf * sizeof(struct idr_node), in idr_grow() 440 if (nf <= idp->idr_count) { in idr_grow() 454 idp->idr_count = nf; in idr_grow()
|
/dragonfly/sys/dev/netif/ath/ath/ |
H A D | if_ath_rx.c | 612 sc->sc_rx_th.wr_antnoise = nf; in ath_rx_tap() 613 sc->sc_rx_th.wr_antsignal = nf + rs->rs_rssi; in ath_rx_tap() 762 ath_rx_tap(sc, m, rs, rstamp, nf); in ath_rx_pkt() 764 ath_rx_tap_vendor(sc, m, rs, rstamp, nf); in ath_rx_pkt() 875 ath_rx_tap(sc, m, rs, rstamp, nf); in ath_rx_pkt() 877 ath_rx_tap_vendor(sc, m, rs, rstamp, nf); in ath_rx_pkt() 936 type = ieee80211_input(ni, m, rs->rs_rssi, nf); in ath_rx_pkt() 949 type = ieee80211_input_all(ic, m, rs->rs_rssi, nf); in ath_rx_pkt() 1034 int16_t nf; in ath_rx_proc() local 1055 nf = ath_hal_getchannoise(ah, sc->sc_curchan); in ath_rx_proc() [all …]
|
H A D | if_ath_rx.h | 37 int rssi, int nf); 61 HAL_STATUS status, uint64_t tsf, int nf, HAL_RX_QUEUE qtype,
|
/dragonfly/sys/dev/netif/ath/ath_hal/ar5210/ |
H A D | ar5210_reset.c | 940 int16_t nf; in ar5210GetNoiseFloor() local 942 nf = (OS_REG_READ(ah, AR_PHY(25)) >> 19) & 0x1ff; in ar5210GetNoiseFloor() 943 if (nf & 0x100) in ar5210GetNoiseFloor() 944 nf = 0 - ((nf ^ 0x1ff) + 1); in ar5210GetNoiseFloor() 945 return nf; in ar5210GetNoiseFloor() 958 int32_t nf, nfLoops; in ar5210CalNoiseFloor() local 977 nf = 0; in ar5210CalNoiseFloor() 981 nf = ar5210GetNoiseFloor(ah); in ar5210CalNoiseFloor() 984 if (nf > NORMAL_NF_THRESH) { in ar5210CalNoiseFloor() 986 __func__, nf); in ar5210CalNoiseFloor() [all …]
|
H A D | ar5210_misc.c | 383 uint32_t nf; in ar5210GetRandomSeed() local 385 nf = (OS_REG_READ(ah, AR_PHY_BASE + (25 << 2)) >> 19) & 0x1ff; in ar5210GetRandomSeed() 386 if (nf & 0x100) in ar5210GetRandomSeed() 387 nf = 0 - ((nf ^ 0x1ff) + 1); in ar5210GetRandomSeed() 389 OS_REG_READ(ah, AR_TSF_L32) ^ nf); in ar5210GetRandomSeed()
|
/dragonfly/sys/dev/sound/pcm/ |
H A D | feeder.c | 238 struct pcm_feeder *nf; in chn_addfeeder() local 240 nf = feeder_create(fc, desc); in chn_addfeeder() 241 if (nf == NULL) in chn_addfeeder() 244 nf->source = c->feeder; in chn_addfeeder() 247 c->feeder->parent = nf; in chn_addfeeder() 248 c->feeder = nf; in chn_addfeeder()
|
/dragonfly/contrib/elftoolchain/libelf/ |
H A D | elf_update.c | 713 _libelf_write_scn(Elf *e, unsigned char *nf, struct _Elf_Extent *ex) in _libelf_write_scn() argument 768 (void) memset(nf + rc, in _libelf_write_scn() 778 (void) memcpy(nf + rc, in _libelf_write_scn() 803 (void) memset(nf + rc, in _libelf_write_scn() 817 dst.d_buf = nf + rc; in _libelf_write_scn() 835 _libelf_write_ehdr(Elf *e, unsigned char *nf, struct _Elf_Extent *ex) in _libelf_write_ehdr() argument 861 dst.d_buf = nf; in _libelf_write_ehdr() 876 _libelf_write_phdr(Elf *e, unsigned char *nf, struct _Elf_Extent *ex) in _libelf_write_phdr() argument 919 dst.d_buf = nf + ex->ex_start; in _libelf_write_phdr() 933 _libelf_write_shdr(Elf *e, unsigned char *nf, struct _Elf_Extent *ex) in _libelf_write_shdr() argument [all …]
|
/dragonfly/sys/dev/netif/ath/ath_hal/ar5212/ |
H A D | ar5212_reset.c | 1304 if (nf & 0x100) in ar5212GetNoiseFloor() 1305 nf = 0 - ((nf ^ 0x1ff) + 1); in ar5212GetNoiseFloor() 1306 return nf; in ar5212GetNoiseFloor() 1378 int16_t nf = sort[j]; in ar5212GetNfHistMid() local 1380 sort[j-1] = nf; in ar5212GetNfHistMid() 1396 int16_t nf, nfThresh; in ar5212GetNf() local 1409 nf = ar5212GetNoiseFloor(ah); in ar5212GetNf() 1411 if (nf > nfThresh) { in ar5212GetNf() 1421 nf = 0; in ar5212GetNf() 1424 nf = 0; in ar5212GetNf() [all …]
|
/dragonfly/sys/netproto/802_11/wlan/ |
H A D | ieee80211_adhoc.c | 294 const struct ieee80211_rx_stats *rxs, int rssi, int nf) in adhoc_input() argument 413 ni->ni_noise = nf; in adhoc_input() 626 vap->iv_recv_mgmt(ni, m, subtype, rxs, rssi, nf); in adhoc_input() 671 int subtype, const struct ieee80211_rx_stats *rxs, int rssi, int nf) in adhoc_recv_mgmt() argument 727 subtype, rssi, nf); in adhoc_recv_mgmt() 766 ni->ni_noise = nf; in adhoc_recv_mgmt() 904 int subtype, const struct ieee80211_rx_stats *rxs, int rssi, int nf) in ahdemo_recv_mgmt() argument 915 adhoc_recv_mgmt(ni, m0, subtype, rxs, rssi, nf); in ahdemo_recv_mgmt()
|
H A D | ieee80211_wds.c | 107 int8_t rssi, nf; in wds_flush() local 116 ic->ic_node_getsignal(ni, &rssi, &nf); in wds_flush() 120 ieee80211_input(ni, m, rssi, nf); in wds_flush() 412 const struct ieee80211_rx_stats *rxs, int rssi, int nf) in wds_input() argument 493 ni->ni_noise = nf; in wds_input() 706 vap->iv_recv_mgmt(ni, m, subtype, rxs, rssi, nf); in wds_input() 733 const struct ieee80211_rx_stats *rxs, int rssi, int nf) in wds_recv_mgmt() argument
|
H A D | ieee80211_monitor.c | 64 const struct ieee80211_rx_stats *rxs, int rssi, int nf); 129 const struct ieee80211_rx_stats *rxs, int rssi, int nf) in monitor_input() argument
|
/dragonfly/sys/dev/netif/ath/ath_hal/ar5211/ |
H A D | ar5211_reset.c | 825 int16_t nf; in ar5211GetNoiseFloor() local 828 if (nf & 0x100) in ar5211GetNoiseFloor() 829 nf = 0 - ((nf ^ 0x1ff) + 1); in ar5211GetNoiseFloor() 830 return nf; in ar5211GetNoiseFloor() 924 int16_t nf, nfThresh; in ar5211IsNfGood() local 932 nf = ar5211GetNoiseFloor(ah); in ar5211IsNfGood() 933 if (nf > nfThresh) { in ar5211IsNfGood() 944 ichan->rawNoiseFloor = nf; in ar5211IsNfGood() 945 return (nf <= nfThresh); in ar5211IsNfGood() 966 int16_t nf, nfThresh; in ar5211CalNoiseFloor() local [all …]
|
H A D | ar5211_misc.c | 379 uint32_t nf; in ar5211GetRandomSeed() local 381 nf = (OS_REG_READ(ah, AR_PHY(25)) >> 19) & 0x1ff; in ar5211GetRandomSeed() 382 if (nf & 0x100) in ar5211GetRandomSeed() 383 nf = 0 - ((nf ^ 0x1ff) + 1); in ar5211GetRandomSeed() 385 OS_REG_READ(ah, AR_TSF_L32) ^ nf); in ar5211GetRandomSeed()
|
/dragonfly/usr.bin/strfile/ |
H A D | strfile.c | 375 #define SET_N(nf,ch) (nf = (ch == '\n')) in cmp_str() argument 376 #define IS_END(ch,nf) (ch == EOF || (ch == (unsigned char)Delimch && nf)) in cmp_str() argument
|
/dragonfly/contrib/awk/ |
H A D | lib.c | 570 int nf = 2 * nfields; in growfldtab() local 573 if (n > nf) in growfldtab() 574 nf = n; in growfldtab() 575 s = (nf+1) * (sizeof (struct Cell *)); /* freebsd: how much do we need? */ in growfldtab() 576 if (s / sizeof(struct Cell *) - 1 == (size_t)nf) /* didn't overflow */ in growfldtab() 581 FATAL("out of space creating %d fields", nf); in growfldtab() 582 makefields(nfields+1, nf); in growfldtab() 583 nfields = nf; in growfldtab()
|