Home
last modified time | relevance | path

Searched refs:len (Results 26 – 50 of 105) sorted by relevance

12345

/lib/liblwip/src/netif/ppp/
Dipcp.c258 ipcp_input(int unit, u_char *p, int len) in ipcp_input() argument
260 fsm_input(&ipcp_fsm[unit], p, len); in ipcp_input()
351 int len = *lenp; in ipcp_addci() local
356 if (len >= vjlen) { \ in ipcp_addci()
364 len -= vjlen; \ in ipcp_addci()
373 if (len >= addrlen) { \ in ipcp_addci()
383 len -= addrlen; \ in ipcp_addci()
391 if (len >= CILEN_ADDR) { \ in ipcp_addci()
397 len -= CILEN_ADDR; \ in ipcp_addci()
413 *lenp -= len; in ipcp_addci()
[all …]
Dfsm.c386 int len; in fsm_input() local
399 GETSHORT(len, inp); in fsm_input()
400 if (len < HEADERLEN) { in fsm_input()
405 if (len > l) { in fsm_input()
410 len -= HEADERLEN; /* subtract header length */ in fsm_input()
423 fsm_rconfreq(f, id, inp, len); in fsm_input()
427 fsm_rconfack(f, id, inp, len); in fsm_input()
432 fsm_rconfnakrej(f, code, id, inp, len); in fsm_input()
436 fsm_rtermreq(f, id, inp, len); in fsm_input()
444 fsm_rcoderej(f, inp, len); in fsm_input()
[all …]
Dppp.c709 if((c = sio_write(pc->fd, b->payload, b->len)) != b->len) { in nPut()
711 … incomplete sio_write(fd:%"SZT_F", len:%d, c: 0x%"X8_F") c = %d\n", (size_t)pc->fd, b->len, c, c)); in nPut()
741 if (nb && (PBUF_POOL_BUFSIZE - nb->len) < 2) { in pppAppend()
753 *((u_char*)nb->payload + nb->len++) = PPP_ESCAPE; in pppAppend()
754 *((u_char*)nb->payload + nb->len++) = c ^ PPP_TRANS; in pppAppend()
756 *((u_char*)nb->payload + nb->len++) = c; in pppAppend()
918 n = p->len; in pppifOutput()
1129 ("pppWrite[%d]: Alloc err - dropping pbuf len=%d\n", pd, headMB->len)); in pppWrite()
1138 PPPDEBUG(LOG_INFO, ("pppWrite[%d]: len=%d\n", pd, headMB->len)); in pppWrite()
1572 if(p->tot_len == p->len) { in pppSingleBuf()
[all …]
/lib/liblwip/src/core/snmp/
Dmib2.c80 static void system_get_value(struct obj_def *od, u16_t len, void *value);
81 static u8_t system_set_test(struct obj_def *od, u16_t len, void *value);
82 static void system_set_value(struct obj_def *od, u16_t len, void *value);
84 static void interfaces_get_value(struct obj_def *od, u16_t len, void *value);
86 static void ifentry_get_value(struct obj_def *od, u16_t len, void *value);
88 static u8_t ifentry_set_test (struct obj_def *od, u16_t len, void *value);
89 static void ifentry_set_value (struct obj_def *od, u16_t len, void *value);
92 static void atentry_get_value(struct obj_def *od, u16_t len, void *value);
94 static void ip_get_value(struct obj_def *od, u16_t len, void *value);
95 static u8_t ip_set_test(struct obj_def *od, u16_t len, void *value);
[all …]
/sys/dev/
Dconsole.c151 Console_Read(Handle *handle, void *buf, uint64_t off, uint64_t len) in Console_Read() argument
156 for (i = 0; i < len; i++) in Console_Read()
163 return len; in Console_Read()
167 Console_Write(Handle *handle, void *buf, uint64_t off, uint64_t len) in Console_Write() argument
174 while (len > nbytes) { in Console_Write()
175 uint64_t chunksz = len > 512 ? 512 : len; in Console_Write()
/sbin/newfs_o2fs/
Dnewfs_o2fs.c96 FlushBlock(uint64_t offset, const void *buf, size_t len) in FlushBlock() argument
99 assert(len <= blockSize); in FlushBlock()
101 pwrite(diskfd, buf, len, offset); in FlushBlock()
102 if (len != blockSize) { in FlushBlock()
103 pwrite(diskfd, zerobuf, blockSize - len, offset + len); in FlushBlock()
109 AppendBlock(const void *buf, size_t len) in AppendBlock() argument
113 FlushBlock(offset, buf, len); in AppendBlock()
145 int len = read(fd, tempbuf, blockSize); in AddFile() local
146 if (len < 0) { in AddFile()
150 if (len == 0) { in AddFile()
[all …]
/sys/kern/
Ddebug.c207 uint64_t off, len; in Debug_Dump() local
216 len = Debug_SymbolToInt(argv[2]); in Debug_Dump()
217 kprintf("Dump 0x%llx 0x%llx\n", off, len); in Debug_Dump()
218 Debug_PrintHex((const char *)off, len, 0, len); in Debug_Dump()
227 int len = 1; in Debug_Disasm() local
236 len = Debug_SymbolToInt(argv[2]); in Debug_Disasm()
239 for (; len > 0; len--) in Debug_Disasm()
Dvfsuio.c16 VFSUIO_Read(Handle *handle, void *buf, uint64_t len, uint64_t off) in VFSUIO_Read() argument
22 return VFS_Read(handle->vnode, buf, len, off); in VFSUIO_Read()
26 VFSUIO_Write(Handle *handle, void *buf, uint64_t len, uint64_t off) in VFSUIO_Write() argument
32 return VFS_Write(handle->vnode, buf, len, off); in VFSUIO_Write()
Dlibc.c90 strncmp(const char *s1, const char *s2, size_t len) in strncmp() argument
92 if (len == 0) in strncmp()
102 len--; in strncmp()
103 if (len == 0) in strncmp()
Dpalloc.c92 PAlloc_AddRegion(uintptr_t start, uintptr_t len) in PAlloc_AddRegion() argument
99 if ((len % PGSIZE) != 0) in PAlloc_AddRegion()
113 uintptr_t end = base + len; in PAlloc_AddRegion()
119 len -= pageInfoLength; in PAlloc_AddRegion()
139 uintptr_t end = base + len; in PAlloc_AddRegion()
153 for (i = 0; i < len; i += PGSIZE) in PAlloc_AddRegion()
/lib/liblwip/src/include/ipv4/lwip/
Dinet_chksum.h60 #define LWIP_CHKSUM_COPY(dst, src, len) lwip_chksum_copy(dst, src, len) argument
73 u16_t inet_chksum(void *dataptr, u16_t len);
82 u16_t lwip_chksum_copy(void *dst, const void *src, u16_t len);
/sys/fs/o2fs/
Do2fs.c25 int O2FS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len);
26 int O2FS_Write(VNode *fn, void *buf, uint64_t off, uint64_t len);
27 int O2FS_ReadDir(VNode *fn, void *buf, uint64_t len, uint64_t *off);
512 O2FS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len) in O2FS_Read() argument
529 if (off + len > fileBN->size) { in O2FS_Read()
530 len = fileBN->size - off; in O2FS_Read()
539 if (bOff + len > sb->blockSize) { in O2FS_Read()
542 bLen = len; in O2FS_Read()
556 len -= bLen; in O2FS_Read()
558 if (len == 0) in O2FS_Read()
[all …]
/lib/liblwip/src/netif/
Dethernetif.c138 send data from(q->payload, q->len);
165 u16_t len;
169 len = ;
172 len += ETH_PAD_SIZE; /* allow room for Ethernet padding */
176 p = pbuf_alloc(PBUF_RAW, len, PBUF_POOL);
195 read data into(q->payload, q->len);
/lib/libc/
Dsyscall.c41 OSMemMap(void *addr, uint64_t len, int flags) in OSMemMap() argument
43 return (void *)syscall(SYSCALL_MMAP, addr, len, flags); in OSMemMap()
47 OSMemUnmap(void *addr, uint64_t len) in OSMemUnmap() argument
49 return syscall(SYSCALL_MUNMAP, addr, len); in OSMemUnmap()
53 OSMemProtect(void *addr, uint64_t len, int flags) in OSMemProtect() argument
55 return syscall(SYSCALL_MPROTECT, addr, len, flags); in OSMemProtect()
Dstring.c91 strncmp(const char *s1, const char *s2, size_t len) in strncmp() argument
93 if (len == 0) in strncmp()
103 len--; in strncmp()
104 if (len == 0) in strncmp()
/bin/cat/
Dcat.c37 int len = (sb.st_size - i > 256) ? 256 : (sb.st_size - i); in main() local
39 OSRead(fd, &buf, i, len); in main()
40 OSWrite(1, &buf, 0, len); in main()
/lib/liblwip/src/api/
Dnetbuf.c120 (buf->p->len >= size)); in netbuf_alloc()
162 buf->p->len = buf->p->tot_len = size; in netbuf_ref()
193 netbuf_data(struct netbuf *buf, void **dataptr, u16_t *len) in netbuf_data() argument
197 LWIP_ERROR("netbuf_data: invalid len", (len != NULL), return ERR_ARG;); in netbuf_data()
203 *len = buf->ptr->len; in netbuf_data()
Dapi_msg.c106 u16_t len; in recv_raw() local
118 len = q->tot_len; in recv_raw()
124 SYS_ARCH_INC(conn->recv_avail, len); in recv_raw()
127 API_EVENT(conn, NETCONN_EVT_RCVPLUS, len); in recv_raw()
149 u16_t len; local
194 len = p->tot_len;
200 SYS_ARCH_INC(conn->recv_avail, len);
203 API_EVENT(conn, NETCONN_EVT_RCVPLUS, len);
219 u16_t len; local
246 len = p->tot_len;
[all …]
/lib/liblwip/src/include/lwip/
Dsio.h98 u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len);
111 u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len);
125 u32_t sio_write(sio_fd_t fd, u8_t *data, u32_t len);
Dsnmp_asn1.h79 err_t snmp_asn1_dec_u32t(struct pbuf *p, u16_t ofs, u16_t len, u32_t *value);
80 err_t snmp_asn1_dec_s32t(struct pbuf *p, u16_t ofs, u16_t len, s32_t *value);
81 err_t snmp_asn1_dec_oid(struct pbuf *p, u16_t ofs, u16_t len, struct snmp_obj_id *oid);
82 err_t snmp_asn1_dec_raw(struct pbuf *p, u16_t ofs, u16_t len, u16_t raw_len, u8_t *raw);
Dpbuf.h96 u16_t len; member
161 u16_t pbuf_copy_partial(struct pbuf *p, void *dataptr, u16_t len, u16_t offset);
162 err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len);
166 u16_t len, u16_t *chksum);
/lib/liblwip/src/core/ipv6/
Dicmp6.c78 LWIP_DEBUGF(ICMP_DEBUG, ("icmp: p->len %"S16_F" p->tot_len %"S16_F"\n", p->len, p->tot_len)); in icmp_input()
121 (q->len >= (8 + IP_HLEN + 8))); in icmp_dest_unreach()
133 idur->chksum = inet_chksum(idur, q->len); in icmp_dest_unreach()
159 (q->len >= (8 + IP_HLEN + 8))); in icmp_time_exceeded()
172 tehdr->chksum = inet_chksum(tehdr, q->len); in icmp_time_exceeded()
/include/
Dsyscall.h17 void *OSMemMap(void *addr, uint64_t len, int flags);
18 int OSMemUnmap(void *addr, uint64_t len);
19 int OSMemProtect(void *addr, uint64_t len, int flags);
/sys/include/
Dsga.h15 uint32_t len; member
20 int SGArray_Append(SGArray *sga, uint64_t off, uint64_t len);
/lib/liblwip/src/core/
Dtcp_in.c281 inseg.len = p->tot_len; in tcp_input()
813 TCP_SEQ_GEQ((seqno + cseg->len), in tcp_oos_insert_segment()
814 (next->tcphdr->seqno + next->len))) { in tcp_oos_insert_segment()
824 TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) { in tcp_oos_insert_segment()
826 cseg->len = (u16_t)(next->tcphdr->seqno - seqno); in tcp_oos_insert_segment()
827 pbuf_realloc(cseg->p, cseg->len); in tcp_oos_insert_segment()
1176 if (inseg.p->len < off) { in tcp_receive()
1179 while (p->len < off) { in tcp_receive()
1180 off -= p->len; in tcp_receive()
1185 p->len = 0; in tcp_receive()
[all …]

12345