Home
last modified time | relevance | path

Searched defs:val (Results 26 – 50 of 1955) sorted by relevance

12345678910>>...79

/openbmc/qemu/include/hw/
H A Dregisterfields.h85 #define FIELD_DP8(storage, reg, field, val) ({ \ argument
93 #define FIELD_DP16(storage, reg, field, val) ({ \ argument
101 #define FIELD_DP32(storage, reg, field, val) ({ \ argument
109 #define FIELD_DP64(storage, reg, field, val) ({ \ argument
118 #define FIELD_SDP8(storage, reg, field, val) ({ \ argument
126 #define FIELD_SDP16(storage, reg, field, val) ({ \ argument
134 #define FIELD_SDP32(storage, reg, field, val) ({ \ argument
142 #define FIELD_SDP64(storage, reg, field, val) ({ \ argument
152 #define ARRAY_FIELD_DP32(regs, reg, field, val) \ argument
154 #define ARRAY_FIELD_DP64(regs, reg, field, val) \ argument
[all …]
/openbmc/qemu/util/
H A Dlockcnt.c58 static bool qemu_lockcnt_cmpxchg_or_wait(QemuLockCnt *lockcnt, int *val, in qemu_lockcnt_cmpxchg_or_wait()
115 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_inc() local
157 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_dec_and_lock() local
206 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_dec_if_lock() local
240 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_lock() local
260 int expected, new, val; in qemu_lockcnt_inc_and_unlock() local
278 int expected, new, val; in qemu_lockcnt_unlock() local
338 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_dec_and_lock() local
367 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_dec_if_lock() local
/openbmc/u-boot/drivers/misc/
H A Dmxs_ocotp.c80 static void mxs_ocotp_scale_vddio(bool enter, uint32_t *val) in mxs_ocotp_scale_vddio()
137 static int mxs_ocotp_scale_hclk(bool enter, uint32_t *val) in mxs_ocotp_scale_hclk()
241 static int mxs_ocotp_read_fuse(uint32_t reg, uint32_t *val) in mxs_ocotp_read_fuse()
285 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read()
296 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog()
307 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense()
313 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
H A Dstm32mp_fuse.c18 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read()
46 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog()
74 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense()
101 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
/openbmc/u-boot/drivers/usb/phy/
H A Domap_usb_phy.c68 u32 val; in omap_usb_dpll_relock() local
81 u32 val; in omap_usb_dpll_lock() local
118 u32 val; in usb3_phy_partial_powerup() local
130 u32 val; in usb_phy_power() local
157 u32 val; in omap_enable_usb3_phy() local
192 u32 reg, val; in omap_enable_usb2_phy2() local
232 u32 val; in usb_phy_power() local
/openbmc/u-boot/drivers/usb/ulpi/
H A Dulpi.c33 u32 val, tval = ULPI_TEST_VALUE; in ulpi_integrity_check() local
54 u32 val, id = 0; in ulpi_init() local
76 u32 val; in ulpi_select_transceiver() local
114 u32 flags, val; in ulpi_set_vbus_indicator() local
140 u32 val = ULPI_OTG_DP_PULLDOWN | ULPI_OTG_DM_PULLDOWN; in ulpi_set_pd() local
149 u32 val; in ulpi_opmode_sel() local
207 u32 val; in __ulpi_reset_wait() local
/openbmc/u-boot/arch/mips/mach-ath79/ar933x/
H A Dlowlevel_init.S14 #define SET_BIT(val, bit) ((val) | (1 << (bit))) argument
15 #define SET_PLL_PD(val) SET_BIT(val, 30) argument
16 #define AHB_DIV_TO_4(val) SET_BIT(SET_BIT(val, 15), 16) argument
17 #define PLL_BYPASS(val) SET_BIT(val, 2) argument
/openbmc/u-boot/arch/arm/mach-imx/mx7/
H A Dclock_slice.c436 u32 val; in clock_get_src() local
491 u32 val; in clock_get_prediv() local
550 u32 val; in clock_get_postdiv() local
575 u32 val; in clock_set_autopostdiv() local
613 u32 val; in clock_get_autopostdiv() local
650 int clock_get_target_val(enum clk_root_index clock_id, u32 *val) in clock_get_target_val()
660 int clock_set_target_val(enum clk_root_index clock_id, u32 val) in clock_set_target_val()
674 u32 val; in clock_root_cfg() local
726 u32 val; in clock_root_enabled() local
/openbmc/qemu/include/semihosting/
H A Duaccess.h27 #define get_user_u64(val, addr) \ argument
38 #define get_user_u32(val, addr) \ argument
49 #define get_user_u8(val, addr) \ argument
67 #define put_user_u64(val, addr) \ argument
76 #define put_user_u32(val, addr) \ argument
/openbmc/qemu/target/arm/
H A Dvfp_fpscr.c58 void vfp_set_fpsr(CPUARMState *env, uint32_t val) in vfp_set_fpsr()
89 static void vfp_set_fpcr_masked(CPUARMState *env, uint32_t val, uint32_t mask) in vfp_set_fpcr_masked()
146 void vfp_set_fpcr(CPUARMState *env, uint32_t val) in vfp_set_fpcr()
151 void vfp_set_fpscr(CPUARMState *env, uint32_t val) in vfp_set_fpscr()
/openbmc/u-boot/arch/arm/mach-mvebu/
H A Defuse.c71 struct efuse_val val; in do_prog_efuse() local
148 int mvebu_read_efuse(int nr, struct efuse_val *val) in mvebu_read_efuse()
170 int mvebu_write_efuse(int nr, struct efuse_val *val) in mvebu_write_efuse()
177 struct efuse_val val = { in mvebu_lock_efuse() local
197 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read()
217 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense()
223 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog()
259 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
/openbmc/qemu/target/ppc/
H A Dcpu.c96 void ppc_store_lpcr(PowerPCCPU *cpu, target_ulong val) in ppc_store_lpcr()
128 void ppc_store_ciabr(CPUPPCState *env, target_ulong val) in ppc_store_ciabr()
175 void ppc_store_dawr0(CPUPPCState *env, target_ulong val) in ppc_store_dawr0()
181 static void ppc_store_dawrx(CPUPPCState *env, uint32_t val, int rid) in ppc_store_dawrx()
195 void ppc_store_dawrx0(CPUPPCState *env, uint32_t val) in ppc_store_dawrx0()
200 void ppc_store_dawr1(CPUPPCState *env, target_ulong val) in ppc_store_dawr1()
206 void ppc_store_dawrx1(CPUPPCState *env, uint32_t val) in ppc_store_dawrx1()
241 void ppc_store_fpscr(CPUPPCState *env, target_ulong val) in ppc_store_fpscr()
H A Dmisc_helper.c47 target_ulong val) in helper_spr_core_write_generic()
64 target_ulong val) in helper_spr_write_CTRL()
163 void helper_store_sdr1(CPUPPCState *env, target_ulong val) in helper_store_sdr1()
172 void helper_store_ptcr(CPUPPCState *env, target_ulong val) in helper_store_ptcr()
281 void helper_store_dpdes(CPUPPCState *env, target_ulong val) in helper_store_dpdes()
314 void helper_store_sprc(CPUPPCState *env, target_ulong val) in helper_store_sprc()
367 void helper_store_sprd(CPUPPCState *env, target_ulong val) in helper_store_sprd()
400 target_ulong val = 0; in helper_load_pmsr() local
412 static void ppc_set_pmcr(PowerPCCPU *cpu, target_ulong val) in ppc_set_pmcr()
417 void helper_store_pmcr(CPUPPCState *env, target_ulong val) in helper_store_pmcr()
[all …]
/openbmc/u-boot/drivers/bios_emulator/x86emu/
H A Dsys.c106 void X86API wrb(u32 addr, u8 val) in wrb()
118 void X86API wrw(u32 addr, u16 val) in wrw()
130 void X86API wrl(u32 addr, u32 val) in wrl()
186 static void X86API p_outb(X86EMU_pioAddr addr, u8 val) in p_outb()
200 static void X86API p_outw(X86EMU_pioAddr addr, u16 val) in p_outw()
214 static void X86API p_outl(X86EMU_pioAddr addr, u32 val) in p_outl()
/openbmc/u-boot/include/dt-bindings/sound/
H A Dazalia.h25 #define AZALIA_SET_BYTE(codec, nid, opcode, val, byte) \ argument
32 #define AZALIA_WORD(codec, nid, opcode, val) \ argument
38 #define AZALIA_PIN_CFG(codec, nid, val) \ argument
41 #define AZALIA_SUBVENDOR(codec, val) \ argument
/openbmc/qemu/hw/i386/
H A Dintel_iommu_internal.h132 #define VTD_TLB_DID(val) (((val) >> 32) & VTD_DOMAIN_ID_MASK) argument
135 #define VTD_IVA_ADDR(val) ((val) & ~0xfffULL) argument
136 #define VTD_IVA_AM(val) ((val) & 0x3fULL) argument
170 #define VTD_CCMD_DID(val) ((val) & VTD_DOMAIN_ID_MASK) argument
171 #define VTD_CCMD_SID(val) (((val) >> 16) & 0xffffULL) argument
172 #define VTD_CCMD_FM(val) (((val) >> 32) & 3ULL) argument
231 #define VTD_IQT_QT(dw_bit, val) (dw_bit ? (((val) >> 5) & 0x3fffULL) : \ argument
254 #define VTD_FSTS_FRI(val) ((((uint32_t)(val)) << 8) & VTD_FSTS_FRI_MASK) argument
267 #define VTD_FRCD_FR(val) (((val) & 0xffULL) << 32) argument
269 #define VTD_FRCD_SID(val) ((val) & VTD_FRCD_SID_MASK) argument
[all …]
/openbmc/u-boot/arch/arm/mach-tegra/
H A Dpinmux-common.c161 u32 val; in pinmux_set_func() local
192 u32 val; in pinmux_set_pullupdown() local
207 u32 val; in pinmux_set_tristate() local
235 u32 val; in pinmux_set_io() local
257 u32 val; in pinmux_set_lock() local
284 u32 val; in pinmux_set_od() local
309 u32 val; in pinmux_set_ioreset() local
334 u32 val; in pinmux_set_rcv_sel() local
359 u32 val; in pinmux_set_e_io_hv() local
383 u32 val; in pinmux_set_schmt() local
[all …]
/openbmc/qemu/hw/ppc/
H A Dspapr_caps.c104 g_autofree char *val = NULL; in spapr_cap_get_string() local
123 g_autofree char *val = NULL; in spapr_cap_set_string() local
150 uint8_t val = spapr_get_cap(spapr, cap->index); in spapr_cap_get_pagesize() local
162 uint8_t val; in spapr_cap_set_pagesize() local
178 static void cap_htm_apply(SpaprMachineState *spapr, uint8_t val, Error **errp) in cap_htm_apply()
195 static void cap_vsx_apply(SpaprMachineState *spapr, uint8_t val, Error **errp) in cap_vsx_apply()
213 static void cap_dfp_apply(SpaprMachineState *spapr, uint8_t val, Error **errp) in cap_dfp_apply()
234 static void cap_safe_cache_apply(SpaprMachineState *spapr, uint8_t val, in cap_safe_cache_apply()
259 static void cap_safe_bounds_check_apply(SpaprMachineState *spapr, uint8_t val, in cap_safe_bounds_check_apply()
288 uint8_t val, Error **errp) in cap_safe_indirect_branch_apply()
[all …]
/openbmc/u-boot/arch/arm/include/asm/arch-s32v234/
H A Dmc_cgm_regs.h21 #define MC_CGM_SC_DCn_PREDIV(val) (MC_CGM_SC_DCn_PREDIV_MASK & ((val) << MC_CGM_SC_DCn_PREDIV_OFFSE… argument
30 #define MC_CGM_ACn_DCm_PREDIV(val) (MC_CGM_ACn_DCm_PREDIV_MASK & ((val) << MC_CGM_ACn_DCm_PREDIV_O… argument
78 #define PLLDIG_PLLDV_RFDPHI_SET(val) (PLLDIG_PLLDV_RFDPHI_MASK & (((val) & PLLDIG_PLLDV_RFDPHI_MAXV… argument
83 #define PLLDIG_PLLDV_RFDPHI1_SET(val) (PLLDIG_PLLDV_RFDPHI1_MASK & (((val) & PLLDIG_PLLDV_RFDPHI1_M… argument
88 #define PLLDIG_PLLDV_PREDIV_SET(val) (PLLDIG_PLLDV_PREDIV_MASK & (((val) & PLLDIG_PLLDV_PREDIV_MAXV… argument
95 #define PLLDIG_PLLFD_MFN_SET(val) (PLLDIG_PLLFD_MFN_MASK & (val)) argument
101 #define PLLDIG_PLLCAL1_NDAC1_SET(val) (PLLDIG_PLLCAL1_NDAC1_MASK & ((val) << PLLDIG_PLLCAL1_NDAC1_O… argument
112 #define DFS_DLLPRG1_V2IGC_SET(val) (DFS_DLLPRG1_V2IGC_MASK & ((val) << DFS_DLLPRG1_V2IGC_OFFSET)) argument
116 #define DFS_DLLPRG1_LCKWT_SET(val) (DFS_DLLPRG1_LCKWT_MASK & ((val) << DFS_DLLPRG1_LCKWT_OFFSET)) argument
120 #define DFS_DLLPRG1_DACIN_SET(val) (DFS_DLLPRG1_DACIN_MASK & ((val) << DFS_DLLPRG1_DACIN_OFFSET)) argument
[all …]
/openbmc/u-boot/include/
H A Dvirtio.h368 static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) in __virtio16_to_cpu()
376 static inline __virtio16 __cpu_to_virtio16(bool little_endian, u16 val) in __cpu_to_virtio16()
384 static inline u32 __virtio32_to_cpu(bool little_endian, __virtio32 val) in __virtio32_to_cpu()
392 static inline __virtio32 __cpu_to_virtio32(bool little_endian, u32 val) in __cpu_to_virtio32()
400 static inline u64 __virtio64_to_cpu(bool little_endian, __virtio64 val) in __virtio64_to_cpu()
408 static inline __virtio64 __cpu_to_virtio64(bool little_endian, u64 val) in __cpu_to_virtio64()
514 static inline u16 virtio16_to_cpu(struct udevice *vdev, __virtio16 val) in virtio16_to_cpu()
519 static inline __virtio16 cpu_to_virtio16(struct udevice *vdev, u16 val) in cpu_to_virtio16()
524 static inline u32 virtio32_to_cpu(struct udevice *vdev, __virtio32 val) in virtio32_to_cpu()
529 static inline __virtio32 cpu_to_virtio32(struct udevice *vdev, u32 val) in cpu_to_virtio32()
[all …]
/openbmc/u-boot/test/overlay/
H A Dcmd_ut_overlay.c32 const fdt32_t *val; in ut_fdt_getprop_u32_by_index() local
72 u32 val = 0; in fdt_overlay_change_int_property() local
84 const char *val = NULL; in fdt_overlay_change_str_property() local
96 const char *val = NULL; in fdt_overlay_add_str_property() local
149 u32 val = 0; in fdt_overlay_local_phandle() local
173 u32 val = 0; in fdt_overlay_local_phandles() local
202 u32 val = 0; in fdt_overlay_stacked() local
/openbmc/hiomapd/
H A Dcommon.h64 static inline uint32_t align_up(uint32_t val, uint32_t size) in align_up()
69 static inline uint32_t align_down(uint32_t val, uint32_t size) in align_down()
83 static inline int log_2(int val) in log_2()
98 static inline bool is_power_of_2(unsigned val) in is_power_of_2()
/openbmc/phosphor-mboxd/
H A Dcommon.h63 static inline uint32_t align_up(uint32_t val, uint32_t size) in align_up()
68 static inline uint32_t align_down(uint32_t val, uint32_t size) in align_down()
82 static inline int log_2(int val) in log_2()
97 static inline bool is_power_of_2(unsigned val) in is_power_of_2()
/openbmc/u-boot/arch/arm/mach-imx/imx8m/
H A Dclock_slice.c532 int clock_get_target_val(enum clk_root_index clock_id, u32 *val) in clock_get_target_val()
555 int clock_set_target_val(enum clk_root_index clock_id, u32 val) in clock_set_target_val()
582 u32 val; in clock_root_enabled() local
634 u32 val; in clock_get_prediv() local
672 u32 val, mask; in clock_get_postdiv() local
714 u32 val; in clock_get_src() local
/openbmc/u-boot/arch/riscv/include/asm/
H A Dcsr.h66 #define csr_swap(csr, val) \ argument
84 #define csr_write(csr, val) \ argument
92 #define csr_read_set(csr, val) \ argument
101 #define csr_set(csr, val) \ argument
109 #define csr_read_clear(csr, val) \ argument
118 #define csr_clear(csr, val) \ argument

12345678910>>...79