Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dspa_log_spacemap.h32 #ifndef DIV_ROUND_UP
33 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Doffload.h34 (w)->wr.wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(wrlen, 16)) | \
42 (w)->wr.wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(sizeof (*w), 16)) | \
H A Dosdep.h148 #define DIV_ROUND_UP(x, y) howmany(x, y) macro
H A Dcudbg_flash_utils.c272 i = DIV_ROUND_UP(size,/* # of sectors spanned */ in write_flash()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_log_spacemap.c320 return ((steps > 0) ? DIV_ROUND_UP(sum, steps) : 0); in spa_estimate_incoming_log_blocks()
387 DIV_ROUND_UP(spa_log_sm_blocklimit(spa), in summary_entry_is_full()
685 DIV_ROUND_UP(total_flushes, txgs_in_future)); in spa_estimate_metaslabs_to_flush()
H A Dspace_map.c1082 return (DIV_ROUND_UP(space_map_length(sm), sm->sm_blksz)); in space_map_nblocks()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_cxt.c558 *p_line += DIV_ROUND_UP(p_blk->total_size, p_blk->real_size_in_page); in ecore_ilt_cli_adv_line()
963 p_mngr->t2_num_pages = DIV_ROUND_UP(total_size, psz); in ecore_cxt_src_t2_alloc()
1092 lines = DIV_ROUND_UP(sz_left, p_blk->real_size_in_page) - in ecore_ilt_blk_alloc()
1202 size = MAP_WORD_SIZE * DIV_ROUND_UP(cid_count, BITS_PER_MAP_WORD); in ecore_cid_map_alloc_single()
1373 len = DIV_ROUND_UP(p_map->max_count, in ecore_cxt_mngr_setup()
1384 len = DIV_ROUND_UP(p_map->max_count, in ecore_cxt_mngr_setup()
2330 total_lines = DIV_ROUND_UP(p_fl_seg->total_size, in ecore_cxt_get_tid_mem_info()
2624 total_lines = DIV_ROUND_UP(p_seg->total_size, in ecore_cxt_get_task_ctx()
H A Decore_init_fw_funcs.c60 #define QM_PQ_MEM_4KB(pq_size) (pq_size ? DIV_ROUND_UP((pq_size + 1) * QM_PQ_ELEMENT_SIZE, 0x1000…
61 #define QM_PQ_SIZE_256B(pq_size) (pq_size ? DIV_ROUND_UP(pq_size, 0x100) - 1 : 0)
1138 tc_headroom_blocks = (u32)DIV_ROUND_UP(req->headroom_per_tc, BRB_BLOCK_SIZE); in ecore_init_brb_ram()
1139 min_pkt_size_blocks = (u32)DIV_ROUND_UP(req->min_pkt_size, BRB_BLOCK_SIZE); in ecore_init_brb_ram()
1156 tc_guaranteed_blocks = (u32)DIV_ROUND_UP(req->guranteed_per_tc, BRB_BLOCK_SIZE); in ecore_init_brb_ram()
H A Dbcm_osal.h534 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
H A Decore_chain.h192 DIV_ROUND_UP(elem_cnt, USABLE_ELEMS_PER_PAGE(elem_size, mode))
H A Decore_dbg_fw_funcs.c370 #define CEIL_DWORDS(size) DIV_ROUND_UP(size, 32)
4593 …trace_data_size_dwords = DIV_ROUND_UP(trace_data_size_bytes + sizeof(struct mcp_trace), BYTES_IN_D… in ecore_mcp_trace_dump()
H A Decore_mcp.c3936 DIV_ROUND_UP(p_params->retry_interval, in ecore_mcp_resc_lock()
/illumos-gate/usr/src/uts/common/io/arn/
H A Darn_beacon.c300 bs.bs_bmissthreshold = DIV_ROUND_UP(conf.bmiss_timeout, intval); in arn_beacon_config()
H A Darn_core.h52 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
H A Darn_hw.c191 numSymbols = DIV_ROUND_UP(numBits, bitsPerSymbol); in ath9k_hw_computetxtime()
199 numSymbols = DIV_ROUND_UP(numBits, bitsPerSymbol); in ath9k_hw_computetxtime()
206 numSymbols = DIV_ROUND_UP(numBits, bitsPerSymbol); in ath9k_hw_computetxtime()
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dt4_hw.c3664 u32 exprom_header_buf[DIV_ROUND_UP(sizeof(struct exprom_header), in t4_get_exprom_version()
4227 i = DIV_ROUND_UP(size, sf_sec_size); /* # of sectors spanned */ in t4_load_fw()
8336 size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, in t4_alloc_mac_filt()
8511 size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, in t4_free_mac_filt()
11355 i = DIV_ROUND_UP(FLASH_CFG_MAX_SIZE, /* # of sectors spanned */ in t4_load_cfg()
11621 i = DIV_ROUND_UP(size ? size : FLASH_FW_START, in t4_load_boot()
11757 i = DIV_ROUND_UP(FLASH_BOOTCFG_MAX_SIZE,/* # of sectors spanned */ in t4_load_bootcfg()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/
H A Dosal.txt627 - u32 DIV_ROUND_UP(u32 size, u32 divisor_size)
632 Returns DIV_ROUND_UP * divisor_size [how much memory will be