Home
last modified time | relevance | path

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

12345678910>>...110

/linux-6.6.21/drivers/regulator/
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 …]
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 …]
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 …]
Ds2mps11.c357 #define regulator_desc_s2mps11_ldo(num, step) { \ argument
358 .name = "LDO"#num, \
359 .id = S2MPS11_LDO##num, \
367 .vsel_reg = S2MPS11_REG_L1CTRL + num - 1, \
369 .enable_reg = S2MPS11_REG_L1CTRL + num - 1, \
373 #define regulator_desc_s2mps11_buck1_4(num) { \ argument
374 .name = "BUCK"#num, \
375 .id = S2MPS11_BUCK##num, \
384 .vsel_reg = S2MPS11_REG_B1CTRL2 + (num - 1) * 2, \
386 .enable_reg = S2MPS11_REG_B1CTRL1 + (num - 1) * 2, \
[all …]
/linux-6.6.21/tools/power/cpupower/utils/idle_monitor/
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 …]
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 …]
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 …]
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 …]
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-6.6.21/drivers/media/platform/amphion/
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-6.6.21/arch/x86/kernel/
Dearly-quirks.c32 static void __init fix_hypertransport_config(int num, int slot, int func) in fix_hypertransport_config() argument
41 htcfg = read_pci_config(num, slot, func, 0x68); in fix_hypertransport_config()
51 write_pci_config(num, slot, func, 0x68, htcfg); in fix_hypertransport_config()
58 static void __init via_bugs(int num, int slot, int func) in via_bugs() argument
81 static void __init nvidia_bugs(int num, int slot, int func) in nvidia_bugs() argument
89 if (num) in nvidia_bugs()
117 static u32 __init ati_ixp4x0_rev(int num, int slot, int func) in ati_ixp4x0_rev() argument
122 b = read_pci_config_byte(num, slot, func, 0xac); in ati_ixp4x0_rev()
124 write_pci_config_byte(num, slot, func, 0xac, b); in ati_ixp4x0_rev()
126 d = read_pci_config(num, slot, func, 0x70); in ati_ixp4x0_rev()
[all …]
/linux-6.6.21/arch/loongarch/include/asm/
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 …]
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-6.6.21/drivers/staging/greybus/
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-6.6.21/arch/s390/include/asm/
Dalternative.h43 #define b_altinstr(num) "664"#num argument
44 #define e_altinstr(num) "665"#num argument
46 #define altinstr_len(num) e_altinstr(num)"b-"b_altinstr(num)"b" argument
51 #define ALTINSTR_ENTRY(facility, num) \ argument
53 "\t.long " b_altinstr(num)"b - .\n" /* alt instruction */ \
56 "\t.org . - (" oldinstr_len ") + (" altinstr_len(num) ")\n" \
57 "\t.org . - (" altinstr_len(num) ") + (" oldinstr_len ")\n"
59 #define ALTINSTR_REPLACEMENT(altinstr, num) /* replacement */ \ argument
60 b_altinstr(num)":\n\t" altinstr "\n" e_altinstr(num) ":\n"
/linux-6.6.21/tools/perf/tests/shell/
Dstat+shadow_stat.sh15 perf stat -a --no-big-num -e cycles,instructions sleep 1 2>&1 | \
17 while read num evt _hash ipc rest
20 if [ "$num" = "<not" ]; then
26 cyc=$num
36 res=`printf "%.2f" "$(echo "scale=6; $num / $cyc" | bc -q)"`
38 echo "IPC is different: $res != $ipc ($num / $cyc)"
46 perf stat -a -A --no-big-num -e cycles,instructions sleep 1 2>&1 | \
48 while read cpu num evt _hash ipc rest
51 if [ "$num" = "<not" ]; then
57 results="$results $cpu:$num"
[all …]
/linux-6.6.21/arch/alpha/boot/
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-6.6.21/arch/powerpc/sysdev/
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-6.6.21/tools/testing/selftests/kvm/aarch64/
Dvgic_irq.c73 uint32_t num; member
80 uint32_t num, int level, bool expect_failure);
86 #define _KVM_INJECT_MULTI(cmd, intid, num, expect_failure) \ argument
87 kvm_inject_call(cmd, intid, num, -1 /* not used */, expect_failure)
89 #define KVM_INJECT_MULTI(cmd, intid, num) \ argument
90 _KVM_INJECT_MULTI(cmd, intid, num, false)
198 uint32_t num, int level, bool expect_failure) in kvm_inject_call() argument
203 .num = num, in kvm_inject_call()
263 uint32_t first_intid, uint32_t num, in guest_inject() argument
271 for (i = first_intid; i < num + first_intid; i++) in guest_inject()
[all …]
/linux-6.6.21/drivers/clk/
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-6.6.21/drivers/iio/chemical/
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-6.6.21/tools/include/nolibc/
Darch-i386.h31 #define my_syscall0(num) \ argument
34 register long _num __asm__ ("eax") = (num); \
45 #define my_syscall1(num, arg1) \ argument
48 register long _num __asm__ ("eax") = (num); \
61 #define my_syscall2(num, arg1, arg2) \ argument
64 register long _num __asm__ ("eax") = (num); \
78 #define my_syscall3(num, arg1, arg2, arg3) \ argument
81 register long _num __asm__ ("eax") = (num); \
96 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument
99 register long _num __asm__ ("eax") = (num); \
[all …]
Darch-aarch64.h28 #define my_syscall0(num) \ argument
30 register long _num __asm__ ("x8") = (num); \
42 #define my_syscall1(num, arg1) \ argument
44 register long _num __asm__ ("x8") = (num); \
57 #define my_syscall2(num, arg1, arg2) \ argument
59 register long _num __asm__ ("x8") = (num); \
73 #define my_syscall3(num, arg1, arg2, arg3) \ argument
75 register long _num __asm__ ("x8") = (num); \
90 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument
92 register long _num __asm__ ("x8") = (num); \
[all …]
Darch-riscv.h27 #define my_syscall0(num) \ argument
29 register long _num __asm__ ("a7") = (num); \
41 #define my_syscall1(num, arg1) \ argument
43 register long _num __asm__ ("a7") = (num); \
55 #define my_syscall2(num, arg1, arg2) \ argument
57 register long _num __asm__ ("a7") = (num); \
71 #define my_syscall3(num, arg1, arg2, arg3) \ argument
73 register long _num __asm__ ("a7") = (num); \
88 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument
90 register long _num __asm__ ("a7") = (num); \
[all …]
/linux-6.6.21/drivers/infiniband/hw/mthca/
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 …]

12345678910>>...110