Home
last modified time | relevance | path

Searched refs:howmany (Results 1 – 10 of 10) sorted by relevance

/xnu-10063.141.1/bsd/sys/
H A Dparam.h216 #ifndef howmany
217 #define howmany(x, y) ((((x) % (y)) == 0) ? ((x) / (y)) : (((x) / (y)) + 1)) macro
H A Dtypes.h191 #define howmany(x, y) __DARWIN_howmany(x, y) /* # y's == x bits? */ macro
/xnu-10063.141.1/osfmk/kern/
H A Dipc_kobject.c235 int howmany; in mig_init() local
254 for (pos = MIG_HASH(nentry) % MAX_MIG_ENTRIES, howmany = 1; in mig_init()
256 pos++, pos = pos % MAX_MIG_ENTRIES, howmany++) { in mig_init()
261 if (howmany == MAX_MIG_ENTRIES) { in mig_init()
286 if (mig_table_max_displ < howmany) { in mig_init()
287 mig_table_max_displ = howmany; in mig_init()
/xnu-10063.141.1/bsd/net/
H A Dbloom_filter.c46 uint32_t num_elements = howmany(num_bits, kNetBloomFilterBitsPerTableElement); in net_bloom_filter_get_size()
H A Dif_headless.c453 pp_init.kbi_max_frags = howmany(max_mtu, if_headless_buflet_size); in headless_packet_pool_alloc()
H A Dif_fake.c925 pp_init->kbi_max_frags = howmany(max_mtu, buflet_size); in feth_packet_pool_init_prepare()
/xnu-10063.141.1/bsd/kern/
H A Dsys_generic.c1297 nw = howmany(uap->nd, NFDBITS); in select_internal()
1475 uint32_t nw = howmany(uap->nd, NFDBITS); in selprocess()
1599 nw = howmany(nfd, NFDBITS); in selscan()
1951 nw = howmany(nfd, NFDBITS); in selcount()
2032 nw = howmany(nfd, NFDBITS); in seldrop_locked()
/xnu-10063.141.1/tests/
H A Dmemorystatus_zone_test.c651 new_limit = (int)howmany(zone_target * 100, zone_tot); in run_test()
/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/
H A Dfsw_dp.c1749 cnt = howmany(fe->fe_rx_pktq_bytes, PP_BUF_SIZE_DEF(dpp)); in dp_flow_rx_process()
1800 n_bufs = howmany(pkt->pkt_length, PP_BUF_SIZE_DEF(dpp)); in dp_flow_rx_process()
1806 cnt = howmany(fe->fe_rx_pktq_bytes, in dp_flow_rx_process()
/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_agg.c1719 bh_cnt_tmp = howmany(plen, agg_bufsize); in flow_rx_agg_channel()