/linux/include/net/ |
A D | dn_nsp.h | 139 static __inline__ int dn_before(__u16 seq1, __u16 seq2) in dn_before() argument 141 seq1 &= 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 150 seq1 &= 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() 163 return (dn_before(seq1, seq2) || dn_equal(seq1, seq2)); in dn_before_or_equal() 172 static __inline__ int seq_next(__u16 seq1, __u16 seq2) in seq_next() argument [all …]
|
A D | tcp.h | 273 static inline bool before(__u32 seq1, __u32 seq2) in before() argument 275 return (__s32)(seq1-seq2) < 0; in before() 277 #define after(seq2, seq1) before(seq1, seq2) argument 280 static inline bool between(__u32 seq1, __u32 seq2, __u32 seq3) in between() argument 282 return seq3 - seq2 >= seq1 - seq2; in between()
|
/linux/net/dccp/ |
A 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()
|
/linux/drivers/video/ |
A D | vgastate.c | 52 u8 misc, attr10, gr4, gr5, gr6, seq1, seq2, seq4; in save_vga_text() local 76 seq1 = vga_rseq(state->vgabase, VGA_SEQ_CLOCK_MODE); in save_vga_text() 78 vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1 | 1 << 5); in save_vga_text() 132 vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1 & ~(1 << 5)); in save_vga_text() 135 vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1); in save_vga_text() 143 u8 seq1, seq2, seq4; in restore_vga_text() local 156 seq1 = vga_rseq(state->vgabase, VGA_SEQ_CLOCK_MODE); in restore_vga_text() 158 vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1 | 1 << 5); in restore_vga_text() 210 vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1 & ~(1 << 5)); in restore_vga_text() 221 vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1); in restore_vga_text()
|
/linux/tools/testing/selftests/bpf/ |
A D | bpf_tcp_helpers.h | 101 static __always_inline bool before(__u32 seq1, __u32 seq2) in before() argument 103 return (__s32)(seq1-seq2) < 0; in before() 105 #define after(seq2, seq1) before(seq1, seq2) argument
|
/linux/net/rxrpc/ |
A D | ar-internal.h | 1117 static inline bool before(u32 seq1, u32 seq2) in before() argument 1119 return (s32)(seq1 - seq2) < 0; in before() 1121 static inline bool before_eq(u32 seq1, u32 seq2) in before_eq() argument 1123 return (s32)(seq1 - seq2) <= 0; in before_eq() 1125 static inline bool after(u32 seq1, u32 seq2) in after() argument 1127 return (s32)(seq1 - seq2) > 0; in after() 1129 static inline bool after_eq(u32 seq1, u32 seq2) in after_eq() argument 1131 return (s32)(seq1 - seq2) >= 0; in after_eq()
|
/linux/drivers/gpu/drm/mgag200/ |
A D | mgag200_mode.c | 608 u8 seq0, seq1, crtcext1; in mgag200_enable_display() local 622 RREG_SEQ(0x01, seq1); in mgag200_enable_display() 623 seq1 &= ~MGAREG_SEQ1_SCROFF; in mgag200_enable_display() 624 WREG_SEQ(0x01, seq1); in mgag200_enable_display() 636 u8 seq0, seq1, crtcext1; in mgag200_disable_display() local 649 RREG_SEQ(0x01, seq1); in mgag200_disable_display() 650 seq1 |= MGAREG_SEQ1_SCROFF; in mgag200_disable_display() 651 WREG_SEQ(0x01, seq1); in mgag200_disable_display()
|
/linux/net/ipv4/ |
A 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()
|
/linux/drivers/gpu/drm/nouveau/dispnv04/ |
A D | hw.h | 245 uint8_t seq1 = NVReadVgaSeq(dev, head, NV_VIO_SR_CLOCK_INDEX); in NVVgaProtect() local 249 NVWriteVgaSeq(dev, head, NV_VIO_SR_CLOCK_INDEX, seq1 | 0x20); in NVVgaProtect() 252 NVWriteVgaSeq(dev, head, NV_VIO_SR_CLOCK_INDEX, seq1 & ~0x20); /* reenable display */ in NVVgaProtect()
|
A D | crtc.c | 180 unsigned char seq1 = 0, crtc17 = 0; in nv_crtc_dpms() local 200 seq1 = 0x20; in nv_crtc_dpms() 206 seq1 = 0x20; in nv_crtc_dpms() 212 seq1 = 0x20; in nv_crtc_dpms() 219 seq1 = 0x00; in nv_crtc_dpms() 226 seq1 |= (NVReadVgaSeq(dev, nv_crtc->index, NV_VIO_SR_CLOCK_INDEX) & ~0x20); in nv_crtc_dpms() 227 NVWriteVgaSeq(dev, nv_crtc->index, NV_VIO_SR_CLOCK_INDEX, seq1); in nv_crtc_dpms()
|
A D | hw.c | 112 unsigned char seq1; in NVBlankScreen() local 117 seq1 = NVReadVgaSeq(dev, head, NV_VIO_SR_CLOCK_INDEX); in NVBlankScreen() 121 NVWriteVgaSeq(dev, head, NV_VIO_SR_CLOCK_INDEX, seq1 | 0x20); in NVBlankScreen() 123 NVWriteVgaSeq(dev, head, NV_VIO_SR_CLOCK_INDEX, seq1 & ~0x20); in NVBlankScreen()
|
/linux/include/net/bluetooth/ |
A D | l2cap.h | 898 static inline int __seq_offset(struct l2cap_chan *chan, __u16 seq1, __u16 seq2) in __seq_offset() argument 900 if (seq1 >= seq2) in __seq_offset() 901 return seq1 - seq2; in __seq_offset() 903 return chan->tx_win_max + 1 - seq2 + seq1; in __seq_offset()
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_request.h | 455 static inline bool i915_seqno_passed(u32 seq1, u32 seq2) in i915_seqno_passed() argument 457 return (s32)(seq1 - seq2) >= 0; in i915_seqno_passed()
|
/linux/fs/nfs/ |
A D | nfs4_fs.h | 605 u32 seq1 = be32_to_cpu(s1->seqid); in nfs4_stateid_is_next() local 608 return seq2 == seq1 + 1U || (seq2 == 1U && seq1 == 0xffffffffU); in nfs4_stateid_is_next()
|
/linux/net/mptcp/ |
A D | protocol.h | 127 static inline bool before64(__u64 seq1, __u64 seq2) in before64() argument 129 return (__s64)(seq1 - seq2) < 0; in before64() 132 #define after64(seq2, seq1) before64(seq1, seq2) argument
|
/linux/net/smc/ |
A 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()
|
/linux/drivers/net/wireless/realtek/rtw89/ |
A D | pci.h | 412 __le16 seq1; member
|
A D | pci.c | 954 txwp_info->seq1 = 0; in rtw89_pci_txwd_submit()
|
/linux/drivers/net/ethernet/sfc/ |
A D | ptp.c | 185 u32 seq1; member 1204 (evt->seq1 == match->words[1])) { in efx_ptp_match_rx() 1877 evt->seq1 = (EFX_QWORD_FIELD(ptp->evt_frags[2], in ptp_event_rx()
|