Lines Matching defs:cookie
23 usb_rndis_device_added(usb_device device, void **cookie)
25 *cookie = NULL;
37 *cookie = gRNDISDevices[i];
56 *cookie = rndisDevice;
71 usb_rndis_device_removed(void *cookie)
75 RNDISDevice *device = (RNDISDevice *)cookie;
162 usb_rndis_open(const char *name, uint32 flags, void **cookie)
164 TRACE("open(%s, %" B_PRIu32 ", %p)\n", name, flags, cookie);
167 *cookie = NULL;
173 *cookie = gRNDISDevices[index];
182 usb_rndis_read(void *cookie, off_t position, void *buffer, size_t *numBytes)
184 TRACE("read(%p, %" B_PRIdOFF ", %p, %lu)\n", cookie, position, buffer, *numBytes);
185 RNDISDevice *device = (RNDISDevice *)cookie;
191 usb_rndis_write(void *cookie, off_t position, const void *buffer,
194 TRACE("write(%p, %" B_PRIdOFF ", %p, %lu)\n", cookie, position, buffer, *numBytes);
195 RNDISDevice *device = (RNDISDevice *)cookie;
201 usb_rndis_control(void *cookie, uint32 op, void *buffer, size_t length)
203 TRACE("control(%p, %" B_PRIu32 ", %p, %lu)\n", cookie, op, buffer, length);
204 RNDISDevice *device = (RNDISDevice *)cookie;
210 usb_rndis_close(void *cookie)
212 TRACE("close(%p)\n", cookie);
213 RNDISDevice *device = (RNDISDevice *)cookie;
219 usb_rndis_free(void *cookie)
221 TRACE("free(%p)\n", cookie);
222 RNDISDevice *device = (RNDISDevice *)cookie;