Lines Matching refs:nmrp

2077 	mac_resource_props_t	*omrp, *nmrp = MCIP_RESOURCE_PROPS(mcip);  in mac_resource_ctl_set()  local
2093 bcopy(nmrp, omrp, sizeof (*omrp)); in mac_resource_ctl_set()
2106 nmrp->mrp_mask |= MRP_RX_RINGS; in mac_resource_ctl_set()
2107 nmrp->mrp_nrxrings = omrp->mrp_nrxrings; in mac_resource_ctl_set()
2109 nmrp->mrp_mask &= ~MRP_RX_RINGS; in mac_resource_ctl_set()
2110 nmrp->mrp_nrxrings = 0; in mac_resource_ctl_set()
2113 nmrp->mrp_mask |= MRP_TX_RINGS; in mac_resource_ctl_set()
2114 nmrp->mrp_ntxrings = omrp->mrp_ntxrings; in mac_resource_ctl_set()
2116 nmrp->mrp_mask &= ~MRP_TX_RINGS; in mac_resource_ctl_set()
2117 nmrp->mrp_ntxrings = 0; in mac_resource_ctl_set()
4557 mac_update_resources(mac_resource_props_t *nmrp, mac_resource_props_t *cmrp, in mac_update_resources() argument
4560 if (nmrp != NULL && cmrp != NULL) { in mac_update_resources()
4561 if (nmrp->mrp_mask & MRP_PRIORITY) { in mac_update_resources()
4562 if (nmrp->mrp_priority == MPL_RESET) { in mac_update_resources()
4572 cmrp->mrp_priority = nmrp->mrp_priority; in mac_update_resources()
4575 if (nmrp->mrp_mask & MRP_MAXBW) { in mac_update_resources()
4576 if (nmrp->mrp_maxbw == MRP_MAXBW_RESETVAL) { in mac_update_resources()
4581 cmrp->mrp_maxbw = nmrp->mrp_maxbw; in mac_update_resources()
4584 if (nmrp->mrp_mask & MRP_CPUS) in mac_update_resources()
4585 MAC_COPY_CPUS(nmrp, cmrp); in mac_update_resources()
4587 if (nmrp->mrp_mask & MRP_POOL) { in mac_update_resources()
4588 if (strlen(nmrp->mrp_pool) == 0) { in mac_update_resources()
4593 (void) strncpy(cmrp->mrp_pool, nmrp->mrp_pool, in mac_update_resources()
4599 if (nmrp->mrp_mask & MRP_PROTECT) in mac_update_resources()
4600 mac_protect_update(nmrp, cmrp); in mac_update_resources()
4605 if (nmrp->mrp_mask & MRP_RX_RINGS) { in mac_update_resources()
4606 if (nmrp->mrp_mask & MRP_RINGS_RESET) { in mac_update_resources()
4613 cmrp->mrp_nrxrings = nmrp->mrp_nrxrings; in mac_update_resources()
4616 if (nmrp->mrp_mask & MRP_TX_RINGS) { in mac_update_resources()
4617 if (nmrp->mrp_mask & MRP_RINGS_RESET) { in mac_update_resources()
4624 cmrp->mrp_ntxrings = nmrp->mrp_ntxrings; in mac_update_resources()
4627 if (nmrp->mrp_mask & MRP_RXRINGS_UNSPEC) in mac_update_resources()
4632 if (nmrp->mrp_mask & MRP_TXRINGS_UNSPEC) in mac_update_resources()