Lines Matching refs:cgp
389 #define cg_blktot(cgp) \
390 (((cgp)->cg_magic != CG_MAGIC) \
391 ? (((struct ocg *)(cgp))->cg_btot) \
392 : ((int32_t *)((u_int8_t *)(cgp) + (cgp)->cg_btotoff)))
393 #define cg_blks(fs, cgp, cylno) \
394 (((cgp)->cg_magic != CG_MAGIC) \
395 ? (((struct ocg *)(cgp))->cg_b[cylno]) \
396 : ((int16_t *)((u_int8_t *)(cgp) + \
397 (cgp)->cg_boff) + (cylno) * (fs)->fs_nrpos))
398 #define cg_inosused(cgp) \
399 (((cgp)->cg_magic != CG_MAGIC) \
400 ? (((struct ocg *)(cgp))->cg_iused) \
401 : ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_iusedoff)))
402 #define cg_blksfree(cgp) \
403 (((cgp)->cg_magic != CG_MAGIC) \
404 ? (((struct ocg *)(cgp))->cg_free) \
405 : ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_freeoff)))
406 #define cg_chkmagic(cgp) \
407 ((cgp)->cg_magic == CG_MAGIC || ((struct ocg *)(cgp))->cg_magic == CG_MAGIC)
408 #define cg_clustersfree(cgp) \
409 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_clusteroff))
410 #define cg_clustersum(cgp) \
411 ((int32_t *)((u_int8_t *)(cgp) + (cgp)->cg_clustersumoff))