/illumos-gate/usr/src/uts/common/inet/ |
H A D | tunables.c | 357 in_port_t *ports; in mod_set_extra_privports() local 377 ports = tcps->tcps_g_epriv_ports; in mod_set_extra_privports() 383 ports = us->us_epriv_ports; in mod_set_extra_privports() 389 ports = sctps->sctps_g_epriv_ports; in mod_set_extra_privports() 401 ports[i] = 0; in mod_set_extra_privports() 402 ports[0] = ULP_DEF_EPRIV_PORT1; in mod_set_extra_privports() 403 ports[1] = ULP_DEF_EPRIV_PORT2; in mod_set_extra_privports() 410 if (new_value == ports[i]) in mod_set_extra_privports() 420 ports[i] = 0; in mod_set_extra_privports() 429 if (ports[i] == 0) in mod_set_extra_privports() [all …]
|
H A D | ipclassifier.h | 571 #define IPCL_CONN_HASH(src, ports, ipst) \ argument 572 ((unsigned)(ntohl((src)) ^ ((ports) >> 24) ^ ((ports) >> 16) ^ \ 573 ((ports) >> 8) ^ (ports)) % (ipst)->ips_ipcl_conn_fanout_size) 575 #define IPCL_CONN_HASH_V6(src, ports, ipst) \ argument 576 IPCL_CONN_HASH(V4_PART_OF_V6((src)), (ports), (ipst)) 578 #define IPCL_CONN_MATCH(connp, proto, src, dst, ports) \ argument 580 (connp)->conn_ports == (ports) && \ 585 #define IPCL_CONN_MATCH_V6(connp, proto, src, dst, ports) \ argument 587 (connp)->conn_ports == (ports) && \
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | netcat.c | 116 } ports; variable 431 for (i = 0; i < ports.numports; i++) { in main() 433 ports.list[i]); in main() 463 ntohs(ports.list[i]), in main() 475 free(ports.list); in main() 811 ports.list = malloc(PLIST_SZ * sizeof (uint16_t)); in build_ports() 812 if (ports.list == NULL) in build_ports() 814 ports.listsize = PLIST_SZ; in build_ports() 815 ports.numports = 0; in build_ports() 849 if (hi - lo + ports.numports + 1 >= ports.listsize) { in build_ports() [all …]
|
/illumos-gate/usr/src/lib/librstp/common/ |
H A D | stpm.c | 58 for (port = this->ports; port; port = port->next) { in _stp_stpm_iterate_machines() 90 for (port = this->ports; port; port = port->next) { in _check_topoch() 107 for (port = this->ports; port; port = port->next) { in STP_stpm_one_second() 142 this->ports = NULL; in STP_stpm_create() 164 if (this->ports) in STP_stpm_enable() 192 for (port = this->ports; port; ) { in STP_stpm_delete() 195 this->ports = port = (PORT_T*) pv; in STP_stpm_delete() 221 if (! this->ports) { /* there are not any ports :( */ in STP_stpm_start() 237 for (port = this->ports; port; port = port->next) { in STP_stpm_start() 297 for (port = this->ports; port; port = port->next) { in STP_compute_bridge_id() [all …]
|
H A D | rolesel.c | 131 for (port = this->ports; port; port = port->next) { in updtRoleDisableBridge() 141 for (port = this->ports; port; port = port->next) { in clearReselectBridge() 156 for (port = stpm->ports; port; port = port->next) { in updtRootPrio() 212 for (port = stpm->ports; port; port = port->next) { in updtRolesBridge() 246 for (port = stpm->ports; port; port = port->next) { in updtRolesBridge() 302 for (port = this->ports; port; port = port->next) { in setSelectedBridge() 311 for (port = this->ports; port; port = port->next) { in setSelectedBridge() 362 for (port = stpm->ports; port; port = port->next) { in STP_rolesel_check_conditions() 388 for (port = this->ports; port; port = port->next) { in STP_rolesel_update_stpm()
|
H A D | port.c | 53 for (this = stpm->ports; this; this = this->next) { in STP_port_create() 59 STP_NEW_IN_LIST(this, PORT_T, stpm->ports, "port create"); in STP_port_create() 182 for (tmp = stpm->ports; tmp; tmp = tmp->next) { in STP_port_delete() 187 stpm->ports = this->next; in STP_port_delete()
|
H A D | roletrns.c | 58 for (port = this->owner.port->owner->ports; port; port = port->next) { in setSyncBridge() 68 for (port = this->owner.port->owner->ports; port; port = port->next) { in setReRootBridge() 78 for (port = this->owner->ports; port; port = port->next) { in compute_all_synced() 93 for (port = this->owner->ports; port; port = port->next) { in compute_re_rooted()
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/ |
H A D | xhci_quirks.c | 67 uint32_t ports; in xhci_reroute_intel() local 69 ports = pci_config_get32(xhcip->xhci_cfg_handle, in xhci_reroute_intel() 72 ports); in xhci_reroute_intel() 74 ports = pci_config_get32(xhcip->xhci_cfg_handle, in xhci_reroute_intel() 77 ports); in xhci_reroute_intel()
|
/illumos-gate/usr/src/uts/common/io/aggr/ |
H A D | aggr_ctl.c | 90 laioc_port_t *ports = NULL; in aggr_ioc_create() local 109 ports = kmem_alloc(ports_size, KM_SLEEP); in aggr_ioc_create() 111 if (ddi_copyin((uchar_t *)arg + sizeof (*create_arg), ports, in aggr_ioc_create() 122 ports, policy, mac_fixed, force, mac_addr, lacp_mode, lacp_timer, in aggr_ioc_create() 126 kmem_free(ports, ports_size); in aggr_ioc_create() 219 laioc_port_t *ports = NULL; in aggr_ioc_add_remove() local 228 ports = kmem_alloc(ports_size, KM_SLEEP); in aggr_ioc_add_remove() 229 if (ddi_copyin((uchar_t *)arg + sizeof (*add_rem_arg), ports, in aggr_ioc_add_remove() 238 add_rem_arg->la_force, ports); in aggr_ioc_add_remove() 241 rc = aggr_grp_rem_ports(add_rem_arg->la_linkid, nports, ports); in aggr_ioc_add_remove() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_ioport.h | 64 void vm_inout_init(struct vm *vm, struct ioport_config *ports); 65 void vm_inout_cleanup(struct vm *vm, struct ioport_config *ports); 67 int vm_inout_attach(struct ioport_config *ports, uint16_t port, uint16_t flags, 69 int vm_inout_detach(struct ioport_config *ports, uint16_t port, bool drv_hook, 72 int vm_inout_access(struct ioport_config *ports, bool in, uint16_t port,
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_hash.c | 236 uint32_t ports, zoneid_t zoneid, iaflags_t iraflags, sctp_stack_t *sctps) in sctp_conn_match() argument 244 tf = &(sctps->sctps_conn_fanout[SCTP_CONN_HASH(sctps, ports)]); in sctp_conn_match() 250 if (ports != connp->conn_ports) in sctp_conn_match() 283 listen_match(in6_addr_t *laddr, uint32_t ports, zoneid_t zoneid, in listen_match() argument 291 lport = ((uint16_t *)&ports)[1]; in listen_match() 322 sctp_find_conn(in6_addr_t *src, in6_addr_t *dst, uint32_t ports, in sctp_find_conn() argument 327 sctp = sctp_conn_match(&src, 1, dst, ports, zoneid, iraflags, sctps); in sctp_find_conn() 330 sctp = listen_match(dst, ports, zoneid, iraflags, sctps); in sctp_find_conn() 351 in6_addr_t *dstp, uint32_t ports, zoneid_t zoneid, sctp_stack_t *sctps, in sctp_lookup_by_faddrs() argument 369 if ((sctp = sctp_conn_match(&srcp, 1, dstp, ports, zoneid, iraflags, in sctp_lookup_by_faddrs() [all …]
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | sil3xxx.c | 58 int ports, i; in sil3xxx_init_controller() local 108 ports = 4; in sil3xxx_init_controller() 110 ports = 2; in sil3xxx_init_controller() 117 for (i = 0; i < ports; i++) { in sil3xxx_init_controller()
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlaggr.c | 379 uint32_t nports, dladm_aggr_port_attr_db_t *ports, uint32_t flags, int cmd) in i_dladm_aggr_add_rmv() argument 400 if ((dladm_datalink_id2info(handle, ports[i].lp_linkid, NULL, in i_dladm_aggr_add_rmv() 464 ports[i].lp_linkid, size); in i_dladm_aggr_add_rmv() 491 if (ports[i].lp_linkid == portid) in i_dladm_aggr_add_rmv() 562 ioc_ports[i].lp_linkid = ports[i].lp_linkid; in i_dladm_aggr_add_rmv() 632 uint16_t key, uint32_t nports, dladm_aggr_port_attr_db_t *ports, in i_dladm_aggr_create_sys() argument 656 ioc_ports[i].lp_linkid = ports[i].lp_linkid; in i_dladm_aggr_create_sys() 682 dladm_aggr_port_attr_db_t *ports = NULL; in i_dladm_aggr_up() local 696 ports = malloc(attr.lg_nports * sizeof (dladm_aggr_port_attr_db_t)); in i_dladm_aggr_up() 697 if (ports == NULL) { in i_dladm_aggr_up() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_sv.c | 220 u_short *ports; in sv_byport() local 222 ports = (u_short *)pvt->sv.line; in sv_byport() 223 ports[0] = 0; in sv_byport() 224 ports[1] = port; in sv_byport() 225 key.data = ports; in sv_byport() 228 strncpy((char *)ports + key.size, proto, in sv_byport() 230 key.size += strlen((char *)ports + key.size) + 1; in sv_byport()
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_info.c | 244 hp_node_list_t connections, ports; in copy_hotplug() local 255 (void) memset(&ports, 0, sizeof (hp_node_list_t)); in copy_hotplug() 341 node_list_add(&ports, port_node); in copy_hotplug() 350 node->hp_child = ports.head; in copy_hotplug() 351 (void) memset(&ports, 0, sizeof (hp_node_list_t)); in copy_hotplug() 360 (void) hp_fini(ports.head); in copy_hotplug()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/firmware/ |
H A D | t4fw_cfg.txt | 47 # 7. Some OS Drivers will manage different ports and functions (NIC, 49 # functions for ports 0-3 on PF0-3, FCoE on PF4, iSCSI on PF5, etc. 56 # in the case where all ports and application functions will be 60 # 4 ports * 147 tp_ntxch = 0 # 0 (auto) = equal number of ports 156 # 4 ports, 3 functions (NIC, FCoE and iSCSI), scaling up to 8 "CPU Queue Sets" 163 # NPORTS = 4 # ports 184 # NVI_OFLD = 0 # Offload uses NIC function to access ports 191 # NVI_RDMA = 0 # RDMA uses NIC function to access ports 265 # ports 0-3. [all …]
|
H A D | t5fw_cfg.txt | 32 # 7. Some OS Drivers will manage different ports and functions (NIC, 34 # functions for ports 0-3 on PF0-3, FCoE on PF4, iSCSI on PF5, etc. 41 # in the case where all ports and application functions will be 45 # 4 ports * 162 tp_ntxch = 0 # 0 (auto) = equal number of ports 191 # 4 ports, 3 functions (NIC, FCoE and iSCSI), scaling up to 8 "CPU Queue Sets" 198 # NPORTS = 4 # ports 219 # NVI_OFLD = 0 # Offload uses NIC function to access ports 226 # NVI_RDMA = 0 # RDMA uses NIC function to access ports 300 # ports 0-3. [all …]
|
H A D | t6fw_cfg.txt | 32 # 7. Some OS Drivers will manage different ports and functions (NIC, 34 # functions for ports 0-1 on PF0-1, FCoE on PF4, iSCSI on PF5, etc. 41 # in the case where all ports and application functions will be 45 # 2 ports * 151 tp_ntxch = 0 # 0 (auto) = equal number of ports 208 # 4 ports, 3 functions (NIC, FCoE and iSCSI), scaling up to 8 "CPU Queue Sets" 215 # NPORTS = 2 # ports 236 # NVI_OFLD = 0 # Offload uses NIC function to access ports 243 # NVI_RDMA = 0 # RDMA uses NIC function to access ports 317 # ports 0-3. [all …]
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ipclassifier.c | 1539 uint32_t ports; in ipcl_classify_v4() local 1550 ports = *(uint32_t *)up; in ipcl_classify_v4() 1553 ports, ipst)]; in ipcl_classify_v4() 1558 ipha->ipha_src, ipha->ipha_dst, ports) && in ipcl_classify_v4() 1687 uint32_t ports; in ipcl_classify_v6() local 1699 ports = *(uint32_t *)up; in ipcl_classify_v6() 1703 ports, ipst)]; in ipcl_classify_v6() 1708 ip6h->ip6_src, ip6h->ip6_dst, ports) && in ipcl_classify_v6() 1839 ipcl_classify_raw(mblk_t *mp, uint8_t protocol, uint32_t ports, in ipcl_classify_raw() argument 1849 lport = ((uint16_t *)&ports)[1]; in ipcl_classify_raw() [all …]
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | comconsole.c | 123 bool ports[COM_NPORTS]; in comc_ini() local 131 ports[0] = comc_port_is_present(COM1_IOADDR); in comc_ini() 132 ports[1] = comc_port_is_present(COM2_IOADDR); in comc_ini() 133 ports[2] = comc_port_is_present(COM3_IOADDR); in comc_ini() 134 ports[3] = comc_port_is_present(COM4_IOADDR); in comc_ini() 137 if (ports[i]) in comc_ini() 155 if (!ports[i]) in comc_ini()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | event_port.c | 137 port_sendn(int ports[], int errors[], uint_t nent, int events, void *user) in port_sendn() argument 145 (uintptr_t)ports, (uintptr_t)errors, nent, events, in port_sendn() 159 (uintptr_t)&ports[offset], (uintptr_t)&errors[offset], in port_sendn()
|
/illumos-gate/usr/src/uts/common/io/fcoe/ |
H A D | fcoe.c | 128 static int fcoe_get_port_list(fcoe_port_instance_t *ports, int count); 805 count = fcoe_get_port_list(list->ports, list->numPorts); in fcoe_iocmd() 1281 fcoe_get_port_list(fcoe_port_instance_t *ports, int count) in fcoe_get_port_list() argument 1286 ASSERT(ports != NULL); in fcoe_get_port_list() 1293 ports[i].fpi_pwwn, 8); in fcoe_get_port_list() 1294 ports[i].fpi_mac_linkid = mac->fm_linkid; in fcoe_get_port_list() 1296 ports[i].fpi_mac_current_addr, ETHERADDRL); in fcoe_get_port_list() 1298 ports[i].fpi_mac_factory_addr, ETHERADDRL); in fcoe_get_port_list() 1299 ports[i].fpi_port_type = in fcoe_get_port_list() 1301 ports[i].fpi_mtu_size = in fcoe_get_port_list() [all …]
|
/illumos-gate/usr/src/uts/common/xen/os/ |
H A D | hypercall.c | 350 HYPERVISOR_poll(evtchn_port_t *ports, uint_t nr_ports, uint64_t timeout) in HYPERVISOR_poll() argument 355 set_xen_guest_handle(sched_poll.ports, ports); in HYPERVISOR_poll()
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getaddrinfo.c | 602 struct addrinfo *cur, spinfo_t *ports, uint_t nport, int version) in get_addr() argument 639 canon, &ports[i]); in get_addr() 658 &ports[i]); in get_addr() 761 &ports[j]); in get_addr() 765 &ports[j]); in get_addr()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_intr.c | 257 pmcs_phy_t *pptr = pwp->ports[portid]; in pmcs_kill_port() 277 pptr = pwp->ports[portid]; in pmcs_kill_port() 278 pwp->ports[portid] = NULL; in pmcs_kill_port() 352 rp = pwp->ports[portid]; in pmcs_process_sas_hw_event() 539 pwp->ports[portid] = pptr; in pmcs_process_sas_hw_event() 632 pwp->ports[pptr->portid] = pptr; in pmcs_process_sas_hw_event() 659 pptr = pwp->ports[portid]; in pmcs_process_sas_hw_event() 746 pwp->ports[portid] = pptr; in pmcs_process_sas_hw_event() 897 pptr = pwp->ports[portid]; in pmcs_process_sas_hw_event() 913 pptr = pwp->ports[portid]; in pmcs_process_sas_hw_event() [all …]
|