Home
last modified time | relevance | path

Searched refs:bufcnt (Results 1 – 5 of 5) sorted by relevance

/xnu-8796.141.3/bsd/skywalk/packet/
H A Dpbufpool_kern.c285 kern_pbufpool_alloc_common(const kern_pbufpool_t pp, const uint32_t bufcnt, in kern_pbufpool_alloc_common() argument
292 if (__improbable(bufcnt > pp->pp_max_frags)) { in kern_pbufpool_alloc_common()
296 if (__improbable((bufcnt != pp->pp_max_frags) && in kern_pbufpool_alloc_common()
301 kqum = SK_PTR_ADDR_KQUM(pp_alloc_packet(pp, (uint16_t)bufcnt, skmflag)); in kern_pbufpool_alloc_common()
311 kern_pbufpool_alloc(const kern_pbufpool_t pp, const uint32_t bufcnt, in kern_pbufpool_alloc() argument
314 return kern_pbufpool_alloc_common(pp, bufcnt, pph, SKMEM_SLEEP); in kern_pbufpool_alloc()
318 kern_pbufpool_alloc_nosleep(const kern_pbufpool_t pp, const uint32_t bufcnt, in kern_pbufpool_alloc_nosleep() argument
321 return kern_pbufpool_alloc_common(pp, bufcnt, pph, SKMEM_NOSLEEP); in kern_pbufpool_alloc_nosleep()
326 const uint32_t bufcnt, kern_packet_t *array, uint32_t *size, in kern_pbufpool_alloc_batch_common() argument
330 bufcnt > pp->pp_max_frags || (cb == NULL && ctx != NULL))) { in kern_pbufpool_alloc_batch_common()
[all …]
H A Dpbufpool.c510 obj_idx_t midx, struct kern_pbufpool *pp, uint32_t skmflag, uint16_t bufcnt, in pp_metadata_construct() argument
518 ASSERT(bufcnt == 1 || PP_HAS_BUFFER_ON_DEMAND(pp)); in pp_metadata_construct()
561 VERIFY(bufcnt == 1); in pp_metadata_construct()
570 for (i = 0; i < bufcnt; i++) { in pp_metadata_construct()
620 SK_KVA(pp), SK_KVA(kqum), bufcnt, SK_KVA(baddr)); in pp_metadata_construct()
624 ASSERT(bufcnt != 0 && baddr == 0); in pp_metadata_construct()
638 uint16_t bufcnt = (no_buflet ? 0 : pp->pp_max_frags); in pp_metadata_ctor_common() local
699 if (PP_HAS_BUFFER_ON_DEMAND(pp) && bufcnt != 0) { in pp_metadata_ctor_common()
701 bufcnt, skmflag); in pp_metadata_ctor_common()
705 skmflag, bufcnt, TRUE, &blist); in pp_metadata_ctor_common()
[all …]
H A Dos_packet.h841 const uint32_t bufcnt, kern_packet_t *packet);
843 const uint32_t bufcnt, kern_packet_t *array, uint32_t *size);
845 const kern_pbufpool_t pbufpool, const uint32_t bufcnt, kern_packet_t *array,
848 const uint32_t bufcnt, kern_packet_t *packet);
850 const uint32_t bufcnt, kern_packet_t *array, uint32_t *size);
852 const kern_pbufpool_t pbufpool, const uint32_t bufcnt,
/xnu-8796.141.3/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_agg.c213 uint64_t bufcnt = 1; in _pkt_agg_log() local
215 bufcnt = kern_packet_get_buflet_count(ph); in _pkt_agg_log()
231 for (uint64_t i = 0; i < bufcnt && buf != NULL; i++) { in _pkt_agg_log()
1521 uint16_t bufcnt) in finalize_super_packet() argument
1524 if (bufcnt > 1) { in finalize_super_packet()
1532 DTRACE_SKYWALK1(aggr__buflet__count, uint16_t, bufcnt); in finalize_super_packet()
1595 uint16_t spkts = 0, bufcnt = 0; in flow_rx_agg_channel() local
1691 agg_ok = (agg_ok && bufcnt < dpp->pp_max_frags); in flow_rx_agg_channel()
1816 bufcnt += dbuf_array.dba_num_dbufs; in flow_rx_agg_channel()
1823 &largest_spkt, &spkts, bufcnt); in flow_rx_agg_channel()
[all …]
/xnu-8796.141.3/bsd/net/
H A Dif_fake.c1148 uint16_t i, bufcnt; in feth_copy_packet() local
1155 bufcnt = kern_packet_get_buflet_count(sph); in feth_copy_packet()
1156 ASSERT((bufcnt == 1) || multi_buflet); in feth_copy_packet()
1176 for (i = 1; i < bufcnt; i++) { in feth_copy_packet()
1219 VERIFY(bufcnt == kern_packet_get_buflet_count(dph)); in feth_copy_packet()