Searched refs:bf (Results 1 - 25 of 93) sorted by relevance

1234

/freebsd-11-stable/contrib/wpa/src/utils/
H A Dbitfield.c23 struct bitfield *bf; local
25 bf = os_zalloc(sizeof(*bf) + (max_bits + 7) / 8);
26 if (bf == NULL)
28 bf->bits = (u8 *) (bf + 1);
29 bf->max_bits = max_bits;
30 return bf;
34 void bitfield_free(struct bitfield *bf) argument
36 os_free(bf);
40 bitfield_set(struct bitfield *bf, size_t bit) argument
48 bitfield_clear(struct bitfield *bf, size_t bit) argument
56 bitfield_is_set(struct bitfield *bf, size_t bit) argument
76 bitfield_get_first_zero(struct bitfield *bf) argument
[all...]
H A Dbitfield.h15 void bitfield_free(struct bitfield *bf);
16 void bitfield_set(struct bitfield *bf, size_t bit);
17 void bitfield_clear(struct bitfield *bf, size_t bit);
18 int bitfield_is_set(struct bitfield *bf, size_t bit);
19 int bitfield_get_first_zero(struct bitfield *bf);
H A Dutils_module_tests.c130 struct bitfield *bf; local
136 bf = bitfield_alloc(123);
137 if (bf == NULL)
141 if (bitfield_is_set(bf, i) || bitfield_is_set(bf, i + 1))
143 if (i > 0 && bitfield_is_set(bf, i - 1))
145 bitfield_set(bf, i);
146 if (!bitfield_is_set(bf, i))
148 bitfield_clear(bf, i);
149 if (bitfield_is_set(bf,
[all...]
/freebsd-11-stable/sys/dev/ath/
H A Dif_ath_tx.c128 struct ieee80211_node *ni, struct ath_buf *bf, struct mbuf *m0);
133 struct ath_tid *tid, struct ath_buf *bf);
139 struct ath_buf *bf; local
144 bf = bf_first;
146 while (bf != NULL) {
148 if (bf->bf_nseg == 0)
150 n = ((bf->bf_nseg - 1) / sc->sc_tx_nmaps) + 1;
151 for (i = 0, ds = (const char *) bf->bf_desc;
159 bf = bf
195 ath_tx_set_retry(struct ath_softc *sc, struct ath_buf *bf) argument
244 struct ath_buf *bf, *next; local
266 struct ath_buf *bf; local
287 ath_tx_dmasetup(struct ath_softc *sc, struct ath_buf *bf, struct mbuf *m0) argument
350 ath_tx_chaindesclist(struct ath_softc *sc, struct ath_desc *ds0, struct ath_buf *bf, int is_aggr, int is_first_subframe, int is_last_subframe) argument
492 ath_tx_set_ratectrl(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf) argument
539 struct ath_buf *bf, *bf_prev = NULL; local
684 ath_tx_handoff_mcast(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument
727 ath_tx_handoff_hw(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument
898 struct ath_buf *bf, *bf_last; local
945 ath_legacy_xmit_handoff(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument
1031 ath_tx_calc_protection(struct ath_softc *sc, struct ath_buf *bf) argument
1094 ath_tx_calc_duration(struct ath_softc *sc, struct ath_buf *bf) argument
1233 ath_tx_set_rtscts(struct ath_softc *sc, struct ath_buf *bf) argument
1305 ath_tx_setds(struct ath_softc *sc, struct ath_buf *bf) argument
1353 ath_tx_do_ratelookup(struct ath_softc *sc, struct ath_buf *bf) argument
1388 ath_tx_update_clrdmask(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf) argument
1476 ath_tx_xmit_normal(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument
1526 ath_tx_normal_setup(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf, struct mbuf *m0, struct ath_txq *txq) argument
1841 ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf, struct mbuf *m0) argument
2060 ath_tx_raw_start(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf, struct mbuf *m0, const struct ieee80211_bpf_params *params) argument
2326 struct ath_buf *bf; local
2561 ath_tx_addto_baw(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid, struct ath_buf *bf) argument
2700 ath_tx_update_baw(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid, const struct ath_buf *bf) argument
2751 ath_tx_leak_count_update(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf) argument
2885 ath_tx_tid_seqno_assign(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf, struct mbuf *m0) argument
2941 ath_tx_xmit_aggr(struct ath_softc *sc, struct ath_node *an, struct ath_txq *txq, struct ath_buf *bf) argument
3029 ath_tx_swq(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_txq *txq, int queue_to_head, struct ath_buf *bf) argument
3309 ath_tx_tid_filt_addbuf(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf) argument
3334 ath_tx_tid_filt_comp_buf(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf) argument
3361 struct ath_buf *bf; local
3402 ath_tx_tid_filt_comp_single(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf) argument
3456 struct ath_buf *bf, *bf_next, *nbf; local
3687 ath_tx_tid_drain_pkt(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid, ath_bufhead *bf_cq, struct ath_buf *bf) argument
3727 ath_tx_tid_drain_print(struct ath_softc *sc, struct ath_node *an, const char *pfx, struct ath_tid *tid, struct ath_buf *bf) argument
3812 struct ath_buf *bf; local
3972 struct ath_buf *bf; local
4027 struct ath_buf *bf; local
4067 ath_tx_normal_comp(struct ath_softc *sc, struct ath_buf *bf, int fail) argument
4152 ath_tx_comp_cleanup_unaggr(struct ath_softc *sc, struct ath_buf *bf) argument
4197 struct ath_buf *bf, *bf_next; local
4262 struct ath_buf *bf, *bf_next; local
4329 ath_tx_retry_clone(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid, struct ath_buf *bf) argument
4395 ath_tx_aggr_retry_unaggr(struct ath_softc *sc, struct ath_buf *bf) argument
4485 ath_tx_retry_subframe(struct ath_softc *sc, struct ath_buf *bf, ath_bufhead *bf_q) argument
4556 struct ath_buf *bf_next, *bf; local
4641 struct ath_buf *bf, *bf_next; local
4717 struct ath_buf *bf, *bf_next; local
5037 ath_tx_aggr_comp_unaggr(struct ath_softc *sc, struct ath_buf *bf, int fail) argument
5225 ath_tx_aggr_comp(struct ath_softc *sc, struct ath_buf *bf, int fail) argument
5242 struct ath_buf *bf; local
5471 struct ath_buf *bf; local
5841 struct ath_buf *bf; local
5917 struct ath_buf *bf; local
[all...]
H A Dif_ath_tx_ht.h54 extern void ath_tx_rate_fill_rcflags(struct ath_softc *sc, struct ath_buf *bf);
57 struct ieee80211_node *ni, struct ath_buf *bf);
H A Dif_ath_debug.c99 ath_printrxbuf(struct ath_softc *sc, const struct ath_buf *bf, argument
102 const struct ath_rx_status *rs = &bf->bf_status.ds_rxstat;
107 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) {
110 ix, ds, (const struct ath_desc *)bf->bf_daddr + i,
140 const struct ath_buf *bf = first_bf; local
145 printf("Q%u[%3u] (nseg=%d)", qnum, ix, bf->bf_nseg);
146 while (bf != NULL) {
155 n = ((bf->bf_nseg - 1) / 4) + 1;
157 for (i = 0, ds = (const char *) bf
202 const struct ath_buf *bf = first_bf; local
[all...]
H A Dif_ath_tx_edma.c174 struct ath_buf *bf, *bf_last; local
199 bf = ATH_TXQ_FIRST(txq);
200 if (bf == NULL)
202 ATH_TXQ_REMOVE(txq, bf, bf_list);
205 TAILQ_INSERT_TAIL(&sq, bf, bf_list);
208 bf->bf_flags &= ~(ATH_BUF_FIFOPTR | ATH_BUF_FIFOEND);
219 bf = TAILQ_FIRST(&sq);
230 bf->bf_flags |= ATH_BUF_FIFOPTR;
276 ath_hal_puttxbuf(sc->sc_ah, txq->axq_qnum, bf->bf_daddr);
392 struct ath_buf *bf; local
516 ath_edma_xmit_handoff_hw(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument
553 ath_edma_xmit_handoff_mcast(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument
608 ath_edma_xmit_handoff(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument
770 struct ath_buf *bf; local
[all...]
H A Dif_ath_beacon.c180 struct ath_buf *bf; local
184 bf = avp->av_bcbuf;
186 __func__, bf->bf_m, bf->bf_node);
187 if (bf->bf_m != NULL) {
188 bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap);
189 m_freem(bf->bf_m);
190 bf->bf_m = NULL;
192 if (bf->bf_node != NULL) {
193 ieee80211_free_node(bf
262 ath_beacon_setup(struct ath_softc *sc, struct ath_buf *bf) argument
431 struct ath_buf *bf; local
564 struct ath_buf *bf, *bf_last; local
656 struct ath_buf *bf; local
697 struct ath_buf *bf; local
818 struct ath_buf *bf; local
857 ath_beacon_return(struct ath_softc *sc, struct ath_buf *bf) argument
880 struct ath_buf *bf; local
[all...]
H A Dif_ath_descdma.c247 struct ath_buf *bf; local
263 bf = malloc(bsize, M_ATHDEV, M_NOWAIT | M_ZERO);
264 if (bf == NULL) {
270 dd->dd_bufptr = bf;
273 for (i = 0; i < nbuf; i++, bf++, ds += (ndesc * dd->dd_descsize)) {
274 bf->bf_desc = (struct ath_desc *) ds;
275 bf->bf_daddr = DS2PHYS(dd, ds);
282 if (ATH_DESC_4KB_BOUND_CHECK(bf->bf_daddr,
285 ds += 0x1000 - (bf->bf_daddr & 0xFFF);
286 bf
331 struct ath_buf *bf; local
388 struct ath_buf *bf; local
[all...]
H A Dif_ath_rx_edma.c152 static void ath_edma_rxbuf_free(struct ath_softc *sc, struct ath_buf *bf);
203 struct ath_buf *bf; local
210 bf = re->m_fifo[i];
216 (uintmax_t)bf->bf_daddr);
217 ath_hal_putrxbuf(sc->sc_ah, bf->bf_daddr, qtype);
381 struct ath_buf *bf; local
410 bf = re->m_fifo[re->m_fifo_head];
412 if (bf == NULL) {
413 device_printf(sc->sc_dev, "%s: Q%d: NULL bf?\n",
418 m = bf
492 struct ath_buf *bf; local
517 struct ath_buf *bf, *next; local
640 ath_edma_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf) argument
721 struct ath_buf *bf; local
754 ath_edma_rxbuf_free(struct ath_softc *sc, struct ath_buf *bf) argument
783 struct ath_buf *bf; local
857 struct ath_buf *bf = re->m_fifo[i]; local
[all...]
H A Dif_ath_tx_ht.c222 ath_tx_rate_fill_rcflags(struct ath_softc *sc, struct ath_buf *bf) argument
224 struct ieee80211_node *ni = bf->bf_node;
228 struct ath_rc_series *rc = bf->bf_state.bfs_rc;
257 if ((! IS_HT_RATE(rate)) && bf->bf_state.bfs_shpream)
265 if (bf->bf_state.bfs_txflags &
357 bf->bf_state.bfs_txflags |= HAL_TXDESC_LDPC;
500 ath_get_aggr_limit(struct ath_softc *sc, struct ath_buf *bf) argument
509 if (bf->bf_state.bfs_rc[i].tries == 0)
511 amin = MIN(amin, bf->bf_state.bfs_rc[i].max4msframelen);
532 struct ath_buf *bf, HAL_11N_RATE_SERIE
531 ath_rateseries_setup(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf, HAL_11N_RATE_SERIES *series) argument
657 ath_buf_set_rate(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf) argument
738 struct ath_buf *bf, *bf_first = NULL, *bf_prev = NULL; local
[all...]
H A Dif_ath_misc.h53 struct ath_buf *bf);
55 extern void ath_freebuf(struct ath_softc *sc, struct ath_buf *bf);
56 extern void ath_returnbuf_head(struct ath_softc *sc, struct ath_buf *bf);
57 extern void ath_returnbuf_tail(struct ath_softc *sc, struct ath_buf *bf);
60 extern void ath_tx_default_comp(struct ath_softc *sc, struct ath_buf *bf,
69 extern void ath_tx_freebuf(struct ath_softc *sc, struct ath_buf *bf,
90 struct ath_txq *txq, struct ath_tx_status *ts, struct ath_buf *bf);
H A Dif_ath_rx.c246 ath_legacy_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf) argument
255 m = bf->bf_m;
274 bf->bf_dmamap, m,
275 bf->bf_segs, &bf->bf_nseg,
285 KASSERT(bf->bf_nseg == 1,
286 ("multi-segment packet; nseg %u", bf->bf_nseg));
287 bf->bf_m = m;
289 bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap, BUS_DMASYNC_PREREAD);
312 ds = bf
633 ath_rx_pkt(struct ath_softc *sc, struct ath_rx_status *rs, HAL_STATUS status, uint64_t tsf, int nf, HAL_RX_QUEUE qtype, struct ath_buf *bf, struct mbuf *m) argument
1007 struct ath_buf *bf; local
1283 struct ath_buf *bf; local
1342 struct ath_buf *bf; local
1385 struct ath_buf *bf; local
[all...]
/freebsd-11-stable/usr.sbin/fstyp/
H A Dntfs.c98 struct ntfs_bootfile *bf; local
109 bf = (struct ntfs_bootfile *)read_buf(fp, 0, 512);
110 if (bf == NULL || strncmp(bf->bf_sysid, "NTFS ", 8) != 0)
113 mftrecsz = bf->bf_mftrecsz;
114 recsize = (mftrecsz > 0) ? (mftrecsz * bf->bf_bps * bf->bf_spc) : (1 << -mftrecsz);
116 voloff = bf->bf_mftcn * bf->bf_spc * bf
[all...]
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_pd.c172 int mlx4_bf_alloc(struct mlx4_dev *dev, struct mlx4_bf *bf, int node) argument
221 bf->uar = uar;
222 bf->offset = 0;
223 bf->buf_size = dev->caps.bf_reg_size / 2;
224 bf->reg = uar->bf_map + idx * dev->caps.bf_reg_size;
231 bf->uar = NULL;
246 void mlx4_bf_free(struct mlx4_dev *dev, struct mlx4_bf *bf) argument
251 if (!bf->uar || !bf->uar->bf_map)
255 idx = (bf
[all...]
/freebsd-11-stable/sys/dev/malo/
H A Dif_malo.c512 struct malo_rxbuf *bf; local
525 bf = malloc(bsize, M_MALODEV, M_NOWAIT | M_ZERO);
526 if (bf == NULL) {
531 sc->malo_rxdma.dd_bufptr = bf;
535 for (i = 0; i < malo_rxbuf; i++, bf++, ds++) {
536 bf->bf_desc = ds;
537 bf->bf_daddr = DS2PHYS(&sc->malo_rxdma, ds);
539 &bf->bf_dmamap);
547 STAILQ_INSERT_TAIL(&sc->malo_rxbuf, bf, bf_list);
556 struct malo_txbuf *bf; local
609 struct malo_rxbuf *bf; local
633 struct malo_txbuf *bf; local
744 struct malo_txbuf *bf, *bn; local
779 struct malo_txbuf *bf; local
797 malo_tx_dmasetup(struct malo_softc *sc, struct malo_txbuf *bf, struct mbuf *m0) argument
855 malo_printrxbuf(const struct malo_rxbuf *bf, u_int ix) argument
872 malo_printtxbuf(const struct malo_txbuf *bf, u_int qnum, u_int ix) argument
929 struct malo_txbuf *bf; local
1031 malo_tx_start(struct malo_softc *sc, struct ieee80211_node *ni, struct malo_txbuf *bf, struct mbuf *m0) argument
1232 struct malo_txbuf *bf = NULL; local
1342 malo_getrxmbuf(struct malo_softc *sc, struct malo_rxbuf *bf) argument
1370 malo_rxbuf_init(struct malo_softc *sc, struct malo_rxbuf *bf) argument
1410 struct malo_rxbuf *bf, *prev; local
1579 struct malo_txbuf *bf; local
1775 struct malo_txbuf *bf; local
1945 struct malo_rxbuf *bf; local
[all...]
/freebsd-11-stable/sys/geom/label/
H A Dg_label_ntfs.c98 struct ntfs_bootfile *bf; local
113 bf = (struct ntfs_bootfile *)g_read_data(cp, 0, pp->sectorsize, NULL);
114 if (bf == NULL || strncmp(bf->bf_sysid, "NTFS ", 8) != 0)
117 mftrecsz = bf->bf_mftrecsz;
118 recsize = (mftrecsz > 0) ? (mftrecsz * bf->bf_bps * bf->bf_spc) : (1 << -mftrecsz);
122 voloff = bf->bf_mftcn * bf->bf_spc * bf
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libopts/
H A Dpgusage.c39 char * bf; local
48 bf = AGALOC(bfsz, "tmp fil");
49 snprintf(bf, bfsz, TMP_FILE_FMT, tmpdir, my_pid);
55 int fd = mkstemp(bf);
59 AGFREE(bf);
62 *buf = bf;
/freebsd-11-stable/crypto/openssl/crypto/ui/
H A Dui_compat.h77 # define des_read_pw(b,bf,s,p,v) \
78 _ossl_old_des_read_pw((b),(bf),(s),(p),(v))
/freebsd-11-stable/contrib/file/src/
H A Dencoding.c423 looks_ucs16(const unsigned char *bf, size_t nbytes, unichar *ubf, argument
432 if (bf[0] == 0xff && bf[1] == 0xfe)
434 else if (bf[0] == 0xfe && bf[1] == 0xff)
445 ubf[(*ulen)++] = bf[i + 1]
446 | (CAST(unichar, bf[i]) << 8);
448 ubf[(*ulen)++] = bf[i]
449 | (CAST(unichar, bf[i + 1]) << 8);
462 looks_ucs32(const unsigned char *bf, size_ argument
[all...]
/freebsd-11-stable/contrib/gdb/gdb/
H A Ddve3900-rom.c69 static unsigned long fetch_fields (struct bit_field *bf);
70 static void fetch_bitmapped_register (int regno, struct bit_field *bf);
72 static void store_bitmapped_register (int regno, struct bit_field *bf);
432 fetch_fields (struct bit_field *bf) argument
438 for (; bf->prefix != NULL; bf++)
440 monitor_expect (bf->prefix, NULL, 0); /* get prefix */
441 monitor_expect (bf->suffix, buf, sizeof (buf)); /* hex value, suffix */
442 if (bf->length != 0)
445 bits &= ((1 << bf
456 fetch_bitmapped_register(int regno, struct bit_field *bf) argument
504 store_bitmapped_register(int regno, struct bit_field *bf) argument
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libm/
H A Dt_round.c59 float af = VALF, bf, cf; local
63 bf = roundf(af);
67 ATF_CHECK(fabsf(bf) < SMALL_NUM);
/freebsd-11-stable/contrib/sendmail/src/
H A Dbf.c21 SM_RCSID("@(#)$Id: bf.c,v 8.63 2013-11-22 20:51:55 ca Exp $")
32 #include "bf.h"
36 /* bf io functions */
53 struct bf struct
108 struct bf *bfp;
132 bfp = (struct bf *) sm_malloc(sizeof(struct bf));
268 struct bf *bfp;
270 bfp = (struct bf *) fp->f_cookie;
302 struct bf *bf
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_uar.c77 struct mlx5_bf *bf; local
113 bf = &uuari->bfs[i];
115 bf->buf_size = (1 << MLX5_CAP_GEN(dev, log_bf_reg_size)) / 2;
116 bf->uar = &uuari->uars[i / MLX5_BF_REGS_PER_PAGE];
117 bf->regreg = uuari->uars[i / MLX5_BF_REGS_PER_PAGE].map;
118 bf->reg = NULL; /* Add WC support */
119 bf->offset = (i % MLX5_BF_REGS_PER_PAGE) *
122 bf->need_lock = need_uuar_lock(i);
123 spin_lock_init(&bf->lock);
124 spin_lock_init(&bf
[all...]
/freebsd-11-stable/sys/dev/mwl/
H A Dif_mwl.c249 static void mwl_printrxbuf(const struct mwl_rxbuf *bf, u_int ix);
250 static void mwl_printtxbuf(const struct mwl_txbuf *bf, u_int qnum, u_int ix);
1270 struct mwl_txbuf *bf; local
1276 bf = STAILQ_FIRST(&txq->free);
1277 if (bf != NULL) {
1282 if (bf == NULL)
1285 return bf;
1295 mwl_puttxbuf_head(struct mwl_txq *txq, struct mwl_txbuf *bf) argument
1297 bf->bf_m = NULL;
1298 bf
1306 mwl_puttxbuf_tail(struct mwl_txq *txq, struct mwl_txbuf *bf) argument
1341 struct mwl_txbuf *bf; local
1421 struct mwl_txbuf *bf; local
2011 struct mwl_txbuf *bf; local
2028 struct mwl_txbuf *bf; local
2066 struct mwl_txbuf *bf; local
2090 struct mwl_rxbuf *bf; local
2486 mwl_rxbuf_init(struct mwl_softc *sc, struct mwl_rxbuf *bf) argument
2611 struct mwl_rxbuf *bf; local
2830 struct mwl_txbuf *bf, *bn; local
2944 mwl_tx_dmasetup(struct mwl_softc *sc, struct mwl_txbuf *bf, struct mbuf *m0) argument
3065 mwl_tx_start(struct mwl_softc *sc, struct ieee80211_node *ni, struct mwl_txbuf *bf, struct mbuf *m0) argument
3321 struct mwl_txbuf *bf; local
3438 struct mwl_txbuf *bf; local
3516 struct mwl_txbuf *bf; local
3718 struct mwl_rxbuf *bf, *prev; local
4477 mwl_printrxbuf(const struct mwl_rxbuf *bf, u_int ix) argument
4493 mwl_printtxbuf(const struct mwl_txbuf *bf, u_int qnum, u_int ix) argument
[all...]

Completed in 177 milliseconds

1234