Home
last modified time | relevance | path

Searched full:s64 (Results 1 – 25 of 1007) sorted by relevance

12345678910>>...41

/linux/arch/x86/include/asm/
H A Datomic64_32.h12 s64 __aligned(8) counter;
24 * s64 val = arch_atomic64_read_nonatomic(v);
31 * s64 val = arch_atomic64_read_nonatomic(v);
37 static __always_inline s64 arch_atomic64_read_nonatomic(const atomic64_t *v) in arch_atomic64_read_nonatomic()
91 static __always_inline s64 arch_atomic64_cmpxchg(atomic64_t *v, s64 old, s64 new) in arch_atomic64_cmpxchg()
97 static __always_inline bool arch_atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new) in arch_atomic64_try_cmpxchg()
103 static __always_inline s64 arch_atomic64_xchg(atomic64_t *v, s64 n) in arch_atomic64_xchg()
105 s64 o; in arch_atomic64_xchg()
115 static __always_inline void arch_atomic64_set(atomic64_t *v, s64 i) in arch_atomic64_set()
124 static __always_inline s64 arch_atomic64_read(const atomic64_t *v) in arch_atomic64_read()
[all …]
H A Datomic64_64.h13 static __always_inline s64 arch_atomic64_read(const atomic64_t *v) in arch_atomic64_read()
18 static __always_inline void arch_atomic64_set(atomic64_t *v, s64 i) in arch_atomic64_set()
23 static __always_inline void arch_atomic64_add(s64 i, atomic64_t *v) in arch_atomic64_add()
30 static __always_inline void arch_atomic64_sub(s64 i, atomic64_t *v) in arch_atomic64_sub()
37 static __always_inline bool arch_atomic64_sub_and_test(s64 i, atomic64_t *v) in arch_atomic64_sub_and_test()
71 static __always_inline bool arch_atomic64_add_negative(s64 i, atomic64_t *v) in arch_atomic64_add_negative()
77 static __always_inline s64 arch_atomic64_add_return(s64 i, atomic64_t *v) in arch_atomic64_add_return()
85 static __always_inline s64 arch_atomic64_fetch_add(s64 i, atomic64_t *v) in arch_atomic64_fetch_add()
93 static __always_inline s64 arch_atomic64_cmpxchg(atomic64_t *v, s64 old, s64 new) in arch_atomic64_cmpxchg()
99 static __always_inline bool arch_atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new) in arch_atomic64_try_cmpxchg()
[all …]
/linux/include/linux/
H A Dpercpu_counter.h24 s64 count;
33 int __percpu_counter_init_many(struct percpu_counter *fbc, s64 amount,
55 void percpu_counter_set(struct percpu_counter *fbc, s64 amount);
56 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount,
58 s64 __percpu_counter_sum(struct percpu_counter *fbc);
59 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch);
60 bool __percpu_counter_limited_add(struct percpu_counter *fbc, s64 limit,
61 s64 amount, s32 batch);
64 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare()
69 static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add()
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_sensorhub_trace.h20 TP_PROTO(u32 ec_sample_timestamp, u32 ec_fifo_timestamp, s64 fifo_timestamp,
21 s64 current_timestamp, s64 current_time),
27 __field(s64, fifo_timestamp)
28 __field(s64, current_timestamp)
29 __field(s64, current_time)
30 __field(s64, delta)
51 TP_PROTO(u32 ec_sensor_num, u32 ec_fifo_timestamp, s64 fifo_timestamp,
52 s64 current_timestamp, s64 current_time),
57 __field(s64, fifo_timestamp)
58 __field(s64, current_timestamp)
[all …]
/linux/include/asm-generic/
H A Datomic64.h13 s64 counter;
18 extern s64 generic_atomic64_read(const atomic64_t *v);
19 extern void generic_atomic64_set(atomic64_t *v, s64 i);
22 extern void generic_atomic64_##op(s64 a, atomic64_t *v);
25 extern s64 generic_atomic64_##op##_return(s64 a, atomic64_t *v);
28 extern s64 generic_atomic64_fetch_##op(s64 a, atomic64_t *v);
47 extern s64 generic_atomic64_dec_if_positive(atomic64_t *v);
48 extern s64 generic_atomic64_cmpxchg(atomic64_t *v, s64 o, s64 n);
49 extern s64 generic_atomic64_xchg(atomic64_t *v, s64 new);
50 extern s64 generic_atomic64_fetch_add_unless(atomic64_t *v, s64 a, s64 u);
/linux/arch/mips/fw/cfe/
H A Dcfe_api_int.h43 typedef s64 cfe_xptr_t;
58 s64 enum_idx; /* 0-based enumeration index */
60 s64 name_length; /* size of name buffer */
62 s64 val_length; /* size of value string buffer */
75 s64 ticks; /* current time in ticks */
79 s64 status;
83 s64 mi_idx; /* 0-based enumeration index */
84 s64 mi_type; /* type of memory block */
90 s64 fwi_version; /* major, minor, eco version */
91 s64 fwi_totalmem; /* total installed mem */
[all …]
/linux/lib/
H A Datomic64.c45 s64 generic_atomic64_read(const atomic64_t *v) in generic_atomic64_read()
49 s64 val; in generic_atomic64_read()
60 void generic_atomic64_set(atomic64_t *v, s64 i) in generic_atomic64_set()
74 void generic_atomic64_##op(s64 a, atomic64_t *v) \
88 s64 generic_atomic64_##op##_return(s64 a, atomic64_t *v) \
92 s64 val; \
104 s64 generic_atomic64_fetch_##op(s64 a, atomic64_t *v) \
108 s64 val; \
141 s64 generic_atomic64_dec_if_positive(atomic64_t *v) in generic_atomic64_dec_if_positive()
145 s64 val; in generic_atomic64_dec_if_positive()
[all …]
H A Doverflow_kunit.c224 DEFINE_TEST_ARRAY(s64) = {
345 SKIP_64_ON_32(__same_type(t, s64)); \
366 DEFINE_TEST_FUNC(s64, "%lld");
411 kunit_info(test, "got %lld\n", (s64)__d); \
462 TEST_ONE_SHIFT(0, 62, s64, 0, false); in shift_sane_test()
483 TEST_ONE_SHIFT(1, 63, s64, 0, true); in shift_overflow_test()
505 TEST_ONE_SHIFT(4686030735197619275LL, 1, s64, 0, true); in shift_overflow_test()
516 TEST_ONE_SHIFT(4686030735197619275LL, 2, s64, 0, true); in shift_overflow_test()
534 TEST_ONE_SHIFT(0xFFFFFFFFFFFFFFFFULL, 0, s64, 0, true); in shift_truncate_test()
553 TEST_ONE_SHIFT(0, 64, s64, 0, true); in shift_truncate_test()
[all …]
/linux/arch/arc/include/asm/
H A Datomic64-arcv2.h12 s64 __aligned(8) counter;
17 static inline s64 arch_atomic64_read(const atomic64_t *v) in arch_atomic64_read()
19 s64 val; in arch_atomic64_read()
29 static inline void arch_atomic64_set(atomic64_t *v, s64 a) in arch_atomic64_set()
50 static inline void arch_atomic64_##op(s64 a, atomic64_t *v) \
52 s64 val; \
67 static inline s64 arch_atomic64_##op##_return_relaxed(s64 a, atomic64_t *v) \
69 s64 val; \
89 static inline s64 arch_atomic64_fetch_##op##_relaxed(s64 a, atomic64_t *v) \
91 s64 val, orig; \
[all …]
/linux/include/drm/
H A Ddrm_fixed.h81 static inline s64 drm_int2fixp(int a) in drm_int2fixp()
83 return ((s64)a) << DRM_FIXED_POINT; in drm_int2fixp()
86 static inline int drm_fixp2int(s64 a) in drm_fixp2int()
88 return ((s64)a) >> DRM_FIXED_POINT; in drm_fixp2int()
91 static inline int drm_fixp2int_round(s64 a) in drm_fixp2int_round()
96 static inline int drm_fixp2int_ceil(s64 a) in drm_fixp2int_ceil()
104 static inline unsigned drm_fixp_msbset(s64 a) in drm_fixp_msbset()
115 static inline s64 drm_fixp_mul(s64 a, s64 b) in drm_fixp_mul()
118 s64 result; in drm_fixp_mul()
138 static inline s64 drm_fixp_div(s64 a, s64 b) in drm_fixp_div()
[all …]
/linux/arch/powerpc/platforms/powernv/
H A Dopal-call.c16 static void __trace_opal_entry(s64 a0, s64 a1, s64 a2, s64 a3, in __trace_opal_entry()
17 s64 a4, s64 a5, s64 a6, s64 a7, in __trace_opal_entry()
69 static s64 __opal_call_trace(s64 a0, s64 a1, s64 a2, s64 a3, in __opal_call_trace()
70 s64 a4, s64 a5, s64 a6, s64 a7, in __opal_call_trace()
73 s64 ret; in __opal_call_trace()
86 static s64 __opal_call_trace(s64 a0, s64 a1, s64 a2, s64 a3, in __opal_call_trace()
87 s64 a4, s64 a5, s64 a6, s64 a7, in __opal_call_trace()
/linux/tools/testing/selftests/bpf/progs/
H A Dexceptions_assert.c22 check_assert(s64, ==, eq_int_min, INT_MIN);
24 check_assert(s64, ==, eq_int_max, INT_MAX);
26 check_assert(s64, ==, eq_zero, 0);
28 check_assert(s64, ==, eq_llong_min, LLONG_MIN);
30 check_assert(s64, ==, eq_llong_max, LLONG_MAX);
33 check_assert(s64, <, lt_pos, INT_MAX);
35 check_assert(s64, <, lt_zero, 0);
37 check_assert(s64, <, lt_neg, INT_MIN);
40 check_assert(s64, <=, le_pos, INT_MAX);
42 check_assert(s64, <=, le_zero, 0);
[all …]
H A Dexceptions.c217 __noinline int assert_neg_gfunc(s64 c) in assert_neg_gfunc()
219 volatile s64 cookie = c; in assert_neg_gfunc()
225 __noinline int assert_pos_gfunc(s64 c) in assert_pos_gfunc()
227 volatile s64 cookie = c; in assert_pos_gfunc()
233 __noinline int assert_negeq_gfunc(s64 c) in assert_negeq_gfunc()
235 volatile s64 cookie = c; in assert_negeq_gfunc()
241 __noinline int assert_poseq_gfunc(s64 c) in assert_poseq_gfunc()
243 volatile s64 cookie = c; in assert_poseq_gfunc()
265 __noinline int assert_neg_gfunc_with(s64 c) in assert_neg_gfunc_with()
267 volatile s64 cookie = c; in assert_neg_gfunc_with()
[all …]
/linux/arch/x86/platform/uv/
H A Dbios_uv.c23 static s64 __uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, in __uv_bios_call()
27 s64 ret; in __uv_bios_call()
40 static s64 uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, u64 a4, in uv_bios_call()
43 s64 ret; in uv_bios_call()
54 static s64 uv_bios_call_irqsave(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, in uv_bios_call_irqsave()
58 s64 ret; in uv_bios_call_irqsave()
81 s64 uv_bios_get_sn_info(int fc, int *uvtype, long *partid, long *coher, in uv_bios_get_sn_info()
84 s64 ret; in uv_bios_get_sn_info()
112 s64 ret; in uv_bios_mq_watchlist_alloc()
135 s64
[all …]
/linux/drivers/net/dsa/sja1105/
H A Dsja1105_ptp.h16 static inline s64 ns_to_sja1105_ticks(s64 ns) in ns_to_sja1105_ticks()
21 static inline s64 sja1105_ticks_to_ns(s64 ticks) in sja1105_ticks_to_ns()
39 static inline s64 future_base_time(s64 base_time, s64 cycle_time, s64 now) in future_base_time()
41 s64 a, b, n; in future_base_time()
54 * s64 at caller side. This ensures it is properly type-cast before div_s64.
56 static inline s64 ns_to_sja1105_delta(s64 ns) in ns_to_sja1105_delta()
61 static inline s64 sja1105_delta_to_ns(s64 delta) in sja1105_delta_to_ns()
125 int __sja1105_ptp_adjtime(struct dsa_switch *ds, s64 delta);
173 static inline int __sja1105_ptp_adjtime(struct dsa_switch *ds, s64 delta) in __sja1105_ptp_adjtime()
/linux/arch/arm/include/asm/
H A Datomic.h254 s64 counter;
260 static inline s64 arch_atomic64_read(const atomic64_t *v) in arch_atomic64_read()
262 s64 result; in arch_atomic64_read()
273 static inline void arch_atomic64_set(atomic64_t *v, s64 i) in arch_atomic64_set()
282 static inline s64 arch_atomic64_read(const atomic64_t *v) in arch_atomic64_read()
284 s64 result; in arch_atomic64_read()
295 static inline void arch_atomic64_set(atomic64_t *v, s64 i) in arch_atomic64_set()
297 s64 tmp; in arch_atomic64_set()
312 static inline void arch_atomic64_##op(s64 i, atomic64_t *v) \
314 s64 result; \
[all …]
/linux/include/linux/platform_data/
H A Dcros_ec_sensorhub.h37 s64 timestamp);
54 s64 timestamp;
59 s64 offset;
60 s64 last;
82 s64 x_offset, y_offset;
83 s64 x_history[CROS_EC_SENSORHUB_TS_HISTORY_SIZE];
84 s64 y_history[CROS_EC_SENSORHUB_TS_HISTORY_SIZE];
85 s64 m_history[CROS_EC_SENSORHUB_TS_HISTORY_SIZE];
88 s64 temp_buf[CROS_EC_SENSORHUB_TS_HISTORY_SIZE];
90 s64 median_m;
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dreg_bounds.c17 #define S64_MIN ((s64)INT64_MIN)
18 #define S64_MAX ((s64)INT64_MAX)
32 #define s64 ___s64 macro
65 enum num_t { U64, first_t = U64, U32, S64, S32, last_t = S32 }; enumerator
72 case S64: return (s64)x < (s64)y ? (s64)x : (s64)y; in min_t()
83 case S64: return (s64)x > (s64)y ? (s64)x : (s64)y; in max_t()
94 case S64: return (s64)x; in cast_t()
105 case S64: return "s64"; in t_str()
116 case S64: return false; in t_is_32()
125 case U64: return S64; in t_signed()
[all …]
/linux/fs/jfs/
H A Djfs_xtree.h42 ( ((s64)((xad)->off1)) << 32 | __le32_to_cpu((xad)->off2))
100 extern int xtLookup(struct inode *ip, s64 lstart, s64 llen,
101 int *pflag, s64 * paddr, int *plen, int flag);
104 int xflag, s64 xoff, int xlen, s64 * xaddrp, int flag);
105 extern int xtExtend(tid_t tid, struct inode *ip, s64 xoff, int xlen,
108 extern s64 xtTruncate(tid_t tid, struct inode *ip, s64 newsize, int type);
109 extern s64 xtTruncate_pmap(tid_t tid, struct inode *ip, s64 committed_size);
111 struct inode *ip, int xflag, s64 xoff, int maxblocks,
112 int *xlenp, s64 * xaddrp, int flag);
H A Djfs_dmap.h41 #define MAXL0SIZE ((s64)1 << L2MAXL0SIZE)
42 #define MAXL1SIZE ((s64)1 << L2MAXL1SIZE)
43 #define MAXL2SIZE ((s64)1 << L2MAXL2SIZE)
127 ((s64)(a) << (JFS_SBI((ip)->i_sb)->bmap->db_agl2size))
211 s64 dn_mapsize; /* number of blocks in aggregate */
212 s64 dn_nfree; /* num free blks in aggregate map */
223 s64 dn_agfree[MAXAG]; /* per AG free count */
224 s64 dn_agsize; /* num of blks per alloc group */
272 (((b) & (((s64)1 << ((m) + L2LPERCTL)) - 1)) >> (m))
284 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks);
[all …]
H A Djfs_extent.c18 static int extBalloc(struct inode *, s64, s64 *, s64 *);
19 static s64 extRoundDown(s64 nb);
70 extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, bool abnr) in extAlloc()
73 s64 nxlen, nxaddr, xoff, hint, xaddr = 0; in extAlloc()
130 dbFree(ip, nxaddr, (s64) nxlen); in extAlloc()
192 int extHint(struct inode *ip, s64 offset, xad_t * xp) in extHint()
196 s64 prev; in extHint()
198 s64 xaddr; in extHint()
285 * *nblocks - pointer to an s64 value. on entry, this value specifies
299 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc()
[all …]
/linux/arch/powerpc/include/asm/
H A Datomic.h193 static __inline__ s64 arch_atomic64_read(const atomic64_t *v) in arch_atomic64_read()
195 s64 t; in arch_atomic64_read()
206 static __inline__ void arch_atomic64_set(atomic64_t *v, s64 i) in arch_atomic64_set()
216 static __inline__ void arch_atomic64_##op(s64 a, atomic64_t *v) \
218 s64 t; \
231 static inline s64 \
232 arch_atomic64_##op##_return_relaxed(s64 a, atomic64_t *v) \
234 s64 t; \
249 static inline s64 \
250 arch_atomic64_fetch_##op##_relaxed(s64 a, atomic64_t *v) \
[all …]
H A Dasm-prototypes.h41 extern s64 __lshrdi3(s64, int);
42 extern s64 __ashldi3(s64, int);
43 extern s64 __ashrdi3(s64, int);
44 extern int __cmpdi2(s64, s64);
/linux/arch/loongarch/kernel/
H A Dmodule.c25 static int rela_stack_push(s64 stack_value, s64 *rela_stack, size_t *rela_stack_top) in rela_stack_push()
36 static int rela_stack_pop(s64 *stack_value, s64 *rela_stack, size_t *rela_stack_top) in rela_stack_pop()
48 s64 *rela_stack, size_t *rela_stack_top, unsigned int type) in apply_r_larch_none()
54 s64 *rela_stack, size_t *rela_stack_top, unsigned int type) in apply_r_larch_error()
61 s64 *rela_stack, size_t *rela_stack_top, unsigned int type) in apply_r_larch_32()
68 s64 *rela_stack, size_t *rela_stack_top, unsigned int type) in apply_r_larch_64()
75 s64 *rela_stack, size_t *rela_stack_top, unsigned int type) in apply_r_larch_sop_push_pcrel()
81 s64 *rela_stack, size_t *rela_stack_top, unsigned int type) in apply_r_larch_sop_push_absolute()
87 s64 *rela_stack, size_t *rela_stack_top, unsigned int type) in apply_r_larch_sop_push_dup()
90 s64 opr1; in apply_r_larch_sop_push_dup()
[all …]
/linux/drivers/iio/temperature/
H A Dmlx90632.c669 static s64 mlx90632_preprocess_temp_amb(s16 ambient_new_raw, in mlx90632_preprocess_temp_amb()
672 s64 VR_Ta, kGb, tmp; in mlx90632_preprocess_temp_amb()
674 kGb = ((s64)Gb * 1000LL) >> 10ULL; in mlx90632_preprocess_temp_amb()
675 VR_Ta = (s64)ambient_old_raw * 1000000LL + in mlx90632_preprocess_temp_amb()
676 kGb * div64_s64(((s64)ambient_new_raw * 1000LL), in mlx90632_preprocess_temp_amb()
679 div64_s64(((s64)ambient_new_raw * 1000000000000LL), in mlx90632_preprocess_temp_amb()
684 static s64 mlx90632_preprocess_temp_obj(s16 object_new_raw, s16 object_old_raw, in mlx90632_preprocess_temp_obj()
688 s64 VR_IR, kKa, tmp; in mlx90632_preprocess_temp_obj()
690 kKa = ((s64)Ka * 1000LL) >> 10ULL; in mlx90632_preprocess_temp_obj()
691 VR_IR = (s64)ambient_old_raw * 1000000LL + in mlx90632_preprocess_temp_obj()
[all …]

12345678910>>...41