Home
last modified time | relevance | path

Searched refs:DIV_ROUND_UP (Results 1 – 25 of 119) sorted by relevance

12345

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dmath.h47 #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 Dnet_dim.h365 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 Dsysmacros.h64 #ifndef DIV_ROUND_UP
65 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
/freebsd/contrib/ofed/libcxgb4/
H A Dqp.c202 *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 Dt4.h55 #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 Dzfs_uio.c538 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 Dwg_crypto.c21 #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 Dsysmacros.h147 #ifndef DIV_ROUND_UP
148 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
/freebsd/sys/dev/cxgbe/
H A Doffload.h40 (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 Dmlx4_en_tx.c260 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 Dsysmacros.h72 #ifndef DIV_ROUND_UP
73 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
H A Dccompile.h179 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dmem.c95 num_wqe = DIV_ROUND_UP(len, T4_MAX_INLINE_SIZE); in _c4iw_write_mem_dma_aligned()
H A Dqp.c252 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 Deeprom.h76 return DIV_ROUND_UP(channel - 29, 32); in mt7996_get_channel_group_6g()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_hw_tls_rx.c157 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 Dmlx5_en_hw_tls.c607 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 Dmlx5_en_tx.c74 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 Dbitmap.h57 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_uio.c234 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 Dutil.c53 for (i = 0; i < DIV_ROUND_UP(size, 32); i++) { in mt76_wcid_alloc()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dspa_log_spacemap.c325 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 Deeprom.h151 return DIV_ROUND_UP(channel - 29, 32); in mt7915_get_channel_group_6g()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mem.c86 *ncont = DIV_ROUND_UP(i, (1 << m)); in mlx5_ib_cont_pages()
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dinit.c196 chan->orig_mpwr = DIV_ROUND_UP(chan->orig_mpwr, 2); in mt76x2_init_txpower()

12345