/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | spa_log_spacemap.h | 32 #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 D | offload.h | 34 (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 D | osdep.h | 148 #define DIV_ROUND_UP(x, y) howmany(x, y) macro
|
H A D | cudbg_flash_utils.c | 272 i = DIV_ROUND_UP(size,/* # of sectors spanned */ in write_flash()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa_log_spacemap.c | 320 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 D | space_map.c | 1082 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 D | ecore_cxt.c | 558 *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 D | ecore_init_fw_funcs.c | 60 #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 D | bcm_osal.h | 534 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
|
H A D | ecore_chain.h | 192 DIV_ROUND_UP(elem_cnt, USABLE_ELEMS_PER_PAGE(elem_size, mode))
|
H A D | ecore_dbg_fw_funcs.c | 370 #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 D | ecore_mcp.c | 3936 DIV_ROUND_UP(p_params->retry_interval, in ecore_mcp_resc_lock()
|
/illumos-gate/usr/src/uts/common/io/arn/ |
H A D | arn_beacon.c | 300 bs.bs_bmissthreshold = DIV_ROUND_UP(conf.bmiss_timeout, intval); in arn_beacon_config()
|
H A D | arn_core.h | 52 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
|
H A D | arn_hw.c | 191 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 D | t4_hw.c | 3664 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 D | osal.txt | 627 - u32 DIV_ROUND_UP(u32 size, u32 divisor_size) 632 Returns DIV_ROUND_UP * divisor_size [how much memory will be
|