| /include/linux/ |
| A D | ptr_ring.h | 51 return r->queue[r->producer]; in __ptr_ring_full() 106 if (unlikely(!r->size) || r->queue[r->producer]) in __ptr_ring_produce() 113 WRITE_ONCE(r->queue[r->producer++], ptr); in __ptr_ring_produce() 114 if (unlikely(r->producer >= r->size)) in __ptr_ring_produce() 172 return READ_ONCE(r->queue[r->consumer_head]); in __ptr_ring_peek() 197 return !r->queue[READ_ONCE(r->consumer_head)]; in __ptr_ring_empty() 477 r->batch = SMP_CACHE_BYTES * 2 / sizeof(*(r->queue)); in __ptr_ring_set_size() 483 if (r->batch > r->size / 2 || !r->batch) in __ptr_ring_set_size() 494 r->producer = r->consumer_head = r->consumer_tail = 0; in ptr_ring_init_noprof() 521 if (!r->size) in ptr_ring_unconsume() [all …]
|
| A D | refcount.h | 134 atomic_set(&r->refs, n); in refcount_set() 159 atomic_set_release(&r->refs, n); in refcount_set_release() 170 return atomic_read(&r->refs); in refcount_read() 176 int old = refcount_read(r); in __refcount_add_not_zero() 219 int old = refcount_read(r); in __refcount_add_not_zero_limited_acquire() 312 __refcount_add(i, r, NULL); in refcount_add() 335 return __refcount_inc_not_zero(r, NULL); in refcount_inc_not_zero() 366 __refcount_add(1, r, oldp); in __refcount_inc() 383 __refcount_inc(r, NULL); in refcount_inc() 450 return __refcount_dec_and_test(r, NULL); in refcount_dec_and_test() [all …]
|
| A D | linear_range.h | 40 unsigned int linear_range_values_in_range(const struct linear_range *r); 41 unsigned int linear_range_values_in_range_array(const struct linear_range *r, 43 unsigned int linear_range_get_max_value(const struct linear_range *r); 45 int linear_range_get_value(const struct linear_range *r, unsigned int selector, 47 int linear_range_get_value_array(const struct linear_range *r, int ranges, 49 int linear_range_get_selector_low(const struct linear_range *r, 52 int linear_range_get_selector_high(const struct linear_range *r, 55 void linear_range_get_selector_within(const struct linear_range *r, 57 int linear_range_get_selector_low_array(const struct linear_range *r,
|
| A D | resctrl.h | 39 #define for_each_capable_rdt_resource(r) \ argument 40 for_each_rdt_resource((r)) \ 41 if ((r)->alloc_capable || (r)->mon_capable) 44 for_each_rdt_resource((r)) \ 45 if ((r)->alloc_capable) 48 for_each_rdt_resource((r)) \ 49 if ((r)->mon_capable) 330 struct rdt_resource *r; member 360 switch (r->schema_fmt) { in resctrl_get_default_ctrl() 362 return BIT_MASK(r->cache.cbm_len) - 1; in resctrl_get_default_ctrl() [all …]
|
| A D | damon.h | 25 return l + get_random_u32_below(r - l); in damon_rand() 422 struct damon_target *t, struct damon_region *r, 622 struct damon_target *t, struct damon_region *r, 625 struct damon_target *t, struct damon_region *r, 818 return r->ar.end - r->ar.start; in damon_sz_region() 822 #define damon_for_each_region(r, t) \ argument 823 list_for_each_entry(r, &t->regions_list, list) 825 #define damon_for_each_region_from(r, t) \ argument 826 list_for_each_entry_from(r, &t->regions_list, list) 828 #define damon_for_each_region_safe(r, next, t) \ argument [all …]
|
| A D | call_once.h | 46 int r, state; in call_once() local 58 r = cb(once); in call_once() 59 if (r < 0) in call_once() 63 return r; in call_once()
|
| A D | sort.h | 15 #define cmp_int(l, r) (((l) > (r)) - ((l) < (r))) argument
|
| A D | inet_diag.h | 14 const struct inet_diag_req_v2 *r); 20 struct inet_diag_msg *r, 53 const struct inet_diag_req_v2 *r); 64 void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk); 84 struct inet_diag_msg *r, int ext,
|
| A D | raid_class.h | 56 raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \ 58 attribute_container_find_class_device(&r->raid_attrs.ac, dev);\ 65 raid_get_##attr(struct raid_template *r, struct device *dev) { \ 67 attribute_container_find_class_device(&r->raid_attrs.ac, dev);\
|
| /include/drm/ |
| A D | drm_rect.h | 74 #define DRM_RECT_ARG(r) drm_rect_width(r), drm_rect_height(r), (r)->x1, (r)->y1 argument 90 (r)->x1 >> 16, (((r)->x1 & 0xffff) * 15625) >> 10, \ 91 (r)->y1 >> 16, (((r)->y1 & 0xffff) * 15625) >> 10 104 r->x1 = x; in drm_rect_init() 105 r->y1 = y; in drm_rect_init() 141 r->x1 += dx; in drm_rect_translate() 142 r->y1 += dy; in drm_rect_translate() 143 r->x2 += dx; in drm_rect_translate() 158 drm_rect_translate(r, x - r->x1, y - r->y1); in drm_rect_translate_to() 186 return r->x2 - r->x1; in drm_rect_width() [all …]
|
| /include/media/ |
| A D | v4l2-rect.h | 66 if (r->left + r->width > boundary->left + boundary->width) in v4l2_rect_map_inside() 67 r->left = boundary->left + boundary->width - r->width; in v4l2_rect_map_inside() 68 if (r->top + r->height > boundary->top + boundary->height) in v4l2_rect_map_inside() 69 r->top = boundary->top + boundary->height - r->height; in v4l2_rect_map_inside() 127 r->height = max(0, bottom - r->top); in v4l2_rect_intersect() 128 r->width = max(0, right - r->left); in v4l2_rect_intersect() 149 r->left = r->top = r->width = r->height = 0; in v4l2_rect_scale() 152 r->left = (((r->left - from->left) * to->width) / from->width) & ~1; in v4l2_rect_scale() 153 r->width = ((r->width * to->width) / from->width) & ~1; in v4l2_rect_scale() 154 r->top = ((r->top - from->top) * to->height) / from->height; in v4l2_rect_scale() [all …]
|
| /include/asm-generic/bitops/ |
| A D | ffs.h | 15 int r = 1; in generic_ffs() local 21 r += 16; in generic_ffs() 25 r += 8; in generic_ffs() 29 r += 4; in generic_ffs() 33 r += 2; in generic_ffs() 37 r += 1; in generic_ffs() 39 return r; in generic_ffs()
|
| A D | fls.h | 15 int r = 32; in generic_fls() local 21 r -= 16; in generic_fls() 25 r -= 8; in generic_fls() 29 r -= 4; in generic_fls() 33 r -= 2; in generic_fls() 37 r -= 1; in generic_fls() 39 return r; in generic_fls()
|
| /include/soc/arc/ |
| A D | arc_aux.h | 11 #define read_aux_reg(r) __builtin_arc_lr(r) argument 14 #define write_aux_reg(r, v) __builtin_arc_sr((unsigned int)(v), r) argument 18 static inline int read_aux_reg(u32 r) in read_aux_reg() argument 27 static inline void write_aux_reg(u32 r, u32 v) in write_aux_reg() argument
|
| /include/crypto/ |
| A D | b128ops.h | 60 static inline void be128_xor(be128 *r, const be128 *p, const be128 *q) in be128_xor() argument 62 r->a = p->a ^ q->a; in be128_xor() 63 r->b = p->b ^ q->b; in be128_xor() 66 static inline void le128_xor(le128 *r, const le128 *p, const le128 *q) in le128_xor() argument 68 r->a = p->a ^ q->a; in le128_xor() 69 r->b = p->b ^ q->b; in le128_xor()
|
| A D | gf128mul.h | 180 static inline void gf128mul_x_lle(be128 *r, const be128 *x) in gf128mul_x_lle() argument 189 r->b = cpu_to_be64((b >> 1) | (a << 63)); in gf128mul_x_lle() 190 r->a = cpu_to_be64((a >> 1) ^ _tt); in gf128mul_x_lle() 193 static inline void gf128mul_x_bbe(be128 *r, const be128 *x) in gf128mul_x_bbe() argument 201 r->a = cpu_to_be64((a << 1) | (b >> 63)); in gf128mul_x_bbe() 202 r->b = cpu_to_be64((b << 1) ^ _tt); in gf128mul_x_bbe() 206 static inline void gf128mul_x_ble(le128 *r, const le128 *x) in gf128mul_x_ble() argument 214 r->a = cpu_to_le64((a << 1) | (b >> 63)); in gf128mul_x_ble() 215 r->b = cpu_to_le64((b << 1) ^ _tt); in gf128mul_x_ble() 226 void gf128mul_x8_ble(le128 *r, const le128 *x);
|
| A D | aria.h | 311 return ((v << r) | (v >> (32 - r))); in rotl32() 316 return ((v >> r) | (v << (32 - r))); in rotr32() 437 int r = n % 32; in aria_gsrk() local 440 ((y[q % 4]) >> r) ^ in aria_gsrk() 441 ((y[(q + 3) % 4]) << (32 - r)); in aria_gsrk() 443 ((y[(q + 1) % 4]) >> r) ^ in aria_gsrk() 444 ((y[q % 4]) << (32 - r)); in aria_gsrk() 446 ((y[(q + 2) % 4]) >> r) ^ in aria_gsrk() 447 ((y[(q + 1) % 4]) << (32 - r)); in aria_gsrk() 449 ((y[(q + 3) % 4]) >> r) ^ in aria_gsrk() [all …]
|
| /include/trace/events/ |
| A D | damon.h | 39 unsigned int target_idx, struct damon_region *r, 61 __entry->start = r->ar.start; 62 __entry->end = r->ar.end; 63 __entry->nr_accesses = r->nr_accesses_bp / 10000; 64 __entry->age = r->age; 94 TP_PROTO(unsigned int target_id, struct damon_region *r, 97 TP_ARGS(target_id, r, nr_regions), 111 __entry->start = r->ar.start; 112 __entry->end = r->ar.end; 113 __entry->nr_accesses = r->nr_accesses; [all …]
|
| /include/xen/ |
| A D | hvm.h | 42 int r; in hvm_get_parameter() local 46 r = HYPERVISOR_hvm_op(HVMOP_get_param, &xhv); in hvm_get_parameter() 47 if (r < 0) { in hvm_get_parameter() 49 param_name(idx), idx, r); in hvm_get_parameter() 50 return r; in hvm_get_parameter() 53 return r; in hvm_get_parameter()
|
| /include/math-emu/ |
| A D | double.h | 117 #define FP_CMP_D(r,X,Y,un) _FP_CMP(D,2,r,X,Y,un) argument 118 #define FP_CMP_EQ_D(r,X,Y) _FP_CMP_EQ(D,2,r,X,Y) argument 120 #define FP_TO_INT_D(r,X,rsz,rsg) _FP_TO_INT(D,2,r,X,rsz,rsg) argument 121 #define FP_TO_INT_ROUND_D(r,X,rsz,rsg) _FP_TO_INT_ROUND(D,2,r,X,rsz,rsg) argument 122 #define FP_FROM_INT_D(X,r,rs,rt) _FP_FROM_INT(D,2,X,r,rs,rt) argument 192 #define FP_CMP_D(r,X,Y,un) _FP_CMP(D,1,r,X,Y,un) argument 193 #define FP_CMP_EQ_D(r,X,Y) _FP_CMP_EQ(D,1,r,X,Y) argument 195 #define FP_TO_INT_D(r,X,rsz,rsg) _FP_TO_INT(D,1,r,X,rsz,rsg) argument 196 #define FP_TO_INT_ROUND_D(r,X,rsz,rsg) _FP_TO_INT_ROUND(D,1,r,X,rsz,rsg) argument 197 #define FP_FROM_INT_D(X,r,rs,rt) _FP_FROM_INT(D,1,X,r,rs,rt) argument
|
| A D | quad.h | 123 #define FP_CMP_Q(r,X,Y,un) _FP_CMP(Q,4,r,X,Y,un) argument 124 #define FP_CMP_EQ_Q(r,X,Y) _FP_CMP_EQ(Q,4,r,X,Y) argument 126 #define FP_TO_INT_Q(r,X,rsz,rsg) _FP_TO_INT(Q,4,r,X,rsz,rsg) argument 127 #define FP_TO_INT_ROUND_Q(r,X,rsz,rsg) _FP_TO_INT_ROUND(Q,4,r,X,rsz,rsg) argument 128 #define FP_FROM_INT_Q(X,r,rs,rt) _FP_FROM_INT(Q,4,X,r,rs,rt) argument 196 #define FP_CMP_Q(r,X,Y,un) _FP_CMP(Q,2,r,X,Y,un) argument 197 #define FP_CMP_EQ_Q(r,X,Y) _FP_CMP_EQ(Q,2,r,X,Y) argument 199 #define FP_TO_INT_Q(r,X,rsz,rsg) _FP_TO_INT(Q,2,r,X,rsz,rsg) argument 200 #define FP_TO_INT_ROUND_Q(r,X,rsz,rsg) _FP_TO_INT_ROUND(Q,2,r,X,rsz,rsg) argument 201 #define FP_FROM_INT_Q(X,r,rs,rt) _FP_FROM_INT(Q,2,X,r,rs,rt) argument
|
| A D | single.h | 106 #define FP_CMP_S(r,X,Y,un) _FP_CMP(S,1,r,X,Y,un) argument 107 #define FP_CMP_EQ_S(r,X,Y) _FP_CMP_EQ(S,1,r,X,Y) argument 109 #define FP_TO_INT_S(r,X,rsz,rsg) _FP_TO_INT(S,1,r,X,rsz,rsg) argument 110 #define FP_TO_INT_ROUND_S(r,X,rsz,rsg) _FP_TO_INT_ROUND(S,1,r,X,rsz,rsg) argument 111 #define FP_FROM_INT_S(X,r,rs,rt) _FP_FROM_INT(S,1,X,r,rs,rt) argument
|
| A D | op-common.h | 667 r = 0; \ 679 r = 0; \ 688 r = 1; \ 694 r = 0; \ 696 r = ~r; \ 722 r = -r; \ 768 r = -r; \ 777 r = 0; \ 779 r = ~r; \ 783 r = 1; \ [all …]
|
| /include/linux/mtd/ |
| A D | map.h | 273 map_word r; \ 277 r; \ 286 r; \ 295 r; \ 324 map_word r; in map_word_load() local 341 return r; in map_word_load() 376 map_word r; in map_word_ff() local 385 r.x[i] = ~0UL; in map_word_ff() 387 return r; in map_word_ff() 392 map_word r; in inline_map_read() local [all …]
|
| /include/video/ |
| A D | tgafb.h | 228 TGA_WRITE_REG(struct tga_par *par, u32 v, u32 r) in TGA_WRITE_REG() argument 230 writel(v, par->tga_regs_base +r); in TGA_WRITE_REG() 234 TGA_READ_REG(struct tga_par *par, u32 r) in TGA_READ_REG() argument 236 return readl(par->tga_regs_base +r); in TGA_READ_REG() 240 BT485_WRITE(struct tga_par *par, u8 v, u8 r) in BT485_WRITE() argument 242 TGA_WRITE_REG(par, r, TGA_RAMDAC_SETUP_REG); in BT485_WRITE() 243 TGA_WRITE_REG(par, v | (r << 8), TGA_RAMDAC_REG); in BT485_WRITE()
|