Home
last modified time | relevance | path

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

12

/lk-master/lib/fs/
A Dfs.c26 fscookie *cookie; member
32 filecookie *cookie; member
37 dircookie *cookie; member
128 fscookie *cookie; in mount() local
148 mount->cookie = cookie; in mount()
220 status_t err = mount->api->open(mount->cookie, newpath, &cookie); in fs_open_file()
227 f->cookie = cookie; in fs_open_file()
273 f->cookie = cookie; in fs_create_file()
380 dircookie *cookie; in fs_open_dir() local
381 status_t err = mount->api->opendir(mount->cookie, newpath, &cookie); in fs_open_dir()
[all …]
/lk-master/lib/fs/memfs/
A Dmemfs.c58 static status_t memfs_mount(struct bdev *dev, fscookie **cookie) { in memfs_mount() argument
59 LTRACEF("dev %p, cookie %p\n", dev, cookie); in memfs_mount()
69 *cookie = (fscookie *)mem; in memfs_mount()
80 static status_t memfs_unmount(fscookie *cookie) { in memfs_unmount() argument
81 LTRACEF("cookie %p\n", cookie); in memfs_unmount()
83 memfs_t *mem = (memfs_t *)cookie; in memfs_unmount()
105 memfs_t *mem = (memfs_t *)cookie; in memfs_create()
160 memfs_t *mem = (memfs_t *)cookie; in memfs_open()
178 LTRACEF("cookie %p name '%s'\n", cookie, name); in memfs_remove()
180 memfs_t *mem = (memfs_t *)cookie; in memfs_remove()
[all …]
/lk-master/platform/qemu-virt-arm/
A Dplatform.c71 static void memcallback(uint64_t base, uint64_t len, void *cookie) { in memcallback() argument
72 bool *found_mem = (bool *)cookie; in memcallback()
74 LTRACEF("base %#llx len %#llx cookie %p\n", base, len, cookie); in memcallback()
95 static void cpucallback(uint64_t id, void *cookie) { in cpucallback() argument
96 int *cpu_count = (int *)cookie; in cpucallback()
98 LTRACEF("id %#llx cookie %p\n", id, cookie); in cpucallback()
110 …id pciecallback(uint64_t ecam_base, size_t len, uint8_t bus_start, uint8_t bus_end, void *cookie) { in pciecallback() argument
111 struct pcie_detect_state *state = cookie; in pciecallback()
/lk-master/platform/qemu-virt-riscv/
A Dplatform.c54 static void memcallback(uint64_t base, uint64_t len, void *cookie) { in memcallback() argument
55 bool *found_mem = (bool *)cookie; in memcallback()
57 LTRACEF("base %#llx len %#llx cookie %p\n", base, len, cookie); in memcallback()
73 static void cpucallback(uint64_t id, void *cookie) { in cpucallback() argument
74 int *cpu_count = (int *)cookie; in cpucallback()
76 LTRACEF("id %#llx cookie %p\n", id, cookie); in cpucallback()
88 …id pciecallback(uint64_t ecam_base, size_t len, uint8_t bus_start, uint8_t bus_end, void *cookie) { in pciecallback() argument
89 struct pcie_detect_state *state = cookie; in pciecallback()
/lk-master/app/lkboot/
A Dlkboot.c56 void *cookie; member
62 lkb_t *lkboot_create_lkb(void *cookie, lkb_read_hook *read, lkb_write_hook *write) { in lkboot_create_lkb() argument
67 lkb->cookie = cookie; in lkboot_create_lkb()
112 if (lkb->write(lkb->cookie, &hdr, sizeof(hdr)) != sizeof(&hdr)) { in lkb_send()
117 if (len && (lkb->write(lkb->cookie, data, len) != (ssize_t)len)) { in lkb_send()
151 if (lkb->read(lkb->cookie, &hdr, sizeof(hdr))) goto fail; in lkb_read()
160 if (lkb->read(lkb->cookie, data, len)) goto fail; in lkb_read()
164 if (lkb->read(lkb->cookie, data, lkb->avail)) { in lkb_read()
187 if (lkb->read(lkb->cookie, &hdr, sizeof(hdr))) goto fail; in lkboot_process_command()
190 if (lkb->read(lkb->cookie, cmd, hdr.length)) goto fail; in lkboot_process_command()
A Dcommands.c48 void *cookie; member
53 void lkb_register(const char *name, lkb_handler_t handler, void *cookie) { in lkb_register() argument
59 cmd->cookie = cookie; in lkb_register()
267 *result = lcmd->handler(lkb, arg, len, lcmd->cookie); in lkb_handle_command()
A Dlkboot.h23 lkb_t *lkboot_create_lkb(void *cookie, lkb_read_hook *read, lkb_write_hook *write);
/lk-master/lib/fdtwalk/include/lib/
A Dfdtwalk.h18 void (*mem)(uint64_t base, uint64_t len, void *cookie);
20 void (*cpu)(uint64_t id, void *cookie);
22 void (*pcie)(uint64_t ecam_base, size_t len, uint8_t bus_start, uint8_t bus_end, void *cookie);
/lk-master/lib/fs/fat32/
A Dfat32_priv.h15 status_t fat32_mount(bdev_t *dev, fscookie **cookie);
16 status_t fat32_unmount(fscookie *cookie);
19 status_t fat32_open_file(fscookie *cookie, const char *path, filecookie **fcookie);
A Dfat.c38 status_t fat32_mount(bdev_t *dev, fscookie **cookie) { in fat32_mount() argument
154 *cookie = (fscookie *)fat; in fat32_mount()
160 status_t fat32_unmount(fscookie *cookie) { in fat32_unmount() argument
161 fat_fs_t *fat = (fat_fs_t *)cookie; in fat32_unmount()
/lk-master/lib/fs/spifs/
A Dspifs.c585 LTRACEF("dev %p, cookie %p\n", dev, cookie); in spifs_mount()
673 *cookie = (fscookie *)spifs; in spifs_mount()
688 LTRACEF("cookie %p\n", cookie); in spifs_unmount()
690 spifs_t *spifs = (spifs_t *)cookie; in spifs_unmount()
713 spifs_t *spifs = (spifs_t *)cookie; in spifs_create()
805 spifs_t *spifs = (spifs_t *)cookie; in spifs_open()
836 spifs_t *spifs = (spifs_t *)cookie; in spifs_remove()
1054 spifs_t *spifs = (spifs_t *)cookie; in spifs_opendir()
1122 spifs_t *spifs = (spifs_t *)cookie; in spifs_fs_stat()
1142 spifs_file_t *file = (spifs_file_t *)cookie; in spifs_ioctl_get_file_addr()
[all …]
/lk-master/lib/devicetree/include/lib/
A Ddevicetree.h38 typedef int (*dt_node_cb)(int depth, const char *name, void *cookie);
39 typedef int (*dt_prop_cb)(const char *name, u8 *data, u32 size, void *cookie);
42 int dt_walk(devicetree_t *dt, dt_node_cb ncb, dt_prop_cb pcb, void *cookie);
/lk-master/app/lkboot/include/app/
A Dlkboot.h24 const char *arg, unsigned len, void *cookie);
27 void lkb_register(const char *cmd, lkb_handler_t handler, void *cookie);
/lk-master/lib/fs/ext2/
A Dext2_priv.h56 status_t ext2_mount(bdev_t *dev, fscookie **cookie);
57 status_t ext2_unmount(fscookie *cookie);
58 status_t ext2_open_file(fscookie *cookie, const char *path, filecookie **fcookie);
A Dext2.c95 status_t ext2_mount(bdev_t *dev, fscookie **cookie) { in ext2_mount() argument
177 *cookie = (fscookie *)ext2; in ext2_mount()
188 status_t ext2_unmount(fscookie *cookie) { in ext2_unmount() argument
190 ext2_t *ext2 = (ext2_t *)cookie; in ext2_unmount()
A Dfile.c19 int ext2_open_file(fscookie *cookie, const char *path, filecookie **fcookie) { in ext2_open_file() argument
20 ext2_t *ext2 = (ext2_t *)cookie; in ext2_open_file()
/lk-master/dev/include/dev/
A Dusb.h42 typedef status_t (*usb_callback_t)(void *cookie, usb_callback_op_t op, const union usb_callback_arg…
79 status_t usb_register_callback(usb_callback_t, void *cookie);
/lk-master/dev/usb/
A Dusb.c45 void *cookie; member
173 status_t usb_register_callback(usb_callback_t cb, void *cookie) { in usb_register_callback() argument
182 c->cookie = cookie; in usb_register_callback()
191 c->cb(c->cookie, op, args); in usb_do_callbacks()
/lk-master/lib/devicetree/
A Ddevicetreedump.c57 int node_cb(int depth, const char *name, void *cookie) { in node_cb() argument
64 int prop_cb(const char *name, u8 *data, u32 size, void *cookie) { in prop_cb() argument
A Ddevicetree.c147 int dt_walk(devicetree_t *dtree, dt_node_cb ncb, dt_prop_cb pcb, void *cookie) { in dt_walk() argument
167 if (ncb(depth, p, cookie)) in dt_walk()
181 if (pcb((const char *) (ds.data + str), data, sz, cookie)) in dt_walk()
/lk-master/dev/usb/class/bulktest/
A Dbulktest.c96 static status_t bulktest_usb_cb(void *cookie, usb_callback_op_t op, const union usb_callback_args *… in bulktest_usb_cb() argument
97 LTRACEF("cookie %p, op %u, args %p\n", cookie, op, args); in bulktest_usb_cb()
/lk-master/target/nucleo-f072rb/
A Dusb.c178 static status_t usb_cb(void *cookie, usb_callback_op_t op, const union usb_callback_args *args) { in usb_cb() argument
179 LTRACEF("cookie %p, op %u, args %p\n", cookie, op, args); in usb_cb()
/lk-master/lib/minip/
A Ddhcp.c39 u32 cookie; member
98 s.msg.cookie = 0x63538263; in dhcp_discover()
134 s.msg.cookie = 0x63538263; in dhcp_request()
/lk-master/dev/usb/class/cdcserial/
A Dcdcserial.c119 void *cookie, in usb_register_cb() argument
123 cdcserial_channel_t *chan = cookie; in usb_register_cb()
/lk-master/app/moot/
A Dusbboot.c110 void *cookie, usb_callback_op_t op, const union usb_callback_args *args);
284 void *cookie, in usb_register_cb() argument

Completed in 25 milliseconds

12