Searched refs:pg_idx (Results 1 – 3 of 3) sorted by relevance
599 for (i = ibc->last_copied_page + 1; i < pg_idx; i++) { in radeon_cs_update_pages()608 if (pg_idx == ibc->last_page_index) { in radeon_cs_update_pages()616 ibc->kpage[new_page] = p->ib.ptr + (pg_idx * (PAGE_SIZE / 4)); in radeon_cs_update_pages()619 (char *)ibc->user_ptr + (pg_idx * PAGE_SIZE), in radeon_cs_update_pages()629 ibc->last_copied_page = pg_idx; in radeon_cs_update_pages()630 ibc->kpage_idx[new_page] = pg_idx; in radeon_cs_update_pages()638 u32 pg_idx, pg_offset; in radeon_get_ib_value() local642 pg_idx = (idx * 4) / PAGE_SIZE; in radeon_get_ib_value()645 if (ibc->kpage_idx[0] == pg_idx) in radeon_get_ib_value()647 if (ibc->kpage_idx[1] == pg_idx) in radeon_get_ib_value()[all …]
647 int pg_idx; in nat64lsn_get_pg_byidx() local652 pg_idx = (idx->port - NAT64_MIN_PORT) / 64; in nat64lsn_get_pg_byidx()655 if (ISSET32(alias->icmp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx()656 return (alias->icmp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx()659 if (ISSET32(alias->tcp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx()660 return (alias->tcp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx()663 if (ISSET32(alias->udp_pgmask[pg_idx / 32], pg_idx % 32)) in nat64lsn_get_pg_byidx()664 return (alias->udp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx()
490 int chunk_idx, pg_idx, state_idx; in nat64lsn_get_state4to6() local505 pg_idx = port / 64; in nat64lsn_get_state4to6()517 pg = alias->tcp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6()524 pg = alias->udp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6()531 pg = alias->icmp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6()1056 int i, pg_idx, chunk_idx; in nat64lsn_alloc_proto_pg() local1059 pg_idx = nat64lsn_find_pg_place(pgmask); in nat64lsn_alloc_proto_pg()1060 if (pg_idx < 0) /* no more PGs */ in nat64lsn_alloc_proto_pg()1063 chunk_idx = pg_idx / 32; in nat64lsn_alloc_proto_pg()1112 pg->base_port = NAT64_MIN_PORT + 64 * pg_idx; in nat64lsn_alloc_proto_pg()[all …]