/Linux-v6.1/drivers/regulator/ |
D | atc260x-regulator.c | 170 #define atc2603c_reg_desc_dcdc(num, min, step, n_volt, vsel_h, vsel_l) { \ argument 171 .name = "DCDC"#num, \ 172 .supply_name = "dcdc"#num, \ 173 .of_match = of_match_ptr("dcdc"#num), \ 175 .id = ATC2603C_ID_DCDC##num, \ 181 .vsel_reg = ATC2603C_PMU_DC##num##_CTL0, \ 183 .enable_reg = ATC2603C_PMU_DC##num##_CTL0, \ 189 #define atc2603c_reg_desc_dcdc_range(num, vsel_h, vsel_l) { \ argument 190 .name = "DCDC"#num, \ 191 .supply_name = "dcdc"#num, \ [all …]
|
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 …]
|
D | max77802-regulator.c | 299 #define regulator_77802_desc_p_ldo(num, supply, log) { \ argument 300 .name = "LDO"#num, \ 301 .of_match = of_match_ptr("LDO"#num), \ 303 .id = MAX77802_LDO##num, \ 312 .vsel_reg = MAX77802_REG_LDO1CTRL1 + num - 1, \ 314 .enable_reg = MAX77802_REG_LDO1CTRL1 + num - 1, \ 320 #define regulator_77802_desc_n_ldo(num, supply, log) { \ argument 321 .name = "LDO"#num, \ 322 .of_match = of_match_ptr("LDO"#num), \ 324 .id = MAX77802_LDO##num, \ [all …]
|
D | s2mps11.c | 357 #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-v6.1/tools/power/cpupower/utils/idle_monitor/ |
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 …]
|
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 …]
|
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 …]
|
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 …]
|
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 …]
|
D | amd_fam14h_idle.c | 230 int num, cpu; in amd_fam14h_start() local 232 for (num = 0; num < AMD_FAM14H_STATE_NUM; num++) { in amd_fam14h_start() 234 amd_fam14h_init(&amd_fam14h_cstates[num], cpu); in amd_fam14h_start() 247 int num, cpu; in amd_fam14h_stop() local 252 for (num = 0; num < AMD_FAM14H_STATE_NUM; num++) { in amd_fam14h_stop() 254 amd_fam14h_disable(&amd_fam14h_cstates[num], cpu); in amd_fam14h_stop() 278 int num; in amd_fam14h_register() local 293 for (num = 0; num < AMD_FAM14H_STATE_NUM - 1; num++) { in amd_fam14h_register() 294 previous_count[num] = calloc(cpu_count, in amd_fam14h_register() 296 current_count[num] = calloc(cpu_count, in amd_fam14h_register() [all …]
|
/Linux-v6.1/drivers/media/platform/amphion/ |
D | vpu_dbg.c | 57 int num; in vpu_dbg_instance() local 63 num = scnprintf(str, sizeof(str), "[%s]\n", vpu_core_type_desc(inst->type)); in vpu_dbg_instance() 64 if (seq_write(s, str, num)) in vpu_dbg_instance() 67 num = scnprintf(str, sizeof(str), "tgig = %d,pid = %d\n", inst->tgid, inst->pid); in vpu_dbg_instance() 68 if (seq_write(s, str, num)) in vpu_dbg_instance() 70 num = scnprintf(str, sizeof(str), "state = %d\n", inst->state); in vpu_dbg_instance() 71 if (seq_write(s, str, num)) in vpu_dbg_instance() 73 num = scnprintf(str, sizeof(str), in vpu_dbg_instance() 76 if (seq_write(s, str, num)) in vpu_dbg_instance() 80 num = scnprintf(str, sizeof(str), in vpu_dbg_instance() [all …]
|
/Linux-v6.1/arch/x86/kernel/ |
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 …]
|
D | topology.c | 99 int arch_register_cpu(int num) in arch_register_cpu() argument 101 struct cpuinfo_x86 *c = &cpu_data(num); in arch_register_cpu() 120 if (num == 0 && cpu0_hotpluggable) { in arch_register_cpu() 133 if (num || cpu0_hotpluggable) in arch_register_cpu() 134 per_cpu(cpu_devices, num).cpu.hotpluggable = 1; in arch_register_cpu() 136 return register_cpu(&per_cpu(cpu_devices, num).cpu, num); in arch_register_cpu() 140 void arch_unregister_cpu(int num) in arch_unregister_cpu() argument 142 unregister_cpu(&per_cpu(cpu_devices, num).cpu); in arch_unregister_cpu() 147 static int __init arch_register_cpu(int num) in arch_register_cpu() argument 149 return register_cpu(&per_cpu(cpu_devices, num).cpu, num); in arch_register_cpu()
|
/Linux-v6.1/drivers/staging/greybus/ |
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-v6.1/arch/s390/include/asm/ |
D | alternative.h | 43 #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-v6.1/tools/perf/tests/shell/ |
D | stat+shadow_stat.sh | 15 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-v6.1/arch/alpha/boot/ |
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-v6.1/arch/powerpc/sysdev/ |
D | mpic_timer.c | 44 #define TIMER_OFFSET(num) (1 << (TIMERS_PER_GROUP - 1 - num)) argument 114 unsigned int num; in detect_idle_cascade_timer() local 123 num = casc_priv->timer_num; in detect_idle_cascade_timer() 124 priv->timer[num].cascade_handle = casc_priv; in detect_idle_cascade_timer() 129 return &priv->timer[num]; in detect_idle_cascade_timer() 139 unsigned int num) in set_cascade_timer() argument 147 casc_priv = priv->timer[num].cascade_handle; in set_cascade_timer() 157 out_be32(&priv->regs[num].gtccr, 0); in set_cascade_timer() 158 out_be32(&priv->regs[num].gtbcr, tmp_ticks | TIMER_STOP); in set_cascade_timer() 160 out_be32(&priv->regs[num - 1].gtccr, 0); in set_cascade_timer() [all …]
|
/Linux-v6.1/tools/testing/selftests/kvm/aarch64/ |
D | vgic_irq.c | 74 uint32_t num; member 81 uint32_t num, int level, bool expect_failure); 87 #define _KVM_INJECT_MULTI(cmd, intid, num, expect_failure) \ argument 88 kvm_inject_call(cmd, intid, num, -1 /* not used */, expect_failure) 90 #define KVM_INJECT_MULTI(cmd, intid, num) \ argument 91 _KVM_INJECT_MULTI(cmd, intid, num, false) 199 uint32_t num, int level, bool expect_failure) in kvm_inject_call() argument 204 .num = num, in kvm_inject_call() 264 uint32_t first_intid, uint32_t num, in guest_inject() argument 272 for (i = first_intid; i < num + first_intid; i++) in guest_inject() [all …]
|
/Linux-v6.1/drivers/clk/ |
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-v6.1/drivers/iio/chemical/ |
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-v6.1/drivers/infiniband/hw/mthca/ |
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-v6.1/Documentation/ABI/obsolete/ |
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-v6.1/arch/powerpc/boot/ |
D | stdio.c | 79 static char * number(char * str, unsigned long long num, int base, int size, int precision, int typ… in number() argument 94 if ((signed long long)num < 0) { in number() 96 num = - (signed long long)num; in number() 113 if (num == 0) in number() 115 else while (num != 0) { in number() 116 tmp[i++] = digits[do_div(num, base)]; in number() 149 unsigned long long num; in vsprintf() local 305 num = va_arg(args, unsigned long); in vsprintf() 307 num = (signed long) num; in vsprintf() 309 num = va_arg(args, unsigned long long); in vsprintf() [all …]
|
/Linux-v6.1/drivers/pcmcia/ |
D | rsrc_nonstatic.c | 49 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 …]
|