Home
last modified time | relevance | path

Searched refs:ofs (Results 1 – 25 of 139) sorted by relevance

123456

/openbmc/u-boot/cmd/
H A Donenand.c67 loff_t ofs = from; in onenand_block_read() local
79 ret = mtd_block_isbad(mtd, ofs); in onenand_block_read()
82 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_read()
83 ofs += blocksize; in onenand_block_read()
93 ret = mtd_read_oob(mtd, ofs, &ops); in onenand_block_read()
95 printk("Read failed 0x%x, %d\n", (u32)ofs, ret); in onenand_block_read()
96 ofs += blocksize; in onenand_block_read()
99 ofs += blocksize; in onenand_block_read()
138 loff_t ofs; in onenand_block_write() local
155 ofs = to; in onenand_block_write()
[all …]
/openbmc/u-boot/lib/
H A Dslre.c440 loop_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs) in loop_greedy() argument
444 matched_offset = *ofs; in loop_greedy()
446 while (match(r, pc + 2, s, len, ofs, NULL)) { in loop_greedy()
447 saved_offset = *ofs; in loop_greedy()
448 if (match(r, pc + r->code[pc + 1], s, len, ofs, NULL)) in loop_greedy()
450 *ofs = saved_offset; in loop_greedy()
453 *ofs = matched_offset; in loop_greedy()
457 loop_non_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs) in loop_non_greedy() argument
459 int saved_offset = *ofs; in loop_non_greedy()
461 while (match(r, pc + 2, s, len, ofs, NULL)) { in loop_non_greedy()
[all …]
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Diomux.c31 u32 reg, ofs, bp, bm; in mxs_iomux_setup_pad() local
36 ofs = 0x100; in mxs_iomux_setup_pad()
37 ofs += PAD_BANK(pad) * 0x20 + PAD_PIN(pad) / 16 * 0x10; in mxs_iomux_setup_pad()
40 reg = readl(iomux_base + ofs); in mxs_iomux_setup_pad()
43 writel(reg, iomux_base + ofs); in mxs_iomux_setup_pad()
46 ofs = DRIVE_OFFSET; in mxs_iomux_setup_pad()
47 ofs += PAD_BANK(pad) * 0x40 + PAD_PIN(pad) / 8 * 0x10; in mxs_iomux_setup_pad()
52 reg = readl(iomux_base + ofs); in mxs_iomux_setup_pad()
55 writel(reg, iomux_base + ofs); in mxs_iomux_setup_pad()
60 mxs_reg = (struct mxs_register_32 *)(iomux_base + ofs); in mxs_iomux_setup_pad()
[all …]
/openbmc/phosphor-pid-control/sysfs/
H A Dsysfswrite.cpp22 std::ofstream ofs; in write() local
23 ofs.open(_writePath); in write()
24 ofs << static_cast<int64_t>(ovalue); in write()
25 ofs.close(); in write()
32 std::ofstream ofs; in write() local
33 ofs.open(_writePath); in write()
34 ofs << static_cast<int64_t>(value); in write()
35 ofs.close(); in write()
/openbmc/qemu/tcg/riscv/
H A Dtcg-target-has.h44 tcg_target_extract_valid(TCGType type, unsigned ofs, unsigned len) in tcg_target_extract_valid() argument
46 if (type == TCG_TYPE_I64 && ofs + len == 32) { in tcg_target_extract_valid()
48 return ofs || (cpuinfo & CPUINFO_ZBA); in tcg_target_extract_valid()
52 return (cpuinfo & CPUINFO_ZBS) && ofs != 0; in tcg_target_extract_valid()
54 return (cpuinfo & CPUINFO_ZBB) && ofs == 0; in tcg_target_extract_valid()
61 tcg_target_sextract_valid(TCGType type, unsigned ofs, unsigned len) in tcg_target_sextract_valid() argument
63 if (type == TCG_TYPE_I64 && ofs + len == 32) { in tcg_target_sextract_valid()
66 return (cpuinfo & CPUINFO_ZBB) && ofs == 0 && (len == 8 || len == 16); in tcg_target_sextract_valid()
70 #define TCG_TARGET_deposit_valid(type, ofs, len) 0 argument
/openbmc/qemu/tests/qemu-iotests/
H A D25194 for ofs in $status_fail_offsets
102 for ofs in $read_fail_offsets
121 for ofs in $1
123 filters+=" -e s/$ofs/status_fail_offset_$index/"
128 for ofs in $2
130 filters+=" -e s/$ofs/read_fail_offset_$index/"
159 for ofs in $read_fail_offsets
161 $QEMU_IO -c "write -z $ofs $sector_size" "$TEST_IMG.orig" \
/openbmc/qemu/tcg/i386/
H A Dtcg-target-has.h65 #define TCG_TARGET_deposit_valid(type, ofs, len) \ argument
66 (((ofs) == 0 && ((len) == 8 || (len) == 16)) || \
67 (TCG_TARGET_REG_BITS == 32 && (ofs) == 8 && (len) == 8))
77 tcg_target_sextract_valid(TCGType type, unsigned ofs, unsigned len) in tcg_target_sextract_valid() argument
79 switch (ofs) { in tcg_target_sextract_valid()
97 tcg_target_extract_valid(TCGType type, unsigned ofs, unsigned len) in tcg_target_extract_valid() argument
99 if (type == TCG_TYPE_I64 && ofs + len == 32) { in tcg_target_extract_valid()
102 switch (ofs) { in tcg_target_extract_valid()
/openbmc/phosphor-ipmi-blobs/test/
H A Dmanager_writemeta_unittest.cpp18 uint32_t ofs = 0x54; in TEST() local
21 EXPECT_FALSE(mgr.writeMeta(sess, ofs, data)); in TEST()
35 uint32_t ofs = 0x54; in TEST() local
42 EXPECT_CALL(*m1ptr, writeMeta(sess, ofs, data)).WillOnce(Return(false)); in TEST()
44 EXPECT_FALSE(mgr.writeMeta(sess, ofs, data)); in TEST()
58 uint32_t ofs = 0x54; in TEST() local
65 EXPECT_CALL(*m1ptr, writeMeta(sess, ofs, data)).WillOnce(Return(true)); in TEST()
67 EXPECT_TRUE(mgr.writeMeta(sess, ofs, data)); in TEST()
81 uint32_t ofs = 0x54; in TEST() local
88 EXPECT_CALL(*m1ptr, writeMeta(sess, ofs, data)).WillOnce(Return(true)); in TEST()
[all …]
H A Dmanager_write_unittest.cpp18 uint32_t ofs = 0x54; in TEST() local
21 EXPECT_FALSE(mgr.write(sess, ofs, data)); in TEST()
35 uint32_t ofs = 0x54; in TEST() local
42 EXPECT_CALL(*m1ptr, write(sess, ofs, data)).WillOnce(Return(false)); in TEST()
44 EXPECT_FALSE(mgr.write(sess, ofs, data)); in TEST()
58 uint32_t ofs = 0x54; in TEST() local
65 EXPECT_FALSE(mgr.write(sess, ofs, data)); in TEST()
79 uint32_t ofs = 0x54; in TEST() local
86 EXPECT_CALL(*m1ptr, write(sess, ofs, data)).WillOnce(Return(true)); in TEST()
88 EXPECT_TRUE(mgr.write(sess, ofs, data)); in TEST()
H A Dmanager_read_unittest.cpp20 uint32_t ofs = 0x54; in TEST() local
23 std::vector<uint8_t> result = mgr.read(sess, ofs, requested); in TEST()
38 uint32_t ofs = 0x54; in TEST() local
47 std::vector<uint8_t> result = mgr.read(sess, ofs, requested); in TEST()
62 uint32_t ofs = 0x54; in TEST() local
72 EXPECT_CALL(*m1ptr, read(sess, ofs, requested)).WillOnce(Return(data)); in TEST()
74 std::vector<uint8_t> result = mgr.read(sess, ofs, requested); in TEST()
/openbmc/u-boot/tools/
H A Dlpc32xximage.c123 static void print_hdr_byte(struct nand_page_0_boot_header *hdr, int ofs) in print_hdr_byte() argument
125 printf("header[%d] = %02x\n", ofs, hdr->data[ofs]); in print_hdr_byte()
132 int ofs; in lpc32xximage_print_header() local
134 for (ofs = 0; ofs <= 12; ofs++) in lpc32xximage_print_header()
135 print_hdr_byte(hdr, ofs); in lpc32xximage_print_header()
/openbmc/qemu/target/loongarch/tcg/
H A Dvec_helper.c696 int i, j, ofs; \
701 ofs = LSX_LEN / BIT; \
703 for (j = 0; j < ofs; j++) { \
704 Vd->E1(j + i * ofs) = Vj->E2(j + ofs + ofs * 2 * i); \
930 int i, j, ofs; \
937 ofs = LSX_LEN / BIT; \
939 for (j = 0; j < ofs; j++) { \
940 temp.E1(j + ofs * i) = (TD)Vj->E2(j + ofs * 2 * i) << (imm % BIT); \
1085 int i, j, ofs; \
1091 ofs = LSX_LEN / BIT; \
[all …]
/openbmc/qemu/linux-user/arm/
H A Dvdso.S37 .macro fdpic_thunk ofs argument
38 ldr r3, [sp, #\ofs]
89 .macro cfi_fdpic_r9 ofs argument
98 .cfi_escape 0x10, 9, 7, 0x7d, (\ofs & 0x7f) + 0x80, (\ofs >> 7), 0x06, 0x23, 4, 0x06
101 .macro cfi_fdpic_pc ofs argument
109 .cfi_escape 0x10, 14, 5, 0x7d, (\ofs & 0x7f) + 0x80, (\ofs >> 7), 0x06, 0x06
/openbmc/qemu/tcg/loongarch64/
H A Dtcg-target-has.h44 #define TCG_TARGET_extract_valid(type, ofs, len) 1 argument
45 #define TCG_TARGET_deposit_valid(type, ofs, len) 1 argument
48 tcg_target_sextract_valid(TCGType type, unsigned ofs, unsigned len) in tcg_target_sextract_valid() argument
50 if (type == TCG_TYPE_I64 && ofs + len == 32) { in tcg_target_sextract_valid()
53 return ofs == 0 && (len == 8 || len == 16); in tcg_target_sextract_valid()
/openbmc/u-boot/include/
H A Dnand.h47 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len, in nand_read() argument
50 return mtd_read(info, ofs, *len, (size_t *)len, buf); in nand_read()
53 static inline int nand_write(struct mtd_info *info, loff_t ofs, size_t *len, in nand_write() argument
56 return mtd_write(info, ofs, *len, (size_t *)len, buf); in nand_write()
59 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs) in nand_block_isbad() argument
61 return mtd_block_isbad(info, ofs); in nand_block_isbad()
112 loff_t ofs);
113 int nand_verify(struct mtd_info *mtd, loff_t ofs, size_t len, u_char *buf);
/openbmc/qemu/tcg/ppc/
H A Dtcg-target-has.h59 #define TCG_TARGET_extract_valid(type, ofs, len) 1 argument
60 #define TCG_TARGET_deposit_valid(type, ofs, len) 1 argument
63 tcg_target_sextract_valid(TCGType type, unsigned ofs, unsigned len) in tcg_target_sextract_valid() argument
65 if (type == TCG_TYPE_I64 && ofs + len == 32) { in tcg_target_sextract_valid()
68 return ofs == 0 && (len == 8 || len == 16); in tcg_target_sextract_valid()
/openbmc/phosphor-hwmon/
H A Dhwmonio.cpp47 std::ofstream ofs; in write() local
48 ofs.exceptions(std::ofstream::failbit | std::ofstream::badbit | in write()
52 if (!ofs.is_open()) in write()
53 ofs.open(path); in write()
54 ofs.clear(); in write()
55 ofs.seekp(0); in write()
56 ofs << value; in write()
57 ofs.flush(); in write()
/openbmc/qemu/util/
H A Dgetauxval.c53 ssize_t size = 512, r, ofs; in qemu_init_auxval() local
73 ofs = size; in qemu_init_auxval()
76 r = read(fd, (char *)a + ofs, ofs); in qemu_init_auxval()
77 } while (r == ofs); in qemu_init_auxval()
/openbmc/qemu/tests/tcg/aarch64/
H A Dtest-826.c26 long ofs; in main() local
39 ofs = 0x124; in main()
40 expected = page + ofs; in main()
47 : : "r"(page), "r"(ofs) : "v0", "v1"); in main()
/openbmc/qemu/tcg/mips/
H A Dtcg-target-has.h52 #define TCG_TARGET_extract_valid(type, ofs, len) use_mips32r2_instructions argument
53 #define TCG_TARGET_deposit_valid(type, ofs, len) use_mips32r2_instructions argument
56 tcg_target_sextract_valid(TCGType type, unsigned ofs, unsigned len) in tcg_target_sextract_valid() argument
58 if (ofs == 0) { in tcg_target_sextract_valid()
/openbmc/u-boot/drivers/ata/
H A Dlibata.c43 unsigned int ofs, unsigned int len) in ata_id_string() argument
48 c = id[ofs] >> 8; in ata_id_string()
52 c = id[ofs] & 0xff; in ata_id_string()
56 ofs++; in ata_id_string()
62 unsigned int ofs, unsigned int len) in ata_id_c_string() argument
66 ata_id_string(id, s, ofs, len - 1); in ata_id_c_string()
/openbmc/qemu/scripts/coccinelle/
H A Dtcg_gen_extract.cocci43 constant ofs, msk;
52 )(ret, arg, ofs);
88 constant match.ofs, match.msk;
93 -tcg_gen_shri_i32@shr_p(ret, arg, ofs);
94 +tcg_gen_extract_i32(ret, arg, ofs, extract_len);
98 -tcg_gen_shri_i64@shr_p(ret, arg, ofs);
99 +tcg_gen_extract_i64(ret, arg, ofs, extract_len);
103 -tcg_gen_shri_tl@shr_p(ret, arg, ofs);
104 +tcg_gen_extract_tl(ret, arg, ofs, extract_len);
/openbmc/qemu/tcg/tci/
H A Dtcg-target-has.h18 #define TCG_TARGET_extract_valid(type, ofs, len) 1 argument
19 #define TCG_TARGET_sextract_valid(type, ofs, len) 1 argument
20 #define TCG_TARGET_deposit_valid(type, ofs, len) 1 argument
/openbmc/qemu/tcg/sparc64/
H A Dtcg-target-has.h15 #define TCG_TARGET_extract_valid(type, ofs, len) \ argument
16 ((type) == TCG_TYPE_I64 && (ofs) + (len) == 32)
20 #define TCG_TARGET_deposit_valid(type, ofs, len) 0 argument
/openbmc/qemu/tcg/
H A Dtcg-op.c885 unsigned int ofs, unsigned int len) in tcg_gen_deposit_i32() argument
890 tcg_debug_assert(ofs < 32); in tcg_gen_deposit_i32()
893 tcg_debug_assert(ofs + len <= 32); in tcg_gen_deposit_i32()
899 if (TCG_TARGET_deposit_valid(TCG_TYPE_I32, ofs, len)) { in tcg_gen_deposit_i32()
900 tcg_gen_op5ii_i32(INDEX_op_deposit, ret, arg1, arg2, ofs, len); in tcg_gen_deposit_i32()
907 if (ofs + len == 32) { in tcg_gen_deposit_i32()
912 if (ofs == 0) { in tcg_gen_deposit_i32()
920 if (ofs + len < 32) { in tcg_gen_deposit_i32()
922 tcg_gen_shli_i32(t1, t1, ofs); in tcg_gen_deposit_i32()
924 tcg_gen_shli_i32(t1, arg2, ofs); in tcg_gen_deposit_i32()
[all …]

123456