Searched refs:pg_idx (Results 1 – 4 of 4) sorted by relevance
| /freebsd/sys/netpfil/ipfw/nat64/ |
| H A D | nat64lsn_control.c | 653 int pg_idx; in nat64lsn_get_pg_byidx() local 658 pg_idx = (idx->port - NAT64_MIN_PORT) / 64; in nat64lsn_get_pg_byidx() 661 if (ISSET32(alias->icmp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx() 662 return (alias->icmp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx() 665 if (ISSET32(alias->tcp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx() 666 return (alias->tcp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx() 669 if (ISSET32(alias->udp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx() 670 return (alias->udp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx()
|
| H A D | nat64lsn.c | 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() [all …]
|
| /freebsd/sys/dev/bnxt/bnxt_re/ |
| H A D | qplib_res.h | 505 u32 pg_num, pg_idx; in bnxt_qplib_get_qe() local 508 pg_idx = (indx % hwq->qe_ppg); in bnxt_qplib_get_qe() 511 return (void *)((u8 *)hwq->pbl_ptr[pg_num] + hwq->element_size * pg_idx); in bnxt_qplib_get_qe()
|
| /freebsd/sys/dev/irdma/ |
| H A D | irdma_verbs.c | 1694 u32 pg_idx; in irdma_check_mem_contiguous() local 1696 for (pg_idx = 0; pg_idx < npages; pg_idx++) { in irdma_check_mem_contiguous() 1697 if ((*arr + ((u64)pg_size * pg_idx)) != arr[pg_idx]) in irdma_check_mem_contiguous()
|