/haiku/headers/private/storage/ |
H A D | DiskDeviceVisitor.h | 21 virtual bool Visit(BDiskDevice *device);
|
/haiku/src/add-ons/accelerants/vesa/ |
H A D | accelerant.h | 13 int device; member in struct:accelerant_info
|
/haiku/src/system/kernel/arch/generic/ |
H A D | acpi_irq_routing_table.h | 58 uint8 device; member in struct:pci_address 83 status_t read_current_irq(acpi_module_info* acpi, acpi_handle device, 85 status_t read_possible_irqs(acpi_module_info* acpi, acpi_handle device, 88 status_t set_current_irq(acpi_module_info* acpi, acpi_handle device,
|
/haiku/src/add-ons/kernel/drivers/input/usb_hid/ |
H A D | HIDDevice.cpp | 26 HIDDevice::HIDDevice(usb_device device, const usb_configuration_info *config, argument 29 fDevice(device), 45 = gUSBModule->get_device_descriptor(device); 63 // Conforming device, find the HID descriptor and get the report 64 // descriptor from the device. 92 status_t result = gUSBModule->send_request(device, 120 status_t result = gUSBModule->send_request(device, 134 TRACE_ALWAYS("found quirky device, using patched descriptor\n"); 193 // this implementation detail onto the device when scheduling transfers. 206 fStatus = quirkyInit(device, confi 320 HIDDevice *device = (HIDDevice *)cookie; local 334 HIDDevice *device = (HIDDevice *)cookie; local [all...] |
/haiku/src/add-ons/kernel/drivers/disk/virtual/remote_disk/ |
H A D | remote_disk.cpp | 52 recursive_lock_init(this, "remote disk device"); 134 // #pragma mark - data device hooks 140 RemoteDiskDevice* device = device_for_name(name); local 141 TRACE(("remote_disk_open(\"%s\") -> %p\n", name, device)); 142 if (!device) 145 DeviceLocker locker(device); 146 status_t error = device->LazyInitDisk(); 150 *cookie = device; 172 RemoteDiskDevice* device = (RemoteDiskDevice*)cookie; local 173 DeviceLocker locker(device); 195 RemoteDiskDevice* device = (RemoteDiskDevice*)cookie; local 217 RemoteDiskDevice* device = (RemoteDiskDevice*)cookie; local [all...] |
/haiku/src/tests/add-ons/kernel/kernelland_emu/ |
H A D | device_manager.cpp | 29 printf("publish partition: %s (device \"%s\", size %lld)\n", path, info->device, info->size);
|
/haiku/src/add-ons/kernel/drivers/audio/usb/ |
H A D | Driver.h | 28 extern "C" status_t usb_audio_device_added(usb_device device, void** cookie);
|
/haiku/src/bin/network/traceroute/ |
H A D | ifaddrlist.c | 74 char device[sizeof(ifr.ifr_name) + 1]; local 131 (void)strlcpy(device, ifr.ifr_name, sizeof(device)); 134 if (strchr(device, ':') != NULL) 139 device, strerror(errno)); 152 al->device = strdup(device);
|
/haiku/src/tools/fs_shell/ |
H A D | partition_support.cpp | 28 FileRestriction(fssh_dev_t device, fssh_ino_t node, fssh_off_t startOffset, argument 31 device(device), 38 fssh_dev_t device; member in struct:FSShell::FileRestriction 51 find_file_restriction(fssh_dev_t device, fssh_ino_t node) argument 56 if (restriction->device == device && restriction->node == node) 83 fssh_dev_t device = st.fssh_st_dev; 86 FileRestriction* restriction = find_file_restriction(device, node); 93 restriction = new FileRestriction(device, nod [all...] |
/haiku/src/system/boot/platform/openfirmware/ |
H A D | devices.cpp | 48 // If the boot device is a network device, we try to find a 89 printf("boot device is not a block device!\n"); 110 Handle *device = new(nothrow) Handle(handle); local 111 if (device == NULL) 114 devicesList->Add(device); 120 platform_get_boot_partitions(struct stage2_args *args, Node *device, argument 191 // don't add the boot device twice 214 Handle *device local 227 platform_register_boot_device(Node *device) argument [all...] |
/haiku/src/add-ons/kernel/busses/pci/x86/ |
H A D | X86PCIController.h | 33 uint8 bus, uint8 device, uint8 function, 37 uint8 bus, uint8 device, uint8 function, 47 uint8 bus, uint8 device, uint8 function, 51 uint8 bus, uint8 device, uint8 function, 73 uint8 bus, uint8 device, uint8 function, 77 uint8 bus, uint8 device, uint8 function, 91 uint8 bus, uint8 device, uint8 function, 95 uint8 bus, uint8 device, uint8 function, 109 uint8 bus, uint8 device, uint8 function, 113 uint8 bus, uint8 device, uint [all...] |
/haiku/src/add-ons/kernel/network/datalink_protocols/loopback_frame/ |
H A D | loopback_frame.cpp | 35 loopback_deframe(net_device* device, net_buffer* buffer) argument 49 if (interface->device->type != IFT_LOOP && interface->device->type != IFT_TUNNEL) 58 status = stack->register_device_deframer(interface->device, 63 if (interface->device->type == IFT_LOOP) { 64 // Locally received buffers don't need a domain device handler, as the 66 } else if (interface->device->type == IFT_TUNNEL) { 68 interface->device, B_NET_FRAME_TYPE_IPV4, domain); 85 stack->unregister_device_deframer(interface->device); 97 stack->unregister_device_deframer(protocol->interface->device); [all...] |
/haiku/src/add-ons/kernel/network/stack/ |
H A D | notifications.cpp | 79 notify_link_changed(net_device* device) argument 88 message.AddString("device", device->name); 89 message.AddInt32("media", device->media); 90 message.AddInt64("link speed", device->link_speed); 91 message.AddInt32("link quality", device->link_quality);
|
/haiku/src/bin/ |
H A D | checkfs.cpp | 23 "Usage: %s <options> <device|volume name>\n" 68 // the device name should be the only non-option element 79 BDiskDevice device; local 81 status_t status = roster.GetPartitionForPath(path, &device, 86 status = roster.FindPartitionByMountPoint(path, &device, &partition) 90 // TODO: try to register file device 93 fprintf(stderr, "%s: Failed to get disk device for path \"%s\": " 99 // Prepare the device for modifications 101 status = device.PrepareModifications(); 103 fprintf(stderr, "%s: Could not prepare the device fo [all...] |
H A D | resizefs.cpp | 24 fprintf(stderr, "Usage: %s <device> <size>\n" 25 "Resize volume on <device> to new size <size> (in bytes, suffixes " 40 BDiskDevice device; local 42 status_t status = roster.GetPartitionForPath(argv[1], &device, 47 status = roster.FindPartitionByMountPoint(argv[1], &device, 51 // TODO: try to register file device 54 fprintf(stderr, "%s: Failed to get disk device for path \"%s\": " 60 // Prepare the device for modifications 62 status = device.PrepareModifications(); 64 fprintf(stderr, "%s: Could not prepare the device fo [all...] |
/haiku/src/add-ons/print/transports/parallel_port/ |
H A D | ParallelTransport.cpp | 59 char device[B_PATH_NAME_LENGTH]; local 66 strcat(strcpy(device, "/dev/parallel/"), address); 67 fFile = open(device, O_RDWR | O_EXCL, 0); 71 fFile = open(device, O_WRONLY | O_EXCL, 0); 83 msg->AddString("_parallel/DeviceName", device);
|
/haiku/src/add-ons/kernel/bus_managers/scsi/ |
H A D | dma_buffer.cpp | 21 Currently, there is only one buffer per device; in the future, 150 /** allocate dma buffer for given device, deleting old one 351 scsi_device_info *device = request->device; local 365 acquire_sem(device->dma_buffer_owner); 368 mutex_lock(&device->dma_buffer_lock); 371 buffer = &device->dma_buffer; 375 mutex_unlock(&device->dma_buffer_lock); 382 if (!scsi_alloc_dma_buffer(buffer, &device->bus->dma_params, 390 scsi_dma_buffer_compose_sg_orig(&device 434 scsi_device_info *device = request->device; local 470 scsi_device_info *device = (scsi_device_info*)dev; local [all...] |
/haiku/src/add-ons/kernel/drivers/input/i2c_hid/ |
H A D | Driver.cpp | 110 HIDDevice *device = handler->Device(); 111 if (device->ParentCookie() != parentCookie) 116 handler = device->ProtocolHandlerAt(i); 123 // this handler's device belongs to the one removed 124 if (device->IsOpen()) { 125 // the device and it's handlers will be deleted in the free hook 126 device->Removed(); 128 delete device; 240 HIDDevice *device = cookie->handler->Device(); local 241 if (device 352 hid_driver_cookie *device local 388 hid_driver_cookie *device = (hid_driver_cookie*)driverCookie; local 398 hid_driver_cookie *device = (hid_driver_cookie*)cookie; local [all...] |
/haiku/src/add-ons/kernel/drivers/common/ |
H A D | usb_modeswitch.cpp | 291 usb_device device; member in struct:_my_device 296 // device state 324 my_free_device(my_device *device) argument 326 mutex_lock(&device->lock); 327 mutex_destroy(&device->lock); 328 delete_sem(device->notify); 329 free(device); 342 my_device *device = (my_device *)cookie; local 343 device->status = status; 344 device 350 my_transfer_data(my_device *device, bool directionIn, void *data, size_t dataLength) argument 420 my_modeswitch(my_device* device) argument 463 my_device *device = (my_device *)malloc(sizeof(my_device)); local 557 my_device *device = (my_device *)cookie; local [all...] |
/haiku/src/system/boot/platform/riscv/ |
H A D | devices.cpp | 97 dprintf("%s: blockIo error reading from device!\n", __func__); 118 ObjectDeleter<VirtioBlockDevice> device( 120 if (!device.IsSet()) 123 return device.Detach(); 141 compute_check_sum(Node* device, off_t offset) argument 144 ssize_t bytesRead = device->ReadAt(NULL, offset, buffer, sizeof(buffer)); 168 ObjectDeleter<VirtioBlockDevice> device(CreateVirtioBlockDev(i)); 169 if (!device.IsSet()) break; 171 devicesList->Insert(device.Detach()); 200 platform_register_boot_device(Node* device) argument [all...] |
/haiku/src/tests/kits/storage/disk_device/ |
H A D | DiskDeviceTest.cpp | 24 const char *kTestFileDevice = "/boot/home/tmp/test-file-device"; 29 virtual bool Visit(BDiskDevice *device) argument 32 status_t error = device->GetPath(&path); 38 printf("device %ld: `%s'\n", device->ID(), pathString); 39 printf(" has media: %d\n", device->HasMedia()); 40 printf(" removable: %d\n", device->IsRemovableMedia()); 41 printf(" read only: %d\n", device->IsReadOnlyMedia()); 42 printf(" write once: %d\n", device->IsWriteOnceMedia()); 44 Visit(device, 596 BDiskDevice device; local [all...] |
/haiku/src/add-ons/kernel/busses/ata/promise_tx2/ |
H A D | promise_tx2.c | 87 pci_device *device = channel->device; local 95 pci->write_io_8(device, channel->bus_master_base + 1, 0x0b); 96 if ((pci->read_io_8(device, channel->bus_master_base + 3) & 0x20) == 0) 243 pci_device *device; local 255 (void **)&device) != B_OK) 258 command_block_base[0] = pci->read_pci_config(device, PCI_base_registers, 4); 259 control_block_base[0] = pci->read_pci_config(device, PCI_base_registers + 4, 4); 260 command_block_base[1] = pci->read_pci_config(device, PCI_base_registers + 8, 4); 261 control_block_base[1] = pci->read_pci_config(device, PCI_base_register [all...] |
/haiku/src/add-ons/kernel/drivers/power/x86_cpuidle/ |
H A D | acpi_cpuidle.cpp | 106 acpi_eval_pdc(acpi_cpuidle_driver_info *device) argument 124 status_t status = device->acpi->evaluate_method(device->acpi_cookie, "_PDC", 131 acpi_eval_osc(acpi_cpuidle_driver_info *device) argument 134 dprintf("%s@%p\n", __func__, device->acpi_cookie); 167 status_t status = device->acpi->evaluate_method(device->acpi_cookie, "_OSC", 230 acpi_cstate_idle(int32 state, CpuidleDevice *device) argument 232 CpuidleCstate *cState = &device->cStates[state]; 371 acpi_cstate_quirks(acpi_cpuidle_driver_info *device) argument 386 acpi_cpuidle_setup(acpi_cpuidle_driver_info *device) argument 460 acpi_processor_init(acpi_cpuidle_driver_info *device) argument 550 acpi_cpuidle_driver_info *device; local 578 acpi_cpuidle_driver_info *device = (acpi_cpuidle_driver_info *)driverCookie; local [all...] |
/haiku/src/libs/compat/freebsd_network/ |
H A D | device.c | 10 #include "device.h" 37 init_device(device_t device, driver_t *driver) argument 39 list_init_etc(&device->children, offsetof(struct device, link)); 40 device->unit = sNextUnit++; 42 if (driver != NULL && device_set_driver(device, driver) < 0) 45 return device; 52 device_t dev = malloc(sizeof(struct device)); 56 memset(dev, 0, sizeof(struct device)); 354 device_is_alive(device_t device) argument 469 device_is_attached(device_t device) argument 476 device_attach(device_t device) argument 497 device_detach(device_t device) argument 553 bus_generic_detach(device_t device) argument 578 device_t device = NULL; local [all...] |
/haiku/headers/os/drivers/ |
H A D | USB2.h | 34 status_t (*device_added)(const usb_device *device, void **cookie); 87 * specific device class/subclass/protocol or vendor/product. 94 * If you intend to support just any device, or you at least want to be 95 * notified about any device, just pass NULL as the supportDescriptor and 105 * device_added hook will be called for every device that matches the 108 * any already present matching device. If you return B_OK in this hook, 112 * notification for the device either. 118 /* Get the device descriptor of a device. */ 119 const usb_device_descriptor *(*get_device_descriptor)(const usb_device *device); [all...] |