Lines Matching refs:count
229 uint32_t count[DB_TYPES] = {0};
275 sz = size_db(hdp, page_sz, count);
298 rv = init_hdr(hdp, page_sz, count);
780 init_hdr(struct di_devlink_handle *hdp, long page_sz, uint32_t *count)
791 assert(count[i] >= 1);
792 DB_NUM(hdp, i) = count[i];
2953 size_db(struct di_devlink_handle *hdp, long page_sz, uint32_t *count)
2963 count[i] = 1;
2966 count_node(CACHE(hdp)->root, count);
2969 count_link(clp, count);
2974 assert(count[i] >= 1);
2975 sz += (((count[i] * elem_sizes[i]) / page_sz) + 1) * page_sz;
2976 (void) dprintf(DBG_INFO, "N[%u]=%u\n", i, count[i]);
2985 count_node(cache_node_t *cnp, uint32_t *count)
2992 count[DB_NODE]++;
2993 count_string(cnp->path, count);
2996 count_minor(cmnp, count);
3000 count_node(cnp, count);
3006 count_minor(cache_minor_t *cmnp, uint32_t *count)
3013 count[DB_MINOR]++;
3014 count_string(cmnp->name, count);
3015 count_string(cmnp->nodetype, count);
3018 count_link(clp, count);
3023 count_link(cache_link_t *clp, uint32_t *count)
3028 count[DB_LINK]++;
3029 count_string(clp->path, count);
3030 count_string(clp->content, count);
3035 count_string(const char *str, uint32_t *count)
3042 count[DB_STR] += strlen(str) + 1;