Home
last modified time | relevance | path

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

/titanic_44/usr/src/cmd/mdb/common/modules/mac/
H A Dmac.c546 mac_soft_ring_set_t srs; in mac_srs_dcmd() local
570 if (mdb_vread(&srs, sizeof (srs), addr) == -1) { in mac_srs_dcmd()
575 if (mdb_vread(&mci, sizeof (mci), (uintptr_t)srs.srs_mcip) == -1) { in mac_srs_dcmd()
577 "for SRS %p", srs.srs_mcip, addr); in mac_srs_dcmd()
593 if (srs.srs_type & SRST_TX) in mac_srs_dcmd()
597 addr, mci.mci_name, srs.srs_state, srs.srs_type, in mac_srs_dcmd()
598 srs.srs_count, srs.srs_size, srs.srs_soft_ring_count); in mac_srs_dcmd()
612 if (!(srs.srs_type & SRST_TX)) in mac_srs_dcmd()
617 addr, mci.mci_name, mac_srs_txmode2str(srs.srs_tx.st_mode), in mac_srs_dcmd()
618 srs.srs_state, srs.srs_type, srs.srs_count, srs.srs_size, in mac_srs_dcmd()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DuDNS.c835 mDNSlocal void SendServiceRegistration(mDNS *m, ServiceRecordSet *srs);
836 mDNSlocal void SendServiceDeregistration(mDNS *m, ServiceRecordSet *srs);
900 mDNSlocal void unlinkSRS(mDNS *m, ServiceRecordSet *srs) in unlinkSRS() argument
909 if (n->reg.ServiceRegistration == srs) in unlinkSRS()
913 …LogMsg("ERROR: Unlinking service record set %##s still referenced by NAT traversal object!", srs->… in unlinkSRS()
920 if (*p == srs) in unlinkSRS()
923 *p = srs->next; in unlinkSRS()
924 srs->next = mDNSNULL; in unlinkSRS()
925 for (e=srs->Extras; e; e=e->next) in unlinkSRS()
930 …LogMsg("ERROR: unlinkSRS - SRS not found in ServiceRegistrations list %##s", srs->RR_SRV.resrec.na… in unlinkSRS()
[all …]
H A Duds_daemon.c725 ServiceRecordSet srs; // note - must be last field in struct member
897 mDNSlocal void regservice_callback(mDNS *const m, ServiceRecordSet *const srs, mStatus result);
946 …d: DNSServiceRegister %##s %u", req->sd, ptr->srs.RR_SRV.resrec.name->c, SRS_PORT(&ptr->sr… in LogClientInfo()
1231 …if (mDNS_DeregisterService(gmDNS, &srv->srs)) // If service deregistered already, we can re-regist… in rename_service()
1232 regservice_callback(gmDNS, &srv->srs, mStatus_MemFree); in rename_service()
2227 mDNSexport int CountPeerRegistrations(mDNS *const m, ServiceRecordSet *const srs) in CountPeerRegistrations() argument
2230 ResourceRecord *r = &srs->RR_SRV.resrec; in CountPeerRegistrations()
2292 …result = mDNS_RegisterService(gmDNS, &instance->srs, &instance->name, &info->type, domain, info->h… in register_service_instance()
2330 err = mDNS_DeregisterService(gmDNS, &si->srs); in udsserver_default_reg_domain_changed()
2496 mDNSlocal void regservice_callback(mDNS *const m, ServiceRecordSet *const srs, mStatus result) in regservice_callback() argument
[all …]
H A DuDNS.h174 extern mStatus uDNS_RegisterService(mDNS *const m, ServiceRecordSet *srs);
175 extern mStatus uDNS_DeregisterService(mDNS *const m, ServiceRecordSet *srs);
H A Duds_daemon.h118 extern int CountPeerRegistrations(mDNS *const m, ServiceRecordSet *const srs);
/titanic_44/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 …]
/titanic_44/usr/src/uts/common/io/mac/
H A Dmac_soft_ring.c429 mac_soft_ring_set_t *srs = ringp->s_ring_set; in mac_soft_ring_worker() local
457 mutex_enter(&srs->srs_lock); in mac_soft_ring_worker()
462 srs->srs_soft_ring_quiesced_count++; in mac_soft_ring_worker()
463 cv_broadcast(&srs->srs_async); in mac_soft_ring_worker()
464 mutex_exit(&srs->srs_lock); in mac_soft_ring_worker()
469 mutex_enter(&srs->srs_lock); in mac_soft_ring_worker()
471 srs->srs_soft_ring_quiesced_count--; in mac_soft_ring_worker()
476 cv_broadcast(&srs->srs_async); in mac_soft_ring_worker()
477 mutex_exit(&srs->srs_lock); in mac_soft_ring_worker()
484 srs->srs_soft_ring_condemned_count++; in mac_soft_ring_worker()
[all …]
H A Dmac_sched.c1296 #define MAC_TX_SRS_BLOCK(srs, mp) { \ argument
1297 ASSERT(MUTEX_HELD(&(srs)->srs_lock)); \
1298 if ((srs)->srs_tx.st_woken_up) { \
1299 (srs)->srs_tx.st_woken_up = B_FALSE; \
1301 ASSERT(!((srs)->srs_state & SRS_TX_BLOCKED)); \
1302 (srs)->srs_state |= SRS_TX_BLOCKED; \
1303 (srs)->srs_tx.st_stat.mts_blockcnt++; \
1313 #define MAC_TX_SRS_TEST_HIWAT(srs, mp, tail, cnt, sz, cookie) { \ argument
1316 if ((srs)->srs_count > (srs)->srs_tx.st_hiwat) { \
1321 (srs)->srs_state |= SRS_TX_HIWAT; \
[all …]
H A Dmac.c1464 mac_hwrings_rx_process(void *arg, mac_resource_handle_t srs, in mac_hwrings_rx_process() argument
1467 mac_soft_ring_set_t *mac_srs = (mac_soft_ring_set_t *)srs; in mac_hwrings_rx_process()
1885 mac_srs_quiesce_wait(mac_soft_ring_set_t *srs, uint_t srs_flag) in mac_srs_quiesce_wait() argument
1887 mutex_enter(&srs->srs_lock); in mac_srs_quiesce_wait()
1888 while (!(srs->srs_state & srs_flag)) in mac_srs_quiesce_wait()
1889 cv_wait(&srs->srs_quiesce_done_cv, &srs->srs_lock); in mac_srs_quiesce_wait()
1890 mutex_exit(&srs->srs_lock); in mac_srs_quiesce_wait()
1930 mac_rx_srs_quiesce(mac_soft_ring_set_t *srs, uint_t srs_quiesce_flag) in mac_rx_srs_quiesce() argument
1932 flow_entry_t *flent = srs->srs_flent; in mac_rx_srs_quiesce()
1936 ASSERT(!(srs->srs_type & SRST_TX)); in mac_rx_srs_quiesce()
[all …]
H A Dmac_datapath_setup.c1473 mac_rx_srs_update_bwlimit(mac_soft_ring_set_t *srs, mac_resource_props_t *mrp) in mac_rx_srs_update_bwlimit() argument
1477 mutex_enter(&srs->srs_lock); in mac_rx_srs_update_bwlimit()
1478 mutex_enter(&srs->srs_bw->mac_bw_lock); in mac_rx_srs_update_bwlimit()
1482 if (srs->srs_type & SRST_BW_CONTROL) { in mac_rx_srs_update_bwlimit()
1483 softring = srs->srs_soft_ring_head; in mac_rx_srs_update_bwlimit()
1488 srs->srs_type &= ~SRST_BW_CONTROL; in mac_rx_srs_update_bwlimit()
1489 srs->srs_drain_func = mac_rx_srs_drain; in mac_rx_srs_update_bwlimit()
1493 srs->srs_bw->mac_bw_limit = FLOW_BYTES_PER_TICK(mrp->mrp_maxbw); in mac_rx_srs_update_bwlimit()
1498 srs->srs_bw->mac_bw_drop_threshold = in mac_rx_srs_update_bwlimit()
1499 srs->srs_bw->mac_bw_limit << 1; in mac_rx_srs_update_bwlimit()
[all …]
H A Dmac_client.c3440 mac_soft_ring_set_t *srs; in mac_tx() local
3484 srs = flent->fe_tx_srs; in mac_tx()
3490 if (srs == NULL) { in mac_tx()
3495 srs_tx = &srs->srs_tx; in mac_tx()
3497 (srs->srs_state & SRS_ENQUEUED) == 0 && in mac_tx()
3536 SRS_TX_STAT_UPDATE(srs, opackets, 1); in mac_tx()
3537 SRS_TX_STAT_UPDATE(srs, obytes, obytes); in mac_tx()
3539 mutex_enter(&srs->srs_lock); in mac_tx()
3540 cookie = mac_tx_srs_no_desc(srs, mp_chain, in mac_tx()
3542 mutex_exit(&srs->srs_lock); in mac_tx()
[all …]
/titanic_44/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()
/titanic_44/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()
/titanic_44/usr/src/uts/common/io/net80211/
H A Dnet80211_proto.c232 struct ieee80211_rateset *srs; in ieee80211_fix_rate() local
252 srs = &ic->ic_sup_rates[ieee80211_chan2mode(ic, in->in_chan)]; in ieee80211_fix_rate()
276 for (j = 0; j < srs->ir_nrates; j++) { in ieee80211_fix_rate()
277 if (r == IEEE80211_RV(srs->ir_rates[j])) { in ieee80211_fix_rate()
286 nrs->ir_rates[i] = srs->ir_rates[j]; in ieee80211_fix_rate()
290 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()
/titanic_44/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()