Home
last modified time | relevance | path

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

12345678910>>...14

/kernel/linux/linux-5.10/mm/
Dslob.c92 slobidx_t units; member
152 s[0].units = size; in set_slob()
153 s[1].units = offset; in set_slob()
155 s[0].units = -offset; 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()
177 next = -s[0].units; in slob_next()
179 next = s[1].units; in slob_next()
241 int delta = 0, units = SLOB_UNITS(size); in slob_page_alloc() local
[all …]
/kernel/linux/linux-5.10/sound/synth/
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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Dlibrapl.c13 u32 units; in librapl_energy_uJ() local
18 units = (power & 0x1f00) >> 8; in librapl_energy_uJ()
23 return (1000000 * power) >> units; /* convert to uJ */ in librapl_energy_uJ()
/kernel/linux/linux-5.10/drivers/watchdog/
Dit8712f_wdt.c152 int units = margin; in it8712f_wdt_update_margin() local
157 if (units <= max_units) { in it8712f_wdt_update_margin()
159 pr_info("timer margin %d seconds\n", units); in it8712f_wdt_update_margin()
161 units /= 60; in it8712f_wdt_update_margin()
162 pr_info("timer margin %d minutes\n", units); in it8712f_wdt_update_margin()
167 superio_outb(units >> 8, WDT_TIMEOUT + 1); in it8712f_wdt_update_margin()
168 superio_outb(units, WDT_TIMEOUT); in it8712f_wdt_update_margin()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/gr/
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,
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,
Dctxnv50.c302 u32 units = nvkm_rd32(device, 0x1540); in nv50_gr_construct_mmio() local
499 if (units & (1<<(i+16))) { in nv50_gr_construct_mmio()
583 if (units & (1<<i)) { in nv50_gr_construct_mmio()
598 if (!(units & (1 << (j+24)))) continue; in nv50_gr_construct_mmio()
1195 u32 units = nvkm_rd32(device, 0x1540); in nv50_gr_construct_xfer1() local
1235 if (units & (1 << (i + 16))) in nv50_gr_construct_xfer1()
1243 if (units & (1 << (2 * i))) in nv50_gr_construct_xfer1()
1245 if (units & (1 << (2 * i + 1))) in nv50_gr_construct_xfer1()
1294 if (units & (1<<(i+16))) in nv50_gr_construct_xfer1()
1304 if (units & (1 << 0)) in nv50_gr_construct_xfer1()
[all …]
/kernel/linux/linux-5.10/lib/
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()
/kernel/linux/linux-5.10/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c171 if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_poll_value()
192 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_read_samp_freq_value()
194 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_samp_freq_value()
217 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_write_samp_freq_value()
219 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_write_samp_freq_value()
365 unit_conversion[i].unit == attr_info->units) { in hid_sensor_format_scale()
396 if (st->poll.units == 0) in hid_sensor_get_reporting_interval()
397 st->poll.units = HID_USAGE_SENSOR_UNITS_MILLISECOND; in hid_sensor_get_reporting_interval()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/fsl/
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.
/kernel/linux/linux-5.10/drivers/char/
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()
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
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
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
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.
/kernel/linux/linux-5.10/tools/testing/selftests/size/
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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/4xx/
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>;
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/rng/
Dsparc_sun_oracle_rng.txt18 rng-#units: 00000002
25 rng-#units: 00000003
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-bus-iio-icm4260012 in SI units (m/s^2 for accelerometer and rad/s for gyroscope).
20 units (m/s^2 for accelerometer and rad/s for gyroscope).
Dsysfs-firmware-opal-powercap22 possible powercap in Watt units
25 possible powercap in Watt units
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.
/kernel/linux/linux-5.10/drivers/md/bcache/
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()
/kernel/linux/linux-5.10/drivers/block/paride/
Dpf.c246 static struct pf_unit units[PF_UNITS]; variable
294 for (unit = 0, pf = units; unit < PF_UNITS; unit++, pf++) { in pf_init_units()
725 struct pf_unit *pf = units; in pf_detect()
766 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { in pf_detect()
813 pf = &units[pf_queue]; in set_next_request()
1036 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { in pf_init()
1046 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { in pf_init()
1062 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { in pf_exit()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/crypto/
Dfsl-sec2.txt15 - fsl,exec-units-mask : The bitmask representing what execution units
63 fsl,exec-units-mask = <0xfe>;
/kernel/linux/linux-5.10/drivers/char/hw_random/
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()
/kernel/linux/linux-5.10/Documentation/admin-guide/media/
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

12345678910>>...14