Home
last modified time | relevance | path

Searched refs:granularity (Results 1 – 25 of 105) sorted by relevance

12345

/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dml/
Ddml_inline_defs.h68 static inline double dml_ceil(double a, double granularity) in dml_ceil() argument
70 return (double) dcn_bw_ceil2(a, granularity); in dml_ceil()
73 static inline double dml_floor(double a, double granularity) in dml_floor() argument
75 return (double) dcn_bw_floor2(a, granularity); in dml_floor()
98 static inline double dml_ceil_ex(double x, double granularity) in dml_ceil_ex() argument
100 return (double) dcn_bw_ceil2(x, granularity); in dml_ceil_ex()
103 static inline double dml_floor_ex(double x, double granularity) in dml_floor_ex() argument
105 return (double) dcn_bw_floor2(x, granularity); in dml_floor_ex()
/Linux-v5.4/drivers/acpi/acpica/
Drsaddr.c41 {ACPI_RSC_MOVE16, ACPI_RS_OFFSET(data.address16.address.granularity),
42 AML_OFFSET(address16.granularity),
79 {ACPI_RSC_MOVE32, ACPI_RS_OFFSET(data.address32.address.granularity),
80 AML_OFFSET(address32.granularity),
117 {ACPI_RSC_MOVE64, ACPI_RS_OFFSET(data.address64.address.granularity),
118 AML_OFFSET(address64.granularity),
162 ACPI_RS_OFFSET(data.ext_address64.address.granularity),
163 AML_OFFSET(ext_address64.granularity),
Damlresrc.h220 u64 granularity; member
232 AML_RESOURCE_ADDRESS_COMMON u64 granularity; member
241 AML_RESOURCE_ADDRESS_COMMON u32 granularity; member
250 AML_RESOURCE_ADDRESS_COMMON u16 granularity; member
Drsdumpinfo.c150 {ACPI_RSD_UINT16, ACPI_RSD_OFFSET(address16.address.granularity),
167 {ACPI_RSD_UINT32, ACPI_RSD_OFFSET(address32.address.granularity),
184 {ACPI_RSD_UINT64, ACPI_RSD_OFFSET(address64.address.granularity),
201 {ACPI_RSD_UINT64, ACPI_RSD_OFFSET(ext_address64.address.granularity),
/Linux-v5.4/arch/arm/mach-mmp/
Dsram.c27 int granularity; member
89 info->granularity = pdata->granularity; in sram_probe()
91 info->gpool = gen_pool_create(ilog2(info->granularity), -1); in sram_probe()
Dbrownstone.c200 .granularity = SRAM_GRANULARITY,
205 .granularity = SRAM_GRANULARITY,
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_blit.c112 return round_down(offset + diff_offs, granularity); \
125 if (diff_offs >= size || granularity == sizeof(_type)) \
148 size_t granularity) in vmw_find_first_diff() argument
164 granularity); in vmw_find_first_diff()
185 return round_down(location, granularity); \
199 if (location < 0 || granularity == sizeof(_type)) \
220 size_t granularity) in vmw_find_last_diff() argument
232 granularity); in vmw_find_last_diff()
/Linux-v5.4/drivers/pci/pcie/
Dptm.c87 int pci_enable_ptm(struct pci_dev *dev, u8 *granularity) in pci_enable_ptm() argument
130 if (granularity) in pci_enable_ptm()
131 *granularity = dev->ptm_granularity; in pci_enable_ptm()
/Linux-v5.4/arch/powerpc/boot/
Dsimple_alloc.c127 unsigned long granularity, unsigned long max_allocs) in simple_alloc_init() argument
131 heap_size = _ALIGN_UP(heap_size, granularity); in simple_alloc_init()
132 alloc_min = granularity; in simple_alloc_init()
/Linux-v5.4/sound/pci/lola/
Dlola.c39 static int granularity[SNDRV_CARDS] = { variable
48 module_param_array(granularity, int, NULL, 0444);
49 MODULE_PARM_DESC(granularity, "Granularity value");
422 lola_set_granularity(chip, chip->granularity, true); in lola_reset_setups()
520 if (chip->granularity != LOLA_GRANULARITY_MIN) in lola_parse_tree()
521 lola_set_granularity(chip, chip->granularity, true); in lola_parse_tree()
584 chip->granularity = granularity[dev]; in lola_create()
585 switch (chip->granularity) { in lola_create()
598 chip->granularity, LOLA_GRANULARITY_MAX); in lola_create()
599 chip->granularity = LOLA_GRANULARITY_MAX; in lola_create()
Dlola_clock.c59 if (!chip->granularity) in check_gran_clock_compatibility()
81 if (val == chip->granularity) in lola_set_granularity()
93 chip->granularity = val; in lola_set_granularity()
279 if (!check_gran_clock_compatibility(chip, chip->granularity, freq)) in lola_set_clock()
Dlola_pcm.c42 if (chip->granularity) { in lola_get_tstamp()
44 tstamp += (wait_banks + 1) * chip->granularity - 1; in lola_get_tstamp()
45 tstamp -= tstamp % chip->granularity; in lola_get_tstamp()
239 chip->granularity); in lola_pcm_open()
241 chip->granularity); in lola_pcm_open()
/Linux-v5.4/drivers/vme/bridges/
Dvme_ca91cx42.c337 unsigned int i, addr = 0, granularity; in ca91cx42_slave_set() local
383 granularity = 0x1000; in ca91cx42_slave_set()
385 granularity = 0x10000; in ca91cx42_slave_set()
387 if (vme_base & (granularity - 1)) { in ca91cx42_slave_set()
392 if (vme_bound & (granularity - 1)) { in ca91cx42_slave_set()
397 if (pci_offset & (granularity - 1)) { in ca91cx42_slave_set()
443 unsigned int i, granularity = 0, ctl = 0; in ca91cx42_slave_get() local
452 granularity = 0x1000; in ca91cx42_slave_get()
454 granularity = 0x10000; in ca91cx42_slave_get()
464 *size = (unsigned long long)((vme_bound - *vme_base) + granularity); in ca91cx42_slave_get()
[all …]
Dvme_fake.c158 unsigned int i, granularity = 0; in fake_slave_set() local
170 granularity = 0x10; in fake_slave_set()
173 granularity = 0x1000; in fake_slave_set()
176 granularity = 0x10000; in fake_slave_set()
179 granularity = 0x10000; in fake_slave_set()
195 vme_bound = vme_base + size - granularity; in fake_slave_set()
197 if (vme_base & (granularity - 1)) { in fake_slave_set()
201 if (vme_bound & (granularity - 1)) { in fake_slave_set()
Dvme_tsi148.c475 unsigned int i, addr = 0, granularity = 0; in tsi148_slave_set() local
491 granularity = 0x10; in tsi148_slave_set()
495 granularity = 0x1000; in tsi148_slave_set()
499 granularity = 0x10000; in tsi148_slave_set()
503 granularity = 0x10000; in tsi148_slave_set()
519 vme_bound = vme_base + size - granularity; in tsi148_slave_set()
524 if (vme_base_low & (granularity - 1)) { in tsi148_slave_set()
528 if (vme_bound_low & (granularity - 1)) { in tsi148_slave_set()
532 if (pci_offset_low & (granularity - 1)) { in tsi148_slave_set()
620 unsigned int i, granularity = 0, ctl = 0; in tsi148_slave_get() local
[all …]
/Linux-v5.4/include/linux/
Dblkdev.h1352 unsigned int granularity = max(lim->physical_block_size, lim->io_min); in queue_limit_alignment_offset() local
1353 unsigned int alignment = sector_div(sector, granularity >> SECTOR_SHIFT) in queue_limit_alignment_offset()
1356 return (granularity + lim->alignment_offset - alignment) % granularity; in queue_limit_alignment_offset()
1382 unsigned int alignment, granularity, offset; in queue_limit_discard_alignment() local
1389 granularity = lim->discard_granularity >> SECTOR_SHIFT; in queue_limit_discard_alignment()
1390 if (!granularity) in queue_limit_discard_alignment()
1394 offset = sector_div(sector, granularity); in queue_limit_discard_alignment()
1397 offset = (granularity + alignment - offset) % granularity; in queue_limit_discard_alignment()
/Linux-v5.4/include/linux/platform_data/
Ddma-mmp_tdma.h24 int granularity; member
/Linux-v5.4/fs/xfs/
Dxfs_discard.c151 unsigned int granularity = q->limits.discard_granularity; in xfs_ioc_trim() local
173 range.minlen = max_t(u64, granularity, range.minlen); in xfs_ioc_trim()
/Linux-v5.4/block/
Dblk-merge.c66 unsigned int max_discard_sectors, granularity; in blk_bio_discard_split() local
74 granularity = max(q->limits.discard_granularity >> 9, 1U); in blk_bio_discard_split()
78 max_discard_sectors -= max_discard_sectors % granularity; in blk_bio_discard_split()
94 alignment = (q->limits.discard_alignment >> 9) % granularity; in blk_bio_discard_split()
97 tmp = sector_div(tmp, granularity); in blk_bio_discard_split()
/Linux-v5.4/include/acpi/
Dacrestyp.h280 u16 granularity; member
288 u32 granularity; member
296 u64 granularity; member
/Linux-v5.4/sound/pci/pcxhr/
Dpcxhr_core.c1143 mgr->granularity); in pcxhr_stream_read_position()
1161 samples_to_add = mgr->granularity; in pcxhr_update_timer_pos()
1171 if (new_sample_count >= mgr->granularity) { in pcxhr_update_timer_pos()
1176 new_sample_count -= mgr->granularity; in pcxhr_update_timer_pos()
1286 if (tmp_diff > 0 && tmp_diff <= (2*mgr->granularity)) { in pcxhr_threaded_irq()
1302 else if (dsp_time_diff >= (2*mgr->granularity)) in pcxhr_threaded_irq()
1307 else if (dsp_time_diff % mgr->granularity) in pcxhr_threaded_irq()
/Linux-v5.4/Documentation/driver-api/
Dlightnvm-pblk.rst7 - Map logical addresses onto physical addresses (4KB granularity) in a
/Linux-v5.4/Documentation/ABI/obsolete/
Dsysfs-class-dax11 1/ Guarantees fault granularity with respect to a given
/Linux-v5.4/Documentation/scheduler/
Dsched-nice-design.rst52 right minimal granularity - and this translates to 5% CPU utilization.
60 coupling to timeslices and granularity it was not really viable.
92 (and granularity was made a separate concept from nice levels) and thus
/Linux-v5.4/net/dcb/
DKconfig20 works at the granularity of the 802.1p priority instead of the

12345