Home
last modified time | relevance | path

Searched refs:value (Results 1551 – 1575 of 13561) sorted by relevance

1...<<61626364656667686970>>...543

/openbmc/linux/drivers/gpu/drm/gma500/
H A Dpsb_device.c48 uint32_t value; in psb_backlight_setup() local
61 value = (core_clock * MHz) / BLC_PWM_FREQ_CALC_CONSTANT; in psb_backlight_setup()
62 value *= blc_pwm_precision_factor; in psb_backlight_setup()
63 value /= bl_max_freq; in psb_backlight_setup()
64 value /= blc_pwm_precision_factor; in psb_backlight_setup()
66 if (value > (unsigned long long)PSB_BLC_MAX_PWM_REG_FREQ || in psb_backlight_setup()
67 value < (unsigned long long)PSB_BLC_MIN_PWM_REG_FREQ) in psb_backlight_setup()
70 value &= PSB_BACKLIGHT_PWM_POLARITY_BIT_CLEAR; in psb_backlight_setup()
72 (value << PSB_BACKLIGHT_PWM_CTL_SHIFT) | (value)); in psb_backlight_setup()
/openbmc/phosphor-state-manager/
H A Dbmc_state_manager.cpp221 BMC::Transition BMC::requestedBMCTransition(Transition value) in requestedBMCTransition() argument
225 "REQUESTED_BMC_TRANSITION", value); in requestedBMCTransition()
227 executeTransition(value); in requestedBMCTransition()
228 return server::BMC::requestedBMCTransition(value); in requestedBMCTransition()
231 BMC::BMCState BMC::currentBMCState(BMCState value) in currentBMCState() argument
234 "CURRENT_BMC_STATE", value); in currentBMCState()
236 return server::BMC::currentBMCState(value); in currentBMCState()
239 BMC::RebootCause BMC::lastRebootCause(RebootCause value) in lastRebootCause() argument
242 "LAST_REBOOT_CAUSE", value); in lastRebootCause()
244 return server::BMC::lastRebootCause(value); in lastRebootCause()
/openbmc/openbmc/poky/bitbake/lib/bs4/
H A Delement.py602 value = self.get(value, default)
603 if isinstance(value, list) or isinstance(value, tuple):
604 value =" ".join(value)
605 return value
679 def __new__(cls, value): argument
764 value = name or ''
1285 if value:
1286 return value[0]
1564 …if (isinstance(value, str) or isinstance(value, collections.abc.Callable) or hasattr(value, 'match…
1565 or isinstance(value, bool) or value is None):
[all …]
/openbmc/linux/sound/pci/
H A Dsonicvibes.c294 unsigned char value) in snd_sonicvibes_out1() argument
318 unsigned char value; in snd_sonicvibes_in1() local
324 return value; in snd_sonicvibes_in1()
330 unsigned char value; in snd_sonicvibes_in() local
338 return value; in snd_sonicvibes_in()
956 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_sonicvibes_get_single()
970 val = (ucontrol->value.integer.value[0] & mask); in snd_sonicvibes_put_single()
1015 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_sonicvibes_get_double()
1016 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_sonicvibes_get_double()
1033 val1 = ucontrol->value.integer.value[0] & mask; in snd_sonicvibes_put_double()
[all …]
/openbmc/linux/arch/csky/mm/
H A Dcachev1.c32 static void cache_op_all(unsigned int value, unsigned int l2) in cache_op_all() argument
34 mtcr("cr17", value | CACHE_CLR); in cache_op_all()
38 mtcr("cr24", value | CACHE_CLR); in cache_op_all()
46 unsigned int value, in cache_op_range() argument
50 unsigned int val = value | CACHE_CLR | CACHE_OMS; in cache_op_range()
56 cache_op_all(value, l2); in cache_op_range()
/openbmc/linux/tools/testing/selftests/powerpc/pmu/
H A Dcount_instructions.c46 difference = events[0].result.value - expected; in do_count_loop()
47 percentage = (double)difference / events[0].result.value * 100; in do_count_loop()
55 printf("Actual %llu\n", events[0].result.value); in do_count_loop()
67 if (difference / events[0].result.value) in do_count_loop()
80 overhead = events[0].result.value; in determine_overhead()
84 current = events[0].result.value; in determine_overhead()
/openbmc/linux/drivers/staging/rts5208/
H A Drtsx.h42 #define rtsx_writel(chip, reg, value) \ argument
43 iowrite32(value, (chip)->rtsx->remap_addr + reg)
46 #define rtsx_writew(chip, reg, value) \ argument
47 iowrite16(value, (chip)->rtsx->remap_addr + reg)
50 #define rtsx_writeb(chip, reg, value) \ argument
51 iowrite8(value, (chip)->rtsx->remap_addr + reg)
/openbmc/linux/include/linux/
H A Dlogic_pio.h42 void logic_outb(u8 value, unsigned long addr);
43 void logic_outw(u16 value, unsigned long addr);
44 void logic_outl(u32 value, unsigned long addr);
47 void logic_outb(u8 value, unsigned long addr);
48 void logic_outw(u16 value, unsigned long addr);
49 void logic_outl(u32 value, unsigned long addr);
/openbmc/u-boot/drivers/phy/marvell/
H A Dcomphy_mux.c61 u32 value = 0; in comphy_mux_get_mux_value() local
68 value = mux_opt->mux_value; in comphy_mux_get_mux_value()
75 return value; in comphy_mux_get_mux_value()
84 u32 lane, value, offset, mask; in comphy_mux_reg_write() local
103 value = (comphy_mux_get_mux_value(mux_data, in comphy_mux_reg_write()
106 reg_set(selector_base, value, mask); in comphy_mux_reg_write()
/openbmc/qemu/hw/display/
H A Dvirtio-dmabuf.c30 static bool virtio_add_resource(QemuUUID *uuid, VirtioSharedObject *value) in virtio_add_resource() argument
42 g_hash_table_insert(resource_uuids, uuid, value); in virtio_add_resource()
60 vso->value = GINT_TO_POINTER(udmabuf_fd); in virtio_add_dmabuf()
78 vso->value = dev; in virtio_add_vhost_device()
117 return GPOINTER_TO_INT(vso->value); in virtio_lookup_dmabuf()
127 return (struct vhost_dev *) vso->value; in virtio_lookup_vhost_device()
/openbmc/linux/drivers/net/ethernet/arc/
H A Demac.h171 static inline void arc_reg_set(struct arc_emac_priv *priv, int reg, int value) in arc_reg_set() argument
173 iowrite32(value, priv->regs + reg * sizeof(int)); in arc_reg_set()
199 unsigned int value = arc_reg_get(priv, reg); in arc_reg_or() local
201 arc_reg_set(priv, reg, value | mask); in arc_reg_or()
215 unsigned int value = arc_reg_get(priv, reg); in arc_reg_clr() local
217 arc_reg_set(priv, reg, value & ~mask); in arc_reg_clr()
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-frequency-admv10135 Read/write unscaled value for the Local Oscillatior path quadrature I phase shift.
11 Read/write unscaled value for the Local Oscillatior path quadrature Q phase shift.
17 Read/write value for the Local Oscillatior Feedthrough Offset Calibration I Positive
24 Read/write value for the Local Oscillatior Feedthrough Offset Calibration Q Positive side.
30 Read/write raw value for the Local Oscillatior Feedthrough Offset Calibration I Negative
37 Read/write raw value for the Local Oscillatior Feedthrough Offset Calibration Q Negative
/openbmc/linux/drivers/iio/imu/bno055/
H A Dbno055_ser_trace.h48 TP_PROTO(u8 addr, u8 value),
49 TP_ARGS(addr, value),
52 __field(u8, value)
56 __entry->value = value;
59 __entry->addr, __entry->value
/openbmc/linux/drivers/hwmon/
H A Dsparx5-temp.c45 int rc = 0, value; in s5_read() local
53 value = stat & TEMP_STAT_TEMP; in s5_read()
58 value = DIV_ROUND_CLOSEST(value * 3522, 4096) - 1094; in s5_read()
64 value *= 100; in s5_read()
65 *temp = value; in s5_read()
H A Draspberrypi-hwmon.c30 u32 new_uv, old_uv, value; in rpi_firmware_get_throttled() local
34 value = 0xffff; in rpi_firmware_get_throttled()
37 &value, sizeof(value)); in rpi_firmware_get_throttled()
44 new_uv = value & UNDERVOLTAGE_STICKY_BIT; in rpi_firmware_get_throttled()
46 data->last_throttled = value; in rpi_firmware_get_throttled()
/openbmc/phosphor-host-ipmid/
H A Dhost-interface.cpp66 auto value = status ? Result::Success : Result::Failure; in commandStatusHandler() local
69 this->commandComplete(intfCommand.at(std::get<0>(cmd)), value); in commandStatusHandler()
80 auto value = status ? Host::FirmwareCondition::Running in currentFirmwareCondition() local
85 "CONTROL_HOST_CMD", value); in currentFirmwareCondition()
87 *(hostCondition.get()) = value; in currentFirmwareCondition()
117 return hostCondition.get()->value(); in currentFirmwareCondition()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dpel_values.cpp252 PELValues::const_iterator findByValue(uint32_t value, const PELValues& fields) in findByValue() argument
255 [value](const auto& entry) { in findByValue()
256 return value == std::get<fieldValuePos>(entry); in findByValue()
357 std::vector<std::string> getValuesBitwise(uint16_t value, in getValuesBitwise() argument
362 table.begin(), table.end(), [&value, &foundValues](const auto& entry) { in getValuesBitwise()
363 if (value & std::get<fieldValuePos>(entry)) in getValuesBitwise()
/openbmc/linux/sound/isa/
H A Dopl3sa2.c190 outb(value, chip->port + 1); in __snd_opl3sa2_write()
191 chip->ctlregs[reg] = value; in __snd_opl3sa2_write()
349 ucontrol->value.integer.value[0] = (chip->ctlregs[reg] >> shift) & mask; in snd_opl3sa2_get_single()
352 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_opl3sa2_get_single()
367 val = (ucontrol->value.integer.value[0] & mask); in snd_opl3sa2_put_single()
406 ucontrol->value.integer.value[0] = (chip->ctlregs[left_reg] >> shift_left) & mask; in snd_opl3sa2_get_double()
407 ucontrol->value.integer.value[1] = (chip->ctlregs[right_reg] >> shift_right) & mask; in snd_opl3sa2_get_double()
410 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_opl3sa2_get_double()
411 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_opl3sa2_get_double()
429 val1 = ucontrol->value.integer.value[0] & mask; in snd_opl3sa2_put_double()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0_7_ppt.c743 uint32_t *value) in smu_v13_0_7_get_smu_metrics_data() argument
764 *value = metrics->CurrClock[PPCLK_UCLK]; in smu_v13_0_7_get_smu_metrics_data()
809 *value = metrics->AverageGfxActivity; in smu_v13_0_7_get_smu_metrics_data()
812 *value = metrics->AverageUclkActivity; in smu_v13_0_7_get_smu_metrics_data()
841 *value = metrics->AvgFanRpm; in smu_v13_0_7_get_smu_metrics_data()
844 *value = metrics->AvgFanPwm; in smu_v13_0_7_get_smu_metrics_data()
850 *value = metrics->PcieRate; in smu_v13_0_7_get_smu_metrics_data()
853 *value = metrics->PcieWidth; in smu_v13_0_7_get_smu_metrics_data()
856 *value = UINT_MAX; in smu_v13_0_7_get_smu_metrics_data()
995 uint32_t *value) in smu_v13_0_7_get_current_clk_freq_by_table() argument
[all …]
/openbmc/linux/drivers/clk/renesas/
H A Dclk-mstp.c82 u32 value; in cpg_mstp_clock_endisable() local
87 value = cpg_mstp_read(group, group->smstpcr); in cpg_mstp_clock_endisable()
89 value &= ~bitmask; in cpg_mstp_clock_endisable()
91 value |= bitmask; in cpg_mstp_clock_endisable()
92 cpg_mstp_write(group, value, group->smstpcr); in cpg_mstp_clock_endisable()
106 ret = readl_poll_timeout_atomic(group->mstpsr, value, in cpg_mstp_clock_endisable()
107 !(value & bitmask), 0, 10); in cpg_mstp_clock_endisable()
129 u32 value; in cpg_mstp_clock_is_enabled() local
132 value = cpg_mstp_read(group, group->mstpsr); in cpg_mstp_clock_is_enabled()
134 value = cpg_mstp_read(group, group->smstpcr); in cpg_mstp_clock_is_enabled()
[all …]
/openbmc/linux/drivers/gpu/drm/tegra/
H A Drgb.c34 unsigned long value; member
88 tegra_dc_writel(dc, table[i].value, table[i].offset); in tegra_dc_write_regs()
104 u32 value; in tegra_rgb_encoder_enable() local
108 value = DE_SELECT_ACTIVE | DE_CONTROL_NORMAL; in tegra_rgb_encoder_enable()
109 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS); in tegra_rgb_encoder_enable()
112 value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
113 value &= ~LVS_OUTPUT_POLARITY_LOW; in tegra_rgb_encoder_enable()
114 value &= ~LHS_OUTPUT_POLARITY_LOW; in tegra_rgb_encoder_enable()
115 tegra_dc_writel(rgb->dc, value, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
118 value = DISP_DATA_FORMAT_DF1P1C | DISP_ALIGNMENT_MSB | in tegra_rgb_encoder_enable()
[all …]
/openbmc/linux/lib/zlib_deflate/
H A Ddefutil.h361 static void send_bits (deflate_state *s, int value, int length);
365 int value, /* value to send */ in send_bits() argument
369 Tracevv((stderr," l %2d v %4x ", length, value)); in send_bits()
378 s->bi_buf |= (value << s->bi_valid); in send_bits()
380 s->bi_buf = (ush)value >> (Buf_size - s->bi_valid); in send_bits()
383 s->bi_buf |= value << s->bi_valid; in send_bits()
389 #define send_bits(s, value, length) \ argument
392 int val = value;\
398 s->bi_buf |= (value) << s->bi_valid;\
406 int value, in zlib_tr_send_bits() argument
[all …]
/openbmc/qemu/hw/gpio/
H A Dbcm2835_gpio.c58 uint32_t value = 0; in gpfsel_get() local
62 value |= (s->fsel[index] & 0x7) << (3 * i); in gpfsel_get()
65 return value; in gpfsel_get()
68 static void gpfsel_set(BCM2835GpioState *s, uint8_t reg, uint32_t value) in gpfsel_set() argument
74 int fsel = (value >> (3 * i)) & 0x7; in gpfsel_set()
201 uint64_t value, unsigned size) in bcm2835_gpio_write() argument
212 gpfsel_set(s, offset / 4, value); in bcm2835_gpio_write()
215 gpset(s, value, 0, 32, &s->lev0); in bcm2835_gpio_write()
218 gpset(s, value, 32, 22, &s->lev1); in bcm2835_gpio_write()
221 gpclr(s, value, 0, 32, &s->lev0); in bcm2835_gpio_write()
[all …]
/openbmc/qemu/hw/misc/
H A Dbcm2835_mbox.c98 uint32_t value; in bcm2835_mbox_update() local
109 value = ldl_le_phys(&s->mbox_as, n << MBOX_AS_CHAN_SHIFT); in bcm2835_mbox_update()
110 assert(value != MBOX_INVALID_DATA); /* Pending interrupt but no data */ in bcm2835_mbox_update()
111 mbox_push(&s->mbox[0], value); in bcm2835_mbox_update()
196 uint64_t value, unsigned size) in bcm2835_mbox_write() argument
204 trace_bcm2835_mbox_write(size, offset, value); in bcm2835_mbox_write()
211 s->mbox[0].config |= value & ARM_MC_IHAVEDATAIRQEN; in bcm2835_mbox_write()
219 ch = value & 0xf; in bcm2835_mbox_write()
224 mbox_push(&s->mbox[1], value); in bcm2835_mbox_write()
227 stl_le_phys(&s->mbox_as, childaddr, value); in bcm2835_mbox_write()
[all …]
H A Dmps2-fpgaio.c186 static void mps2_fpgaio_write(void *opaque, hwaddr offset, uint64_t value, in mps2_fpgaio_write() argument
192 trace_mps2_fpgaio_write(offset, value, size); in mps2_fpgaio_write()
199 s->led0 = value & MAKE_64BIT_MASK(0, s->num_leds); in mps2_fpgaio_write()
201 led_set_state(s->led[i], value & (1 << i)); in mps2_fpgaio_write()
211 s->dbgctrl = value; in mps2_fpgaio_write()
215 s->prescale = value; in mps2_fpgaio_write()
224 s->misc = value; in mps2_fpgaio_write()
228 s->clk1hz_tick_offset = tickoff_from_counter(now, value, 1); in mps2_fpgaio_write()
232 s->clk100hz_tick_offset = tickoff_from_counter(now, value, 100); in mps2_fpgaio_write()
236 s->counter = value; in mps2_fpgaio_write()
[all …]

1...<<61626364656667686970>>...543