| /freebsd-14.2/sys/dev/ath/ |
| H A D | if_ath_tx.c | 159 bf = bf->bf_next; in ath_tx_alq_post() 310 bf->bf_segs, &bf->bf_nseg, in ath_tx_dmasetup() 335 bf->bf_segs, &bf->bf_nseg, in ath_tx_dmasetup() 575 __func__, bf, bf->bf_nseg, bf->bf_state.bfs_pktlen, in ath_tx_setds_11n() 604 ath_tx_set_ratectrl(sc, bf->bf_node, bf); in ath_tx_setds_11n() 638 bf = bf->bf_next; in ath_tx_setds_11n() 821 (caddr_t)bf->bf_daddr, bf->bf_desc, in ath_tx_handoff_hw() 827 (caddr_t)bf->bf_daddr, bf->bf_desc, in ath_tx_handoff_hw() 1356 bf->bf_last = bf; in ath_tx_setds() 1359 ath_tx_set_ratectrl(sc, bf->bf_node, bf); in ath_tx_setds() [all …]
|
| H A D | if_ath_rx_edma.c | 454 m = bf->bf_m; in ath_edma_recv_proc_queue() 464 bf->bf_rxstatus = ath_hal_rxprocdesc(ah, ds, bf->bf_daddr, in ath_edma_recv_proc_queue() 470 ath_printrxbuf(sc, bf, 0, bf->bf_rxstatus == HAL_OK); in ath_edma_recv_proc_queue() 588 m = bf->bf_m; in ath_edma_recv_proc_deferred_queue() 705 bf->bf_lastds = bf->bf_desc; /* XXX only really for TX? */ in ath_edma_rxbuf_init() 706 bf->bf_m = m; in ath_edma_rxbuf_init() 721 bf->bf_dmamap, m, bf->bf_segs, &bf->bf_nseg, BUS_DMA_NOWAIT); in ath_edma_rxbuf_init() 734 bf->bf_daddr = bf->bf_segs[0].ds_addr; in ath_edma_rxbuf_init() 779 bf, in ath_edma_rxbuf_alloc() 785 return (bf); in ath_edma_rxbuf_alloc() [all …]
|
| H A D | if_ath_beacon.c | 190 __func__, bf->bf_m, bf->bf_node); in ath_beacon_alloc() 213 bf->bf_segs, &bf->bf_nseg, in ath_beacon_alloc() 256 bf->bf_m = m; in ath_beacon_alloc() 288 bf->bf_last = bf; in ath_beacon_setup() 718 m = bf->bf_m; in ath_beacon_generate() 726 bf->bf_segs, &bf->bf_nseg, in ath_beacon_generate() 821 return bf; in ath_beacon_generate() 842 m = bf->bf_m; in ath_beacon_start_adhoc() 847 bf->bf_segs, &bf->bf_nseg, in ath_beacon_start_adhoc() 872 __func__, bf, bf->bf_m, bf->bf_node); in ath_beacon_return() [all …]
|
| H A D | if_ath_debug.c | 107 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) { in ath_printrxbuf() 146 while (bf != NULL) { in ath_printtxbuf_edma() 173 bf->bf_state.bfs_seqno, in ath_printtxbuf_edma() 176 bf->bf_state.bfs_dobaw); in ath_printtxbuf_edma() 193 bf = bf->bf_next; in ath_printtxbuf_edma() 208 while (bf != NULL) { in ath_printtxbuf_legacy() 211 bf->bf_state.bfs_seqno, in ath_printtxbuf_legacy() 212 bf->bf_state.bfs_retries, in ath_printtxbuf_legacy() 214 bf->bf_state.bfs_dobaw); in ath_printtxbuf_legacy() 215 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) { in ath_printtxbuf_legacy() [all …]
|
| H A D | if_ath_descdma.c | 245 struct ath_buf *bf; in ath_descdma_setup() local 262 if (bf == NULL) { in ath_descdma_setup() 268 dd->dd_bufptr = bf; in ath_descdma_setup() 289 &bf->bf_dmamap); in ath_descdma_setup() 297 bf->bf_lastds = bf->bf_desc; /* Just an initial value */ in ath_descdma_setup() 329 struct ath_buf *bf; in ath_descdma_setup_rx_edma() local 350 if (bf == NULL) { in ath_descdma_setup_rx_edma() 357 dd->dd_bufptr = bf; in ath_descdma_setup_rx_edma() 362 bf->bf_daddr = 0; in ath_descdma_setup_rx_edma() 366 &bf->bf_dmamap); in ath_descdma_setup_rx_edma() [all …]
|
| H A D | if_ath_tx_edma.c | 207 if (bf == NULL) in ath_tx_edma_push_staging_list() 226 bf = TAILQ_FIRST(&sq); in ath_tx_edma_push_staging_list() 404 struct ath_buf *bf; in ath_edma_dma_restart() local 468 bf, in ath_edma_dma_restart() 529 struct ath_buf *bf) in ath_edma_xmit_handoff_hw() argument 592 bf->bf_daddr); in ath_edma_xmit_handoff_mcast() 627 bf, in ath_edma_xmit_handoff() 800 struct ath_buf *bf; in ath_edma_tx_processq() local 886 if (bf == NULL) { in ath_edma_tx_processq() 911 bf->bf_descid); in ath_edma_tx_processq() [all …]
|
| H A D | if_ath_tx_ht.c | 564 struct ath_buf *bf) in ath_get_aggr_limit() argument 633 if (bf->bf_state.bfs_aggr) in ath_rateseries_setup() 742 struct ath_buf *bf) in ath_buf_set_rate() argument 850 bf = ATH_TID_FIRST(tid); in ath_tx_form_aggr() 851 if (bf == NULL) { in ath_tx_form_aggr() 856 bf_first = bf; in ath_tx_form_aggr() 871 bf->bf_next = NULL; in ath_tx_form_aggr() 930 if (bf != bf_first) { in ath_tx_form_aggr() 989 bf->bf_state.bfs_pktlen, (bf_first == bf)); in ath_tx_form_aggr() 1002 bf_prev->bf_next = bf; in ath_tx_form_aggr() [all …]
|
| H A D | if_ath_rx.c | 255 m = bf->bf_m; in ath_legacy_rxbuf_init() 275 bf->bf_segs, &bf->bf_nseg, in ath_legacy_rxbuf_init() 287 bf->bf_m = m; in ath_legacy_rxbuf_init() 312 ds = bf->bf_desc; in ath_legacy_rxbuf_init() 1131 m = bf->bf_m; in ath_rx_proc() 1142 ds = bf->bf_desc; in ath_rx_proc() 1185 bf->bf_m = NULL; in ath_rx_proc() 1362 if (bf != NULL) { in ath_legacy_flush_rxholdbf() 1365 bf->bf_m = NULL; in ath_legacy_flush_rxholdbf() 1372 if (bf != NULL) { in ath_legacy_flush_rxholdbf() [all …]
|
| H A D | if_ath.c | 3191 bf = NULL; in _ath_getbuf_locked() 3213 bzero(&bf->bf_state, sizeof(bf->bf_state)); in _ath_getbuf_locked() 3223 return bf; in _ath_getbuf_locked() 3310 return bf; in ath_getbuf() 4302 bf, in ath_tx_default_comp() 4309 bf, in ath_tx_default_comp() 4422 bf->bf_comp(sc, bf, 0); in ath_tx_process_buf_completion() 4503 bf, in ath_tx_processq() 4863 bf, in ath_txq_addholdingbuf() 5061 bf->bf_comp(sc, bf, 1); in ath_tx_draintxq() [all …]
|
| H A D | if_ath_misc.h | 53 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-14.2/contrib/wpa/src/utils/ |
| H A D | bitfield.c | 23 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() 36 os_free(bf); in bitfield_free() 42 if (bit >= bf->max_bits) in bitfield_set() 50 if (bit >= bf->max_bits) in bitfield_clear() 58 if (bit >= bf->max_bits) in bitfield_is_set() [all …]
|
| H A D | utils_module_tests.c | 130 struct bitfield *bf; in bitfield_tests() local 137 if (bf == NULL) in bitfield_tests() 141 if (bitfield_is_set(bf, i) || bitfield_is_set(bf, i + 1)) in bitfield_tests() 145 bitfield_set(bf, i); in bitfield_tests() 154 if (bitfield_is_set(bf, i) || bitfield_is_set(bf, i + 1)) in bitfield_tests() 158 bitfield_set(bf, i); in bitfield_tests() 167 if (bitfield_is_set(bf, i) || bitfield_is_set(bf, i + 1)) in bitfield_tests() 169 bitfield_set(bf, i); in bitfield_tests() 200 bitfield_free(bf); in bitfield_tests() 203 if (bf == NULL) in bitfield_tests() [all …]
|
| H A D | bitfield.h | 15 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-14.2/sys/dev/malo/ |
| H A D | if_malo.c | 527 if (bf == NULL) { in malo_rxdma_setup() 569 if (bf == NULL) { in malo_txdma_setup() 784 if (bf != NULL) { in malo_getbuf() 794 return bf; in malo_getbuf() 808 bf->bf_segs, &bf->bf_nseg, in malo_tx_dmasetup() 832 bf->bf_segs, &bf->bf_nseg, in malo_tx_dmasetup() 849 bf->bf_m = m0; in malo_tx_dmasetup() 1371 bf->bf_m = malo_getrxmbuf(sc, bf); in malo_rxbuf_init() 1426 prev = bf; in malo_startrecv() 2007 m = bf->bf_m; in malo_rx_proc() [all …]
|
| /freebsd-14.2/sys/dev/mlx4/mlx4_core/ |
| H A D | mlx4_pd.c | 221 bf->uar = uar; in mlx4_bf_alloc() 222 bf->offset = 0; in mlx4_bf_alloc() 231 bf->uar = NULL; in mlx4_bf_alloc() 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() 257 if (!bf->uar->free_bf_bmap) { in mlx4_bf_free() 259 list_del(&bf->uar->bf_list); in mlx4_bf_free() 261 io_mapping_unmap(bf->uar->bf_map); in mlx4_bf_free() 262 iounmap(bf->uar->map); in mlx4_bf_free() 263 mlx4_uar_free(dev, bf->uar); in mlx4_bf_free() [all …]
|
| /freebsd-14.2/sys/geom/label/ |
| H A D | g_label_ntfs.c | 96 struct ntfs_bootfile *bf; in g_label_ntfs_taste() local 110 bf = NULL; in g_label_ntfs_taste() 113 if (pp->sectorsize < sizeof(*bf)) in g_label_ntfs_taste() 116 bf = g_read_data(cp, 0, pp->sectorsize, NULL); in g_label_ntfs_taste() 117 if (bf == NULL || strncmp(bf->bf_sysid, "NTFS ", 8) != 0) in g_label_ntfs_taste() 120 mftrecsz = bf->bf_mftrecsz; in g_label_ntfs_taste() 121 recsize = (mftrecsz > 0) ? (mftrecsz * bf->bf_bps * bf->bf_spc) : in g_label_ntfs_taste() 126 voloff = bf->bf_mftcn * bf->bf_spc * bf->bf_bps + in g_label_ntfs_taste() 176 g_free(bf); in g_label_ntfs_taste()
|
| /freebsd-14.2/usr.sbin/fstyp/ |
| H A D | ntfs.c | 134 struct ntfs_bootfile *bf; in fstyp_ntfs() local 147 bf = (struct ntfs_bootfile *)read_buf(fp, 0, 512); in fstyp_ntfs() 148 if (bf == NULL || strncmp(bf->bf_sysid, "NTFS ", 8) != 0) in fstyp_ntfs() 154 mftrecsz = bf->bf_mftrecsz; in fstyp_ntfs() 155 recsize = (mftrecsz > 0) ? (mftrecsz * bf->bf_bps * bf->bf_spc) : (1 << -mftrecsz); in fstyp_ntfs() 157 voloff = bf->bf_mftcn * bf->bf_spc * bf->bf_bps + in fstyp_ntfs() 186 free(bf); in fstyp_ntfs() 192 free(bf); in fstyp_ntfs()
|
| /freebsd-14.2/contrib/file/src/ |
| H A D | encoding.c | 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() 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() 548 | (CAST(file_unichar_t, bf[i + 2]) << 8) in looks_ucs32() 549 | (CAST(file_unichar_t, bf[i + 1]) << 16) in looks_ucs32() 550 | (CAST(file_unichar_t, bf[i]) << 24); in looks_ucs32() 553 | (CAST(file_unichar_t, bf[i + 1]) << 8) in looks_ucs32() [all …]
|
| /freebsd-14.2/contrib/sendmail/src/ |
| H A D | bf.c | 53 struct bf struct 108 struct bf *bfp; 132 bfp = (struct bf *) sm_malloc(sizeof(struct bf)); 268 struct bf *bfp; 302 struct bf *bfp; 346 struct bf *bfp; 443 struct bf *bfp; 491 struct bf *bfp; 675 struct bf *bfp; 788 struct bf *bfp; [all …]
|
| /freebsd-14.2/sys/dev/mwl/ |
| H A D | if_mwl.c | 1274 if (bf != NULL) { in mwl_gettxbuf() 1279 if (bf == NULL) in mwl_gettxbuf() 1282 return bf; in mwl_gettxbuf() 1294 bf->bf_m = NULL; in mwl_puttxbuf_head() 1305 bf->bf_m = NULL; in mwl_puttxbuf_tail() 2626 if (bf == NULL) in mwl_rx_proc() 2813 bf = STAILQ_NEXT(bf, bf_list); in mwl_rx_proc() 2956 bf->bf_segs, &bf->bf_nseg, in mwl_tx_dmasetup() 2985 bf->bf_segs, &bf->bf_nseg, in mwl_tx_dmasetup() 3002 bf->bf_m = m0; in mwl_tx_dmasetup() [all …]
|
| /freebsd-14.2/contrib/ntp/sntp/libopts/ |
| H A D | pgusage.c | 39 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-14.2/contrib/tcsh/ |
| H A D | tw.comp.c | 220 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-14.2/sys/dev/rtwn/usb/ |
| H A D | rtwn_usb_tx.c | 76 struct rtwn_data *bf; in _rtwn_usb_getbuf() local 78 bf = STAILQ_FIRST(&uc->uc_tx_inactive); in _rtwn_usb_getbuf() 79 if (bf != NULL) in _rtwn_usb_getbuf() 85 return (bf); in _rtwn_usb_getbuf() 92 struct rtwn_data *bf; in rtwn_usb_getbuf() local 96 bf = _rtwn_usb_getbuf(uc); in rtwn_usb_getbuf() 97 if (bf == NULL) { in rtwn_usb_getbuf() 101 return (bf); in rtwn_usb_getbuf()
|
| /freebsd-14.2/usr.sbin/bhyve/ |
| H A D | acpi.c | 259 basl_open(struct basl_fio *bf, int suffix) in basl_open() argument 267 bf->fd = mkstemps(bf->f_name, strlen(BHYVE_ASL_SUFFIX)); in basl_open() 270 bf->fd = mkstemp(bf->f_name); in basl_open() 273 if (bf->fd > 0) { in basl_open() 274 bf->fp = fdopen(bf->fd, "w+"); in basl_open() 275 if (bf->fp == NULL) { in basl_open() 276 unlink(bf->f_name); in basl_open() 277 close(bf->fd); in basl_open() 287 basl_close(struct basl_fio *bf) in basl_close() argument 291 unlink(bf->f_name); in basl_close() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/bf/ |
| H A D | build.info | 5 $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
|