Home
last modified time | relevance | path

Searched refs:srs (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/cmd/mdb/common/modules/mac/
H A Dmac.c567 mac_soft_ring_set_t srs; in mac_srs_dcmd() local
591 if (mdb_vread(&srs, sizeof (srs), addr) == -1) { in mac_srs_dcmd()
596 if (mdb_vread(&mci, sizeof (mci), (uintptr_t)srs.srs_mcip) == -1) { in mac_srs_dcmd()
598 "for SRS %p", srs.srs_mcip, addr); in mac_srs_dcmd()
614 if (srs.srs_type & SRST_TX) in mac_srs_dcmd()
618 addr, mci.mci_name, srs.srs_state, srs.srs_type, in mac_srs_dcmd()
619 srs.srs_count, srs.srs_size, srs.srs_soft_ring_count); in mac_srs_dcmd()
633 if (!(srs.srs_type & SRST_TX)) in mac_srs_dcmd()
638 addr, mci.mci_name, mac_srs_txmode2str(srs.srs_tx.st_mode), in mac_srs_dcmd()
639 srs.srs_state, srs.srs_type, srs.srs_count, srs.srs_size, in mac_srs_dcmd()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dmac_soft_ring.h489 #define SRS_QUIESCED(srs) (srs->srs_state & SRS_QUIESCE_DONE) argument
495 #define SRS_QUIESCED_PERMANENT(srs) (srs->srs_state & SRS_QUIESCE_PERM) argument
612 #define MAC_UPDATE_SRS_SIZE_LOCKED(srs, sz) { \ argument
613 if ((srs)->srs_type & SRST_BW_CONTROL) { \
614 mutex_enter(&(srs)->srs_bw->mac_bw_lock); \
615 (srs)->srs_bw->mac_bw_sz -= (sz); \
616 (srs)->srs_bw->mac_bw_used += (sz); \
617 mutex_exit(&(srs)->srs_bw->mac_bw_lock); \
621 #define MAC_TX_UPDATE_BW_INFO(srs, sz) { \ argument
622 (srs)->srs_bw->mac_bw_sz -= (sz); \
[all …]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_soft_ring.c425 mac_soft_ring_set_t *srs = ringp->s_ring_set; in mac_soft_ring_worker() local
453 mutex_enter(&srs->srs_lock); in mac_soft_ring_worker()
458 srs->srs_soft_ring_quiesced_count++; in mac_soft_ring_worker()
459 cv_broadcast(&srs->srs_async); in mac_soft_ring_worker()
460 mutex_exit(&srs->srs_lock); in mac_soft_ring_worker()
465 mutex_enter(&srs->srs_lock); in mac_soft_ring_worker()
467 srs->srs_soft_ring_quiesced_count--; in mac_soft_ring_worker()
472 cv_broadcast(&srs->srs_async); in mac_soft_ring_worker()
473 mutex_exit(&srs->srs_lock); in mac_soft_ring_worker()
480 srs->srs_soft_ring_condemned_count++; in mac_soft_ring_worker()
[all …]
H A Dmac_sched.c1297 #define MAC_TX_SRS_BLOCK(srs, mp) { \ argument
1298 ASSERT(MUTEX_HELD(&(srs)->srs_lock)); \
1299 if ((srs)->srs_tx.st_woken_up) { \
1300 (srs)->srs_tx.st_woken_up = B_FALSE; \
1302 ASSERT(!((srs)->srs_state & SRS_TX_BLOCKED)); \
1303 (srs)->srs_state |= SRS_TX_BLOCKED; \
1304 (srs)->srs_tx.st_stat.mts_blockcnt++; \
1314 #define MAC_TX_SRS_TEST_HIWAT(srs, mp, tail, cnt, sz, cookie) { \ argument
1317 if ((srs)->srs_count > (srs)->srs_tx.st_hiwat) { \
1322 (srs)->srs_state |= SRS_TX_HIWAT; \
[all …]
H A Dmac.c1551 mac_hwrings_rx_process(void *arg, mac_resource_handle_t srs, in mac_hwrings_rx_process() argument
1554 mac_soft_ring_set_t *mac_srs = (mac_soft_ring_set_t *)srs; in mac_hwrings_rx_process()
2213 mac_srs_quiesce_wait(mac_soft_ring_set_t *srs, uint_t srs_flag) in mac_srs_quiesce_wait() argument
2215 mutex_enter(&srs->srs_lock); in mac_srs_quiesce_wait()
2216 while (!(srs->srs_state & srs_flag)) in mac_srs_quiesce_wait()
2217 cv_wait(&srs->srs_quiesce_done_cv, &srs->srs_lock); in mac_srs_quiesce_wait()
2218 mutex_exit(&srs->srs_lock); in mac_srs_quiesce_wait()
2258 mac_rx_srs_quiesce(mac_soft_ring_set_t *srs, uint_t srs_quiesce_flag) in mac_rx_srs_quiesce() argument
2260 flow_entry_t *flent = srs->srs_flent; in mac_rx_srs_quiesce()
2264 ASSERT(!(srs->srs_type & SRST_TX)); in mac_rx_srs_quiesce()
[all …]
H A Dmac_datapath_setup.c1483 mac_rx_srs_update_bwlimit(mac_soft_ring_set_t *srs, mac_resource_props_t *mrp) in mac_rx_srs_update_bwlimit() argument
1487 mutex_enter(&srs->srs_lock); in mac_rx_srs_update_bwlimit()
1488 mutex_enter(&srs->srs_bw->mac_bw_lock); in mac_rx_srs_update_bwlimit()
1492 if (srs->srs_type & SRST_BW_CONTROL) { in mac_rx_srs_update_bwlimit()
1493 softring = srs->srs_soft_ring_head; in mac_rx_srs_update_bwlimit()
1498 srs->srs_type &= ~SRST_BW_CONTROL; in mac_rx_srs_update_bwlimit()
1499 srs->srs_drain_func = mac_rx_srs_drain; in mac_rx_srs_update_bwlimit()
1503 srs->srs_bw->mac_bw_limit = FLOW_BYTES_PER_TICK(mrp->mrp_maxbw); in mac_rx_srs_update_bwlimit()
1508 srs->srs_bw->mac_bw_drop_threshold = in mac_rx_srs_update_bwlimit()
1509 srs->srs_bw->mac_bw_limit << 1; in mac_rx_srs_update_bwlimit()
[all …]
H A Dmac_client.c3525 mac_soft_ring_set_t *srs; in mac_tx() local
3569 srs = flent->fe_tx_srs; in mac_tx()
3575 if (srs == NULL) { in mac_tx()
3580 srs_tx = &srs->srs_tx; in mac_tx()
3582 (srs->srs_state & SRS_ENQUEUED) == 0 && in mac_tx()
3625 SRS_TX_STAT_UPDATE(srs, opackets, 1); in mac_tx()
3626 SRS_TX_STAT_UPDATE(srs, obytes, obytes); in mac_tx()
3628 mutex_enter(&srs->srs_lock); in mac_tx()
3629 cookie = mac_tx_srs_no_desc(srs, mp_chain, in mac_tx()
3631 mutex_exit(&srs->srs_lock); in mac_tx()
[all …]
/illumos-gate/usr/src/common/devid/
H A Ddevid_smp.c101 smp_response_frame_t *srs; in ddi_devid_smp_encode() local
125 (srmir_len >= ((sizeof (*srs) - sizeof (srs->srf_data)) + in ddi_devid_smp_encode()
127 srs = (smp_response_frame_t *)srmir_buf; in ddi_devid_smp_encode()
128 srmir = (smp_report_manufacturer_info_resp_t *)srs->srf_data; in ddi_devid_smp_encode()
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dsmp_transport.c61 smp_response_frame_t *srs; in smp_probe() local
105 srs = (smp_response_frame_t *)srs_buf; in smp_probe()
106 if (srs->srf_result != SMP_RES_FUNCTION_ACCEPTED) in smp_probe()
114 srmir = (smp_report_manufacturer_info_resp_t *)&srs->srf_data[0]; in smp_probe()
162 (uchar_t *)srs, sizeof (srs_buf)); in smp_probe()
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Duds_daemon.c784 …external_start_advertising_service(&instance->srs.RR_PTR.resrec, instance->request->flags, request… in external_start_advertising_helper()
785 …external_start_advertising_service(&instance->srs.RR_SRV.resrec, instance->request->flags, request… in external_start_advertising_helper()
786 …external_start_advertising_service(&instance->srs.RR_TXT.resrec, instance->request->flags, request… in external_start_advertising_helper()
788 for (e = instance->srs.Extras; e; e = e->next) in external_start_advertising_helper()
812 …external_stop_advertising_service(&instance->srs.RR_PTR.resrec, instance->request->flags, requestP… in external_stop_advertising_helper()
813 …external_stop_advertising_service(&instance->srs.RR_SRV.resrec, instance->request->flags, requestP… in external_stop_advertising_helper()
814 …external_stop_advertising_service(&instance->srs.RR_TXT.resrec, instance->request->flags, requestP… in external_stop_advertising_helper()
816 for (e = instance->srs.Extras; e; e = e->next) in external_stop_advertising_helper()
862 ExtraResourceRecord *e = srv->srs.Extras, *tmp; in unlink_and_free_service_instance()
887 if (srv->srs.RR_TXT.resrec.rdata != &srv->srs.RR_TXT.rdatastorage) in unlink_and_free_service_instance()
[all …]
H A Duds_daemon.h73 ServiceRecordSet srs; // note -- variable-sized object -- must be last field in struct member
241 extern int CountPeerRegistrations(ServiceRecordSet *const srs);
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_proto.c236 struct ieee80211_rateset *srs; in ieee80211_fix_rate() local
256 srs = &ic->ic_sup_rates[ieee80211_chan2mode(ic, in->in_chan)]; in ieee80211_fix_rate()
280 for (j = 0; j < srs->ir_nrates; j++) { in ieee80211_fix_rate()
281 if (r == IEEE80211_RV(srs->ir_rates[j])) { in ieee80211_fix_rate()
290 nrs->ir_rates[i] = srs->ir_rates[j]; in ieee80211_fix_rate()
294 if (j == srs->ir_nrates) { in ieee80211_fix_rate()
H A Dnet80211_ioctl.c2292 const struct ieee80211_rateset *srs; in wl_get_suprates() local
2299 srs = &ic->ic_sup_rates[i]; in wl_get_suprates()
2300 if (srs->ir_nrates == 0) in wl_get_suprates()
2302 for (j = 0; j < srs->ir_nrates; j++) { in wl_get_suprates()
2303 srates = IEEE80211_RV(srs->ir_rates[j]); in wl_get_suprates()
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_as/
H A Dusb_as.c787 uint_t *srs = reg->reg_formats[n].fmt_srs; in usb_as_set_format() local
791 if (format->fmt_srs[0] == srs[i]) { in usb_as_set_format()
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSCore/
H A DmDNS.c14392 mDNSlocal void SleepProxyServerCallback(mDNS *const m, ServiceRecordSet *const srs, mStatus result) in SleepProxyServerCallback() argument
14395 mDNS_RenameAndReregisterService(m, srs, mDNSNULL); in SleepProxyServerCallback()
14407 mDNS_RegisterService(m, srs, in SleepProxyServerCallback()
14416 …LogSPS("Sleep Proxy Server %#s %s", srs->RR_SRV.resrec.name->c, m->SPSState ? "started" : "stopped… in SleepProxyServerCallback()