Searched refs:C_SEG_SLOT_ARRAY_SIZE (Results 1 - 2 of 2) sorted by relevance

/xnu-2422.115.4/osfmk/vm/
H A Dvm_compressor.h48 #define C_SEG_SLOT_ARRAY_SIZE 64 /* must be a power of 2 */ macro
49 #define C_SEG_SLOT_ARRAY_MASK (C_SEG_SLOT_ARRAY_SIZE - 1)
50 #define C_SLOT_MAX (C_SEG_SLOT_ARRAYS * C_SEG_SLOT_ARRAY_SIZE)
121 #define C_SEG_SLOT_FROM_INDEX(cseg, index) (&(cseg->c_slots[index / C_SEG_SLOT_ARRAY_SIZE])[index & C_SEG_SLOT_ARRAY_MASK])
122 #define C_SEG_SLOTARRAY_FROM_INDEX(cseg, index) (index / C_SEG_SLOT_ARRAY_SIZE)
H A Dvm_compressor.c796 kfree((char *)c_seg->c_slots[i], sizeof(struct c_slot) * C_SEG_SLOT_ARRAY_SIZE);
1060 C_SEG_SLOT_ARRAY_SIZE);
2106 c_seg->c_slots[slotarray] = (struct c_slot *)kalloc(sizeof(struct c_slot) * C_SEG_SLOT_ARRAY_SIZE);

Completed in 23 milliseconds