Lines Matching defs:page_sz
226 long page_sz;
241 if ((page_sz = sysconf(_SC_PAGE_SIZE)) == -1) {
275 sz = size_db(hdp, page_sz, count);
296 rv = invalid_db(hdp, sz, page_sz);
298 rv = init_hdr(hdp, page_sz, count);
490 invalid_db(struct di_devlink_handle *hdp, size_t fsize, long page_sz)
500 if (DB_HDR(hdp)->page_sz == 0 || DB_HDR(hdp)->page_sz != page_sz) {
512 assert(sz % page_sz == 0);
780 init_hdr(struct di_devlink_handle *hdp, long page_sz, uint32_t *count)
788 DB_HDR(hdp)->page_sz = (uint32_t)page_sz;
2936 assert(DB_HDR(hdp)->page_sz);
2945 sz = (sz / DB_HDR(hdp)->page_sz) + 1;
2947 sz *= DB_HDR(hdp)->page_sz;
2953 size_db(struct di_devlink_handle *hdp, long page_sz, uint32_t *count)
2959 assert(page_sz > 0);
2972 sz = ((HDR_LEN / page_sz) + 1) * page_sz;
2975 sz += (((count[i] * elem_sizes[i]) / page_sz) + 1) * page_sz;