/haiku/src/kits/storage/ |
H A D | NodeMonitorHandler.cpp | 9 NodeMonitorHandler::make_entry_ref(dev_t device, ino_t directory, argument 13 ref->device = device; 20 NodeMonitorHandler::make_node_ref(dev_t device, ino_t node, node_ref * ref) argument 22 ref->device = device; 89 dev_t device, ino_t node) 97 dev_t device, ino_t node) 105 ino_t fromDirectory, ino_t toDirectory, dev_t device,ino_t node, 113 NodeMonitorHandler::StatChanged(ino_t node, dev_t device, int3 argument 88 EntryCreated(const char *name, ino_t directory, dev_t device, ino_t node) argument 96 EntryRemoved(const char *name, ino_t directory, dev_t device, ino_t node) argument 104 EntryMoved(const char *name, const char *fromName, ino_t fromDirectory, ino_t toDirectory, dev_t device,ino_t node, dev_t nodeDevice) argument 120 AttrChanged(ino_t node, dev_t device) argument 127 DeviceMounted(dev_t new_device, dev_t device, ino_t directory) argument 150 dev_t device; local 168 dev_t device; local 188 dev_t device; local 210 dev_t device; local 226 dev_t device; local 240 dev_t device; local [all...] |
H A D | FindDirectory.cpp | 34 dev_t device = (dev_t)-1; 36 device = volume->Device(); 39 status_t error = find_directory(which, device, createIt, buffer,
|
/haiku/src/add-ons/kernel/drivers/power/pch_thermal/ |
H A D | pch_thermal.cpp | 80 pch_thermal_device_info *device = (pch_thermal_device_info *)_cookie; local 81 TRACE("pch_thermal_open %p\n", device); 82 *cookie = device; 90 pch_thermal_device_info* device = (pch_thermal_device_info*)_cookie; local 91 TRACE("pch_thermal_read %p\n", device); 100 pch_thermal_control(device, drvOpGetThermalType, &therm_info, 0); 139 pch_thermal_device_info* device = (pch_thermal_device_info*)_cookie; local 149 att->critical_temp = device->criticalTemp; 150 att->hot_temp = device->hotTemp; 152 uint16 temp = read16(device 273 pch_thermal_device_info *device; local 355 pch_thermal_device_info *device = (pch_thermal_device_info *)_cookie; local [all...] |
/haiku/src/add-ons/kernel/drivers/power/acpi_thermal/ |
H A D | acpi_thermal.c | 44 static void guess_kelvin_offset(acpi_thermal_device_info* device); 55 guess_kelvin_offset(acpi_thermal_device_info* device) argument 59 acpi_thermal_control(device, drvOpGetThermalType, &therm_info, 0); 61 device->kelvin_offset = 2732; 63 device->kelvin_offset = 2731; 70 acpi_thermal_device_info* device = (acpi_thermal_device_info*)_cookie; local 71 *cookie = device; 73 if (device->kelvin_offset == 0) 74 guess_kelvin_offset(device); 83 acpi_thermal_device_info* device local 158 acpi_thermal_device_info* device = (acpi_thermal_device_info*)_cookie; local 303 acpi_thermal_device_info* device; local 325 acpi_thermal_device_info* device = (acpi_thermal_device_info*)_cookie; local [all...] |
/haiku/src/add-ons/kernel/drivers/power/acpi_ac/ |
H A D | acpi_ac.cpp | 45 acpi_ac_update_status(acpi_ac_device_info* device) argument 51 if (device->acpi->evaluate_method(device->acpi_cookie, "_PSR", NULL, &buf) != B_OK 57 device->last_status = object->integer.integer; 58 TRACE("status %d\n", device->last_status); 65 acpi_ac_notify_handler(acpi_handle device, uint32 value, void *context) argument 77 // #pragma mark - device module API 98 acpi_ac_device_info *device = (acpi_ac_device_info *)_cookie; local 99 *cookie = device; 107 acpi_ac_device_info* device local 204 acpi_ac_device_info *device; local 237 acpi_ac_device_info *device = (acpi_ac_device_info *)driverCookie; local 249 acpi_ac_device_info *device = (acpi_ac_device_info *)driverCookie; local [all...] |
/haiku/src/add-ons/kernel/bus_managers/pci/ |
H A D | pci.cpp | 44 pci_read_config(uint8 virtualBus, uint8 device, uint8 function, uint16 offset, argument 54 if (gPCI->ReadConfig(domain, bus, device, function, offset, size, 63 pci_write_config(uint8 virtualBus, uint8 device, uint8 function, uint16 offset, argument 71 gPCI->WriteConfig(domain, bus, device, function, offset, size, value); 93 pci_find_capability(uint8 virtualBus, uint8 device, uint8 function, argument 101 return gPCI->FindCapability(domain, bus, device, function, capID, offset); 106 pci_find_extended_capability(uint8 virtualBus, uint8 device, uint8 function, argument 114 return gPCI->FindExtendedCapability(domain, bus, device, function, capID, 120 pci_reserve_device(uchar virtualBus, uchar device, uchar function, argument 126 TRACE(("pci_reserve_device(%d, %d, %d, %s)\n", virtualBus, device, functio 206 pci_unreserve_device(uchar virtualBus, uchar device, uchar function, const char *driverName, void *nodeCookie) argument 290 pci_update_interrupt_line(uchar virtualBus, uchar device, uchar function, uchar newInterruptLineValue) argument 304 pci_get_powerstate(uchar virtualBus, uint8 device, uint8 function, uint8* state) argument 316 pci_set_powerstate(uchar virtualBus, uint8 device, uint8 function, uint8 newState) argument 750 _NumFunctions(uint8 domain, uint8 bus, uint8 device) argument 1184 _CreateDevice(PCIBus *parent, uint8 device, uint8 function) argument 1557 ReadConfig(uint8 domain, uint8 bus, uint8 device, uint8 function, uint16 offset, uint8 size, uint32 *value) argument 1580 ReadConfig(uint8 domain, uint8 bus, uint8 device, uint8 function, uint16 offset, uint8 size) argument 1593 ReadConfig(PCIDev *device, uint16 offset, uint8 size) argument 1605 WriteConfig(uint8 domain, uint8 bus, uint8 device, uint8 function, uint16 offset, uint8 size, uint32 value) argument 1628 WriteConfig(PCIDev *device, uint16 offset, uint8 size, uint32 value) argument 1636 FindCapability(uint8 domain, uint8 bus, uint8 device, uint8 function, uint8 capID, uint8 *offset) argument 1693 FindCapability(PCIDev *device, uint8 capID, uint8 *offset) argument 1701 FindExtendedCapability(uint8 domain, uint8 bus, uint8 device, uint8 function, uint16 capID, uint16 *offset) argument 1738 FindExtendedCapability(PCIDev *device, uint16 capID, uint16 *offset) argument 1746 FindHTCapability(uint8 domain, uint8 bus, uint8 device, uint8 function, uint16 capID, uint8 *offset) argument 1792 FindHTCapability(PCIDev *device, uint16 capID, uint8 *offset) argument 1800 FindDevice(uint8 domain, uint8 bus, uint8 device, uint8 function) argument 1810 _FindDevice(PCIBus *current, uint8 domain, uint8 bus, uint8 device, uint8 function) argument 1840 PCIDev *device = FindDevice(domain, bus, _device, function); local 1863 GetPowerstate(PCIDev *device) argument 1876 SetPowerstate(PCIDev *device, uint8 newState) argument 1896 PCIDev *device = FindDevice(domain, bus, _device, function); local 1909 PCIDev *device = FindDevice(domain, bus, _device, function); local 1921 GetMSICount(PCIDev *device) argument 1935 ConfigureMSI(PCIDev *device, uint32 count, uint32 *startVector) argument 1982 UnconfigureMSI(PCIDev *device) argument 2013 EnableMSI(PCIDev *device) argument 2044 DisableMSI(PCIDev *device) argument 2074 GetMSIXCount(PCIDev *device) argument 2088 ConfigureMSIX(PCIDev *device, uint32 count, uint32 *startVector) argument 2179 EnableMSIX(PCIDev *device) argument 2210 _HtMSIMap(PCIDev *device, uint64 address) argument 2233 _ReadMSIInfo(PCIDev *device) argument 2259 _ReadMSIXInfo(PCIDev *device) argument 2298 _ReadHtMappingInfo(PCIDev *device) argument 2335 _UnconfigureMSIX(PCIDev *device) argument 2371 _DisableMSIX(PCIDev *device) argument [all...] |
H A D | pci_module.cpp | 52 ResolveBDF(uint8 virtualBus, uint8 device, uint8 function, PCIDev*& dev) argument 60 dev = gPCI->FindDevice(domain, bus, device, function); 95 .get_msi_count = [](uint8 bus, uint8 device, uint8 function) { 97 if (ResolveBDF(bus, device, function, dev) < B_OK) 101 .configure_msi = [](uint8 bus, uint8 device, uint8 function, uint32 count, 104 CHECK_RET(ResolveBDF(bus, device, function, dev)); 107 .unconfigure_msi = [](uint8 bus, uint8 device, uint8 function) { 109 CHECK_RET(ResolveBDF(bus, device, function, dev)); 112 .enable_msi = [](uint8 bus, uint8 device, uint8 function) { 114 CHECK_RET(ResolveBDF(bus, device, functio [all...] |
H A D | pci_private.h | 18 // name of PCI device modules 31 uint32 (*read_pci_config)(uint8 bus, uint8 device, uint8 function, 35 void (*write_pci_config)(uint8 bus, uint8 device, uint8 function, 49 status_t pci_find_capability(uint8 bus, uint8 device, uint8 function, 51 status_t pci_find_extended_capability(uint8 bus, uint8 device, uint8 function, 54 status_t pci_reserve_device(uchar virtualBus, uchar device, uchar function, 56 status_t pci_unreserve_device(uchar virtualBus, uchar device, uchar function, 59 status_t pci_update_interrupt_line(uchar virtualBus, uchar device, 61 status_t pci_get_powerstate(uchar virtualBus, uint8 device, 63 status_t pci_set_powerstate(uchar virtualBus, uint8 device, [all...] |
H A D | pci.h | 39 uint8 device; member in struct:PCIDev 92 status_t ReadConfig(uint8 domain, uint8 bus, uint8 device, 95 uint32 ReadConfig(uint8 domain, uint8 bus, uint8 device, 97 uint32 ReadConfig(PCIDev *device, uint16 offset, 100 status_t WriteConfig(uint8 domain, uint8 bus, uint8 device, 103 status_t WriteConfig(PCIDev *device, uint16 offset, 107 uint8 device, uint8 function, uint8 capID, 109 status_t FindCapability(PCIDev *device, uint8 capID, 112 uint8 device, uint8 function, uint16 capID, 114 status_t FindExtendedCapability(PCIDev *device, [all...] |
/haiku/src/add-ons/kernel/bluetooth/hci/ |
H A D | bluetooth.cpp | 70 bluetooth_device* device; local 76 device = iterator.Next(); 77 if (device->index == hid) 78 return device; 186 // TODO: device descriptor has been fetched better not 245 bluetooth_device* device = new (std::nothrow) bluetooth_device; local 246 if (device == NULL) 250 device->fBuffersRx[index] = NULL; 251 device->fExpectedPacketSize[index] = 0; 254 device 282 bluetooth_device* device = FindDeviceByID(id); local 311 bluetooth_device* device = FindDeviceByID(hciId); local 377 bluetooth_device* device; local [all...] |
/haiku/src/tests/kits/storage/ |
H A D | VolumeTest.cpp | 117 CheckVolume(BVolume &volume, dev_t device, status_t error) argument 122 CHK(fs_stat_dev(device, &info) == 0); 123 // device 124 CHK(volume.Device() == device); 129 rootNode.device = device; 228 dev_t device = dev_for_path(volumeRootDir); local 229 BVolume volume(device); 230 CheckVolume(volume, device, (device > 241 dev_t device = 213; local 268 dev_t device = dev_for_path(volumeRootDir); local 291 dev_t device = 213; local 319 dev_t device = dev_for_path(volumeRootDir); local 349 dev_t device = dev_for_path(volumeRootDir); local 372 dev_t device = dev_for_path(testMountPoint); local 447 dev_t device; local 475 dev_t device = dev_for_path("/boot"); local 539 dev_t device; local 553 dev_t device; local 576 dev_t device = dev_for_path(testMountPoint); local [all...] |
H A D | FindDirectoryTest.cpp | 104 print_directories(dev_t device) 106 printf("device id: %ld\n", device); 108 status_t error = volume.SetTo(device); 124 test_find_directory(directory_which dir, BPath &path, dev_t device) argument 131 if (device < 0) 132 device = dev_for_path("/boot"); 134 if (fs_stat_dev(device, &info) == 0) { 136 entry_ref ref(device, info.root, "home"); 149 if (device < 302 TestDirectories(dev_t device) argument 328 dev_t device = dev_for_path("/boot"); local [all...] |
/haiku/src/add-ons/kernel/drivers/audio/null/ |
H A D | driver.c | 11 device_t device; variable 26 device.running = false; 54 *cookie = &device; 101 device_t* device = (device_t*) cookie; local 103 if (device && device->running) 104 null_stop_hardware(device);
|
H A D | null_multi.c | 114 set_global_format(device_t* device, multi_format_info* data) argument 119 device->playback_stream.format = data->output.format; 120 device->playback_stream.rate = data->output.rate; 122 device->record_stream.format = data->input.format; 123 device->record_stream.rate = data->input.rate; 130 get_global_format(device_t* device, multi_format_info* data) argument 139 data->output.format = device->playback_stream.format; 140 data->output.rate = device->playback_stream.rate; 141 data->input.format = device->record_stream.format; 142 data->input.rate = device 165 list_mix_controls(device_t* device, multi_mix_control_info * data) argument 194 get_buffers(device_t* device, multi_buffer_list* data) argument 280 buffer_exchange(device_t* device, multi_buffer_info* info) argument 336 buffer_force_stop(device_t* device) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | EntryRef.cpp | 28 if (device < 0 || directory < 0) 37 uint32 hash = device; 57 device = volumeID; 66 device = ref.device; 81 device = ref.device;
|
/haiku/src/system/libroot/os/ |
H A D | fs_query.cpp | 22 open_query_etc(dev_t device, const char *query, argument 25 if (device < 0 || query == NULL || query[0] == '\0') { 31 int fd = _kern_open_query(device, query, strlen(query), flags, port, token); 49 fs_open_query(dev_t device, const char *query, uint32 flags) argument 51 return open_query_etc(device, query, flags, -1, -1); 56 fs_open_live_query(dev_t device, const char *query, argument 65 return open_query_etc(device, query, flags | B_LIVE_QUERY, port, token);
|
/haiku/src/add-ons/kernel/busses/random/virtio/ |
H A D | virtio_rng.cpp | 46 TRACE("Virtio RNG device found!\n"); 70 VirtioRNGDevice *device = new(std::nothrow) VirtioRNGDevice(node); local 71 if (device == NULL) 73 status_t status = device->InitCheck(); 75 delete device; 78 *_cookie = device; 87 VirtioRNGDevice *device = (VirtioRNGDevice*)cookie; local 88 delete device;
|
/haiku/src/tests/servers/input/view_input_device/ |
H A D | ViewInputDevice.cpp | 30 virtual status_t Start(const char *device, void *cookie); 31 virtual status_t Stop(const char *device, void *cookie); 50 input_device_ref *device[2]; local 52 device[0] = &mover; 53 device[1] = NULL; 56 RegisterDevices(device); 65 status_t ViewInputDevice::Start(const char *device, void *cookie) argument 72 _Thread = spawn_thread(_StartWatchPort, device, B_REAL_TIME_DISPLAY_PRIORITY+4, this); 78 status_t ViewInputDevice::Stop(const char *device, void *cookie) argument
|
/haiku/src/tests/kits/net/ |
H A D | wlan_test.cpp | 19 fprintf(stderr, "%s: <device> join|leave|list [<network> [<password>]]\n", 59 BNetworkDevice device(argv[1]); 60 if (!device.Exists()) { 64 if (!device.IsWireless()) { 65 fprintf(stderr, "\"%s\" is not a WLAN device!\n", argv[1]); 77 status_t status = device.JoinNetwork(argv[3], password); 87 status_t status = device.LeaveNetwork(argv[3]); 100 status = device.GetNetwork(link, network); 102 status = device.GetNetwork(argv[3], network); 113 device [all...] |
/haiku/src/add-ons/kernel/bus_managers/i2c/ |
H A D | I2CDevice.cpp | 77 I2CDevice *device = new(std::nothrow) I2CDevice(node, bus, slaveAddress); local 78 if (device == NULL) 81 status_t result = device->InitCheck(); 83 ERROR("failed to set up i2c device object\n"); 87 *_device = device; 97 I2CDevice *device = (I2CDevice *)_device; local 98 delete device; 106 //I2CDevice *device = (I2CDevice *)_device; 114 I2CDevice *device = (I2CDevice *)_device; local 115 return device 122 I2CDevice *device = (I2CDevice *)_device; local 130 I2CDevice *device = (I2CDevice *)_device; local [all...] |
/haiku/src/add-ons/kernel/bus_managers/virtio/ |
H A D | VirtioModule.cpp | 20 VirtioDevice *device = new(std::nothrow) VirtioDevice(node); local 21 if (device == NULL) 24 status_t result = device->InitCheck(); 26 ERROR("failed to set up virtio device object\n"); 27 delete device; 31 *_device = device; 40 VirtioDevice *device = (VirtioDevice *)_device; local 41 delete device; 49 //VirtioDevice *device = (VirtioDevice *)_device; 61 VirtioDevice *device local 71 VirtioDevice *device = (VirtioDevice *)_device; local 82 VirtioDevice *device = (VirtioDevice *)_device; local 93 VirtioDevice *device = (VirtioDevice *)_device; local 103 VirtioDevice *device = (VirtioDevice *)_device; local 112 VirtioDevice *device = (VirtioDevice *)_device; local 122 VirtioDevice *device = (VirtioDevice *)_device; local 131 VirtioDevice *device = (VirtioDevice *)_device; local 237 VirtioDevice* device = (VirtioDevice*)sim; local 245 VirtioDevice* device = (VirtioDevice*)sim; local [all...] |
/haiku/src/add-ons/kernel/drivers/bus/usb/ |
H A D | usb_raw.cpp | 36 usb_device device; member in struct:__anon127 59 raw_device *device = (raw_device *)malloc(sizeof(raw_device)); local 61 mutex_init(&device->lock, "usb_raw device lock"); 63 device->notify = create_sem(0, "usb_raw callback notify"); 64 if (device->notify < B_OK) { 65 mutex_destroy(&device->lock); 66 free(device); 73 snprintf(device->name, sizeof(device 98 raw_device *device = (raw_device *)cookie; local 146 usb_raw_get_configuration(raw_device *device, uint32 configIndex, status_t *status) argument 161 usb_raw_get_interface(raw_device *device, uint32 configIndex, uint32 interfaceIndex, uint32 alternateIndex, status_t *status) argument 233 raw_device *device = (raw_device *)cookie; local 251 raw_device *device = (raw_device *)cookie; local 283 raw_device *device = (raw_device *)cookie; local [all...] |
/haiku/src/add-ons/kernel/drivers/audio/ac97/sis7018/ |
H A D | Driver.cpp | 82 Device* device = new(std::nothrow) Device(cardInfos[idx], info); local 83 if (device == 0) { 87 status_t status = device->InitCheck(); 89 delete device; 93 status = device->Setup(); 95 delete device; 103 gDevices[gNumCards++] = device; 158 Device *device = (Device *)cookie; local 159 return device->Read((uint8 *)buffer, numBytes); 167 Device *device local 175 Device *device = (Device *)cookie; local 183 Device *device = (Device *)cookie; local 191 Device *device = (Device *)cookie; local [all...] |
/haiku/src/add-ons/media/media-add-ons/multi_audio/ |
H A D | MultiAudioAddOn.cpp | 59 void *device = NULL; local 60 for (int32 i = 0; (device = fDevices.ItemAt(i)); i++) 61 delete (MultiAudioDevice*)device; 88 MultiAudioDevice* device = (MultiAudioDevice*)fDevices.ItemAt(index); local 89 if (device == NULL) 97 info->name = device->Description().friendly_name; 110 MultiAudioDevice* device = (MultiAudioDevice*)fDevices.ItemAt( local 112 if (device == NULL) { 118 if (fSettings.FindMessage(device->Description().friendly_name, config) 120 fSettings.RemoveData(device 200 MultiAudioDevice *device = local [all...] |
/haiku/src/add-ons/input_server/devices/wacom/ |
H A D | MasterServerDevice.cpp | 49 fDeviceLock("device list lock") 63 for (int32 i = 0; PointingDevice* device = (PointingDevice*)fDevices.ItemAt(i); i++) { 64 device->Start(); 78 while (PointingDevice* device = (PointingDevice*)fDevices.RemoveItem((int32)0)) 79 delete device; 111 MasterServerDevice::Start(const char* device, void* cookie) argument 121 MasterServerDevice::Stop(const char* device, void* cookie) argument 135 MasterServerDevice::Control(const char* device, void* cookie, uint32 code, BMessage* message) argument 140 get_mouse_speed(device, &fSpeed); 147 get_mouse_acceleration(device, 210 PointingDevice* device = PointingDeviceFactory::DeviceFor(this, path); local 218 input_device_ref device = { (char *)"Wacom Tablet", local 249 dev_t device; local [all...] |