Home
last modified time | relevance | path

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

123456

/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/
Ddml_inline_defs.h67 static inline double dml_ceil(double a, double granularity) in dml_ceil() argument
69 return (double) dcn_bw_ceil2(a, granularity); in dml_ceil()
72 static inline double dml_floor(double a, double granularity) in dml_floor() argument
74 return (double) dcn_bw_floor2(a, granularity); in dml_floor()
115 static inline double dml_ceil_ex(double x, double granularity) in dml_ceil_ex() argument
117 return (double) dcn_bw_ceil2(x, granularity); in dml_ceil_ex()
120 static inline double dml_floor_ex(double x, double granularity) in dml_floor_ex() argument
122 return (double) dcn_bw_floor2(x, granularity); in dml_floor_ex()
/linux-6.12.1/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.h224 u64 granularity; member
236 AML_RESOURCE_ADDRESS_COMMON u64 granularity; member
245 AML_RESOURCE_ADDRESS_COMMON u32 granularity; member
254 AML_RESOURCE_ADDRESS_COMMON u16 granularity; member
/linux-6.12.1/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");
419 lola_set_granularity(chip, chip->granularity, true); in lola_reset_setups()
517 if (chip->granularity != LOLA_GRANULARITY_MIN) in lola_parse_tree()
518 lola_set_granularity(chip, chip->granularity, true); in lola_parse_tree()
556 chip->granularity = granularity[dev]; in lola_create()
557 switch (chip->granularity) { in lola_create()
570 chip->granularity, LOLA_GRANULARITY_MAX); in lola_create()
571 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-6.12.1/block/
Dblk-settings.c443 unsigned int granularity = max(lim->physical_block_size, lim->io_min); in queue_limit_alignment_offset() local
444 unsigned int alignment = sector_div(sector, granularity >> SECTOR_SHIFT) in queue_limit_alignment_offset()
447 return (granularity + lim->alignment_offset - alignment) % granularity; in queue_limit_alignment_offset()
453 unsigned int alignment, granularity, offset; in queue_limit_discard_alignment() local
460 granularity = lim->discard_granularity >> SECTOR_SHIFT; in queue_limit_discard_alignment()
461 if (!granularity) in queue_limit_discard_alignment()
465 offset = sector_div(sector, granularity); in queue_limit_discard_alignment()
468 offset = (granularity + alignment - offset) % granularity; in queue_limit_discard_alignment()
/linux-6.12.1/arch/powerpc/boot/
Dsimple_alloc.c128 unsigned long granularity, unsigned long max_allocs) in simple_alloc_init() argument
132 heap_size = _ALIGN_UP(heap_size, granularity); in simple_alloc_init()
133 alloc_min = granularity; in simple_alloc_init()
/linux-6.12.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_blit.c115 return round_down(offset + diff_offs, granularity); \
128 if (diff_offs >= size || granularity == sizeof(_type)) \
151 size_t granularity) in vmw_find_first_diff() argument
167 granularity); in vmw_find_first_diff()
188 return round_down(location, granularity); \
202 if (location < 0 || granularity == sizeof(_type)) \
223 size_t granularity) in vmw_find_last_diff() argument
235 granularity); in vmw_find_last_diff()
/linux-6.12.1/drivers/pci/pcie/
Dptm.c169 int pci_enable_ptm(struct pci_dev *dev, u8 *granularity) in pci_enable_ptm() argument
180 if (granularity) in pci_enable_ptm()
181 *granularity = dev->ptm_granularity; in pci_enable_ptm()
/linux-6.12.1/drivers/cxl/
Dcxl.h83 static inline int eig_to_granularity(u16 eig, unsigned int *granularity) in eig_to_granularity() argument
87 *granularity = CXL_DECODER_MIN_GRANULARITY << eig; in eig_to_granularity()
108 static inline int granularity_to_eig(int granularity, u16 *eig) in granularity_to_eig() argument
110 if (granularity > SZ_16K || granularity < CXL_DECODER_MIN_GRANULARITY || in granularity_to_eig()
111 !is_power_of_2(granularity)) in granularity_to_eig()
113 *eig = ilog2(granularity) - 8; in granularity_to_eig()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/
Ddisplay_mode_util.h38 __DML_DLL_EXPORT__ dml_float_t dml_ceil(dml_float_t x, dml_float_t granularity);
39 __DML_DLL_EXPORT__ dml_float_t dml_floor(dml_float_t x, dml_float_t granularity);
/linux-6.12.1/drivers/gpu/drm/i915/
DKconfig.profile16 int "Timeout for unsignaled foreign fences (ms, jiffy granularity)"
56 int "Preempt timeout (ms, jiffy granularity)"
74 int "Preempt timeout for compute engines (ms, jiffy granularity)"
124 int "Scheduling quantum for userspace batches (ms, jiffy granularity)"
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-memory-page-offline13 The offlining is done in kernel specific granularity.
38 The offlining is done in kernel specific granularity.
/linux-6.12.1/drivers/thunderbolt/
Dusb4.c2742 int usb4_dp_port_set_granularity(struct tb_port *port, int granularity) in usb4_dp_port_set_granularity() argument
2757 switch (granularity) { in usb4_dp_port_set_granularity()
2788 u32 val, granularity; in usb4_dp_port_set_estimated_bandwidth() local
2797 granularity = ret; in usb4_dp_port_set_estimated_bandwidth()
2805 val |= (bw / granularity) << ADP_DP_CS_2_ESTIMATED_BW_SHIFT; in usb4_dp_port_set_estimated_bandwidth()
2821 u32 val, granularity; in usb4_dp_port_allocated_bandwidth() local
2830 granularity = ret; in usb4_dp_port_allocated_bandwidth()
2840 return val * granularity; in usb4_dp_port_allocated_bandwidth()
2917 u32 val, granularity; in usb4_dp_port_allocate_bandwidth() local
2926 granularity = ret; in usb4_dp_port_allocate_bandwidth()
[all …]
/linux-6.12.1/tools/testing/cxl/test/
Dcxl.c211 .granularity = 4,
226 .granularity = 4,
241 .granularity = 4,
256 .granularity = 4,
271 .granularity = 4,
286 .granularity = 4,
303 .granularity = 4,
319 .granularity = 0,
335 .granularity = 0,
796 eig_to_granularity(window->granularity, &cxld->interleave_granularity); in mock_init_hdm_decoder()
/linux-6.12.1/fs/cachefiles/
Dio.c199 loff_t start, size_t len, size_t granularity, in cachefiles_query_occupancy() argument
214 granularity = max_t(size_t, object->volume->cache->bsize, granularity); in cachefiles_query_occupancy()
227 if (round_up(off, granularity) >= start + len) in cachefiles_query_occupancy()
239 off = round_up(off, granularity); in cachefiles_query_occupancy()
240 off2 = round_down(off2, granularity); in cachefiles_query_occupancy()
/linux-6.12.1/drivers/staging/vme_user/
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.c470 unsigned int i, addr = 0, granularity = 0; in tsi148_slave_set() local
486 granularity = 0x10; in tsi148_slave_set()
490 granularity = 0x1000; in tsi148_slave_set()
494 granularity = 0x10000; in tsi148_slave_set()
498 granularity = 0x10000; in tsi148_slave_set()
513 vme_bound = vme_base + size - granularity; in tsi148_slave_set()
518 if (vme_base_low & (granularity - 1)) { in tsi148_slave_set()
522 if (vme_bound_low & (granularity - 1)) { in tsi148_slave_set()
526 if (pci_offset_low & (granularity - 1)) { in tsi148_slave_set()
613 unsigned int i, granularity = 0, ctl = 0; in tsi148_slave_get() local
[all …]
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_gt_pagefault.c56 u8 granularity; member
533 granularity_in_byte(acc->granularity) / SZ_1K, in print_acc()
534 sub_granularity_in_byte(acc->granularity) / SZ_1K, in print_acc()
541 sub_granularity_in_byte(acc->granularity); in get_acc_vma()
609 acc->granularity = FIELD_GET(ACC_GRANULARITY, desc->dw2); in get_acc()
/linux-6.12.1/fs/xfs/
Dxfs_discard.c644 unsigned int granularity = in xfs_ioc_trim() local
662 granularity = max(granularity, in xfs_ioc_trim()
675 range.minlen = max_t(u64, granularity, range.minlen); in xfs_ioc_trim()
/linux-6.12.1/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-6.12.1/include/acpi/
Dacrestyp.h286 u16 granularity; member
294 u32 granularity; member
302 u64 granularity; member
/linux-6.12.1/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-6.12.1/Documentation/hwmon/
Dsl28cpld.rst27 granularity.

123456