Home
last modified time | relevance | path

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

12

/u-boot/cmd/
A Donenand.c82 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_read()
138 loff_t ofs; in onenand_block_write() local
155 ofs = to; in onenand_block_write()
161 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_write()
192 loff_t ofs; in onenand_block_erase() local
196 for (ofs = start; ofs < (start + size); ofs += blocksize) { in onenand_block_erase()
200 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_erase()
211 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_erase()
266 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_test()
371 ulong ofs; in do_onenand_bad() local
[all …]
/u-boot/arch/arm/cpu/arm926ejs/mxs/
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()
69 ofs = PULL_OFFSET; in mxs_iomux_setup_pad()
[all …]
/u-boot/lib/
A Dslre.c476 ch = s[*ofs]; in is_any_of()
480 (*ofs)++; in is_any_of()
492 ch = s[*ofs]; in is_any_but()
499 (*ofs)++; in is_any_but()
528 if (n <= len - *ofs && !memcmp(s + *ofs, r->data + in match()
570 if (*ofs < len && isspace(((unsigned char *)s)[*ofs])) { in match()
571 (*ofs)++; in match()
580 (*ofs)++; in match()
588 (*ofs)++; in match()
596 (*ofs)++; in match()
[all …]
/u-boot/tools/
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()
/u-boot/include/
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);
A Dspi_flash.h170 static inline int spi_flash_protect(struct spi_flash *flash, u32 ofs, u32 len, in spi_flash_protect() argument
177 return flash->flash_lock(flash, ofs, len); in spi_flash_protect()
179 return flash->flash_unlock(flash, ofs, len); in spi_flash_protect()
A Dsym53c8xx.h385 #define SCR_REG_OFS(ofs) ((((ofs) & 0x7f) << 16ul)) /* + ((ofs) & 0x80)) */ argument
455 #define SCR_REG_OFS2(ofs) (((ofs) & 0xff) << 16ul) argument
/u-boot/drivers/ata/
A Dlibata.c45 unsigned int ofs, unsigned int len) in ata_id_string() argument
50 c = id[ofs] >> 8; in ata_id_string()
54 c = id[ofs] & 0xff; in ata_id_string()
58 ofs++; in ata_id_string()
64 unsigned int ofs, unsigned int len) in ata_id_c_string() argument
68 ata_id_string(id, s, ofs, len - 1); in ata_id_c_string()
/u-boot/fs/jffs2/
A Djffs2_1pass.c1569 ofs = 0; in jffs2_1pass_build_lists()
1574 ofs += 4; in jffs2_1pass_build_lists()
1591 ofs += 4; in jffs2_1pass_build_lists()
1595 prevofs = ofs; in jffs2_1pass_build_lists()
1614 ofs += 4; in jffs2_1pass_build_lists()
1626 ofs += 4; in jffs2_1pass_build_lists()
1664 ofs += 4; in jffs2_1pass_build_lists()
1674 ofs += 4; in jffs2_1pass_build_lists()
1680 ofs += 4; in jffs2_1pass_build_lists()
1702 ofs); in jffs2_1pass_build_lists()
[all …]
/u-boot/drivers/rtc/
A Dmc146818.c54 int ofs = 0; in mc146818_read8()
57 ofs = 2; in mc146818_read8()
60 out8(RTC_PORT_MC146818 + ofs, reg); in mc146818_read8()
62 return in8(RTC_PORT_MC146818 + ofs + 1); in mc146818_read8()
71 int ofs = 0; in mc146818_write8()
74 ofs = 2; in mc146818_write8()
77 out8(RTC_PORT_MC146818 + ofs, reg); in mc146818_write8()
78 out8(RTC_PORT_MC146818 + ofs + 1, val); in mc146818_write8()
/u-boot/drivers/mtd/
A Dmtdconcat.c515 if (ofs >= subdev->size) { in concat_lock()
517 ofs -= subdev->size; in concat_lock()
521 size = subdev->size - ofs; in concat_lock()
534 ofs = 0; in concat_lock()
549 if (ofs >= subdev->size) { in concat_unlock()
551 ofs -= subdev->size; in concat_unlock()
568 ofs = 0; in concat_unlock()
622 if (ofs >= subdev->size) { in concat_block_isbad()
623 ofs -= subdev->size; in concat_block_isbad()
642 if (ofs >= subdev->size) { in concat_block_markbad()
[all …]
A Daltera_qspi.c61 static void altera_qspi_get_locked_range(struct mtd_info *mtd, loff_t *ofs,
67 loff_t ofs; in flash_print_info() local
72 altera_qspi_get_locked_range(mtd, &ofs, &len); in flash_print_info()
76 info->start[0] + ofs, len); in flash_print_info()
235 static void altera_qspi_get_locked_range(struct mtd_info *mtd, loff_t *ofs, in altera_qspi_get_locked_range() argument
247 *ofs = 0; in altera_qspi_get_locked_range()
254 *ofs = mtd->size - *len; in altera_qspi_get_locked_range()
258 static int altera_qspi_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in altera_qspi_lock() argument
270 sector_start = ofs / mtd->erasesize; in altera_qspi_lock()
271 sector_end = (ofs + len) / mtd->erasesize; in altera_qspi_lock()
[all …]
A Dcfi_mtd.c109 static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_lock() argument
114 flash_protect(FLAG_PROTECT_SET, fi->start[0] + ofs, in cfi_mtd_lock()
115 fi->start[0] + ofs + len - 1, fi); in cfi_mtd_lock()
121 static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_unlock() argument
126 flash_protect(FLAG_PROTECT_CLEAR, fi->start[0] + ofs, in cfi_mtd_unlock()
127 fi->start[0] + ofs + len - 1, fi); in cfi_mtd_unlock()
A Dmtdcore.c1576 if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) in mtd_lock()
1580 return mtd->_lock(mtd, ofs, len); in mtd_lock()
1588 if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) in mtd_unlock()
1592 return mtd->_unlock(mtd, ofs, len); in mtd_unlock()
1600 if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) in mtd_is_locked()
1604 return mtd->_is_locked(mtd, ofs, len); in mtd_is_locked()
1610 if (ofs < 0 || ofs > mtd->size) in mtd_block_isreserved()
1620 if (ofs < 0 || ofs > mtd->size) in mtd_block_isbad()
1624 return mtd->_block_isbad(mtd, ofs); in mtd_block_isbad()
1632 if (ofs < 0 || ofs > mtd->size) in mtd_block_markbad()
[all …]
A Dmtdpart.c472 return mtd->parent->_lock(mtd->parent, ofs + mtd->offset, len); in part_lock()
477 return mtd->parent->_unlock(mtd->parent, ofs + mtd->offset, len); in part_unlock()
502 static int part_block_isreserved(struct mtd_info *mtd, loff_t ofs) in part_block_isreserved() argument
504 ofs += mtd->offset; in part_block_isreserved()
505 return mtd->parent->_block_isreserved(mtd->parent, ofs); in part_block_isreserved()
508 static int part_block_isbad(struct mtd_info *mtd, loff_t ofs) in part_block_isbad() argument
510 ofs += mtd->offset; in part_block_isbad()
511 return mtd->parent->_block_isbad(mtd->parent, ofs); in part_block_isbad()
514 static int part_block_markbad(struct mtd_info *mtd, loff_t ofs) in part_block_markbad() argument
518 ofs += mtd->offset; in part_block_markbad()
[all …]
/u-boot/drivers/mtd/spi/
A Dspi-nor-core.c631 *ofs = 0; in stm_get_locked_range()
637 *ofs = 0; in stm_get_locked_range()
639 *ofs = mtd->size - *len; in stm_get_locked_range()
660 return (ofs + len <= lock_offs + lock_len) && (ofs >= lock_offs); in stm_check_lock_status_sr()
663 return (ofs >= lock_offs + lock_len) || (ofs + len <= lock_offs); in stm_check_lock_status_sr()
733 if (!stm_is_locked_sr(nor, ofs + len, mtd->size - (ofs + len), in stm_lock()
747 lock_len = ofs + len; in stm_lock()
813 if (!stm_is_unlocked_sr(nor, ofs + len, mtd->size - (ofs + len), in stm_unlock()
827 lock_len = ofs; in stm_unlock()
1019 ofs, len, mtd->size); in sst26_lock_ctl()
[all …]
/u-boot/arch/xtensa/include/asm/arch-de212/
A Dtie-asm.h55 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0
56 xchal_sa_start \continue, \ofs
109 .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0
110 xchal_sa_start \continue, \ofs
/u-boot/arch/xtensa/include/asm/arch-dc232b/
A Dtie-asm.h35 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL
36 xchal_sa_start \continue, \ofs
76 .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL
77 xchal_sa_start \continue, \ofs
/u-boot/include/linux/mtd/
A Dmtd.h270 int (*_lock) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
271 int (*_unlock) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
273 int (*_block_isreserved) (struct mtd_info *mtd, loff_t ofs);
274 int (*_block_isbad) (struct mtd_info *mtd, loff_t ofs);
275 int (*_block_markbad) (struct mtd_info *mtd, loff_t ofs);
440 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
441 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
442 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len);
443 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs);
444 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs);
[all …]
A Dbbm.h149 int (*isbad_bbt)(struct mtd_info *mtd, loff_t ofs, int allowbbt);
/u-boot/arch/xtensa/include/asm/arch-dc233c/
A Dtie-asm.h56 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0
57 xchal_sa_start \continue, \ofs
120 .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0
121 xchal_sa_start \continue, \ofs
/u-boot/fs/ext4/
A Dext4_journal.c336 int ofs, flags; in recover_transaction() local
352 ofs = sizeof(struct journal_header_t); in recover_transaction()
356 ofs += sizeof(struct ext3_journal_block_tag); in recover_transaction()
358 if (ofs > fs->blksz) in recover_transaction()
363 ofs += 16; in recover_transaction()
399 int ofs, flags; in ext4fs_check_journal_state() local
467 ofs = sizeof(struct journal_header_t); in ext4fs_check_journal_state()
470 (p_jdb + ofs); in ext4fs_check_journal_state()
471 ofs += sizeof(struct ext3_journal_block_tag); in ext4fs_check_journal_state()
472 if (ofs > fs->blksz) in ext4fs_check_journal_state()
[all …]
/u-boot/arch/arm/mach-tegra/
A Dpsci.S31 .macro get_csr_reg cpu, ofs, tmp
34 moveq \ofs, #FLOW_CTRL_CPU_CSR
35 addne \ofs, \tmp, #FLOW_CTRL_CPU1_CSR - 8
/u-boot/drivers/mtd/onenand/
A Donenand_base.c267 loff_t ofs = 0; in flexonenand_addr() local
273 ofs = this->diesize[0]; in flexonenand_addr()
281 return ofs; in flexonenand_addr()
1878 if (ofs > mtd->size) in onenand_block_isbad()
1909 block = onenand_block(this, ofs); in onenand_default_block_markbad()
1930 ret = onenand_block_isbad(mtd, ofs); in onenand_block_markbad()
1959 start = onenand_block(this, ofs); in onenand_do_lock_cmd()
2102 loff_t ofs = 0; in onenand_unlock_all() local
2126 ofs = this->chipsize >> 1; in onenand_unlock_all()
2318 loff_t ofs; in flexonenand_get_size() local
[all …]
/u-boot/drivers/soc/ti/
A Dkeystone_serdes.c37 u32 ofs; member
114 ks2_serdes_rmw(base + cfg[i].ofs, cfg[i].val, cfg[i].mask); in ks2_serdes_cfg_setup()
123 ks2_serdes_rmw(base + cfg_lane[i].ofs + SERDES_LANE_REGS(lane), in ks2_serdes_lane_config()

Completed in 84 milliseconds

12