Home
last modified time | relevance | path

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

/sys/amd64/
Dxmem.c22 uintptr_t length; member
40 regions[r].length = 0; in XMem_Init()
68 for (off = 0; off < xmem->length; off += PGSIZE) { in XMem_Destroy()
88 return xmem->length; in XMem_GetLength()
92 XMem_Allocate(XMem *xmem, uintptr_t length) in XMem_Allocate() argument
97 if (xmem->length > length) in XMem_Allocate()
101 if (length > xmem->maxLength) in XMem_Allocate()
104 for (off = xmem->length; off < length; off += PGSIZE) { in XMem_Allocate()
111 xmem->length += PGSIZE; in XMem_Allocate()
127 regions[r].base, regions[r].length); in Debug_XMemStats()
/sys/kern/
Dlibc.c68 strncpy(char *to, const char *from, size_t length) in strncpy() argument
72 for (; (*to = *from) != '\0' && length > 0; ++from, ++to, length--); in strncpy()
121 memset(void *dst, int c, size_t length) in memset() argument
125 while (length-- != 0) { in memset()
134 memcpy(void *dst, const void *src, size_t length) in memcpy() argument
139 while (length-- != 0) { in memcpy()
149 memcmp(const void *b1, const void *b2, size_t length) in memcmp() argument
155 for (i = 0; i < length; i++) in memcmp()
Dsga.c23 sga->entries[sga->len].length = len; in SGArray_Append()
38 sga->entries[i].length); in SGArray_Dump()
Ddebug.c30 Debug_PrintHex(const char *data, size_t length, off_t off, size_t limit) in Debug_PrintHex() argument
38 if (ix >= limit || ix >= length) in Debug_PrintHex()
45 if ((limit != 0 && ixc >= limit) || ixc >= length) { in Debug_PrintHex()
60 if ((limit != 0 && ixc >= limit) || ixc >= length) { in Debug_PrintHex()
Dsyscall.c219 Syscall_Read(uint64_t fd, uint64_t addr, uint64_t off, uint64_t length) in Syscall_Read() argument
228 status = (handle->read)(handle, (void *)addr, off, length); in Syscall_Read()
237 Syscall_Write(uint64_t fd, uint64_t addr, uint64_t off, uint64_t length) in Syscall_Write() argument
246 status = (handle->write)(handle, (void *)addr, off, length); in Syscall_Write()
Ddisk.c95 sga.entries[0].length = 512; in Debug_DumpDisk()
/lib/libc/
Dstring.c34 strncpy(char *to, const char *from, size_t length) in strncpy() argument
38 for (; (*to = *from) != '\0' && length > 0; ++from, ++to, length--); in strncpy()
164 memset(void *dst, int c, size_t length) in memset() argument
168 while (length-- != 0) { in memset()
177 memcpy(void *dst, const void *src, size_t length) in memcpy() argument
182 while (length-- != 0) { in memcpy()
192 memcmp(const void *b1, const void *b2, size_t length) in memcmp() argument
198 for (i = 0; i < length; i++) in memcmp()
Dsyscall.c59 OSRead(uint64_t fd, void *addr, uint64_t off, uint64_t length) in OSRead() argument
61 return syscall(SYSCALL_READ, fd, addr, off, length); in OSRead()
65 OSWrite(uint64_t fd, const void *addr, uint64_t off, uint64_t length) in OSWrite() argument
67 return syscall(SYSCALL_WRITE, fd, addr, off, length); in OSWrite()
95 OSReadDir(uint64_t fd, char *buf, size_t length, uint64_t *offset) in OSReadDir() argument
97 return syscall(SYSCALL_READDIR, fd, buf, length, offset); in OSReadDir()
/lib/liblwip/src/core/snmp/
Dasn1_enc.c50 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()
213 snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length) in snmp_asn1_enc_length() argument
228 if (length < 0x80) in snmp_asn1_enc_length()
230 *msg_ptr = (u8_t)length; in snmp_asn1_enc_length()
233 else if (length < 0x100) in snmp_asn1_enc_length()
249 *msg_ptr = (u8_t)length; in snmp_asn1_enc_length()
279 *msg_ptr = (u8_t)length; in snmp_asn1_enc_length()
284 *msg_ptr = (u8_t)(length >> 8); in snmp_asn1_enc_length()
Dasn1_dec.c85 snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length) in snmp_asn1_dec_length() argument
104 *length = *msg_ptr; in snmp_asn1_dec_length()
113 *length = 0; in snmp_asn1_dec_length()
121 (*length) += 1; in snmp_asn1_dec_length()
170 *length = *msg_ptr; in snmp_asn1_dec_length()
200 *length |= *msg_ptr; in snmp_asn1_dec_length()
205 *length = (*msg_ptr) << 8; in snmp_asn1_dec_length()
/include/
Dsyscall.h22 int OSRead(uint64_t fd, void *addr, uint64_t off, uint64_t length);
23 int OSWrite(uint64_t fd, const void *addr, uint64_t off, uint64_t length);
30 int OSReadDir(uint64_t fd, char *buf, size_t length, uint64_t *offset);
/lib/liblwip/src/include/lwip/
Dsnmp_asn1.h78 err_t snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length);
84 void snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed);
89 err_t snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length);
Dpbuf.h146 struct pbuf *pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type);
148 struct pbuf *pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type,
Dapi.h234 void netconn_recved(struct netconn *conn, u32_t length);
/lib/liblwip/src/core/
Dpbuf.c207 pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type) in pbuf_alloc() argument
212 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length)); in pbuf_alloc()
253 p->tot_len = length; in pbuf_alloc()
255 p->len = LWIP_MIN(length, PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)); in pbuf_alloc()
269 rem_len = length - p->len; in pbuf_alloc()
308 …t pbuf*)mem_malloc(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF + offset) + LWIP_MEM_ALIGN_SIZE(length)); in pbuf_alloc()
314 p->len = p->tot_len = length; in pbuf_alloc()
335 p->len = p->tot_len = length; in pbuf_alloc()
347 …LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p… in pbuf_alloc()
367 pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p, in pbuf_alloced_custom() argument
[all …]
Dtcp_out.c219 tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length, in tcp_pbuf_prealloc() argument
224 u16_t alloc = length; in tcp_pbuf_prealloc()
234 if (length < max_length) { in tcp_pbuf_prealloc()
251 alloc = LWIP_MIN(max_length, LWIP_MEM_ALIGN_SIZE(length + TCP_OVERSIZE)); in tcp_pbuf_prealloc()
260 *oversize = p->len - length; in tcp_pbuf_prealloc()
262 p->len = p->tot_len = length; in tcp_pbuf_prealloc()
266 #define tcp_pbuf_prealloc(layer, length, mx, os, pcb, api, fst) pbuf_alloc((layer), (length), PBUF_… argument
/sys/include/
Dsga.h10 uint64_t length; member
Dkdebug.h15 void Debug_PrintHex(const char *data, size_t length, off_t off, size_t limit);
Dkmem.h34 bool XMem_Allocate(XMem *xmem, uintptr_t length);
/sys/dev/x86/
Dide.c283 sga->entries[i].length / 512); in IDE_Read()
284 buf += sga->entries[i].length; in IDE_Read()
305 sga->entries[i].length / 512); in IDE_Write()
306 buf += sga->entries[i].length; in IDE_Write()
/sys/dev/
Dahci.c269 ct->prdt[i].descInfo = sga->entries[i].length - 1; in AHCI_IssueCommand()
271 ASSERT(sga->entries[i].length % 2 == 0); in AHCI_IssueCommand()
316 sga.entries[0].length = 512; in AHCI_IdentifyPort()
/lib/liblwip/src/api/
Dapi_lib.c517 netconn_recved(struct netconn *conn, u32_t length) in netconn_recved() argument
528 msg.msg.msg.r.len = length; in netconn_recved()
534 LWIP_UNUSED_ARG(length); in netconn_recved()
/lib/liblwip/doc/
Drawapi.txt192 Enqueues the data pointed to by the argument dataptr. The length of
203 The tcp_write() function will fail and return ERR_MEM if the length
204 of the data exceeds the current send buffer size or if the length of
246 argument indicates the length of the received data.
/lib/liblwip/
DCHANGELOG96 * vj.c: fixed bug #35756 header length calculation problem in ppp/vj.c
1000 could have non-zero length
1066 conditional code to assert where applicable), check pbuf length before
1324 * tcp_out.c: Fixed bug #25094: "Zero-length pbuf" (options are now allocated
1425 * tcp_in.c: fixed bug ##24596: Vulnerability on faulty TCP options length
1871 * api_lib.c, api_msg.c, api.h, api_msg.h: Converted the length argument of
1886 * etharp.c, etharp.h: Changed etharp to use a defined hardware address length
1888 used for ethernet and struct eth_addr already had a defined length of 6).
2802 even length combination of cases on various endianess machines.
2810 u32_t, s32_t typedefs. This solves most debug word-length assumes.
[all …]
/docs/
DDoxyfile2535 # to display on a single line. If the actual line length exceeds this threshold