/openbmc/u-boot/cmd/ |
H A D | mfsl.c | 20 unsigned int num; in do_frd() local 37 case 0: NGET (num, 0); in do_frd() 39 case 1: NCGET (num, 0); in do_frd() 41 case 2: GET (num, 0); in do_frd() 43 case 3: CGET (num, 0); in do_frd() 53 case 0: NGET (num, 1); in do_frd() 55 case 1: NCGET (num, 1); in do_frd() 57 case 2: GET (num, 1); in do_frd() 59 case 3: CGET (num, 1); in do_frd() 69 case 0: NGET (num, 2); in do_frd() [all …]
|
/openbmc/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 | 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 …]
|
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 …]
|
/openbmc/u-boot/drivers/ata/ |
H A D | sata_sil3114.c | 25 u8 sil3114_spin_up (int num); 26 u8 sil3114_spin_down (int num); 27 static int sata_bus_softreset (int num); 28 static void sata_identify (int num, int dev); 29 static u8 check_power_mode (int num); 31 static void set_Feature_cmd (int num, int dev); 56 static int sata_bus_softreset (int num) in sata_bus_softreset() argument 60 port[num].dev_mask = 1; in sata_bus_softreset() 62 port[num].ctl_reg = 0x08; /*Default value of control reg */ in sata_bus_softreset() 63 writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr); in sata_bus_softreset() [all …]
|
/openbmc/u-boot/common/ |
H A D | cli_readline.c | 178 while (num) { \ 180 num--; \ 185 if (num < eol_num) { \ 186 printf("%*s", (int)(eol_num - num), ""); \ 189 } while (--eol_num > num); \ 194 if (num < eol_num) { \ 195 wlen = eol_num - num; \ 196 putnstr(buf + num, wlen); \ 197 num = eol_num; \ 201 static void cread_add_char(char ichar, int insert, unsigned long *num, in cread_add_char() argument [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/tests/tcg/tricore/asm/ |
H A D | macros.h | 44 #define TEST_CASE(num, testreg, correct, code...) \ argument 45 test_ ## num: \ 48 mov DREG_TEST_NUM, num; \ 52 #define TEST_CASE_E(num, correct_lo, correct_hi, code...) \ argument 53 test_ ## num: \ 55 mov DREG_TEST_NUM, num; \ 61 #define TEST_CASE_PSW(num, testreg, correct, correct_psw, code...) \ argument 62 test_ ## num: \ 65 mov DREG_TEST_NUM, num; \ 69 mov DREG_TEST_NUM, num; \ [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/util/ |
H A D | fifo8.c | 21 fifo->num = 0; in fifo8_reset() 39 assert(fifo->num < fifo->capacity); in fifo8_push() 40 fifo->data[(fifo->head + fifo->num) % fifo->capacity] = data; in fifo8_push() 41 fifo->num++; in fifo8_push() 44 void fifo8_push_all(Fifo8 *fifo, const uint8_t *data, uint32_t num) in fifo8_push_all() argument 48 assert(fifo->num + num <= fifo->capacity); in fifo8_push_all() 50 start = (fifo->head + fifo->num) % fifo->capacity; in fifo8_push_all() 52 if (start + num <= fifo->capacity) { in fifo8_push_all() 53 memcpy(&fifo->data[start], data, num); in fifo8_push_all() 57 memcpy(&fifo->data[0], &data[avail], num - avail); in fifo8_push_all() [all …]
|
/openbmc/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 …]
|
/openbmc/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
|
/openbmc/openbmc/meta-google/recipes-google/gpio/gpio-ctrl/ |
H A D | lib.sh | 158 local num="$2" 164 if [ ! -e "/sys/class/gpio/gpio$num" ]; then 165 if ! echo "$num" >'/sys/class/gpio/export'; then 166 echo "Failed to export $name gpio$num" >&2 174 if ! echo "$active_low" >"/sys/class/gpio/gpio$num/active_low"; then 175 echo "Failed to set active_low for $name gpio$num" >&2 199 local num="$2" 202 gpio_init_ "$name" "$num" || return 203 if ! echo out >"/sys/class/gpio/gpio$num/direction"; then 204 echo "Failed to set output for $name gpio$num" >&2 [all …]
|
/openbmc/u-boot/board/freescale/ls1021aqds/ |
H A D | eth.c | 135 int num = 0; in board_eth_init() local 138 SET_STD_TSEC_INFO(tsec_info[num], 1); in board_eth_init() 141 tsec_info[num].flags |= TSEC_SGMII; in board_eth_init() 142 tsec_info[num].mii_devname = "LS1021A_SGMII_MDIO"; in board_eth_init() 144 tsec_info[num].mii_devname = "LS1021A_RGMII_MDIO"; in board_eth_init() 146 num++; in board_eth_init() 149 SET_STD_TSEC_INFO(tsec_info[num], 2); in board_eth_init() 152 tsec_info[num].flags |= TSEC_SGMII; in board_eth_init() 153 tsec_info[num].mii_devname = "LS1021A_SGMII_MDIO"; in board_eth_init() 155 tsec_info[num].mii_devname = "LS1021A_RGMII_MDIO"; in board_eth_init() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/arch/s390/include/asm/ |
H A 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"
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/tools/perf/tests/shell/ |
H A 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 …]
|