Searched refs:DIV_ROUND_UP (Results 1 - 25 of 47) sorted by relevance

12

/freebsd-11-stable/contrib/ofed/libmlx5/
H A Dbitmap.h57 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
/freebsd-11-stable/sys/dev/cxgbe/
H A Doffload.h39 (w)->wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(wrlen, 16)) | \
50 (w)->wr.wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(sizeof(*w), 16)) | \
H A Dosdep.h90 #define DIV_ROUND_UP(x, y) howmany(x, y) macro
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dnet_dim.h367 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us);
368 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us);
369 curr_stats->epms = DIV_ROUND_UP(NET_DIM_NEVENTS * USEC_PER_MSEC,
H A Dkernel.h136 #define DIV_ROUND_UP(x, n) howmany(x, n) macro
138 #define DIV_ROUND_UP_ULL(x, n) DIV_ROUND_UP((unsigned long long)(x), (n))
/freebsd-11-stable/contrib/ofed/libcxgb4/
H A Dqp.c202 *len16 = DIV_ROUND_UP(size, 16);
243 *len16 = DIV_ROUND_UP(size, 16);
271 *len16 = DIV_ROUND_UP(sizeof wqe->read, 16);
283 *len16 = DIV_ROUND_UP(sizeof wqe->recv +
401 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE);
470 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE);
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);
431 wq->sq.wq_pidx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE);
/freebsd-11-stable/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_tx.c260 dseg += DIV_ROUND_UP(4 + len, DS_SIZE_ALIGNMENT);
562 dseg += DIV_ROUND_UP(4 + MIN_PKT_LEN, DS_SIZE_ALIGNMENT);
565 dseg += DIV_ROUND_UP(4 + len, DS_SIZE_ALIGNMENT);
569 dseg += DIV_ROUND_UP(8 + len, DS_SIZE_ALIGNMENT);
751 num_pkts = DIV_ROUND_UP(payload_len, mss);
814 pad = DIV_ROUND_UP(ds_cnt, DS_FACT);
846 tx_info->nr_txbb = DIV_ROUND_UP(ds_cnt, DS_FACT);
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mem.c105 *ncont = DIV_ROUND_UP(i, (1 << m));
/freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/
H A Dqp.c249 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16));
467 *len16 = DIV_ROUND_UP(size, 16);
510 *len16 = DIV_ROUND_UP(size, 16);
541 *len16 = DIV_ROUND_UP(sizeof wqe->read, 16);
555 *len16 = DIV_ROUND_UP(sizeof wqe->recv +
565 *len16 = DIV_ROUND_UP(sizeof wqe->inv, 16);
698 *len16 = DIV_ROUND_UP(sizeof(*fr), 16);
739 *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*sglp), 16);
761 *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*imdp)
900 idx += DIV_ROUND_UP(len1
[all...]
H A Dmem.c85 ulpmc->wr.wr_mid = cpu_to_be32(V_FW_WR_LEN16(DIV_ROUND_UP(wr_len, 16)));
90 ulpmc->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(ulpmc->wr), 16));
125 num_wqe = DIV_ROUND_UP(len, C4IW_MAX_INLINE_SIZE);
149 V_FW_WR_LEN16(DIV_ROUND_UP(wr_len, 16)));
153 DIV_ROUND_UP(copy_len, T4_ULPTX_MIN_IO)));
154 ulpmc->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(ulpmc->wr),
H A Dt4.h395 wq->rq.wq_pidx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE);
443 wq->sq.wq_pidx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE);
H A Dcq.c73 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16));
144 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16));
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c63 sq->mbuf[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS);
335 num_pkts = DIV_ROUND_UP(payload_len, mss);
421 ds_cnt += DIV_ROUND_UP(ihs - sizeof(wqe->eth.inline_hdr_start),
479 sq->mbuf[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS);
/freebsd-11-stable/sys/contrib/ena-com/
H A Dena_eth_com.h170 num_entries_needed += DIV_ROUND_UP(descs_after_first_entry,
H A Dena_plat.h427 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Decore_init_fw_funcs.c58 #define QM_PQ_MEM_4KB(pq_size) (pq_size ? DIV_ROUND_UP((pq_size + 1) * QM_PQ_ELEMENT_SIZE, 0x1000) : 0)
59 #define QM_PQ_SIZE_256B(pq_size) (pq_size ? DIV_ROUND_UP(pq_size, 0x100) - 1 : 0)
301 phys_lines -= DIV_ROUND_UP(phys_lines, PBF_CMDQ_LINES_E5_RSVD_RATIO);
1200 tc_headroom_blocks = (u32)DIV_ROUND_UP(req->headroom_per_tc, BRB_BLOCK_SIZE);
1201 min_pkt_size_blocks = (u32)DIV_ROUND_UP(req->min_pkt_size, BRB_BLOCK_SIZE);
1218 tc_guaranteed_blocks = (u32)DIV_ROUND_UP(req->guranteed_per_tc, BRB_BLOCK_SIZE);
H A Decore_cxt.c586 *p_line += DIV_ROUND_UP(p_blk->total_size, p_blk->real_size_in_page);
990 p_mngr->t2_num_pages = DIV_ROUND_UP(total_size, psz);
1123 lines = DIV_ROUND_UP(sz_left, p_blk->real_size_in_page) -
1235 size = MAP_WORD_SIZE * DIV_ROUND_UP(cid_count, BITS_PER_MAP_WORD);
1410 len = DIV_ROUND_UP(p_map->max_count,
1421 len = DIV_ROUND_UP(p_map->max_count,
2377 total_lines = DIV_ROUND_UP(p_fl_seg->total_size,
2680 total_lines = DIV_ROUND_UP(p_seg->total_size,
H A Dbcm_osal.h415 #ifndef DIV_ROUND_UP
416 #define DIV_ROUND_UP(size, to_what) QLNX_DIV_ROUND_UP((size), (to_what)) macro
/freebsd-11-stable/sys/dev/drm2/i915/
H A Dintel_pm.c985 entries_required = DIV_ROUND_UP(entries_required, wm->cacheline_size);
1116 entries = DIV_ROUND_UP(entries, display->cacheline_size);
1128 entries = DIV_ROUND_UP(entries, cursor->cacheline_size);
1204 entries = DIV_ROUND_UP(min(small, large), display->cacheline_size);
1209 entries = DIV_ROUND_UP(entries, cursor->cacheline_size);
1429 entries = DIV_ROUND_UP(entries, I915_FIFO_LINE_SIZE);
1439 entries = DIV_ROUND_UP(entries,
1548 entries = DIV_ROUND_UP(entries, wm_info->cacheline_size);
1694 entries = DIV_ROUND_UP(min(small, large), display->cacheline_size);
1701 *fbc_wm = DIV_ROUND_UP(*display_w
[all...]
/freebsd-11-stable/sys/dev/bxe/
H A Dbxe.h151 #ifndef DIV_ROUND_UP
152 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
744 #define CNIC_ILT_LINES DIV_ROUND_UP(CNIC_CID_MAX, ILT_PAGE_CIDS)
756 #define TM_ILT_LINES DIV_ROUND_UP(TM_ILT_SZ, TM_ILT_PAGE_SZ)
765 #define SRC_ILT_LINES DIV_ROUND_UP(SRC_ILT_SZ, SRC_ILT_PAGE_SZ)
1729 (DIV_ROUND_UP(BXE_L2_CID_COUNT(sc), ILT_PAGE_CIDS))
/freebsd-11-stable/sys/dev/drm2/radeon/
H A Dr200.c101 num_loops = DIV_ROUND_UP(size, 0x1FFFFF);
/freebsd-11-stable/sys/dev/cxgbe/cudbg/
H A Dcudbg_flash_utils.c261 i = DIV_ROUND_UP(size,/* # of sectors spanned */
/freebsd-11-stable/sys/dev/extres/regulator/
H A Dregulator.c56 #define DIV_ROUND_UP(n,d) howmany(n, d) macro
1051 sel = DIV_ROUND_UP(min_uvolt - range->min_uvolt,
/freebsd-11-stable/sys/dev/mmc/host/
H A Ddwmmc.c71 #define DIV_ROUND_UP(n, d) howmany(n, d) macro
642 div = (sc->bus_hz != freq) ? DIV_ROUND_UP(sc->bus_hz, 2 * freq) : 0;

Completed in 1730 milliseconds

12