/titanic_44/usr/src/uts/common/io/aggr/ |
H A D | aggr_lacp.c | 226 lacp_port_select(aggr_port_t *portp) in lacp_port_select() argument 228 ASSERT(MAC_PERIM_HELD(portp->lp_grp->lg_mh)); in lacp_port_select() 230 if (!lacp_sel_ports_add(portp)) in lacp_port_select() 232 portp->lp_lacp.sm.selected = AGGR_SELECTED; in lacp_port_select() 240 lacp_port_unselect(aggr_port_t *portp) in lacp_port_unselect() argument 242 aggr_grp_t *grp = portp->lp_grp; in lacp_port_unselect() 246 lacp_sel_ports_del(portp); in lacp_port_unselect() 247 portp->lp_lacp.sm.selected = AGGR_UNSELECTED; in lacp_port_unselect() 267 aggr_lacp_init_port(aggr_port_t *portp) in aggr_lacp_init_port() argument 269 aggr_grp_t *aggrp = portp->lp_grp; in aggr_lacp_init_port() [all …]
|
/titanic_44/usr/src/uts/sun4v/io/ |
H A D | vnet_gen.c | 89 static int vgen_force_link_state(vgen_port_t *portp, int link_state); 102 static void vgen_port_detach(vgen_port_t *portp); 103 static void vgen_port_list_insert(vgen_port_t *portp); 104 static void vgen_port_list_remove(vgen_port_t *portp); 112 static int vgen_port_read_props(vgen_port_t *portp, vgen_t *vgenp, md_t *mdp, 115 static int vgen_port_attach(vgen_port_t *portp); 116 static void vgen_port_detach_mdeg(vgen_port_t *portp); 119 static uint64_t vgen_port_stat(vgen_port_t *portp, uint_t stat); 120 static void vgen_port_reset(vgen_port_t *portp); 124 static int vgen_ldc_attach(vgen_port_t *portp, uint64_t ldc_id); [all …]
|
H A D | vsw_hio.c | 83 extern void vsw_hio_port_reset(vsw_port_t *portp, boolean_t immediate); 84 extern void vsw_port_mac_reconfig(vsw_port_t *portp, boolean_t update_vlans, 94 void vsw_hio_stop_port(vsw_port_t *portp); 102 static vsw_share_t *vsw_hio_find_vshare_port(vsw_t *vswp, vsw_port_t *portp); 194 vsw_port_t *portp = ldcp->ldc_port; in vsw_hio_alloc_share() local 205 WRITE_ENTER(&portp->maccl_rwlock); in vsw_hio_alloc_share() 206 rv = mac_share_bind(portp->p_mch, ldc_id, &vsharep->vs_cookie); in vsw_hio_alloc_share() 207 RW_EXIT(&portp->maccl_rwlock); in vsw_hio_alloc_share() 215 portp->p_macaddr.ether_addr_octet); in vsw_hio_alloc_share() 278 vsw_hio_find_vshare_port(vsw_t *vswp, vsw_port_t *portp) in vsw_hio_find_vshare_port() argument [all …]
|
H A D | vsw_switching.c | 516 (void) vsw_portsend(fp->portp, mp); in vsw_switch_l2_frame() 639 (void) vsw_portsend(fp->portp, mp); in vsw_switch_l3_frame() 713 vsw_port_t *portp; in vsw_forward_all() local 752 for (portp = plist->head; portp != NULL; portp = portp->p_next) { in vsw_forward_all() 753 D2(vswp, "vsw_forward_all: port %d", portp->p_instance); in vsw_forward_all() 759 if ((skip_port) && (portp == arg)) { in vsw_forward_all() 769 (void) vsw_portsend(portp, nmp); in vsw_forward_all() 951 vsw_port_t *portp = (vsw_port_t *)arg; in vsw_vlan_create_hash() local 954 portp->p_instance); in vsw_vlan_create_hash() 956 portp->vlan_nchains = vsw_vlan_nchains; in vsw_vlan_create_hash() [all …]
|
H A D | vsw_phys.c | 82 static void vsw_mac_multicast_add_all(vsw_t *vswp, vsw_port_t *portp, int type); 84 vsw_port_t *portp, int type); 113 void vsw_publish_macaddr(vsw_t *vswp, vsw_port_t *portp); 114 void vsw_port_mac_reconfig(vsw_port_t *portp, boolean_t update_vlans, 116 void vsw_mac_port_reconfig_vlans(vsw_port_t *portp, uint16_t new_pvid, 127 extern void vsw_hio_stop_port(vsw_port_t *portp); 128 extern void vsw_hio_port_reset(vsw_port_t *portp, boolean_t immediate); 384 vsw_mac_multicast_add_all(vsw_t *vswp, vsw_port_t *portp, int type) in vsw_mac_multicast_add_all() argument 398 ASSERT(RW_WRITE_HELD(&portp->maccl_rwlock)); in vsw_mac_multicast_add_all() 399 mch = portp->p_mch; in vsw_mac_multicast_add_all() [all …]
|
H A D | vsw.c | 94 static void vsw_port_read_bandwidth(vsw_port_t *portp, md_t *mdp, 96 static int vsw_port_read_props(vsw_port_t *portp, vsw_t *vswp, 156 extern void vsw_vlan_unaware_port_reset(vsw_port_t *portp); 162 extern void vsw_hio_port_update(vsw_port_t *portp, boolean_t hio_enabled); 165 extern void vsw_mac_port_reconfig_vlans(vsw_port_t *portp, uint16_t new_pvid, 172 extern void vsw_port_reset(vsw_port_t *portp); 1819 vsw_port_t *portp; in vsw_vlan_read_ids() local 1840 portp = (vsw_port_t *)arg; in vsw_vlan_read_ids() 1841 vswp = portp->p_vswp; in vsw_vlan_read_ids() 1844 inst = portp->p_instance; in vsw_vlan_read_ids() [all …]
|
H A D | vsw_ldc.c | 88 int vsw_port_attach(vsw_port_t *portp); 90 void vsw_vlan_unaware_port_reset(vsw_port_t *portp); 91 void vsw_hio_port_reset(vsw_port_t *portp, boolean_t immediate); 93 void vsw_port_reset(vsw_port_t *portp); 95 static void vsw_port_physlink_update(vsw_port_t *portp); 196 extern void vsw_hio_stop_port(vsw_port_t *portp); 197 extern void vsw_publish_macaddr(vsw_t *vswp, vsw_port_t *portp); 1070 vsw_vlan_unaware_port_reset(vsw_port_t *portp) in vsw_vlan_unaware_port_reset() argument 1072 vsw_ldc_t *ldcp = portp->ldcp; in vsw_vlan_unaware_port_reset() 1081 portp->nvids != 0) { in vsw_vlan_unaware_port_reset() [all …]
|
H A D | ds_drv.c | 223 mde_cookie_t *portp = NULL; in ds_ports_init() local 239 portp = kmem_zalloc(listsz, KM_SLEEP); in ds_ports_init() 250 md_find_name(mdp, "fwd"), portp); in ds_ports_init() 263 dsnode = portp[0]; in ds_ports_init() 267 md_find_name(mdp, "fwd"), portp); in ds_ports_init() 280 nchan = md_scan_dag(mdp, portp[idx], in ds_ports_init() 297 if (ds_port_add(mdp, portp[idx], chanp[0]) != 0) { in ds_ports_init() 307 DS_FREE(portp, listsz); in ds_ports_init()
|
H A D | vnet_rxdring.c | 682 ldcp->portp->vcb.vio_net_tx_update; in vgen_dringsend_shm() 684 vtx_update(ldcp->portp->vhp); in vgen_dringsend_shm() 879 vio_net_rx_cb_t vrx_cb = ldcp->portp->vcb.vio_net_rx_cb; in vgen_intr_rcv_shm() 919 vrx_cb(ldcp->portp->vhp, bp); in vgen_intr_rcv_shm() 934 vrx_cb(ldcp->portp->vhp, bp); in vgen_intr_rcv_shm() 1222 ldcp->portp->vcb.vio_net_tx_update; in vgen_handle_dringdata_ack_shm() 1225 vtx_update(ldcp->portp->vhp); in vgen_handle_dringdata_ack_shm()
|
/titanic_44/usr/src/uts/common/sys/sata/adapters/ahci/ |
H A D | ahcivar.h | 326 #define AHCIPORT_NUM_PMPORTS(portp) \ argument 327 (portp)->ahciport_pmult_info->ahcipmi_num_dev_ports 332 #define AHCIPORT_DEV_TYPE(portp, addrp) \ argument 333 (portp)->ahciport_device_type 335 #define AHCIPORT_PMDEV_TYPE(portp, addrp) \ argument 336 (portp)->ahciport_pmult_info->ahcipmi_device_type \ 339 #define AHCIPORT_GET_DEV_TYPE(portp, addrp) \ argument 341 AHCIPORT_DEV_TYPE(portp, addrp) : \ 342 AHCIPORT_PMDEV_TYPE(portp, addrp)) 344 #define AHCIPORT_SET_DEV_TYPE(portp, addrp, type) \ argument [all …]
|
/titanic_44/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | rresvport.c | 60 u_int16_t *portp; in rresvport_af() local 70 portp = &((struct sockaddr_in *)sa)->sin_port; in rresvport_af() 74 portp = &((struct sockaddr_in6 *)sa)->sin6_port; in rresvport_af() 86 *portp = htons(*alport); in rresvport_af() 96 *portp = 0; in rresvport_af() 102 *alport = ntohs(*portp); in rresvport_af()
|
H A D | bindresvport.c | 64 u_int16_t *portp; local 85 portp = &sin->sin_port; 90 portp = &sin6->sin6_port; 97 port = ntohs(*portp); 105 *portp = htons(port);
|
/titanic_44/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_impl.c | 1847 ibcm_port_info_t *portp = (ibcm_port_info_t *)callback_arg; in ibcm_sm_notice_handler() local 1876 if (event_status == (portp->port_event_status & in ibcm_sm_notice_handler() 1881 portp->port_event_status = event_status; in ibcm_sm_notice_handler() 1895 if (!IBCM_ACCESS_HCA_OK(portp->port_hcap)) { in ibcm_sm_notice_handler() 1901 ++(portp->port_hcap->hca_acc_cnt); in ibcm_sm_notice_handler() 1905 ibtl_cm_sm_notice_handler(portp->port_sgid0, code, &event); in ibcm_sm_notice_handler() 1909 ibcm_dec_hca_acc_cnt(portp->port_hcap); in ibcm_sm_notice_handler() 1916 ibcm_port_info_t *portp; in ibt_register_subnet_notices() local 1939 portp = hcap->hca_port_info; in ibt_register_subnet_notices() 1941 if (!(portp->port_event_status & in ibt_register_subnet_notices() [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | piclfrutree.c | 1185 frutree_portnode_t *portp = NULL; in free_data() local 1208 portp = (frutree_portnode_t *)datap->data; in free_data() 1209 free(portp->name); in free_data() 1210 free(portp); in free_data() 1524 frutree_portnode_t *portp; in make_port_data() local 1534 portp = (frutree_portnode_t *)malloc(sizeof (frutree_portnode_t)); in make_port_data() 1535 if (portp == NULL) { in make_port_data() 1542 free(portp); in make_port_data() 1548 portp->name = name_copy; in make_port_data() 1549 portp->portnodeh = 0; in make_port_data() [all …]
|
H A D | picllibdevinfo.c | 782 get_port_info(frutree_portnode_t *portp) in get_port_info() argument 791 if ((rc = ptree_get_propval_by_name(portp->portnodeh, in get_port_info() 797 if (ptree_get_propval_by_name(portp->portnodeh, PICL_PROP_BUS_ADDR, in get_port_info() 846 (void) strncpy(portp->driver, di_drv, sizeof (portp->driver)); in get_port_info() 847 portp->instance = di_instance(curr); in get_port_info()
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | open.c | 634 int *portp, struct ldap_x_hostlist_status **statusp ) in ldap_x_hostlist_first() argument 637 if ( NULL == hostp || NULL == portp || NULL == statusp ) { in ldap_x_hostlist_first() 646 *portp = defport; in ldap_x_hostlist_first() 661 return( ldap_x_hostlist_next( hostp, portp, *statusp )); in ldap_x_hostlist_first() 671 ldap_x_hostlist_next( char **hostp, int *portp, in ldap_x_hostlist_next() argument 677 if ( NULL == hostp || NULL == portp ) { in ldap_x_hostlist_next() 725 *portp = atoi( q ); in ldap_x_hostlist_next() 727 *portp = status->lhs_defport; in ldap_x_hostlist_next()
|
/titanic_44/usr/src/uts/sun4v/sys/ |
H A D | vsw_ldc.h | 489 #define VSW_PORT_REFHOLD(portp) atomic_inc_32(&((portp)->ref_cnt)) argument 490 #define VSW_PORT_REFRELE(portp) atomic_dec_32(&((portp)->ref_cnt)) argument
|
H A D | vnet_gen.h | 68 #define LDC_TO_VNET(ldcp) ((ldcp)->portp->vgenp->vnetp) 69 #define LDC_TO_VGEN(ldcp) ((ldcp)->portp->vgenp) 262 struct vgen_port *portp; /* associated port */ member
|
H A D | vsw_fdb.h | 68 void *portp; /* pointer to the vnet_port */ member
|
/titanic_44/usr/src/lib/libnsl/rpc/ |
H A D | rpc_soc.c | 278 __rpc_bindresvport_ipv6(int fd, struct sockaddr *sin, int *portp, int qlen, in __rpc_bindresvport_ipv6() argument 361 if ((portp != NULL) && (res == 0)) in __rpc_bindresvport_ipv6() 362 *portp = *sinport; in __rpc_bindresvport_ipv6() 368 __rpc_bindresvport(int fd, struct sockaddr_in *sin, int *portp, int qlen) in __rpc_bindresvport() argument 370 return (__rpc_bindresvport_ipv6(fd, (struct sockaddr *)sin, portp, in __rpc_bindresvport()
|
/titanic_44/usr/src/uts/common/io/ib/ibtl/ |
H A D | ibtl_handlers.c | 197 ibtl_async_port_event_t *portp; in ibc_async_handler() local 340 portp = &hca_devp->hd_async_port[port_minus1]; in ibc_async_handler() 346 portp->status = IBTL_HCA_PORT_UP; in ibc_async_handler() 352 portp->status = IBTL_HCA_PORT_DOWN; in ibc_async_handler() 367 portp->flags |= event_p->ev_port_flags; in ibc_async_handler() 368 portp->status |= IBTL_HCA_PORT_CHG; in ibc_async_handler() 374 portp->status |= IBTL_HCA_PORT_ASYNC_CLNT_REREG; in ibc_async_handler() 490 ibtl_async_port_event_t *portp; in ibt_cisco_embedded_sm_rereg_fix() local 502 portp = &hca_devp->hd_async_port[port - 1]; in ibt_cisco_embedded_sm_rereg_fix() 514 portp->status |= IBTL_HCA_PORT_ASYNC_CLNT_REREG; in ibt_cisco_embedded_sm_rereg_fix() [all …]
|
/titanic_44/usr/src/uts/common/rpc/ |
H A D | xdr.h | 303 #define xdr_rpcport(xdrs, portp) xdr_u_int(xdrs, portp) argument 309 #define xdr_rpcport(xdrs, portp) xdr_u_long(xdrs, portp) argument
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | commands.c | 2591 int *addr_type, const char *portp) in resolve_hosts() argument 2618 (portp != NULL) ? portp : "telnet", &hints, &res); in resolve_hosts() 2944 char *portp = NULL; local 3027 if (portp == 0) { 3028 portp = *argv++; 3033 if (*portp == '-') { 3034 portp++; 3064 portp); 3106 if (portp == NULL) {
|
/titanic_44/usr/src/lib/libldap5/include/ldap/ |
H A D | solaris-int.h | 284 int defport, char **hostp, int *portp /* host byte order */, 287 int *portp /* host byte order */, struct ldap_x_hostlist_status *status );
|
/titanic_44/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_ib_cma.c | 2200 in_port_t *portp) in ipaddr2sockaddr() argument 2208 if (portp) in ipaddr2sockaddr() 2209 sock_in4p->sin_port = ntohs(*portp); in ipaddr2sockaddr() 2216 if (portp) in ipaddr2sockaddr() 2217 in6_addr->sin6_port = *portp; in ipaddr2sockaddr() 2223 ibt_ip_addr_t *ibt_addrp, in_port_t *portp) in sockaddr2ibtaddr_port() argument 2242 if (portp) in sockaddr2ibtaddr_port() 2243 *portp = ip_port; in sockaddr2ibtaddr_port() 2250 if (portp) in sockaddr2ibtaddr_port() 2251 *portp = in6_addr->sin6_port; in sockaddr2ibtaddr_port()
|