| /freebsd/sys/compat/linuxkpi/common/include/linux/ |
| H A D | math.h | 47 #define DIV_ROUND_UP(x, n) howmany(x, n) macro 48 #define DIV_ROUND_UP_ULL(x, n) DIV_ROUND_UP((unsigned long long)(x), (n))
|
| H A D | net_dim.h | 365 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); in net_dim_calc_stats() 366 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in net_dim_calc_stats() 367 curr_stats->epms = DIV_ROUND_UP(NET_DIM_NEVENTS * USEC_PER_MSEC, in net_dim_calc_stats()
|
| /freebsd/sys/contrib/openzfs/lib/libspl/include/sys/ |
| H A D | sysmacros.h | 64 #ifndef DIV_ROUND_UP 65 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
|
| /freebsd/contrib/ofed/libcxgb4/ |
| H A D | qp.c | 202 *len16 = DIV_ROUND_UP(size, 16); in build_rdma_send() 243 *len16 = DIV_ROUND_UP(size, 16); in build_rdma_write() 271 *len16 = DIV_ROUND_UP(sizeof wqe->read, 16); in build_rdma_read() 283 *len16 = DIV_ROUND_UP(sizeof wqe->recv + in build_rdma_recv() 401 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); in c4iw_post_send() 470 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); in c4iw_post_receive()
|
| H A D | t4.h | 55 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) macro 388 wq->rq.wq_pidx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); in t4_rq_produce() 431 wq->sq.wq_pidx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); in t4_sq_produce()
|
| /freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zfs_uio.c | 538 nr_pages = DIV_ROUND_UP(len, PAGE_SIZE); in zfs_uio_pin_user_pages() 562 nr_pages = DIV_ROUND_UP(amt, PAGE_SIZE); in zfs_uio_pin_user_pages() 591 unsigned maxpages = DIV_ROUND_UP(wanted, PAGE_SIZE); in zfs_uio_get_dio_pages_iov_iter() 611 uio->uio_dio.npages += DIV_ROUND_UP(cnt, PAGE_SIZE); in zfs_uio_get_dio_pages_iov_iter() 638 long npages = DIV_ROUND_UP(uio->uio_resid, PAGE_SIZE); in zfs_uio_get_dio_pages_alloc()
|
| /freebsd/sys/dev/wg/ |
| H A D | wg_crypto.c | 21 #ifndef DIV_ROUND_UP 22 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) macro 185 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in blake2s_update()
|
| /freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
| H A D | sysmacros.h | 147 #ifndef DIV_ROUND_UP 148 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
|
| /freebsd/sys/dev/cxgbe/ |
| H A D | offload.h | 40 (w)->wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(wrlen, 16)) | \ 51 (w)->wr.wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(sizeof(*w), 16)) | \
|
| /freebsd/sys/dev/mlx4/mlx4_en/ |
| H A D | mlx4_en_tx.c | 260 dseg += DIV_ROUND_UP(4 + len, DS_SIZE_ALIGNMENT); in mlx4_en_store_inline_lso_data() 562 dseg += DIV_ROUND_UP(4 + MIN_PKT_LEN, DS_SIZE_ALIGNMENT); in mlx4_en_store_inline_data() 565 dseg += DIV_ROUND_UP(4 + len, DS_SIZE_ALIGNMENT); in mlx4_en_store_inline_data() 569 dseg += DIV_ROUND_UP(8 + len, DS_SIZE_ALIGNMENT); in mlx4_en_store_inline_data() 751 num_pkts = DIV_ROUND_UP(payload_len, mss); in mlx4_en_xmit() 814 pad = DIV_ROUND_UP(ds_cnt, DS_FACT); in mlx4_en_xmit() 846 tx_info->nr_txbb = DIV_ROUND_UP(ds_cnt, DS_FACT); in mlx4_en_xmit()
|
| /freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | sysmacros.h | 72 #ifndef DIV_ROUND_UP 73 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
|
| H A D | ccompile.h | 179 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
|
| /freebsd/sys/dev/cxgbe/iw_cxgbe/ |
| H A D | mem.c | 95 num_wqe = DIV_ROUND_UP(len, T4_MAX_INLINE_SIZE); in _c4iw_write_mem_dma_aligned()
|
| H A D | qp.c | 252 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); in create_qp() 470 *len16 = DIV_ROUND_UP(size, 16); in build_rdma_send() 513 *len16 = DIV_ROUND_UP(size, 16); in build_rdma_write() 544 *len16 = DIV_ROUND_UP(sizeof wqe->read, 16); in build_rdma_read() 558 *len16 = DIV_ROUND_UP(sizeof wqe->recv + in build_rdma_recv() 568 *len16 = DIV_ROUND_UP(sizeof wqe->inv, 16); in build_inv_stag() 702 *len16 = DIV_ROUND_UP(sizeof(*fr), 16); in build_tpte_memreg() 745 *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*sglp), 16); in build_memreg() 767 *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*imdp) in build_memreg() 908 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); in c4iw_post_send() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | eeprom.h | 76 return DIV_ROUND_UP(channel - 29, 32); in mt7996_get_channel_group_6g()
|
| /freebsd/sys/dev/mlx5/mlx5_en/ |
| H A D | mlx5_en_hw_tls_rx.c | 157 const u32 ds_cnt = DIV_ROUND_UP(sizeof(struct mlx5e_tx_umr_wqe) + in mlx5e_tls_rx_send_static_parameters() 190 iq->data[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_tls_rx_send_static_parameters() 229 const u32 ds_cnt = DIV_ROUND_UP(sizeof(struct mlx5e_tx_psv_wqe), in mlx5e_tls_rx_send_progress_parameters_sync() 257 iq->data[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_tls_rx_send_progress_parameters_sync() 356 const u32 ds_cnt = DIV_ROUND_UP(sizeof(*wqe), MLX5_SEND_WQE_DS); in mlx5e_tls_rx_receive_progress_parameters() 388 iq->data[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_tls_rx_receive_progress_parameters()
|
| H A D | mlx5_en_hw_tls.c | 607 const u32 ds_cnt = DIV_ROUND_UP(sizeof(struct mlx5e_tx_umr_wqe) + in mlx5e_tls_send_static_parameters() 640 sq->mbuf[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_tls_send_static_parameters() 652 const u32 ds_cnt = DIV_ROUND_UP(sizeof(struct mlx5e_tx_psv_wqe), in mlx5e_tls_send_progress_parameters() 678 sq->mbuf[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_tls_send_progress_parameters() 708 sq->mbuf[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_tls_send_nop()
|
| H A D | mlx5_en_tx.c | 74 sq->mbuf[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_send_nop() 545 CTASSERT(DIV_ROUND_UP(2, MLX5_SEND_WQEBB_NUM_DS) == 1); 780 num_pkts = DIV_ROUND_UP(payload_len, mss); in mlx5e_sq_xmit() 814 num_pkts = DIV_ROUND_UP(payload_len, mss); in mlx5e_sq_xmit() 939 ds_cnt += DIV_ROUND_UP(args.ihs - sizeof(wqe->eth.inline_hdr_start), in mlx5e_sq_xmit() 999 sq->mbuf[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_sq_xmit()
|
| /freebsd/contrib/ofed/libmlx5/ |
| H A D | bitmap.h | 57 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
|
| /freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
| H A D | spl_uio.c | 234 int n = DIV_ROUND_UP(len, PAGE_SIZE); in zfs_uio_iov_step() 289 int npages = DIV_ROUND_UP(zfs_uio_resid(uio), PAGE_SIZE); in zfs_uio_get_dio_pages_alloc()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/ |
| H A D | util.c | 53 for (i = 0; i < DIV_ROUND_UP(size, 32); i++) { in mt76_wcid_alloc()
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | spa_log_spacemap.c | 325 return ((steps > 0) ? DIV_ROUND_UP(sum, steps) : 0); in spa_estimate_incoming_log_blocks() 397 if (e->lse_txgcount >= DIV_ROUND_UP(zfs_unflushed_log_txg_max, in summary_entry_is_full() 401 DIV_ROUND_UP(spa_log_sm_blocklimit(spa), in summary_entry_is_full() 725 DIV_ROUND_UP(total_flushes, txgs_in_future)); in spa_estimate_metaslabs_to_flush()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | eeprom.h | 151 return DIV_ROUND_UP(channel - 29, 32); in mt7915_get_channel_group_6g()
|
| /freebsd/sys/dev/mlx5/mlx5_ib/ |
| H A D | mlx5_ib_mem.c | 86 *ncont = DIV_ROUND_UP(i, (1 << m)); in mlx5_ib_cont_pages()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/ |
| H A D | init.c | 196 chan->orig_mpwr = DIV_ROUND_UP(chan->orig_mpwr, 2); in mt76x2_init_txpower()
|