/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_sport.c | 162 sport->sm.app = sport; in ocs_sport_alloc() 165 sport->enable_rscn = (sport->enable_ini || (sport->enable_tgt && enable_target_rscn(sport->ocs))); in ocs_sport_alloc() 185 domain->sport = sport; in ocs_sport_alloc() 233 if (sport == domain->sport) { in ocs_sport_free() 264 ocs_free(sport->ocs, sport, sizeof(*sport)); in ocs_sport_free() 780 sport->wwpn, sport->wwnn); in __ocs_sport_attached() 786 sport->tgt_id = sport->fc_id; in __ocs_sport_attached() 804 sport->wwpn, sport->wwnn); in __ocs_sport_attached() 974 if (vport->sport == sport) { in ocs_vport_link_down() 1482 if (vport->sport == sport) { in ocs_vport_update_spec() [all …]
|
H A D | ocs_domain.c | 322 ocs_sport_t *sport; in ocs_domain_force_free() local 517 ocs_sport_t *sport; in __ocs_domain_init() local 641 ocs_sport_t *sport; in __ocs_domain_wait_alloc() local 656 sport = domain->sport; in __ocs_domain_wait_alloc() 1318 ocs_sport_t *sport; in ocs_ddump_domain() local 1362 ocs_sport_t *sport; in ocs_mgmt_domain_list() local 1384 sport->mgmt_functions->get_list_handler(textbuf, sport); in ocs_mgmt_domain_list() 1396 ocs_sport_t *sport; in ocs_mgmt_domain_get() local 1469 ocs_sport_t *sport; in ocs_mgmt_domain_get_all() local 1490 sport->mgmt_functions->get_all_handler(textbuf, sport); in ocs_mgmt_domain_get_all() [all …]
|
H A D | ocs_fabric.c | 191 ocs_domain_attach(node->sport->domain, node->sport->p2p_port_id); in __ocs_fabric_flogi_wait_rsp() 221 ocs_sport_t *sport = node->sport; in __ocs_fabric_flogi_wait_rsp() local 232 if (node->sport->topology == OCS_SPORT_TOPOLOGY_P2P && !node->sport->p2p_winner) { in __ocs_fabric_flogi_wait_rsp() 240 sport->display_name); in __ocs_fabric_flogi_wait_rsp() 1350 ocs_sport_t *sport = node->sport; in __ocs_p2p_wait_domain_attach() local 1358 rnode = ocs_node_find(sport, node->sport->p2p_remote_port_id); in __ocs_p2p_wait_domain_attach() 1366 rnode = ocs_node_alloc(sport, sport->p2p_remote_port_id, FALSE, FALSE); in __ocs_p2p_wait_domain_attach() 1852 ocs_sport_t *sport = node->sport; in ocs_process_gidpt_payload() local 1877 ocs_sport_lock(sport); in ocs_process_gidpt_payload() 1971 ocs_sport_unlock(sport); in ocs_process_gidpt_payload() [all …]
|
H A D | ocs_sport.h | 44 extern void ocs_sport_free(ocs_sport_t *sport); 45 extern void ocs_sport_force_free(ocs_sport_t *sport); 48 ocs_sport_lock_init(ocs_sport_t *sport) in ocs_sport_lock_init() argument 53 ocs_sport_lock_free(ocs_sport_t *sport) in ocs_sport_lock_free() argument 58 ocs_sport_lock_try(ocs_sport_t *sport) in ocs_sport_lock_try() argument 61 return ocs_device_lock_try(sport->ocs); in ocs_sport_lock_try() 65 ocs_sport_lock(ocs_sport_t *sport) in ocs_sport_lock() argument 68 ocs_device_lock(sport->ocs); in ocs_sport_lock() 72 ocs_sport_unlock(ocs_sport_t *sport) in ocs_sport_unlock() argument 75 ocs_device_unlock(sport->ocs); in ocs_sport_unlock() [all …]
|
H A D | ocs_node.c | 187 ocs_sport_lock(sport); in ocs_node_find() 209 ocs_sport_lock(sport); in ocs_node_find_wwpn() 405 node->sport = sport; in ocs_node_alloc() 406 ocs_sport_lock(sport); in ocs_node_alloc() 465 ocs_sport_t *sport; in ocs_node_free() local 475 sport = node->sport; in ocs_node_free() 476 ocs_assert(sport, -1); in ocs_node_free() 533 node->sport = NULL; in ocs_node_free() 625 ocs_sport_t *sport = node->sport; in ocs_node_attach() local 709 ocs_sport_t *sport = node->sport; in ocs_node_update_display_name() local [all …]
|
H A D | ocs_device.c | 127 if (node->sport->enable_tgt) { in __ocs_d_initiate_shutdown() 140 if (node->sport->enable_ini) { in __ocs_d_initiate_shutdown() 153 if (node->sport->enable_tgt) { in __ocs_d_initiate_shutdown() 162 if (node->sport->enable_ini) { in __ocs_d_initiate_shutdown() 772 if (node->sport->enable_ini && node->sport->domain->attached) { in __ocs_d_init() 778 node->sport->enable_ini, node->sport->domain->attached); in __ocs_d_init() 801 switch (node->sport->topology) { in __ocs_d_init() 829 node->sport->topology); in __ocs_d_init() 1454 if (node->sport->enable_tgt) { in __ocs_d_port_logged_in() 1619 if (node->sport->enable_tgt) in __ocs_d_device_ready() [all …]
|
H A D | ocs_node.h | 183 if (node->sport->enable_ini) retval |= (1U << 3); in ocs_node_get_enable() 184 if (node->sport->enable_tgt) retval |= (1U << 2); in ocs_node_get_enable() 196 extern ocs_node_t *ocs_node_find(ocs_sport_t *sport, uint32_t port_id); 197 extern ocs_node_t *ocs_node_find_wwpn(ocs_sport_t *sport, uint64_t wwpn); 199 extern ocs_node_t *ocs_node_alloc(ocs_sport_t *sport, uint32_t port_id, uint8_t init, uint8_t targ);
|
H A D | ocs_common.h | 130 ocs_sport_t *sport; /*<< pointer to sport */ member 254 …ocs_sli_port_t *sport; /**< Pointer to first (physical) SLI port (also at the head of sport_list)… member 281 ocs_sli_port_t *sport; /**< associated SLI port */ member 325 ocs_sport_t *sport; member 413 ocs_sport_t *sport; /**< Used to match record after attaching for update */ member
|
H A D | ocs_els.c | 675 ocs_assert(node->sport, NULL); in ocs_send_flogi() 929 logo->port_id = fc_htobe24(node->rnode.sport->fc_id); in ocs_send_logo() 964 ocs_sport_t *sport = node->sport; in ocs_send_adisc() local 989 adisc->hard_address = fc_htobe24(sport->fc_id); in ocs_send_adisc() 994 adisc->port_id = fc_htobe24(node->rnode.sport->fc_id); in ocs_send_adisc() 1394 io->iparam.els_sid.s_id = io->node->sport->fc_id; in ocs_send_flogi_acc() 1680 adisc->port_id = fc_htobe24(node->rnode.sport->fc_id); in ocs_send_adisc_acc() 1733 rftid->port_id = ocs_htobe32(node->rnode.sport->fc_id); in ocs_ns_send_rftid() 1787 if (node->sport->enable_ini) { in ocs_ns_send_rffid() 1790 if (node->sport->enable_tgt) { in ocs_ns_send_rffid() [all …]
|
H A D | ocs_scsi.h | 285 extern int32_t ocs_scsi_tgt_new_sport(ocs_sport_t *sport); 286 extern void ocs_scsi_tgt_del_sport(ocs_sport_t *sport); 287 extern void ocs_scsi_sport_deleted(ocs_sport_t *sport); 336 extern int32_t ocs_scsi_ini_new_sport(ocs_sport_t *sport); 337 extern void ocs_scsi_ini_del_sport(ocs_sport_t *sport); 426 ocs_scsi_notify_sport_force_free(ocs_sport_t *sport) in ocs_scsi_notify_sport_force_free() argument
|
/freebsd/tests/sys/netinet/libalias/ |
H A D | 2_natout.c | 134 uint16_t sport = 0x1234; variable 147 ATF_CHECK(aport != sport); 176 uint16_t sport = 0x1234; variable 189 ATF_CHECK(aport == sport); 206 uint16_t sport = 0x1234; variable 221 ATF_CHECK(aport == sport); 255 uint16_t sport, dport, aport; member 287 batch[i].src, batch[i].sport, 314 uint16_t sport = 0x1234; variable 342 sport++; [all …]
|
H A D | perf.c | 74 uint16_t sport, dport, aport; in main() member 123 int sport = htons(rand_range(1000, 2000)); in main() local 127 LibAliasRedirectPort(la, prv2, sport, ANY_ADDR, 0, masq, aport, IPPROTO_UDP); in main() 152 batch[i].sport = rand_range(1000, 60000); in main() 157 u = set_udp(p, batch[i].sport, batch[i].dport); in main() 245 u->uh_dport == htons(batch[k].sport) && in main() 254 u = set_udp(p, batch[k].sport, batch[k].dport); in main()
|
/freebsd/contrib/tcpdump/ |
H A D | print-udp.c | 326 if (sport == -1) { in udpipaddr_print() 338 if (sport != -1) { in udpipaddr_print() 346 if (sport == -1) { in udpipaddr_print() 358 if (sport != -1) { in udpipaddr_print() 375 uint16_t sport, dport; in udp_print() local 391 sport = GET_BE_U_2(up->uh_sport); in udp_print() 395 udpipaddr_print(ndo, ip, sport, dport); in udp_print() 522 udpipaddr_print(ndo, ip, sport, dport); in udp_print() 638 else if ((sport >= RX_PORT_LOW && sport <= RX_PORT_HIGH) || in udp_print() 677 else if (sport == BCM_LI_PORT) in udp_print() [all …]
|
H A D | print-tcp.c | 171 uint16_t sport, dport, win, urp; in tcp_print() local 201 sport = GET_BE_U_2(tp->th_sport); in tcp_print() 208 tcpport_string(ndo, sport), in tcp_print() 219 tcpport_string(ndo, sport), in tcp_print() 272 if (sport > dport) in tcp_print() 274 else if (sport == dport) { in tcp_print() 281 tha.port = ((u_int)dport) << 16 | sport; in tcp_print() 285 tha.port = ((u_int)sport) << 16 | dport; in tcp_print() 326 if (sport > dport) in tcp_print() 328 else if (sport == dport) { in tcp_print() [all …]
|
/freebsd/sys/dev/bhnd/bcma/ |
H A D | bcma_subr.c | 113 bcma_free_sport(sport); in bcma_free_corecfg() 117 bcma_free_sport(sport); in bcma_free_corecfg() 121 bcma_free_sport(sport); in bcma_free_corecfg() 513 struct bcma_sport *sport; in bcma_alloc_sport() local 516 if (sport == NULL) in bcma_alloc_sport() 519 sport->sp_num = port_num; in bcma_alloc_sport() 520 sport->sp_type = port_type; in bcma_alloc_sport() 521 sport->sp_num_maps = 0; in bcma_alloc_sport() 522 STAILQ_INIT(&sport->sp_maps); in bcma_alloc_sport() 524 return sport; in bcma_alloc_sport() [all …]
|
/freebsd/tests/sys/netinet6/frag6/ |
H A D | frag6_14.py | 73 sp.UDP(dport=3456, sport=6543) / \ 79 sp.UDP(dport=3456, sport=6543) / \ 85 sp.UDP(dport=3456, sport=6543) / \ 91 sp.UDP(dport=3456, sport=6543) / \ 119 sp.UDP(dport=3456, sport=6543) / \ 125 sp.UDP(dport=3456, sport=6543) / \
|
H A D | frag6_13.py | 74 sp.UDP(dport=3456, sport=6543) / \ 81 sp.UDP(dport=3456, sport=6543) / \ 103 sp.UDP(dport=3456, sport=6543) / \ 110 sp.UDP(dport=3456, sport=6543) / \
|
H A D | frag6_20.py | 103 sp.UDP(dport=3456, sport=6543) / \ 110 sp.UDP(dport=3456, sport=6543) / \ 119 sp.UDP(dport=3456, sport=6543) / \
|
/freebsd/crypto/heimdal/lib/ipc/ |
H A D | client.c | 62 mach_port_t sport; in mach_init() local 76 mach_port_destroy(mach_task_self(), sport); in mach_init() 80 ipc->server = sport; in mach_init() 112 __block mach_port_t sport; in mach_ipc() local 114 dispatch_sync(syncq, ^{ sport = ipc->server; }); in mach_ipc() 116 ret = mheim_ipc_call(sport, in mach_ipc() 130 if (sport != ipc->server) { in mach_ipc() 272 __block mach_port_t sport; in mach_async() local 274 dispatch_sync(syncq, ^{ sport = ipc->server; }); in mach_async() 276 ret = mheim_ipc_call_request(sport, c->mp, in mach_async() [all …]
|
/freebsd/sys/netinet/libalias/ |
H A D | alias_smedia.c | 137 if (ah->dport != NULL && ah->aport != NULL && ah->sport != NULL && in fingerprint() 140 if (ah->dport == NULL || ah->sport == NULL || ah->lnk == NULL || in fingerprint() 144 || ntohs(*ah->sport) == RTSP_CONTROL_PORT_NUMBER_1 in fingerprint() 146 || ntohs(*ah->sport) == RTSP_CONTROL_PORT_NUMBER_2) in fingerprint() 156 *ah->sport, *ah->aport, IPPROTO_UDP); in protohandler() 240 u_short sport, eport, base_port; in alias_rtsp_out() local 275 sport = eport = 0; in alias_rtsp_out() 299 sport = htons(p[0]); in alias_rtsp_out() 313 sport, 0, in alias_rtsp_out()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_lb.c | 164 src->port[0], src->port[1], sport)) in pf_match_translation() 242 key.port[1] = sport; in pf_get_sport() 244 *nport = sport; in pf_get_sport() 255 key.port[1] = sport; in pf_get_sport() 257 *nport = sport; in pf_get_sport() 595 sport, daddr, dport, PF_RULESET_BINAT, anchor_stack); in pf_get_translation() 598 saddr, sport, daddr, dport, PF_RULESET_NAT, in pf_get_translation() 602 sport, daddr, dport, PF_RULESET_RDR, anchor_stack); in pf_get_translation() 605 saddr, sport, daddr, dport, PF_RULESET_BINAT, in pf_get_translation() 619 *skp = pf_state_key_setup(pd, saddr, daddr, sport, dport); in pf_get_translation() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | ip.c | 280 sport = dport = 0; in FilterCheck() 309 sport = dport = 0; in FilterCheck() 316 sport = ih->icmp_type; in FilterCheck() 318 snprintf(dbuff, sizeof dbuff, "sport = %d", sport); in FilterCheck() 325 sport = ih6->icmp6_type; in FilterCheck() 354 sport = ntohs(uh->uh_sport); in FilterCheck() 358 sport, dport); in FilterCheck() 372 sport = ntohs(th->th_sport); in FilterCheck() 381 th->th_flags, sport, dport); in FilterCheck() 430 PortMatch(fp->f_srcop, sport, fp->f_srcport)) && in FilterCheck() [all …]
|
/freebsd/contrib/netbsd-tests/ipf/expected/ |
H A D | i22 | 4 block in exp { "udp.sport = 53; udp.dport = 53;" } 5 pass out exp { "tcp.sport = 22; tcp.port = 25;" }
|
/freebsd/contrib/netbsd-tests/ipf/regress/ |
H A D | i22 | 4 block in exp { "udp.sport=53;udp.dport=53;" } 5 pass out exp { "tcp.sport=22; tcp.port=25;" }
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_nat6.c | 464 sport = fin->fin_data[1]; in ipf_nat6_newmap() 593 port = ntohs(sport); in ipf_nat6_newmap() 644 port = sport; in ipf_nat6_newmap() 691 nat->nat_osport = sport; in ipf_nat6_newmap() 742 sport = 0; in ipf_nat6_newrdr() 895 nat->nat_osport = sport; in ipf_nat6_newrdr() 896 nat->nat_nsport = sport; in ipf_nat6_newrdr() 1871 u_short sport, dport; in ipf_nat6_inlookup() local 1882 sport = 0; in ipf_nat6_inlookup() 2194 u_short sport, dport; in ipf_nat6_outlookup() local [all …]
|