Home
last modified time | relevance | path

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

/lk-master/lib/fs/fat32/
A Dfat_fs.h52 #define fat_read32(buffer,off) \ argument
53 (((uint8_t *)buffer)[(off)] + (((uint8_t *)buffer)[(off)+1] << 8) + \
54 (((uint8_t *)buffer)[(off)+2] << 16) + (((uint8_t *)buffer)[(off)+3] << 24))
56 #define fat_read16(buffer,off) \ argument
57 (((uint8_t *)buffer)[(off)] + (((uint8_t *)buffer)[(off)+1] << 8))
/lk-master/lib/fs/memfs/
A Dmemfs.c208 static ssize_t memfs_read(filecookie *fcookie, void *buf, off_t off, size_t len) { in memfs_read() argument
213 if (off < 0) in memfs_read()
218 if (off >= (off_t)file->len) { in memfs_read()
220 } else if (off + len > file->len) { in memfs_read()
221 len = file->len - off; in memfs_read()
225 memcpy(buf, file->ptr + off, len); in memfs_read()
269 if (off < 0) in memfs_write()
275 if (off + len > file->len) { in memfs_write()
276 void *ptr = realloc(file->ptr, off + len); in memfs_write()
283 file->len = off + len; in memfs_write()
[all …]
/lk-master/lib/acpi_lite/
A Dacpi_lite.cpp256 size_t off = sizeof(*madt); in acpi_process_madt_entries_etc() local
257 while (off < madt->header.length) { in acpi_process_madt_entries_etc()
258 uint8_t type = madt_array[off]; in acpi_process_madt_entries_etc()
259 uint8_t length = madt_array[off + 1]; in acpi_process_madt_entries_etc()
262 callback(static_cast<const void*>(&madt_array[off]), length); in acpi_process_madt_entries_etc()
265 off += length; in acpi_process_madt_entries_etc()
/lk-master/tools/
A Dbootimage.c115 unsigned off = 4096; in bootimage_write() local
122 if (img->offset[n] < off) return -1; in bootimage_write()
123 s = img->offset[n] - off; in bootimage_write()
128 off += s; in bootimage_write()
132 off += img->length[n]; in bootimage_write()
134 if (off & 4095) { in bootimage_write()
135 if (writex(fd, filler, 4096 - (off & 4095))) return -1; in bootimage_write()
/lk-master/dev/bus/pci/
A Decam.cpp98 auto off = location_to_offset(state, reg); in read_config() local
100 *value = *reinterpret_cast<const volatile T *>(&ecam_ptr[off]); in read_config()
107 auto off = location_to_offset(state, reg); in write_config() local
109 *reinterpret_cast<volatile T *>(&ecam_ptr[off]) = value; in write_config()
/lk-master/scripts/
A Dlk.cmm26 ;tronchip.set dabort off
27 ;tronchip.set pabort off
/lk-master/lib/devicetree/
A Ddevicetree.c31 static int sslice(slice_t *src, slice_t *dst, u32 off, u32 len) { in sslice() argument
32 if (off >= src->size) in sslice()
36 if ((off + len) > src->size) in sslice()
38 dst->data = src->data + off; in sslice()
/lk-master/lib/fs/
A Ddebug.c221 off_t off; in cmd_fs() local
242 off = stat.size; in cmd_fs()
244 off = argv[4].u; in cmd_fs()
246 err = fs_write_file(handle, argv[3].str, off, strlen(argv[3].str)); in cmd_fs()
/lk-master/external/lib/lwip/netif/ppp/
A Dppp_oe.c300 int off, err, errortag; in pppoe_dispatch_disc_pkt() local
312 off = sizeof(*ethhdr); in pppoe_dispatch_disc_pkt()
321 if (pb->len - off < PPPOE_HEADERLEN) { in pppoe_dispatch_disc_pkt()
333 off += sizeof(*ph); in pppoe_dispatch_disc_pkt()
335 if (plen + off > pb->len) { in pppoe_dispatch_disc_pkt()
337 pb->len - off, plen); in pppoe_dispatch_disc_pkt()
346 while (off + sizeof(pt) <= pb->len) { in pppoe_dispatch_disc_pkt()
347 MEMCPY(&pt, (u8_t*)pb->payload + off, sizeof(pt)); in pppoe_dispatch_disc_pkt()
350 if (off + sizeof(pt) + len > pb->len) { in pppoe_dispatch_disc_pkt()
366 hunique = (u8_t*)pb->payload + off + sizeof(pt); in pppoe_dispatch_disc_pkt()
[all …]
/lk-master/lib/ptable/
A Dptable.c112 size_t off = sizeof(struct ptable_header); in ptable_write() local
117 memcpy(buf + off, entry, sizeof(struct ptable_entry)); in ptable_write()
122 off += sizeof(struct ptable_entry); in ptable_write()
600 off_t off = offset + sizeof(struct ptable_header); in ptable_scan() local
605 err = bio_read(ptable.bdev, &entry, off, sizeof(entry)); in ptable_scan()
636 off += sizeof(struct ptable_entry); in ptable_scan()
875 off_t off = ptable_allocate(&len, flags); in cmd_ptable() local
877 if (off < 0) { in cmd_ptable()
879 argv[1].str, argv[2].u, off); in cmd_ptable()
882 argv[1].str, argv[2].u, off, off + len); in cmd_ptable()
/lk-master/external/lib/fdt/
A Dfdt.c48 static int check_off_(uint32_t hdrsize, uint32_t totalsize, uint32_t off) in check_off_() argument
50 return (off >= hdrsize) && (off <= totalsize); in check_off_()
/lk-master/lib/fs/spifs/
A Dspifs.c872 static ssize_t spifs_read(filecookie *fcookie, void *buf, off_t off, size_t len) { in spifs_read() argument
873 LTRACEF("filecookie %p buf %p offset %lld len %zu\n", fcookie, buf, off, len); in spifs_read()
878 if (off < 0) in spifs_read()
886 uint32_t read_start = file_start + off; in spifs_read()
904 static ssize_t spifs_write(filecookie *fcookie, const void *buf, off_t off, size_t size) { in spifs_write() argument
908 LTRACEF("filecookie %p buf %p offset %lld len %zu\n", fcookie, buf, off, len); in spifs_write()
913 if (off < 0) in spifs_write()
918 if (off + len > file->metadata.capacity) { in spifs_write()
926 off + (file->metadata.page_idx * spifs->page_size); in spifs_write()
932 if (off + len > file->metadata.length) { in spifs_write()
[all …]
/lk-master/external/lib/lwip/api/
A Dsockets.c564 int off = 0; in lwip_recvfrom() local
585 if (off > 0) { in lwip_recvfrom()
587 netconn_recved(sock->conn, (u32_t)off); in lwip_recvfrom()
590 return off; in lwip_recvfrom()
608 if (off > 0) { in lwip_recvfrom()
613 return off; in lwip_recvfrom()
636 buflen, len, off, sock->lastoffset)); in lwip_recvfrom()
650 off += copylen; in lwip_recvfrom()
733 if (off > 0) { in lwip_recvfrom()
735 netconn_recved(sock->conn, (u32_t)off); in lwip_recvfrom()
[all …]
/lk-master/external/lib/lwip/include/ipv4/lwip/
A Dip.h160 #define IPH_OFFSET_SET(hdr, off) (hdr)->_offset = (off) argument
/lk-master/external/lib/lwip/core/
A Dtcp_in.c854 s32_t off; in tcp_receive() local
1172 off = pcb->rcv_nxt - seqno; in tcp_receive()
1175 LWIP_ASSERT("insane offset!", (off < 0x7fff)); in tcp_receive()
1176 if (inseg.p->len < off) { in tcp_receive()
1177 LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off)); in tcp_receive()
1178 new_tot_len = (u16_t)(inseg.p->tot_len - off); in tcp_receive()
1179 while (p->len < off) { in tcp_receive()
1180 off -= p->len; in tcp_receive()
1188 if(pbuf_header(p, (s16_t)-off)) { in tcp_receive()
1193 if(pbuf_header(inseg.p, (s16_t)-off)) { in tcp_receive()
/lk-master/lib/minip/
A Dtcp.c1063 size_t off = 0; in tcp_write() local
1064 while (off < len) { in tcp_write()
1065 LTRACEF("off %zu, len %zu\n", off, len); in tcp_write()
1084 size_t to_copy = MIN(s->tx_buffer_size - s->tx_buffer_offset, len - off); in tcp_write()
1090 memcpy(s->tx_buffer + s->tx_buffer_offset, (uint8_t *)buf + off, to_copy); in tcp_write()
1102 off += to_copy; in tcp_write()
/lk-master/arch/riscv/
A Dlinker-onesegment.ld57 * and sbss at the start of the bss segment. This maximizes reach of things referenced off of
A Dlinker-twosegment.ld69 * and sbss at the start of the bss segment. This maximizes reach of things referenced off of
/lk-master/external/platform/lpc15xx/lpcopen/periph_rtc/example/
A Dreadme.dox38 * The board LED will toggle on and off twice at a varying rate based on
/lk-master/external/platform/lpc15xx/lpcopen/periph_crc/example/
A Dreadme.dox39 * will turn on for an error and turn off for no errors.<br>
/lk-master/arch/arm/
A Dsystem-twosegment.ld59 /* fake section for .data to anchor off of
/lk-master/external/platform/pico/rp2_common/pico_float/
A Dfloat_v1_rom_shim.S178 subs r0,r4,r2 @ >pi: take off 2pi
/lk-master/external/platform/pico/rp2_common/pico_double/
A Ddouble_v1_rom_shim.S304 lsls r4,r4,r7 @ these would be shifted off the bottom of the sticky bits
339 lsls r4,r4,r6 @ these would be shifted off the bottom of the sticky bits
/lk-master/external/platform/nrfx/doc/
A Dnrfx.doxyfile720 # The QUIET tag can be used to turn on/off the messages that are generated to
722 # messages are off.
727 # The WARNINGS tag can be used to turn on/off the warning messages that are
1441 # DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
1457 # (i.e. any modern browser). Windows users are probably better off using the
2194 # NO turns the diagrams off. Note that this option also works with HAVE_DOT
/lk-master/external/platform/nrfx/
A DCHANGELOG.md180 … TX operation. Now at the end of the transmission the transmitter is turned off by the STOPTX task.

Completed in 39 milliseconds