Searched refs:pg_idx (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64lsn_control.c | 643 int pg_idx; in nat64lsn_get_pg_byidx() local 648 pg_idx = (idx->port - NAT64_MIN_PORT) / 64; in nat64lsn_get_pg_byidx() 651 if (ISSET32(alias->icmp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx() 652 return (alias->icmp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx() 655 if (ISSET32(alias->tcp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx() 656 return (alias->tcp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx() 659 if (ISSET32(alias->udp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx() 660 return (alias->udp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx()
|
H A D | nat64lsn.c | 486 int chunk_idx, pg_idx, state_idx; in nat64lsn_get_state4to6() local 501 pg_idx = port / 64; in nat64lsn_get_state4to6() 512 ISSET32(alias->tcp_pgmask[chunk_idx], pg_idx)) { in nat64lsn_get_state4to6() 513 pg = alias->tcp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6() 519 ISSET32(alias->udp_pgmask[chunk_idx], pg_idx)) { in nat64lsn_get_state4to6() 520 pg = alias->udp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6() 526 ISSET32(alias->icmp_pgmask[chunk_idx], pg_idx)) { in nat64lsn_get_state4to6() 527 pg = alias->icmp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6() 1111 int i, pg_idx, chunk_idx; in nat64lsn_alloc_proto_pg() local 1114 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 | 1668 u32 pg_idx; in irdma_check_mem_contiguous() local 1670 for (pg_idx = 0; pg_idx < npages; pg_idx++) { in irdma_check_mem_contiguous() 1671 if ((*arr + (pg_size * pg_idx)) != arr[pg_idx]) in irdma_check_mem_contiguous()
|