Symbol: ports
crypto/heimdal/kdc/connect.c
338
ports[i].family, ports[i].type, ports[i].port);
crypto/heimdal/kdc/connect.c
348
ntohs(ports[i].port),
crypto/heimdal/kdc/connect.c
349
(ports[i].type == SOCK_STREAM) ? "tcp" : "udp");
crypto/heimdal/kdc/connect.c
62
static struct port_desc *ports;
crypto/heimdal/kdc/connect.c
83
if(ports[i].type == type
crypto/heimdal/kdc/connect.c
84
&& ports[i].port == port
crypto/heimdal/kdc/connect.c
85
&& ports[i].family == family)
crypto/heimdal/kdc/connect.c
88
ports = realloc(ports, (num_ports + 1) * sizeof(*ports));
crypto/heimdal/kdc/connect.c
89
if (ports == NULL)
crypto/heimdal/kdc/connect.c
91
ports[num_ports].family = family;
crypto/heimdal/kdc/connect.c
92
ports[num_ports].type = type;
crypto/heimdal/kdc/connect.c
93
ports[num_ports].port = port;
crypto/openssh/servconf.c
1434
options->ports[options->num_ports++] = a2port(arg);
crypto/openssh/servconf.c
1435
if (options->ports[options->num_ports-1] <= 0)
crypto/openssh/servconf.c
3231
printf("port %d\n", o->ports[i]);
crypto/openssh/servconf.c
331
options->ports[options->num_ports++] = SSH_DEFAULT_PORT;
crypto/openssh/servconf.c
844
options->ports[i]);
crypto/openssh/servconf.c
961
options->ports[options->num_ports++] = SSH_DEFAULT_PORT;
crypto/openssh/servconf.h
88
int ports[MAX_PORTS]; /* Port number to listen on. */
crypto/openssh/sshd-auth.c
546
options.ports[options.num_ports++] = a2port(optarg);
crypto/openssh/sshd-auth.c
547
if (options.ports[options.num_ports-1] <= 0) {
crypto/openssh/sshd-session.c
938
options.ports[options.num_ports++] = a2port(optarg);
crypto/openssh/sshd-session.c
939
if (options.ports[options.num_ports-1] <= 0) {
crypto/openssh/sshd.c
1470
options.ports[options.num_ports++] = a2port(optarg);
crypto/openssh/sshd.c
1471
if (options.ports[options.num_ports-1] <= 0) {
lib/libpfctl/libpfctl.c
643
uint64_t ports[2];
lib/libpfctl/libpfctl.c
647
ports[0] = addr->port[0];
lib/libpfctl/libpfctl.c
648
ports[1] = addr->port[1];
lib/libpfctl/libpfctl.c
649
nvlist_add_number_array(nvl, "port", ports, 2);
sbin/ifconfig/iflagg.c
215
struct lagg_reqport *ports;
sbin/ifconfig/iflagg.c
226
ports = ra->ra_port;
sbin/ifconfig/iflagg.c
273
lp = &ports[i].rp_lacpreq;
sbin/ifconfig/iflagg.c
274
printf("\tlaggport: %s ", ports[i].rp_portname);
sbin/ifconfig/iflagg.c
275
printb("flags", ports[i].rp_flags, LAGG_PORT_BITS);
sbin/ipf/ipnat/ipnat_y.y
288
mapblockit ifnames addr tlate addr ports mapoptions
sbin/ipf/ipnat/ipnat_y.y
753
ports: | IPNY_PORTS YY_NUMBER { nat->in_spmin = $2; }
sbin/ipfw/ipfw2.c
1088
uint16_t a, b, *p = cmd->ports;
sbin/ipfw/ipfw2.c
2120
insntoc(cmd, u16)->ports[0]);
sbin/ipfw/ipfw2.c
4406
insntod(action, u16)->ports[0] = mtu;
sbin/ipfw/ipfw2.c
995
const uint16_t *p = cmd->ports;
sys/arm/nvidia/tegra_pcie.c
1063
sc->ports[sc->num_ports++] = port;
sys/arm/nvidia/tegra_pcie.c
1163
port = sc->ports[port_num];
sys/arm/nvidia/tegra_pcie.c
1206
port = sc->ports[port_num];
sys/arm/nvidia/tegra_pcie.c
1284
if ((sc->ports[i] != NULL))
sys/arm/nvidia/tegra_pcie.c
1286
~AFI_PCIE_CONFIG_PCIE_DISABLE(sc->ports[i]->port_idx);
sys/arm/nvidia/tegra_pcie.c
1296
if (sc->ports[i] != NULL) {
sys/arm/nvidia/tegra_pcie.c
1297
rv = phy_enable(sc->ports[i]->phy);
sys/arm/nvidia/tegra_pcie.c
1301
sc->ports[i]->port_idx);
sys/arm/nvidia/tegra_pcie.c
1495
if (sc->ports[i] == NULL)
sys/arm/nvidia/tegra_pcie.c
1497
port = sc->ports[i];
sys/arm/nvidia/tegra_pcie.c
1553
if (sc->ports[i] == NULL)
sys/arm/nvidia/tegra_pcie.c
1555
if (sc->ports[i]->enabled)
sys/arm/nvidia/tegra_pcie.c
362
struct tegra_pcib_port *ports[TEGRA_PCIB_MAX_PORTS];
sys/arm/nvidia/tegra_pcie.c
430
if ((sc->ports[i] != NULL) &&
sys/arm/nvidia/tegra_pcie.c
431
(sc->ports[i]->port_idx == slot)) {
sys/arm/nvidia/tegra_pcie.c
432
hndl = sc->ports[i]->cfg_handle;
sys/arm/nvidia/tegra_pcie.c
479
if ((sc->ports[i] != NULL) &&
sys/arm/nvidia/tegra_pcie.c
480
(sc->ports[i]->port_idx == slot)) {
sys/arm/nvidia/tegra_pcie.c
481
hndl = sc->ports[i]->cfg_handle;
sys/arm/ti/cpsw/if_cpsw.c
2500
cpsw_ale_update_vlan_table(struct cpsw_softc *sc, int vlan, int ports,
sys/arm/ti/cpsw/if_cpsw.c
2528
(mcunregflood & 7) << 8 | (ports & 7);
sys/cam/ctl/ctl_frontend_ioctl.c
119
TAILQ_INIT(&isoftc->ports);
sys/cam/ctl/ctl_frontend_ioctl.c
138
TAILQ_INSERT_TAIL(&isoftc->ports, cfi, link);
sys/cam/ctl/ctl_frontend_ioctl.c
150
TAILQ_FOREACH_SAFE(cfi, &isoftc->ports, link, temp) {
sys/cam/ctl/ctl_frontend_ioctl.c
160
TAILQ_REMOVE(&isoftc->ports, cfi, link);
sys/cam/ctl/ctl_frontend_ioctl.c
188
TAILQ_FOREACH(cfi, &isoftc->ports, link) {
sys/cam/ctl/ctl_frontend_ioctl.c
200
TAILQ_FOREACH(cfi, &isoftc->ports, link) {
sys/cam/ctl/ctl_frontend_ioctl.c
252
TAILQ_INSERT_TAIL(&isoftc->ports, cfi, link);
sys/cam/ctl/ctl_frontend_ioctl.c
274
TAILQ_FOREACH(cfi, &isoftc->ports, link) {
sys/cam/ctl/ctl_frontend_ioctl.c
297
TAILQ_REMOVE(&isoftc->ports, cfi, link);
sys/cam/ctl/ctl_frontend_ioctl.c
599
? TAILQ_FIRST(&cfi_softc.ports)
sys/cam/ctl/ctl_frontend_ioctl.c
81
TAILQ_HEAD(, cfi_port) ports;
sys/dev/bhnd/bcma/bcma.c
486
struct bcma_sport_list *ports;
sys/dev/bhnd/bcma/bcma.c
495
ports = bcma_corecfg_get_port_list(dinfo->corecfg, type);
sys/dev/bhnd/bcma/bcma.c
497
STAILQ_FOREACH(port, ports, sp_link) {
sys/dev/bhnd/bcma/bcma.c
512
struct bcma_sport_list *ports;
sys/dev/bhnd/bcma/bcma.c
516
ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type);
sys/dev/bhnd/bcma/bcma.c
518
STAILQ_FOREACH(port, ports, sp_link) {
sys/dev/bhnd/bcma/bcma.c
536
struct bcma_sport_list *ports;
sys/dev/bhnd/bcma/bcma.c
554
ports = bcma_corecfg_get_port_list(dinfo->corecfg, types[i]);
sys/dev/bhnd/bcma/bcma.c
556
STAILQ_FOREACH(port, ports, sp_link) {
sys/dev/bhnd/bcma/bcma.c
578
struct bcma_sport_list *ports;
sys/dev/bhnd/bcma/bcma.c
582
ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type);
sys/dev/bhnd/bcma/bcma.c
585
STAILQ_FOREACH(port, ports, sp_link) {
sys/dev/bhnd/bcma/bcma_subr.c
161
struct bcma_sport_list *ports)
sys/dev/bhnd/bcma/bcma_subr.c
167
STAILQ_FOREACH(port, ports, sp_link) {
sys/dev/bhnd/bhndb/bhndb.c
367
pp = &hp->ports[i];
sys/dev/bhnd/bhndb/bhndb.h
185
const struct bhndb_port_priority *ports; /**< port priorities */
sys/dev/bhnd/bhndb/bhndb_hwdata.c
47
.ports = _BHNDB_PORT_ARRAY(__VA_ARGS__), \
sys/dev/bhnd/bhndb/bhndb_subr.c
1617
for (hp = table; hp->ports != NULL; hp++) {
sys/dev/bhnd/bhndb/bhndb_subr.c
1646
const struct bhndb_port_priority *pp = &hp->ports[i];
sys/dev/cxgb/common/cxgb_common.h
735
void t3_set_vlan_accel(adapter_t *adapter, unsigned int ports, int on);
sys/dev/cxgb/common/cxgb_t3_hw.c
1715
void t3_set_vlan_accel(adapter_t *adapter, unsigned int ports, int on)
sys/dev/cxgb/common/cxgb_t3_hw.c
1718
ports << S_VLANEXTRACTIONENABLE,
sys/dev/cxgb/common/cxgb_t3_hw.c
1719
on ? (ports << S_VLANEXTRACTIONENABLE) : 0);
sys/dev/cxgb/cxgb_main.c
361
const char *ports;
sys/dev/cxgb/cxgb_main.c
370
ports = "port";
sys/dev/cxgb/cxgb_main.c
372
ports = "ports";
sys/dev/cxgb/cxgb_main.c
374
device_set_descf(dev, "%s, %d %s", ai->desc, nports, ports);
sys/dev/cxgbe/crypto/t4_crypto.c
183
struct ccr_port ports[MAX_NPORTS];
sys/dev/cxgbe/crypto/t4_crypto.c
1901
for (i = 0; i < nitems(sc->ports); i++) {
sys/dev/cxgbe/crypto/t4_crypto.c
1902
if (sc->ports[i].rxq == NULL)
sys/dev/cxgbe/crypto/t4_crypto.c
1914
CTLFLAG_RD, &sc->ports[i].active_sessions, 0,
sys/dev/cxgbe/crypto/t4_crypto.c
1917
CTLFLAG_RD, &sc->ports[i].stats_queued, "Requests queued");
sys/dev/cxgbe/crypto/t4_crypto.c
1919
CTLFLAG_RD, &sc->ports[i].stats_completed,
sys/dev/cxgbe/crypto/t4_crypto.c
1930
sc->ports[port].txq = &sc->adapter->sge.ctrlq[port];
sys/dev/cxgbe/crypto/t4_crypto.c
1931
sc->ports[port].rxq = &sc->adapter->sge.rxq[pi->vi->first_rxq];
sys/dev/cxgbe/crypto/t4_crypto.c
1932
sc->ports[port].rx_channel_id = pi->rx_chan;
sys/dev/cxgbe/crypto/t4_crypto.c
1933
sc->ports[port].tx_channel_id = pi->tx_chan;
sys/dev/cxgbe/crypto/t4_crypto.c
1934
sc->ports[port].stats_queued = counter_u64_alloc(M_WAITOK);
sys/dev/cxgbe/crypto/t4_crypto.c
1935
sc->ports[port].stats_completed = counter_u64_alloc(M_WAITOK);
sys/dev/cxgbe/crypto/t4_crypto.c
2009
counter_u64_free(sc->ports[port].stats_queued);
sys/dev/cxgbe/crypto/t4_crypto.c
2010
counter_u64_free(sc->ports[port].stats_completed);
sys/dev/cxgbe/crypto/t4_crypto.c
2285
for (i = 0; i < nitems(sc->ports); i++) {
sys/dev/cxgbe/crypto/t4_crypto.c
2286
p = &sc->ports[i];
sys/dev/etherswitch/ar40xx/ar40xx_hw_vtu.c
159
ar40xx_hw_vtu_get_vlan(struct ar40xx_softc *sc, int vid, uint32_t *ports,
sys/dev/etherswitch/ar40xx/ar40xx_hw_vtu.c
181
*ports = 0;
sys/dev/etherswitch/ar40xx/ar40xx_hw_vtu.c
187
*ports |= (1 << i);
sys/dev/etherswitch/ar40xx/ar40xx_hw_vtu.c
189
*ports |= (1 << i);
sys/dev/etherswitch/ar40xx/ar40xx_hw_vtu.h
36
uint32_t *ports, uint32_t *untagged_ports);
sys/dev/etherswitch/arswitch/arswitch_8327.c
1188
ar8327_get_dot1q_vlan(struct arswitch_softc *sc, uint32_t *ports,
sys/dev/etherswitch/arswitch/arswitch_8327.c
1212
*ports = 0;
sys/dev/etherswitch/arswitch/arswitch_8327.c
1218
*ports |= (1 << i);
sys/dev/etherswitch/arswitch/arswitch_8327.c
1220
*ports |= (1 << i);
sys/dev/etherswitch/arswitch/arswitch_8327.c
1229
ar8327_set_dot1q_vlan(struct arswitch_softc *sc, uint32_t ports,
sys/dev/etherswitch/arswitch/arswitch_8327.c
1242
ports,
sys/dev/etherswitch/arswitch/arswitch_8327.c
1252
if ((ports & BIT(i)) == 0)
sys/dev/etherswitch/arswitch/arswitch_8327.c
765
int ports;
sys/dev/etherswitch/arswitch/arswitch_8327.c
768
ports = 0x7f;
sys/dev/etherswitch/arswitch/arswitch_8327.c
802
t |= (ports & ~(1 << port));
sys/dev/etherswitch/arswitch/arswitch_8327.c
869
int ports;
sys/dev/etherswitch/arswitch/arswitch_8327.c
896
ports = 0x7f;
sys/dev/etherswitch/arswitch/arswitch_8327.c
931
t = (ports & ~(1 << i)); /* all ports besides us */
sys/dev/etherswitch/arswitch/arswitch_8327.c
956
sc->hal.arswitch_set_dot1q_vlan(sc, ports, ports, sc->vid[0]);
sys/dev/etherswitch/arswitch/arswitch_8327.c
964
ar8327_vlan_get_port(struct arswitch_softc *sc, uint32_t *ports, int vid)
sys/dev/etherswitch/arswitch/arswitch_8327.c
974
*ports = reg & 0x7f;
sys/dev/etherswitch/arswitch/arswitch_8327.c
979
ar8327_vlan_set_port(struct arswitch_softc *sc, uint32_t ports, int vid)
sys/dev/etherswitch/arswitch/arswitch_8327.c
990
(ports & 0x7f));
sys/dev/etherswitch/arswitch/arswitch_vlans.c
105
ar8xxx_get_dot1q_vlan(struct arswitch_softc *sc, uint32_t *ports,
sys/dev/etherswitch/arswitch/arswitch_vlans.c
118
*ports = 0;
sys/dev/etherswitch/arswitch/arswitch_vlans.c
122
*ports = reg;
sys/dev/etherswitch/arswitch/arswitch_vlans.c
128
ar8xxx_set_dot1q_vlan(struct arswitch_softc *sc, uint32_t ports,
sys/dev/etherswitch/arswitch/arswitch_vlans.c
134
err = ar8xxx_vlan_op(sc, AR8X16_VLAN_OP_LOAD, vid, ports);
sys/dev/etherswitch/arswitch/arswitch_vlans.c
141
ar8xxx_get_port_vlan(struct arswitch_softc *sc, uint32_t *ports, int vid)
sys/dev/etherswitch/arswitch/arswitch_vlans.c
150
*ports = (reg >> AR8X16_PORT_VLAN_DEST_PORTS_SHIFT);
sys/dev/etherswitch/arswitch/arswitch_vlans.c
151
*ports &= AR8X16_VLAN_MEMBER;
sys/dev/etherswitch/arswitch/arswitch_vlans.c
156
ar8xxx_set_port_vlan(struct arswitch_softc *sc, uint32_t ports, int vid)
sys/dev/etherswitch/arswitch/arswitch_vlans.c
165
(ports & AR8X16_VLAN_MEMBER) << AR8X16_PORT_VLAN_DEST_PORTS_SHIFT);
sys/dev/etherswitch/arswitch/arswitch_vlans.c
177
uint32_t ports;
sys/dev/etherswitch/arswitch/arswitch_vlans.c
207
ports = 0;
sys/dev/etherswitch/arswitch/arswitch_vlans.c
225
ports = 0;
sys/dev/etherswitch/arswitch/arswitch_vlans.c
227
ports |= (1 << i);
sys/dev/etherswitch/arswitch/arswitch_vlans.c
228
sc->hal.arswitch_set_dot1q_vlan(sc, ports, sc->vid[0], sc->vid[0]);
sys/dev/etherswitch/arswitch/arswitch_vlans.c
234
ports = 0;
sys/dev/etherswitch/arswitch/arswitch_vlans.c
236
ports |= (1 << j);
sys/dev/etherswitch/arswitch/arswitch_vlans.c
242
ports << AR8X16_PORT_VLAN_DEST_PORTS_SHIFT |
sys/dev/etherswitch/arswitch/arswitch_vlans.h
40
int ar8xxx_get_dot1q_vlan(struct arswitch_softc *sc, uint32_t *ports,
sys/dev/etherswitch/arswitch/arswitch_vlans.h
42
int ar8xxx_set_dot1q_vlan(struct arswitch_softc *sc, uint32_t ports,
sys/dev/etherswitch/arswitch/arswitch_vlans.h
44
int ar8xxx_get_port_vlan(struct arswitch_softc *sc, uint32_t *ports, int vid);
sys/dev/etherswitch/arswitch/arswitch_vlans.h
45
int ar8xxx_set_port_vlan(struct arswitch_softc *sc, uint32_t ports, int vid);
sys/dev/etherswitch/arswitch/arswitchvar.h
131
uint32_t *ports, uint32_t *untagged_ports, int vid);
sys/dev/etherswitch/arswitch/arswitchvar.h
133
uint32_t ports, uint32_t untagged_ports, int vid);
sys/dev/etherswitch/arswitch/arswitchvar.h
135
uint32_t *ports, int vid);
sys/dev/etherswitch/arswitch/arswitchvar.h
137
uint32_t ports, int vid);
sys/dev/etherswitch/e6000sw/e6000sw.c
533
phandle_t child, ports;
sys/dev/etherswitch/e6000sw/e6000sw.c
565
ports = ofw_bus_find_child(sc->node, "ports");
sys/dev/etherswitch/e6000sw/e6000sw.c
566
if (ports == 0) {
sys/dev/etherswitch/e6000sw/e6000sw.c
573
for (child = OF_child(ports); child != 0; child = OF_peer(child)) {
sys/dev/etherswitch/e6000sw/e6060sw.c
651
uint32_t ports;
sys/dev/etherswitch/e6000sw/e6060sw.c
658
ports = (1 << (sc->numports + 1)) - 1;
sys/dev/etherswitch/e6000sw/e6060sw.c
659
ports &= ~(1 << i);
sys/dev/etherswitch/e6000sw/e6060sw.c
667
data |= ports;
sys/dev/etherswitch/felix/felix.c
1004
return (device_get_softc(sc->ports[port].miibus));
sys/dev/etherswitch/felix/felix.c
187
sc->ports[port].cpu_port = false;
sys/dev/etherswitch/felix/felix.c
189
sc->ports[port].cpu_port = true;
sys/dev/etherswitch/felix/felix.c
193
sc->ports[port].fixed_port = false;
sys/dev/etherswitch/felix/felix.c
197
sc->ports[port].fixed_port = true;
sys/dev/etherswitch/felix/felix.c
231
sc->ports[port].fixed_link_status = status;
sys/dev/etherswitch/felix/felix.c
242
sc->ports[port].ifp = if_alloc(IFT_ETHER);
sys/dev/etherswitch/felix/felix.c
243
if_setsoftc(sc->ports[port].ifp, sc);
sys/dev/etherswitch/felix/felix.c
244
if_setflags(sc->ports[port].ifp, IFF_UP | IFF_BROADCAST | IFF_MULTICAST |
sys/dev/etherswitch/felix/felix.c
246
sc->ports[port].ifname = malloc(strlen(name) + 1, M_FELIX, M_NOWAIT);
sys/dev/etherswitch/felix/felix.c
247
if (sc->ports[port].ifname == NULL) {
sys/dev/etherswitch/felix/felix.c
248
if_free(sc->ports[port].ifp);
sys/dev/etherswitch/felix/felix.c
252
memcpy(sc->ports[port].ifname, name, strlen(name) + 1);
sys/dev/etherswitch/felix/felix.c
253
if_initname(sc->ports[port].ifp, sc->ports[port].ifname, port);
sys/dev/etherswitch/felix/felix.c
355
phandle_t child, ports, node;
sys/dev/etherswitch/felix/felix.c
392
ports = ofw_bus_find_child(node, "ports");
sys/dev/etherswitch/felix/felix.c
393
if (ports == 0) {
sys/dev/etherswitch/felix/felix.c
400
for (child = OF_child(ports); child != 0; child = OF_peer(child)) {
sys/dev/etherswitch/felix/felix.c
416
if (sc->ports[port].fixed_port) {
sys/dev/etherswitch/felix/felix.c
438
sc->ports[port].phyaddr = phy_addr;
sys/dev/etherswitch/felix/felix.c
439
sc->ports[port].miibus = NULL;
sys/dev/etherswitch/felix/felix.c
440
error = mii_attach(dev, &sc->ports[port].miibus, sc->ports[port].ifp,
sys/dev/etherswitch/felix/felix.c
501
if (sc->ports[i].ifp != NULL)
sys/dev/etherswitch/felix/felix.c
502
if_free(sc->ports[i].ifp);
sys/dev/etherswitch/felix/felix.c
503
if (sc->ports[i].ifname != NULL)
sys/dev/etherswitch/felix/felix.c
504
free(sc->ports[i].ifname, M_FELIX);
sys/dev/etherswitch/felix/felix.c
673
if (sc->ports[p->es_port].fixed_port) {
sys/dev/etherswitch/felix/felix.c
677
ifmr->ifm_active = sc->ports[p->es_port].fixed_link_status;
sys/dev/etherswitch/felix/felix.c
994
return (!sc->ports[port].fixed_port);
sys/dev/etherswitch/felix/felix_var.h
101
struct felix_port ports[FELIX_MAX_PORTS];
sys/dev/etherswitch/ip17x/ip175c.c
100
ports[i] |= (1 << 7);
sys/dev/etherswitch/ip17x/ip175c.c
101
ports[i] &= ~(1 << sc->cpuport);
sys/dev/etherswitch/ip17x/ip175c.c
108
reg[i] = ports[i * 2] << 8 | ports[i * 2 + 1];
sys/dev/etherswitch/ip17x/ip175c.c
152
vlans[v->vlanid & ETHERSWITCH_VID_MASK] = v->ports;
sys/dev/etherswitch/ip17x/ip175c.c
83
uint32_t ports[IP175X_NUM_PORTS], reg[IP175X_NUM_PORTS/2];
sys/dev/etherswitch/ip17x/ip175c.c
90
memset(ports, 0, sizeof(ports));
sys/dev/etherswitch/ip17x/ip175c.c
94
ports[phy] = v->ports;
sys/dev/etherswitch/ip17x/ip175c.c
99
if (ports[i] & (1 << sc->cpuport)) {
sys/dev/etherswitch/ip17x/ip175d.c
101
ports[i] = 0x3f;
sys/dev/etherswitch/ip17x/ip175d.c
106
ports[i] = v->ports;
sys/dev/etherswitch/ip17x/ip175d.c
113
if ((ports[i] & (1 << j)) == 0)
sys/dev/etherswitch/ip17x/ip175d.c
125
ports[2 * i] | (ports[2 * i + 1] << 8));
sys/dev/etherswitch/ip17x/ip175d.c
83
uint32_t ports[IP17X_MAX_VLANS];
sys/dev/etherswitch/ip17x/ip175d.c
92
ports[i] = 0;
sys/dev/etherswitch/ip17x/ip17x_var.h
43
uint32_t ports;
sys/dev/etherswitch/ip17x/ip17x_vlans.c
102
v->ports |= (1 << i);
sys/dev/etherswitch/ip17x/ip17x_vlans.c
126
if ((sc->vlan[vg->es_vlangroup].ports & (1 << i)) == 0)
sys/dev/etherswitch/ip17x/ip17x_vlans.c
171
sc->vlan[vg->es_vlangroup].ports = 0;
sys/dev/etherswitch/ip17x/ip17x_vlans.c
178
sc->vlan[vg->es_vlangroup].ports = 0;
sys/dev/etherswitch/ip17x/ip17x_vlans.c
183
sc->vlan[vg->es_vlangroup].ports |= (1 << phy);
sys/dev/etherswitch/ip17x/ip17x_vlans.c
80
v->ports = (1 << sc->cpuport);
sys/dev/etherswitch/ip17x/ip17x_vlans.c
84
v->ports |= (1 << j);
sys/dev/isci/scil/scic_sds_controller.c
3716
this_controller->oem_parameters.sds1.ports[index].phy_mask = 0;
sys/dev/isci/scil/scic_sds_controller.c
4693
if (scic_parms->sds1.ports[index].phy_mask > SCIC_SDS_PARM_PHY_MASK_MAX)
sys/dev/isci/scil/scic_sds_controller.c
4726
if (scic_parms->sds1.ports[index].phy_mask != 0)
sys/dev/isci/scil/scic_sds_controller.c
4736
combined_phy_mask |= scic_parms->sds1.ports[index].phy_mask;
sys/dev/isci/scil/scic_sds_port_configuration_agent.c
343
phy_mask = controller->oem_parameters.sds1.ports[port_index].phy_mask;
sys/dev/isci/scil/scu_bios_definitions.h
260
} ports[SCI_MAX_PORTS]; // Up to 4 Ports per SCU controller unit
sys/dev/isci/scil/scu_bios_definitions.h
457
} ports[SCI_MAX_PORTS]; // Up to 4 Ports per SCU controller unit
sys/dev/isci/scil/scu_bios_definitions.h
667
} ports[SCI_MAX_PORTS]; // Up to 4 Ports per SCU controller unit
sys/dev/isci/scil/scu_bios_definitions.h
888
} ports[SCI_MAX_PORTS]; // Up to 4 Ports per SCU controller unit
sys/dev/mana/mana.h
484
if_t ports[MAX_PORTS_IN_MANA_DEV];
sys/dev/mana/mana_en.c
3050
err = mana_probe_port(ac, i, &ac->ports[i]);
sys/dev/mana/mana_en.c
3075
ndev = ac->ports[i];
sys/dev/mii/mii_fdt.c
103
phandle_t ports, phynode, child;
sys/dev/mii/mii_fdt.c
117
ports = ofw_bus_find_child(node, "ports");
sys/dev/mii/mii_fdt.c
118
if (ports <= 0)
sys/dev/mii/mii_fdt.c
119
ports = ofw_bus_find_child(node, "ethernet-ports");
sys/dev/mii/mii_fdt.c
120
if (ports <= 0)
sys/dev/mii/mii_fdt.c
123
for (child = OF_child(ports); child != 0; child = OF_peer(child)) {
sys/dev/mlx4/device.h
1469
DECLARE_BITMAP(ports, MLX4_MAX_PORTS);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2006
int min_port = find_first_bit(actv_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2009
bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2012
if (!test_bit(port - 1, actv_ports.ports))
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2071
int min_port = find_first_bit(actv_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2074
bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2078
if (!test_bit(port - 1, actv_ports.ports))
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2768
bitmap_zero(actv_ports.ports, MLX4_MAX_PORTS);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2771
bitmap_fill(actv_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2779
bitmap_set(actv_ports.ports, dev->dev_vfs[vf].min_port - 1,
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2791
unsigned m = bitmap_weight(actv_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2796
n = find_first_bit(actv_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2807
if (test_bit(port - 1, actv_ports.ports))
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2809
find_first_bit(actv_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2829
if (test_bit(port - 1, actv_ports.ports))
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2849
if (bitmap_equal(crit_ports->ports, actv_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2861
int min_port = find_first_bit(actv_ports.ports, dev->caps.num_ports)
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
2864
bitmap_weight(actv_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
3267
int min_port = find_first_bit(actv_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
3270
bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_eq.c
1206
int port = find_first_bit(eq->actv_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_eq.c
1391
return test_bit(port - 1, priv->eq_table.eq[vector].actv_ports.ports);
sys/dev/mlx4/mlx4_core/mlx4_eq.c
1403
priv->eq_table.eq[i].actv_ports.ports);
sys/dev/mlx4/mlx4_core/mlx4_eq.c
1417
return !!(bitmap_weight(priv->eq_table.eq[vector].actv_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_eq.c
1436
priv->eq_table.eq[requested_vector].actv_ports.ports)) {
sys/dev/mlx4/mlx4_core/mlx4_eq.c
1447
test_bit(port - 1, eq->actv_ports.ports)) {
sys/dev/mlx4/mlx4_core/mlx4_eq.c
1460
test_bit(port - 1, eq->actv_ports.ports)) {
sys/dev/mlx4/mlx4_core/mlx4_eq.c
313
port <= 0 || !test_bit(port - 1, actv_ports.ports)) {
sys/dev/mlx4/mlx4_core/mlx4_eq.c
330
port <= 0 || !test_bit(port - 1, actv_ports.ports)) {
sys/dev/mlx4/mlx4_core/mlx4_eq.c
376
port <= 0 || !test_bit(port - 1, actv_ports.ports)) {
sys/dev/mlx4/mlx4_core/mlx4_fw.c
1285
first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_fw.c
1288
bitmap_weight(actv_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_fw.c
1304
field |= bitmap_weight(actv_ports.ports, dev->caps.num_ports) & 0x0F;
sys/dev/mlx4/mlx4_core/mlx4_fw.c
406
find_first_bit(actv_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_fw.c
464
bitmap_weight(actv_ports.ports, dev->caps.num_ports),
sys/dev/mlx4/mlx4_core/mlx4_main.c
2874
bitmap_zero(priv->eq_table.eq[MLX4_EQ_ASYNC].actv_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_main.c
2885
bitmap_fill(priv->eq_table.eq[i].actv_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_main.c
2892
priv->eq_table.eq[i].actv_ports.ports);
sys/dev/mlx4/mlx4_core/mlx4_main.c
2929
bitmap_fill(priv->eq_table.eq[i].actv_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_port.c
1107
max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) +
sys/dev/mlx4/mlx4_core/mlx4_port.c
1108
bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1;
sys/dev/mlx4/mlx4_core/mlx4_port.c
1113
bitmap_zero(exclusive_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1114
set_bit(i - 1, exclusive_ports.ports);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1144
max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) +
sys/dev/mlx4/mlx4_core/mlx4_port.c
1145
bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1;
sys/dev/mlx4/mlx4_core/mlx4_port.c
1150
bitmap_zero(exclusive_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1151
set_bit(i - 1, exclusive_ports.ports);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1217
if (test_bit(i, actv_ports.ports)) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
1233
if (test_bit(i, actv_ports.ports)) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
1797
bitmap_zero(exclusive_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1798
set_bit(i - 1, exclusive_ports.ports);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1818
actv_ports.ports, dev->caps.num_ports) +
sys/dev/mlx4/mlx4_core/mlx4_port.c
1819
bitmap_weight(actv_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_port.c
1826
bitmap_zero(exclusive_ports.ports,
sys/dev/mlx4/mlx4_core/mlx4_port.c
1828
set_bit(i - 1, exclusive_ports.ports);
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
619
if (test_bit(j, actv_ports.ports))
sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
297
const __be16 *ports;
sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
315
ports = (const __be16 *)(skb->data + nhoff + 4 * ip->ihl);
sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
320
src_port = ports[0];
sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
321
dst_port = ports[1];
sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c
2138
if (!test_bit(port - 1, actv_ports.ports))
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
2898
unsigned int ports;
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
2905
ports = bitmap_weight(actv_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
2906
first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports);
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
2908
dm = kcalloc(ports, sizeof(*dm), GFP_ATOMIC);
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
2914
for (i = 0; i < ports; i++) {
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
2931
for (i = 0; i < ports; i++)
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
2936
for (i = 0; i < ports; i++)
sys/dev/mlx4/mlx4_ib/mlx4_ib_sysfs.c
740
if (!test_bit(port - 1, actv_ports.ports))
sys/dev/mlx5/mlx5_ib/mlx5_ib.h
630
struct mlx5_ib_port_resources ports[2];
sys/dev/mlx5/mlx5_ib/mlx5_ib_gsi.c
124
if (port_num > ARRAY_SIZE(dev->devr.ports) || port_num < 1) {
sys/dev/mlx5/mlx5_ib/mlx5_ib_gsi.c
153
if (dev->devr.ports[port_num - 1].gsi) {
sys/dev/mlx5/mlx5_ib/mlx5_ib_gsi.c
191
dev->devr.ports[init_attr->port_num - 1].gsi = gsi;
sys/dev/mlx5/mlx5_ib/mlx5_ib_gsi.c
227
dev->devr.ports[port_num - 1].gsi = NULL;
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
2589
struct mlx5_ib_port_resources *ports =
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
2593
mutex_lock(&ports->devr->mutex);
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
2594
mlx5_ib_gsi_pkey_change(ports->gsi);
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
2595
mutex_unlock(&ports->devr->mutex);
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
2693
schedule_work(&ibdev->devr.ports[port - 1].pkey_change_work);
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
3015
for (port = 0; port < ARRAY_SIZE(devr->ports); ++port) {
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
3016
INIT_WORK(&devr->ports[port].pkey_change_work,
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
3018
devr->ports[port].devr = devr;
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
3060
for (port = 0; port < ARRAY_SIZE(devr->ports); ++port)
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
3061
cancel_work_sync(&devr->ports[port].pkey_change_work);
sys/dev/mvs/mvs_pci.c
110
ctlr->channels = mvs_ids[i].ports;
sys/dev/mvs/mvs_pci.c
59
int ports;
sys/dev/mvs/mvs_soc.c
108
ctlr->channels = mvs_ids[i].ports;
sys/dev/mvs/mvs_soc.c
61
int ports;
sys/dev/netmap/netmap_bdg.h
85
uint64_t ports;
sys/dev/netmap/netmap_vale.c
643
ht[sh].ports = mysrc;
sys/dev/netmap/netmap_vale.c
652
dst = ht[dh].ports;
sys/dev/ofw/ofw_graph.c
49
phandle_t ports, child;
sys/dev/ofw/ofw_graph.c
68
ports = ofw_bus_find_child(node, "ports");
sys/dev/ofw/ofw_graph.c
69
if (ports == 0)
sys/dev/ofw/ofw_graph.c
72
for (child = OF_child(ports); child != 0; child = OF_peer(child)) {
sys/dev/pms/RefTisa/sallsdk/spc/sainit.c
3961
pPort = &(saRoot->ports[i]);
sys/dev/pms/RefTisa/sallsdk/spc/sainit.c
875
pPort = &(saRoot->ports[i]);
sys/dev/pms/RefTisa/sallsdk/spc/satypes.h
222
agsaPort_t ports[AGSA_MAX_VALID_PORTS]; /**< Ports */
sys/dev/puc/puc.c
458
if (cfg->ports == PUC_PORT_1S || cfg->ports == PUC_PORT_1P)
sys/dev/puc/puc_cfg.c
135
if (cfg->ports == PUC_PORT_NONSTANDARD)
sys/dev/puc/puc_cfg.c
139
if (cfg->ports == PUC_PORT_1P ||
sys/dev/puc/puc_cfg.c
140
cfg->ports == PUC_PORT_2P)
sys/dev/puc/puc_cfg.c
146
if (cfg->ports == PUC_PORT_1S1P ||
sys/dev/puc/puc_cfg.c
147
cfg->ports == PUC_PORT_1S2P ||
sys/dev/puc/puc_cfg.c
148
cfg->ports == PUC_PORT_2P)
sys/dev/puc/puc_cfg.c
154
if (cfg->ports == PUC_PORT_1S2P ||
sys/dev/puc/puc_cfg.c
155
cfg->ports == PUC_PORT_2S1P)
sys/dev/puc/puc_cfg.c
161
if (cfg->ports == PUC_PORT_4S1P)
sys/dev/puc/puc_cfg.c
72
switch (cfg->ports) {
sys/dev/puc/puc_cfg.h
79
int8_t ports;
sys/dev/puc/pucdata.c
2077
if (cfg->ports == PUC_PORT_8S) {
sys/dev/puc/pucdata.c
2083
if (cfg->ports == PUC_PORT_8S) {
sys/dev/puc/pucdata.c
2087
if (cfg->ports == PUC_PORT_2S1P) {
sys/dev/puc/pucdata.c
2123
int ports;
sys/dev/puc/pucdata.c
2150
while (subdevs[dev].ports != 0) {
sys/dev/puc/pucdata.c
2154
sc->sc_cfg_data = subdevs[dev].ports;
sys/dev/sfxge/common/ef10_tlv_layout.h
1010
uint16_t ports[];
sys/dev/siis/siis.c
182
ctlr->channels = siis_ids[i].ports;
sys/dev/siis/siis.c
99
int ports;
sys/dev/sound/pci/hdsp-pcm.c
102
if (ports & HDSP_CHAN_9632_ALL) {
sys/dev/sound/pci/hdsp-pcm.c
104
if (ports & HDSP_CHAN_9632_ADAT)
sys/dev/sound/pci/hdsp-pcm.c
1054
if (scp->hc->ports & HDSP_CHAN_9632_ALL)
sys/dev/sound/pci/hdsp-pcm.c
1056
else if (scp->hc->ports & HDSP_CHAN_9652_ALL)
sys/dev/sound/pci/hdsp-pcm.c
106
if (ports & HDSP_CHAN_9632_SPDIF)
sys/dev/sound/pci/hdsp-pcm.c
1067
if (hdsp_port_slot_count_max(scp->hc->ports) > HDSP_MATRIX_MAX)
sys/dev/sound/pci/hdsp-pcm.c
108
if (ports & HDSP_CHAN_9632_LINE)
sys/dev/sound/pci/hdsp-pcm.c
110
if (ports & HDSP_CHAN_9632_EXT)
sys/dev/sound/pci/hdsp-pcm.c
112
} else if ((ports & HDSP_CHAN_9652_ALL) && (speed <= 96000)) {
sys/dev/sound/pci/hdsp-pcm.c
114
if (ports & HDSP_CHAN_9652_ADAT1)
sys/dev/sound/pci/hdsp-pcm.c
116
if (ports & HDSP_CHAN_9652_ADAT2)
sys/dev/sound/pci/hdsp-pcm.c
118
if (ports & HDSP_CHAN_9652_ADAT3)
sys/dev/sound/pci/hdsp-pcm.c
120
if (ports & HDSP_CHAN_9652_SPDIF)
sys/dev/sound/pci/hdsp-pcm.c
183
hdsp_port_first(uint32_t ports)
sys/dev/sound/pci/hdsp-pcm.c
185
return (ports & (~(ports - 1))); /* Extract first bit set. */
sys/dev/sound/pci/hdsp-pcm.c
189
hdsp_port_slot_count(uint32_t ports, uint32_t speed)
sys/dev/sound/pci/hdsp-pcm.c
191
return (hdsp_slot_count(hdsp_port_slot_map(ports, speed)));
sys/dev/sound/pci/hdsp-pcm.c
195
hdsp_port_slot_count_max(uint32_t ports)
sys/dev/sound/pci/hdsp-pcm.c
197
return (hdsp_slot_count(hdsp_port_slot_map(ports, 48000)));
sys/dev/sound/pci/hdsp-pcm.c
203
return (hc->ports & (HDSP_CHAN_9632_ALL | HDSP_CHAN_9652_ALL));
sys/dev/sound/pci/hdsp-pcm.c
209
return (hc->ports & (HDSP_CHAN_9632_ALL | HDSP_CHAN_9652_ALL));
sys/dev/sound/pci/hdsp-pcm.c
267
uint32_t port, ports;
sys/dev/sound/pci/hdsp-pcm.c
273
ports = ch->ports;
sys/dev/sound/pci/hdsp-pcm.c
274
port = hdsp_port_first(ports);
sys/dev/sound/pci/hdsp-pcm.c
297
ports &= ~port;
sys/dev/sound/pci/hdsp-pcm.c
298
port = hdsp_port_first(ports);
sys/dev/sound/pci/hdsp-pcm.c
388
slots = hdsp_port_slot_map(ch->ports, sc->speed);
sys/dev/sound/pci/hdsp-pcm.c
606
slots = hdsp_port_slot_map(ch->ports, sc->speed);
sys/dev/sound/pci/hdsp-pcm.c
647
slots = hdsp_port_slot_map(ch->ports, sc->speed);
sys/dev/sound/pci/hdsp-pcm.c
707
ch->ports = hdsp_channel_play_ports(scp->hc);
sys/dev/sound/pci/hdsp-pcm.c
709
ch->ports = hdsp_channel_rec_ports(scp->hc);
sys/dev/sound/pci/hdsp-pcm.c
717
SND_FORMAT(AFMT_S32_LE, hdsp_port_slot_count(ch->ports, 48000), 0);
sys/dev/sound/pci/hdsp-pcm.c
719
SND_FORMAT(AFMT_S32_LE, hdsp_port_slot_count(ch->ports, 96000), 0);
sys/dev/sound/pci/hdsp-pcm.c
721
SND_FORMAT(AFMT_S32_LE, hdsp_port_slot_count(ch->ports, 192000), 0);
sys/dev/sound/pci/hdsp-pcm.c
734
ch->size = HDSP_CHANBUF_SIZE * hdsp_port_slot_count_max(ch->ports);
sys/dev/sound/pci/hdsp-pcm.c
98
hdsp_port_slot_map(uint32_t ports, uint32_t speed)
sys/dev/sound/pci/hdsp.h
158
uint32_t ports;
sys/dev/sound/pci/hdsp.h
200
uint32_t ports;
sys/dev/sound/pci/hdspe-pcm.c
1045
if (scp->hc->ports & HDSPE_CHAN_AIO_ALL)
sys/dev/sound/pci/hdspe-pcm.c
1047
else if (scp->hc->ports & HDSPE_CHAN_RAY_ALL)
sys/dev/sound/pci/hdspe-pcm.c
1058
if (hdspe_channel_count(scp->hc->ports, 8) > HDSPE_MATRIX_MAX)
sys/dev/sound/pci/hdspe-pcm.c
106
hdspe_port_first(uint32_t ports)
sys/dev/sound/pci/hdspe-pcm.c
108
return (ports & (~(ports - 1))); /* Extract first bit set. */
sys/dev/sound/pci/hdspe-pcm.c
112
hdspe_port_first_row(uint32_t ports)
sys/dev/sound/pci/hdspe-pcm.c
117
if (ports & HDSPE_CHAN_AIO_ALL)
sys/dev/sound/pci/hdspe-pcm.c
118
ports &= HDSPE_CHAN_AIO_ALL; /* All AIO slots. */
sys/dev/sound/pci/hdspe-pcm.c
119
else if (ports & HDSPE_CHAN_RAY_ALL)
sys/dev/sound/pci/hdspe-pcm.c
120
ports &= HDSPE_CHAN_RAY_ALL; /* All RayDAT slots. */
sys/dev/sound/pci/hdspe-pcm.c
123
ends = ports & (~(ports >> 1));
sys/dev/sound/pci/hdspe-pcm.c
125
return (ports & (ends ^ (ends - 1)));
sys/dev/sound/pci/hdspe-pcm.c
129
hdspe_channel_count(uint32_t ports, uint32_t adat_width)
sys/dev/sound/pci/hdspe-pcm.c
133
if (ports & HDSPE_CHAN_AIO_ALL) {
sys/dev/sound/pci/hdspe-pcm.c
135
if (ports & HDSPE_CHAN_AIO_LINE)
sys/dev/sound/pci/hdspe-pcm.c
137
if (ports & HDSPE_CHAN_AIO_EXT)
sys/dev/sound/pci/hdspe-pcm.c
139
if (ports & HDSPE_CHAN_AIO_PHONE)
sys/dev/sound/pci/hdspe-pcm.c
141
if (ports & HDSPE_CHAN_AIO_AES)
sys/dev/sound/pci/hdspe-pcm.c
143
if (ports & HDSPE_CHAN_AIO_SPDIF)
sys/dev/sound/pci/hdspe-pcm.c
145
if (ports & HDSPE_CHAN_AIO_ADAT)
sys/dev/sound/pci/hdspe-pcm.c
147
} else if (ports & HDSPE_CHAN_RAY_ALL) {
sys/dev/sound/pci/hdspe-pcm.c
149
if (ports & HDSPE_CHAN_RAY_AES)
sys/dev/sound/pci/hdspe-pcm.c
151
if (ports & HDSPE_CHAN_RAY_SPDIF)
sys/dev/sound/pci/hdspe-pcm.c
153
if (ports & HDSPE_CHAN_RAY_ADAT1)
sys/dev/sound/pci/hdspe-pcm.c
155
if (ports & HDSPE_CHAN_RAY_ADAT2)
sys/dev/sound/pci/hdspe-pcm.c
157
if (ports & HDSPE_CHAN_RAY_ADAT3)
sys/dev/sound/pci/hdspe-pcm.c
159
if (ports & HDSPE_CHAN_RAY_ADAT4)
sys/dev/sound/pci/hdspe-pcm.c
167
hdspe_channel_offset(uint32_t subset, uint32_t ports, unsigned int adat_width)
sys/dev/sound/pci/hdspe-pcm.c
172
subset &= ports;
sys/dev/sound/pci/hdspe-pcm.c
174
preceding = ports & (~subset & (subset - 1));
sys/dev/sound/pci/hdspe-pcm.c
222
hdspe_port_slot_width(uint32_t ports, unsigned int adat_width)
sys/dev/sound/pci/hdspe-pcm.c
227
row = hdspe_port_first_row(ports);
sys/dev/sound/pci/hdspe-pcm.c
257
uint32_t port, ports;
sys/dev/sound/pci/hdspe-pcm.c
264
ports = ch->ports;
sys/dev/sound/pci/hdspe-pcm.c
265
port = hdspe_port_first(ports);
sys/dev/sound/pci/hdspe-pcm.c
281
ports &= ~port;
sys/dev/sound/pci/hdspe-pcm.c
282
port = hdspe_port_first(ports);
sys/dev/sound/pci/hdspe-pcm.c
357
uint32_t row, ports;
sys/dev/sound/pci/hdspe-pcm.c
372
ports = ch->ports;
sys/dev/sound/pci/hdspe-pcm.c
373
row = hdspe_port_first_row(ports);
sys/dev/sound/pci/hdspe-pcm.c
384
ports &= ~row;
sys/dev/sound/pci/hdspe-pcm.c
385
row = hdspe_port_first_row(ports);
sys/dev/sound/pci/hdspe-pcm.c
460
buffer_mux_port(uint32_t *dma, uint32_t *pcm, uint32_t subset, uint32_t ports,
sys/dev/sound/pci/hdspe-pcm.c
472
chan_pos = hdspe_channel_offset(subset, ports, pcm_width);
sys/dev/sound/pci/hdspe-pcm.c
474
channels = hdspe_channel_count(ports, pcm_width);
sys/dev/sound/pci/hdspe-pcm.c
506
buffer_demux_port(uint32_t *dma, uint32_t *pcm, uint32_t subset, uint32_t ports,
sys/dev/sound/pci/hdspe-pcm.c
518
chan_pos = hdspe_channel_offset(subset, ports, pcm_width);
sys/dev/sound/pci/hdspe-pcm.c
520
channels = hdspe_channel_count(ports, pcm_width);
sys/dev/sound/pci/hdspe-pcm.c
543
uint32_t row, ports;
sys/dev/sound/pci/hdspe-pcm.c
556
if (n == hdspe_channel_count(ch->ports, 2))
sys/dev/sound/pci/hdspe-pcm.c
558
else if (n == hdspe_channel_count(ch->ports, 4))
sys/dev/sound/pci/hdspe-pcm.c
594
ports = ch->ports;
sys/dev/sound/pci/hdspe-pcm.c
596
row = hdspe_port_first_row(ports);
sys/dev/sound/pci/hdspe-pcm.c
598
row = hdspe_port_first(ports);
sys/dev/sound/pci/hdspe-pcm.c
602
buffer_mux_port(sc->pbuf, ch->data, row, ch->ports, pos,
sys/dev/sound/pci/hdspe-pcm.c
605
buffer_demux_port(sc->rbuf, ch->data, row, ch->ports,
sys/dev/sound/pci/hdspe-pcm.c
608
ports &= ~row;
sys/dev/sound/pci/hdspe-pcm.c
610
row = hdspe_port_first_row(ports);
sys/dev/sound/pci/hdspe-pcm.c
612
row = hdspe_port_first(ports);
sys/dev/sound/pci/hdspe-pcm.c
624
uint32_t row, ports;
sys/dev/sound/pci/hdspe-pcm.c
635
ports = ch->ports;
sys/dev/sound/pci/hdspe-pcm.c
636
row = hdspe_port_first_row(ports);
sys/dev/sound/pci/hdspe-pcm.c
645
ports &= ~row;
sys/dev/sound/pci/hdspe-pcm.c
646
row = hdspe_port_first_row(ports);
sys/dev/sound/pci/hdspe-pcm.c
698
ch->ports = hdspe_channel_play_ports(scp->hc);
sys/dev/sound/pci/hdspe-pcm.c
700
ch->ports = hdspe_channel_rec_ports(scp->hc);
sys/dev/sound/pci/hdspe-pcm.c
708
SND_FORMAT(AFMT_S32_LE, hdspe_channel_count(ch->ports, 2), 0);
sys/dev/sound/pci/hdspe-pcm.c
710
SND_FORMAT(AFMT_S32_LE, hdspe_channel_count(ch->ports, 4), 0);
sys/dev/sound/pci/hdspe-pcm.c
712
SND_FORMAT(AFMT_S32_LE, hdspe_channel_count(ch->ports, 8), 0);
sys/dev/sound/pci/hdspe-pcm.c
718
ch->size = HDSPE_CHANBUF_SIZE * hdspe_channel_count(ch->ports, 8);
sys/dev/sound/pci/hdspe-pcm.c
86
return (hc->ports & (HDSPE_CHAN_AIO_ALL | HDSPE_CHAN_RAY_ALL));
sys/dev/sound/pci/hdspe-pcm.c
92
return (hc->ports & (HDSPE_CHAN_AIO_ALL_REC | HDSPE_CHAN_RAY_ALL));
sys/dev/sound/pci/hdspe.h
157
uint32_t ports;
sys/dev/sound/pci/hdspe.h
191
uint32_t ports;
sys/dev/usb/usb_device.c
2092
parent_hub->hub->ports + port_index : NULL, udev, device_index);
sys/dev/usb/usb_device.c
2333
udev->parent_hub->hub->ports + udev->port_index : NULL,
sys/dev/usb/usb_hub.c
1033
up = hub->ports + x;
sys/dev/usb/usb_hub.c
1367
hub = malloc(sizeof(hub[0]) + (sizeof(hub->ports[0]) * nports),
sys/dev/usb/usb_hub.c
1462
struct usb_port *up = hub->ports + x;
sys/dev/usb/usb_hub.c
1565
child = usb_bus_port_get_device(bus, hub->ports + x);
sys/dev/usb/usb_hub.c
1630
hub->ports + x);
sys/dev/usb/usb_hub.c
2790
udev->hub->ports + x);
sys/dev/usb/usb_hub.c
290
up = hub->ports + port - 1;
sys/dev/usb/usb_hub.c
345
up = udev->hub->ports + x;
sys/dev/usb/usb_hub.c
402
up = hub->ports + x;
sys/dev/usb/usb_hub.c
614
udev->hub->ports + portno - 1);
sys/dev/usb/usb_hub.c
884
udev->hub->ports + portno - 1);
sys/dev/usb/usb_hub.h
59
struct usb_port ports[0];
sys/dev/usb/usb_hub.h
61
struct usb_port ports[USB_MAX_PORTS];
sys/kern/uipc_mbufhash.c
107
const uint32_t *ports;
sys/kern/uipc_mbufhash.c
118
ports = m_common_hash_gethdr(m,
sys/kern/uipc_mbufhash.c
119
off, sizeof(*ports), &buf);
sys/kern/uipc_mbufhash.c
120
if (ports == NULL)
sys/kern/uipc_mbufhash.c
122
p = fnv_32_buf(ports, sizeof(*ports), p);
sys/netgraph/netflow/ng_netflow.h
201
} ports;
sys/netgraph/netflow/ng_netflow.h
230
} ports;
sys/netgraph/netflow/ng_netflow.h
245
#define r_ports ports.both
sys/netgraph/netflow/ng_netflow.h
246
#define r_sport ports.dir.s_port
sys/netgraph/netflow/ng_netflow.h
247
#define r_dport ports.dir.d_port
sys/netinet/ip_fw.h
385
u_int16_t ports[2]; /* there may be more */
sys/netinet/libalias/alias_db.c
2360
cmd->ports[0] = cmd->ports[1] = port;
sys/netpfil/ipfw/ip_fw2.c
2041
((ipfw_insn_u16 *)cmd)->ports;
sys/netpfil/ipfw/ip_fw2.c
2436
((ipfw_insn_u16 *)cmd)->ports;
sys/netpfil/ipfw/ip_fw2.c
2491
p = ((ipfw_insn_u16 *)cmd)->ports;
sys/netpfil/ipfw/ip_fw2.c
2562
p = ((ipfw_insn_u16 *)cmd)->ports;
sys/netpfil/ipfw/ip_fw2.c
2616
p = ((ipfw_insn_u16 *)cmd)->ports;
sys/netpfil/ipfw/ip_fw2.c
2636
p = ((ipfw_insn_u16 *)cmd)->ports;
sys/netpfil/ipfw/ip_fw2.c
2908
p = ((ipfw_insn_u16 *)cmd)->ports;
sys/netpfil/ipfw/ip_fw2.c
3250
((ipfw_insn_u16 *)cmd)->ports[0];
sys/ofed/include/rdma/rdma_vt.h
376
struct rvt_ibport **ports;
sys/ofed/include/rdma/rdma_vt.h
454
return rdi->ports[port_index]->pkey_table[index];
tools/tools/netmap/lb.c
1061
*c = ports[i].ctr;
tools/tools/netmap/lb.c
1066
if (ports[i].oq != NULL)
tools/tools/netmap/lb.c
1067
c->oq_n = ports[i].oq->n;
tools/tools/netmap/lb.c
181
static struct port_des *ports;
tools/tools/netmap/lb.c
186
struct port_des *ports;
tools/tools/netmap/lb.c
286
ports[j].interface,
tools/tools/netmap/lb.c
356
struct port_des *rxport = &ports[glob_arg.output_rings];
tools/tools/netmap/lb.c
360
struct port_des *cp = &ports[i];
tools/tools/netmap/lb.c
378
nmport_close(ports[i].nmd);
tools/tools/netmap/lb.c
469
g->ports = &ports[t];
tools/tools/netmap/lb.c
471
g->ports[j].group = g;
tools/tools/netmap/lb.c
516
struct port_des *port = &g->ports[output_port];
tools/tools/netmap/lb.c
580
struct port_des *lp = &ports[0];
tools/tools/netmap/lb.c
585
struct port_des *cp = &ports[j];
tools/tools/netmap/lb.c
710
ports = calloc(npipes + 1, sizeof(struct port_des));
tools/tools/netmap/lb.c
711
if (!ports) {
tools/tools/netmap/lb.c
715
struct port_des *rxport = &ports[npipes];
tools/tools/netmap/lb.c
806
struct port_des *p = &g->ports[k];
tools/tools/netmap/lb.c
901
struct netmap_ring *ring = ports[i].ring;
tools/tools/netmap/lb.c
913
pollfd[polli].fd = ports[i].nmd->fd;
tools/tools/netmap/lb.c
943
struct port_des *p = &g->ports[j];
tools/tools/netmap/lb.c
969
struct port_des *p = &ports[i];
usr.bin/ctlstat/ctlstat.c
152
bool ports);
usr.bin/ctlstat/ctlstat.c
171
struct timespec *cur_time, int *flags, bool ports)
usr.bin/ctlstat/ctlstat.c
187
if (ioctl(fd, ports ? CTL_GET_PORT_STATS : CTL_GET_LUN_STATS,
usr.bin/ctlstat/ctlstat.c
547
ctlstat_prometheus(int fd, struct ctlstat_context *ctx, bool ports) {
usr.bin/ctlstat/ctlstat.c
590
collector = ports ? "port" : "lun";
usr.bin/ctlstat/ctlstat.c
807
get_and_print_stats(int fd, struct ctlstat_context *ctx, bool ports)
usr.bin/ctlstat/ctlstat.c
824
&ctx->cur_stats, &ctx->cur_time, &ctx->flags, ports) != 0)
usr.bin/ctlstat/ctlstat.c
838
ctlstat_prometheus(fd, ctx, ports);
usr.bin/ctlstat/ctlstat.c
987
bool ports;
usr.bin/ctlstat/ctlstat.c
993
ports = ctx.flags & CTLSTAT_FLAG_PORTS;
usr.bin/ctlstat/ctlstat.c
994
get_and_print_stats(fd, &ctx, ports);
usr.bin/sockstat/main.c
1028
if (ports == NULL)
usr.bin/sockstat/sockstat.c
35
int *ports;
usr.bin/sockstat/sockstat.c
42
if (ports == NULL)
usr.bin/sockstat/sockstat.c
43
if ((ports = calloc(65536 / INT_BIT, sizeof(int))) == NULL)
usr.bin/sockstat/sockstat.h
30
#define SET_PORT(p) do { ports[p / INT_BIT] |= 1 << (p % INT_BIT); } while (0)
usr.bin/sockstat/sockstat.h
31
#define CHK_PORT(p) (ports[p / INT_BIT] & (1 << (p % INT_BIT)))
usr.bin/sockstat/sockstat.h
33
extern int *ports;
usr.bin/systat/netcmds.c
193
} *ports;
usr.bin/systat/netcmds.c
201
if (ports == NULL)
usr.bin/systat/netcmds.c
203
free((char *)ports), ports = 0;
usr.bin/systat/netcmds.c
207
for (p = ports; p < ports + nports; p++)
usr.bin/systat/netcmds.c
213
ports = (struct pitem *)malloc(sizeof (*p));
usr.bin/systat/netcmds.c
215
ports = (struct pitem *)realloc(ports, (nports+1)*sizeof (*p));
usr.bin/systat/netcmds.c
216
p = &ports[nports++];
usr.bin/systat/netcmds.c
227
if (ports)
usr.bin/systat/netcmds.c
228
for (p = ports; p < ports+nports; p++)
usr.bin/systat/netcmds.c
240
for (p = ports; p < ports+nports; p++) {
usr.sbin/bhyve/pci_ahci.c
200
int ports;
usr.sbin/bhyve/pci_ahci.c
2257
else if (offset < (uint64_t)AHCI_OFFSET + sc->ports * AHCI_STEP)
usr.sbin/bhyve/pci_ahci.c
2354
else if (offset < (uint64_t)AHCI_OFFSET + sc->ports * AHCI_STEP)
usr.sbin/bhyve/pci_ahci.c
241
for (i = 0; i < sc->ports; i++) {
usr.sbin/bhyve/pci_ahci.c
2488
sc->ports = 0;
usr.sbin/bhyve/pci_ahci.c
2520
sc->ports = p;
usr.sbin/bhyve/pci_ahci.c
2527
sc->ports = p;
usr.sbin/bhyve/pci_ahci.c
2580
sc->ports = p;
usr.sbin/bhyve/pci_ahci.c
2584
if (sc->ports < DEF_PORTS)
usr.sbin/bhyve/pci_ahci.c
2585
sc->ports = DEF_PORTS;
usr.sbin/bhyve/pci_ahci.c
2590
(slots << AHCI_CAP_NCS_SHIFT) | AHCI_CAP_SXS | (sc->ports - 1);
usr.sbin/bhyve/pci_ahci.c
2601
p = MIN(sc->ports, 16);
usr.sbin/bhyve/pci_ahci.c
2605
AHCI_OFFSET + sc->ports * AHCI_STEP);
usr.sbin/bhyve/pci_ahci.c
2611
for (p = 0; p < sc->ports; p++) {
usr.sbin/bhyve/pci_ahci.c
2636
SNAPSHOT_VAR_OR_LEAVE(sc->ports, meta, ret, done);
usr.sbin/bhyve/pci_ahci.c
269
if (sc->ports <= nmsg || i < nmsg - 1)
usr.sbin/bhyve/pci_ahci.c
297
if (sc->ports <= nmsg || p->port < nmsg - 1) {
usr.sbin/bhyve/pci_ahci.c
571
for (i = 0; i < sc->ports; i++) {
usr.sbin/ctld/ctld.cc
940
for (const port *port : target->ports()) {
usr.sbin/ctld/discovery.cc
111
for (const port *port : targ->ports()) {
usr.sbin/ctld/discovery.cc
235
for (const auto &kv : pg->ports()) {
usr.sbin/ctld/nvmf_discovery.cc
225
for (const auto &kv : pg->ports()) {