Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 2240) sorted by relevance

12345678910>>...90

/linux/drivers/regulator/
H A Datc260x-regulator.c171 #define atc2603c_reg_desc_dcdc(num, min, step, n_volt, vsel_h, vsel_l) { \ argument
172 .name = "DCDC"#num, \
173 .supply_name = "dcdc"#num, \
174 .of_match = of_match_ptr("dcdc"#num), \
176 .id = ATC2603C_ID_DCDC##num, \
182 .vsel_reg = ATC2603C_PMU_DC##num##_CTL0, \
184 .enable_reg = ATC2603C_PMU_DC##num##_CTL0, \
190 #define atc2603c_reg_desc_dcdc_range(num, vsel_h, vsel_l) { \ argument
191 .name = "DCDC"#num, \
192 .supply_name = "dcdc"#num, \
[all …]
H A Dmax77686-regulator.c309 #define regulator_desc_ldo(num) { \ argument
310 .name = "LDO"#num, \
311 .of_match = of_match_ptr("LDO"#num), \
314 .id = MAX77686_LDO##num, \
322 .vsel_reg = MAX77686_REG_LDO1CTRL1 + num - 1, \
324 .enable_reg = MAX77686_REG_LDO1CTRL1 + num - 1, \
328 #define regulator_desc_lpm_ldo(num) { \ argument
329 .name = "LDO"#num, \
330 .of_match = of_match_ptr("LDO"#num), \
332 .id = MAX77686_LDO##num, \
[all …]
H A Ds2mps11.c358 #define regulator_desc_s2mps11_ldo(num, step) { \ argument
359 .name = "LDO"#num, \
360 .id = S2MPS11_LDO##num, \
368 .vsel_reg = S2MPS11_REG_L1CTRL + num - 1, \
370 .enable_reg = S2MPS11_REG_L1CTRL + num - 1, \
374 #define regulator_desc_s2mps11_buck1_4(num) { \ argument
375 .name = "BUCK"#num, \
376 .id = S2MPS11_BUCK##num, \
385 .vsel_reg = S2MPS11_REG_B1CTRL2 + (num - 1) * 2, \
387 .enable_reg = S2MPS11_REG_B1CTRL1 + (num - 1) * 2, \
[all …]
H A Dmax77802-regulator.c311 #define regulator_77802_desc_p_ldo(num, supply, log) { \ argument
312 .name = "LDO"#num, \
313 .of_match = of_match_ptr("LDO"#num), \
315 .id = MAX77802_LDO##num, \
324 .vsel_reg = MAX77802_REG_LDO1CTRL1 + num - 1, \
326 .enable_reg = MAX77802_REG_LDO1CTRL1 + num - 1, \
332 #define regulator_77802_desc_n_ldo(num, supply, log) { \ argument
333 .name = "LDO"#num, \
334 .of_match = of_match_ptr("LDO"#num), \
336 .id = MAX77802_LDO##num, \
[all …]
/linux/tools/power/cpupower/utils/idle_monitor/
H A Dcpuidle_sysfs.c79 void fix_up_intel_idle_driver_name(char *tmp, int num) in fix_up_intel_idle_driver_name() argument
83 switch (num) { in fix_up_intel_idle_driver_name()
95 switch (num) { in fix_up_intel_idle_driver_name()
110 switch (num) { in fix_up_intel_idle_driver_name()
143 int num; in cpuidle_register() local
155 for (num = 0; num < cpuidle_sysfs_monitor.hw_states_num; num++) { in cpuidle_register()
156 tmp = cpuidle_state_name(this_cpu, num); in cpuidle_register()
161 fix_up_intel_idle_driver_name(tmp, num); in cpuidle_register()
162 strncpy(cpuidle_cstates[num].name, tmp, CSTATE_NAME_LEN - 1); in cpuidle_register()
165 tmp = cpuidle_state_desc(this_cpu, num); in cpuidle_register()
[all …]
H A Dsnb_idle.c113 int num, cpu; in snb_start() local
116 for (num = 0; num < SNB_CSTATE_COUNT; num++) { in snb_start()
118 snb_get_count(num, &val, cpu); in snb_start()
119 previous_count[num][cpu] = val; in snb_start()
129 int num, cpu; in snb_stop() local
133 for (num = 0; num < SNB_CSTATE_COUNT; num++) { in snb_stop()
135 is_valid[cpu] = !snb_get_count(num, &val, cpu); in snb_stop()
136 current_count[num][cpu] = val; in snb_stop()
146 int num; in snb_register() local
167 for (num = 0; num < SNB_CSTATE_COUNT; num++) { in snb_register()
[all …]
H A Dhsw_ext_idle.c115 int num, cpu; in hsw_ext_start() local
118 for (num = 0; num < HSW_EXT_CSTATE_COUNT; num++) { in hsw_ext_start()
120 hsw_ext_get_count(num, &val, cpu); in hsw_ext_start()
121 previous_count[num][cpu] = val; in hsw_ext_start()
131 int num, cpu; in hsw_ext_stop() local
135 for (num = 0; num < HSW_EXT_CSTATE_COUNT; num++) { in hsw_ext_stop()
137 is_valid[cpu] = !hsw_ext_get_count(num, &val, cpu); in hsw_ext_stop()
138 current_count[num][cpu] = val; in hsw_ext_stop()
148 int num; in hsw_ext_register() local
162 for (num = 0; num < HSW_EXT_CSTATE_COUNT; num++) { in hsw_ext_register()
[all …]
H A Dnhm_idle.c128 int num, cpu; in nhm_start() local
133 for (num = 0; num < NHM_CSTATE_COUNT; num++) { in nhm_start()
135 is_valid[cpu] = !nhm_get_count(num, &val, cpu); in nhm_start()
136 previous_count[num][cpu] = val; in nhm_start()
148 int num, cpu; in nhm_stop() local
152 for (num = 0; num < NHM_CSTATE_COUNT; num++) { in nhm_stop()
154 is_valid[cpu] = !nhm_get_count(num, &val, cpu); in nhm_stop()
155 current_count[num][cpu] = val; in nhm_stop()
168 int num; in intel_nhm_register() local
181 for (num = 0; num < NHM_CSTATE_COUNT; num++) { in intel_nhm_register()
[all …]
H A Dcpupower-monitor.c222 unsigned int num; in parse_monitor_param() local
238 for (num = 0; num < avail_monitors; num++) { in parse_monitor_param()
239 if (!strcmp(monitors[num]->name, token)) { in parse_monitor_param()
241 tmp_mons[hits] = monitors[num]; in parse_monitor_param()
284 unsigned int num; in fork_it() local
292 for (num = 0; num < avail_monitors; num++) in fork_it()
293 monitors[num]->start(); in fork_it()
313 for (num = 0; num < avail_monitors; num++) in fork_it()
314 monitors[num]->stop(); in fork_it()
326 unsigned int num; in do_interval_measure() local
[all …]
/linux/drivers/media/platform/amphion/
H A Dvpu_dbg.c64 int num; in vpu_dbg_instance() local
70 num = scnprintf(str, sizeof(str), "[%s]\n", vpu_core_type_desc(inst->type)); in vpu_dbg_instance()
71 if (seq_write(s, str, num)) in vpu_dbg_instance()
74 num = scnprintf(str, sizeof(str), "tgig = %d,pid = %d\n", inst->tgid, inst->pid); in vpu_dbg_instance()
75 if (seq_write(s, str, num)) in vpu_dbg_instance()
77 num = scnprintf(str, sizeof(str), "state = %s\n", vpu_codec_state_name(inst->state)); in vpu_dbg_instance()
78 if (seq_write(s, str, num)) in vpu_dbg_instance()
80 num = scnprintf(str, sizeof(str), in vpu_dbg_instance()
83 if (seq_write(s, str, num)) in vpu_dbg_instance()
87 num = scnprintf(str, sizeof(str), in vpu_dbg_instance()
[all …]
/linux/arch/loongarch/include/asm/
H A Dalternative.h30 #define b_replacement(num) "664"#num argument
31 #define e_replacement(num) "665"#num argument
36 #define alt_rlen(num) e_replacement(num)"f-"b_replacement(num)"f" argument
38 #define __OLDINSTR(oldinstr, num) \ argument
40 ".fill -(((" alt_rlen(num) ")-(" alt_slen ")) > 0) * " \
41 "((" alt_rlen(num) ")-(" alt_slen ")) / 4, 4, 0x03400000\n"
43 #define OLDINSTR(oldinstr, num) \ argument
44 __OLDINSTR(oldinstr, num) \
60 #define ALTINSTR_ENTRY(feature, num) \ argument
62 " .long " b_replacement(num)"f - .\n" /* new instruction */ \
[all …]
H A Dgpr-num.h8 .irp num,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
9 .equ .L__gpr_num_$r\num, \num
16 .irp num,0,1,2,3,4,5,6,7
17 .equ .L__gpr_num_$a\num, 4 + \num
19 .irp num,0,1,2,3,4,5,6,7,8
20 .equ .L__gpr_num_$t\num, 12 + \num
24 .irp num,0,1,2,3,4,5,6,7,8
25 .equ .L__gpr_num_$s\num, 23 + \num
/linux/rust/kernel/list/
H A Dimpl_list_item_mod.rs123 $(impl$({$($generics:tt)*})? ListItem<$num:tt> for $t:ty {
128 unsafe impl$(<$($generics)*>)? $crate::list::ListItem<$num> for $t {
134 unsafe fn view_links(me: *const Self) -> *mut $crate::list::ListLinks<$num> {
137 <Self as $crate::list::HasListLinks<$num>>::raw_get_list_links(me.cast_mut())
150 unsafe fn view_value(me: *mut $crate::list::ListLinks<$num>) -> *const Self {
151 let offset = <Self as $crate::list::HasListLinks<$num>>::OFFSET;
166 unsafe fn prepare_to_insert(me: *const Self) -> *mut $crate::list::ListLinks<$num> {
168 unsafe { <Self as $crate::list::ListItem<$num>>::view_links(me) }
176 unsafe fn post_remove(me: *mut $crate::list::ListLinks<$num>) -> *const Self {
177 let offset = <Self as $crate::list::HasListLinks<$num>>::OFFSET;
[all …]
/linux/arch/powerpc/sysdev/
H A Dmpic_timer.c43 #define TIMER_OFFSET(num) (1 << (TIMERS_PER_GROUP - 1 - num)) argument
113 unsigned int num; in detect_idle_cascade_timer() local
122 num = casc_priv->timer_num; in detect_idle_cascade_timer()
123 priv->timer[num].cascade_handle = casc_priv; in detect_idle_cascade_timer()
128 return &priv->timer[num]; in detect_idle_cascade_timer()
138 unsigned int num) in set_cascade_timer() argument
146 casc_priv = priv->timer[num].cascade_handle; in set_cascade_timer()
156 out_be32(&priv->regs[num].gtccr, 0); in set_cascade_timer()
157 out_be32(&priv->regs[num].gtbcr, tmp_ticks | TIMER_STOP); in set_cascade_timer()
159 out_be32(&priv->regs[num - 1].gtccr, 0); in set_cascade_timer()
[all …]
/linux/tools/testing/selftests/kvm/aarch64/
H A Dvgic_irq.c67 uint32_t num; member
74 uint32_t num, int level, bool expect_failure);
80 #define _KVM_INJECT_MULTI(cmd, intid, num, expect_failure) \ argument
81 kvm_inject_call(cmd, intid, num, -1 /* not used */, expect_failure)
83 #define KVM_INJECT_MULTI(cmd, intid, num) \ argument
84 _KVM_INJECT_MULTI(cmd, intid, num, false)
192 uint32_t num, int level, bool expect_failure) in kvm_inject_call() argument
197 .num = num, in kvm_inject_call()
257 uint32_t first_intid, uint32_t num, in guest_inject() argument
265 for (i = first_intid; i < num + first_intid; i++) in guest_inject()
[all …]
/linux/arch/alpha/boot/
H A Dstdio.c43 static char * number(char * str, unsigned long long num, int base, int size, int precision, int typ… in number() argument
58 if ((signed long long)num < 0) { in number()
60 num = - (signed long long)num; in number()
77 if (num == 0) in number()
79 else while (num != 0) { in number()
80 tmp[i++] = digits[do_div(num, base)]; in number()
113 unsigned long long num; in vsprintf() local
269 num = va_arg(args, unsigned long); in vsprintf()
271 num = (signed long) num; in vsprintf()
273 num = va_arg(args, unsigned long long); in vsprintf()
[all …]
/linux/drivers/iio/chemical/
H A Dsps30_serial.c46 size_t num; member
57 priv->num = 0; in sps30_serial_xfer()
122 static unsigned char sps30_serial_calc_chksum(const unsigned char *buf, size_t num) in sps30_serial_calc_chksum() argument
127 for (i = 0; i < num; i++) in sps30_serial_calc_chksum()
137 int num = 0; in sps30_serial_prep_frame() local
140 buf[num++] = SPS30_SERIAL_SOF_EOF; in sps30_serial_prep_frame()
141 buf[num++] = 0; in sps30_serial_prep_frame()
142 num += sps30_serial_put_byte(buf + num, cmd); in sps30_serial_prep_frame()
143 num += sps30_serial_put_byte(buf + num, arg_size); in sps30_serial_prep_frame()
146 num += sps30_serial_put_byte(buf + num, arg[i]); in sps30_serial_prep_frame()
[all …]
/linux/drivers/staging/greybus/
H A Daudio_manager_sysfs.c20 int num = sscanf(buf, in manager_sysfs_add_store() local
26 if (num != 7) in manager_sysfs_add_store()
29 num = gb_audio_manager_add(&desc); in manager_sysfs_add_store()
30 if (num < 0) in manager_sysfs_add_store()
45 int num = kstrtoint(buf, 10, &id); in manager_sysfs_remove_store() local
47 if (num != 1) in manager_sysfs_remove_store()
50 num = gb_audio_manager_remove(id); in manager_sysfs_remove_store()
51 if (num) in manager_sysfs_remove_store()
52 return num; in manager_sysfs_remove_store()
66 int num = kstrtoint(buf, 10, &id); in manager_sysfs_dump_store() local
[all …]
/linux/drivers/clk/
H A Dclk-si5351.c46 unsigned char num; member
122 static inline u8 si5351_msynth_params_address(int num) in si5351_msynth_params_address() argument
124 if (num > 5) in si5351_msynth_params_address()
125 return SI5351_CLK6_PARAMETERS + (num - 6); in si5351_msynth_params_address()
126 return SI5351_CLK0_PARAMETERS + (SI5351_PARAMETERS_LENGTH * num); in si5351_msynth_params_address()
366 int num, enum si5351_pll_src parent) in _si5351_pll_reparent() argument
368 u8 mask = (num == 0) ? SI5351_PLLA_SOURCE : SI5351_PLLB_SOURCE; in _si5351_pll_reparent()
373 if (num > 2) in _si5351_pll_reparent()
389 u8 mask = (hwdata->num == 0) ? SI5351_PLLA_SOURCE : SI5351_PLLB_SOURCE; in si5351_pll_get_parent()
409 return _si5351_pll_reparent(hwdata->drvdata, hwdata->num, in si5351_pll_set_parent()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dexceptions_assert.c16 type num = bpf_ktime_get_ns(); \
17 bpf_assert(bpf_cmp_unlikely(num, op, value)); \
18 return *(u64 *)num; \
66 s64 num; in check_assert_range_s64() local
71 num = sk->rx_queue_mapping; in check_assert_range_s64()
72 bpf_assert_range(num, INT_MIN + 2, INT_MAX - 2); in check_assert_range_s64()
73 return *((u8 *)ctx + num); in check_assert_range_s64()
81 u64 num = ctx->len; in check_assert_range_u64() local
83 bpf_assert_range(num, 4096, 8192); in check_assert_range_u64()
84 return *((u8 *)ctx + num); in check_assert_range_u64()
[all …]
/linux/Documentation/ABI/obsolete/
H A Dsysfs-driver-hid-roccat-ryos1 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
9 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
21 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
31 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
41 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
51 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
61 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
71 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
81 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
92 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
[all …]
H A Dsysfs-driver-hid-roccat-isku1 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
12 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
20 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
31 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
41 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
51 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
61 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
71 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
81 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
91 …sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-…
[all …]
/linux/tools/perf/tests/shell/
H A Dstat+shadow_stat.sh17 perf stat -a --no-big-num -e cycles,instructions sleep 1 2>&1 | \
19 while read num evt _ ipc rest
22 if [ "$num" = "<not" ]; then
28 cyc=$num
38 res=`echo $num $cyc | awk '{printf "%.2f", $1 / $2}'`
45 echo "IPC is different: $res != $ipc ($num / $cyc)"
56 perf stat -a -A --no-big-num -e cycles,instructions sleep 1 2>&1 | \
58 while read cpu num evt _ ipc rest
61 if [ "$num" = "<not" ]; then
67 results="$results $cpu:$num"
[all …]
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_profile.c71 int num; in mthca_make_profile() member
99 profile[MTHCA_RES_QP].num = request->num_qp; in mthca_make_profile()
100 profile[MTHCA_RES_SRQ].num = request->num_srq; in mthca_make_profile()
101 profile[MTHCA_RES_EQP].num = request->num_qp; in mthca_make_profile()
102 profile[MTHCA_RES_RDB].num = request->num_qp * request->rdb_per_qp; in mthca_make_profile()
103 profile[MTHCA_RES_CQ].num = request->num_cq; in mthca_make_profile()
104 profile[MTHCA_RES_EQ].num = MTHCA_NUM_EQS; in mthca_make_profile()
105 profile[MTHCA_RES_MCG].num = request->num_mcg; in mthca_make_profile()
106 profile[MTHCA_RES_MPT].num = request->num_mpt; in mthca_make_profile()
107 profile[MTHCA_RES_MTT].num = request->num_mtt; in mthca_make_profile()
[all …]
/linux/drivers/pcmcia/
H A Drsrc_nonstatic.c49 u_long base, num; member
108 static int add_interval(struct resource_map *map, u_long base, u_long num) in add_interval() argument
113 if ((p != map) && (p->base+p->num >= base)) { in add_interval()
114 p->num = max(num + base - p->base, p->num); in add_interval()
117 if ((p->next == map) || (p->next->base > base+num-1)) in add_interval()
125 q->base = base; q->num = num; in add_interval()
132 static int sub_interval(struct resource_map *map, u_long base, u_long num) in sub_interval() argument
140 if ((q->base+q->num > base) && (base+num > q->base)) { in sub_interval()
142 if (q->base+q->num <= base+num) { in sub_interval()
150 q->num = q->base + q->num - base - num; in sub_interval()
[all …]

12345678910>>...90