Searched refs:cookie (Results 26 - 50 of 989) sorted by relevance

1234567891011>>

/haiku/src/add-ons/input_server/devices/serial_mouse/
H A DMouseInputDevice.h45 virtual status_t Start(const char* name, void* cookie);
46 virtual status_t Stop(const char* name, void* cookie);
48 virtual status_t Control(const char *name, void* cookie,
51 status_t InitFromSettings(void* cookie, uint32 opcode = 0);
/haiku/src/add-ons/kernel/drivers/display/
H A Ddisplay.cpp30 display_open(void *_cookie, const char* path, int flags, void** cookie) argument
33 *cookie = device;
46 display_write(void* cookie, off_t position, const void* buffer, argument
55 display_control(void* cookie, uint32 op, void* arg, size_t len) argument
62 display_close(void* cookie) argument
69 display_free(void* cookie) argument
71 display_device_info *device = (display_device_info *)cookie;
80 display_init(void *_cookie, void **cookie) argument
101 *cookie = device;
/haiku/src/system/kernel/device_manager/
H A DAbstractModuleDevice.h34 virtual status_t Read(void* cookie, off_t pos, void* buffer,
36 virtual status_t Write(void* cookie, off_t pos, const void* buffer,
38 virtual status_t IO(void* cookie, io_request* request);
39 virtual status_t Control(void* cookie, int32 op, void* buffer,
41 virtual status_t Select(void* cookie, uint8 event, selectsync* sync);
42 virtual status_t Deselect(void* cookie, uint8 event,
45 virtual status_t Close(void* cookie);
46 virtual status_t Free(void* cookie);
49 status_t _DoIO(void* cookie, off_t pos,
H A DBaseDevice.h36 virtual status_t Read(void* cookie, off_t pos, void* buffer,
38 virtual status_t Write(void* cookie, off_t pos, const void* buffer,
40 virtual status_t IO(void* cookie, io_request* request);
41 virtual status_t Control(void* cookie, int32 op, void* buffer,
43 virtual status_t Select(void* cookie, uint8 event, selectsync* sync);
44 virtual status_t Deselect(void* cookie, uint8 event,
47 virtual status_t Close(void* cookie) = 0;
48 virtual status_t Free(void* cookie) = 0;
H A DFileDevice.h35 virtual status_t Read(void* cookie, off_t pos, void* buffer,
37 virtual status_t Write(void* cookie, off_t pos, const void* buffer,
39 virtual status_t IO(void* cookie, io_request* request);
40 virtual status_t Control(void* cookie, int32 op, void* buffer,
42 virtual status_t Select(void* cookie, uint8 event, selectsync* sync);
43 virtual status_t Deselect(void* cookie, uint8 event,
46 virtual status_t Close(void* cookie);
47 virtual status_t Free(void* cookie);
/haiku/headers/os/drivers/tty/
H A Dtty_module.h54 uint32 openMode, struct tty_cookie **cookie);
55 void (*tty_close_cookie)(struct tty_cookie *cookie);
56 void (*tty_destroy_cookie)(struct tty_cookie *cookie);
58 status_t (*tty_read)(struct tty_cookie *cookie, void *_buffer,
60 status_t (*tty_write)(struct tty_cookie *cookie, const void *buffer,
62 status_t (*tty_control)(struct tty_cookie *cookie, uint32 op,
64 status_t (*tty_select)(struct tty_cookie *cookie, uint8 event,
66 status_t (*tty_deselect)(struct tty_cookie *cookie, uint8 event,
69 status_t (*tty_hardware_signal)(struct tty_cookie *cookie,
/haiku/src/tests/kits/app/broster/
H A DBroadcastTester.cpp203 int32 cookie = 0; local
204 CHK(context.CheckNextMessage(caller1, team1, cookie, MSG_STARTED));
205 CHK(context.CheckMainArgsMessage(caller1, team1, cookie, &ref1, false));
206 CHK(context.CheckNextMessage(caller1, team1, cookie, MSG_READY_TO_RUN));
207 CHK(context.CheckMessageMessage(caller1, team1, cookie, &message));
208 CHK(context.CheckNextMessage(caller1, team1, cookie, MSG_2));
209 CHK(context.CheckNextMessage(caller1, team1, cookie, MSG_QUIT_REQUESTED));
210 CHK(context.CheckNextMessage(caller1, team1, cookie, MSG_TERMINATED));
212 cookie = 0;
213 CHK(context.CheckNextMessage(caller2, team2, cookie, MSG_STARTE
303 int32 cookie = 0; local
389 int32 cookie = 0; local
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/
H A DVolume.h60 virtual status_t DoIO(void* node, void* cookie,
62 virtual status_t CancelIO(void* node, void* cookie,
64 virtual status_t IterativeIOGetVecs(void* cookie,
67 virtual status_t IterativeIOFinished(void* cookie,
73 virtual status_t IOCtl(void* node, void* cookie,
75 virtual status_t SetFlags(void* node, void* cookie,
77 virtual status_t Select(void* node, void* cookie,
79 virtual status_t Deselect(void* node, void* cookie,
102 int openMode, int mode, void** cookie,
105 void** cookie);
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/haiku/
H A DHaikuKernelVolume.h67 virtual status_t DoIO(void* node, void* cookie,
69 virtual status_t CancelIO(void* node, void* cookie,
71 virtual status_t IterativeIOGetVecs(void* cookie,
74 virtual status_t IterativeIOFinished(void* cookie,
80 virtual status_t IOCtl(void* node, void* cookie,
82 virtual status_t SetFlags(void* node, void* cookie,
84 virtual status_t Select(void* node, void* cookie,
86 virtual status_t Deselect(void* node, void* cookie,
109 int openMode, int mode, void** cookie,
112 void** cookie);
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/
H A DVolume.h69 status_t ReadFileCache(ino_t vnodeID, void* cookie,
71 status_t WriteFileCache(ino_t vnodeID, void* cookie,
76 void* cookie, const file_io_vec* vecs,
106 status_t DoIO(void* node, void* cookie,
108 status_t CancelIO(void* node, void* cookie,
112 status_t IOCtl(void* node, void* cookie,
114 status_t SetFlags(void* node, void* cookie,
116 status_t Select(void* node, void* cookie, uint8 event,
118 status_t Deselect(void* node, void* cookie, uint8 event,
141 int openMode, int mode, void** cookie,
[all...]
/haiku/headers/private/firewire/
H A Dtimer.h26 // context, and are passed a cookie.
30 typedef void (*timer_function)(void *cookie);
37 timer_id create_timer(timer_function func, void *cookie, bigtime_t interval, uint32 flags);
/haiku/src/add-ons/kernel/drivers/dvb/cx23882/
H A Dcx23882_i2c.c30 set_scl(void *cookie, int state) argument
32 cx23882_device * device = cookie;
43 set_sda(void *cookie, int state) argument
45 cx23882_device * device = cookie;
56 get_scl(void *cookie) argument
58 cx23882_device * device = cookie;
64 get_sda(void *cookie) argument
66 cx23882_device * device = cookie;
H A Di2c_core.h30 typedef void (*i2c_set_scl)(void *cookie, int state);
31 typedef void (*i2c_set_sda)(void *cookie, int state);
32 typedef int (*i2c_get_scl)(void *cookie);
33 typedef int (*i2c_get_sda)(void *cookie);
38 i2c_bus *i2c_create_bus(void *cookie,
/haiku/src/add-ons/kernel/drivers/network/ether/usb_asix/
H A DDriver.h30 status_t usb_asix_device_added(usb_device device, void **cookie);
31 status_t usb_asix_device_removed(void *cookie);
/haiku/src/add-ons/kernel/drivers/network/ether/usb_davicom/
H A DDriver.h33 status_t usb_davicom_device_added(usb_device device, void **cookie);
34 status_t usb_davicom_device_removed(void *cookie);
/haiku/src/add-ons/kernel/busses/i2c/ocores/
H A Dkernel_interface.cpp32 .set_i2c_bus = [](i2c_bus_cookie cookie, i2c_bus bus) {
33 static_cast<OcoresI2c*>(cookie)->SetI2cBus(bus);
35 .exec_command = [](i2c_bus_cookie cookie, i2c_op op,
38 return static_cast<OcoresI2c*>(cookie)->ExecCommand(op, slaveAddress,
41 .acquire_bus = [](i2c_bus_cookie cookie) {
42 return static_cast<OcoresI2c*>(cookie)->AcquireBus();
44 .release_bus = [](i2c_bus_cookie cookie) {
45 static_cast<OcoresI2c*>(cookie)->ReleaseBus();
/haiku/src/add-ons/kernel/drivers/audio/usb/
H A DDriver.h28 extern "C" status_t usb_audio_device_added(usb_device device, void** cookie);
29 extern "C" status_t usb_audio_device_removed(void* cookie);
/haiku/src/system/runtime_loader/
H A Dadd_ons.cpp17 runtime_loader_symbol_patcher* _patcher, void* cookie);
19 runtime_loader_symbol_patcher* _patcher, void* cookie);
21 runtime_loader_symbol_patcher* _patcher, void* cookie);
23 runtime_loader_symbol_patcher* _patcher, void* cookie);
41 runtime_loader_symbol_patcher* _patcher, void* cookie)
44 = new(mynothrow) RuntimeLoaderSymbolPatcher(_patcher, cookie);
57 runtime_loader_symbol_patcher* _patcher, void* cookie)
61 if ((*patcher)->patcher == _patcher && (*patcher)->cookie == cookie) {
74 runtime_loader_symbol_patcher* _patcher, void* cookie)
40 register_defined_symbol_patcher(struct image_t* image, runtime_loader_symbol_patcher* _patcher, void* cookie) argument
56 unregister_defined_symbol_patcher(struct image_t* image, runtime_loader_symbol_patcher* _patcher, void* cookie) argument
73 register_undefined_symbol_patcher(struct image_t* image, runtime_loader_symbol_patcher* _patcher, void* cookie) argument
89 unregister_undefined_symbol_patcher(struct image_t* image, runtime_loader_symbol_patcher* _patcher, void* cookie) argument
[all...]
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dps2_alps.cpp132 get_alps_movment(alps_cookie *cookie, touchpad_read *_read) argument
138 status = acquire_sem_etc(cookie->sem, 1, B_CAN_INTERRUPT | B_RELATIVE_TIMEOUT,
143 if (!cookie->dev->active) {
148 if (packet_buffer_read(cookie->ring_buffer, event_buffer,
149 cookie->dev->packet_size) != cookie->dev->packet_size) {
171 if (cookie->previousZ == 0 && event.fingerWidth == 4 && event.zPressure == 16)
174 cookie->previousZ = event.zPressure;
322 alps_cookie* cookie = (alps_cookie*)malloc(sizeof(alps_cookie));
323 if (cookie
410 alps_cookie *cookie = (alps_cookie*)_cookie; local
446 alps_cookie *cookie = (alps_cookie*)_cookie; local
474 alps_read(void* cookie, off_t pos, void* buffer, size_t* _length) argument
482 alps_write(void* cookie, off_t pos, const void* buffer, size_t* _length) argument
492 alps_cookie* cookie = (alps_cookie*)dev->cookie; local
534 alps_cookie *cookie = (alps_cookie*)dev->cookie; local
[all...]
/haiku/src/add-ons/accelerants/3dfx/
H A D3dfx_edid.cpp19 GetI2CSignals(void* cookie, int* _clock, int* data) argument
21 (void)cookie; // avoid compiler warning for unused arg
31 SetI2CSignals(void* cookie, int _clock, int data) argument
33 (void)cookie; // avoid compiler warning for unused arg
51 bus.cookie = (void*)NULL;
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dslab.cpp15 size_t alignment, size_t maxByteUsage, uint32 flags, void *cookie,
20 cookie(cookie),
27 void* cookie; member in struct:ObjectCache
35 size_t alignment, void *cookie, object_cache_constructor constructor,
39 0, 0, cookie, constructor, destructor, NULL);
46 size_t maxMagazineCount, uint32 flags, void *cookie,
51 maxByteUsage, flags, cookie, constructor, destructor, reclaimer);
77 cache->objectConstructor(cache->cookie, object);
88 cache->objectDestructor(cache->cookie, objec
14 ObjectCache(const char *name, size_t objectSize, size_t alignment, size_t maxByteUsage, uint32 flags, void *cookie, object_cache_constructor constructor, object_cache_destructor destructor, object_cache_reclaimer reclaimer) argument
34 create_object_cache(const char *name, size_t objectSize, size_t alignment, void *cookie, object_cache_constructor constructor, object_cache_destructor destructor) argument
44 create_object_cache_etc(const char *name, size_t objectSize, size_t alignment, size_t maxByteUsage, size_t magazineCapacity, size_t maxMagazineCount, uint32 flags, void *cookie, object_cache_constructor constructor, object_cache_destructor destructor, object_cache_reclaimer reclaimer) argument
[all...]
/haiku/src/tests/system/kernel/device_manager/playground/
H A Ddriver.cpp66 uninit_driver(void* cookie) argument
72 register_child_devices(void* cookie) argument
74 device_node* node = (device_node*)cookie;
83 driver_device_removed(void* cookie) argument
123 device_close(void* cookie) argument
130 device_free(void* cookie) argument
137 device_read(void* cookie, off_t pos, void* buffer, size_t* _length) argument
144 device_write(void* cookie, off_t pos, const void* buffer, size_t* _length) argument
151 device_ioctl(void* cookie, int32 op, void* buffer, size_t length) argument
158 device_io(void* cookie, io_reques argument
[all...]
H A Dspecific_video_driver.cpp59 uninit_driver(void* cookie) argument
65 register_child_devices(void* cookie) argument
67 device_node* node = (device_node*)cookie;
76 device_removed(void* cookie) argument
109 device_close(void* cookie) argument
116 device_free(void* cookie) argument
123 device_read(void* cookie, off_t pos, void* buffer, size_t* _length) argument
130 device_write(void* cookie, off_t pos, const void* buffer, size_t* _length) argument
137 device_ioctl(void* cookie, int32 op, void* buffer, size_t length) argument
144 device_io(void* cookie, io_reques argument
[all...]
/haiku/src/add-ons/accelerants/s3/
H A Dvirge_edid.cpp23 GetI2CSignals_Alt(void* cookie, int* _clock, int* data) argument
25 uint32 index = (uint32)(addr_t)cookie;
35 SetI2CSignals_Alt(void* cookie, int _clock, int data) argument
37 uint32 index = (uint32)(addr_t)cookie;
52 GetI2CSignals(void* cookie, int* _clock, int* data) argument
54 (void)cookie; // avoid compiler warning for unused arg
65 SetI2CSignals(void* cookie, int _clock, int data) argument
67 (void)cookie; // avoid compiler warning for unused arg
95 bus.cookie = (void*)(addr_t)DDCPort;
108 bus.cookie
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/
H A DBeOSKernelVolume.cpp161 // cookie yet and cannot use calls into the FS to get the node type.
230 BeOSKernelVolume::IOCtl(void* node, void* cookie, uint32 command, argument
235 return fFSOps->ioctl(fVolumeCookie, node, cookie, (int)command, buffer,
241 BeOSKernelVolume::SetFlags(void* node, void* cookie, int flags) argument
245 return fFSOps->setflags(fVolumeCookie, node, cookie, flags);
250 BeOSKernelVolume::Select(void* node, void* cookie, uint8 event, argument
257 return fFSOps->select(fVolumeCookie, node, cookie, event, 0, sync);
262 BeOSKernelVolume::Deselect(void* node, void* cookie, uint8 event, argument
267 return fFSOps->deselect(fVolumeCookie, node, cookie, event, sync);
370 void** cookie, ino_
369 Create(void* dir, const char* name, int openMode, int mode, void** cookie, ino_t* vnid) argument
380 Open(void* node, int openMode, void** cookie) argument
389 Close(void* node, void* cookie) argument
398 FreeCookie(void* node, void* cookie) argument
407 Read(void* node, void* cookie, off_t pos, void* buffer, size_t bufferSize, size_t* bytesRead) argument
418 Write(void* node, void* cookie, off_t pos, const void* buffer, size_t bufferSize, size_t* bytesWritten) argument
453 OpenDir(void* node, void** cookie) argument
462 CloseDir(void* node, void* cookie) argument
471 FreeDirCookie(void* node, void* cookie) argument
480 ReadDir(void* node, void* cookie, void* buffer, size_t bufferSize, uint32 count, uint32* countRead) argument
495 RewindDir(void* node, void* cookie) argument
508 OpenAttrDir(void* node, void** cookie) argument
517 CloseAttrDir(void* node, void* cookie) argument
526 FreeAttrDirCookie(void* node, void* cookie) argument
535 ReadAttrDir(void* node, void* cookie, void* buffer, size_t bufferSize, uint32 count, uint32* countRead) argument
550 RewindAttrDir(void* node, void* cookie) argument
563 CreateAttr(void* node, const char* name, uint32 type, int openMode, void** cookie) argument
571 OpenAttr(void* node, const char* name, int openMode, void** cookie) argument
579 CloseAttr(void* node, void* cookie) argument
588 AttributeCookie* cookie = (AttributeCookie*)_cookie; local
604 AttributeCookie* cookie = (AttributeCookie*)_cookie; local
624 AttributeCookie* cookie = (AttributeCookie*)_cookie; local
644 AttributeCookie* cookie = (AttributeCookie*)_cookie; local
691 OpenIndexDir(void** cookie) argument
700 CloseIndexDir(void* cookie) argument
709 FreeIndexDirCookie(void* cookie) argument
718 ReadIndexDir(void* cookie, void* buffer, size_t bufferSize, uint32 count, uint32* countRead) argument
733 RewindIndexDir(void* cookie) argument
787 OpenQuery(const char* queryString, uint32 flags, port_id port, uint32 token, void** cookie) argument
798 CloseQuery(void* cookie) argument
807 FreeQueryCookie(void* cookie) argument
816 ReadQuery(void* cookie, void* buffer, size_t bufferSize, uint32 count, uint32* countRead) argument
865 AttributeCookie* cookie = new(nothrow) AttributeCookie(name, type, local
[all...]

Completed in 202 milliseconds

1234567891011>>