| /linux/drivers/gpu/drm/amd/display/dc/dml/ |
| H A D | dml_inline_defs.h | 67 static inline double dml_ceil(double a, double granularity) in dml_ceil() argument 69 if (granularity == 0) in dml_ceil() 71 return (double) dcn_bw_ceil2(a, granularity); in dml_ceil() 74 static inline double dml_floor(double a, double granularity) in dml_floor() argument 76 if (granularity == 0) in dml_floor() 78 return (double) dcn_bw_floor2(a, granularity); in dml_floor() 119 static inline double dml_ceil_ex(double x, double granularity) in dml_ceil_ex() argument 121 if (granularity == 0) in dml_ceil_ex() 123 return (double) dcn_bw_ceil2(x, granularity); in dml_ceil_ex() 126 static inline double dml_floor_ex(double x, double granularity) in dml_floor_ex() argument [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A D | rsaddr.c | 41 {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),
|
| H A D | amlresrc.h | 224 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
|
| H A D | rsdumpinfo.c | 150 {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/sound/pci/lola/ |
| H A D | lola.c | 39 static int granularity[SNDRV_CARDS] = { variable 48 module_param_array(granularity, int, NULL, 0444); 49 MODULE_PARM_DESC(granularity, "Granularity value"); 417 lola_set_granularity(chip, chip->granularity, true); in lola_reset_setups() 515 if (chip->granularity != LOLA_GRANULARITY_MIN) in lola_parse_tree() 516 lola_set_granularity(chip, chip->granularity, true); in lola_parse_tree() 555 chip->granularity = granularity[dev]; in lola_create() 556 switch (chip->granularity) { in lola_create() 569 chip->granularity, LOLA_GRANULARITY_MAX); in lola_create() 570 chip->granularity = LOLA_GRANULARITY_MAX; in lola_create()
|
| H A D | lola_clock.c | 59 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()
|
| H A D | lola_pcm.c | 42 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() 237 chip->granularity); in lola_pcm_open() 239 chip->granularity); in lola_pcm_open()
|
| /linux/arch/powerpc/boot/ |
| H A D | simple_alloc.c | 128 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/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_blit.c | 115 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/drivers/cxl/ |
| H A D | cxl.h | 84 static inline int eig_to_granularity(u16 eig, unsigned int *granularity) in eig_to_granularity() argument 88 *granularity = CXL_DECODER_MIN_GRANULARITY << eig; in eig_to_granularity() 109 static inline int granularity_to_eig(int granularity, u16 *eig) in granularity_to_eig() argument 111 if (granularity > SZ_16K || granularity < CXL_DECODER_MIN_GRANULARITY || in granularity_to_eig() 112 !is_power_of_2(granularity)) in granularity_to_eig() 114 *eig = ilog2(granularity) - 8; in granularity_to_eig()
|
| /linux/block/ |
| H A D | blk-settings.c | 632 unsigned int granularity = max(lim->physical_block_size, lim->io_min); in queue_limit_alignment_offset() local 633 unsigned int alignment = sector_div(sector, granularity >> SECTOR_SHIFT) in queue_limit_alignment_offset() 636 return (granularity + lim->alignment_offset - alignment) % granularity; in queue_limit_alignment_offset() 642 unsigned int alignment, granularity, offset; in queue_limit_discard_alignment() local 649 granularity = lim->discard_granularity >> SECTOR_SHIFT; in queue_limit_discard_alignment() 652 offset = sector_div(sector, granularity); in queue_limit_discard_alignment() 655 offset = (granularity + alignment - offset) % granularity; in queue_limit_discard_alignment()
|
| /linux/Documentation/wmi/devices/ |
| H A D | uniwill-laptop.rst | 153 System memory can be accessed with a granularity of either a single byte (``MMRB`` for reading and 161 The internal RAM of the EC can be accessed with a granularity of a single byte using the ``ECRR`` 169 The PCI config space can be accessed with a granularity of four bytes using the ``PCRD`` (read) and 176 IO ports can be accessed with a granularity of four bytes using the ``IORD`` (read) and ``IOWD`` 183 The CMOS RAM can be accessed with a granularity of a single byte using the ``RCMS`` (read) and 190 Indexed IO with IO ports with a granularity of a single byte can be performed using the ``RIOP``
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/ |
| H A D | display_mode_util.h | 37 __DML_DLL_EXPORT__ dml_float_t dml_ceil(dml_float_t x, dml_float_t granularity); 38 __DML_DLL_EXPORT__ dml_float_t dml_floor(dml_float_t x, dml_float_t granularity);
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | Kconfig.profile | 16 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/drivers/thunderbolt/ |
| H A D | usb4.c | 2867 int usb4_dp_port_set_granularity(struct tb_port *port, int granularity) in usb4_dp_port_set_granularity() argument 2882 switch (granularity) { in usb4_dp_port_set_granularity() 2916 u32 val, granularity; in usb4_dp_port_set_estimated_bandwidth() local 2925 granularity = ret; in usb4_dp_port_set_estimated_bandwidth() 2933 val |= (bw / granularity) << ADP_DP_CS_2_ESTIMATED_BW_SHIFT; in usb4_dp_port_set_estimated_bandwidth() 2950 u32 val, granularity; in usb4_dp_port_allocated_bandwidth() local 2959 granularity = ret; in usb4_dp_port_allocated_bandwidth() 2969 return val * granularity; in usb4_dp_port_allocated_bandwidth() 3047 u32 val, granularity; in usb4_dp_port_allocate_bandwidth() local 3056 granularity = ret; in usb4_dp_port_allocate_bandwidth() [all …]
|
| /linux/fs/cachefiles/ |
| H A D | io.c | 200 loff_t start, size_t len, size_t granularity, in cachefiles_query_occupancy() argument 215 granularity = max_t(size_t, object->volume->cache->bsize, granularity); in cachefiles_query_occupancy() 228 if (round_up(off, granularity) >= start + len) in cachefiles_query_occupancy() 240 off = round_up(off, granularity); in cachefiles_query_occupancy() 241 off2 = round_down(off2, granularity); in cachefiles_query_occupancy()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-memory-page-offline | 13 The offlining is done in kernel specific granularity. 38 The offlining is done in kernel specific granularity.
|
| /linux/drivers/staging/vme_user/ |
| H A D | vme_tsi148.c | 470 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 …]
|
| H A D | vme_fake.c | 158 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()
|
| /linux/tools/testing/cxl/test/ |
| H A D | cxl.c | 216 .granularity = 4, 231 .granularity = 4, 246 .granularity = 4, 261 .granularity = 4, 276 .granularity = 4, 291 .granularity = 4, 308 .granularity = 4, 324 .granularity = 0, 340 .granularity = 1, 831 eig_to_granularity(window->granularity, &cxld->interleave_granularity); in mock_init_hdm_decoder()
|
| /linux/sound/pci/pcxhr/ |
| H A D | pcxhr_core.c | 1137 mgr->granularity); in pcxhr_stream_read_position() 1155 samples_to_add = mgr->granularity; in pcxhr_update_timer_pos() 1165 if (new_sample_count >= mgr->granularity) { in pcxhr_update_timer_pos() 1170 new_sample_count -= mgr->granularity; in pcxhr_update_timer_pos() 1280 if (tmp_diff > 0 && tmp_diff <= (2*mgr->granularity)) { in pcxhr_threaded_irq() 1296 else if (dsp_time_diff >= (2*mgr->granularity)) in pcxhr_threaded_irq() 1301 else if (dsp_time_diff % mgr->granularity) in pcxhr_threaded_irq()
|
| /linux/fs/xfs/ |
| H A D | xfs_discard.c | 815 unsigned int granularity = in xfs_ioc_trim() local 834 granularity = max(granularity, in xfs_ioc_trim() 847 range.minlen = max_t(u64, granularity, range.minlen); in xfs_ioc_trim()
|
| /linux/include/acpi/ |
| H A D | acrestyp.h | 286 u16 granularity; member 294 u32 granularity; member 302 u64 granularity; member
|
| /linux/drivers/pci/pcie/ |
| H A D | ptm.c | 193 int pci_enable_ptm(struct pci_dev *dev, u8 *granularity) in pci_enable_ptm() argument 204 if (granularity) in pci_enable_ptm() 205 *granularity = dev->ptm_granularity; in pci_enable_ptm()
|
| /linux/Documentation/scheduler/ |
| H A D | sched-nice-design.rst | 52 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
|