| /components/drivers/ipc/ |
| A D | ringbuffer.c | 79 if (size < length) in rt_ringbuffer_put() 80 length = size; in rt_ringbuffer_put() 89 return length; in rt_ringbuffer_put() 103 return length; in rt_ringbuffer_put() 143 return length; in rt_ringbuffer_put_force() 157 if (length > space_length) in rt_ringbuffer_put_force() 164 return length; in rt_ringbuffer_put_force() 193 if (size < length) in rt_ringbuffer_get() 194 length = size; in rt_ringbuffer_get() 203 return length; in rt_ringbuffer_get() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/apps/snmp/ |
| A D | snmp_pbuf_stream.c | 47 …_pbuf_stream_init(struct snmp_pbuf_stream* pbuf_stream, struct pbuf* p, u16_t offset, u16_t length) in snmp_pbuf_stream_init() argument 50 pbuf_stream->length = length; in snmp_pbuf_stream_init() 59 if (pbuf_stream->length == 0) { in snmp_pbuf_stream_read() 68 pbuf_stream->length--; in snmp_pbuf_stream_read() 82 if (pbuf_stream->length < buf_len) { in snmp_pbuf_stream_writebuf() 91 pbuf_stream->length -= buf_len; in snmp_pbuf_stream_writebuf() 103 if ((len > pbuf_stream->length) || (len > target_pbuf_stream->length)) { in snmp_pbuf_stream_writeto() 108 len = LWIP_MIN(pbuf_stream->length, target_pbuf_stream->length); in snmp_pbuf_stream_writeto() 128 pbuf_stream->length -= chunk_len; in snmp_pbuf_stream_writeto() 138 if ((offset < 0) || (offset > pbuf_stream->length)) { in snmp_pbuf_stream_seek() [all …]
|
| A D | snmpv3_mbedtls.c | 52 snmpv3_auth(struct snmp_pbuf_stream* stream, u16_t length, in snmpv3_auth() argument 60 snmp_pbuf_stream_init(&read_stream, stream->pbuf, stream->offset, stream->length); in snmpv3_auth() 81 for (i = 0; i < length; i++) { in snmpv3_auth() 108 snmpv3_crypt(struct snmp_pbuf_stream* stream, u16_t length, in snmpv3_crypt() argument 118 snmp_pbuf_stream_init(&read_stream, stream->pbuf, stream->offset, stream->length); in snmpv3_crypt() 119 snmp_pbuf_stream_init(&write_stream, stream->pbuf, stream->offset, stream->length); in snmpv3_crypt() 128 if ((length & 0x07) != 0) { in snmpv3_crypt() 151 for (i = 0; i < length; i += 8) { in snmpv3_crypt() 200 for (i = 0; i < length; i++) { in snmpv3_crypt()
|
| /components/net/lwip/lwip-2.1.2/src/apps/snmp/ |
| A D | snmp_pbuf_stream.c | 47 …_pbuf_stream_init(struct snmp_pbuf_stream *pbuf_stream, struct pbuf *p, u16_t offset, u16_t length) in snmp_pbuf_stream_init() argument 50 pbuf_stream->length = length; in snmp_pbuf_stream_init() 59 if (pbuf_stream->length == 0) { in snmp_pbuf_stream_read() 68 pbuf_stream->length--; in snmp_pbuf_stream_read() 82 if (pbuf_stream->length < buf_len) { in snmp_pbuf_stream_writebuf() 91 pbuf_stream->length -= buf_len; in snmp_pbuf_stream_writebuf() 103 if ((len > pbuf_stream->length) || (len > target_pbuf_stream->length)) { in snmp_pbuf_stream_writeto() 108 len = LWIP_MIN(pbuf_stream->length, target_pbuf_stream->length); in snmp_pbuf_stream_writeto() 128 pbuf_stream->length -= chunk_len; in snmp_pbuf_stream_writeto() 138 if ((offset < 0) || (offset > pbuf_stream->length)) { in snmp_pbuf_stream_seek() [all …]
|
| A D | snmpv3_mbedtls.c | 52 snmpv3_auth(struct snmp_pbuf_stream *stream, u16_t length, in snmpv3_auth() argument 60 snmp_pbuf_stream_init(&read_stream, stream->pbuf, stream->offset, stream->length); in snmpv3_auth() 81 for (i = 0; i < length; i++) { in snmpv3_auth() 108 snmpv3_crypt(struct snmp_pbuf_stream *stream, u16_t length, in snmpv3_crypt() argument 118 snmp_pbuf_stream_init(&read_stream, stream->pbuf, stream->offset, stream->length); in snmpv3_crypt() 119 snmp_pbuf_stream_init(&write_stream, stream->pbuf, stream->offset, stream->length); in snmpv3_crypt() 128 if ((length & 0x07) != 0) { in snmpv3_crypt() 151 for (i = 0; i < length; i += 8) { in snmpv3_crypt() 207 for (i = 0; i < length; i++) { in snmpv3_crypt()
|
| /components/finsh/ |
| A D | msh.c | 162 while (position < length) in msh_split() 183 if (position >= length) break; in msh_split() 258 int length, cmd_length = 0; in msh_exec_module() local 267 length = cmd_length + 32; in msh_exec_module() 548 length--; in msh_exec() 551 if (length == 0) in msh_exec() 697 rt_size_t length, min_length; in msh_auto_complete_path() local 742 length = index - path; in msh_auto_complete_path() 777 int length, min_length; in msh_auto_complete() local 923 if (length < min_length) in msh_opt_complete() [all …]
|
| /components/drivers/spi/ |
| A D | dev_spi_bit_ops.c | 60 RT_ASSERT(length != 0); in spi_xfer_4line_data8() 65 rt_uint32_t size = length; in spi_xfer_4line_data8() 123 return length; in spi_xfer_4line_data8() 135 RT_ASSERT(length != 0); in spi_xfer_4line_data16() 198 return length; in spi_xfer_4line_data16() 210 RT_ASSERT(length != 0); in spi_xfer_3line_data8() 311 return length; in spi_xfer_3line_data8() 323 RT_ASSERT(length != 0); in spi_xfer_3line_data16() 424 return length; in spi_xfer_3line_data16() 474 rt_ssize_t length = 0; in spi_bit_xfer() local [all …]
|
| A D | dev_qspi_core.c | 195 message.parent.length = recv_length; in rt_qspi_send_then_recv() 217 rt_ssize_t rt_qspi_send(struct rt_qspi_device *device, const void *send_buf, rt_size_t length) in rt_qspi_send() argument 220 RT_ASSERT(length != 0); in rt_qspi_send() 232 if (length > 1) in rt_qspi_send() 234 if (device->config.medium_size > 0x1000000 && length >= 5) in rt_qspi_send() 242 else if (length >= 4) in rt_qspi_send() 271 if (length - count > 0) in rt_qspi_send() 283 message.parent.length = length - count; in rt_qspi_send() 297 result = length; in rt_qspi_send()
|
| /components/net/lwip/lwip-2.1.2/test/unit/mdns/ |
| A D | test_mdns.c | 601 u16_t length; in START_TEST() local 636 u16_t length; in START_TEST() local 673 u16_t length; in START_TEST() local 708 u16_t length; in START_TEST() local 727 fail_unless(length == domain.length); in START_TEST() 742 u16_t length; in START_TEST() local 777 u16_t length; in START_TEST() local 814 u16_t length; in START_TEST() local 833 fail_unless(length == domain.length); in START_TEST() 854 u16_t length; in START_TEST() local [all …]
|
| /components/net/lwip/lwip-2.0.3/test/unit/mdns/ |
| A D | test_mdns.c | 601 u16_t length; in START_TEST() local 636 u16_t length; in START_TEST() local 673 u16_t length; in START_TEST() local 708 u16_t length; in START_TEST() local 727 fail_unless(length == domain.length); in START_TEST() 742 u16_t length; in START_TEST() local 777 u16_t length; in START_TEST() local 814 u16_t length; in START_TEST() local 833 fail_unless(length == domain.length); in START_TEST() 854 u16_t length; in START_TEST() local [all …]
|
| /components/drivers/include/drivers/ |
| A D | mtd_nor.h | 35 …(*read) (struct rt_mtd_nor_device* device, rt_off_t offset, rt_uint8_t* data, rt_size_t length); 36 …e) (struct rt_mtd_nor_device* device, rt_off_t offset, const rt_uint8_t* data, rt_size_t length); 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/legacy/fdt/libfdt/ |
| A D | fdt_ro.c | 568 int length, count = 0; in fdt_stringlist_count() local 572 return length; in fdt_stringlist_count() 574 end = list + length; in fdt_stringlist_count() 583 list += length; in fdt_stringlist_count() 598 return length; in fdt_stringlist_search() 601 end = list + length; in fdt_stringlist_search() 610 if (length == len && memcmp(list, string, length) == 0) in fdt_stringlist_search() 613 list += length; in fdt_stringlist_search() 625 int length; in fdt_stringlist_get() local 635 end = list + length; in fdt_stringlist_get() [all …]
|
| /components/libc/posix/io/mman/ |
| A D | mman.c | 34 void *mmap(void *addr, size_t length, int prot, int flags, in mmap() argument 43 else mem = (uint8_t *)malloc(length); in mmap() 53 read_bytes = read(fd, mem, length); in mmap() 54 if (read_bytes != length) in mmap() 79 int munmap(void *addr, size_t length) in munmap() argument
|
| /components/drivers/ofw/libfdt/ |
| A D | fdt_ro.c | 726 int length, count = 0; in fdt_stringlist_count() local 730 return length; in fdt_stringlist_count() 732 end = list + length; in fdt_stringlist_count() 741 list += length; in fdt_stringlist_count() 756 return length; in fdt_stringlist_search() 759 end = list + length; in fdt_stringlist_search() 768 if (length == len && memcmp(list, string, length) == 0) in fdt_stringlist_search() 771 list += length; in fdt_stringlist_search() 783 int length; in fdt_stringlist_get() local 793 end = list + length; in fdt_stringlist_get() [all …]
|
| /components/mm/ |
| A D | mm_aspace.c | 59 aspace->size = length; in rt_aspace_init() 86 RT_ASSERT(length <= 0 - (rt_size_t)start); in rt_aspace_create() 97 start, length, pgtbl, err); in rt_aspace_create() 643 #define _IS_OVERFLOW(start, length) ((length) > (0ul - (uintptr_t)(start))) argument 653 : length > limit_size; in _not_in_range() 731 varea->size = length; in rt_aspace_map_static() 1019 unmap_range.end = addr + length - 1; in _unmap_range_locked() 1061 length = RT_ALIGN(length, ARCH_PAGE_SIZE); in rt_aspace_unmap_range() 1377 if (!varea || !vaddr || !paddr || !length || in rt_varea_map_range() 1396 length, in rt_varea_map_range() [all …]
|
| A D | mm_aspace.h | 150 rt_aspace_t rt_aspace_create(void *start, rt_size_t length, void *pgtbl); 152 rt_err_t rt_aspace_init(rt_aspace_t aspace, void *start, rt_size_t length, void *pgtbl); 174 int rt_aspace_map(rt_aspace_t aspace, void **addr, rt_size_t length, rt_size_t attr, 179 rt_size_t length, rt_size_t attr, mm_flag_t flags, 202 int rt_aspace_map_private(rt_aspace_t aspace, void **addr, rt_size_t length, 223 int rt_aspace_unmap_range(rt_aspace_t aspace, void *addr, size_t length); 287 int rt_varea_map_range(rt_varea_t varea, void *vaddr, void *paddr, rt_size_t length); 300 int rt_varea_unmap_range(rt_varea_t varea, void *vaddr, rt_size_t length); 324 int rt_kmem_map_phy(void *va, void *pa, rt_size_t length, rt_size_t attr);
|
| /components/drivers/mtd/ |
| A D | mtd_nor.c | 100 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/drivers/usb/cherryusb/demo/ |
| A D | msc_ram_template.c | 208 …usbd_msc_sector_read(uint8_t busid, uint8_t lun, uint32_t sector, uint8_t *buffer, uint32_t length) in usbd_msc_sector_read() argument 211 memcpy(buffer, mass_block[sector].BlockSpace, length); in usbd_msc_sector_read() 215 …sbd_msc_sector_write(uint8_t busid, uint8_t lun, uint32_t sector, uint8_t *buffer, uint32_t length) in usbd_msc_sector_write() argument 218 memcpy(mass_block[sector].BlockSpace, buffer, length); in usbd_msc_sector_write() 244 …usbd_msc_sector_read(uint8_t busid, uint8_t lun, uint32_t sector, uint8_t *buffer, uint32_t length) in usbd_msc_sector_read() argument 246 rt_device_read(blk_dev, sector, buffer, length / geometry.bytes_per_sector); in usbd_msc_sector_read() 250 …sbd_msc_sector_write(uint8_t busid, uint8_t lun, uint32_t sector, uint8_t *buffer, uint32_t length) in usbd_msc_sector_write() argument 252 rt_device_write(blk_dev, sector, buffer, length / geometry.bytes_per_sector); in usbd_msc_sector_write()
|
| /components/drivers/hwcrypto/ |
| A D | hw_hash.h | 25 … const rt_uint8_t *in, rt_size_t length); /**< Processing a packet of data */ 27 rt_uint8_t *out, rt_size_t length); /**< Get the final hash value */ 66 rt_err_t rt_hwcrypto_hash_finish(struct rt_hwcrypto_ctx *ctx, rt_uint8_t *output, rt_size_t length); 77 …_t rt_hwcrypto_hash_update(struct rt_hwcrypto_ctx *ctx, const rt_uint8_t *input, rt_size_t length);
|
| A D | hw_hash.c | 50 rt_err_t rt_hwcrypto_hash_finish(struct rt_hwcrypto_ctx *ctx, rt_uint8_t *output, rt_size_t length) in rt_hwcrypto_hash_finish() argument 54 … return ((struct hwcrypto_hash *)ctx)->ops->finish((struct hwcrypto_hash *)ctx, output, length); in rt_hwcrypto_hash_finish() 68 …r_t rt_hwcrypto_hash_update(struct rt_hwcrypto_ctx *ctx, const rt_uint8_t *input, rt_size_t length) in rt_hwcrypto_hash_update() argument 72 … return ((struct hwcrypto_hash *)ctx)->ops->update((struct hwcrypto_hash *)ctx, input, length); in rt_hwcrypto_hash_update()
|
| /components/drivers/serial/ |
| A D | dev_serial.c | 246 size = length; in _serial_poll_rx() 248 while (length) in _serial_poll_rx() 270 size = length; in _serial_poll_tx() 271 while (length) in _serial_poll_tx() 287 -- length; in _serial_poll_tx() 302 size = length; in _serial_int_rx() 311 while (length) in _serial_int_rx() 325 while (length) in _serial_int_rx() 368 size = length; in _serial_int_tx() 372 while (length) in _serial_int_tx() [all …]
|
| /components/drivers/ofw/ |
| A D | ofw.c | 374 rt_size_t length = rt_strlen(bootargs); in rt_ofw_bootargs_select() local 375 const char *bootargs_end = bootargs + length; in rt_ofw_bootargs_select() 415 for (int i = 0; i < length; ++i) in rt_ofw_bootargs_select() 421 if (i < length) in rt_ofw_bootargs_select() 536 if (prop->length > 0) in ofw_node_dump_dts() 538 int length = prop->length; in ofw_node_dump_dts() local 543 if (dts_test_string_list(value, length)) in ofw_node_dump_dts() 559 else if ((length % 4) == 0) in ofw_node_dump_dts() 566 length /= 4; in ofw_node_dump_dts() 568 for (int i = 0; i < length; ++i) in ofw_node_dump_dts() [all …]
|
| /components/libc/posix/libdl/ |
| A D | dlmodule.c | 70 while ((ptr - cmd) < length) in _rt_module_split_arg() 76 if ((ptr - cmd) >= length) break; in _rt_module_split_arg() 86 if ((ptr - cmd) >= length) break; in _rt_module_split_arg() 451 int fd = -1, length = 0; in dlmodule_load() local 461 length = lseek(fd, 0, SEEK_END); in dlmodule_load() 464 if (length == 0) goto __exit; in dlmodule_load() 469 if (read(fd, module_ptr, length) != length) in dlmodule_load() 609 int fd = -1, length = 0; in dlmodule_load_custom() local 627 length = lseek(fd, 0, SEEK_END); in dlmodule_load_custom() 630 if (length == 0) goto __exit; in dlmodule_load_custom() [all …]
|
| /components/dfs/dfs_v1/src/ |
| A D | dfs_file.c | 751 fd->vnode->size = length; in dfs_file_ftruncate() 790 int length; in ls() local 819 if (length > 0) in ls() 845 while (length > 0); in ls() 870 int length = 0; in cat() local 885 if (length > 0) in cat() 891 } while (length > 0); in cat() 939 int length; in copyfile() local 962 int length; in copydir() local 975 if (length > 0) in copydir() [all …]
|
| /components/drivers/include/ipc/ |
| A D | ringbuffer.h | 69 rt_size_t rt_ringbuffer_put(struct rt_ringbuffer *rb, const rt_uint8_t *ptr, rt_uint32_t length); 70 …ize_t rt_ringbuffer_put_force(struct rt_ringbuffer *rb, const rt_uint8_t *ptr, rt_uint32_t length); 73 rt_size_t rt_ringbuffer_get(struct rt_ringbuffer *rb, rt_uint8_t *ptr, rt_uint32_t length); 79 struct rt_ringbuffer* rt_ringbuffer_create(rt_uint32_t length);
|