Home
last modified time | relevance | path

Searched refs:sem_lock (Results 1 – 4 of 4) sorted by relevance

/haiku/src/add-ons/kernel/drivers/network/ether/pegasus/
H A Ddriver.c187 device->sem_lock = sem = create_sem(1, DRIVER_NAME "_lock"); in create_device()
197 delete_sem(device->sem_lock); in create_device()
207 delete_sem(device->sem_lock); in create_device()
215 delete_sem(device->sem_lock); in create_device()
225 delete_sem(device->sem_lock); in create_device()
259 delete_sem(device->sem_lock); in remove_device()
457 if ((err = acquire_sem(device->sem_lock)) != B_OK) { in pegasus_device_open()
467 release_sem(device->sem_lock); in pegasus_device_open()
701 acquire_sem(device->sem_lock); in pegasus_device_close()
714 release_sem(device->sem_lock); in pegasus_device_close()
H A Ddriver.h87 sem_id sem_lock; member
/haiku/src/add-ons/kernel/drivers/midi/usb_midi/
H A Dusb_midi.cpp95 midiDevice->sem_lock = sem = create_sem(1, DRIVER_NAME "_lock"); in create_device()
108 delete_sem(midiDevice->sem_lock); in create_device()
118 delete_sem(midiDevice->sem_lock); in create_device()
152 delete_sem(midiDevice->sem_lock); in remove_device()
248 acquire_sem(midiDevice->sem_lock); in midi_usb_read_callback()
268 release_sem(midiDevice->sem_lock); in midi_usb_read_callback()
271 release_sem(midiDevice->sem_lock); in midi_usb_read_callback()
277 release_sem(midiDevice->sem_lock); in midi_usb_read_callback()
591 acquire_sem(midiDevice->sem_lock); in usb_midi_read()
594 release_sem(midiDevice->sem_lock); in usb_midi_read()
H A Dusb_midi.h80 sem_id sem_lock; member