/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/include/lwip/ |
H A D | snmp_msg.h | 86 /* object identifier length (in s32_t) */ 93 /* object value length (in u8_t) */ 98 /* encoding varbind seq length length */ 100 /* encoding object identifier length length */ 102 /* encoding object value length length */ 104 /* encoding varbind seq length */ 106 /* encoding object identifier length */ 108 /* encoding object value length */ 118 /* encoding varbind-list seq length length */ 120 /* encoding varbind-list seq length */ [all …]
|
/nrf52832-nimble/rt-thread/components/drivers/src/ |
H A D | ringbuffer.c | 51 rt_uint16_t length) in rt_ringbuffer_put() argument 65 if (size < length) in rt_ringbuffer_put() 66 length = size; in rt_ringbuffer_put() 68 if (rb->buffer_size - rb->write_index > length) in rt_ringbuffer_put() 71 memcpy(&rb->buffer_ptr[rb->write_index], ptr, length); in rt_ringbuffer_put() 73 * length of data in current mirror */ in rt_ringbuffer_put() 74 rb->write_index += length; in rt_ringbuffer_put() 75 return length; in rt_ringbuffer_put() 83 length - (rb->buffer_size - rb->write_index)); in rt_ringbuffer_put() 87 rb->write_index = length - (rb->buffer_size - rb->write_index); in rt_ringbuffer_put() [all …]
|
/nrf52832-nimble/rt-thread/components/finsh/ |
H A D | msh.c | 92 static int msh_split(char *cmd, rt_size_t length, char *argv[FINSH_ARG_MAX]) in msh_split() argument 102 while (position < length) in msh_split() 105 while ((*ptr == ' ' || *ptr == '\t') && position < length) in msh_split() 122 if (position >= length) break; in msh_split() 131 while (*ptr != '"' && position < length) in msh_split() 142 if (position >= length) break; in msh_split() 151 while ((*ptr != ' ' && *ptr != '\t') && position < length) in msh_split() 155 if (position >= length) break; in msh_split() 192 int length, cmd_length = 0; in msh_exec_module() local 196 /* get the length of command0 */ in msh_exec_module() [all …]
|
H A D | msh_file.c | 64 int length, cmd_length = 0; in msh_exec_script() local 68 /* get the length of command0 */ in msh_exec_script() 72 /* get name length */ in msh_exec_script() 73 length = cmd_length + 32; in msh_exec_script() 76 pg_name = (char *) rt_malloc(length); in msh_exec_script() 91 rt_snprintf(pg_name, length - 1, "/bin/%.*s", cmd_length, cmd_line); in msh_exec_script() 101 int length; in msh_exec_script() local 108 length = msh_readline(fd, line_buf, RT_CONSOLEBUF_SIZE); in msh_exec_script() 109 if (length > 0) in msh_exec_script() 114 for (index = 0; index < length; index ++) in msh_exec_script() [all …]
|
H A D | finsh_heap.c | 18 uint32_t length; local 43 free_list->length = FINSH_HEAP_MAX - sizeof(struct finsh_block_header); in finsh_heap_init() 62 ((header != NULL) && (header->length <= size + sizeof(struct finsh_block_header))); in finsh_heap_allocate() 71 ((header != NULL) && (header->length < size + sizeof(struct finsh_block_header))); in finsh_heap_allocate() 222 next->length = header->length - sizeof(struct finsh_block_header) - size; in finsh_block_split() 223 header->length = size; in finsh_block_split() 251 ((uint8_t*)prev_node + prev_node->length + sizeof(struct finsh_block_header) in finsh_block_merge() 256 ((uint8_t*)header + header->length + sizeof(struct finsh_block_header) in finsh_block_merge() 260 prev_node->length += header->length + next_node->length + in finsh_block_merge() 267 prev_node->length += header->length + sizeof(struct finsh_block_header); in finsh_block_merge() [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/include/tinycrypt/ |
H A D | ccm_mode.h | 50 * TinyCrypt CCM implementation accepts associated data of any length 53 * Security: The mac length parameter is an important parameter to estimate the 61 * applications to use a mac length greater than 8. Besides, the 94 unsigned int mlen; /* mac length in bytes (parameter t in SP-800 38C) */ 108 * @param nlen -- nonce length in bytes 109 * @param mlen -- mac length in bytes (parameter t in SP-800 38C) 127 * @param olen IN -- output length in bytes 129 * @param alen IN -- associated data length in bytes 131 * @param plen IN -- payload length in bytes 146 * b = [FLAGS | nonce | length(mac length)], where: [all …]
|
/nrf52832-nimble/rt-thread/examples/kernel/ |
H A D | semaphore_buffer_worker.c | 45 static rt_bool_t rb_put(struct rb* rb, const rt_uint8_t *ptr, rt_uint16_t length) in rb_put() argument 56 if (size < length) return RT_FALSE; in rb_put() 61 memcpy(&rb->buffer_ptr[rb->write_index], ptr, length); in rb_put() 62 rb->write_index += length; in rb_put() 66 if (rb->buffer_size - rb->write_index > length) in rb_put() 69 memcpy(&rb->buffer_ptr[rb->write_index], ptr, length); in rb_put() 70 rb->write_index += length; in rb_put() 81 length - (rb->buffer_size - rb->write_index)); in rb_put() 82 rb->write_index = length - (rb->buffer_size - rb->write_index); in rb_put() 90 static rt_bool_t rb_get(struct rb* rb, rt_uint8_t *ptr, rt_uint16_t length) in rb_get() argument [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/apps/snmp/ |
H 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 …]
|
H A D | snmp_asn1.c | 75 /* write length */ in snmp_ans1_enc_tlv() 84 /* check for forced min length */ in snmp_ans1_enc_tlv() 87 /* unable to code requested length in requested number of bytes */ in snmp_ans1_enc_tlv() 99 data = 0x80 | length_bytes_required; /* extended length definition, 1 length byte follows */ in snmp_ans1_enc_tlv() 128 * @param raw_len raw data length 144 * @param octets_needed encoding length (from snmp_asn1_enc_u32t_cnt()) 177 * @param octets_needed encoding length (from snmp_asn1_enc_u32t_cnt()) 218 * @param octets_needed encoding length (from snmp_asn1_enc_s32t_cnt()) 244 * @param oid_len object identifier array length 289 * Returns octet count for length. [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/apps/snmp/ |
H 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 …]
|
H A D | snmp_asn1.c | 75 /* write length */ in snmp_ans1_enc_tlv() 84 /* check for forced min length */ in snmp_ans1_enc_tlv() 87 /* unable to code requested length in requested number of bytes */ in snmp_ans1_enc_tlv() 99 data = 0x80 | length_bytes_required; /* extended length definition, 1 length byte follows */ in snmp_ans1_enc_tlv() 128 * @param raw_len raw data length 144 * @param octets_needed encoding length (from snmp_asn1_enc_u32t_cnt()) 176 * @param octets_needed encoding length (from snmp_asn1_enc_s32t_cnt()) 202 * @param oid_len object identifier array length 247 * Returns octet count for length. 249 * @param length parameter length [all …]
|
/nrf52832-nimble/rt-thread/components/dfs/filesystems/jffs2/cyg/compress/src/ |
H A D | trees.c | 47 /* Bit length codes must not exceed MAX_BL_BITS bits */ 53 /* repeat previous bit length 3-6 times (2 bits of repeat count) */ 56 /* repeat a zero length 3-10 times (3 bits of repeat count) */ 59 /* repeat a zero length 11-138 times (7 bits of repeat count) */ 61 local const int extra_lbits[LENGTH_CODES] /* extra bits for each length code */ 67 local const int extra_blbits[BL_CODES]/* extra bits for each bit length code */ 72 /* The lengths of the bit length codes are sent in order of decreasing 73 * probability, to avoid transmitting the lengths for unused bit length codes. 109 /* length code for each normalized match length (0 == MIN_MATCH) */ 112 /* First normalized length for each code (0 = MIN_MATCH) */ [all …]
|
H A D | inflate.h | 25 EXLEN, /* i: waiting for extra length (gzip) */ 34 STORED, /* i: waiting for stored size (length and complement) */ 37 LENLENS, /* i: waiting for code length code lengths */ 38 CODELENS, /* i: waiting for length/lit and distance code lengths */ 39 LEN, /* i: waiting for length/lit code */ 40 LENEXT, /* i: waiting for length extra bits */ 46 LENGTH, /* i: waiting for 32-bit length (gzip) */ enumerator 73 CHECK -> LENGTH -> DONE 97 unsigned length; /* literal or length of data to copy */ member 102 code const FAR *lencode; /* starting table for length/literal codes */ [all …]
|
H A D | inftrees.c | 40 unsigned len; /* a code's length in bits */ 58 unsigned short count[MAXBITS+1]; /* number of codes of each length */ 59 unsigned short offs[MAXBITS+1]; /* offsets in table for each length */ 60 static const unsigned short lbase[31] = { /* Length codes 257..285 base */ 63 static const unsigned short lext[31] = { /* Length codes 257..285 extra */ 77 code lengths are lens[0..codes-1]. Each length corresponds to the 79 symbols by length from short to long, and retaining the symbol order 81 for the first code of the shortest length, and the codes are integer 82 increments for the same length, and zeros are appended as the length 90 1..MAXBITS is interpreted as that code length. zero means that that [all …]
|
H A D | deflate.h | 31 /* number of length codes, not counting the special END_BLOCK code */ 37 /* number of Literal or Length codes, including the END_BLOCK code */ 69 ush len; /* length of bit string */ 118 * performed with a length multiple of the block size. Also, it limits 153 uInt match_length; /* length of best match */ 161 /* Length of the best match at previous step. Matches not greater than this 167 * length. A higher limit improves compression ratio but degrades the 177 /* Insert new strings in the hash table only if the match length is not 178 * greater than this length. This saves time but degrades compression. 192 struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */ [all …]
|
/nrf52832-nimble/rt-thread/components/drivers/include/drivers/ |
H A D | mtd_nor.h | 35 …read) (struct rt_mtd_nor_device* device, rt_off_t offset, rt_uint8_t* data, rt_uint32_t length); 36 … (struct rt_mtd_nor_device* device, rt_off_t offset, const rt_uint8_t* data, rt_uint32_t length); 38 rt_err_t (*erase_block)(struct rt_mtd_nor_device* device, rt_off_t offset, rt_uint32_t length); 50 rt_off_t offset, rt_uint8_t* data, rt_uint32_t length) in rt_mtd_nor_read() argument 52 return device->ops->read(device, offset, data, length); in rt_mtd_nor_read() 57 rt_off_t offset, const rt_uint8_t* data, rt_uint32_t length) in rt_mtd_nor_write() argument 59 return device->ops->write(device, offset, data, length); in rt_mtd_nor_write() 62 …t_err_t rt_mtd_nor_erase_block(struct rt_mtd_nor_device* device, rt_off_t offset, rt_size_t length) in rt_mtd_nor_erase_block() argument 64 return device->ops->erase_block(device, offset, length); in rt_mtd_nor_erase_block()
|
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/core/snmp/ |
H A D | asn1_enc.c | 44 * Returns octet count for length. 46 * @param length 50 snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed) in snmp_asn1_enc_length_cnt() argument 52 if (length < 0x80U) in snmp_asn1_enc_length_cnt() 56 else if (length < 0x100U) in snmp_asn1_enc_length_cnt() 74 * of 0xFFFFFFFF is preceded with 0x00 and the length is 5 octets!! 137 * @param ident_len object identifier array length 205 * Encodes host order length field into a pbuf chained ASN1 msg. 207 * @param p points to output pbuf to encode length into 209 * @param length is the host order length to be encoded [all …]
|
H A D | asn1_dec.c | 76 * Decodes length field from incoming pbuf chain into host length. 78 * @param p points to a pbuf holding an ASN1 coded length 79 * @param ofs points to the offset within the pbuf chain of the ASN1 coded length 80 * @param octets_used returns number of octets used by the length code 81 * @param length return host order length, upto 64k 85 snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length) in snmp_asn1_dec_length() argument 102 /* primitive definite length format */ in snmp_asn1_dec_length() 104 *length = *msg_ptr; in snmp_asn1_dec_length() 109 /* constructed indefinite length format, termination with two zero octets */ in snmp_asn1_dec_length() 113 *length = 0; in snmp_asn1_dec_length() [all …]
|
/nrf52832-nimble/nordic/nrfx/templates/ |
H A D | nrfx_log.h | 91 * @param[in] length Length of the memory region in bytes. 93 #define NRFX_LOG_HEXDUMP_ERROR(p_memory, length) argument 99 * @param[in] length Length of the memory region in bytes. 101 #define NRFX_LOG_HEXDUMP_WARNING(p_memory, length) argument 107 * @param[in] length Length of the memory region in bytes. 109 #define NRFX_LOG_HEXDUMP_INFO(p_memory, length) argument 115 * @param[in] length Length of the memory region in bytes. 117 #define NRFX_LOG_HEXDUMP_DEBUG(p_memory, length) argument
|
/nrf52832-nimble/rt-thread/components/drivers/spi/ |
H A D | spi_flash_w25qxx_mtd.c | 112 …25qxx_read(struct rt_mtd_nor_device *device, rt_off_t offset, rt_uint8_t *buffer, rt_size_t length) in w25qxx_read() argument 117 if((offset + length) > device->block_end * FLASH_BLOCK_SIZE) in w25qxx_read() 132 buffer, length); in w25qxx_read() 135 return length; in w25qxx_read() 138 …rite(struct rt_mtd_nor_device *device, rt_off_t offset, const rt_uint8_t *buffer, rt_size_t length) in w25qxx_write() argument 145 if((offset + length) > device->block_end * FLASH_BLOCK_SIZE) in w25qxx_write() 157 while(write_total < length) in w25qxx_write() 168 //address % FLASH_PAGE_SIZE + length in w25qxx_write() 169 if(((offset & (FLASH_PAGE_SIZE - 1)) + (length - write_total)) > FLASH_PAGE_SIZE) in w25qxx_write() 175 write_size = (length - write_total); in w25qxx_write() [all …]
|
/nrf52832-nimble/rt-thread/components/drivers/serial/ |
H A D | serial.c | 208 rt_inline int _serial_poll_rx(struct rt_serial_device *serial, rt_uint8_t *data, int length) in _serial_poll_rx() argument 214 size = length; in _serial_poll_rx() 216 while (length) in _serial_poll_rx() 222 data ++; length --; in _serial_poll_rx() 227 return size - length; in _serial_poll_rx() 230 rt_inline int _serial_poll_tx(struct rt_serial_device *serial, const rt_uint8_t *data, int length) in _serial_poll_tx() argument 235 size = length; in _serial_poll_tx() 236 while (length) in _serial_poll_tx() 250 -- length; in _serial_poll_tx() 253 return size - length; in _serial_poll_tx() [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/test/unit/mdns/ |
H A D | test_mdns.c | 53 fail_unless(domain.length == sizeof(data)); in START_TEST() 72 fail_unless(domain.length == sizeof(data)); in START_TEST() 197 fail_unless(domain.length == sizeof(fullname)); in START_TEST() 226 fail_unless(domain.length == sizeof(fullname)); in START_TEST() 260 fail_unless(domain.length == sizeof(fullname)); in START_TEST() 286 fail_unless(domain.length == sizeof(fullname)); in START_TEST() 384 fail_unless(domain.length == sizeof(data)); in START_TEST() 414 fail_unless(domain.length == 33); in START_TEST() 417 fail_unless(domain.length == 66); in START_TEST() 420 fail_unless(domain.length == 99); in START_TEST() [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/test/unit/mdns/ |
H A D | test_mdns.c | 53 fail_unless(domain.length == sizeof(data)); in START_TEST() 72 fail_unless(domain.length == sizeof(data)); in START_TEST() 197 fail_unless(domain.length == sizeof(fullname)); in START_TEST() 226 fail_unless(domain.length == sizeof(fullname)); in START_TEST() 260 fail_unless(domain.length == sizeof(fullname)); in START_TEST() 286 fail_unless(domain.length == sizeof(fullname)); in START_TEST() 384 fail_unless(domain.length == sizeof(data)); in START_TEST() 414 fail_unless(domain.length == 33); in START_TEST() 417 fail_unless(domain.length == 66); in START_TEST() 420 fail_unless(domain.length == 99); in START_TEST() [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/core/ |
H A D | pbuf.c | 183 * @param length size of the pbuf's payload 207 pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type) in pbuf_alloc() argument 211 s32_t rem_len; /* remaining length */ in pbuf_alloc() 212 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length)); in pbuf_alloc() 252 /* the total length of the pbuf chain is the requested size */ in pbuf_alloc() 253 p->tot_len = length; in pbuf_alloc() 254 /* set the length of the first pbuf in the chain */ in pbuf_alloc() 255 p->len = LWIP_MIN(length, PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)); in pbuf_alloc() 268 /* remaining length to be allocated */ in pbuf_alloc() 269 rem_len = length - p->len; in pbuf_alloc() [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/core/ |
H A D | pbuf.c | 224 * @param length size of the pbuf's payload 248 pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type) in pbuf_alloc() argument 252 s32_t rem_len; /* remaining length */ in pbuf_alloc() 253 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length)); in pbuf_alloc() 298 /* the total length of the pbuf chain is the requested size */ in pbuf_alloc() 299 p->tot_len = length; in pbuf_alloc() 300 /* set the length of the first pbuf in the chain */ in pbuf_alloc() 301 p->len = LWIP_MIN(length, PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)); in pbuf_alloc() 314 /* remaining length to be allocated */ in pbuf_alloc() 315 rem_len = length - p->len; in pbuf_alloc() [all …]
|