/kernel/linux/linux-5.10/include/net/ |
D | dn_nsp.h | 139 static __inline__ int dn_before(__u16 seq1, __u16 seq2) in dn_before() argument 142 seq2 &= 0x0fff; in dn_before() 144 return (int)((seq1 - seq2) & 0x0fff) > 2048; in dn_before() 148 static __inline__ int dn_after(__u16 seq1, __u16 seq2) in dn_after() argument 151 seq2 &= 0x0fff; in dn_after() 153 return (int)((seq2 - seq1) & 0x0fff) > 2048; in dn_after() 156 static __inline__ int dn_equal(__u16 seq1, __u16 seq2) in dn_equal() argument 158 return ((seq1 ^ seq2) & 0x0fff) == 0; in dn_equal() 161 static __inline__ int dn_before_or_equal(__u16 seq1, __u16 seq2) in dn_before_or_equal() argument 163 return (dn_before(seq1, seq2) || dn_equal(seq1, seq2)); in dn_before_or_equal() [all …]
|
D | tcp.h | 275 static inline bool before(__u32 seq1, __u32 seq2) in before() argument 277 return (__s32)(seq1-seq2) < 0; in before() 279 #define after(seq2, seq1) before(seq1, seq2) argument 282 static inline bool between(__u32 seq1, __u32 seq2, __u32 seq3) in between() argument 284 return seq3 - seq2 >= seq1 - seq2; in between()
|
/kernel/linux/linux-5.10/net/dccp/ |
D | dccp.h | 125 static inline int before48(const u64 seq1, const u64 seq2) in before48() argument 127 return (s64)((seq2 << 16) - (seq1 << 16)) > 0; in before48() 131 #define after48(seq1, seq2) before48(seq2, seq1) argument 134 static inline int between48(const u64 seq1, const u64 seq2, const u64 seq3) in between48() argument 136 return (seq3 << 16) - (seq2 << 16) >= (seq1 << 16) - (seq2 << 16); in between48() 139 static inline u64 max48(const u64 seq1, const u64 seq2) in max48() argument 141 return after48(seq1, seq2) ? seq1 : seq2; in max48()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | bpf_tcp_helpers.h | 95 static __always_inline bool before(__u32 seq1, __u32 seq2) in before() argument 97 return (__s32)(seq1-seq2) < 0; in before() 99 #define after(seq2, seq1) before(seq1, seq2) argument
|
/kernel/linux/linux-5.10/net/rxrpc/ |
D | ar-internal.h | 1094 static inline bool before(u32 seq1, u32 seq2) in before() argument 1096 return (s32)(seq1 - seq2) < 0; in before() 1098 static inline bool before_eq(u32 seq1, u32 seq2) in before_eq() argument 1100 return (s32)(seq1 - seq2) <= 0; in before_eq() 1102 static inline bool after(u32 seq1, u32 seq2) in after() argument 1104 return (s32)(seq1 - seq2) > 0; in after() 1106 static inline bool after_eq(u32 seq1, u32 seq2) in after_eq() argument 1108 return (s32)(seq1 - seq2) >= 0; in after_eq()
|
/kernel/linux/linux-5.10/drivers/video/ |
D | vgastate.c | 52 u8 misc, attr10, gr4, gr5, gr6, seq1, seq2, seq4; in save_vga_text() local 72 seq2 = vga_rseq(state->vgabase, VGA_SEQ_PLANE_WRITE); in save_vga_text() 123 vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, seq2); in save_vga_text() 143 u8 seq1, seq2, seq4; in restore_vga_text() local 152 seq2 = vga_rseq(state->vgabase, VGA_SEQ_PLANE_WRITE); in restore_vga_text() 222 vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, seq2); in restore_vga_text()
|
/kernel/linux/linux-5.10/net/mptcp/ |
D | protocol.h | 497 static inline bool before64(__u64 seq1, __u64 seq2) in before64() argument 499 return (__s64)(seq1 - seq2) < 0; in before64() 502 #define after64(seq2, seq1) before64(seq1, seq2) argument
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | tcp_recovery.c | 5 static bool tcp_rack_sent_after(u64 t1, u64 t2, u32 seq1, u32 seq2) in tcp_rack_sent_after() argument 7 return t1 > t2 || (t1 == t2 && after(seq1, seq2)); in tcp_rack_sent_after()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_request.h | 399 static inline bool i915_seqno_passed(u32 seq1, u32 seq2) in i915_seqno_passed() argument 401 return (s32)(seq1 - seq2) >= 0; in i915_seqno_passed()
|
/kernel/linux/linux-5.10/include/net/bluetooth/ |
D | l2cap.h | 896 static inline int __seq_offset(struct l2cap_chan *chan, __u16 seq1, __u16 seq2) in __seq_offset() argument 898 if (seq1 >= seq2) in __seq_offset() 899 return seq1 - seq2; in __seq_offset() 901 return chan->tx_win_max + 1 - seq2 + seq1; in __seq_offset()
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | nfs4_fs.h | 607 u32 seq2 = be32_to_cpu(s2->seqid); in nfs4_stateid_is_next() local 609 return seq2 == seq1 + 1U || (seq2 == 1U && seq1 == 0xffffffffU); in nfs4_stateid_is_next()
|
/kernel/linux/linux-5.10/net/smc/ |
D | smc_cdc.c | 261 static inline bool smc_cdc_before(u16 seq1, u16 seq2) in smc_cdc_before() argument 263 return (s16)(seq1 - seq2) < 0; in smc_cdc_before()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/ |
D | hw.c | 312 uint8_t misc, gr4, gr5, gr6, seq2, seq4; in nouveau_hw_save_vga_fonts() local 343 seq2 = NVReadVgaSeq(dev, 0, NV_VIO_SR_PLANE_MASK_INDEX); in nouveau_hw_save_vga_fonts() 363 NVWriteVgaSeq(dev, 0, NV_VIO_SR_PLANE_MASK_INDEX, seq2); in nouveau_hw_save_vga_fonts()
|