Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 212) sorted by relevance

123456789

/include/linux/
Dskb_array.h32 static inline bool __skb_array_full(struct skb_array *a) in __skb_array_full() argument
34 return __ptr_ring_full(&a->ring); in __skb_array_full()
37 static inline bool skb_array_full(struct skb_array *a) in skb_array_full() argument
39 return ptr_ring_full(&a->ring); in skb_array_full()
42 static inline int skb_array_produce(struct skb_array *a, struct sk_buff *skb) in skb_array_produce() argument
44 return ptr_ring_produce(&a->ring, skb); in skb_array_produce()
47 static inline int skb_array_produce_irq(struct skb_array *a, struct sk_buff *skb) in skb_array_produce_irq() argument
49 return ptr_ring_produce_irq(&a->ring, skb); in skb_array_produce_irq()
52 static inline int skb_array_produce_bh(struct skb_array *a, struct sk_buff *skb) in skb_array_produce_bh() argument
54 return ptr_ring_produce_bh(&a->ring, skb); in skb_array_produce_bh()
[all …]
Djhash.h35 #define __jhash_mix(a, b, c) \ argument
37 a -= c; a ^= rol32(c, 4); c += b; \
38 b -= a; b ^= rol32(a, 6); a += c; \
39 c -= b; c ^= rol32(b, 8); b += a; \
40 a -= c; a ^= rol32(c, 16); c += b; \
41 b -= a; b ^= rol32(a, 19); a += c; \
42 c -= b; c ^= rol32(b, 4); b += a; \
46 #define __jhash_final(a, b, c) \ argument
49 a ^= c; a -= rol32(c, 11); \
50 b ^= a; b -= rol32(a, 25); \
[all …]
Dtnum.h29 struct tnum tnum_lshift(struct tnum a, u8 shift);
31 struct tnum tnum_rshift(struct tnum a, u8 shift);
33 struct tnum tnum_arshift(struct tnum a, u8 min_shift, u8 insn_bitness);
35 struct tnum tnum_add(struct tnum a, struct tnum b);
37 struct tnum tnum_sub(struct tnum a, struct tnum b);
39 struct tnum tnum_and(struct tnum a, struct tnum b);
41 struct tnum tnum_or(struct tnum a, struct tnum b);
43 struct tnum tnum_xor(struct tnum a, struct tnum b);
45 struct tnum tnum_mul(struct tnum a, struct tnum b);
48 struct tnum tnum_intersect(struct tnum a, struct tnum b);
[all …]
Djiffies.h104 #define time_after(a,b) \ argument
105 (typecheck(unsigned long, a) && \
107 ((long)((b) - (a)) < 0))
108 #define time_before(a,b) time_after(b,a) argument
110 #define time_after_eq(a,b) \ argument
111 (typecheck(unsigned long, a) && \
113 ((long)((a) - (b)) >= 0))
114 #define time_before_eq(a,b) time_after_eq(b,a) argument
119 #define time_in_range(a,b,c) \ argument
120 (time_after_eq(a,b) && \
[all …]
Dalign.h8 #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) argument
9 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) argument
11 #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) argument
12 #define PTR_ALIGN_DOWN(p, a) ((typeof(p))ALIGN_DOWN((unsigned long)(p), (a))) argument
13 #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) argument
Doverflow.h41 #define is_non_negative(a) ((a) > 0 || (a) == 0) argument
42 #define is_negative(a) (!(is_non_negative(a))) argument
66 #define check_add_overflow(a, b, d) \ argument
67 __must_check_overflow(__builtin_add_overflow(a, b, d))
81 #define check_sub_overflow(a, b, d) \ argument
82 __must_check_overflow(__builtin_sub_overflow(a, b, d))
96 #define check_mul_overflow(a, b, d) \ argument
97 __must_check_overflow(__builtin_mul_overflow(a, b, d))
118 #define check_shl_overflow(a, s, d) __must_check_overflow(({ \ argument
119 typeof(a) _a = a; \
[all …]
/include/net/tc_act/
Dtc_mirred.h15 #define to_mirred(a) ((struct tcf_mirred *)a) argument
17 static inline bool is_tcf_mirred_egress_redirect(const struct tc_action *a) in is_tcf_mirred_egress_redirect() argument
20 if (a->ops && a->ops->id == TCA_ID_MIRRED) in is_tcf_mirred_egress_redirect()
21 return to_mirred(a)->tcfm_eaction == TCA_EGRESS_REDIR; in is_tcf_mirred_egress_redirect()
26 static inline bool is_tcf_mirred_egress_mirror(const struct tc_action *a) in is_tcf_mirred_egress_mirror() argument
29 if (a->ops && a->ops->id == TCA_ID_MIRRED) in is_tcf_mirred_egress_mirror()
30 return to_mirred(a)->tcfm_eaction == TCA_EGRESS_MIRROR; in is_tcf_mirred_egress_mirror()
35 static inline bool is_tcf_mirred_ingress_redirect(const struct tc_action *a) in is_tcf_mirred_ingress_redirect() argument
38 if (a->ops && a->ops->id == TCA_ID_MIRRED) in is_tcf_mirred_ingress_redirect()
39 return to_mirred(a)->tcfm_eaction == TCA_INGRESS_REDIR; in is_tcf_mirred_ingress_redirect()
[all …]
Dtc_gact.h17 #define to_gact(a) ((struct tcf_gact *)a) argument
19 static inline bool __is_tcf_gact_act(const struct tc_action *a, int act, in __is_tcf_gact_act() argument
25 if (a->ops && a->ops->id != TCA_ID_GACT) in __is_tcf_gact_act()
28 gact = to_gact(a); in __is_tcf_gact_act()
37 static inline bool is_tcf_gact_ok(const struct tc_action *a) in is_tcf_gact_ok() argument
39 return __is_tcf_gact_act(a, TC_ACT_OK, false); in is_tcf_gact_ok()
42 static inline bool is_tcf_gact_shot(const struct tc_action *a) in is_tcf_gact_shot() argument
44 return __is_tcf_gact_act(a, TC_ACT_SHOT, false); in is_tcf_gact_shot()
47 static inline bool is_tcf_gact_trap(const struct tc_action *a) in is_tcf_gact_trap() argument
49 return __is_tcf_gact_act(a, TC_ACT_TRAP, false); in is_tcf_gact_trap()
[all …]
Dtc_skbedit.h28 #define to_skbedit(a) ((struct tcf_skbedit *)a) argument
31 static inline bool is_tcf_skbedit_with_flag(const struct tc_action *a, u32 flag) in is_tcf_skbedit_with_flag() argument
36 if (a->ops && a->ops->id == TCA_ID_SKBEDIT) { in is_tcf_skbedit_with_flag()
38 flags = rcu_dereference(to_skbedit(a)->params)->flags; in is_tcf_skbedit_with_flag()
47 static inline bool is_tcf_skbedit_mark(const struct tc_action *a) in is_tcf_skbedit_mark() argument
49 return is_tcf_skbedit_with_flag(a, SKBEDIT_F_MARK); in is_tcf_skbedit_mark()
52 static inline u32 tcf_skbedit_mark(const struct tc_action *a) in tcf_skbedit_mark() argument
57 mark = rcu_dereference(to_skbedit(a)->params)->mark; in tcf_skbedit_mark()
64 static inline bool is_tcf_skbedit_ptype(const struct tc_action *a) in is_tcf_skbedit_ptype() argument
66 return is_tcf_skbedit_with_flag(a, SKBEDIT_F_PTYPE); in is_tcf_skbedit_ptype()
[all …]
Dtc_tunnel_key.h25 #define to_tunnel_key(a) ((struct tcf_tunnel_key *)a) argument
27 static inline bool is_tcf_tunnel_set(const struct tc_action *a) in is_tcf_tunnel_set() argument
30 struct tcf_tunnel_key *t = to_tunnel_key(a); in is_tcf_tunnel_set()
34 lockdep_is_held(&a->tcfa_lock)); in is_tcf_tunnel_set()
35 if (a->ops && a->ops->id == TCA_ID_TUNNEL_KEY) in is_tcf_tunnel_set()
41 static inline bool is_tcf_tunnel_release(const struct tc_action *a) in is_tcf_tunnel_release() argument
44 struct tcf_tunnel_key *t = to_tunnel_key(a); in is_tcf_tunnel_release()
48 lockdep_is_held(&a->tcfa_lock)); in is_tcf_tunnel_release()
49 if (a->ops && a->ops->id == TCA_ID_TUNNEL_KEY) in is_tcf_tunnel_release()
55 static inline struct ip_tunnel_info *tcf_tunnel_info(const struct tc_action *a) in tcf_tunnel_info() argument
[all …]
Dtc_sample.h18 #define to_sample(a) ((struct tcf_sample *)a) argument
20 static inline bool is_tcf_sample(const struct tc_action *a) in is_tcf_sample() argument
23 return a->ops && a->ops->id == TCA_ID_SAMPLE; in is_tcf_sample()
29 static inline __u32 tcf_sample_rate(const struct tc_action *a) in tcf_sample_rate() argument
31 return to_sample(a)->rate; in tcf_sample_rate()
34 static inline bool tcf_sample_truncate(const struct tc_action *a) in tcf_sample_truncate() argument
36 return to_sample(a)->truncate; in tcf_sample_truncate()
39 static inline int tcf_sample_trunc_size(const struct tc_action *a) in tcf_sample_trunc_size() argument
41 return to_sample(a)->trunc_size; in tcf_sample_trunc_size()
Dtc_ct.h38 #define to_ct(a) ((struct tcf_ct *)a) argument
39 #define to_ct_params(a) \ argument
41 rcu_dereference_protected(to_ct(a)->params, \
42 lockdep_is_held(&a->tcfa_lock)))
44 static inline uint16_t tcf_ct_zone(const struct tc_action *a) in tcf_ct_zone() argument
46 return to_ct_params(a)->zone; in tcf_ct_zone()
49 static inline int tcf_ct_action(const struct tc_action *a) in tcf_ct_action() argument
51 return to_ct_params(a)->ct_action; in tcf_ct_action()
54 static inline struct nf_flowtable *tcf_ct_ft(const struct tc_action *a) in tcf_ct_ft() argument
56 return to_ct_params(a)->nf_ft; in tcf_ct_ft()
[all …]
Dtc_mpls.h28 #define to_mpls(a) ((struct tcf_mpls *)a) argument
30 static inline bool is_tcf_mpls(const struct tc_action *a) in is_tcf_mpls() argument
33 if (a->ops && a->ops->id == TCA_ID_MPLS) in is_tcf_mpls()
39 static inline u32 tcf_mpls_action(const struct tc_action *a) in tcf_mpls_action() argument
44 tcfm_action = rcu_dereference(to_mpls(a)->mpls_p)->tcfm_action; in tcf_mpls_action()
50 static inline __be16 tcf_mpls_proto(const struct tc_action *a) in tcf_mpls_proto() argument
55 tcfm_proto = rcu_dereference(to_mpls(a)->mpls_p)->tcfm_proto; in tcf_mpls_proto()
61 static inline u32 tcf_mpls_label(const struct tc_action *a) in tcf_mpls_label() argument
66 tcfm_label = rcu_dereference(to_mpls(a)->mpls_p)->tcfm_label; in tcf_mpls_label()
72 static inline u8 tcf_mpls_tc(const struct tc_action *a) in tcf_mpls_tc() argument
[all …]
Dtc_pedit.h28 #define to_pedit(a) ((struct tcf_pedit *)a) argument
29 #define to_pedit_parms(a) (rcu_dereference(to_pedit(a)->parms)) argument
31 static inline bool is_tcf_pedit(const struct tc_action *a) in is_tcf_pedit() argument
34 if (a->ops && a->ops->id == TCA_ID_PEDIT) in is_tcf_pedit()
40 static inline int tcf_pedit_nkeys(const struct tc_action *a) in tcf_pedit_nkeys() argument
46 parms = to_pedit_parms(a); in tcf_pedit_nkeys()
53 static inline u32 tcf_pedit_htype(const struct tc_action *a, int index) in tcf_pedit_htype() argument
59 parms = to_pedit_parms(a); in tcf_pedit_htype()
67 static inline u32 tcf_pedit_cmd(const struct tc_action *a, int index) in tcf_pedit_cmd() argument
73 parms = to_pedit_parms(a); in tcf_pedit_cmd()
[all …]
Dtc_vlan.h27 #define to_vlan(a) ((struct tcf_vlan *)a) argument
29 static inline bool is_tcf_vlan(const struct tc_action *a) in is_tcf_vlan() argument
32 if (a->ops && a->ops->id == TCA_ID_VLAN) in is_tcf_vlan()
38 static inline u32 tcf_vlan_action(const struct tc_action *a) in tcf_vlan_action() argument
43 tcfv_action = rcu_dereference(to_vlan(a)->vlan_p)->tcfv_action; in tcf_vlan_action()
49 static inline u16 tcf_vlan_push_vid(const struct tc_action *a) in tcf_vlan_push_vid() argument
54 tcfv_push_vid = rcu_dereference(to_vlan(a)->vlan_p)->tcfv_push_vid; in tcf_vlan_push_vid()
60 static inline __be16 tcf_vlan_push_proto(const struct tc_action *a) in tcf_vlan_push_proto() argument
65 tcfv_push_proto = rcu_dereference(to_vlan(a)->vlan_p)->tcfv_push_proto; in tcf_vlan_push_proto()
71 static inline u8 tcf_vlan_push_prio(const struct tc_action *a) in tcf_vlan_push_prio() argument
[all …]
Dtc_gate.h52 #define to_gate(a) ((struct tcf_gate *)a) argument
54 static inline bool is_tcf_gate(const struct tc_action *a) in is_tcf_gate() argument
57 if (a->ops && a->ops->id == TCA_ID_GATE) in is_tcf_gate()
63 static inline u32 tcf_gate_index(const struct tc_action *a) in tcf_gate_index() argument
65 return a->tcfa_index; in tcf_gate_index()
68 static inline s32 tcf_gate_prio(const struct tc_action *a) in tcf_gate_prio() argument
72 tcfg_prio = to_gate(a)->param.tcfg_priority; in tcf_gate_prio()
77 static inline u64 tcf_gate_basetime(const struct tc_action *a) in tcf_gate_basetime() argument
81 tcfg_basetime = to_gate(a)->param.tcfg_basetime; in tcf_gate_basetime()
86 static inline u64 tcf_gate_cycletime(const struct tc_action *a) in tcf_gate_cycletime() argument
[all …]
Dtc_csum.h19 #define to_tcf_csum(a) ((struct tcf_csum *)a) argument
21 static inline bool is_tcf_csum(const struct tc_action *a) in is_tcf_csum() argument
24 if (a->ops && a->ops->id == TCA_ID_CSUM) in is_tcf_csum()
30 static inline u32 tcf_csum_update_flags(const struct tc_action *a) in tcf_csum_update_flags() argument
35 update_flags = rcu_dereference(to_tcf_csum(a)->params)->update_flags; in tcf_csum_update_flags()
/include/media/i2c/
Dlm3646.h26 #define LM3646_TOTAL_FLASH_BRT_uA_TO_REG(a) \ argument
27 ((a) < LM3646_TOTAL_FLASH_BRT_MIN ? 0 : \
28 ((((a) - LM3646_TOTAL_FLASH_BRT_MIN) / LM3646_TOTAL_FLASH_BRT_STEP)))
36 #define LM3646_TOTAL_TORCH_BRT_uA_TO_REG(a) \ argument
37 ((a) < LM3646_TOTAL_TORCH_BRT_MIN ? 0 : \
38 ((((a) - LM3646_TOTAL_TORCH_BRT_MIN) / LM3646_TOTAL_TORCH_BRT_STEP)))
46 #define LM3646_LED1_FLASH_BRT_uA_TO_REG(a) \ argument
47 ((a) <= LM3646_LED1_FLASH_BRT_MIN ? 0 : \
48 ((((a) - LM3646_LED1_FLASH_BRT_MIN) / LM3646_LED1_FLASH_BRT_STEP))+1)
56 #define LM3646_LED1_TORCH_BRT_uA_TO_REG(a) \ argument
[all …]
Dlm3560.h26 #define LM3560_FLASH_BRT_uA_TO_REG(a) \ argument
27 ((a) < LM3560_FLASH_BRT_MIN ? 0 : \
28 (((a) - LM3560_FLASH_BRT_MIN) / LM3560_FLASH_BRT_STEP))
29 #define LM3560_FLASH_BRT_REG_TO_uA(a) \ argument
30 ((a) * LM3560_FLASH_BRT_STEP + LM3560_FLASH_BRT_MIN)
38 #define LM3560_FLASH_TOUT_ms_TO_REG(a) \ argument
39 ((a) < LM3560_FLASH_TOUT_MIN ? 0 : \
40 (((a) - LM3560_FLASH_TOUT_MIN) / LM3560_FLASH_TOUT_STEP))
41 #define LM3560_FLASH_TOUT_REG_TO_ms(a) \ argument
42 ((a) * LM3560_FLASH_TOUT_STEP + LM3560_FLASH_TOUT_MIN)
[all …]
/include/asm-generic/
Dlocal64.h25 local_t a; member
30 #define local64_read(l) local_read(&(l)->a)
31 #define local64_set(l,i) local_set((&(l)->a),(i))
32 #define local64_inc(l) local_inc(&(l)->a)
33 #define local64_dec(l) local_dec(&(l)->a)
34 #define local64_add(i,l) local_add((i),(&(l)->a))
35 #define local64_sub(i,l) local_sub((i),(&(l)->a))
37 #define local64_sub_and_test(i, l) local_sub_and_test((i), (&(l)->a))
38 #define local64_dec_and_test(l) local_dec_and_test(&(l)->a)
39 #define local64_inc_and_test(l) local_inc_and_test(&(l)->a)
[all …]
Dlocal.h24 atomic_long_t a; member
29 #define local_read(l) atomic_long_read(&(l)->a)
30 #define local_set(l,i) atomic_long_set((&(l)->a),(i))
31 #define local_inc(l) atomic_long_inc(&(l)->a)
32 #define local_dec(l) atomic_long_dec(&(l)->a)
33 #define local_add(i,l) atomic_long_add((i),(&(l)->a))
34 #define local_sub(i,l) atomic_long_sub((i),(&(l)->a))
36 #define local_sub_and_test(i, l) atomic_long_sub_and_test((i), (&(l)->a))
37 #define local_dec_and_test(l) atomic_long_dec_and_test(&(l)->a)
38 #define local_inc_and_test(l) atomic_long_inc_and_test(&(l)->a)
[all …]
/include/linux/decompress/
Dmm.h62 #define large_malloc(a) malloc(a) argument
63 #define large_free(a) free(a) argument
81 #define malloc(a) kmalloc(a, GFP_KERNEL) argument
82 #define free(a) kfree(a) argument
84 #define large_malloc(a) vmalloc(a) argument
85 #define large_free(a) vfree(a) argument
/include/crypto/
Dgf128mul.h163 void gf128mul_lle(be128 *a, const be128 *b);
165 void gf128mul_bbe(be128 *a, const be128 *b);
184 u64 a = be64_to_cpu(x->a); in gf128mul_x_lle() local
191 r->b = cpu_to_be64((b >> 1) | (a << 63)); in gf128mul_x_lle()
192 r->a = cpu_to_be64((a >> 1) ^ _tt); in gf128mul_x_lle()
197 u64 a = be64_to_cpu(x->a); in gf128mul_x_bbe() local
201 u64 _tt = gf128mul_mask_from_bit(a, 63) & 0x87; in gf128mul_x_bbe()
203 r->a = cpu_to_be64((a << 1) | (b >> 63)); in gf128mul_x_bbe()
210 u64 a = le64_to_cpu(x->a); in gf128mul_x_ble() local
214 u64 _tt = gf128mul_mask_from_bit(a, 63) & 0x87; in gf128mul_x_ble()
[all …]
/include/drm/
Ddrm_fixed.h79 static inline s64 drm_int2fixp(int a) in drm_int2fixp() argument
81 return ((s64)a) << DRM_FIXED_POINT; in drm_int2fixp()
84 static inline int drm_fixp2int(s64 a) in drm_fixp2int() argument
86 return ((s64)a) >> DRM_FIXED_POINT; in drm_fixp2int()
89 static inline int drm_fixp2int_ceil(s64 a) in drm_fixp2int_ceil() argument
91 if (a > 0) in drm_fixp2int_ceil()
92 return drm_fixp2int(a + DRM_FIXED_ALMOST_ONE); in drm_fixp2int_ceil()
94 return drm_fixp2int(a - DRM_FIXED_ALMOST_ONE); in drm_fixp2int_ceil()
97 static inline unsigned drm_fixp_msbset(s64 a) in drm_fixp_msbset() argument
99 unsigned shift, sign = (a >> 63) & 1; in drm_fixp_msbset()
[all …]
/include/net/
Dcodel.h65 #define MS2TIME(a) ((a * NSEC_PER_MSEC) >> CODEL_SHIFT) argument
78 #define codel_time_after(a, b) \ argument
79 (typecheck(codel_time_t, a) && \
81 ((s32)((a) - (b)) > 0))
82 #define codel_time_before(a, b) codel_time_after(b, a) argument
84 #define codel_time_after_eq(a, b) \ argument
85 (typecheck(codel_time_t, a) && \
87 ((s32)((a) - (b)) >= 0))
88 #define codel_time_before_eq(a, b) codel_time_after_eq(b, a) argument

123456789