Searched refs:offset (Results 1 - 25 of 159) sorted by relevance

1234567

/openwrt/target/linux/adm5120/files-3.18/arch/mips/include/asm/mach-adm5120/prom/
H A Dadmboot.h15 extern int admboot_get_mac_base(u32 offset, u32 len, u8 *mac) __init;
/openwrt/target/linux/at91/files/drivers/mtd/
H A Dat91part.c38 unsigned int offset, len; local
46 at91_parts[0].offset = 0;
51 at91_parts[1].offset = 0x21000;
56 at91_parts[2].offset = pre_size;
61 at91_parts[3].offset = 0;
65 for(offset = pre_size; offset < root_max; offset += master->erasesize) {
69 if (master->read(master, offset, sizeof(buf), &len, buf) || len != sizeof(buf))
77 at91_parts[3].offset
[all...]
/openwrt/package/boot/uboot-envtools/files/
H A Duboot-envtools.sh8 local offset=$2
15 set ubootenv.@ubootenv[-1].offset='$offset'
25 local offset
30 config_get offset "$1" offset
34 echo "$dev $offset $envsize $secsize $numsec" >>/etc/fw_env.config
/openwrt/target/linux/generic/files/drivers/mtd/mtdsplit/
H A Dmtdsplit_trx.c30 __le32 offset[4]; member in struct:trx_header
34 read_trx_header(struct mtd_info *mtd, size_t offset, argument
42 ret = mtd_read(mtd, offset, header_len, &retlen,
65 size_t offset; local
78 for (offset = 0; offset < master->size; offset += master->erasesize) {
81 ret = read_trx_header(master, offset, &hdr);
86 pr_debug("no valid trx header found in \"%s\" at offset %llx\n",
87 master->name, (unsigned long long) offset);
[all...]
H A Dmtdsplit.c34 size_t offset,
41 err = mtd_read(master, offset, sizeof(sb), &retlen, (void *)&sb);
59 if (offset + retlen > master->size) {
70 static ssize_t mtd_next_eb(struct mtd_info *mtd, size_t offset) argument
72 return mtd_rounddown_to_eb(offset, mtd) + mtd->erasesize;
75 int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset, argument
82 ret = mtd_read(mtd, offset, sizeof(magic), &retlen,
114 size_t offset; local
117 for (offset = from; offset < limi
33 mtd_get_squashfs_len(struct mtd_info *master, size_t offset, size_t *squashfs_len) argument
[all...]
H A Dmtdsplit.h31 size_t offset,
34 int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset,
45 size_t offset,
51 static inline int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset, argument
44 mtd_get_squashfs_len(struct mtd_info *master, size_t offset, size_t *squashfs_len) argument
H A Dmtdsplit_fit.c31 uint32_t off_dt_struct; /* offset to structure */
32 uint32_t off_dt_strings; /* offset to strings */
33 uint32_t off_mem_rsvmap; /* offset to memory reserve map */
53 size_t offset; local
62 for(offset = 0; offset < mtd->size; offset += mtd->erasesize) {
65 pr_err("read error in \"%s\" at offset 0x%llx\n",
66 mtd->name, (unsigned long long) offset);
77 pr_debug("no valid FIT image found in \"%s\" at offset
[all...]
/openwrt/target/linux/adm5120/files-3.18/arch/mips/adm5120/common/
H A Dgpio.c99 int __adm5120_gpio0_get_value(unsigned offset) argument
107 if ((t & PIN_IM(offset)) != 0)
108 t &= PIN_IV(offset);
110 t &= PIN_OV(offset);
116 void __adm5120_gpio0_set_value(unsigned offset, int value) argument
125 t &= ~(PIN_OV(offset));
127 t |= PIN_OV(offset);
133 static int adm5120_gpio0_get_value(struct gpio_chip *chip, unsigned offset) argument
135 return __adm5120_gpio0_get_value(offset);
139 unsigned offset, in
138 adm5120_gpio0_set_value(struct gpio_chip *chip, unsigned offset, int value) argument
144 adm5120_gpio0_direction_input(struct gpio_chip *chip, unsigned offset) argument
160 adm5120_gpio0_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument
190 __adm5120_gpio1_get_value(unsigned offset) argument
209 __adm5120_gpio1_set_value(unsigned offset, int value) argument
245 adm5120_gpio1_get_value(struct gpio_chip *chip, unsigned offset) argument
250 adm5120_gpio1_set_value(struct gpio_chip *chip, unsigned offset, int value) argument
256 adm5120_gpio1_direction_input(struct gpio_chip *chip, unsigned offset) argument
270 adm5120_gpio1_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument
[all...]
/openwrt/target/linux/adm8668/files-3.18/arch/mips/adm8668/
H A Dgpio.c27 unsigned offset, int value)
35 mask &= ~(1 << offset);
36 mask |= (1 << (offset + GPIO_OE_OFS));
38 mask |= (1 << (offset + GPIO_OUT_OFS));
40 mask &= ~(1 << (offset + GPIO_OUT_OFS));
47 unsigned offset)
54 mask &= ~(((1 << (offset + GPIO_OE_OFS)) | (1 << (offset + GPIO_OUT_OFS))));
55 mask |= (1 << offset);
62 unsigned offset, in
26 adm8668_gpio_dir_out(struct gpio_chip *chip, unsigned offset, int value) argument
46 adm8668_gpio_dir_in(struct gpio_chip *chip, unsigned offset) argument
61 adm8668_gpio_set(struct gpio_chip *chip, unsigned offset, int value) argument
76 adm8668_gpio_get(struct gpio_chip *chip, unsigned offset) argument
[all...]
/openwrt/package/system/mtd/src/
H A Dmtd.h18 extern int mtd_block_is_bad(int fd, int offset);
19 extern int mtd_erase_block(int fd, int offset);
20 extern int mtd_write_buffer(int fd, const char *buf, int offset, int length);
28 extern int mtd_fixtrx(const char *mtd, size_t offset, size_t data_size) __attribute__ ((weak));
29 extern int mtd_fixseama(const char *mtd, size_t offset, size_t data_size) __attribute__ ((weak));
H A Dfis.h6 uint32_t offset; member in struct:fis_part
/openwrt/scripts/
H A Dsrecimage.pl10 my ($input, $output, $offset) = @ARGV;
13 !defined($offset) || $offset !~ /^(0x)?[a-fA-F0-9]+$/) {
45 my $off = hex($offset);
54 print OUT srec(7, hex($offset), "", 0);
/openwrt/target/linux/adm5120/files-3.18/arch/mips/adm5120/cellvision/
H A Dcellvision.c25 .offset = 0,
30 .offset = MTDPART_OFS_APPEND,
34 .offset = MTDPART_OFS_APPEND,
38 .offset = MTDPART_OFS_APPEND,
42 .offset = MTDPART_OFS_APPEND,
50 .offset = 0,
55 .offset = MTDPART_OFS_APPEND,
59 .offset = MTDPART_OFS_APPEND,
63 .offset = MTDPART_OFS_APPEND,
/openwrt/target/linux/ar71xx/files/arch/mips/ath79/
H A Dmach-wnr2000.c38 .offset = 0,
43 .offset = 0x040000,
47 .offset = 0x050000,
51 .offset = 0x290000,
55 .offset = 0x2a0000,
59 .offset = 0x3c0000,
63 .offset = 0x3e0000,
67 .offset = 0x3f0000,
H A Dmach-wrt400n.c42 .offset = 0,
47 .offset = 0x030000,
52 .offset = 0x040000,
56 .offset = 0x180000,
60 .offset = 0x7b0000,
65 .offset = 0x7c0000,
70 .offset = 0x7d0000,
75 .offset = 0x7f0000,
80 .offset = 0x040000,
/openwrt/target/linux/adm5120/files-3.18/arch/mips/adm5120/zyxel/
H A Dp-33x.c20 .offset = 0,
25 .offset = MTDPART_OFS_APPEND,
30 .offset = MTDPART_OFS_APPEND,
34 .offset = MTDPART_OFS_APPEND,
38 .offset = MTDPART_OFS_APPEND,
42 .offset = 32*1024,
/openwrt/target/linux/adm5120/files-3.18/drivers/mtd/
H A Dtrxsplit.c51 static int trxsplit_checktrx(struct mtd_info *mtd, unsigned long offset) argument
56 err = mtd_read(mtd, offset, sizeof(trx_hdr), &retlen, (void *)&trx_hdr);
79 if (trx_hdr.len > mtd->size - offset)
92 unsigned long offset; local
98 for (offset = 0; offset < mtd->size; offset += TRX_ALIGN) {
99 err = trxsplit_checktrx(mtd, offset);
107 printk(KERN_INFO PFX "TRX header found at 0x%lX\n", offset);
110 trx_offset = offset;
[all...]
/openwrt/target/linux/lantiq/base-files/etc/hotplug.d/firmware/
H A D10-rt2x00-eeprom11 local offset=$2
23 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=2 skip=$offset count=$count conv=swab || \
26 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count || \
/openwrt/target/linux/ar71xx/files/drivers/mtd/
H A Dtplinkpart.c42 uint32_t kernel_ofs; /* kernel data offset */
44 uint32_t rootfs_ofs; /* rootfs data offset */
46 uint32_t boot_ofs; /* bootloader data offset */
52 tplink_read_header(struct mtd_info *mtd, size_t offset) argument
65 ret = mtd_read(mtd, offset, header_len, &retlen,
90 static int tplink_check_rootfs_magic(struct mtd_info *mtd, size_t offset) argument
96 ret = mtd_read(mtd, offset, sizeof(magic), &retlen,
114 size_t offset)
131 header = tplink_read_header(master, offset);
138 squashfs_offset = offset
111 tplink_parse_partitions_offset(struct mtd_info *master, struct mtd_partition **pparts, struct mtd_part_parser_data *data, size_t offset) argument
[all...]
/openwrt/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/
H A D11-ath10k-caldata10 local offset=$2
13 dd if=$source of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
19 local offset=$2
27 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
/openwrt/target/linux/mpc85xx/base-files/etc/hotplug.d/firmware/
H A D10-ath9k-eeprom12 local offset=$2
23 dd if=$mtd bs=$offset skip=1 count=1 2>/dev/null | dd of=$FW_FILE bs=$count count=1 2>/dev/null || \
29 local offset=$1
36 mac=$(macaddr_add $mac $offset)
/openwrt/package/utils/fbtest/src/
H A Dfbtest.c86 .red = { .offset = 0, .length=8, .msb_right =0 },
87 .green = { .offset = 0, .length=8, .msb_right =0 },
88 .blue = { .offset = 0, .length=8, .msb_right =0 },
89 .transp= { .offset = 0, .length=8, .msb_right =0 }
93 .red = { .offset = 0, .length=5, .msb_right =0 },
94 .green = { .offset = 0, .length=5, .msb_right =0 },
95 .blue = { .offset = 0, .length=5, .msb_right =0 },
96 .transp= { .offset = 0, .length=1, .msb_right =0 }
100 .red = { .offset = 0, .length=8, .msb_right =0 },
101 .green = { .offset
249 int offset = 0; local
[all...]
/openwrt/target/linux/ar7/files/drivers/mtd/
H A Dac49xpart.c58 part->offset = partstart & AC49X_FLASH_ADDRMASK;
72 mtd_read(master, part.offset, sizeof(magic), &len,
145 unsigned int offset, size, type; local
154 offset = parsepart.offset;
169 parsepart.offset += ROOTFS_MIN_OFFSET &
174 unsigned int size, offset; local
176 offset = parsepart.offset;
187 (unsigned int)parsepart.offset);
[all...]
/openwrt/target/linux/adm8668/files-3.18/drivers/mtd/maps/
H A Dadm8668.c163 { name: "linux", offset: 0x40000, size: WINDOW_SIZE-0x40000, },
164 { name: "rootfs", offset: 0xe0000, size: 0x140000, },
165 { name: "uboot_env", offset: 0x20000, size: 0x20000, },
188 for (off = adm8668_parts[PART_LINUX].offset; off < size; off += blocksize) {
204 adm8668_parts[PART_ROOTFS].offset = off;
206 adm8668_parts[PART_ROOTFS].offset;
210 linux_len = adm8668_parts[PART_LINUX+1].offset -
211 adm8668_parts[PART_LINUX].offset;
214 adm8668_parts[PART_LINUX].offset;
228 if (mtd->_read(mtd, adm8668_parts[PART_LINUX].offset, sizeo
238 unsigned int offset; local
[all...]
/openwrt/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/
H A D10-rt2x00-eeprom11 local offset=$2
21 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count || \

Completed in 100 milliseconds

1234567