/openbmc/linux/drivers/hid/ |
H A D | hid-a4tech.c | 74 struct hid_usage *usage, __s32 value) in a4_event() argument 86 a4->delayed_value = value; in a4_event() 91 input_event(input, EV_REL, value ? REL_HWHEEL : in a4_event() 93 input_event(input, EV_REL, value ? REL_HWHEEL_HI_RES : in a4_event() 100 a4->hw_wheel = !!value; in a4_event() 105 input_event(input, usage->type, REL_HWHEEL, value); in a4_event() 106 input_event(input, usage->type, REL_HWHEEL_HI_RES, value * 120); in a4_event()
|
H A D | hid-pl.c | 118 report->field[0]->value[0] = 0x00; in plff_init() 119 report->field[0]->value[1] = 0x00; in plff_init() 120 strong = &report->field[0]->value[2]; in plff_init() 121 weak = &report->field[0]->value[3]; in plff_init() 131 report->field[0]->value[0] = 0x00; in plff_init() 132 report->field[1]->value[0] = 0x00; in plff_init() 133 strong = &report->field[2]->value[0]; in plff_init() 134 weak = &report->field[3]->value[0]; in plff_init()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-logicvc.c | 52 unsigned int reg, bit, value; in logicvc_gpio_get() local 57 ret = regmap_read(logicvc->regmap, reg, &value); in logicvc_gpio_get() 61 return !!(value & bit); in logicvc_gpio_get() 64 static void logicvc_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in logicvc_gpio_set() argument 71 regmap_update_bits(logicvc->regmap, reg, bit, value ? bit : 0); in logicvc_gpio_set() 75 unsigned offset, int value) in logicvc_gpio_direction_output() argument 78 logicvc_gpio_set(chip, offset, value); in logicvc_gpio_direction_output()
|
H A D | gpio-adnp.c | 48 *value = err; in adnp_read() 71 u8 value; in adnp_gpio_get() local 74 err = adnp_read(adnp, GPIO_PLR(adnp) + reg, &value); in adnp_gpio_get() 78 return (value & BIT(pos)) ? 1 : 0; in adnp_gpio_get() 92 if (value) in __adnp_gpio_set() 105 __adnp_gpio_set(adnp, offset, value); in adnp_gpio_set() 114 u8 value; in adnp_gpio_direction_input() local 123 value &= ~BIT(pos); in adnp_gpio_direction_input() 133 if (value & BIT(pos)) { in adnp_gpio_direction_input() 146 int value) in adnp_gpio_direction_output() argument [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | arm_l2x0.c | 108 uint64_t value, unsigned size) in l2x0_priv_write() argument 118 s->ctrl = value & 1; in l2x0_priv_write() 121 s->aux_ctrl = value; in l2x0_priv_write() 124 s->tag_ctrl = value; in l2x0_priv_write() 127 s->data_ctrl = value; in l2x0_priv_write() 130 s->filter_start = value; in l2x0_priv_write() 133 s->filter_end = value; in l2x0_priv_write()
|
/openbmc/qemu/tests/qtest/ |
H A D | stm32l4x5_rcc-test.c | 39 static void rcc_writel(unsigned int offset, uint32_t value) in rcc_writel() argument 41 writel(RCC_BASE_ADDR + offset, value); in rcc_writel() 68 uint32_t value; in test_init_pll() local 83 value = rcc_readl(A_CR); in test_init_pll() 84 rcc_writel(A_CR, value | R_CR_PLLON_MASK); in test_init_pll() 90 value = rcc_readl(A_CFGR); in test_init_pll() 91 rcc_writel(A_CFGR, (value & ~R_CFGR_SW_MASK) | in test_init_pll()
|
/openbmc/linux/drivers/clk/qcom/ |
H A D | clk-rpm.c | 118 u32 value = INT_MAX; in clk_rpm_handoff() local 129 r->rpm_clk_id, &value, 1); in clk_rpm_handoff() 133 r->rpm_clk_id, &value, 1); in clk_rpm_handoff() 145 r->rpm_clk_id, &value, 1); in clk_rpm_set_rate_active() 153 r->rpm_clk_id, &value, 1); in clk_rpm_set_rate_sleep() 259 u32 value; in clk_rpm_xo_prepare() local 267 rcc->xo_buffer_value = value; in clk_rpm_xo_prepare() 280 u32 value; in clk_rpm_xo_unprepare() local 288 rcc->xo_buffer_value = value; in clk_rpm_xo_unprepare() 297 u32 value = 1; in clk_rpm_fixed_prepare() local [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | sysfs-interface.rst | 81 RO read only value 82 WO write only value 83 RW read/write value 115 Voltage min value. 121 Voltage max value. 127 Voltage input value. 170 Fan minimum value 173 Fan maximum value 176 Fan input value. 320 Current max value. [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | strongarm.c | 161 s->enabled = value; in strongarm_pic_mem_write() 164 s->is_fiq = value; in strongarm_pic_mem_write() 347 s->rttr = value; in strongarm_rtc_write() 364 s->rtar = value; in strongarm_rtc_write() 370 s->last_rcnr = value; in strongarm_rtc_write() 608 s->olevel &= ~value; in strongarm_gpio_write() 613 s->rising = value; in strongarm_gpio_write() 617 s->falling = value; in strongarm_gpio_write() 621 s->gafr = value; in strongarm_gpio_write() 625 s->status &= ~value; in strongarm_gpio_write() [all …]
|
/openbmc/linux/drivers/clocksource/ |
H A D | sh_cmt.c | 83 u32 value); 253 if (value != old_value) { in sh_cmt_write_cmstr() 273 if (value != old_value) { in sh_cmt_write_cmcsr() 307 if (value != old_value) { in sh_cmt_write_cmcor() 337 u32 value; in sh_cmt_start_stop_ch() local 344 value |= 1 << ch->timer_bit; in sh_cmt_start_stop_ch() 649 u64 value; in sh_cmt_clocksource_read() local 653 value = ch->total_cycles; in sh_cmt_clocksource_read() 660 return value + raw; in sh_cmt_clocksource_read() 891 u32 value; in sh_cmt_setup_channel() local [all …]
|
/openbmc/linux/sound/pci/ice1712/ |
H A D | maya44.c | 165 uinfo->value.integer.min = 0; in maya_vol_info() 166 uinfo->value.integer.max = vol->maxval; in maya_vol_info() 179 ucontrol->value.integer.value[0] = wm->volumes[idx][0]; in maya_vol_get() 180 ucontrol->value.integer.value[1] = wm->volumes[idx][1]; in maya_vol_get() 198 val = ucontrol->value.integer.value[ch]; in maya_vol_put() 239 ucontrol->value.integer.value[0] = (wm->switch_bits >> idx) & 1; in maya_sw_get() 256 val = ucontrol->value.integer.value[0]; in maya_sw_put() 306 ucontrol->value.integer.value[0] = val; in maya_gpio_sw_get() 320 val = ucontrol->value.integer.value[0]; in maya_gpio_sw_put() 407 ucontrol->value.enumerated.item[0] = in maya_pb_route_get() [all …]
|
/openbmc/phosphor-pid-control/sysfs/ |
H A D | sysfswrite.cpp | 25 void SysFsWritePercent::write(double value) in write() argument 31 double offset = range * value; in write() 42 void SysFsWrite::write(double value) in write() argument 46 ofs << static_cast<int64_t>(value); in write()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | unaligned_64.c | 122 unsigned long value, fp; in fetch_reg() local 132 value = win->locals[reg - 16]; in fetch_reg() 142 return value; in fetch_reg() 400 u64 value; in handle_popc() local 405 value = sign_extend_imm13(insn); in handle_popc() 410 ret = hweight64(value); in handle_popc() 602 u64 value; in handle_lddfmna() local 633 value = __swab64p(&value); in handle_lddfmna() 666 u64 value; in handle_stdfmna() local 679 value = 0; in handle_stdfmna() [all …]
|
/openbmc/linux/drivers/ssb/ |
H A D | driver_chipcommon.c | 33 u32 mask, u32 value) in chipco_write32_masked() argument 35 value &= mask; in chipco_write32_masked() 36 value |= chipco_read32(cc, offset) & ~mask; in chipco_write32_masked() 37 chipco_write32(cc, offset, value); in chipco_write32_masked() 39 return value; in chipco_write32_masked() 496 chipco_write32_masked(cc, SSB_CHIPCO_IRQMASK, mask, value); in ssb_chipco_irq_mask() 515 res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOOUT, mask, value); in ssb_chipco_gpio_out() 527 res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOOUTEN, mask, value); in ssb_chipco_gpio_outen() 539 res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOCTL, mask, value); in ssb_chipco_gpio_control() 552 res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOIRQ, mask, value); in ssb_chipco_gpio_intmask() [all …]
|
/openbmc/qemu/docs/specs/ |
H A D | acpi_cpu_hotplug.rst | 52 keeps the current value. 60 If value last stored in 'Command field' is: 65 upper 32 bits of architecture specific CPU ID value 97 If value last stored in 'Command field' is one of: 102 lower 32 bits of architecture specific CPU ID value 148 value: 153 selected CPU ('CPU selector' value). 175 If last stored 'Command field' value is: 178 stores value into OST event register 180 stores value into OST status register, triggers [all …]
|
/openbmc/qemu/hw/block/ |
H A D | trace-events | 4 fdc_ioport_read(uint8_t reg, uint8_t value) "read reg 0x%02x val 0x%02x" 5 fdc_ioport_write(uint8_t reg, uint8_t value) "write reg 0x%02x val 0x%02x" 14 …ar *name, uint64_t offset, unsigned size, uint32_t value) "%s: data offset:0x%04"PRIx64" size:%u v… 15 …ar *name, uint64_t offset, unsigned size, uint32_t value) "%s: data offset:0x%04"PRIx64" size:%u v… 16 … uint64_t offset, unsigned size, uint32_t value, uint64_t counter) "%s: data offset:0x%04"PRIx64" … 21 …t offset, unsigned int size, uint32_t value, uint8_t cmd, uint8_t wcycle) "%s: offset:0x%04" PRIx6… 22 …uint64_t offset, unsigned int size, uint32_t value, uint8_t wcycle) "%s: offset:0x%04"PRIx64" size… 98 …trl_read(int reg, const char *name, unsigned size, uint64_t value) "reg=%d [%s] size=%u value=0x%"… 99 …rl_write(int reg, const char *name, unsigned size, uint64_t value) "reg=%d [%s] size=%u value=0x%"… 100 …trl_read(int reg, const char *name, unsigned size, uint64_t value) "reg=%d [%s] size=%u value=0x%"… [all …]
|
/openbmc/linux/drivers/phy/microchip/ |
H A D | lan966x_serdes.c | 184 u32 value; in lan966x_sd6g40_reg_cfg() local 234 value = HSIO_SD_STAT_MPLL_STATE_GET(value); in lan966x_sd6g40_reg_cfg() 235 if (value != 0x1) { in lan966x_sd6g40_reg_cfg() 238 idx, value); in lan966x_sd6g40_reg_cfg() 249 value = HSIO_SD_STAT_TX_CM_STATE_GET(value); in lan966x_sd6g40_reg_cfg() 250 if (value != 0x1) { in lan966x_sd6g40_reg_cfg() 253 idx, value); in lan966x_sd6g40_reg_cfg() 267 value = HSIO_SD_STAT_RX_PLL_STATE_GET(value); in lan966x_sd6g40_reg_cfg() 271 idx, value); in lan966x_sd6g40_reg_cfg() 277 value = HSIO_SD_STAT_TX_STATE_GET(value); in lan966x_sd6g40_reg_cfg() [all …]
|
/openbmc/linux/Documentation/bpf/ |
H A D | map_hash.rst | 24 ``BPF_MAP_TYPE_PERCPU_HASH`` provides a separate value slot per 106 value in the hash slot for a specific CPU. Returns value associated with 148 struct value. 159 struct value { 168 __type(value, struct value); 181 struct value *value = bpf_map_lookup_elem(&packet_stats, &key); 183 if (value) { 184 __sync_fetch_and_add(&value->packets, 1); 187 struct value newval = { 1, bytes }; 204 struct value value; [all …]
|
/openbmc/linux/arch/arm/mach-ep93xx/ |
H A D | clock.c | 479 u32 value; in ep93xx_uart_clock_init() local 482 value = __raw_readl(EP93XX_SYSCON_PWRCNT); in ep93xx_uart_clock_init() 483 if (value & EP93XX_SYSCON_PWRCNT_UARTBAUD) in ep93xx_uart_clock_init() 539 u32 value; in ep93xx_clock_init() local 556 value = __raw_readl(EP93XX_SYSCON_CLKSET1); in ep93xx_clock_init() 557 if (!(value & EP93XX_SYSCON_CLKSET1_NBYP1)) in ep93xx_clock_init() 582 value = __raw_readl(EP93XX_SYSCON_CLKSET2); in ep93xx_clock_init() 583 if (!(value & EP93XX_SYSCON_CLKSET2_NBYP2)) in ep93xx_clock_init() 615 clk_usb_div = (((value >> 28) & 0xf) + 1); in ep93xx_clock_init() 680 value = __raw_readl(EP93XX_SYSCON_VIDCLKDIV); in ep93xx_clock_init() [all …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | bt431.h | 104 static inline void bt431_write_reg_inc(struct bt431_regs *regs, u8 value) in bt431_write_reg_inc() argument 113 *r = bt431_set_value(value); in bt431_write_reg_inc() 122 static inline void bt431_write_reg(struct bt431_regs *regs, int ir, u8 value) in bt431_write_reg() argument 125 bt431_write_reg_inc(regs, value); in bt431_write_reg() 141 static inline void bt431_write_cmap_inc(struct bt431_regs *regs, u16 value) in bt431_write_cmap_inc() argument 150 *r = value; in bt431_write_cmap_inc() 159 static inline void bt431_write_cmap(struct bt431_regs *regs, int cr, u16 value) in bt431_write_cmap() argument 162 bt431_write_cmap_inc(regs, value); in bt431_write_cmap()
|
/openbmc/linux/include/linux/ |
H A D | atmel-ssc.h | 321 #define SSC_BF(name, value) \ argument 322 (((value) & ((1 << SSC_##name##_SIZE) - 1)) \ 324 #define SSC_BFEXT(name, value) \ argument 325 (((value) >> SSC_##name##_OFFSET) \ 327 #define SSC_BFINS(name, value, old) \ argument 329 << SSC_##name##_OFFSET)) | SSC_BF(name, value)) 333 #define ssc_writel(base, reg, value) __raw_writel((value), base + SSC_##reg) argument
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | adc-keys.c | 35 int i, value, ret; in adc_keys_poll() local 39 ret = iio_read_channel_processed(st->channel, &value); in adc_keys_poll() 42 value = st->keyup_voltage; in adc_keys_poll() 45 diff = abs(st->map[i].voltage - value); in adc_keys_poll() 53 if (abs(st->keyup_voltage - value) < closest) in adc_keys_poll() 112 int i, value; in adc_keys_probe() local 176 if (!device_property_read_u32(dev, "poll-interval", &value)) in adc_keys_probe() 177 input_set_poll_interval(input, value); in adc_keys_probe()
|
/openbmc/linux/drivers/char/mwave/ |
H A D | 3780i.h | 348 #define WriteMsaCfg(addr,value) dsp3780I_WriteMsaCfg(usDspBaseIO,addr,value) argument 350 #define WriteGenCfg(index,value) dsp3780I_WriteGenCfg(usDspBaseIO,index,value) argument 355 #define OutWordDsp(index,value) outw(value,usDspBaseIO+index) argument 356 #define OutByteDsp(index,value) outb(value,usDspBaseIO+index) argument
|
/openbmc/qemu/monitor/ |
H A D | qmp-cmds-control.c | 51 if (!mon->capab_offered[list->value]) { in qmp_caps_accept() 53 unavailable = g_string_new(QMPCapability_str(list->value)); in qmp_caps_accept() 56 QMPCapability_str(list->value)); in qmp_caps_accept() 59 capab[list->value] = true; in qmp_caps_accept() 164 if (!strcmp(tail->value, s)) { in is_in() 173 return is_in("deprecated", ((SchemaInfoList *)link)->value->features); in is_entity_deprecated() 179 ((SchemaInfoObjectMemberList *)link)->value->features); in is_member_deprecated() 192 ent = tail->value; in zap_deprecated()
|
/openbmc/telemetry/tests/src/ |
H A D | test_on_change_threshold.cpp | 100 for (const auto& [index, value] : o.updates) in PrintTo() 102 *os << "{ SensorIndex: " << index << ", Value: " << value << " }, "; in PrintTo() 105 for (const auto& [index, value] : o.expected) in PrintTo() 107 *os << "{ SensorIndex: " << index << ", Value: " << value << " }, "; in PrintTo() 140 for (const auto& [index, value] : GetParam().expected) in TEST_P() 144 TriggerValue(value))); in TEST_P() 152 for (const auto& [index, value] : GetParam().updates) in TEST_P() 154 sut->sensorUpdated(*sensorMocks[index], 42ms, value); in TEST_P()
|