| /freebsd-12.1/sys/dev/ath/ |
| H A D | if_ath_tx.c | 161 bf = bf->bf_next; in ath_tx_alq_post() 312 bf->bf_segs, &bf->bf_nseg, in ath_tx_dmasetup() 337 bf->bf_segs, &bf->bf_nseg, in ath_tx_dmasetup() 577 __func__, bf, bf->bf_nseg, bf->bf_state.bfs_pktlen, in ath_tx_setds_11n() 606 ath_tx_set_ratectrl(sc, bf->bf_node, bf); in ath_tx_setds_11n() 640 bf = bf->bf_next; in ath_tx_setds_11n() 823 (caddr_t)bf->bf_daddr, bf->bf_desc, in ath_tx_handoff_hw() 829 (caddr_t)bf->bf_daddr, bf->bf_desc, in ath_tx_handoff_hw() 1358 bf->bf_last = bf; in ath_tx_setds() 1361 ath_tx_set_ratectrl(sc, bf->bf_node, bf); in ath_tx_setds() [all …]
|
| H A D | if_ath_rx_edma.c | 420 m = bf->bf_m; in ath_edma_recv_proc_queue() 430 bf->bf_rxstatus = ath_hal_rxprocdesc(ah, ds, bf->bf_daddr, in ath_edma_recv_proc_queue() 436 ath_printrxbuf(sc, bf, 0, bf->bf_rxstatus == HAL_OK); in ath_edma_recv_proc_queue() 554 m = bf->bf_m; in ath_edma_recv_proc_deferred_queue() 672 bf->bf_lastds = bf->bf_desc; /* XXX only really for TX? */ in ath_edma_rxbuf_init() 673 bf->bf_m = m; in ath_edma_rxbuf_init() 688 bf->bf_dmamap, m, bf->bf_segs, &bf->bf_nseg, BUS_DMA_NOWAIT); in ath_edma_rxbuf_init() 701 bf->bf_daddr = bf->bf_segs[0].ds_addr; in ath_edma_rxbuf_init() 746 bf, in ath_edma_rxbuf_alloc() 752 return (bf); in ath_edma_rxbuf_alloc() [all …]
|
| H A D | if_ath_beacon.c | 192 __func__, bf->bf_m, bf->bf_node); in ath_beacon_alloc() 215 bf->bf_segs, &bf->bf_nseg, in ath_beacon_alloc() 258 bf->bf_m = m; in ath_beacon_alloc() 290 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() 822 return bf; in ath_beacon_generate() 843 m = bf->bf_m; in ath_beacon_start_adhoc() 848 bf->bf_segs, &bf->bf_nseg, in ath_beacon_start_adhoc() 873 __func__, bf, bf->bf_m, bf->bf_node); in ath_beacon_return() [all …]
|
| H A D | if_ath_descdma.c | 247 struct ath_buf *bf; in ath_descdma_setup() local 264 if (bf == NULL) { in ath_descdma_setup() 270 dd->dd_bufptr = bf; in ath_descdma_setup() 291 &bf->bf_dmamap); in ath_descdma_setup() 299 bf->bf_lastds = bf->bf_desc; /* Just an initial value */ in ath_descdma_setup() 331 struct ath_buf *bf; in ath_descdma_setup_rx_edma() local 352 if (bf == NULL) { in ath_descdma_setup_rx_edma() 359 dd->dd_bufptr = bf; in ath_descdma_setup_rx_edma() 364 bf->bf_daddr = 0; in ath_descdma_setup_rx_edma() 368 &bf->bf_dmamap); in ath_descdma_setup_rx_edma() [all …]
|
| H A D | if_ath_debug.c | 109 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) { in ath_printrxbuf() 148 while (bf != NULL) { in ath_printtxbuf_edma() 175 bf->bf_state.bfs_seqno, in ath_printtxbuf_edma() 178 bf->bf_state.bfs_dobaw); in ath_printtxbuf_edma() 195 bf = bf->bf_next; in ath_printtxbuf_edma() 210 while (bf != NULL) { in ath_printtxbuf_legacy() 213 bf->bf_state.bfs_seqno, in ath_printtxbuf_legacy() 214 bf->bf_state.bfs_retries, in ath_printtxbuf_legacy() 216 bf->bf_state.bfs_dobaw); in ath_printtxbuf_legacy() 217 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) { in ath_printtxbuf_legacy() [all …]
|
| H A D | if_ath_tx_edma.c | 209 if (bf == NULL) in ath_tx_edma_push_staging_list() 228 bf = TAILQ_FIRST(&sq); in ath_tx_edma_push_staging_list() 406 struct ath_buf *bf; in ath_edma_dma_restart() local 470 bf, in ath_edma_dma_restart() 531 struct ath_buf *bf) in ath_edma_xmit_handoff_hw() argument 594 bf->bf_daddr); in ath_edma_xmit_handoff_mcast() 629 bf, in ath_edma_xmit_handoff() 803 struct ath_buf *bf; in ath_edma_tx_processq() local 889 if (bf == NULL) { in ath_edma_tx_processq() 914 bf->bf_descid); in ath_edma_tx_processq() [all …]
|
| H A D | if_ath_tx_ht.c | 567 struct ath_buf *bf) in ath_get_aggr_limit() argument 638 if (bf->bf_state.bfs_aggr) in ath_rateseries_setup() 747 struct ath_buf *bf) in ath_buf_set_rate() argument 846 bf = ATH_TID_FIRST(tid); in ath_tx_form_aggr() 848 bf_first = bf; in ath_tx_form_aggr() 849 if (bf == NULL) { in ath_tx_form_aggr() 863 bf->bf_next = NULL; in ath_tx_form_aggr() 922 if (bf != bf_first) { in ath_tx_form_aggr() 981 bf->bf_state.bfs_pktlen, (bf_first == bf)); in ath_tx_form_aggr() 994 bf_prev->bf_next = bf; in ath_tx_form_aggr() [all …]
|
| H A D | if_ath_rx.c | 257 m = bf->bf_m; in ath_legacy_rxbuf_init() 277 bf->bf_segs, &bf->bf_nseg, in ath_legacy_rxbuf_init() 289 bf->bf_m = m; in ath_legacy_rxbuf_init() 314 ds = bf->bf_desc; in ath_legacy_rxbuf_init() 1097 m = bf->bf_m; in ath_rx_proc() 1108 ds = bf->bf_desc; in ath_rx_proc() 1151 bf->bf_m = NULL; in ath_rx_proc() 1328 if (bf != NULL) { in ath_legacy_flush_rxholdbf() 1331 bf->bf_m = NULL; in ath_legacy_flush_rxholdbf() 1338 if (bf != NULL) { in ath_legacy_flush_rxholdbf() [all …]
|
| H A D | if_ath.c | 3144 bf = NULL; in _ath_getbuf_locked() 3166 bzero(&bf->bf_state, sizeof(bf->bf_state)); in _ath_getbuf_locked() 3176 return bf; in _ath_getbuf_locked() 3263 return bf; in ath_getbuf() 4257 bf, in ath_tx_default_comp() 4264 bf, in ath_tx_default_comp() 4365 bf->bf_comp(sc, bf, 0); in ath_tx_process_buf_completion() 4448 bf, in ath_tx_processq() 4806 bf, in ath_txq_addholdingbuf() 5004 bf->bf_comp(sc, bf, 1); in ath_tx_draintxq() [all …]
|
| H A D | if_ath_misc.h | 55 struct ath_buf *bf); 57 extern void ath_freebuf(struct ath_softc *sc, struct ath_buf *bf); 58 extern void ath_returnbuf_head(struct ath_softc *sc, struct ath_buf *bf); 59 extern void ath_returnbuf_tail(struct ath_softc *sc, struct ath_buf *bf); 62 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-12.1/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-12.1/sys/dev/malo/ |
| H A D | if_malo.c | 528 if (bf == NULL) { in malo_rxdma_setup() 570 if (bf == NULL) { in malo_txdma_setup() 785 if (bf != NULL) { in malo_getbuf() 795 return bf; in malo_getbuf() 809 bf->bf_segs, &bf->bf_nseg, in malo_tx_dmasetup() 833 bf->bf_segs, &bf->bf_nseg, in malo_tx_dmasetup() 850 bf->bf_m = m0; in malo_tx_dmasetup() 1378 bf->bf_m = malo_getrxmbuf(sc, bf); in malo_rxbuf_init() 1433 prev = bf; in malo_startrecv() 2017 m = bf->bf_m; in malo_rx_proc() [all …]
|
| /freebsd-12.1/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-12.1/usr.sbin/fstyp/ |
| H A D | ntfs.c | 98 struct ntfs_bootfile *bf; in fstyp_ntfs() local 109 bf = (struct ntfs_bootfile *)read_buf(fp, 0, 512); in fstyp_ntfs() 110 if (bf == NULL || strncmp(bf->bf_sysid, "NTFS ", 8) != 0) in fstyp_ntfs() 113 mftrecsz = bf->bf_mftrecsz; in fstyp_ntfs() 114 recsize = (mftrecsz > 0) ? (mftrecsz * bf->bf_bps * bf->bf_spc) : (1 << -mftrecsz); in fstyp_ntfs() 116 voloff = bf->bf_mftcn * bf->bf_spc * bf->bf_bps + in fstyp_ntfs() 153 free(bf); in fstyp_ntfs() 159 free(bf); in fstyp_ntfs()
|
| /freebsd-12.1/sys/geom/label/ |
| H A D | g_label_ntfs.c | 100 struct ntfs_bootfile *bf; in g_label_ntfs_taste() local 115 bf = (struct ntfs_bootfile *)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) : (1 << -mftrecsz); in g_label_ntfs_taste() 124 voloff = bf->bf_mftcn * bf->bf_spc * bf->bf_bps + in g_label_ntfs_taste() 165 if (bf != NULL) in g_label_ntfs_taste() 166 g_free(bf); in g_label_ntfs_taste()
|
| /freebsd-12.1/contrib/gdb/gdb/ |
| H A D | dve3900-rom.c | 69 static unsigned long fetch_fields (struct bit_field *bf); 432 fetch_fields (struct bit_field *bf) in fetch_fields() argument 438 for (; bf->prefix != NULL; bf++) in fetch_fields() 442 if (bf->length != 0) in fetch_fields() 469 val = fetch_fields (bf); in fetch_bitmapped_register() 517 oldval = fetch_fields (bf); in store_bitmapped_register() 521 for (; bf->prefix != NULL; bf++) in store_bitmapped_register() 523 if (bf->length != 0) in store_bitmapped_register() 527 mask = (1 << bf->length) - 1; in store_bitmapped_register() 528 oldbits = (oldval >> bf->start) & mask; in store_bitmapped_register() [all …]
|
| /freebsd-12.1/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-12.1/sys/dev/mwl/ |
| H A D | if_mwl.c | 1279 if (bf != NULL) { in mwl_gettxbuf() 1284 if (bf == NULL) in mwl_gettxbuf() 1287 return bf; in mwl_gettxbuf() 1299 bf->bf_m = NULL; in mwl_puttxbuf_head() 1310 bf->bf_m = NULL; in mwl_puttxbuf_tail() 2630 if (bf == NULL) in mwl_rx_proc() 2817 bf = STAILQ_NEXT(bf, bf_list); in mwl_rx_proc() 2960 bf->bf_segs, &bf->bf_nseg, in mwl_tx_dmasetup() 2989 bf->bf_segs, &bf->bf_nseg, in mwl_tx_dmasetup() 3006 bf->bf_m = m0; in mwl_tx_dmasetup() [all …]
|
| /freebsd-12.1/sys/dev/mlx5/mlx5_core/ |
| H A D | mlx5_uar.c | 77 struct mlx5_bf *bf; in mlx5_alloc_uuars() local 113 bf = &uuari->bfs[i]; in mlx5_alloc_uuars() 115 bf->buf_size = (1 << MLX5_CAP_GEN(dev, log_bf_reg_size)) / 2; in mlx5_alloc_uuars() 116 bf->uar = &uuari->uars[i / MLX5_BF_REGS_PER_PAGE]; in mlx5_alloc_uuars() 117 bf->regreg = uuari->uars[i / MLX5_BF_REGS_PER_PAGE].map; in mlx5_alloc_uuars() 118 bf->reg = NULL; /* Add WC support */ in mlx5_alloc_uuars() 119 bf->offset = (i % MLX5_BF_REGS_PER_PAGE) * in mlx5_alloc_uuars() 122 bf->need_lock = need_uuar_lock(i); in mlx5_alloc_uuars() 123 spin_lock_init(&bf->lock); in mlx5_alloc_uuars() 124 spin_lock_init(&bf->lock32); in mlx5_alloc_uuars() [all …]
|
| /freebsd-12.1/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-12.1/contrib/tcsh/ |
| H A D | tw.comp.c | 224 static Char *bf = NULL; in tw_tok() local 227 bf = str; in tw_tok() 230 for (; *bf && Isspace(*bf); bf++) in tw_tok() 233 for (str = bf; *bf && !Isspace(*bf); bf++) { in tw_tok() 234 if (ismetahash(*bf)) in tw_tok() 236 *bf = *bf & ~QUOTE; in tw_tok() 238 if (*bf != '\0') in tw_tok() 239 *bf++ = '\0'; in tw_tok()
|
| /freebsd-12.1/sys/dev/rtwn/usb/ |
| H A D | rtwn_usb_tx.c | 80 struct rtwn_data *bf; in _rtwn_usb_getbuf() local 82 bf = STAILQ_FIRST(&uc->uc_tx_inactive); in _rtwn_usb_getbuf() 83 if (bf != NULL) in _rtwn_usb_getbuf() 89 return (bf); in _rtwn_usb_getbuf() 96 struct rtwn_data *bf; in rtwn_usb_getbuf() local 100 bf = _rtwn_usb_getbuf(uc); in rtwn_usb_getbuf() 101 if (bf == NULL) { in rtwn_usb_getbuf() 105 return (bf); in rtwn_usb_getbuf()
|
| /freebsd-12.1/usr.sbin/bhyve/ |
| H A D | acpi.c | 772 basl_open(struct basl_fio *bf, int suffix) in basl_open() argument 780 bf->fd = mkstemps(bf->f_name, strlen(BHYVE_ASL_SUFFIX)); in basl_open() 783 bf->fd = mkstemp(bf->f_name); in basl_open() 786 if (bf->fd > 0) { in basl_open() 787 bf->fp = fdopen(bf->fd, "w+"); in basl_open() 788 if (bf->fp == NULL) { in basl_open() 789 unlink(bf->f_name); in basl_open() 790 close(bf->fd); in basl_open() 800 basl_close(struct basl_fio *bf) in basl_close() argument 804 unlink(bf->f_name); in basl_close() [all …]
|