Lines Matching refs:grain
146 static int grain = ALIGNSZ;
344 * is just ->blksz/grain, with the first
362 maxfast = fastct * grain;
368 * round up to nearest multiple of grain
369 * code assumes grain is a multiple of MINHEAD
371 /* round up to grain */
372 nb = (nbytes + grain - 1) / grain * grain;
373 holdblk = holdhead[nb / grain];
398 holdhead[(nb-MINHEAD) / grain] =
410 holdhead[(nb-MINHEAD)/grain] =
431 holdhead[(nb-MINHEAD)/grain] = newhold;
675 offset = holdblk->blksz / grain;
873 * M_GRAIN Set grain to value. The sizes of all blocks
875 * up to the nearest multiple of grain. The default
876 * value of grain is the smallest number of bytes
880 * grain. Value must be greater than 0.
907 fastct = (value + grain - 1) / grain;
908 maxfast = grain*fastct;
923 /* round grain up to a multiple of ALIGNSZ */
924 grain = (value + ALIGNSZ - 1)/ALIGNSZ*ALIGNSZ;
927 fastct = (maxfast + grain - 1) / grain;
928 maxfast = grain * fastct;
1146 grain = ALIGNSZ;