Searched refs:cookie (Results 1 - 25 of 967) sorted by relevance

1234567891011>>

/haiku/src/add-ons/kernel/drivers/audio/ac97/ichaudio/
H A Dio.c35 status_t ich_codec_wait(ichaudio_cookie *cookie);
38 ich_reg_read_8(ichaudio_cookie *cookie, int regno) argument
41 ASSERT(((cookie->flags & TYPE_ICH4) != 0 && regno <= 255) || regno <= 63);
42 if (cookie->flags & TYPE_ICH4)
43 return *(uint8 *)((char *)cookie->mbbar + regno);
45 return cookie->pci->read_io_8(cookie->nabmbar + regno);
49 ich_reg_read_16(ichaudio_cookie *cookie, int regno) argument
52 ASSERT(((cookie->flags & TYPE_ICH4) != 0 && regno <= 255) || regno <= 63);
53 if (cookie
60 ich_reg_read_32(ichaudio_cookie *cookie, int regno) argument
72 ich_reg_write_8(ichaudio_cookie *cookie, int regno, uint8 value) argument
84 ich_reg_write_16(ichaudio_cookie *cookie, int regno, uint16 value) argument
96 ich_reg_write_32(ichaudio_cookie *cookie, int regno, uint32 value) argument
108 ich_codec_wait(ichaudio_cookie *cookie) argument
123 ichaudio_cookie *cookie = (ichaudio_cookie *)_cookie; local
142 ichaudio_cookie *cookie = (ichaudio_cookie *)_cookie; local
[all...]
H A Dio.h33 uint8 ich_reg_read_8(ichaudio_cookie *cookie, int regno);
34 uint16 ich_reg_read_16(ichaudio_cookie *cookie, int regno);
35 uint32 ich_reg_read_32(ichaudio_cookie *cookie, int regno);
37 void ich_reg_write_8(ichaudio_cookie *cookie, int regno, uint8 value);
38 void ich_reg_write_16(ichaudio_cookie *cookie, int regno, uint16 value);
39 void ich_reg_write_32(ichaudio_cookie *cookie, int regno, uint32 value);
H A Dichaudio.c5 status_t ichaudio_attach(audio_drv_t *drv, void **cookie);
6 status_t ichaudio_powerctl(audio_drv_t *drv, void *cookie, int op);
7 status_t ichaudio_detach(audio_drv_t *drv, void *cookie);
8 status_t ichaudio_stream_attach(audio_drv_t *drv, void *cookie, int stream_id);
9 status_t ichaudio_stream_detach(audio_drv_t *drv, void *cookie, int stream_id);
10 status_t ichaudio_stream_control(audio_drv_t *drv, void *cookie, int stream_id, int op);
11 status_t ichaudio_stream_set_buffers(audio_drv_t *drv, void *cookie, int stream_id, uint32 *buffer_size, stream_buffer_desc_t *desc);
12 status_t ichaudio_stream_set_frame_rate(audio_drv_t *drv, void *cookie, int stream_id, uint32 *frame_rate);
14 void stream_reset(ichaudio_cookie *cookie, uint32 regbase);
95 ichaudio_cookie *cookie; local
279 ichaudio_cookie *cookie = (ichaudio_cookie *)_cookie; local
301 stream_reset(ichaudio_cookie *cookie, uint32 regbase) argument
323 ichaudio_cookie *cookie = (ichaudio_cookie *) _cookie; local
357 ichaudio_cookie *cookie = (ichaudio_cookie *)_cookie; local
378 ichaudio_cookie *cookie = (ichaudio_cookie *)_cookie; local
[all...]
/haiku/src/add-ons/kernel/drivers/dvb/cx23882/
H A Ddvb_interface.h30 status_t interface_attach(void **cookie, const pci_info *info);
31 void interface_detach(void *cookie);
32 status_t interface_ioctl(void *cookie, uint32 op, void *arg, size_t len);
/haiku/headers/os/drivers/
H A Dinterrupt_controller.h24 status_t (*get_controller_info)(void *cookie,
27 status_t (*enable_io_interrupt)(void *cookie, int irq, int type);
28 status_t (*disable_io_interrupt)(void *cookie, int irq);
35 int (*acknowledge_io_interrupt)(void *cookie);
/haiku/src/add-ons/kernel/drivers/audio/cmedia/
H A Djoy.c14 static status_t joy_open(const char *name, uint32 flags, void **cookie);
15 static status_t joy_close(void *cookie);
16 static status_t joy_free(void *cookie);
17 static status_t joy_control(void *cookie, uint32 op, void *data, size_t len);
18 static status_t joy_read(void *cookie, off_t pos, void *data, size_t *len);
19 static status_t joy_write(void *cookie, off_t pos, const void *data, size_t *len);
44 void ** cookie)
51 *cookie = NULL;
61 return (*gameport->open_hook)(cards[ix].joy.driver, flags, cookie);
67 void * cookie)
41 joy_open( const char * name, uint32 flags, void ** cookie) argument
66 joy_close( void * cookie) argument
74 joy_free( void * cookie) argument
82 joy_control( void * cookie, uint32 iop, void * data, size_t len) argument
93 joy_read( void * cookie, off_t pos, void * data, size_t * nread) argument
104 joy_write( void * cookie, off_t pos, const void * data, size_t * nwritten) argument
[all...]
H A Dmidi.c57 static status_t midi_open(const char *name, uint32 flags, void **cookie);
58 static status_t midi_close(void *cookie);
59 static status_t midi_free(void *cookie);
60 static status_t midi_control(void *cookie, uint32 op, void *data, size_t len);
61 static status_t midi_read(void *cookie, off_t pos, void *data, size_t *len);
62 static status_t midi_write(void *cookie, off_t pos, const void *data, size_t *len);
82 void ** cookie)
89 *cookie = NULL;
101 ret = (*mpu401->open_hook)(cards[ix].midi.driver, flags, cookie);
103 cards[ix].midi.cookie
79 midi_open( const char * name, uint32 flags, void ** cookie) argument
112 midi_close( void * cookie) argument
121 midi_free( void * cookie) argument
143 midi_control( void * cookie, uint32 iop, void * data, size_t len) argument
154 midi_read( void * cookie, off_t pos, void * ptr, size_t * nread) argument
165 midi_write( void * cookie, off_t pos, const void * ptr, size_t * nwritten) argument
[all...]
/haiku/src/add-ons/kernel/drivers/audio/emuxki/
H A Djoy.c17 static status_t joy_open(const char *name, uint32 flags, void **cookie);
18 static status_t joy_close(void *cookie);
19 static status_t joy_free(void *cookie);
20 static status_t joy_control(void *cookie, uint32 op, void *data, size_t len);
21 static status_t joy_read(void *cookie, off_t pos, void *data, size_t *len);
22 static status_t joy_write(void *cookie, off_t pos, const void *data, size_t *len);
42 joy_open(const char * name, uint32 flags, void ** cookie) argument
49 *cookie = NULL;
59 return (*gameport->open_hook)(cards[ix].joy.driver, flags, cookie);
64 joy_close(void * cookie) argument
71 joy_free(void * cookie) argument
78 joy_control(void * cookie, uint32 iop, void * data, size_t len) argument
85 joy_read(void * cookie, off_t pos, void * data, size_t * nread) argument
92 joy_write(void * cookie, off_t pos, const void * data, size_t * nwritten) argument
[all...]
H A Dmidi.c77 static status_t midi_open(const char *name, uint32 flags, void **cookie);
78 static status_t midi_close(void *cookie);
79 static status_t midi_free(void *cookie);
80 static status_t midi_control(void *cookie, uint32 op, void *data, size_t len);
81 static status_t midi_read(void *cookie, off_t pos, void *data, size_t *len);
82 static status_t midi_write(void *cookie, off_t pos, const void *data, size_t *len);
102 void ** cookie)
109 *cookie = NULL;
121 ret = (*mpu401->open_hook)(cards[ix].midi.driver, flags, cookie);
123 cards[ix].midi.cookie
99 midi_open( const char * name, uint32 flags, void ** cookie) argument
132 midi_close( void * cookie) argument
141 midi_free( void * cookie) argument
163 midi_control( void * cookie, uint32 iop, void * data, size_t len) argument
174 midi_read( void * cookie, off_t pos, void * ptr, size_t * nread) argument
185 midi_write( void * cookie, off_t pos, const void * ptr, size_t * nwritten) argument
[all...]
/haiku/src/tests/kits/media/soundplayer/
H A DSimplePlayerTest.cpp26 cookie_record* cookie = (cookie_record*)_cookie;
33 buf[i + j] = cookie->value;
36 if (cookie->direction == 1.0 && cookie->value >= 1.0)
37 cookie->direction = -1.0;
38 else if (cookie->direction == -1.0 && cookie->value <= -1.0)
39 cookie->direction = 1.0;
41 cookie->value += cookie
51 cookie_record cookie; local
[all...]
/haiku/headers/private/virtio/
H A Dvirtio.h53 // sim cookie, issued by virtio bus manager
55 // device cookie, issued by virtio bus manager
57 // queue cookie, issued by virtio bus manager
60 typedef void (*virtio_callback_func)(void* driverCookie, void* cookie);
62 typedef void (*virtio_intr_func)(void* cookie);
79 void (*set_sim)(void* cookie, virtio_sim sim);
80 status_t (*read_host_features)(void* cookie, uint32* features);
81 status_t (*write_guest_features)(void* cookie, uint32 features);
82 uint8 (*get_status)(void* cookie);
83 void (*set_status)(void* cookie, uint
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/
H A Dntfsdir.c42 dircookie *cookie = (dircookie*)_dirent; local
48 || cookie->show_sys_files) {
60 new_entry->ent->d_dev = cookie->dev_id;
65 if (cookie->cache_root == NULL || cookie->entry == NULL) {
66 cookie->cache_root = new_entry;
67 cookie->entry = cookie->cache_root;
68 cookie->entry->next = NULL;
70 cookie
88 dircookie *cookie = (dircookie*)_cookie; local
116 dircookie *cookie = NULL; local
157 fs_closedir(fs_volume *_vol, fs_vnode *_node, void *cookie) argument
169 dircookie *cookie = (dircookie*)_cookie; local
246 dircookie *cookie = (dircookie*)_cookie; local
[all...]
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dps2_standard_mouse.cpp92 ps2_packet_to_movement(standard_mouse_cookie* cookie, uint8 packet[], argument
102 if (buttons != 0 && cookie->buttons_state == 0) {
103 if (cookie->click_last_time + cookie->click_speed > currentTime)
104 cookie->click_count++;
106 cookie->click_count = 1;
108 cookie->click_last_time = currentTime;
111 cookie->buttons_state = buttons;
113 if (cookie->flags & F_MOUSE_TYPE_INTELLIMOUSE) {
119 if (cookie
155 standard_mouse_read_event(standard_mouse_cookie* cookie, mouse_movement* movement) argument
210 standard_mouse_cookie* cookie = (standard_mouse_cookie*)dev->cookie; local
310 standard_mouse_cookie* cookie; local
401 standard_mouse_cookie* cookie = (standard_mouse_cookie*)_cookie; local
422 standard_mouse_cookie* cookie = (standard_mouse_cookie*)_cookie; local
429 standard_mouse_read(void* cookie, off_t pos, void* buffer, size_t* _length) argument
437 standard_mouse_write(void* cookie, off_t pos, const void* buffer, size_t* _length) argument
448 standard_mouse_cookie* cookie = (standard_mouse_cookie*)_cookie; local
[all...]
H A Dps2_elantech.cpp35 FireEvent(elantech_cookie* cookie, uint8* package) argument
37 fCookie = cookie;
123 get_elantech_movement(elantech_cookie *cookie, mouse_movement *movement) argument
128 status_t status = acquire_sem_etc(cookie->sem, 1, B_CAN_INTERRUPT, 0);
132 if (!cookie->dev->active) {
137 if (packet_buffer_read(cookie->ring_buffer, packet,
138 cookie->dev->packet_size) != cookie->dev->packet_size) {
143 if (cookie->crcEnabled && (packet[3] & 0x08) != 0) {
146 } else if (!cookie
300 elantech_write_reg(elantech_cookie* cookie, uint8 reg, uint8 value) argument
354 elantech_read_reg(elantech_cookie* cookie, uint8 reg, uint8 *value) argument
402 get_resolution_v4(elantech_cookie* cookie, uint32* x, uint32* y) argument
415 get_range(elantech_cookie* cookie, uint32* x_min, uint32* y_min, uint32* x_max, uint32* y_max, uint32 *width) argument
460 enable_absolute_mode(elantech_cookie* cookie) argument
523 elantech_cookie* cookie = (elantech_cookie*)malloc( local
662 elantech_cookie *cookie = (elantech_cookie*)_cookie; local
698 elantech_cookie *cookie = (elantech_cookie*)_cookie; local
731 elantech_read(void* cookie, off_t pos, void* buffer, size_t* _length) argument
739 elantech_write(void* cookie, off_t pos, const void* buffer, size_t* _length) argument
749 elantech_cookie* cookie = (elantech_cookie*)dev->cookie; local
777 elantech_cookie *cookie = (elantech_cookie*)dev->cookie; local
[all...]
/haiku/src/system/kernel/device_manager/
H A DAbstractModuleDevice.cpp69 AbstractModuleDevice::Read(void* cookie, off_t pos, void* buffer, size_t* _length) argument
72 return BaseDevice::Read(cookie, pos, buffer, _length);
73 return Module()->read(cookie, pos, buffer, _length);
78 AbstractModuleDevice::Write(void* cookie, off_t pos, const void* buffer, size_t* _length) argument
81 return BaseDevice::Write(cookie, pos, buffer, _length);
82 return Module()->write(cookie, pos, buffer, _length);
87 AbstractModuleDevice::IO(void* cookie, io_request* request) argument
90 return BaseDevice::IO(cookie, request);
91 return Module()->io(cookie, request);
96 AbstractModuleDevice::Control(void* cookie, int3 argument
105 Select(void* cookie, uint8 event, selectsync* sync) argument
114 Deselect(void* cookie, uint8 event, selectsync* sync) argument
123 Close(void* cookie) argument
130 Free(void* cookie) argument
[all...]
/haiku/src/add-ons/kernel/drivers/audio/ac97/ich/
H A Dac97_multi.h31 status_t multi_control(void *cookie, uint32 op, void *data, size_t length);
/haiku/src/apps/devices/
H A Ddm_wrapper.h16 status_t get_root(device_node_cookie *cookie);
17 status_t get_child(device_node_cookie *cookie);
18 status_t get_next_child(device_node_cookie *cookie);
/haiku/src/bin/listdev/
H A Ddm_wrapper.h15 status_t get_root(device_node_cookie *cookie);
16 status_t get_child(device_node_cookie *cookie);
17 status_t get_next_child(device_node_cookie *cookie);
/haiku/src/add-ons/kernel/busses/scsi/ahci/
H A Dahci_sim.cpp21 ahci_set_scsi_bus(scsi_sim_cookie cookie, scsi_bus bus) argument
28 ahci_scsi_io(scsi_sim_cookie cookie, scsi_ccb *request) argument
30 FLOW("ahci_scsi_io, cookie %p, path_id %u, target_id %u, target_lun %u\n",
31 cookie, request->path_id, request->target_id, request->target_lun);
32 static_cast<AHCIController *>(cookie)->ExecuteRequest(request);
38 ahci_abort_io(scsi_sim_cookie cookie, scsi_ccb *request) argument
40 TRACE("ahci_abort_io, cookie %p\n", cookie);
41 return static_cast<AHCIController *>(cookie)->AbortRequest(request);
46 ahci_reset_device(scsi_sim_cookie cookie, ucha argument
55 ahci_terminate_io(scsi_sim_cookie cookie, scsi_ccb *request) argument
64 ahci_path_inquiry(scsi_sim_cookie cookie, scsi_path_inquiry *info) argument
83 ahci_scan_bus(scsi_sim_cookie cookie) argument
92 ahci_reset_bus(scsi_sim_cookie cookie) argument
104 ahci_get_restrictions(scsi_sim_cookie cookie, uchar targetID, bool *isATAPI, bool *noAutoSense, uint32 *maxBlocks) argument
114 ahci_ioctl(scsi_sim_cookie cookie, uint8 targetID, uint32 op, void *buffer, size_t length) argument
160 ahci_sim_uninit_bus(void *cookie) argument
171 ahci_sim_bus_removed(void *cookie) argument
[all...]
/haiku/src/add-ons/kernel/drivers/audio/sb16/
H A Dhooks.c6 sb16_open (const char *name, uint32 flags, void** cookie) argument
20 *cookie = dev;
25 sb16_read (void* cookie, off_t position, void *buf, size_t* num_bytes) argument
32 sb16_write (void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
39 sb16_control (void* cookie, uint32 op, void* arg, size_t len) argument
41 if (cookie)
42 return multi_audio_control(cookie, op, arg, len);
48 sb16_close (void* cookie) argument
50 sb16_dev_t* dev = (sb16_dev_t*)cookie;
57 sb16_free (void* cookie) argument
[all...]
/haiku/src/add-ons/kernel/drivers/audio/ac97/geode/
H A Ddevice.cpp14 geode_open(const char *name, uint32 flags, void** cookie) argument
37 *cookie = controller;
43 geode_read(void* cookie, off_t position, void *buf, size_t* numBytes) argument
52 geode_write(void* cookie, off_t position, const void* buffer, size_t* numBytes) argument
61 geode_control(void* cookie, uint32 op, void* arg, size_t length) argument
63 geode_controller* controller = (geode_controller*)cookie;
69 geode_close(void* cookie) argument
71 geode_controller* controller = (geode_controller*)cookie;
80 geode_free(void* cookie) argument
82 geode_controller* controller = (geode_controller*)cookie;
[all...]
/haiku/src/add-ons/kernel/drivers/audio/null/
H A Ddriver.c51 null_audio_open (const char *name, uint32 flags, void** cookie) argument
54 *cookie = &device;
60 null_audio_read (void* cookie, off_t a, void* b, size_t* num_bytes) argument
71 null_audio_write (void* cookie, off_t a, const void* b, size_t* num_bytes) argument
82 null_audio_control (void* cookie, uint32 op, void* arg, size_t len) argument
85 // In case we have a valid cookie, initialized
88 if (cookie)
89 return multi_audio_control(cookie, op, arg, len);
91 dprintf("null_audio: %s called without cookie\n" , __func__);
99 null_audio_close (void* cookie) argument
110 null_audio_free(void* cookie) argument
[all...]
/haiku/src/add-ons/kernel/drivers/audio/hda/
H A Ddevice.cpp14 hda_open(const char* name, uint32 flags, void** cookie) argument
37 *cookie = controller;
47 hda_read(void* cookie, off_t position, void* buffer, size_t* numBytes) argument
55 hda_write(void* cookie, off_t position, const void* buffer, size_t* numBytes) argument
63 hda_control(void* cookie, uint32 op, void* arg, size_t length) argument
65 hda_controller* controller = (hda_controller*)cookie;
74 hda_close(void* cookie) argument
76 hda_controller* controller = (hda_controller*)cookie;
85 hda_free(void* cookie) argument
87 hda_controller* controller = (hda_controller*)cookie;
[all...]
/haiku/src/add-ons/kernel/drivers/tty/
H A Dmaster.cpp38 create_master_cookie(master_cookie *&cookie, struct tty *master, argument
41 cookie = (master_cookie*)malloc(sizeof(struct master_cookie));
42 if (cookie == NULL)
45 status_t error = init_tty_cookie(cookie, master, slave, openMode);
47 free(cookie);
95 master_cookie *cookie; local
96 status = create_master_cookie(cookie, &gMasterTTYs[index],
103 add_tty_cookie(cookie);
105 *_cookie = cookie;
114 master_cookie *cookie local
135 master_cookie *cookie = (master_cookie *)_cookie; local
150 master_cookie *cookie = (master_cookie *)_cookie; local
162 master_cookie *cookie = (master_cookie *)_cookie; local
179 master_cookie *cookie = (master_cookie *)_cookie; local
196 master_cookie *cookie = (master_cookie *)_cookie; local
205 master_cookie *cookie = (master_cookie *)_cookie; local
[all...]
/haiku/src/add-ons/kernel/drivers/audio/echo/
H A Dmidi.cpp29 static status_t midi_open(const char *name, uint32 flags, void **cookie);
30 static status_t midi_close(void *cookie);
31 static status_t midi_free(void *cookie);
32 static status_t midi_control(void *cookie, uint32 op, void *data, size_t len);
33 static status_t midi_read(void *cookie, off_t pos, void *data, size_t *len);
34 static status_t midi_write(void *cookie, off_t pos, const void *data, size_t *len);
51 midi_open(const char* name, uint32 flags, void** cookie) argument
57 *cookie = NULL;
68 *cookie = &cards[ix];
77 midi_close(void* cookie) argument
85 midi_free(void* cookie) argument
100 midi_control(void* cookie, uint32 iop, void* data, size_t len) argument
109 midi_read(void* cookie, off_t pos, void* ptr, size_t* nread) argument
134 midi_write(void* cookie, off_t pos, const void* ptr, size_t* _nwritten) argument
[all...]

Completed in 178 milliseconds

1234567891011>>