Searched refs:device (Results 51 - 75 of 905) sorted by relevance

1234567891011>>

/haiku/headers/os/kernel/
H A Dfs_index.h27 extern int fs_create_index(dev_t device, const char *name, uint32 type, uint32 flags);
28 extern int fs_remove_index(dev_t device, const char *name);
29 extern int fs_stat_index(dev_t device, const char *name, struct index_info *indexInfo);
31 extern DIR *fs_open_index_dir(dev_t device);
/haiku/src/add-ons/kernel/generic/scsi_periph/
H A Dsync.cpp22 periph_synchronize_cache(scsi_periph_device_info *device, scsi_ccb *request) argument
31 request->timeout = device->std_timeout;
44 device->scsi->sync_io(request);
46 return periph_check_error(device, request);
H A Dscsi_periph_int.h20 TRIM_NONE, // TRIM operation is disabled for this device
37 bool removable; // true, if device is removable
56 scsi_periph_device_info *device; member in struct:scsi_periph_handle_info
70 void periph_media_changed(scsi_periph_device_info *device, scsi_ccb *ccb);
71 void periph_media_changed_public(scsi_periph_device_info *device);
73 err_res periph_send_start_stop(scsi_periph_device_info *device, scsi_ccb *request,
79 err_res periph_check_error(scsi_periph_device_info *device, scsi_ccb *request);
84 status_t periph_handle_open(scsi_periph_device_info *device, periph_handle_cookie periph_handle,
92 status_t periph_check_capacity(scsi_periph_device_info *device, scsi_ccb *ccb);
93 status_t periph_trim_device(scsi_periph_device_info *device, scsi_cc
[all...]
/haiku/src/bin/
H A Dsetusbconfig.cpp11 printf("usage: %s <device> <configuration index>\n", argv[0]);
15 BUSBDevice device(argv[1]);
16 if (device.InitCheck() != B_OK) {
17 printf("failed to open device %s\n", argv[1]);
27 const BUSBConfiguration *config = device.ConfigurationAt(index);
33 status_t result = device.SetConfiguration(config);
39 printf("configuration %lu set on device %s\n", index, argv[1]);
H A Ddiskimage.cpp26 " %s unregister ( <file> | <device path> | <device ID> )\n"
28 "Registers a regular file as disk device, unregisters an already "
54 BDiskDevice device; local
55 while (roster.GetNextDevice(&device) == B_OK) {
56 if (!device.IsFile())
60 printf("%6" B_PRId32 " ", device.ID());
65 device.GetFilePath(&path) == B_OK ? path.Path() : "???");
67 // device path
68 printf("%s", device
103 BDiskDevice device; local
126 BDiskDevice device; local
160 BDiskDevice device; local
[all...]
/haiku/headers/private/fs_shell/
H A Dfssh_fs_index.h27 extern int fssh_fs_create_index(fssh_dev_t device, const char *name,
29 extern int fssh_fs_remove_index(fssh_dev_t device, const char *name);
30 extern int fssh_fs_stat_index(fssh_dev_t device, const char *name,
33 extern fssh_DIR *fssh_fs_open_index_dir(fssh_dev_t device);
/haiku/src/add-ons/kernel/network/ppp/modem/
H A Dmodem.cpp30 ModemDevice *device;
33 device = new ModemDevice(*subInterface, settings);
34 success = subInterface->SetDevice(device);
36 device = new ModemDevice(mainInterface, settings);
37 success = mainInterface.SetDevice(device);
41 success && device && device->InitCheck() == B_OK ? "OK" : "ERROR");
43 return success && device && device->InitCheck() == B_OK;
/haiku/src/add-ons/kernel/bus_managers/pci/
H A Dpci_fixup.cpp21 * mode but this seems to be a problem with the device manager (it tries to load
25 jmicron_fixup_ahci(PCI *pci, uint8 domain, uint8 bus, uint8 device, argument
42 dprintf("jmicron_fixup_ahci: domain %u, bus %u, device %u, function %u, "
43 "deviceId 0x%04x\n", domain, bus, device, function, deviceId);
46 uint32 val = pci->ReadConfig(domain, bus, device, function, 0x40, 4);
71 pci->WriteConfig(domain, bus, device, function, 0x40, 4, val);
75 uint8 irq = pci->ReadConfig(domain, bus, device, function, 0x3c, 1);
76 dprintf("jmicron_fixup_ahci: Assigning IRQ %d at device "
78 pci->WriteConfig(domain, bus, device, 1, 0x3c, 1, irq);
83 intel_fixup_ahci(PCI *pci, uint8 domain, uint8 bus, uint8 device, argument
159 ati_fixup_ixp(PCI *pci, uint8 domain, uint8 bus, uint8 device, uint8 function, uint16 deviceId) argument
191 pci_fixup_device(PCI *pci, uint8 domain, uint8 bus, uint8 device, uint8 function) argument
[all...]
/haiku/src/add-ons/media/media-add-ons/multi_audio/
H A DMultiAudioUtility.cpp24 call_driver(int device, int32 op, T* data) argument
26 if (ioctl(device, op, data, sizeof(T)) != 0)
167 get_description(int device, multi_description* description) argument
169 return call_driver(device, B_MULTI_GET_DESCRIPTION, description);
174 get_enabled_channels(int device, multi_channel_enable* enable) argument
176 return call_driver(device, B_MULTI_GET_ENABLED_CHANNELS, enable);
181 set_enabled_channels(int device, multi_channel_enable* enable) argument
183 return call_driver(device, B_MULTI_SET_ENABLED_CHANNELS, enable);
188 get_global_format(int device, multi_format_info* info) argument
190 return call_driver(device, B_MULTI_GET_GLOBAL_FORMA
195 set_global_format(int device, multi_format_info* info) argument
202 get_buffers(int device, multi_buffer_list* list) argument
209 buffer_exchange(int device, multi_buffer_info* info) argument
216 list_mix_controls(int device, multi_mix_control_info* info) argument
223 get_mix(int device, multi_mix_value_info* info) argument
230 set_mix(int device, multi_mix_value_info* info) argument
[all...]
/haiku/src/add-ons/kernel/network/stack/
H A Ddevice_interfaces.h30 struct net_device* device; member in struct:net_device_interface
33 // a device can be brought up by more than one interface
54 // device interfaces
70 status_t unregister_device_deframer(net_device* device);
71 status_t register_device_deframer(net_device* device,
73 status_t register_domain_device_handler(struct net_device* device, int32 type,
75 status_t register_device_handler(struct net_device* device, int32 type,
77 status_t unregister_device_handler(struct net_device* device, int32 type);
78 status_t register_device_monitor(struct net_device* device,
80 status_t unregister_device_monitor(struct net_device* device,
[all...]
H A Ddevice_interfaces.cpp44 /*! A service thread for each device interface. It just reads as many packets
46 device interface.
52 net_device* device = interface->device; local
55 while ((device->flags & IFF_UP) != 0) {
57 status = device->module->receive_data(device, &buffer);
59 // feed device monitors
65 if (interface->deframe_func(interface->device, buffer) != B_OK) {
67 atomic_add((int32*)&device
100 net_device* device = interface->device; local
156 domain_receive_adapter(void* cookie, net_device* device, net_buffer* buffer) argument
180 allocate_device_interface(net_device* device, net_device_module_info* module) argument
406 net_device* device = interface->device; local
477 net_device* device; local
520 net_device* device = interface->device; local
573 net_device* device = interface->device; local
596 unregister_device_deframer(net_device* device) argument
622 register_device_deframer(net_device* device, net_deframe_func deframeFunc) argument
645 register_domain_device_handler(struct net_device* device, int32 type, struct net_domain* _domain) argument
659 register_device_handler(struct net_device* device, int32 type, net_receive_func receiveFunc, void* cookie) argument
696 unregister_device_handler(struct net_device* device, int32 type) argument
726 register_device_monitor(net_device* device, net_device_monitor* monitor) argument
748 unregister_device_monitor(net_device* device, net_device_monitor* monitor) argument
780 device_link_changed(net_device* device) argument
791 device_removed(net_device* device) argument
829 device_enqueue_buffer(net_device* device, net_buffer* buffer) argument
[all...]
/haiku/src/add-ons/kernel/drivers/disk/usb/usb_disk/
H A Dusb_disk.cpp90 uint8 usb_disk_get_max_lun(disk_device *device);
91 void usb_disk_reset_recovery(disk_device *device);
92 status_t usb_disk_receive_csw(disk_device *device,
114 mutex_init(&lock, "usb_disk device lock");
131 get_dma_resource(disk_device *device, uint32 blockSize) argument
133 for (int32 i = 0; i < device->dma_resources.Count(); i++) {
134 DMAResource* r = device->dma_resources[i];
143 usb_disk_free_device_and_luns(disk_device *device) argument
145 ASSERT_LOCKED_MUTEX(&device->lock);
147 for (int32 i = 0; i < device
162 usb_disk_mass_storage_reset(disk_device *device) argument
171 usb_disk_get_max_lun(disk_device *device) argument
204 usb_disk_reset_recovery(disk_device *device, err_act *_action) argument
231 usb_disk_transfer_data(disk_device *device, bool directionIn, const transfer_data& data) argument
275 usb_disk_transfer_data(disk_device *device, bool directionIn, void* buffer, size_t dataLength) argument
293 disk_device* device = (disk_device*)cookie; local
315 receive_csw_interrupt(disk_device *device, interrupt_status_wrapper *status) argument
333 receive_csw_bulk(disk_device *device, usb_massbulk_command_status_wrapper *status) argument
362 disk_device* device = lun->device; local
441 disk_device *device = lun->device; local
1022 disk_device *device = (disk_device *)cookie; local
1033 disk_device *device = new(std::nothrow) disk_device; local
1234 disk_device *device = (disk_device *)cookie; local
1448 disk_device *device = (disk_device *)deviceCookie; local
1472 disk_device *device = lun->device; local
1490 disk_device *device = lun->device; local
1528 acquire_io_lock(disk_device *device, MutexLocker& locker, RecursiveLocker& ioLocker) argument
1567 disk_device *device = lun->device; local
1907 disk_device *device = lun->device; local
2025 disk_device *device = (disk_device *)_cookie; local
[all...]
/haiku/src/add-ons/kernel/bus_managers/scsi/
H A Dscsi_io.cpp19 /** put request back in queue because of device/bus overflow */
25 scsi_device_info *device = request->device; local
44 if (device->left_slots++ == 0 || request->ordered)
45 scsi_unblock_device_noresume(device, false);
47 // make sure it's the next request for this device
53 // add device to queue as last - other devices may be waiting already
54 scsi_add_device_queue_last(device);
55 // don't change device overflow condition as the device ha
87 scsi_device_info *device = request->device; local
142 scsi_device_info *device = request->device; local
171 finish_autosense(scsi_device_info *device) argument
207 scsi_device_info *device = request->device; local
240 scsi_device_info *device = request->device; local
342 scsi_device_info *device = request->device; local
596 scsi_device_info *device; local
[all...]
/haiku/src/add-ons/accelerants/vesa/
H A Ddpms.cpp24 if (ioctl(gInfo->device, VESA_GET_DPMS_MODE, &mode, sizeof(mode)) != 0)
34 if (ioctl(gInfo->device, VESA_SET_DPMS_MODE, &mode, sizeof(mode)) != 0)
/haiku/src/add-ons/media/media-add-ons/radeon/
H A DVIPPort.h53 int Register(int device, int address) { argument
54 return fRadeon.VIPRegister( device, address );
57 void SetRegister(int device, int address, int value) { argument
58 fRadeon.SetVIPRegister( device, address, value );
61 int ReadFifo(int device, uint32 address, uint32 count, uint8 *buffer) { argument
62 return fRadeon.VIPReadFifo( device, address, count, buffer );
65 int WriteFifo(int device, uint32 address, uint32 count, uint8 *buffer) { argument
66 return fRadeon.VIPWriteFifo( device, address, count, buffer );
/haiku/src/system/libroot/os/
H A Dfs_volume.c14 fs_mount_volume(const char *where, const char *device, argument
17 return _kern_mount(where, device, fileSystem, flags, (void *)parameters,
H A Dfs_index.c21 fs_create_index(dev_t device, const char *name, uint32 type, uint32 flags) argument
23 status_t status = _kern_create_index(device, name, type, flags);
30 fs_remove_index(dev_t device, const char *name) argument
32 status_t status = _kern_remove_index(device, name);
39 fs_stat_index(dev_t device, const char *name, struct index_info *indexInfo) argument
43 status_t status = _kern_read_index_stat(device, name, &stat);
58 fs_open_index_dir(dev_t device) argument
62 int fd = _kern_open_index_dir(device);
/haiku/src/tools/fs_shell/
H A Dnode_monitor.cpp11 fssh_notify_entry_created(fssh_mount_id device, fssh_vnode_id directory, argument
19 fssh_notify_entry_removed(fssh_mount_id device, fssh_vnode_id directory, argument
27 fssh_notify_entry_moved(fssh_mount_id device, fssh_vnode_id fromDirectory, argument
36 fssh_notify_stat_changed(fssh_mount_id device, fssh_vnode_id dir, argument
44 fssh_notify_attribute_changed(fssh_mount_id device, fssh_vnode_id dir, argument
53 fssh_mount_id device, fssh_vnode_id directory, const char *name,
62 fssh_mount_id device, fssh_vnode_id directory, const char *name,
71 fssh_mount_id device, fssh_vnode_id directory, const char *name,
52 fssh_notify_query_entry_created(fssh_port_id port, int32_t token, fssh_mount_id device, fssh_vnode_id directory, const char *name, fssh_vnode_id node) argument
61 fssh_notify_query_entry_removed(fssh_port_id port, int32_t token, fssh_mount_id device, fssh_vnode_id directory, const char *name, fssh_vnode_id node) argument
70 fssh_notify_query_attr_changed(fssh_port_id port, int32_t token, fssh_mount_id device, fssh_vnode_id directory, const char *name, fssh_vnode_id node) argument
/haiku/src/add-ons/kernel/drivers/sensor/acpi_als/
H A Dacpi_als.cpp62 acpi_GetInteger(als_driver_cookie *device, argument
72 status_t status = device->acpi->evaluate_method(device->acpi_cookie, path,
85 als_notify_handler(acpi_handle device, uint32 value, void *context) argument
92 // #pragma mark - device module API
113 als_device_cookie *device; local
114 device = (als_device_cookie*)calloc(1, sizeof(als_device_cookie));
115 if (device == NULL)
118 device->driver_cookie = (als_driver_cookie*)initCookie;
119 device
181 als_device_cookie* device = (als_device_cookie*)cookie; local
236 als_driver_cookie *device; local
288 als_driver_cookie *device = (als_driver_cookie*)driverCookie; local
300 als_driver_cookie *device = (als_driver_cookie*)cookie; local
[all...]
/haiku/src/system/kernel/fs/
H A Dnode_monitor.cpp61 dev_t device; member in struct:node_monitor
96 status_t NotifyEntryCreatedOrRemoved(int32 opcode, dev_t device,
98 status_t NotifyEntryMoved(dev_t device, ino_t fromDirectory,
101 status_t NotifyStatChanged(dev_t device, ino_t directory, ino_t node,
103 status_t NotifyAttributeChanged(dev_t device, ino_t directory,
105 status_t NotifyUnmount(dev_t device);
106 status_t NotifyMount(dev_t device, dev_t parentDevice,
118 status_t AddListener(io_context *context, dev_t device, ino_t node,
120 status_t RemoveListener(io_context *context, dev_t device, ino_t node,
125 status_t UpdateUserListener(io_context *context, dev_t device,
161 dev_t device; member in struct:NodeMonitorService::monitor_hash_key
183 _Hash(dev_t device, ino_t node) const argument
239 notify_query_entry_event(int32 opcode, port_id port, int32 token, dev_t device, ino_t directory, const char *name, ino_t node) argument
303 _RemoveListener(io_context *context, dev_t device, ino_t node, NotificationListener& notificationListener, bool isVolumeListener) argument
361 _MonitorFor(dev_t device, ino_t node, bool isVolumeListener) argument
379 _GetMonitor(io_context *context, dev_t device, ino_t node, bool addIfNecessary, node_monitor** _monitor, bool isVolumeListener) argument
469 AddListener(io_context *context, dev_t device, ino_t node, uint32 flags, NotificationListener& notificationListener) argument
490 _UpdateListener(io_context *context, dev_t device, ino_t node, uint32 flags, bool addFlags, NotificationListener& notificationListener) argument
542 _GetInterestedMonitorListeners(dev_t device, ino_t node, uint32 flags, interested_monitor_listener_list *interestedListeners, int32 &interestedListenerCount) argument
566 _GetInterestedVolumeListeners(dev_t device, uint32 flags, interested_monitor_listener_list *interestedListeners, int32 &interestedListenerCount) argument
633 _ResolveMountPoint(dev_t device, ino_t directory, dev_t& parentDevice, ino_t& parentDirectory) argument
662 NotifyEntryCreatedOrRemoved(int32 opcode, dev_t device, ino_t directory, const char *name, ino_t node) argument
704 NotifyEntryMoved(dev_t device, ino_t fromDirectory, const char *fromName, ino_t toDirectory, const char *toName, ino_t node) argument
758 NotifyStatChanged(dev_t device, ino_t directory, ino_t node, uint32 statFields) argument
818 NotifyAttributeChanged(dev_t device, ino_t directory, ino_t node, const char *attribute, int32 cause) argument
870 NotifyUnmount(dev_t device) argument
898 NotifyMount(dev_t device, dev_t parentDevice, ino_t parentDirectory) argument
955 dev_t device = eventSpecifier->GetInt32("device", -1); local
973 dev_t device = eventSpecifier->GetInt32("device", -1); local
992 dev_t device = eventSpecifier->GetInt32("device", -1); local
1000 RemoveListener(io_context *context, dev_t device, ino_t node, NotificationListener& notificationListener) argument
1048 UpdateUserListener(io_context *context, dev_t device, ino_t node, uint32 flags, UserNodeListener& userListener) argument
1110 notify_unmount(dev_t device) argument
1117 notify_mount(dev_t device, dev_t parentDevice, ino_t parentDirectory) argument
1125 remove_node_listener(dev_t device, ino_t node, NotificationListener& listener) argument
1133 add_node_listener(dev_t device, ino_t node, uint32 flags, NotificationListener& listener) argument
1154 notify_entry_created(dev_t device, ino_t directory, const char *name, ino_t node) argument
1172 notify_entry_removed(dev_t device, ino_t directory, const char *name, ino_t node) argument
1192 notify_entry_moved(dev_t device, ino_t fromDirectory, const char *fromName, ino_t toDirectory, const char *toName, ino_t node) argument
1213 notify_stat_changed(dev_t device, ino_t directory, ino_t node, uint32 statFields) argument
1232 notify_attribute_changed(dev_t device, ino_t directory, ino_t node, const char *attribute, int32 cause) argument
1253 notify_query_entry_created(port_id port, int32 token, dev_t device, ino_t directory, const char *name, ino_t node) argument
1274 notify_query_entry_removed(port_id port, int32 token, dev_t device, ino_t directory, const char *name, ino_t node) argument
1295 notify_query_attr_changed(port_id port, int32 token, dev_t device, ino_t directory, const char* name, ino_t node) argument
1322 _user_start_watching(dev_t device, ino_t node, uint32 flags, port_id port, uint32 token) argument
1334 _user_stop_watching(dev_t device, ino_t node, port_id port, uint32 token) argument
[all...]
/haiku/src/kits/storage/disk_device/
H A DDiskDevicePrivate.cpp33 PartitionFilterVisitor::Visit(BDiskDevice *device) argument
35 if (fFilter->Filter(device, 0))
36 return fVisitor->Visit(device);
63 IDFinderVisitor::Visit(BDiskDevice *device) argument
65 return (device->ID() == fID);
/haiku/src/add-ons/kernel/drivers/network/ether/pegasus/
H A Ddriver.c20 pegasus_dev *device; member in struct:driver_cookie
176 pegasus_dev *device = NULL; local
181 device = malloc(sizeof(pegasus_dev));
182 if (device == NULL)
185 memset(device, 0, sizeof(pegasus_dev));
187 device->sem_lock = sem = create_sem(1, DRIVER_NAME "_lock");
190 free(device);
194 device->rx_sem = sem = create_sem(1, DRIVER_NAME"_receive");
197 delete_sem(device->sem_lock);
198 free(device);
250 remove_device(pegasus_dev *device) argument
344 pegasus_dev *device; local
414 pegasus_dev *device = cookie; local
445 pegasus_dev *device; local
630 pegasus_dev *device; local
693 pegasus_dev *device; local
723 pegasus_dev *device; local
[all...]
/haiku/src/add-ons/media/media-add-ons/opensound/
H A DOpenSoundAddOn.cpp52 void *device = NULL; local
53 for (int32 i = 0; (device = fDevices.ItemAt(i)); i++)
54 delete (OpenSoundDevice *)device;
107 OpenSoundDevice *device = (OpenSoundDevice *) fDevices.ItemAt(n); local
111 infos[0].name = device->fCardInfo.longname;
123 OpenSoundDevice *device = (OpenSoundDevice*)fDevices.ItemAt( local
125 if (device == NULL) {
131 if (fSettings.FindMessage(device->fCardInfo.longname, config) == B_OK) {
132 fSettings.RemoveData(device->fCardInfo.longname);
138 device
246 OpenSoundDevice *device = new OpenSoundDevice(&cardinfo); local
265 OpenSoundDevice *device = (OpenSoundDevice *)(devs.ItemAt(audioinfo.card_number)); local
280 OpenSoundDevice *device = (OpenSoundDevice *)(devs.ItemAt(mixerinfo.card_number)); local
288 OpenSoundDevice *device = (OpenSoundDevice *)(devs.ItemAt(card)); local
325 OpenSoundDevice *device = (OpenSoundDevice *)(devs.ItemAt(card)); local
364 OpenSoundDevice *device = new OpenSoundDevice(path.Path() + strlen(rootPath), path.Path()); local
[all...]
/haiku/src/servers/launch/
H A DUtility.cpp13 #include <device/scsi.h>
33 int device = open(path, O_RDONLY); local
34 if (device < 0)
35 return device;
39 if (ioctl(device, opcode, buffer, bufferSize) != 0) {
44 close(device);
56 IsReadOnlyVolume(dev_t device) argument
59 status_t status = volume.SetTo(device);
61 fprintf(stderr, "Failed to get BVolume for device %" B_PRIdDEV
62 ": %s\n", device, strerro
[all...]
/haiku/src/kits/storage/
H A DVolumeRoster.cpp52 // get next device
53 dev_t device; local
55 device = next_dev(&fCookie);
56 if (device < 0)
57 error = device;
61 error = volume->SetTo(device);
80 // get device
81 dev_t device; local
83 device = dev_for_path(kBootVolumePath);
84 if (device <
[all...]

Completed in 277 milliseconds

1234567891011>>