Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 187) sorted by relevance

12345678

/components/legacy/fdt/libfdt/
A Dfdt.c85 if (((offset + len) < offset) in fdt_offset_ptr()
144 if ((offset < 0) || (offset % FDT_TAGSIZE) in _fdt_check_node_offset()
145 || (fdt_next_tag(fdt, offset, &offset) != FDT_BEGIN_NODE)) in _fdt_check_node_offset()
148 return offset; in _fdt_check_node_offset()
153 if ((offset < 0) || (offset % FDT_TAGSIZE) in _fdt_check_prop_offset()
154 || (fdt_next_tag(fdt, offset, &offset) != FDT_PROP)) in _fdt_check_prop_offset()
157 return offset; in _fdt_check_prop_offset()
197 return offset; in fdt_next_node()
204 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
208 return offset; in fdt_first_subnode()
[all …]
A Dfdt_ro.c95 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_get_max_phandle()
165 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
399 (offset >= 0) && (offset <= nodeoffset); in fdt_get_path()
400 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
431 if ((offset == -FDT_ERR_NOTFOUND) || (offset >= 0)) in fdt_get_path()
451 (offset >= 0) && (offset <= nodeoffset); in fdt_supernode_atdepth_offset()
452 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
467 if ((offset == -FDT_ERR_NOTFOUND) || (offset >= 0)) in fdt_supernode_atdepth_offset()
513 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_prop_value()
540 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_phandle()
[all …]
A Dfdt_sw.c73 int offset = fdt_size_dt_struct(fdt); in _fdt_grab_space() local
79 if ((offset + len < offset) || (offset + len > spaceleft)) in _fdt_grab_space()
143 int offset; in fdt_add_reservemap_entry() local
150 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry()
204 int struct_top, offset; in _fdt_find_add_string() local
211 offset = -strtabsize - len; in _fdt_find_add_string()
216 memcpy(strtab + offset, s, len); in _fdt_find_add_string()
218 return offset; in _fdt_find_add_string()
249 int offset, nextoffset; in fdt_finish() local
266 offset = 0; in fdt_finish()
[all …]
A Dlibfdt_internal.h65 int _fdt_check_node_offset(const void *fdt, int offset);
66 int _fdt_check_prop_offset(const void *fdt, int offset);
70 static inline const void *_fdt_offset_ptr(const void *fdt, int offset) in _fdt_offset_ptr() argument
72 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in _fdt_offset_ptr()
75 static inline void *_fdt_offset_ptr_w(void *fdt, int offset) in _fdt_offset_ptr_w() argument
77 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset); in _fdt_offset_ptr_w()
A Dfdt_wip.c116 int _fdt_node_end_offset(void *fdt, int offset) in _fdt_node_end_offset() argument
120 while ((offset >= 0) && (depth >= 0)) in _fdt_node_end_offset()
121 offset = fdt_next_node(fdt, offset, &depth); in _fdt_node_end_offset()
123 return offset; in _fdt_node_end_offset()
/components/drivers/ofw/libfdt/
A Dfdt_ro.c122 offset = fdt_next_node(fdt, offset, NULL); in fdt_find_max_phandle()
234 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
401 for (offset = fdt_first_property_offset(fdt, offset); in fdt_get_property_namelen_()
554 (offset >= 0) && (offset <= nodeoffset); in fdt_get_path()
555 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
586 if ((offset == -FDT_ERR_NOTFOUND) || (offset >= 0)) in fdt_get_path()
606 (offset >= 0) && (offset <= nodeoffset); in fdt_supernode_atdepth_offset()
607 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
671 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_prop_value()
698 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_phandle()
[all …]
A Dfdt.c145 if (offset < 0) in fdt_offset_ptr()
226 && ((offset < 0) || (offset % FDT_TAGSIZE))) in fdt_check_node_offset_()
229 if (fdt_next_tag(fdt, offset, &offset) != FDT_BEGIN_NODE) in fdt_check_node_offset_()
232 return offset; in fdt_check_node_offset_()
238 && ((offset < 0) || (offset % FDT_TAGSIZE))) in fdt_check_prop_offset_()
241 if (fdt_next_tag(fdt, offset, &offset) != FDT_PROP) in fdt_check_prop_offset_()
244 return offset; in fdt_check_prop_offset_()
284 return offset; in fdt_next_node()
291 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
295 return offset; in fdt_first_subnode()
[all …]
A Dfdt_sw.c102 if ((offset + len < offset) || (offset + len > spaceleft)) in fdt_grab_space_()
106 return fdt_offset_ptr_w_(fdt, offset); in fdt_grab_space_()
191 int offset; in fdt_add_reservemap_entry() local
195 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry()
255 unsigned int struct_top, offset; in fdt_add_string_() local
257 offset = strtabsize + len; in fdt_add_string_()
262 memcpy(strtab - offset, s, len); in fdt_add_string_()
264 return -offset; in fdt_add_string_()
343 int offset, nextoffset; in fdt_finish() local
360 offset = 0; in fdt_finish()
[all …]
A Dlibfdt_internal.h21 int fdt_check_node_offset_(const void *fdt, int offset);
22 int fdt_check_prop_offset_(const void *fdt, int offset);
26 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) in fdt_offset_ptr_() argument
28 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in fdt_offset_ptr_()
31 static inline void *fdt_offset_ptr_w_(void *fdt, int offset) in fdt_offset_ptr_w_() argument
33 return (void *)(uintptr_t)fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr_w_()
/components/net/lwip/lwip-2.0.3/src/apps/snmp/
A Dsnmp_pbuf_stream.c49 pbuf_stream->offset = offset; in snmp_pbuf_stream_init()
63 if (pbuf_copy_partial(pbuf_stream->pbuf, data, 1, pbuf_stream->offset) == 0) { in snmp_pbuf_stream_read()
67 pbuf_stream->offset++; in snmp_pbuf_stream_read()
90 pbuf_stream->offset += buf_len; in snmp_pbuf_stream_writebuf()
127 pbuf_stream->offset += chunk_len; in snmp_pbuf_stream_writeto()
136 snmp_pbuf_stream_seek(struct snmp_pbuf_stream* pbuf_stream, s32_t offset) in snmp_pbuf_stream_seek() argument
138 if ((offset < 0) || (offset > pbuf_stream->length)) { in snmp_pbuf_stream_seek()
143 pbuf_stream->offset += (u16_t)offset; in snmp_pbuf_stream_seek()
144 pbuf_stream->length -= (u16_t)offset; in snmp_pbuf_stream_seek()
150 snmp_pbuf_stream_seek_abs(struct snmp_pbuf_stream* pbuf_stream, u32_t offset) in snmp_pbuf_stream_seek_abs() argument
[all …]
/components/net/lwip/lwip-2.1.2/src/apps/snmp/
A Dsnmp_pbuf_stream.c49 pbuf_stream->offset = offset; in snmp_pbuf_stream_init()
63 if (pbuf_copy_partial(pbuf_stream->pbuf, data, 1, pbuf_stream->offset) == 0) { in snmp_pbuf_stream_read()
67 pbuf_stream->offset++; in snmp_pbuf_stream_read()
90 pbuf_stream->offset += buf_len; in snmp_pbuf_stream_writebuf()
127 pbuf_stream->offset += chunk_len; in snmp_pbuf_stream_writeto()
136 snmp_pbuf_stream_seek(struct snmp_pbuf_stream *pbuf_stream, s32_t offset) in snmp_pbuf_stream_seek() argument
138 if ((offset < 0) || (offset > pbuf_stream->length)) { in snmp_pbuf_stream_seek()
143 pbuf_stream->offset += (u16_t)offset; in snmp_pbuf_stream_seek()
144 pbuf_stream->length -= (u16_t)offset; in snmp_pbuf_stream_seek()
150 snmp_pbuf_stream_seek_abs(struct snmp_pbuf_stream *pbuf_stream, u32_t offset) in snmp_pbuf_stream_seek_abs() argument
[all …]
/components/net/lwip/lwip-2.1.2/test/unit/mdns/
A Dtest_mdns.c44 u16_t offset; in START_TEST() local
63 u16_t offset; in START_TEST() local
82 u16_t offset; in START_TEST() local
107 u16_t offset; in START_TEST() local
163 u16_t offset; in START_TEST() local
617 offset = 2; in START_TEST()
652 offset = 2; in START_TEST()
724 offset = 2; in START_TEST()
758 offset = 2; in START_TEST()
793 offset = 2; in START_TEST()
[all …]
/components/net/lwip/lwip-2.0.3/test/unit/mdns/
A Dtest_mdns.c44 u16_t offset; in START_TEST() local
63 u16_t offset; in START_TEST() local
82 u16_t offset; in START_TEST() local
107 u16_t offset; in START_TEST() local
163 u16_t offset; in START_TEST() local
617 offset = 2; in START_TEST()
652 offset = 2; in START_TEST()
724 offset = 2; in START_TEST()
758 offset = 2; in START_TEST()
793 offset = 2; in START_TEST()
[all …]
/components/libc/posix/libdl/arch/
A Darm.c23 Elf32_Sword addend, offset; in dlmodule_relocate() local
89 offset = (sign << 24) | in dlmodule_relocate()
94 if (offset & 0x01000000) in dlmodule_relocate()
95 offset -= 0x02000000; in dlmodule_relocate()
96 offset += sym_val - (Elf32_Addr)where; in dlmodule_relocate()
98 if (!(offset & 1) || in dlmodule_relocate()
99 offset <= (rt_int32_t)0xff000000 || in dlmodule_relocate()
100 offset >= (rt_int32_t)0x01000000) in dlmodule_relocate()
107 sign = (offset >> 24) & 1; in dlmodule_relocate()
108 j1 = sign ^ (~(offset >> 23) & 1); in dlmodule_relocate()
[all …]
/components/fal/samples/porting/
A Dfal_flash_sfud_port.c24 static int read(long offset, rt_uint8_t *buf, rt_size_t size);
25 static int write(long offset, const rt_uint8_t *buf, rt_size_t size);
26 static int erase(long offset, rt_size_t size);
63 static int read(long offset, rt_uint8_t *buf, rt_size_t size) in read() argument
67 sfud_read(sfud_dev, nor_flash0.addr + offset, size, buf); in read()
72 static int write(long offset, const rt_uint8_t *buf, rt_size_t size) in write() argument
76 if (sfud_write(sfud_dev, nor_flash0.addr + offset, size, buf) != SFUD_SUCCESS) in write()
84 static int erase(long offset, rt_size_t size) in erase() argument
88 if (sfud_erase(sfud_dev, nor_flash0.addr + offset, size) != SFUD_SUCCESS) in erase()
A Dfal_norflash_port.c21 static int read( long offset, uint8_t* buf, size_t size );
22 static int write( long offset, const uint8_t* buf, size_t size );
23 static int erase( long offset, size_t size );
47 static int read( long offset, uint8_t* buf, size_t size ) in read() argument
49 norflash_read( buf, offset + FLASH_START_ADDR, size ); in read()
71 static int write_sector( long offset, const uint8_t* buf, size_t size ) in write_sector() argument
73 uint32_t addr = FLASH_START_ADDR + offset; in write_sector()
106 static int write( long offset, const uint8_t* buf, size_t size ) in write() argument
108 uint32_t addr = FLASH_START_ADDR + offset; in write()
169 static int erase( long offset, size_t size ) in erase() argument
[all …]
A DREADME.md15 - `static int read(long offset, rt_uint8_t *buf, rt_size_t size)`:读取操作
19 |offset |读取数据的 Flash 偏移地址|
28 | offset | 写入数据的 Flash 偏移地址 |
33 - `static int erase(long offset, rt_size_t size)` :擦除操作
37 | offset | 擦除区域的 Flash 偏移地址 |
130 static int erase( long offset, size_t size )
133 uint32_t addr = FLASH_START_ADDR + offset;
154 static int read( long offset, uint8_t* buf, size_t size )
156 norflash_read( buf, offset + FLASH_START_ADDR, size );
166 uint32_t addr = FLASH_START_ADDR + offset;
[all …]
/components/drivers/include/drivers/
A Dmtd_nor.h35 …rt_ssize_t (*read) (struct rt_mtd_nor_device* device, rt_off_t offset, rt_uint8_t* data, rt_siz…
36 …rt_ssize_t (*write) (struct rt_mtd_nor_device* device, rt_off_t offset, const rt_uint8_t* data, …
38 rt_err_t (*erase_block)(struct rt_mtd_nor_device* device, rt_off_t offset, rt_size_t length);
44 rt_off_t offset, rt_uint8_t* data, rt_size_t length);
46 rt_off_t offset, const rt_uint8_t* data, rt_size_t length);
48 rt_off_t offset, rt_size_t length);
/components/drivers/mfd/
A Dmfd-syscon.c23 rt_err_t rt_syscon_read(struct rt_syscon *syscon, rt_off_t offset, rt_uint32_t *out_val) in rt_syscon_read() argument
25 if (offset < syscon->iomem_size) in rt_syscon_read()
29 *out_val = HWREG32(syscon->iomem_base + offset); in rt_syscon_read()
41 rt_err_t rt_syscon_write(struct rt_syscon *syscon, rt_off_t offset, rt_uint32_t val) in rt_syscon_write() argument
43 if (offset < syscon->iomem_size) in rt_syscon_write()
47 HWREG32(syscon->iomem_base + offset) = val; in rt_syscon_write()
59 rt_err_t rt_syscon_update_bits(struct rt_syscon *syscon, rt_off_t offset, rt_uint32_t mask, rt_uint… in rt_syscon_update_bits() argument
64 if (offset < syscon->iomem_size) in rt_syscon_update_bits()
66 rt_uint32_t old_val = HWREG32(syscon->iomem_base + offset); in rt_syscon_update_bits()
70 HWREG32(syscon->iomem_base + offset) = old_val | val; in rt_syscon_update_bits()
/components/drivers/pic/
A Dpic-gicv3.c151 offset = *gicv3_dist_espi_reg(offset); in gicv3_hwirq_convert_offset_index()
158 return offset; in gicv3_hwirq_convert_offset_index()
506 rt_uint32_t index, offset; in gicv3_irq_set_priority() local
528 rt_uint32_t offset, index; in gicv3_irq_set_affinity() local
549 rt_uint32_t index, offset; in gicv3_irq_set_triger_mode() local
627 rt_uint32_t offset = 0; in gicv3_irq_set_state() local
660 if (!err && offset) in gicv3_irq_set_state()
671 rt_uint32_t offset = 0; in gicv3_irq_get_state() local
676 offset = GICD_ISPENDR; in gicv3_irq_get_state()
679 offset = GICD_ISACTIVER; in gicv3_irq_get_state()
[all …]
/components/net/lwip/lwip-2.0.3/src/core/
A Dpbuf.c251 u16_t offset; in pbuf_alloc() local
275 offset = 0; in pbuf_alloc()
428 u16_t offset; in pbuf_alloced_custom() local
450 offset = 0; in pbuf_alloced_custom()
1033 if ((offset != 0) && (offset >= p->len)) { in pbuf_copy_partial()
1035 offset -= p->len; in pbuf_copy_partial()
1038 buf_copy_len = p->len - offset; in pbuf_copy_partial()
1047 offset = 0; in pbuf_copy_partial()
1301 int ret = pbuf_try_get_at(p, offset); in pbuf_get_at()
1364 u16_t start = offset; in pbuf_memcmp()
[all …]
/components/fal/src/
A Dfal_flash.c38 rt_size_t i, j, offset; in fal_flash_init() local
58 offset = 0; in fal_flash_init()
66 if(offset > device_table[i]->len) in fal_flash_init()
69 …AME_MAX, FAL_DEV_NAME_MAX, device_table[i]->name, device_table[i]->addr, offset, device_table[i]->… in fal_flash_init()
74 j, device_table[i]->addr + offset, blk_len, blk->size); in fal_flash_init()
75 offset += blk_len; in fal_flash_init()
/components/drivers/mtd/
A Dmtd_nor.c100 rt_off_t offset, rt_uint8_t* data, rt_size_t length) in rt_mtd_nor_read() argument
102 return device->ops->read(device, offset, data, length); in rt_mtd_nor_read()
106 rt_off_t offset, const rt_uint8_t* data, rt_size_t length) in rt_mtd_nor_write() argument
108 return device->ops->write(device, offset, data, length); in rt_mtd_nor_write()
112 rt_off_t offset, rt_size_t length) in rt_mtd_nor_erase_block() argument
114 return device->ops->erase_block(device, offset, length); in rt_mtd_nor_erase_block()
/components/net/lwip/lwip-1.4.1/src/core/
A Dpbuf.c210 u16_t offset; in pbuf_alloc() local
226 offset = PBUF_LINK_HLEN; in pbuf_alloc()
229 offset = 0; in pbuf_alloc()
370 u16_t offset; in pbuf_alloced_custom() local
385 offset = PBUF_LINK_HLEN; in pbuf_alloced_custom()
388 offset = 0; in pbuf_alloced_custom()
936 if ((offset != 0) && (offset >= p->len)) { in pbuf_copy_partial()
938 offset -= p->len; in pbuf_copy_partial()
949 offset = 0; in pbuf_copy_partial()
1079 u16_t copy_from = offset; in pbuf_get_at()
[all …]
/components/fal/inc/
A Dfal_def.h44 int (*read)(long offset, rt_uint8_t *buf, rt_size_t size);
45 int (*write)(long offset, const rt_uint8_t *buf, rt_size_t size);
46 int (*erase)(long offset, rt_size_t size);
70 long offset; member

Completed in 44 milliseconds

12345678