Home
last modified time | relevance | path

Searched refs:value (Results 401 – 425 of 12835) sorted by relevance

1...<<11121314151617181920>>...514

/openbmc/qemu/hw/timer/
H A Dstellaris-gptm.c159 uint64_t value, unsigned size) in gptm_write() argument
171 s->config = value; in gptm_write()
174 s->mode[0] = value; in gptm_write()
177 s->mode[1] = value; in gptm_write()
181 s->control = value; in gptm_write()
183 if ((oldval ^ value) & 1) { in gptm_write()
184 if (value & 1) { in gptm_write()
190 if (((oldval ^ value) & 0x100) && s->config >= 4) { in gptm_write()
191 if (value & 0x100) { in gptm_write()
199 s->mask = value & 0x77; in gptm_write()
[all …]
/openbmc/linux/drivers/video/fbdev/via/
H A Dvia_clock.c127 u8 value; in set_primary_pll_state() local
131 value = 0x20; in set_primary_pll_state()
134 value = 0x00; in set_primary_pll_state()
140 via_write_reg_mask(VIASR, 0x2D, value, 0x30); in set_primary_pll_state()
145 u8 value; in set_secondary_pll_state() local
149 value = 0x08; in set_secondary_pll_state()
152 value = 0x00; in set_secondary_pll_state()
158 via_write_reg_mask(VIASR, 0x2D, value, 0x0C); in set_secondary_pll_state()
163 u8 value; in set_engine_pll_state() local
167 value = 0x02; in set_engine_pll_state()
[all …]
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/
H A Dpmbus_write_vout_command.md5 Writes the value of VOUT_COMMAND to set the output voltage of a PMBus regulator
14 The PMBus specification defines four modes/formats for the value of
22 Currently only the linear format is supported. The decimal value of the "volts"
27 The linear data format requires an exponent value.
29 If the device supports the PMBus VOUT_MODE command, the exponent value can be
32 If VOUT_MODE is not supported by the device, the exponent value must be
33 specified using the "exponent" property. The exponent value can normally be
38 If you wish to verify that the specified volts value was successfully written to
39 VOUT_COMMAND, specify the "is_verified" property with a value of true.
41 The value of VOUT_COMMAND will be read from the device after it is written to
[all …]
/openbmc/u-boot/test/py/tests/
H A Dtest_env.py52 (var, value) = l.strip().split('=', 1)
53 self.env[var] = value
113 def set_var(state_test_env, var, value): argument
133 if ' ' in value:
137 'setenv %s %s%s%s' % (var, quote, value, quote))
138 state_test_env.env[var] = value
153 def validate_set(state_test_env, var, value): argument
167 assert response == ('%s=%s' % (var, value))
173 value = state_test_env.env[var]
174 validate_set(state_test_env, var, value)
[all …]
/openbmc/linux/fs/fuse/
H A Dxattr.c14 int fuse_setxattr(struct inode *inode, const char *name, const void *value, in fuse_setxattr() argument
35 args.in_args[0].value = &inarg; in fuse_setxattr()
37 args.in_args[1].value = name; in fuse_setxattr()
39 args.in_args[2].value = value; in fuse_setxattr()
51 ssize_t fuse_getxattr(struct inode *inode, const char *name, void *value, in fuse_getxattr() argument
69 args.in_args[0].value = &inarg; in fuse_getxattr()
71 args.in_args[1].value = name; in fuse_getxattr()
77 args.out_args[0].value = value; in fuse_getxattr()
80 args.out_args[0].value = &outarg; in fuse_getxattr()
133 args.in_args[0].value = &inarg; in fuse_listxattr()
[all …]
/openbmc/u-boot/drivers/net/
H A Dmacb.h286 #define MACB_BF(name, value) \ argument
287 (((value) & ((1 << MACB_##name##_SIZE) - 1)) \
289 #define MACB_BFEXT(name, value)\ argument
290 (((value) >> MACB_##name##_OFFSET) \
292 #define MACB_BFINS(name, value, old) \ argument
295 | MACB_BF(name, value))
299 #define GEM_BF(name, value) \ argument
300 (((value) & ((1 << GEM_##name##_SIZE) - 1)) \
302 #define GEM_BFEXT(name, value)\ argument
303 (((value) >> GEM_##name##_OFFSET) \
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-dr.c53 drff->report->field[0]->value[0] = 0x51; in drff_play()
54 drff->report->field[0]->value[1] = 0x00; in drff_play()
55 drff->report->field[0]->value[2] = weak; in drff_play()
56 drff->report->field[0]->value[4] = strong; in drff_play()
59 drff->report->field[0]->value[0] = 0xfa; in drff_play()
60 drff->report->field[0]->value[1] = 0xfe; in drff_play()
62 drff->report->field[0]->value[0] = 0xf3; in drff_play()
63 drff->report->field[0]->value[1] = 0x00; in drff_play()
66 drff->report->field[0]->value[2] = 0x00; in drff_play()
67 drff->report->field[0]->value[4] = 0x00; in drff_play()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/core/decorator/
H A Ddata.py44 (self.var, self.value))
46 if self.case.td.get(self.var) == self.value:
63 (self.var, self.value))
65 if not self.case.td.get(self.var) == self.value:
77 'the test' % (self.var, self.value))
79 if self.value in (self.case.td.get(self.var)):
91 'the test' % (self.var, self.value))
93 if not self.value in (self.case.td.get(self.var) or ""):
103 value = self.case.td[v]
121 'or IMAGE_FEATURES' % (self.value))
[all …]
/openbmc/telemetry/src/utils/
H A Dconversion.hpp54 constexpr inline std::underlying_type_t<T> toUnderlying(T value) in toUnderlying() argument
56 return static_cast<std::underlying_type_t<T>>(value); in toUnderlying()
64 for (auto [key, value] : data) in minEnumValue()
66 if (toUnderlying(min) > toUnderlying(value)) in minEnumValue()
68 min = value; in minEnumValue()
79 for (auto [key, value] : data) in maxEnumValue()
81 if (toUnderlying(max) < toUnderlying(value)) in maxEnumValue()
83 max = value; in maxEnumValue()
91 const std::string& value) in toEnum() argument
95 [&value](const auto& item) { return item.first == value; }); in toEnum()
[all …]
/openbmc/linux/fs/orangefs/
H A Dacl.c17 char *key = NULL, *value = NULL; in orangefs_get_acl() local
40 value = kmalloc(ORANGEFS_MAX_XATTR_VALUELEN, GFP_KERNEL); in orangefs_get_acl()
41 if (!value) in orangefs_get_acl()
49 ret = orangefs_inode_getxattr(inode, key, value, in orangefs_get_acl()
53 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl()
63 kfree(value); in orangefs_get_acl()
70 void *value = NULL; in __orangefs_set_acl() local
94 value = kmalloc(size, GFP_KERNEL); in __orangefs_set_acl()
95 if (!value) in __orangefs_set_acl()
98 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __orangefs_set_acl()
[all …]
/openbmc/phosphor-dbus-interfaces/
H A Dmeson.options1 option('generate_md', type: 'boolean', value: true)
2 option('libphosphor_dbus', type: 'boolean', value: true)
3 option('data_com_google', type: 'boolean', value: true)
4 option('data_com_ibm', type: 'boolean', value: true)
5 option('data_com_intel', type: 'boolean', value: true)
6 option('data_com_meta', type: 'boolean', value: true)
7 option('data_org_freedesktop', type: 'boolean', value: true)
8 option('data_org_open_power', type: 'boolean', value: true)
9 option('data_xyz_openbmc_project', type: 'boolean', value: true)
/openbmc/linux/arch/openrisc/kernel/
H A Dmodule.c26 uint32_t value; in apply_relocate_add() local
39 value = sym->st_value + rel[i].r_addend; in apply_relocate_add()
43 *location = value; in apply_relocate_add()
46 *((uint16_t *)location + 1) = value; in apply_relocate_add()
49 *((uint16_t *)location + 1) = value >> 16; in apply_relocate_add()
52 value -= (uint32_t)location; in apply_relocate_add()
53 value >>= 2; in apply_relocate_add()
54 value &= 0x03ffffff; in apply_relocate_add()
55 value |= *location & 0xfc000000; in apply_relocate_add()
56 *location = value; in apply_relocate_add()
/openbmc/u-boot/arch/arm/mach-tegra/
H A Dpowergate.c24 u32 value, mask = state ? (1 << id) : 0, old_mask; in tegra_powergate_set() local
27 value = readl(NV_PA_PMC_BASE + PWRGATE_STATUS); in tegra_powergate_set()
28 old_mask = value & (1 << id); in tegra_powergate_set()
38 value = readl(NV_PA_PMC_BASE + PWRGATE_STATUS); in tegra_powergate_set()
39 if ((value & (1 << id)) == mask) in tegra_powergate_set()
58 unsigned long value; in tegra_powergate_remove_clamping() local
66 value = 1 << TEGRA_POWERGATE_PCIE; in tegra_powergate_remove_clamping()
68 value = 1 << TEGRA_POWERGATE_VDEC; in tegra_powergate_remove_clamping()
70 value = 1 << id; in tegra_powergate_remove_clamping()
72 writel(value, NV_PA_PMC_BASE + REMOVE_CLAMPING); in tegra_powergate_remove_clamping()
/openbmc/linux/sound/isa/sb/
H A Dsb_mixer.c51 uinfo->value.integer.min = 0; in snd_sbmixer_info_single()
52 uinfo->value.integer.max = mask; in snd_sbmixer_info_single()
68 ucontrol->value.integer.value[0] = val; in snd_sbmixer_get_single()
82 val = (ucontrol->value.integer.value[0] & mask) << shift; in snd_sbmixer_put_single()
103 uinfo->value.integer.min = 0; in snd_sbmixer_info_double()
104 uinfo->value.integer.max = mask; in snd_sbmixer_info_double()
123 ucontrol->value.integer.value[0] = left; in snd_sbmixer_get_double()
124 ucontrol->value.integer.value[1] = right; in snd_sbmixer_get_double()
140 left = (ucontrol->value.integer.value[0] & mask) << left_shift; in snd_sbmixer_put_double()
141 right = (ucontrol->value.integer.value[1] & mask) << right_shift; in snd_sbmixer_put_double()
[all …]
/openbmc/qemu/hw/intc/
H A Darm_gicv3_dist.c222 uint8_t value) in gicd_write_ipriorityr() argument
238 value = 0x80 | (value >> 1); in gicd_write_ipriorityr()
240 s->gicd_ipriority[irq] = value; in gicd_write_ipriorityr()
322 uint64_t value, MemTxAttrs attrs) in gicd_writeb() argument
340 gicd_write_ipriorityr(s, attrs, irq, value); in gicd_writeb()
362 uint64_t value, MemTxAttrs attrs) in gicd_writew() argument
490 uint32_t value = 0; in gicd_readl() local
493 value <<= 8; in gicd_readl()
494 value |= gicd_read_ipriorityr(s, attrs, i); in gicd_readl()
496 *data = value; in gicd_readl()
[all …]
/openbmc/linux/drivers/mmc/host/
H A Dsdhci-of-esdhc.c116 int spec_reg, u32 value) in esdhc_readl_fixup() argument
130 if ((spec_reg == SDHCI_CAPABILITIES) && (value & SDHCI_CAN_DO_ADMA1)) { in esdhc_readl_fixup()
132 ret = value | SDHCI_CAN_DO_ADMA2; in esdhc_readl_fixup()
145 ret = value & 0x000fffff; in esdhc_readl_fixup()
146 ret |= (value >> 4) & SDHCI_DATA_LVL_MASK; in esdhc_readl_fixup()
147 ret |= (value << 1) & SDHCI_CMD_LVL; in esdhc_readl_fixup()
167 ret = value & ~(SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_SDR104 | in esdhc_readl_fixup()
172 ret = value; in esdhc_readl_fixup()
177 int spec_reg, u32 value) in esdhc_readw_fixup() argument
188 ret = value & 0xffff; in esdhc_readw_fixup()
[all …]
/openbmc/qemu/hw/m68k/
H A Dmcf5206.c329 uint64_t value, unsigned size) in m5206_mbar_write() argument
332 m5206_timer_write(&s->timer[0], offset - 0x100, value); in m5206_mbar_write()
335 m5206_timer_write(&s->timer[1], offset - 0x120, value); in m5206_mbar_write()
338 mcf_uart_write(s->uart[0], offset - 0x140, value, size); in m5206_mbar_write()
341 mcf_uart_write(s->uart[1], offset - 0x180, value, size); in m5206_mbar_write()
346 s->scr = value; in m5206_mbar_write()
349 s->icr[offset - 0x13] = value; in m5206_mbar_write()
353 s->imr = value; in m5206_mbar_write()
357 s->rsr &= ~value; in m5206_mbar_write()
363 s->swivr = value; in m5206_mbar_write()
[all …]
/openbmc/linux/drivers/usb/gadget/legacy/
H A Dinode.c334 int value; in ep_io() local
344 value = usb_ep_queue (epdata->ep, req, GFP_ATOMIC); in ep_io()
346 value = -ENODEV; in ep_io()
349 if (likely (value == 0)) { in ep_io()
350 value = wait_for_completion_interruptible(&done); in ep_io()
351 if (value != 0) { in ep_io()
372 return value; in ep_io()
379 int value; in ep_release() local
381 value = mutex_lock_interruptible(&data->lock); in ep_release()
382 if (value < 0) in ep_release()
[all …]
/openbmc/linux/drivers/mailbox/
H A Dtegra-hsp.c131 static inline void tegra_hsp_writel(struct tegra_hsp *hsp, u32 value, in tegra_hsp_writel() argument
134 writel(value, hsp->regs + offset); in tegra_hsp_writel()
144 u32 value, unsigned int offset) in tegra_hsp_channel_writel() argument
146 writel(value, channel->regs + offset); in tegra_hsp_channel_writel()
151 u32 value; in tegra_hsp_doorbell_can_ring() local
153 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_ENABLE); in tegra_hsp_doorbell_can_ring()
155 return (value & BIT(TEGRA_HSP_DB_MASTER_CCPLEX)) != 0; in tegra_hsp_doorbell_can_ring()
187 unsigned long master, value; in tegra_hsp_doorbell_irq() local
193 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_PENDING); in tegra_hsp_doorbell_irq()
194 tegra_hsp_channel_writel(&db->channel, value, HSP_DB_PENDING); in tegra_hsp_doorbell_irq()
[all …]
/openbmc/phosphor-snmp/
H A Dsnmp_client.cpp27 std::string Client::address(std::string value) in address() argument
29 if (value == Ifaces::address()) in address()
31 return value; in address()
34 parent.checkClientConfigured(value, port()); in address()
36 auto addr = Ifaces::address(value); in address()
41 uint16_t Client::port(uint16_t value) in port() argument
43 if (value == Ifaces::port()) in port()
45 return value; in port()
48 parent.checkClientConfigured(address(), value); in port()
50 auto port = Ifaces::port(value); in port()
/openbmc/u-boot/cmd/
H A Dgpio.c122 int value; in do_gpio() local
206 value = gpio_get_value(gpio); in do_gpio()
210 value = 1; in do_gpio()
213 value = 0; in do_gpio()
216 value = gpio_get_value(gpio); in do_gpio()
217 if (!IS_ERR_VALUE(value)) in do_gpio()
218 value = !value; in do_gpio()
223 gpio_direction_output(gpio, value); in do_gpio()
226 if (IS_ERR_VALUE(value)) in do_gpio()
227 printf("unknown (ret=%d)\n", value); in do_gpio()
[all …]
/openbmc/linux/drivers/pci/controller/
H A Dpcie-altera.c98 int (*tlp_read_pkt)(struct altera_pcie *pcie, u32 *value);
103 int size, u32 *value);
105 int where, int size, u32 value);
124 static inline void cra_writel(struct altera_pcie *pcie, const u32 value, in cra_writel() argument
127 writel_relaxed(value, pcie->cra_base + reg); in cra_writel()
198 static int tlp_read_packet(struct altera_pcie *pcie, u32 *value) in tlp_read_packet() argument
225 if (value) in tlp_read_packet()
226 *value = reg0; in tlp_read_packet()
237 static int s10_tlp_read_packet(struct altera_pcie *pcie, u32 *value) in s10_tlp_read_packet() argument
271 if (value && TLP_BYTE_COUNT(dw[1]) == sizeof(u32) && in s10_tlp_read_packet()
[all …]
/openbmc/qemu/hw/i2c/
H A Dallwinner-i2c.c211 uint16_t value; in allwinner_i2c_read() local
216 value = s->addr; in allwinner_i2c_read()
219 value = s->xaddr; in allwinner_i2c_read()
235 value = s->data; in allwinner_i2c_read()
238 value = s->cntr; in allwinner_i2c_read()
241 value = s->stat; in allwinner_i2c_read()
256 value = s->ccr; in allwinner_i2c_read()
259 value = s->srst; in allwinner_i2c_read()
262 value = s->efr; in allwinner_i2c_read()
265 value = s->lcr; in allwinner_i2c_read()
[all …]
/openbmc/linux/sound/pci/oxygen/
H A Dxonar_lib.c79 unsigned int value; in xonar_set_cs53x1_params() local
82 value = GPIO_CS53x1_M_SINGLE; in xonar_set_cs53x1_params()
84 value = GPIO_CS53x1_M_DOUBLE; in xonar_set_cs53x1_params()
86 value = GPIO_CS53x1_M_QUAD; in xonar_set_cs53x1_params()
88 value, GPIO_CS53x1_M_MASK); in xonar_set_cs53x1_params()
92 struct snd_ctl_elem_value *value) in xonar_gpio_bit_switch_get() argument
98 value->value.integer.value[0] = in xonar_gpio_bit_switch_get()
104 struct snd_ctl_elem_value *value) in xonar_gpio_bit_switch_put() argument
114 if (!!value->value.integer.value[0] ^ invert) in xonar_gpio_bit_switch_put()
/openbmc/linux/drivers/rtc/
H A Drtc-ntxec.c39 unsigned int value; in ntxec_read_time() local
43 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_MINUTE_SECOND, &value); in ntxec_read_time()
47 tm->tm_min = value >> 8; in ntxec_read_time()
48 tm->tm_sec = value & 0xff; in ntxec_read_time()
50 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_MDAY_HOUR, &value); in ntxec_read_time()
54 tm->tm_mday = value >> 8; in ntxec_read_time()
55 tm->tm_hour = value & 0xff; in ntxec_read_time()
57 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_YEAR_MONTH, &value); in ntxec_read_time()
61 tm->tm_year = (value >> 8) + 100; in ntxec_read_time()
62 tm->tm_mon = (value & 0xff) - 1; in ntxec_read_time()
[all …]

1...<<11121314151617181920>>...514