| /include/linux/ |
| D | skb_array.h | 32 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 …]
|
| D | jhash.h | 35 #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 …]
|
| D | tnum.h | 34 struct tnum tnum_lshift(struct tnum a, u8 shift); 36 struct tnum tnum_rshift(struct tnum a, u8 shift); 38 struct tnum tnum_arshift(struct tnum a, u8 min_shift, u8 insn_bitness); 40 struct tnum tnum_add(struct tnum a, struct tnum b); 42 struct tnum tnum_sub(struct tnum a, struct tnum b); 44 struct tnum tnum_and(struct tnum a, struct tnum b); 46 struct tnum tnum_or(struct tnum a, struct tnum b); 48 struct tnum tnum_xor(struct tnum a, struct tnum b); 50 struct tnum tnum_mul(struct tnum a, struct tnum b); 53 struct tnum tnum_intersect(struct tnum a, struct tnum b); [all …]
|
| D | jiffies.h | 127 #define time_after(a,b) \ argument 128 (typecheck(unsigned long, a) && \ 130 ((long)((b) - (a)) < 0)) 138 #define time_before(a,b) time_after(b,a) argument 147 #define time_after_eq(a,b) \ argument 148 (typecheck(unsigned long, a) && \ 150 ((long)((a) - (b)) >= 0)) 158 #define time_before_eq(a,b) time_after_eq(b,a) argument 168 #define time_in_range(a,b,c) \ argument 169 (time_after_eq(a,b) && \ [all …]
|
| D | align.h | 8 #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
|
| /include/net/tc_act/ |
| D | tc_gact.h | 17 #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 …]
|
| D | tc_skbedit.h | 29 #define to_skbedit(a) ((struct tcf_skbedit *)a) argument 32 static inline bool is_tcf_skbedit_with_flag(const struct tc_action *a, u32 flag) in is_tcf_skbedit_with_flag() argument 37 if (a->ops && a->ops->id == TCA_ID_SKBEDIT) { in is_tcf_skbedit_with_flag() 39 flags = rcu_dereference(to_skbedit(a)->params)->flags; in is_tcf_skbedit_with_flag() 48 static inline bool is_tcf_skbedit_mark(const struct tc_action *a) in is_tcf_skbedit_mark() argument 50 return is_tcf_skbedit_with_flag(a, SKBEDIT_F_MARK); in is_tcf_skbedit_mark() 53 static inline u32 tcf_skbedit_mark(const struct tc_action *a) in tcf_skbedit_mark() argument 58 mark = rcu_dereference(to_skbedit(a)->params)->mark; in tcf_skbedit_mark() 65 static inline bool is_tcf_skbedit_ptype(const struct tc_action *a) in is_tcf_skbedit_ptype() argument 67 return is_tcf_skbedit_with_flag(a, SKBEDIT_F_PTYPE); in is_tcf_skbedit_ptype() [all …]
|
| D | tc_mirred.h | 17 #define to_mirred(a) ((struct tcf_mirred *)a) argument 19 static inline bool is_tcf_mirred_egress_redirect(const struct tc_action *a) in is_tcf_mirred_egress_redirect() argument 22 if (a->ops && a->ops->id == TCA_ID_MIRRED) in is_tcf_mirred_egress_redirect() 23 return to_mirred(a)->tcfm_eaction == TCA_EGRESS_REDIR; in is_tcf_mirred_egress_redirect() 28 static inline bool is_tcf_mirred_egress_mirror(const struct tc_action *a) in is_tcf_mirred_egress_mirror() argument 31 if (a->ops && a->ops->id == TCA_ID_MIRRED) in is_tcf_mirred_egress_mirror() 32 return to_mirred(a)->tcfm_eaction == TCA_EGRESS_MIRROR; in is_tcf_mirred_egress_mirror() 37 static inline bool is_tcf_mirred_ingress_redirect(const struct tc_action *a) in is_tcf_mirred_ingress_redirect() argument 40 if (a->ops && a->ops->id == TCA_ID_MIRRED) in is_tcf_mirred_ingress_redirect() 41 return to_mirred(a)->tcfm_eaction == TCA_INGRESS_REDIR; in is_tcf_mirred_ingress_redirect() [all …]
|
| D | tc_ct.h | 40 #define to_ct(a) ((struct tcf_ct *)a) argument 41 #define to_ct_params(a) \ argument 43 rcu_dereference_protected(to_ct(a)->params, \ 44 lockdep_is_held(&a->tcfa_lock))) 46 static inline uint16_t tcf_ct_zone(const struct tc_action *a) in tcf_ct_zone() argument 48 return to_ct_params(a)->zone; in tcf_ct_zone() 51 static inline int tcf_ct_action(const struct tc_action *a) in tcf_ct_action() argument 53 return to_ct_params(a)->ct_action; in tcf_ct_action() 56 static inline struct nf_flowtable *tcf_ct_ft(const struct tc_action *a) in tcf_ct_ft() argument 58 return to_ct_params(a)->nf_ft; in tcf_ct_ft() [all …]
|
| D | tc_tunnel_key.h | 25 #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 …]
|
| D | tc_sample.h | 18 #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()
|
| D | tc_mpls.h | 28 #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 …]
|
| D | tc_pedit.h | 28 #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 …]
|
| D | tc_vlan.h | 27 #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 …]
|
| D | tc_gate.h | 52 #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 s32 tcf_gate_prio(const struct tc_action *a) in tcf_gate_prio() argument 67 tcfg_prio = to_gate(a)->param.tcfg_priority; in tcf_gate_prio() 72 static inline u64 tcf_gate_basetime(const struct tc_action *a) in tcf_gate_basetime() argument 76 tcfg_basetime = to_gate(a)->param.tcfg_basetime; in tcf_gate_basetime() 81 static inline u64 tcf_gate_cycletime(const struct tc_action *a) in tcf_gate_cycletime() argument 85 tcfg_cycletime = to_gate(a)->param.tcfg_cycletime; in tcf_gate_cycletime() 90 static inline u64 tcf_gate_cycletimeext(const struct tc_action *a) in tcf_gate_cycletimeext() argument [all …]
|
| /include/media/i2c/ |
| D | lm3646.h | 26 #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 …]
|
| D | lm3560.h | 26 #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/ |
| D | local64.h | 25 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 …]
|
| D | local.h | 24 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/net/ |
| D | tc_wrapper.h | 22 const struct tc_action *a, \ 46 static inline int tc_act(struct sk_buff *skb, const struct tc_action *a, in tc_act() argument 53 if (a->ops->act == tcf_gact_act) in tc_act() 54 return tcf_gact_act(skb, a, res); in tc_act() 57 if (a->ops->act == tcf_mirred_act) in tc_act() 58 return tcf_mirred_act(skb, a, res); in tc_act() 61 if (a->ops->act == tcf_pedit_act) in tc_act() 62 return tcf_pedit_act(skb, a, res); in tc_act() 65 if (a->ops->act == tcf_skbedit_act) in tc_act() 66 return tcf_skbedit_act(skb, a, res); in tc_act() [all …]
|
| /include/crypto/ |
| D | gf128mul.h | 163 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 …]
|
| D | b128ops.h | 53 __be64 a, b; member 57 __le64 b, a; member 62 r->a = p->a ^ q->a; in be128_xor() 68 r->a = p->a ^ q->a; in le128_xor()
|
| /include/linux/decompress/ |
| D | mm.h | 70 #define large_malloc(a) malloc(a) argument 71 #define large_free(a) free(a) argument 89 #define malloc(a) kmalloc(a, GFP_KERNEL) argument 90 #define free(a) kfree(a) argument 92 #define large_malloc(a) vmalloc(a) argument 93 #define large_free(a) vfree(a) argument
|
| /include/trace/stages/ |
| D | init.h | 14 #define TRACE_DEFINE_ENUM(a) \ argument 16 __##TRACE_SYSTEM##_##a = \ 19 .eval_string = #a, \ 20 .eval_value = a \ 24 *TRACE_SYSTEM##_##a = &__##TRACE_SYSTEM##_##a 27 #define TRACE_DEFINE_SIZEOF(a) \ argument 29 __##TRACE_SYSTEM##_##a = \ 32 .eval_string = "sizeof(" #a ")", \ 33 .eval_value = sizeof(a) \ 37 *TRACE_SYSTEM##_##a = &__##TRACE_SYSTEM##_##a
|
| /include/drm/ |
| D | drm_fixed.h | 81 static inline s64 drm_int2fixp(int a) in drm_int2fixp() argument 83 return ((s64)a) << DRM_FIXED_POINT; in drm_int2fixp() 86 static inline int drm_fixp2int(s64 a) in drm_fixp2int() argument 88 return ((s64)a) >> DRM_FIXED_POINT; in drm_fixp2int() 91 static inline int drm_fixp2int_round(s64 a) in drm_fixp2int_round() argument 93 return drm_fixp2int(a + DRM_FIXED_ONE / 2); in drm_fixp2int_round() 96 static inline int drm_fixp2int_ceil(s64 a) in drm_fixp2int_ceil() argument 98 if (a >= 0) in drm_fixp2int_ceil() 99 return drm_fixp2int(a + DRM_FIXED_ALMOST_ONE); in drm_fixp2int_ceil() 101 return drm_fixp2int(a - DRM_FIXED_ALMOST_ONE); in drm_fixp2int_ceil() [all …]
|