Lines Matching refs:value
76 * EXTRACT_FIELD - Extracts a specific bit field from a value.
78 * @reg: The input value containing the field.
133 * The round_up() macro rounds up a value to the given boundary in a
136 * greater than or equal to value.
138 * round_down() is similar but rounds the value down instead.
140 #define round_boundary(value, boundary) \
141 ((__typeof__(value))((boundary) - ((__typeof__(value))1U)))
143 #define round_up(value, boundary) \
144 ((((value) - ((__typeof__(value))1U)) | round_boundary(value, boundary)) + ((__typeof__(value))1U))
146 #define round_down(value, boundary) \
147 ((value) & ~round_boundary(value, boundary))
156 * Round up a value to align with a given size and
158 * The rounduped value is '*res',
173 * The rounduped value is '*res',
185 * Helper macro to ensure a value lies on a given boundary.
187 #define is_aligned(value, boundary) \
188 (round_up((uintptr_t) value, boundary) == \
189 round_down((uintptr_t) value, boundary))
223 * be used as a 64-bit pointer, the value of the linker symbol must also be