/linux/drivers/regulator/ |
H A D | atc260x-regulator.c | 171 #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 D | max77686-regulator.c | 309 #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 D | s2mps11.c | 358 #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 D | max77802-regulator.c | 311 #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 D | cpuidle_sysfs.c | 79 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 D | snb_idle.c | 113 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 D | hsw_ext_idle.c | 115 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 D | nhm_idle.c | 128 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 D | cpupower-monitor.c | 222 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 D | vpu_dbg.c | 64 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/x86/kernel/ |
H A D | early-quirks.c | 32 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/arch/loongarch/include/asm/ |
H A D | alternative.h | 30 #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 D | gpr-num.h | 8 .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 D | impl_list_item_mod.rs | 123 $(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/drivers/staging/greybus/ |
H A D | audio_manager_sysfs.c | 20 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/arch/alpha/boot/ |
H A D | stdio.c | 43 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/arch/powerpc/sysdev/ |
H A D | mpic_timer.c | 43 #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/bpf/progs/ |
H A D | exceptions_assert.c | 16 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/tools/testing/selftests/kvm/aarch64/ |
H A D | vgic_irq.c | 67 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/tools/perf/tests/shell/ |
H A D | stat+shadow_stat.sh | 17 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/iio/chemical/ |
H A D | sps30_serial.c | 46 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/clk/ |
H A D | clk-si5351.c | 46 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/Documentation/ABI/obsolete/ |
H A D | sysfs-driver-hid-roccat-ryos | 1 …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 …]
|
/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_profile.c | 71 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/tools/include/nolibc/ |
H A D | arch-i386.h | 31 #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 …]
|