Searched refs:uvm_physseg (Results 1 – 5 of 5) sorted by relevance
89 struct uvm_physseg { struct123 #define HANDLE_TO_PHYSSEG_NODE(h) ((struct uvm_physseg *)(h))159 static struct uvm_physseg uvm_physseg[VM_PHYSSEG_MAX]; variable171 if (sz % sizeof(struct uvm_physseg)) in uvm_physseg_alloc()175 size_t n = sz / sizeof(struct uvm_physseg); in uvm_physseg_alloc()181 return &uvm_physseg[nseg - n]; in uvm_physseg_alloc()206 if (sz % sizeof(struct uvm_physseg)) in uvm_physseg_free()217 if ((struct uvm_physseg *)p >= uvm_physseg && in uvm_physseg_free()218 (struct uvm_physseg *)p < (uvm_physseg + VM_PHYSSEG_MAX)) { in uvm_physseg_free()219 if (sz % sizeof(struct uvm_physseg)) in uvm_physseg_free()[all …]
67 typedef struct uvm_physseg * uvm_physseg_t;
49 file uvm/uvm_physseg.c uvm
307 uvm_physseg_alloc(sizeof(struct uvm_physseg) - 1); in ATF_TC_BODY()323 uvm_physseg_alloc((VM_PHYSSEG_MAX + 1) * sizeof(struct uvm_physseg)); in ATF_TC_BODY()340 ATF_REQUIRE(uvm_physseg_alloc(VM_PHYSSEG_MAX * sizeof(struct uvm_physseg))); in ATF_TC_BODY()344 ATF_REQUIRE(uvm_physseg_alloc(sizeof(struct uvm_physseg) - 1)); in ATF_TC_BODY()345 ATF_REQUIRE(uvm_physseg_alloc(2 * VM_PHYSSEG_MAX * sizeof(struct uvm_physseg))); in ATF_TC_BODY()361 uvm_physseg_free(&uvm_physseg[0], sizeof(struct uvm_physseg) - 1); in ATF_TC_BODY()376 struct uvm_physseg *seg; in ATF_TC_BODY()385 uvm_physseg_free(seg, (VM_PHYSSEG_MAX - 1) * sizeof(struct uvm_physseg)); in ATF_TC_BODY()391 seg = uvm_physseg_alloc(sizeof(struct uvm_physseg) - 1); in ATF_TC_BODY()392 uvm_physseg_free(seg, sizeof(struct uvm_physseg) - 1); in ATF_TC_BODY()[all …]
11 DPSRCS= ${NETBSDSRCDIR}/sys/uvm/uvm_physseg.[ch]