Searched refs:pg_idx (Results 1 – 3 of 3) sorted by relevance
646 int pg_idx; in nat64lsn_get_pg_byidx() local651 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()
489 int chunk_idx, pg_idx, state_idx; in nat64lsn_get_state4to6() local504 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() local1117 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 …]
207 u32 pg_idx; in get_db_idx() local221 pg_idx = free_db_area->db_idx[pos]; in get_db_idx()227 *idx = pg_idx; in get_db_idx()