Home
last modified time | relevance | path

Searched refs:pg_idx (Results 1 – 3 of 3) sorted by relevance

/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64lsn_control.c646 int pg_idx; in nat64lsn_get_pg_byidx() local
651 pg_idx = (idx->port - NAT64_MIN_PORT) / 64; in nat64lsn_get_pg_byidx()
654 if (ISSET32(alias->icmp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx()
655 return (alias->icmp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx()
658 if (ISSET32(alias->tcp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx()
659 return (alias->tcp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx()
662 if (ISSET32(alias->udp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx()
663 return (alias->udp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx()
H A Dnat64lsn.c489 int chunk_idx, pg_idx, state_idx; in nat64lsn_get_state4to6() local
504 pg_idx = port / 64; in nat64lsn_get_state4to6()
516 pg = alias->tcp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6()
523 pg = alias->udp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6()
530 pg = alias->icmp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6()
1114 int i, pg_idx, chunk_idx; in nat64lsn_alloc_proto_pg() local
1117 pg_idx = nat64lsn_find_pg_place(pgmask); in nat64lsn_alloc_proto_pg()
1118 if (pg_idx < 0) /* no more PGs */ in nat64lsn_alloc_proto_pg()
1121 chunk_idx = pg_idx / 32; in nat64lsn_alloc_proto_pg()
1170 pg->base_port = NAT64_MIN_PORT + 64 * pg_idx; in nat64lsn_alloc_proto_pg()
[all …]
/f-stack/dpdk/drivers/net/hinic/base/
H A Dhinic_pmd_hwif.c207 u32 pg_idx; in get_db_idx() local
221 pg_idx = free_db_area->db_idx[pos]; in get_db_idx()
227 *idx = pg_idx; in get_db_idx()