Lines Matching refs:pg_idx
488 int chunk_idx, pg_idx, state_idx; in nat64lsn_get_state4to6() local
503 pg_idx = port / 64; in nat64lsn_get_state4to6()
514 ISSET32(alias->tcp_pgmask[chunk_idx], pg_idx)) { in nat64lsn_get_state4to6()
515 pg = alias->tcp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6()
521 ISSET32(alias->udp_pgmask[chunk_idx], pg_idx)) { in nat64lsn_get_state4to6()
522 pg = alias->udp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6()
528 ISSET32(alias->icmp_pgmask[chunk_idx], pg_idx)) { in nat64lsn_get_state4to6()
529 pg = alias->icmp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6()
1131 int i, pg_idx, chunk_idx; in nat64lsn_alloc_proto_pg() local
1134 pg_idx = nat64lsn_find_pg_place(pgmask); in nat64lsn_alloc_proto_pg()
1135 if (pg_idx < 0) /* no more PGs */ in nat64lsn_alloc_proto_pg()
1138 chunk_idx = pg_idx / 32; in nat64lsn_alloc_proto_pg()
1188 pg->base_port = NAT64_MIN_PORT + 64 * pg_idx; in nat64lsn_alloc_proto_pg()
1189 ck_pr_store_ptr(&chunks[chunk_idx]->pgptr[pg_idx % 32], pg); in nat64lsn_alloc_proto_pg()
1193 ck_pr_bts_32(&pgmask[chunk_idx], pg_idx % 32); in nat64lsn_alloc_proto_pg()
1194 ck_pr_store_32(pgidx, pg_idx); in nat64lsn_alloc_proto_pg()