Home
last modified time | relevance | path

Searched refs:nf (Results 1 – 25 of 188) sorted by relevance

12345678

/freebsd/sys/dev/ath/ath_hal/ar9002/
H A Dar9285.c44 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()
53 nf = MS(OS_REG_READ(ah, AR_PHY_EXT_CCA), AR9280_PHY_EXT_MINCCA_PWR); in ar9285GetNoiseFloor()
54 if (nf & 0x100) in ar9285GetNoiseFloor()
55 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9285GetNoiseFloor()
57 "NF calibrated [ext] [chain 0] is %d\n", nf); in ar9285GetNoiseFloor()
[all …]
H A Dar9280.c355 int16_t nf; in ar9280GetNoiseFloor() local
357 nf = MS(OS_REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); in ar9280GetNoiseFloor()
358 if (nf & 0x100) in ar9280GetNoiseFloor()
359 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9280GetNoiseFloor()
361 "NF calibrated [ctl] [chain 0] is %d\n", nf); in ar9280GetNoiseFloor()
362 nfarray[0] = nf; in ar9280GetNoiseFloor()
364 nf = MS(OS_REG_READ(ah, AR_PHY_CH1_CCA), AR9280_PHY_CH1_MINCCA_PWR); in ar9280GetNoiseFloor()
365 if (nf & 0x100) in ar9280GetNoiseFloor()
366 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9280GetNoiseFloor()
368 "NF calibrated [ctl] [chain 1] is %d\n", nf); in ar9280GetNoiseFloor()
[all …]
H A Dar9287.c297 int16_t nf; in ar9287GetNoiseFloor() local
299 nf = MS(OS_REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); in ar9287GetNoiseFloor()
300 if (nf & 0x100) in ar9287GetNoiseFloor()
301 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9287GetNoiseFloor()
303 "NF calibrated [ctl] [chain 0] is %d\n", nf); in ar9287GetNoiseFloor()
304 nfarray[0] = nf; in ar9287GetNoiseFloor()
306 nf = MS(OS_REG_READ(ah, AR_PHY_CH1_CCA), AR9280_PHY_CH1_MINCCA_PWR); in ar9287GetNoiseFloor()
307 if (nf & 0x100) in ar9287GetNoiseFloor()
308 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9287GetNoiseFloor()
310 "NF calibrated [ctl] [chain 1] is %d\n", nf); in ar9287GetNoiseFloor()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5416/
H A Dar2133.c440 int16_t nf; in ar2133GetNoiseFloor() local
451 nf = MS(OS_REG_READ(ah, AR_PHY_CH2_CCA), AR_PHY_CH2_MINCCA_PWR); in ar2133GetNoiseFloor()
452 if (nf & 0x100) in ar2133GetNoiseFloor()
453 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor()
455 "NF calibrated [ctl] [chain 2] is %d\n", nf); in ar2133GetNoiseFloor()
456 nfarray[2] = nf; in ar2133GetNoiseFloor()
458 nf = MS(OS_REG_READ(ah, AR_PHY_CH2_EXT_CCA), AR_PHY_CH2_EXT_MINCCA_PWR); in ar2133GetNoiseFloor()
459 if (nf & 0x100) in ar2133GetNoiseFloor()
460 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor()
462 "NF calibrated [ext] [chain 2] is %d\n", nf); in ar2133GetNoiseFloor()
[all …]
H A Dar5416_cal.c41 static void ar5416SanitizeNF(struct ath_hal *ah, int16_t *nf);
750 ar5416SanitizeNF(struct ath_hal *ah, int16_t *nf) in ar5416SanitizeNF() argument
762 if (!nf[i]) in ar5416SanitizeNF()
765 if (nf[i] > limit->max) { in ar5416SanitizeNF()
768 i, nf[i], limit->max); in ar5416SanitizeNF()
769 nf[i] = limit->max; in ar5416SanitizeNF()
770 } else if (nf[i] < limit->min) { in ar5416SanitizeNF()
773 i, nf[i], limit->min); in ar5416SanitizeNF()
774 nf[i] = limit->nominal; in ar5416SanitizeNF()
788 int16_t nf, nfThresh; in ar5416GetNf() local
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/regex/
H A Dsplit.c217 int nf; in dosplit() local
219 nf = split(string, fields, NF, seps); in dosplit()
220 print(nf, NF, fields); in dosplit()
224 print(int nf, int nfp, char *fields) in print() argument
229 bound = (nf > nfp) ? nfp : nf; in print()
230 printf("%d:\t", nf); in print()
232 printf("\"%s\"%s", fields[fn], (fn+1 < nf) ? ", " : "\n"); in print()
239 int nf; member
310 int nf; in regress() local
318 nf = split(buf, fields, RNF, tests[n].seps); in regress()
[all …]
/freebsd/lib/libc/regex/grot/
H A Dsplit.c186 int nf; in dosplit() local
188 nf = split(string, fields, NF, seps); in dosplit()
189 print(nf, NF, fields); in dosplit()
193 print(int nf, int nfp, char *fields[]) in print() argument
198 bound = (nf > nfp) ? nfp : nf; in print()
199 printf("%d:\t", nf); in print()
201 printf("\"%s\"%s", fields[fn], (fn+1 < nf) ? ", " : "\n"); in print()
208 int nf; member
279 int nf; in regress() local
287 nf = split(buf, fields, RNF, tests[n].seps); in regress()
[all …]
/freebsd/usr.bin/mail/
H A Dedit.c132 FILE *nf = NULL; in run_editor() local
141 (nf = Fdopen(t, "w")) == NULL) { in run_editor()
152 (void)putc(t, nf); in run_editor()
155 (void)putc(t, nf); in run_editor()
156 (void)fflush(nf); in run_editor()
157 if (fstat(fileno(nf), &statb) < 0) in run_editor()
161 if (ferror(nf)) { in run_editor()
162 (void)Fclose(nf); in run_editor()
165 nf = NULL; in run_editor()
168 if (Fclose(nf) < 0) { in run_editor()
[all …]
H A Dcollect.c537 FILE *nf = run_editor(fp, (off_t)-1, c, 0); in mesedit() local
539 if (nf != NULL) { in mesedit()
540 (void)fseeko(nf, (off_t)0, SEEK_END); in mesedit()
541 collf = nf; in mesedit()
556 FILE *nf; in mespipe() local
564 (nf = Fdopen(fd, "w+")) == NULL) { in mespipe()
576 0, fileno(fp), fileno(nf), "-c", cmd, NULL) < 0) { in mespipe()
577 (void)Fclose(nf); in mespipe()
580 if (fsize(nf) == 0) { in mespipe()
582 (void)Fclose(nf); in mespipe()
[all …]
/freebsd/contrib/file/src/
H A Dis_csv.c95 size_t nf = 0, tf = 0, nl = 0; in csv_parse() local
104 nf++; in csv_parse()
107 DPRINTF("%zu %zu %zu\n", nl, nf, tf); in csv_parse()
111 return tf > 1 && tf == nf; in csv_parse()
115 if (nf == 0) in csv_parse()
118 tf = nf; in csv_parse()
119 } else if (tf != nf) { in csv_parse()
123 nf = 0; in csv_parse()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicsRISCV.td1010 class RISCVUSSegLoad<int nf>
1012 !add(nf, -1))),
1013 !listconcat(!listsplat(LLVMMatchType<0>, nf),
1015 [NoCapture<ArgIndex<nf>>, IntrReadMem, IntrArgMemOnly]>,
1017 let VLOperand = !add(nf, 1);
1021 class RISCVUSSegLoadMasked<int nf>
1023 !add(nf, -1))),
1024 !listconcat(!listsplat(LLVMMatchType<0>, nf),
1028 [ImmArg<ArgIndex<!add(nf, 3)>>, NoCapture<ArgIndex<nf>>,
1031 let VLOperand = !add(nf, 2);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoV.td238 class VLSEGSched<int nf, int eew, string emul, bit forceMasked = 0> : SchedCommon<
239 [!cast<SchedWrite>("WriteVLSEG" #nf #"e" #eew #"_" #emul)],
242 class VLSEGSchedMC<int nf, int eew> : VLSEGSched<nf, eew, "WorstCase",
245 class VSSEGSched<int nf, int eew, string emul, bit forceMasked = 0> : SchedCommon<
246 [!cast<SchedWrite>("WriteVSSEG" # nf # "e" # eew # "_" # emul)],
249 class VSSEGSchedMC<int nf, int eew> : VSSEGSched<nf, eew, "WorstCase",
252 class VLSEGFFSched<int nf, int eew, string emul, bit forceMasked = 0> : SchedCommon<
253 [!cast<SchedWrite>("WriteVLSEGFF" # nf # "e" # eew # "_" # emul)],
256 class VLSEGFFSchedMC<int nf, int eew> : VLSEGFFSched<nf, eew, "WorstCase",
260 class VLSSEGSched<int nf, int eew, string emul, bit forceMasked = 0> : SchedCommon<
[all …]
H A DRISCVInstrFormatsV.td205 class RVInstVLU<bits<3> nf, bit mew, RISCVLSUMOP lumop,
213 let Inst{31-29} = nf;
227 class RVInstVLS<bits<3> nf, bit mew, bits<3> width,
235 let Inst{31-29} = nf;
249 class RVInstVLX<bits<3> nf, bit mew, RISCVMOP mop, bits<3> width,
257 let Inst{31-29} = nf;
271 class RVInstVSU<bits<3> nf, bit mew, RISCVLSUMOP sumop,
279 let Inst{31-29} = nf;
292 class RVInstVSS<bits<3> nf, bit mew, bits<3> width,
300 let Inst{31-29} = nf;
[all …]
/freebsd/contrib/netbsd-tests/sbin/fsck_ffs/
H A Dt_enable_quotas.sh47 fsck_ffs -nf -F ${IMG}
53 atf_check -s exit:0 -o "match:1 files, 1 used" fsck_ffs -nf -F ${IMG}
67 atf_check -s exit:0 -o "match:3 files" fsck_ffs -nf -F ${IMG}
79 atf_check -s exit:0 -o "match:3 files" fsck_ffs -nf -F ${IMG}
104 atf_check -s exit:0 -o "match:3 files" fsck_ffs -nf -F ${IMG}
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_spectral.c590 int16_t nf; in ar9300_get_ctl_chan_nf() local
597 nf = MS(OS_REG_READ(ah, AR_PHY_CCA_0), AR_PHY_MINCCA_PWR); in ar9300_get_ctl_chan_nf()
600 nf = AH9300(ah)->nfp->nominal; in ar9300_get_ctl_chan_nf()
602 if (nf & 0x100) { in ar9300_get_ctl_chan_nf()
603 nf = (0 - ((nf ^ 0x1ff) + 1)); in ar9300_get_ctl_chan_nf()
605 return nf; in ar9300_get_ctl_chan_nf()
610 int16_t nf; in ar9300_get_ext_chan_nf() local
617 nf = MS(OS_REG_READ(ah, AR_PHY_EXT_CCA), AR_PHY_EXT_MINCCA_PWR); in ar9300_get_ext_chan_nf()
620 nf = AH9300(ah)->nfp->nominal; in ar9300_get_ext_chan_nf()
622 if (nf & 0x100) { in ar9300_get_ext_chan_nf()
[all …]
/freebsd/contrib/nvi/ex/
H A Dex_shell.c151 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()
/freebsd/usr.sbin/bluetooth/btpand/
H A Dbnep.c409 int i, nf, rsp; in bnep_recv_filter_net_type_set() local
426 nf = len / 4; in bnep_recv_filter_net_type_set()
427 pf = malloc(nf * sizeof(pfilter_t)); in bnep_recv_filter_net_type_set()
433 log_debug("nf = %d", nf); in bnep_recv_filter_net_type_set()
435 for (i = 0; i < nf; i++) { in bnep_recv_filter_net_type_set()
454 chan->npfilter = nf; in bnep_recv_filter_net_type_set()
492 int i, nf, rsp; in bnep_recv_filter_multi_addr_set() local
509 nf = len / (ETHER_ADDR_LEN * 2); in bnep_recv_filter_multi_addr_set()
510 mf = malloc(nf * sizeof(mfilter_t)); in bnep_recv_filter_multi_addr_set()
516 log_debug("nf = %d", nf); in bnep_recv_filter_multi_addr_set()
[all …]
/freebsd/contrib/expat/tests/
H A Druntests.c82 int i, nf; in main() local
112 nf = srunner_ntests_failed(sr); in main()
115 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; in main()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A Driscv_vector.td327 class PVString<int nf, bit signed> {
329 !cond(!eq(nf, 2): !if(signed, "PvPv", "PUvPUv"),
330 !eq(nf, 3): !if(signed, "PvPvPv", "PUvPUvPUv"),
331 !eq(nf, 4): !if(signed, "PvPvPvPv", "PUvPUvPUvPUv"),
332 !eq(nf, 5): !if(signed, "PvPvPvPvPv", "PUvPUvPUvPUvPUv"),
333 !eq(nf, 6): !if(signed, "PvPvPvPvPvPv", "PUvPUvPUvPUvPUvPUv"),
334 !eq(nf, 7): !if(signed, "PvPvPvPvPvPvPv", "PUvPUvPUvPUvPUvPUvPUv"),
335 !eq(nf, 8): !if(signed, "PvPvPvPvPvPvPvPv", "PUvPUvPUvPUvPUvPUvPUvPUv"));
338 class VString<int nf, bit signed> {
339 string S = !cond(!eq(nf, 2): !if(signed, "vv", "UvUv"),
[all …]
/freebsd/sys/dev/ath/
H A Dif_ath_rx.c335 int subtype, const struct ieee80211_rx_stats *rxs, int rssi, int nf) in ath_recv_mgmt() argument
361 ATH_VAP(vap)->av_recv_mgmt(ni, m, subtype, rxs, rssi, nf); in ath_recv_mgmt()
511 const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) in ath_rx_tap_vendor() argument
576 const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) in ath_rx_tap() argument
623 sc->sc_rx_th.wr_antnoise = nf; in ath_rx_tap()
624 sc->sc_rx_th.wr_antsignal = nf + rs->rs_rssi; in ath_rx_tap()
658 uint64_t tsf, int nf, HAL_RX_QUEUE qtype, struct ath_buf *bf, in ath_rx_pkt() argument
772 ath_rx_tap(sc, m, rs, rstamp, nf); in ath_rx_pkt()
774 ath_rx_tap_vendor(sc, m, rs, rstamp, nf); in ath_rx_pkt()
885 ath_rx_tap(sc, m, rs, rstamp, nf); in ath_rx_pkt()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5210/
H A Dar5210_reset.c938 int16_t nf; in ar5210GetNoiseFloor() local
940 nf = (OS_REG_READ(ah, AR_PHY(25)) >> 19) & 0x1ff; in ar5210GetNoiseFloor()
941 if (nf & 0x100) in ar5210GetNoiseFloor()
942 nf = 0 - ((nf ^ 0x1ff) + 1); in ar5210GetNoiseFloor()
943 return nf; in ar5210GetNoiseFloor()
956 int32_t nf, nfLoops; in ar5210CalNoiseFloor() local
975 nf = 0; in ar5210CalNoiseFloor()
977 for (nfLoops = 0; ((nfLoops < 21) && (nf > NORMAL_NF_THRESH)); nfLoops++) { in ar5210CalNoiseFloor()
979 nf = ar5210GetNoiseFloor(ah); in ar5210CalNoiseFloor()
982 if (nf > NORMAL_NF_THRESH) { in ar5210CalNoiseFloor()
[all …]
/freebsd/tests/sys/netinet6/frag6/
H A Dfrag6_05.sh49 nf=`jexec ${jname} sysctl -n net.inet6.ip6.frag6_nfragpackets`
50 case ${nf} in
52 *) atf_fail "VNET frag6_nfragpackets not 0 but: ${nf}" ;;
54 nf=`sysctl -n net.inet6.ip6.frag6_nfrags`
55 case ${nf} in
57 *) atf_fail "Global frag6_nfrags not 0 but: ${nf}" ;;
242 nf=`jexec ${jname} sysctl -n net.inet6.ip6.frag6_nfragpackets`
243 case ${nf} in
245 *) atf_fail "VNET frag6_nfragpackets not 0 but: ${nf}" ;;
247 nf=`sysctl -n net.inet6.ip6.frag6_nfrags`
[all …]
H A Dfrag6_01.sh54 nf=`jexec ${jname} sysctl -n net.inet6.ip6.frag6_nfragpackets`
55 case ${nf} in
57 *) atf_fail "VNET frag6_nfragpackets not 0 but: ${nf}" ;;
59 nf=`sysctl -n net.inet6.ip6.frag6_nfrags`
60 case ${nf} in
62 *) atf_fail "Global frag6_nfrags not 0 but: ${nf}" ;;
H A Dfrag6_03.sh54 nf=`jexec ${jname} sysctl -n net.inet6.ip6.frag6_nfragpackets`
55 case ${nf} in
57 *) atf_fail "VNET frag6_nfragpackets not 0 but: ${nf}" ;;
59 nf=`sysctl -n net.inet6.ip6.frag6_nfrags`
60 case ${nf} in
62 *) atf_fail "Global frag6_nfrags not 0 but: ${nf}" ;;
H A Dfrag6_07.sh49 nf=`jexec ${jname} sysctl -n net.inet6.ip6.frag6_nfragpackets`
50 case ${nf} in
52 *) atf_fail "VNET frag6_nfragpackets not 0 but: ${nf}" ;;
54 nf=`sysctl -n net.inet6.ip6.frag6_nfrags`
55 case ${nf} in
57 *) atf_fail "Global frag6_nfrags not 0 but: ${nf}" ;;

12345678