/freebsd/lib/libc/rpc/ |
H A D | auth_none.c | 70 u_int mcnt; member 89 if (!ap->mcnt) { in authnone_create() 97 ap->mcnt = XDR_GETPOS(xdrs); in authnone_create() 119 ap->marshalled_client, ap->mcnt); in authnone_marshal()
|
H A D | clnt_raw.c | 69 u_int mcnt; member 119 clp->mcnt = XDR_GETPOS(xdrs); in clnt_raw_create() 163 if ((! XDR_PUTBYTES(xdrs, clp->u.mashl_callmsg, clp->mcnt)) || in clnt_raw_call()
|
/freebsd/sys/rpc/ |
H A D | auth_none.c | 78 u_int mcnt; member 94 ap->mcnt = XDR_GETPOS(&xdrs); in authnone_init() 115 if (!XDR_PUTBYTES(xdrs, ap->mclient, ap->mcnt)) in authnone_marshal()
|
/freebsd/sys/rpc/rpcsec_tls/ |
H A D | auth_tls.c | 82 u_int mcnt; member 103 ap->mcnt = XDR_GETPOS(&xdrs); in authtls_init() 124 if (!XDR_PUTBYTES(xdrs, ap->mclient, ap->mcnt)) in authtls_marshal()
|
/freebsd/sys/dev/sound/pcm/ |
H A D | feeder_mixer.c | 286 uint32_t cnt, mcnt, rcnt, sz; in feed_mixer_feed() local 311 mcnt = 0; in feed_mixer_feed() 362 mcnt = count - rcnt; in feed_mixer_feed() 367 if (mcnt != 0) { in feed_mixer_feed() 370 f->desc->out), mcnt); in feed_mixer_feed() 371 mcnt = 0; in feed_mixer_feed()
|
/freebsd/contrib/sendmail/libmilter/ |
H A D | listener.c | 726 int mcnt = 0; /* error count for malloc() failures */ local 914 mcnt++; 917 mcnt >= MAX_FAILS_M ? "abort" : "try again"); 918 MI_SLEEP(mcnt); 919 if (mcnt >= MAX_FAILS_M) 926 mcnt = 0; /* reset error counter for malloc() */
|
/freebsd/sys/dev/iavf/ |
H A D | iavf_lib.c | 1256 int mcnt = 0; in iavf_init_multi() local 1263 mcnt++; in iavf_init_multi() 1266 if (mcnt > 0) in iavf_init_multi() 1281 int mcnt = 0; in iavf_multi_set() local 1285 mcnt = if_llmaddr_count(ifp); in iavf_multi_set() 1286 if (__predict_false(mcnt == MAX_MULTICAST_ADDR)) { in iavf_multi_set() 1298 mcnt = if_foreach_llmaddr(ifp, iavf_mc_filter_apply, sc); in iavf_multi_set() 1300 if (mcnt > 0) in iavf_multi_set()
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_glbl.h | 76 extern void qls_hw_set_multi(qla_host_t *ha, uint8_t *mta, uint32_t mcnt,
|
H A D | qls_os.c | 819 qls_copy_maddr(void *arg, struct sockaddr_dl *sdl, u_int mcnt) in qls_copy_maddr() argument 823 if (mcnt == Q8_MAX_NUM_MULTICAST_ADDRS) in qls_copy_maddr() 826 bcopy(LLADDR(sdl), &mta[mcnt * Q8_MAC_ADDR_LEN], Q8_MAC_ADDR_LEN); in qls_copy_maddr() 836 int mcnt; in qls_set_multi() local 838 mcnt = if_foreach_llmaddr(ifp, qls_copy_maddr, mta); in qls_set_multi() 841 qls_hw_set_multi(ha, mta, mcnt, add_multi); in qls_set_multi()
|
/freebsd/sys/dev/qlxgb/ |
H A D | qla_os.c | 750 qla_copy_maddr(void *arg, struct sockaddr_dl *sdl, u_int mcnt) in qla_copy_maddr() argument 754 if (mcnt == Q8_MAX_NUM_MULTICAST_ADDRS) in qla_copy_maddr() 756 bcopy(LLADDR(sdl), &mta[mcnt * Q8_MAC_ADDR_LEN], Q8_MAC_ADDR_LEN); in qla_copy_maddr() 766 int mcnt; in qla_set_multi() local 768 mcnt = if_foreach_llmaddr(ifp, qla_copy_maddr, mta); in qla_set_multi() 769 qla_hw_set_multi(ha, mta, mcnt, add_multi); in qla_set_multi()
|
H A D | qla_glbl.h | 70 extern void qla_hw_set_multi(qla_host_t *ha, uint8_t *mta, uint32_t mcnt,
|
/freebsd/sys/dev/usb/net/ |
H A D | if_rue.c | 496 int mcnt; in rue_setmulti() local 516 mcnt = if_foreach_llmaddr(ifp, rue_hash_maddr, &hashes); in rue_setmulti() 518 if (mcnt) in rue_setmulti()
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_glbl.h | 63 extern int ql_hw_set_multi(qla_host_t *ha, uint8_t *mta, uint32_t mcnt,
|
H A D | ql_os.c | 962 qla_copy_maddr(void *arg, struct sockaddr_dl *sdl, u_int mcnt) in qla_copy_maddr() argument 966 if (mcnt == Q8_MAX_NUM_MULTICAST_ADDRS) in qla_copy_maddr() 969 bcopy(LLADDR(sdl), &mta[mcnt * Q8_MAC_ADDR_LEN], Q8_MAC_ADDR_LEN); in qla_copy_maddr() 978 int mcnt = 0; in qla_set_multi() local 982 mcnt = if_foreach_llmaddr(ifp, qla_copy_maddr, mta); in qla_set_multi() 990 add_multi, (uint32_t)mcnt, 0); in qla_set_multi() 1003 ret = ql_hw_set_multi(ha, mta, mcnt, 1); in qla_set_multi()
|
/freebsd/sys/dev/igc/ |
H A D | if_igc.c | 1224 int mcnt = 0; in igc_if_set_promisc() local 1229 mcnt = MAX_NUM_MULTICAST_ADDRESSES; in igc_if_set_promisc() 1231 mcnt = min(if_llmaddr_count(ifp), MAX_NUM_MULTICAST_ADDRESSES); in igc_if_set_promisc() 1234 if (mcnt < MAX_NUM_MULTICAST_ADDRESSES) in igc_if_set_promisc() 1279 int mcnt = 0; in igc_if_multi_set() local 1286 mcnt = if_foreach_llmaddr(ifp, igc_copy_maddr, mta); in igc_if_multi_set() 1295 } else if (mcnt >= MAX_NUM_MULTICAST_ADDRESSES || in igc_if_multi_set() 1302 if (mcnt < MAX_NUM_MULTICAST_ADDRESSES) in igc_if_multi_set() 1303 igc_update_mc_addr_list(&sc->hw, mta, mcnt); in igc_if_multi_set()
|
/freebsd/sys/dev/vr/ |
H A D | if_vr.c | 437 vr_hash_maddr_cam(void *arg, struct sockaddr_dl *sdl, u_int mcnt) in vr_hash_maddr_cam() argument 443 ctx->error = vr_cam_data(ctx->sc, VR_MCAST_CAM, mcnt, LLADDR(sdl)); in vr_hash_maddr_cam() 448 ctx->mask |= 1 << mcnt; in vr_hash_maddr_cam() 477 int error, mcnt; in vr_set_filter() local 509 mcnt = if_foreach_llmaddr(ifp, vr_hash_maddr_cam, &ctx); in vr_set_filter() 519 mcnt = if_foreach_llmaddr(ifp, vr_hash_maddr, hashes); in vr_set_filter() 522 if (mcnt > 0) in vr_set_filter()
|
/freebsd/sys/x86/x86/ |
H A D | cpu_machdep.c | 307 uint64_t acnt, mcnt, perf; in cpu_est_clockrate() local 340 mcnt = rdmsr(MSR_MPERF); in cpu_est_clockrate() 344 perf = 1000 * acnt / mcnt; in cpu_est_clockrate()
|
/freebsd/sys/dev/virtio/network/ |
H A D | if_vtnet.c | 3730 vtnet_copy_maddr(void *arg, struct sockaddr_dl *sdl, u_int mcnt) in vtnet_copy_maddr() argument 3734 if (mcnt < VTNET_MAX_MAC_ENTRIES) in vtnet_copy_maddr() 3735 bcopy(LLADDR(sdl), &filter->vmf_multicast.macs[mcnt], in vtnet_copy_maddr() 3750 u_int ucnt, mcnt; in vtnet_rx_filter_mac() local 3773 mcnt = if_foreach_llmaddr(ifp, vtnet_copy_maddr, filter); in vtnet_rx_filter_mac() 3774 allmulti = (mcnt > VTNET_MAX_MAC_ENTRIES); in vtnet_rx_filter_mac() 3777 mcnt = 0; in vtnet_rx_filter_mac() 3787 filter->vmf_multicast.nentries = vtnet_gtoh32(sc, mcnt); in vtnet_rx_filter_mac() 3798 sizeof(uint32_t) + mcnt * ETHER_ADDR_LEN); in vtnet_rx_filter_mac()
|
/freebsd/sys/dev/ixgbe/ |
H A D | if_ix.c | 2545 int mcnt = 0; in ixgbe_if_promisc_set() local 2550 mcnt = MAX_NUM_MULTICAST_ADDRESSES; in ixgbe_if_promisc_set() 2552 mcnt = min(if_llmaddr_count(ifp), MAX_NUM_MULTICAST_ADDRESSES); in ixgbe_if_promisc_set() 2554 if (mcnt < MAX_NUM_MULTICAST_ADDRESSES) in ixgbe_if_promisc_set() 3488 u_int mcnt; in ixgbe_if_multi_set() local 3495 mcnt = if_foreach_llmaddr(iflib_get_ifp(ctx), ixgbe_mc_filter_apply, sc); in ixgbe_if_multi_set() 3497 if (mcnt < MAX_NUM_MULTICAST_ADDRESSES) { in ixgbe_if_multi_set() 3499 ixgbe_update_mc_addr_list(&sc->hw, update_ptr, mcnt, in ixgbe_if_multi_set() 3507 else if (mcnt >= MAX_NUM_MULTICAST_ADDRESSES || in ixgbe_if_multi_set()
|
H A D | if_ixv.c | 851 int mcnt = 0; in ixv_if_multi_set() local 855 mcnt = if_foreach_llmaddr(ifp, ixv_if_multi_set_cb, mta); in ixv_if_multi_set() 859 sc->hw.mac.ops.update_mc_addr_list(&sc->hw, update_ptr, mcnt, in ixv_if_multi_set()
|
/freebsd/sys/dev/dc/ |
H A D | if_dc.c | 1173 dc_hash_maddr_uli(void *arg, struct sockaddr_dl *sdl, u_int mcnt) in dc_hash_maddr_uli() argument 1178 if (mcnt == DC_ULI_FILTER_NPERF) in dc_hash_maddr_uli() 1195 int i, mcnt; in dc_setfilt_uli() local 1228 mcnt = if_foreach_llmaddr(ifp, dc_hash_maddr_uli, &sp); in dc_setfilt_uli() 1230 if (mcnt == DC_ULI_FILTER_NPERF) in dc_setfilt_uli() 1233 for (; mcnt < DC_ULI_FILTER_NPERF; mcnt++) { in dc_setfilt_uli()
|
/freebsd/sys/dev/e1000/ |
H A D | if_em.c | 1919 int mcnt = 0; in em_if_set_promisc() local 1924 mcnt = MAX_NUM_MULTICAST_ADDRESSES; in em_if_set_promisc() 1926 mcnt = min(if_llmaddr_count(ifp), MAX_NUM_MULTICAST_ADDRESSES); in em_if_set_promisc() 1928 if (mcnt < MAX_NUM_MULTICAST_ADDRESSES) in em_if_set_promisc() 1977 int mcnt = 0; in em_if_multi_set() local 1994 mcnt = if_foreach_llmaddr(ifp, em_copy_maddr, mta); in em_if_multi_set() 1996 if (mcnt < MAX_NUM_MULTICAST_ADDRESSES) in em_if_multi_set() 1997 e1000_update_mc_addr_list(&sc->hw, mta, mcnt); in em_if_multi_set() 2003 else if (mcnt >= MAX_NUM_MULTICAST_ADDRESSES || in em_if_multi_set()
|
/freebsd/sys/dev/ixl/ |
H A D | if_ixl.c | 1474 int mcnt; in ixl_if_multi_set() local 1481 mcnt = min(if_llmaddr_count(iflib_get_ifp(ctx)), MAX_MULTICAST_ADDR); in ixl_if_multi_set() 1482 if (__predict_false(mcnt == MAX_MULTICAST_ADDR)) { in ixl_if_multi_set()
|
H A D | ixl_pf_main.c | 610 int mcnt = 0; in ixl_add_multi() local 616 mcnt = if_llmaddr_count(ifp); in ixl_add_multi() 617 if (__predict_false(mcnt >= MAX_MULTICAST_ADDR)) { in ixl_add_multi() 633 mcnt = if_foreach_llmaddr(ifp, ixl_add_maddr, &cb_arg); in ixl_add_multi() 634 if (mcnt > 0) in ixl_add_multi() 635 ixl_add_hw_filters(vsi, &cb_arg.to_add, mcnt); in ixl_add_multi()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | qlnx_os.c | 129 static void qlnx_hw_set_multi(qlnx_host_t *ha, uint8_t *mta, uint32_t mcnt, 2530 qlnx_hw_set_multi(qlnx_host_t *ha, uint8_t *mta, uint32_t mcnt, in qlnx_hw_set_multi() argument 2535 for (i = 0; i < mcnt; i++) { in qlnx_hw_set_multi() 2550 qlnx_copy_maddr(void *arg, struct sockaddr_dl *sdl, u_int mcnt) in qlnx_copy_maddr() argument 2554 if (mcnt == QLNX_MAX_NUM_MULTICAST_ADDRS) in qlnx_copy_maddr() 2557 bcopy(LLADDR(sdl), &mta[mcnt * ETHER_HDR_LEN], ETHER_HDR_LEN); in qlnx_copy_maddr() 2567 u_int mcnt; in qlnx_set_multi() local 2572 mcnt = if_foreach_llmaddr(ifp, qlnx_copy_maddr, mta); in qlnx_set_multi() 2575 qlnx_hw_set_multi(ha, mta, mcnt, add_multi); in qlnx_set_multi()
|