Home
last modified time | relevance | path

Searched refs:bf (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/freebsd/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; in ath_tx_alq_post() local
144 bf = bf_first; in ath_tx_alq_post()
146 while (bf != NULL) { in ath_tx_alq_post()
148 if (bf->bf_nseg == 0) in ath_tx_alq_post()
150 n = ((bf->bf_nseg - 1) / sc->sc_tx_nmaps) + 1; in ath_tx_alq_post()
151 for (i = 0, ds = (const char *) bf->bf_desc; in ath_tx_alq_post()
159 bf = bf->bf_next; in ath_tx_alq_post()
196 ath_tx_set_retry(struct ath_softc *sc, struct ath_buf *bf) in ath_tx_set_retry() argument
[all …]
H A Dif_ath_rx_edma.c152 static void ath_edma_rxbuf_free(struct ath_softc *sc, struct ath_buf *bf);
208 struct ath_buf *bf; in ath_edma_reinit_fifo() local
217 bf = re->m_fifo[i]; in ath_edma_reinit_fifo()
223 (uintmax_t)bf->bf_daddr); in ath_edma_reinit_fifo()
224 ath_hal_putrxbuf(sc->sc_ah, bf->bf_daddr, qtype); in ath_edma_reinit_fifo()
415 struct ath_buf *bf; in ath_edma_recv_proc_queue() local
446 bf = re->m_fifo[re->m_fifo_head]; in ath_edma_recv_proc_queue()
448 if (bf == NULL) { in ath_edma_recv_proc_queue()
454 m = bf->bf_m; in ath_edma_recv_proc_queue()
455 ds = bf->bf_desc; in ath_edma_recv_proc_queue()
[all …]
H A Dif_ath_beacon.c184 struct ath_buf *bf; in ath_beacon_alloc() local
188 bf = avp->av_bcbuf; in ath_beacon_alloc()
190 __func__, bf->bf_m, bf->bf_node); in ath_beacon_alloc()
191 if (bf->bf_m != NULL) { in ath_beacon_alloc()
192 bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap); in ath_beacon_alloc()
193 m_freem(bf->bf_m); in ath_beacon_alloc()
194 bf->bf_m = NULL; in ath_beacon_alloc()
196 if (bf->bf_node != NULL) { in ath_beacon_alloc()
197 ieee80211_free_node(bf->bf_node); in ath_beacon_alloc()
198 bf->bf_node = NULL; in ath_beacon_alloc()
[all …]
H A Dif_ath_debug.c99 ath_printrxbuf(struct ath_softc *sc, const struct ath_buf *bf, in ath_printrxbuf() argument
102 const struct ath_rx_status *rs = &bf->bf_status.ds_rxstat; in ath_printrxbuf()
107 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) { in ath_printrxbuf()
110 ix, ds, (const struct ath_desc *)bf->bf_daddr + i, in ath_printrxbuf()
140 const struct ath_buf *bf = first_bf; in ath_printtxbuf_edma() local
145 printf("Q%u[%3u] (nseg=%d)", qnum, ix, bf->bf_nseg); in ath_printtxbuf_edma()
146 while (bf != NULL) { in ath_printtxbuf_edma()
155 n = ((bf->bf_nseg - 1) / 4) + 1; in ath_printtxbuf_edma()
157 for (i = 0, ds = (const char *) bf->bf_desc; in ath_printtxbuf_edma()
162 eds, (const struct ath_desc *)bf->bf_daddr + i, in ath_printtxbuf_edma()
[all …]
H A Dif_ath_descdma.c245 struct ath_buf *bf; in ath_descdma_setup() local
261 bf = malloc(bsize, M_ATHDEV, M_NOWAIT | M_ZERO); in ath_descdma_setup()
262 if (bf == NULL) { in ath_descdma_setup()
268 dd->dd_bufptr = bf; in ath_descdma_setup()
271 for (i = 0; i < nbuf; i++, bf++, ds += (ndesc * dd->dd_descsize)) { in ath_descdma_setup()
272 bf->bf_desc = (struct ath_desc *) ds; in ath_descdma_setup()
273 bf->bf_daddr = DS2PHYS(dd, ds); in ath_descdma_setup()
280 if (ATH_DESC_4KB_BOUND_CHECK(bf->bf_daddr, in ath_descdma_setup()
283 ds += 0x1000 - (bf->bf_daddr & 0xFFF); in ath_descdma_setup()
284 bf->bf_desc = (struct ath_desc *) ds; in ath_descdma_setup()
[all …]
H A Dif_ath_tx_edma.c174 struct ath_buf *bf, *bf_last; in ath_tx_edma_push_staging_list() local
206 bf = ATH_TXQ_FIRST(txq); in ath_tx_edma_push_staging_list()
207 if (bf == NULL) in ath_tx_edma_push_staging_list()
209 ATH_TXQ_REMOVE(txq, bf, bf_list); in ath_tx_edma_push_staging_list()
212 TAILQ_INSERT_TAIL(&sq, bf, bf_list); in ath_tx_edma_push_staging_list()
215 bf->bf_flags &= ~(ATH_BUF_FIFOPTR | ATH_BUF_FIFOEND); in ath_tx_edma_push_staging_list()
226 bf = TAILQ_FIRST(&sq); in ath_tx_edma_push_staging_list()
237 bf->bf_flags |= ATH_BUF_FIFOPTR; in ath_tx_edma_push_staging_list()
283 ath_hal_puttxbuf(sc->sc_ah, txq->axq_qnum, bf->bf_daddr); in ath_tx_edma_push_staging_list()
404 struct ath_buf *bf; in ath_edma_dma_restart() local
[all …]
H A Dif_ath_tx_ht.c222 ath_tx_rate_fill_rcflags(struct ath_softc *sc, struct ath_buf *bf) in ath_tx_rate_fill_rcflags() argument
224 struct ieee80211_node *ni = bf->bf_node; in ath_tx_rate_fill_rcflags()
228 struct ath_rc_series *rc = bf->bf_state.bfs_rc; in ath_tx_rate_fill_rcflags()
250 if (bf->bf_flags & ATH_BUF_TOA_PROBE) in ath_tx_rate_fill_rcflags()
265 if ((! IS_HT_RATE(rate)) && bf->bf_state.bfs_shpream) in ath_tx_rate_fill_rcflags()
273 if (bf->bf_state.bfs_txflags & in ath_tx_rate_fill_rcflags()
303 (bf->bf_flags & ATH_BUF_TOA_PROBE) == 0) { in ath_tx_rate_fill_rcflags()
311 (bf->bf_flags & ATH_BUF_TOA_PROBE) == 0) { in ath_tx_rate_fill_rcflags()
326 (bf->bf_flags & ATH_BUF_TOA_PROBE) == 0) { in ath_tx_rate_fill_rcflags()
377 bf->bf_state.bfs_txflags |= HAL_TXDESC_LDPC; in ath_tx_rate_fill_rcflags()
[all …]
H A Dif_ath_rx.c246 ath_legacy_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf) in ath_legacy_rxbuf_init() argument
255 m = bf->bf_m; in ath_legacy_rxbuf_init()
274 bf->bf_dmamap, m, in ath_legacy_rxbuf_init()
275 bf->bf_segs, &bf->bf_nseg, in ath_legacy_rxbuf_init()
285 KASSERT(bf->bf_nseg == 1, in ath_legacy_rxbuf_init()
286 ("multi-segment packet; nseg %u", bf->bf_nseg)); in ath_legacy_rxbuf_init()
287 bf->bf_m = m; in ath_legacy_rxbuf_init()
289 bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap, BUS_DMASYNC_PREREAD); in ath_legacy_rxbuf_init()
312 ds = bf->bf_desc; in ath_legacy_rxbuf_init()
314 ds->ds_link = bf->bf_daddr; /* link to self */ in ath_legacy_rxbuf_init()
[all …]
H A Dif_ath.c3153 struct ath_buf *bf; in _ath_getbuf_locked() local
3158 bf = TAILQ_FIRST(&sc->sc_txbuf_mgmt); in _ath_getbuf_locked()
3160 bf = TAILQ_FIRST(&sc->sc_txbuf); in _ath_getbuf_locked()
3162 if (bf == NULL) { in _ath_getbuf_locked()
3165 if (bf->bf_flags & ATH_BUF_BUSY) { in _ath_getbuf_locked()
3167 bf = NULL; in _ath_getbuf_locked()
3171 if (bf != NULL && (bf->bf_flags & ATH_BUF_BUSY) == 0) { in _ath_getbuf_locked()
3173 TAILQ_REMOVE(&sc->sc_txbuf_mgmt, bf, bf_list); in _ath_getbuf_locked()
3175 TAILQ_REMOVE(&sc->sc_txbuf, bf, bf_list); in _ath_getbuf_locked()
3191 bf = NULL; in _ath_getbuf_locked()
[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);
61 extern void ath_tx_default_comp(struct ath_softc *sc, struct ath_buf *bf,
71 extern void ath_tx_freebuf(struct ath_softc *sc, struct ath_buf *bf,
92 struct ath_txq *txq, struct ath_tx_status *ts, struct ath_buf *bf);
/freebsd/contrib/wpa/src/utils/
H A Dbitfield.c23 struct bitfield *bf; in bitfield_alloc() local
25 bf = os_zalloc(sizeof(*bf) + (max_bits + 7) / 8); in bitfield_alloc()
26 if (bf == NULL) in bitfield_alloc()
28 bf->bits = (u8 *) (bf + 1); in bitfield_alloc()
29 bf->max_bits = max_bits; in bitfield_alloc()
30 return bf; in bitfield_alloc()
34 void bitfield_free(struct bitfield *bf) in bitfield_free() argument
36 os_free(bf); in bitfield_free()
40 void bitfield_set(struct bitfield *bf, size_t bit) in bitfield_set() argument
42 if (bit >= bf->max_bits) in bitfield_set()
[all …]
H A Dutils_module_tests.c130 struct bitfield *bf; in bitfield_tests() local
136 bf = bitfield_alloc(123); in bitfield_tests()
137 if (bf == NULL) in bitfield_tests()
141 if (bitfield_is_set(bf, i) || bitfield_is_set(bf, i + 1)) in bitfield_tests()
143 if (i > 0 && bitfield_is_set(bf, i - 1)) in bitfield_tests()
145 bitfield_set(bf, i); in bitfield_tests()
146 if (!bitfield_is_set(bf, i)) in bitfield_tests()
148 bitfield_clear(bf, i); in bitfield_tests()
149 if (bitfield_is_set(bf, i)) in bitfield_tests()
154 if (bitfield_is_set(bf, i) || bitfield_is_set(bf, i + 1)) in bitfield_tests()
[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);
/freebsd/sys/dev/malo/
H A Dif_malo.c505 struct malo_rxbuf *bf; in malo_rxdma_setup() local
518 bf = malloc(bsize, M_MALODEV, M_NOWAIT | M_ZERO); in malo_rxdma_setup()
519 if (bf == NULL) { in malo_rxdma_setup()
524 sc->malo_rxdma.dd_bufptr = bf; in malo_rxdma_setup()
528 for (i = 0; i < malo_rxbuf; i++, bf++, ds++) { in malo_rxdma_setup()
529 bf->bf_desc = ds; in malo_rxdma_setup()
530 bf->bf_daddr = DS2PHYS(&sc->malo_rxdma, ds); in malo_rxdma_setup()
532 &bf->bf_dmamap); in malo_rxdma_setup()
540 STAILQ_INSERT_TAIL(&sc->malo_rxbuf, bf, bf_list); in malo_rxdma_setup()
549 struct malo_txbuf *bf; in malo_txdma_setup() local
[all …]
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_pd.c172 int mlx4_bf_alloc(struct mlx4_dev *dev, struct mlx4_bf *bf, int node) in mlx4_bf_alloc() argument
221 bf->uar = uar; in mlx4_bf_alloc()
222 bf->offset = 0; in mlx4_bf_alloc()
223 bf->buf_size = dev->caps.bf_reg_size / 2; in mlx4_bf_alloc()
224 bf->reg = uar->bf_map + idx * dev->caps.bf_reg_size; in mlx4_bf_alloc()
231 bf->uar = NULL; in mlx4_bf_alloc()
246 void mlx4_bf_free(struct mlx4_dev *dev, struct mlx4_bf *bf) in mlx4_bf_free() argument
251 if (!bf->uar || !bf->uar->bf_map) in mlx4_bf_free()
255 idx = (bf->reg - bf->uar->bf_map) / dev->caps.bf_reg_size; in mlx4_bf_free()
256 bf->uar->free_bf_bmap &= ~(1 << idx); in mlx4_bf_free()
[all …]
/freebsd/sys/geom/label/
H A Dg_label_ntfs.c95 struct ntfs_bootfile *bf; in g_label_ntfs_taste() local
109 bf = NULL; in g_label_ntfs_taste()
112 if (pp->sectorsize < sizeof(*bf)) in g_label_ntfs_taste()
115 bf = g_read_data(cp, 0, pp->sectorsize, NULL); in g_label_ntfs_taste()
116 if (bf == NULL || strncmp(bf->bf_sysid, "NTFS ", 8) != 0) in g_label_ntfs_taste()
119 mftrecsz = bf->bf_mftrecsz; in g_label_ntfs_taste()
120 recsize = (mftrecsz > 0) ? (mftrecsz * bf->bf_bps * bf->bf_spc) : in g_label_ntfs_taste()
125 voloff = bf->bf_mftcn * bf->bf_spc * bf->bf_bps + in g_label_ntfs_taste()
175 g_free(bf); in g_label_ntfs_taste()
/freebsd/usr.sbin/fstyp/
H A Dntfs.c134 struct ntfs_bootfile *bf; in fstyp_ntfs() local
146 bf = (struct ntfs_bootfile *)read_buf(fp, 0, 512); in fstyp_ntfs()
147 if (bf == NULL || strncmp(bf->bf_sysid, "NTFS ", 8) != 0) in fstyp_ntfs()
153 mftrecsz = bf->bf_mftrecsz; in fstyp_ntfs()
155 (mftrecsz * bf->bf_bps * bf->bf_spc) : (1 << -mftrecsz); in fstyp_ntfs()
157 voloff = bf->bf_mftcn * bf->bf_spc * bf in fstyp_ntfs()
[all...]
/freebsd/contrib/file/src/
H A Dencoding.c465 looks_ucs16(const unsigned char *bf, size_t nbytes, file_unichar_t *ubf, in looks_ucs16() argument
475 if (bf[0] == 0xff && bf[1] == 0xfe) in looks_ucs16()
477 else if (bf[0] == 0xfe && bf[1] == 0xff) in looks_ucs16()
490 bf[i + 1] | (CAST(file_unichar_t, bf[i]) << 8)); in looks_ucs16()
493 bf[i] | (CAST(file_unichar_t, bf[i + 1]) << 8)); in looks_ucs16()
525 looks_ucs32(const unsigned char *bf, size_t nbytes, file_unichar_t *ubf, in looks_ucs32() argument
534 if (bf[0] == 0xff && bf[1] == 0xfe && bf[2] == 0 && bf[3] == 0) in looks_ucs32()
536 else if (bf[0] == 0 && bf[1] == 0 && bf[2] == 0xfe && bf[3] == 0xff) in looks_ucs32()
547 ubf[(*ulen)++] = CAST(file_unichar_t, bf[i + 3]) in looks_ucs32()
548 | (CAST(file_unichar_t, bf[i + 2]) << 8) in looks_ucs32()
[all …]
/freebsd/sys/dev/mwl/
H A Dif_mwl.c243 static void mwl_printrxbuf(const struct mwl_rxbuf *bf, u_int ix);
244 static void mwl_printtxbuf(const struct mwl_txbuf *bf, u_int qnum, u_int ix);
1264 struct mwl_txbuf *bf; in mwl_gettxbuf() local
1270 bf = STAILQ_FIRST(&txq->free); in mwl_gettxbuf()
1271 if (bf != NULL) { in mwl_gettxbuf()
1276 if (bf == NULL) in mwl_gettxbuf()
1279 return bf; in mwl_gettxbuf()
1289 mwl_puttxbuf_head(struct mwl_txq *txq, struct mwl_txbuf *bf) in mwl_puttxbuf_head() argument
1291 bf->bf_m = NULL; in mwl_puttxbuf_head()
1292 bf->bf_node = NULL; in mwl_puttxbuf_head()
[all …]
/freebsd/contrib/sendmail/src/
H A Dbf.c53 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 *bfp;
305 bfp = (struct bf *) fp->f_cookie;
346 struct bf *bfp;
351 bfp = (struct bf *) fp->f_cookie;
443 struct bf *bfp;
[all …]
/freebsd/contrib/ntp/sntp/libopts/
H A Dpgusage.c39 char * bf; in open_tmp_usage() local
48 bf = AGALOC(bfsz, "tmp fil"); in open_tmp_usage()
49 snprintf(bf, bfsz, TMP_FILE_FMT, tmpdir, my_pid); in open_tmp_usage()
55 int fd = mkstemp(bf); in open_tmp_usage()
59 AGFREE(bf); in open_tmp_usage()
62 *buf = bf; in open_tmp_usage()
/freebsd/contrib/tcsh/
H A Dtw.comp.c220 static Char *bf = NULL; in tw_tok() local
223 bf = str; in tw_tok()
226 for (; *bf && Isspace(*bf); bf++) in tw_tok()
229 for (str = bf; *bf && !Isspace(*bf); bf++) { in tw_tok()
230 if (ismetahash(*bf)) in tw_tok()
232 *bf = *bf & ~QUOTE; in tw_tok()
234 if (*bf != '\0') in tw_tok()
235 *bf++ = '\0'; in tw_tok()
/freebsd/usr.sbin/bhyve/
H A Dacpi.c258 basl_open(struct basl_fio *bf, int suffix) in basl_open() argument
265 strlcpy(bf->f_name, basl_stemplate, MAXPATHLEN); in basl_open()
266 bf->fd = mkstemps(bf->f_name, strlen(BHYVE_ASL_SUFFIX)); in basl_open()
268 strlcpy(bf->f_name, basl_template, MAXPATHLEN); in basl_open()
269 bf->fd = mkstemp(bf->f_name); in basl_open()
272 if (bf->fd > 0) { in basl_open()
273 bf->fp = fdopen(bf->fd, "w+"); in basl_open()
274 if (bf->fp == NULL) { in basl_open()
275 unlink(bf->f_name); in basl_open()
276 close(bf->fd); in basl_open()
[all …]
/freebsd/sys/dev/rtwn/usb/
H A Drtwn_usb_tx.c72 struct rtwn_data *bf; in _rtwn_usb_getbuf() local
74 bf = STAILQ_FIRST(&uc->uc_tx_inactive); in _rtwn_usb_getbuf()
75 if (bf != NULL) in _rtwn_usb_getbuf()
81 return (bf); in _rtwn_usb_getbuf()
88 struct rtwn_data *bf; in rtwn_usb_getbuf() local
92 bf = _rtwn_usb_getbuf(uc); in rtwn_usb_getbuf()
93 if (bf == NULL) { in rtwn_usb_getbuf()
97 return (bf); in rtwn_usb_getbuf()
/freebsd/crypto/openssl/crypto/bf/
H A Dbuild.info5 $BFASM_x86=bf-586.S
24 GENERATE[bf-586.S]=asm/bf-586.pl
25 DEPEND[bf-586.S]=../perlasm/x86asm.pl ../perlasm/cbc.pl

12345678910>>...15