Home
last modified time | relevance | path

Searched refs:gran (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/include/linux/
Dintel-iommu.h276 #define QI_IOTLB_GRAN(gran) (((u64)gran) >> (DMA_TLB_FLUSH_GRANU_OFFSET-4)) argument
284 #define QI_CC_GRAN(gran) (((u64)gran) >> (DMA_CCMD_INVL_GRANU_OFFSET-4)) argument
295 #define QI_PC_GRAN(gran) (((u64)gran) << 4) argument
306 #define QI_EIOTLB_GRAN(gran) (((u64)gran) << 4) argument
Dtime32.h186 extern struct timespec timespec_trunc(struct timespec t, unsigned int gran);
Dfs.h1494 extern struct timespec64 timespec64_trunc(struct timespec64 t, unsigned gran);
/Linux-v4.19/kernel/time/
Dtime.c353 struct timespec timespec_trunc(struct timespec t, unsigned gran) in timespec_trunc() argument
356 if (gran == 1) { in timespec_trunc()
358 } else if (gran == NSEC_PER_SEC) { in timespec_trunc()
360 } else if (gran > 1 && gran < NSEC_PER_SEC) { in timespec_trunc()
361 t.tv_nsec -= t.tv_nsec % gran; in timespec_trunc()
363 WARN(1, "illegal file time granularity: %u", gran); in timespec_trunc()
/Linux-v4.19/drivers/mtd/tests/
Dtorturetest.c56 static int gran = 512; variable
57 module_param(gran, int, S_IRUGO);
58 MODULE_PARM_DESC(gran, "how often the status information should be printed");
333 if (erase_cycles % gran == 0) { in tort_init()
/Linux-v4.19/fs/
Dinode.c2121 struct timespec64 timespec64_trunc(struct timespec64 t, unsigned gran) in timespec64_trunc() argument
2124 if (gran == 1) { in timespec64_trunc()
2126 } else if (gran == NSEC_PER_SEC) { in timespec64_trunc()
2128 } else if (gran > 1 && gran < NSEC_PER_SEC) { in timespec64_trunc()
2129 t.tv_nsec -= t.tv_nsec % gran; in timespec64_trunc()
2131 WARN(1, "illegal file time granularity: %u", gran); in timespec64_trunc()
/Linux-v4.19/sound/pci/lx6464es/
Dlx6464es.c102 static int lx_set_granularity(struct lx6464es *chip, u32 gran);
720 static int lx_set_granularity(struct lx6464es *chip, u32 gran) in lx_set_granularity() argument
728 while ((snapped_gran < gran) && in lx_set_granularity()
742 if (snapped_gran != gran) in lx_set_granularity()
Dlx_core.h114 int lx_dsp_set_granularity(struct lx6464es *chip, u32 gran);
Dlx_core.c397 int lx_dsp_set_granularity(struct lx6464es *chip, u32 gran) in lx_dsp_set_granularity() argument
404 chip->rmh.cmd[0] |= gran; in lx_dsp_set_granularity()
/Linux-v4.19/kernel/sched/
Dfair.c6435 unsigned long gran = sysctl_sched_wakeup_granularity; in wakeup_gran() local
6450 return calc_delta_fair(gran, se); in wakeup_gran()
6470 s64 gran, vdiff = curr->vruntime - se->vruntime; in wakeup_preempt_entity() local
6475 gran = wakeup_gran(se); in wakeup_preempt_entity()
6476 if (vdiff > gran) in wakeup_preempt_entity()
/Linux-v4.19/drivers/scsi/
Dscsi_debug.c1317 unsigned int gran; in inquiry_vpd_b0() local
1324 gran = 1 << sdebug_opt_xferlen_exp; in inquiry_vpd_b0()
1326 gran = 1 << sdebug_physblk_exp; in inquiry_vpd_b0()
1327 put_unaligned_be16(gran, arr + 2); in inquiry_vpd_b0()