/Linux-v4.19/include/linux/ |
D | percpu_counter.h | 22 s64 count; 31 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp, 42 void percpu_counter_set(struct percpu_counter *fbc, s64 amount); 43 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, 45 s64 __percpu_counter_sum(struct percpu_counter *fbc); 46 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch); 48 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() 53 static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() 58 static inline s64 percpu_counter_sum_positive(struct percpu_counter *fbc) in percpu_counter_sum_positive() 60 s64 ret = __percpu_counter_sum(fbc); in percpu_counter_sum_positive() [all …]
|
D | ktime.h | 28 typedef s64 ktime_t; 37 static inline ktime_t ktime_set(const s64 secs, const unsigned long nsecs) in ktime_set() 42 return secs * NSEC_PER_SEC + (s64)nsecs; in ktime_set() 97 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() 146 extern s64 __ktime_divns(const ktime_t kt, s64 div); 147 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() 155 s64 ns = kt; in ktime_divns() 165 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() 176 static inline s64 ktime_to_us(const ktime_t kt) in ktime_to_us() 181 static inline s64 ktime_to_ms(const ktime_t kt) in ktime_to_ms() [all …]
|
D | math64.h | 38 static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() 77 static inline s64 div64_s64(s64 dividend, s64 divisor) in div64_s64() 96 extern s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder); 108 extern s64 div64_s64(s64 dividend, s64 divisor); 136 static inline s64 div_s64(s64 dividend, s32 divisor) in div_s64()
|
D | time32.h | 69 extern void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec); 125 static inline s64 timespec_to_ns(const struct timespec *ts) in timespec_to_ns() 127 return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns() 136 extern struct timespec ns_to_timespec(const s64 nsec); 195 static inline s64 timeval_to_ns(const struct timeval *tv) in timeval_to_ns() 197 return ((s64) tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns() 207 extern struct timeval ns_to_timeval(const s64 nsec); 208 extern struct __kernel_old_timeval ns_to_kernel_old_timeval(s64 nsec);
|
/Linux-v4.19/arch/mips/fw/cfe/ |
D | cfe_api_int.h | 56 typedef s64 cfe_xptr_t; 71 s64 enum_idx; /* 0-based enumeration index */ 73 s64 name_length; /* size of name buffer */ 75 s64 val_length; /* size of value string buffer */ 88 s64 ticks; /* current time in ticks */ 92 s64 status; 96 s64 mi_idx; /* 0-based enumeration index */ 97 s64 mi_type; /* type of memory block */ 103 s64 fwi_version; /* major, minor, eco version */ 104 s64 fwi_totalmem; /* total installed mem */ [all …]
|
/Linux-v4.19/include/drm/ |
D | drm_fixed.h | 79 static inline s64 drm_int2fixp(int a) in drm_int2fixp() 81 return ((s64)a) << DRM_FIXED_POINT; in drm_int2fixp() 84 static inline int drm_fixp2int(s64 a) in drm_fixp2int() 86 return ((s64)a) >> DRM_FIXED_POINT; in drm_fixp2int() 89 static inline int drm_fixp2int_ceil(s64 a) in drm_fixp2int_ceil() 97 static inline unsigned drm_fixp_msbset(s64 a) in drm_fixp_msbset() 108 static inline s64 drm_fixp_mul(s64 a, s64 b) in drm_fixp_mul() 111 s64 result; in drm_fixp_mul() 131 static inline s64 drm_fixp_div(s64 a, s64 b) in drm_fixp_div() 134 s64 result; in drm_fixp_div() [all …]
|
/Linux-v4.19/fs/jfs/ |
D | jfs_dmap.h | 54 #define MAXL0SIZE ((s64)1 << L2MAXL0SIZE) 55 #define MAXL1SIZE ((s64)1 << L2MAXL1SIZE) 56 #define MAXL2SIZE ((s64)1 << L2MAXL2SIZE) 140 ((s64)(a) << (JFS_SBI((ip)->i_sb)->bmap->db_agl2size)) 224 s64 dn_mapsize; /* number of blocks in aggregate */ 225 s64 dn_nfree; /* num free blks in aggregate map */ 236 s64 dn_agfree[MAXAG]; /* per AG free count */ 237 s64 dn_agsize; /* num of blks per alloc group */ 285 (((b) & (((s64)1 << ((m) + L2LPERCTL)) - 1)) >> (m)) 297 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks); [all …]
|
D | jfs_xtree.h | 55 ( ((s64)((xad)->off1)) << 32 | __le32_to_cpu((xad)->off2)) 104 extern int xtLookup(struct inode *ip, s64 lstart, s64 llen, 105 int *pflag, s64 * paddr, int *plen, int flag); 108 int xflag, s64 xoff, int xlen, s64 * xaddrp, int flag); 109 extern int xtExtend(tid_t tid, struct inode *ip, s64 xoff, int xlen, 113 s64 xoff, int xlen, s64 xaddr, int flag); 116 extern int xtDelete(tid_t tid, struct inode *ip, s64 xoff, int xlen, 118 extern s64 xtTruncate(tid_t tid, struct inode *ip, s64 newsize, int type); 119 extern s64 xtTruncate_pmap(tid_t tid, struct inode *ip, s64 committed_size); 121 xad_t * oxad, s64 nxaddr, int xtype); [all …]
|
D | jfs_extent.c | 31 static int extBalloc(struct inode *, s64, s64 *, s64 *); 33 static int extBrealloc(struct inode *, s64, s64, s64 *, s64 *); 35 static s64 extRoundDown(s64 nb); 86 extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, bool abnr) in extAlloc() 89 s64 nxlen, nxaddr, xoff, hint, xaddr = 0; in extAlloc() 146 dbFree(ip, nxaddr, (s64) nxlen); in extAlloc() 215 int extRealloc(struct inode *ip, s64 nxlen, xad_t * xp, bool abnr) in extRealloc() 218 s64 xaddr, xlen, nxaddr, delta, xoff; in extRealloc() 219 s64 ntail, nextend, ninsert; in extRealloc() 262 dbFree(ip, nxaddr, (s64) nxlen); in extRealloc() [all …]
|
D | jfs_dmap.c | 77 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, 83 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, 85 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results); 86 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, 88 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno, 90 int l2nb, s64 * results); 91 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, 95 s64 * results); 96 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, 97 s64 * results); [all …]
|
/Linux-v4.19/fs/ntfs/ |
D | bitmap.h | 32 extern int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, 33 const s64 count, const u8 value, const bool is_rollback); 48 const s64 start_bit, const s64 count, const u8 value) in ntfs_bitmap_set_bits_in_run() 65 static inline int ntfs_bitmap_set_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_set_run() 66 const s64 count) in ntfs_bitmap_set_run() 82 static inline int ntfs_bitmap_clear_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_clear_run() 83 const s64 count) in ntfs_bitmap_clear_run() 97 static inline int ntfs_bitmap_set_bit(struct inode *vi, const s64 bit) in ntfs_bitmap_set_bit() 111 static inline int ntfs_bitmap_clear_bit(struct inode *vi, const s64 bit) in ntfs_bitmap_clear_bit()
|
D | attrib.h | 79 const s64 size, const s64 initialized_size); 81 static inline s64 ntfs_attr_size(const ATTR_RECORD *a) in ntfs_attr_size() 84 return (s64)le32_to_cpu(a->data.resident.value_length); in ntfs_attr_size() 96 const ATTR_TYPE type, const s64 size); 108 extern s64 ntfs_attr_extend_allocation(ntfs_inode *ni, s64 new_alloc_size, 109 const s64 new_data_size, const s64 data_start); 111 extern int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt,
|
D | lcnalloc.h | 44 const VCN start_vcn, const s64 count, const LCN start_lcn, 48 extern s64 __ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn, 49 s64 count, ntfs_attr_search_ctx *ctx, const bool is_rollback); 107 static inline s64 ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn, in ntfs_cluster_free() 108 s64 count, ntfs_attr_search_ctx *ctx) in ntfs_cluster_free()
|
/Linux-v4.19/include/asm-generic/ |
D | atomic-instrumented.h | 25 static __always_inline s64 atomic64_read(const atomic64_t *v) in atomic64_read() 37 static __always_inline void atomic64_set(atomic64_t *v, s64 i) in atomic64_set() 49 static __always_inline s64 atomic64_xchg(atomic64_t *v, s64 i) in atomic64_xchg() 61 static __always_inline s64 atomic64_cmpxchg(atomic64_t *v, s64 old, s64 new) in atomic64_cmpxchg() 79 static __always_inline bool atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new) in atomic64_try_cmpxchg() 98 static __always_inline s64 atomic64_fetch_add_unless(atomic64_t *v, s64 a, s64 u) in atomic64_fetch_add_unless() 147 static __always_inline void atomic64_add(s64 i, atomic64_t *v) in atomic64_add() 159 static __always_inline void atomic64_sub(s64 i, atomic64_t *v) in atomic64_sub() 171 static __always_inline void atomic64_and(s64 i, atomic64_t *v) in atomic64_and() 183 static __always_inline void atomic64_or(s64 i, atomic64_t *v) in atomic64_or() [all …]
|
/Linux-v4.19/include/media/ |
D | v4l2-ctrls.h | 47 s64 *p_s64; 218 s64 minimum, maximum, default_value; 229 const s64 *qmenu_int; 333 s64 min; 334 s64 max; 336 s64 def; 342 const s64 *qmenu_int; 373 s64 *min, s64 *max, u64 *step, s64 *def, u32 *flags); 543 u32 id, s64 min, s64 max, u64 step, 544 s64 def); [all …]
|
/Linux-v4.19/drivers/thermal/tegra/ |
D | soctherm-fuse.c | 71 static s64 div64_s64_precise(s64 a, s32 b) in div64_s64_precise() 73 s64 r, al; in div64_s64_precise() 126 s64 temp; in tegra_calc_tsensor_calib() 146 temp = (s64)delta_temp * (1LL << 13) * mult; in tegra_calc_tsensor_calib() 147 therma = div64_s64_precise(temp, (s64)delta_sens * div); in tegra_calc_tsensor_calib() 149 temp = ((s64)actual_tsensor_ft * shared->actual_temp_cp) - in tegra_calc_tsensor_calib() 150 ((s64)actual_tsensor_cp * shared->actual_temp_ft); in tegra_calc_tsensor_calib() 153 temp = (s64)therma * sensor->fuse_corr_alpha; in tegra_calc_tsensor_calib() 156 temp = (s64)thermb * sensor->fuse_corr_alpha + sensor->fuse_corr_beta; in tegra_calc_tsensor_calib()
|
/Linux-v4.19/arch/ia64/include/asm/ |
D | pal.h | 109 typedef s64 pal_status_t; 780 s64 status; 881 static inline s64 898 static inline s64 907 static inline s64 925 static inline s64 948 static inline s64 961 static inline s64 973 static inline s64 983 static inline s64 [all …]
|
/Linux-v4.19/drivers/iio/temperature/ |
D | mlx90632.c | 322 static s64 mlx90632_preprocess_temp_amb(s16 ambient_new_raw, in mlx90632_preprocess_temp_amb() 325 s64 VR_Ta, kGb, tmp; in mlx90632_preprocess_temp_amb() 327 kGb = ((s64)Gb * 1000LL) >> 10ULL; in mlx90632_preprocess_temp_amb() 328 VR_Ta = (s64)ambient_old_raw * 1000000LL + in mlx90632_preprocess_temp_amb() 329 kGb * div64_s64(((s64)ambient_new_raw * 1000LL), in mlx90632_preprocess_temp_amb() 332 div64_s64(((s64)ambient_new_raw * 1000000000000LL), in mlx90632_preprocess_temp_amb() 337 static s64 mlx90632_preprocess_temp_obj(s16 object_new_raw, s16 object_old_raw, in mlx90632_preprocess_temp_obj() 341 s64 VR_IR, kKa, tmp; in mlx90632_preprocess_temp_obj() 343 kKa = ((s64)Ka * 1000LL) >> 10ULL; in mlx90632_preprocess_temp_obj() 344 VR_IR = (s64)ambient_old_raw * 1000000LL + in mlx90632_preprocess_temp_obj() [all …]
|
/Linux-v4.19/arch/x86/platform/uv/ |
D | bios_uv.c | 32 s64 uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, u64 a4, u64 a5) in uv_bios_call() 35 s64 ret; in uv_bios_call() 56 s64 uv_bios_call_irqsave(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, in uv_bios_call_irqsave() 60 s64 ret; in uv_bios_call_irqsave() 69 s64 uv_bios_call_reentrant(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, in uv_bios_call_reentrant() 72 s64 ret; in uv_bios_call_reentrant() 94 s64 uv_bios_get_sn_info(int fc, int *uvtype, long *partid, long *coher, in uv_bios_get_sn_info() 97 s64 ret; in uv_bios_get_sn_info() 126 s64 ret; in uv_bios_mq_watchlist_alloc() 149 s64 [all …]
|
/Linux-v4.19/net/sched/ |
D | sch_cbs.c | 73 s64 port_rate; /* in bytes/s */ 74 s64 last; /* timestamp in ns */ 75 s64 credits; /* in bytes */ 78 s64 sendslope; /* in bytes/s */ 79 s64 idleslope; /* in bytes/s */ 138 static s64 timediff_to_credits(s64 timediff, s64 slope) in timediff_to_credits() 143 static s64 delay_from_credits(s64 credits, s64 slope) in delay_from_credits() 151 static s64 credits_from_len(unsigned int len, s64 slope, s64 port_rate) in credits_from_len() 178 s64 now = ktime_get_ns(); in cbs_dequeue_soft() 180 s64 credits; in cbs_dequeue_soft() [all …]
|
/Linux-v4.19/kernel/ |
D | delayacct.c | 57 s64 ns = ktime_get_ns() - *start; in delayacct_end() 99 s64 tmp; in __delayacct_add_tsk() 102 tmp = (s64)d->cpu_run_real_total; in __delayacct_add_tsk() 104 d->cpu_run_real_total = (tmp < (s64)d->cpu_run_real_total) ? 0 : tmp; in __delayacct_add_tsk() 107 tmp = (s64)d->cpu_scaled_run_real_total; in __delayacct_add_tsk() 110 (tmp < (s64)d->cpu_scaled_run_real_total) ? 0 : tmp; in __delayacct_add_tsk() 122 tmp = (s64)d->cpu_delay_total + t2; in __delayacct_add_tsk() 123 d->cpu_delay_total = (tmp < (s64)d->cpu_delay_total) ? 0 : tmp; in __delayacct_add_tsk() 125 tmp = (s64)d->cpu_run_virtual_total + t3; in __delayacct_add_tsk() 127 (tmp < (s64)d->cpu_run_virtual_total) ? 0 : tmp; in __delayacct_add_tsk()
|
/Linux-v4.19/drivers/iio/common/ms_sensors/ |
D | ms_sensors_i2c.c | 442 *temperature = (((s64)(adc >> 8) * 175720) >> 16) - 46850; in ms_sensors_ht_read_temperature() 580 s64 off, sens, t2, off2, sens2; in ms_sensors_read_temp_and_pressure() 610 temp = 2000 + (((s64)dt * prom[6]) >> 23); in ms_sensors_read_temp_and_pressure() 614 s64 tmp = (s64)temp - 2000; in ms_sensors_read_temp_and_pressure() 616 t2 = (3 * ((s64)dt * (s64)dt)) >> 33; in ms_sensors_read_temp_and_pressure() 621 s64 tmp = (s64)temp + 1500; in ms_sensors_read_temp_and_pressure() 627 t2 = (5 * ((s64)dt * (s64)dt)) >> 38; in ms_sensors_read_temp_and_pressure() 633 off = (((s64)prom[2]) << 17) + ((((s64)prom[4]) * (s64)dt) >> 6); in ms_sensors_read_temp_and_pressure() 637 sens = (((s64)prom[1]) << 16) + (((s64)prom[3] * dt) >> 7); in ms_sensors_read_temp_and_pressure() 642 *pressure = (u32)(((((s64)p_adc * sens) >> 21) - off) >> 15); in ms_sensors_read_temp_and_pressure()
|
/Linux-v4.19/arch/x86/include/asm/uv/ |
D | bios.h | 141 extern s64 uv_bios_call(enum uv_bios_cmd, u64, u64, u64, u64, u64); 142 extern s64 uv_bios_call_irqsave(enum uv_bios_cmd, u64, u64, u64, u64, u64); 143 extern s64 uv_bios_call_reentrant(enum uv_bios_cmd, u64, u64, u64, u64, u64); 145 extern s64 uv_bios_get_sn_info(int, int *, long *, long *, long *, long *); 146 extern s64 uv_bios_freq_base(u64, u64 *); 150 extern s64 uv_bios_change_memprotect(u64, u64, enum uv_memprotect); 151 extern s64 uv_bios_reserved_page_pa(u64, u64 *, u64 *, u64 *);
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | asm-prototypes.h | 124 extern s64 __lshrdi3(s64, int); 125 extern s64 __ashldi3(s64, int); 126 extern s64 __ashrdi3(s64, int); 127 extern int __cmpdi2(s64, s64);
|
/Linux-v4.19/net/netfilter/ipvs/ |
D | ip_vs_est.c | 117 e->cps += ((s64)rate - (s64)e->cps) >> 2; in estimation_timer() 121 e->inpps += ((s64)rate - (s64)e->inpps) >> 2; in estimation_timer() 125 e->outpps += ((s64)rate - (s64)e->outpps) >> 2; in estimation_timer() 130 e->inbps += ((s64)rate - (s64)e->inbps) >> 2; in estimation_timer() 134 e->outbps += ((s64)rate - (s64)e->outbps) >> 2; in estimation_timer()
|