Home
last modified time | relevance | path

Searched refs:units (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/linux/mm/
A Dslob.c92 slobidx_t units; member
152 s[0].units = size; in set_slob()
163 if (s->units > 0) in slob_units()
164 return s->units; in slob_units()
176 if (s[0].units < 0) in slob_next()
283 set_slob(cur + units, avail - units, next); in slob_page_alloc()
286 sp->units -= units; in slob_page_alloc()
386 slobidx_t units; in slob_free() local
399 if (sp->units + units == SLOB_UNITS(PAGE_SIZE)) { in slob_free()
412 sp->units = units; in slob_free()
[all …]
/linux/sound/synth/
A Dutil_mem.c63 unsigned int units, prev_offset; in __snd_util_mem_alloc() local
70 units = size; in __snd_util_mem_alloc()
71 if (units & 1) in __snd_util_mem_alloc()
72 units++; in __snd_util_mem_alloc()
73 if (units > hdr->size) in __snd_util_mem_alloc()
80 if (blk->offset - prev_offset >= units) in __snd_util_mem_alloc()
84 if (hdr->size - prev_offset < units) in __snd_util_mem_alloc()
88 return __snd_util_memblk_new(hdr, units, p->prev); in __snd_util_mem_alloc()
97 __snd_util_memblk_new(struct snd_util_memhdr *hdr, unsigned int units, in __snd_util_memblk_new() argument
113 blk->size = units; in __snd_util_memblk_new()
[all …]
/linux/drivers/watchdog/
A Dit8712f_wdt.c151 int units = margin; in it8712f_wdt_update_margin() local
156 if (units <= max_units) { in it8712f_wdt_update_margin()
158 pr_info("timer margin %d seconds\n", units); in it8712f_wdt_update_margin()
160 units /= 60; in it8712f_wdt_update_margin()
161 pr_info("timer margin %d minutes\n", units); in it8712f_wdt_update_margin()
166 superio_outb(units >> 8, WDT_TIMEOUT + 1); in it8712f_wdt_update_margin()
167 superio_outb(units, WDT_TIMEOUT); in it8712f_wdt_update_margin()
/linux/drivers/gpu/drm/i915/selftests/
A Dlibrapl.c23 u32 units; in librapl_energy_uJ() local
28 units = (power & 0x1f00) >> 8; in librapl_energy_uJ()
33 return (1000000 * power) >> units; /* convert to uJ */ in librapl_energy_uJ()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
A Dg84.c96 const struct nvkm_bitfield *units, u32 status) in nvkm_gr_vstatus_print() argument
104 for (i = 0; units[i].name && status; i++) { in nvkm_gr_vstatus_print()
110 nvkm_snprintbf(msg, sizeof(msg), units, mask); in nvkm_gr_vstatus_print()
183 .units = nv50_gr_units,
A Dnv50.c286 u32 units = nvkm_rd32(device, 0x1540); in nv50_gr_mp_trap() local
292 if (!(units & 1 << (i+24))) in nv50_gr_mp_trap()
330 u32 units = nvkm_rd32(device, 0x1540); in nv50_gr_tp_trap() local
336 if (!(units & (1 << i))) in nv50_gr_tp_trap()
683 int ret, units, i; in nv50_gr_init() local
696 units = nvkm_rd32(device, 0x001540); in nv50_gr_init()
698 if (!(units & (1 << i))) in nv50_gr_init()
781 .units = nv50_gr_units,
A Dctxnv50.c583 if (units & (1<<i)) { in nv50_gr_construct_mmio()
1304 if (units & (1 << 0)) in nv50_gr_construct_xfer1()
1306 if (units & (1 << 1)) in nv50_gr_construct_xfer1()
1308 if (units & (1 << 2)) in nv50_gr_construct_xfer1()
1310 if (units & (1 << 3)) in nv50_gr_construct_xfer1()
1318 if (units & (1 << 4)) in nv50_gr_construct_xfer1()
1320 if (units & (1 << 5)) in nv50_gr_construct_xfer1()
1322 if (units & (1 << 6)) in nv50_gr_construct_xfer1()
1324 if (units & (1 << 7)) in nv50_gr_construct_xfer1()
1326 if (units & (1 << 8)) in nv50_gr_construct_xfer1()
[all …]
/linux/Documentation/devicetree/bindings/powerpc/fsl/
A Dsrio-rmu.txt22 length of the SRIO configuration registers for message units
23 and doorbell units.
53 length of the SRIO configuration registers for message units
54 and doorbell units.
83 length of the SRIO configuration registers for message units
84 and doorbell units.
113 length of the SRIO configuration registers for message units
114 and doorbell units.
/linux/drivers/char/
A Dapm-emulation.c439 char *units; in proc_apm_show() local
446 info.units = -1; in proc_apm_show()
451 switch (info.units) { in proc_apm_show()
452 default: units = "?"; break; in proc_apm_show()
453 case 0: units = "min"; break; in proc_apm_show()
454 case 1: units = "sec"; break; in proc_apm_show()
461 info.time, units); in proc_apm_show()
/linux/drivers/iio/common/hid-sensors/
A Dhid-sensor-attributes.c166 if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_poll_value()
187 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_read_samp_freq_value()
189 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_samp_freq_value()
212 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_write_samp_freq_value()
214 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_write_samp_freq_value()
414 unit_conversion[i].unit == attr_info->units) { in hid_sensor_format_scale()
445 if (st->poll.units == 0) in hid_sensor_get_reporting_interval()
446 st->poll.units = HID_USAGE_SENSOR_UNITS_MILLISECOND; in hid_sensor_get_reporting_interval()
/linux/lib/
A Dstring_helpers.c34 void string_get_size(u64 size, u64 blk_size, const enum string_size_units units, in string_get_size() argument
76 do_div(blk_size, divisor[units]); in string_get_size()
81 do_div(size, divisor[units]); in string_get_size()
90 while (size >= divisor[units]) { in string_get_size()
91 remainder = do_div(size, divisor[units]); in string_get_size()
101 if (units == STRING_UNITS_2) { in string_get_size()
126 unit = units_str[units][i]; in string_get_size()
/linux/Documentation/userspace-api/media/v4l/
A Dvidioc-s-hw-freq-seek.rst97 units of 62.5 kHz, or if the struct
99 ``V4L2_TUNER_CAP_LOW`` flag set, in units of 62.5 Hz or if the
101 the ``V4L2_TUNER_CAP_1HZ`` flag set, in units of 1 Hz. If
106 in units of 62.5 kHz, or if the struct
108 ``V4L2_TUNER_CAP_LOW`` flag set, in units of 62.5 Hz or if the
110 the ``V4L2_TUNER_CAP_1HZ`` flag set, in units of 1 Hz. If
A Dvidioc-g-modulator.rst89 - The lowest tunable frequency in units of 62.5 KHz, or if the
90 ``capability`` flag ``V4L2_TUNER_CAP_LOW`` is set, in units of
92 set, in units of 1 Hz.
95 - The highest tunable frequency in units of 62.5 KHz, or if the
96 ``capability`` flag ``V4L2_TUNER_CAP_LOW`` is set, in units of
98 set, in units of 1 Hz.
A Dvidioc-enum-freq-bands.rst81 - :cspan:`2` The lowest tunable frequency in units of 62.5 kHz, or
82 if the ``capability`` flag ``V4L2_TUNER_CAP_LOW`` is set, in units
87 - :cspan:`2` The highest tunable frequency in units of 62.5 kHz,
89 units of 62.5 Hz, for this frequency band. A 1 Hz unit is used
/linux/Documentation/devicetree/bindings/powerpc/4xx/
A Dcpm.txt16 - unused-units : specifier consist of one cell. For each
34 standby only class 2 and 3 units are set.
48 unused-units = <0x00000100>;
/linux/tools/testing/selftests/size/
A Dget_size.c68 static int print_k_value(const char *s, unsigned long num, unsigned long units) in print_k_value() argument
76 temp = (temp * units)/1024; in print_k_value()
/linux/Documentation/devicetree/bindings/rng/
A Dsparc_sun_oracle_rng.txt18 rng-#units: 00000002
25 rng-#units: 00000003
/linux/drivers/md/bcache/
A Dutil.c94 static const char units[] = "?kMGTPEZY"; in STRTO_H() local
119 return sprintf(buf, "-%llu.%i%c", q, t * 10 / 1024, units[u]); in STRTO_H()
121 return sprintf(buf, "%llu.%i%c", q, t * 10 / 1024, units[u]); in STRTO_H()
/linux/Documentation/ABI/testing/
A Dsysfs-firmware-opal-powercap22 possible powercap in Watt units
25 possible powercap in Watt units
A Dsysfs-block-bcache49 units (i.e. echo 10M > sequntial_cutoff).
57 readable units.
120 For a cache, bucket size in human readable units, as set at
149 For a cache, total amount of data in human readable units
156 For a cache, sum of all btree writes in human readable units.
/linux/drivers/char/hw_random/
A Dn2-drv.c369 struct n2rng_unit *up = &np->units[i]; in n2rng_control_swstate_init()
591 &np->units[unit].control[0], in n2rng_control_selftest()
620 struct n2rng_unit *up = &np->units[unit]; in n2rng_control_configure_units()
752 np->units = devm_kcalloc(&op->dev, np->num_units, sizeof(*np->units), in n2rng_probe()
755 if (!np->units) in n2rng_probe()
/linux/Documentation/devicetree/bindings/crypto/
A Dfsl-sec2.txt15 - fsl,exec-units-mask : The bitmask representing what execution units
63 fsl,exec-units-mask = <0xfe>;
/linux/drivers/acpi/
A Dosl.c1242 acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout) in acpi_os_wait_semaphore() argument
1252 if (!sem || (units < 1)) in acpi_os_wait_semaphore()
1255 if (units > 1) in acpi_os_wait_semaphore()
1259 handle, units, timeout)); in acpi_os_wait_semaphore()
1273 handle, units, timeout, in acpi_os_wait_semaphore()
1278 units, timeout)); in acpi_os_wait_semaphore()
1287 acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units) in acpi_os_signal_semaphore() argument
1294 if (!sem || (units < 1)) in acpi_os_signal_semaphore()
1297 if (units > 1) in acpi_os_signal_semaphore()
1301 units)); in acpi_os_signal_semaphore()
/linux/tools/power/acpi/os_specific/service_layers/
A Dosunixxf.c602 acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout) in acpi_os_wait_semaphore() argument
607 acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units) in acpi_os_signal_semaphore() argument
715 acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 msec_timeout) in acpi_os_wait_semaphore() argument
833 acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units) in acpi_os_signal_semaphore() argument
/linux/Documentation/admin-guide/media/
A Dsi476x.rst56 0x08 hicut HiCut cutoff frequency in units of
58 0x09 hiblend HiBlend cutoff frequency in units
137 0x14 freqoff Signed frequency offset in units of
150 0x26 pilotdev Pilot deviation in units of 100 Hz

Completed in 47 milliseconds

12345678910>>...14