Lines Matching refs:block
75 i915_buddy_block_offset(struct i915_buddy_block *block) in i915_buddy_block_offset() argument
77 return block->header & I915_BUDDY_HEADER_OFFSET; in i915_buddy_block_offset()
81 i915_buddy_block_order(struct i915_buddy_block *block) in i915_buddy_block_order() argument
83 return block->header & I915_BUDDY_HEADER_ORDER; in i915_buddy_block_order()
87 i915_buddy_block_state(struct i915_buddy_block *block) in i915_buddy_block_state() argument
89 return block->header & I915_BUDDY_HEADER_STATE; in i915_buddy_block_state()
93 i915_buddy_block_is_allocated(struct i915_buddy_block *block) in i915_buddy_block_is_allocated() argument
95 return i915_buddy_block_state(block) == I915_BUDDY_ALLOCATED; in i915_buddy_block_is_allocated()
99 i915_buddy_block_is_free(struct i915_buddy_block *block) in i915_buddy_block_is_free() argument
101 return i915_buddy_block_state(block) == I915_BUDDY_FREE; in i915_buddy_block_is_free()
105 i915_buddy_block_is_split(struct i915_buddy_block *block) in i915_buddy_block_is_split() argument
107 return i915_buddy_block_state(block) == I915_BUDDY_SPLIT; in i915_buddy_block_is_split()
112 struct i915_buddy_block *block) in i915_buddy_block_size() argument
114 return mm->chunk_size << i915_buddy_block_order(block); in i915_buddy_block_size()
128 void i915_buddy_free(struct i915_buddy_mm *mm, struct i915_buddy_block *block);