/haiku/src/add-ons/kernel/bus_managers/acpi/ |
H A D | Module.cpp | 59 device_attr attrs[] = { in acpi_module_register_device() local 65 return gDeviceManager->register_node(parent, ACPI_ROOT_MODULE_NAME, attrs, in acpi_module_register_device() 88 device_attr attrs[16] = { in acpi_enumerate_child_devices() local 111 attrs[attrCount].name = ACPI_DEVICE_HID_ITEM; in acpi_enumerate_child_devices() 112 attrs[attrCount].type = B_STRING_TYPE; in acpi_enumerate_child_devices() 113 attrs[attrCount].value.string = hid; in acpi_enumerate_child_devices() 117 attrs[attrCount].name = ACPI_DEVICE_CID_ITEM; in acpi_enumerate_child_devices() 118 attrs[attrCount].type = B_STRING_TYPE; in acpi_enumerate_child_devices() 119 attrs[attrCount].value.string = cidList[i]; in acpi_enumerate_child_devices() 123 attrs[attrCount].name = ACPI_DEVICE_UID_ITEM; in acpi_enumerate_child_devices() [all …]
|
/haiku/src/tests/system/kernel/device_manager/playground/ |
H A D | bus.cpp | 17 device_attr attrs[] = { in bus_trigger_device_removed() local 24 while (gDeviceManager->get_next_child_node(node, attrs, &child) == B_OK) { in bus_trigger_device_removed() 57 device_attr attrs[] = { in register_device() local 63 return gDeviceManager->register_node(parent, BUS_MODULE_NAME, attrs, NULL, in register_device() 103 device_attr attrs[] = { in register_child_devices() local 119 gDeviceManager->register_node(node, BUS_FOR_DRIVER_NAME, attrs, NULL, in register_child_devices() 123 device_attr attrs[] = { in register_child_devices() local 132 BUS_FOR_DRIVER_NAME, attrs, NULL, NULL)); in register_child_devices()
|
/haiku/src/add-ons/print/transports/ipp/ |
H A D | IppContent.cpp | 613 for (list<IppAttribute *>::const_iterator it = attrs.begin(); it != attrs.end(); it++) { in ~IppContent() 689 attrs.push_back(new IppAttribute((IPP_TAG)tag)); in input() 698 attrs.push_back(attr); in input() 708 attrs.push_back(attr); in input() 715 attrs.push_back(attr); in input() 735 attrs.push_back(attr); in input() 742 attrs.push_back(attr); in input() 749 attrs.push_back(attr); in input() 756 attrs.push_back(attr); in input() 764 attrs.push_back(attr); in input() [all …]
|
/haiku/src/add-ons/kernel/bus_managers/usb/ |
H A D | Device.cpp | 864 BStackOrHeapArray<device_attr, 16> attrs(deviceAttrTotal + 4 + 5); in RegisterNode() local 865 attrs[0] = { B_DEVICE_BUS, B_STRING_TYPE, { .string = "usb" } }; in RegisterNode() 868 attrs[1] = { USB_DEVICE_ID_ITEM, B_UINT32_TYPE, { .ui32 = id } }; in RegisterNode() 869 attrs[2] = { B_DEVICE_FLAGS, B_UINT32_TYPE, { .ui32 = B_FIND_MULTIPLE_CHILDREN } }; in RegisterNode() 870 attrs[3] = { B_DEVICE_PRETTY_NAME, B_STRING_TYPE, { .string = "USB device" } }; in RegisterNode() 875 attrs[attrCount].name = B_DEVICE_VENDOR_ID; in RegisterNode() 876 attrs[attrCount].type = B_UINT16_TYPE; in RegisterNode() 877 attrs[attrCount].value.ui16 = fDeviceDescriptor.vendor_id; in RegisterNode() 880 attrs[attrCount].name = B_DEVICE_ID; in RegisterNode() 881 attrs[attrCount].type = B_UINT16_TYPE; in RegisterNode() [all …]
|
/haiku/src/add-ons/kernel/bus_managers/virtio/ |
H A D | virtio_balloon.cpp | 88 device_attr attrs[] = { in virtio_balloon_register_device() local 93 attrs, NULL, NULL); in virtio_balloon_register_device() 112 device_attr attrs[] = { in virtio_balloon_register_child_devices() local 119 VIRTIO_BALLOON_DEVICE_MODULE_NAME, attrs, NULL, NULL); in virtio_balloon_register_child_devices()
|
/haiku/src/apps/serialconnect/libvterm/src/ |
H A D | screen.c | 756 cell->attrs.bold = intcell->pen.bold; in vterm_screen_get_cell() 757 cell->attrs.underline = intcell->pen.underline; in vterm_screen_get_cell() 758 cell->attrs.italic = intcell->pen.italic; in vterm_screen_get_cell() 759 cell->attrs.blink = intcell->pen.blink; in vterm_screen_get_cell() 760 cell->attrs.reverse = intcell->pen.reverse ^ screen->global_reverse; in vterm_screen_get_cell() 761 cell->attrs.strike = intcell->pen.strike; in vterm_screen_get_cell() 762 cell->attrs.font = intcell->pen.font; in vterm_screen_get_cell() 764 cell->attrs.dwl = intcell->pen.dwl; in vterm_screen_get_cell() 765 cell->attrs.dhl = intcell->pen.dhl; in vterm_screen_get_cell() 795 intcell->pen.bold = cell->attrs.bold; in vterm_screen_set_cell() [all …]
|
/haiku/src/add-ons/kernel/file_systems/packagefs/package/ |
H A D | PackageDirectory.cpp | 63 const int32 attrs = fAttributes.Count(), in HasPrecedenceOver() local 65 if (attrs != otherAttrs) in HasPrecedenceOver() 66 return attrs > otherAttrs; in HasPrecedenceOver()
|
/haiku/src/system/libroot/posix/glibc/include/ |
H A D | libc-symbols.h | 545 # define __hidden_proto_hiddenattr(attrs...) argument 547 # define __hidden_proto_hiddenattr(attrs...) \ argument 548 __attribute__ ((visibility ("hidden"), ##attrs)) 550 # define hidden_proto(name, attrs...) \ argument 551 __hidden_proto (name, __GI_##name, ##attrs) 552 # define __hidden_proto(name, internal, attrs...) \ argument 555 __hidden_proto_hiddenattr (attrs); 649 # define hidden_proto(name, attrs...) argument 662 # define libc_hidden_proto(name, attrs...) hidden_proto (name, ##attrs) argument 670 # define libc_hidden_proto(name, attrs...) argument [all …]
|
/haiku/src/add-ons/kernel/file_systems/websearchfs/ |
H A D | websearchfs.c | 987 for (i = 0; !ae && i < 10 && node->attrs[i].name; i++) { in websearchfs_read_attrdir() 989 ae = &node->attrs[i]; in websearchfs_read_attrdir() 1038 for (i = 0; !ae && i < 10 && node->attrs[i].name; i++) in websearchfs_open_attr_h() 1039 if (!strcmp(name, node->attrs[i].name)) in websearchfs_open_attr_h() 1040 ae = &node->attrs[i]; in websearchfs_open_attr_h() 1298 *(int32 *)&n->attrs[1].value = i + 1; // hack in websearchfs_open_query() 1299 n->attrs[0].type = 'LONG'; in websearchfs_open_query() 1300 n->attrs[0].value = &n->attrs[1].value; in websearchfs_open_query() 1301 n->attrs[0].size = sizeof(int32); in websearchfs_open_query() 1302 n->attrs[0].name = "WEBSEARCH:order"; in websearchfs_open_query() [all …]
|
/haiku/src/add-ons/kernel/bus_managers/pci/ |
H A D | pci_root.cpp | 39 device_attr attrs[] = { in pci_root_register_device() local 45 return gDeviceManager->register_node(parent, PCI_ROOT_MODULE_NAME, attrs, in pci_root_register_device() 56 device_attr attrs[] = { in pci_root_traverse() local 78 gDeviceManager->register_node(node, PCI_DEVICE_MODULE_NAME, attrs, NULL, NULL); in pci_root_traverse()
|
/haiku/src/add-ons/kernel/busses/scsi/ahci/ |
H A D | ahci.c | 174 device_attr attrs[] = { in register_sim() local 192 AHCI_SIM_MODULE_NAME, attrs, NULL, NULL); in register_sim() 265 device_attr attrs[] = { in ahci_register_device() local 290 attrs, NULL, NULL); in ahci_register_device()
|
/haiku/src/add-ons/kernel/bus_managers/fdt/ |
H A D | fdt_module.cpp | 92 Vector<device_attr> attrs; in fdt_register_node() local 102 attrs.Add({ B_DEVICE_BUS, B_STRING_TYPE, {.string = "fdt"}}); in fdt_register_node() 103 attrs.Add({ B_DEVICE_PRETTY_NAME, B_STRING_TYPE, in fdt_register_node() 105 attrs.Add({ "fdt/node", B_UINT32_TYPE, {.ui32 = (uint32)node}}); in fdt_register_node() 106 attrs.Add({ "fdt/name", B_STRING_TYPE, {.string = name}}); in fdt_register_node() 110 attrs.Add({ "fdt/device_type", B_STRING_TYPE, { .string = (const char*)prop }}); in fdt_register_node() 119 attrs.Add({ "fdt/compatible", B_STRING_TYPE, { .string = propStr }}); in fdt_register_node() 124 attrs.Add({}); in fdt_register_node() 127 "bus_managers/fdt/driver_v1", &attrs[0], NULL, &curDev); in fdt_register_node() 203 device_attr attrs[] = { in fdt_bus_register_device() local [all …]
|
/haiku/src/apps/serialconnect/ |
H A D | TermView.cpp | 97 if (*(uint32_t*)&cell.attrs != *(uint32_t*)&newCell.attrs in Draw() 115 if (isCursor ^ cell.attrs.reverse) { in Draw() 131 if (cell.attrs.bold) in Draw() 133 if (cell.attrs.underline) in Draw() 135 if (cell.attrs.italic) in Draw() 137 if (cell.attrs.blink) // FIXME make it actually blink in Draw() 142 if (cell.attrs.reverse) in Draw() 145 if (cell.attrs.strike) in Draw()
|
/haiku/src/add-ons/kernel/busses/random/virtio/ |
H A D | virtio_rng.cpp | 57 device_attr attrs[] = { in virtio_rng_register_device() local 62 attrs, NULL, NULL); in virtio_rng_register_device()
|
/haiku/src/add-ons/kernel/drivers/audio/virtio/ |
H A D | virtio_sound.cpp | 65 device_attr attrs[] = { in RegisterDevice() local 71 attrs, NULL, NULL); in RegisterDevice()
|
/haiku/src/add-ons/kernel/busses/i2c/pch/ |
H A D | pch_i2c_acpi.cpp | 87 device_attr attrs[] = { in register_child_devices() local 99 attrs, NULL, NULL); in register_child_devices() 165 device_attr attrs[] = { in register_device() local 171 PCH_I2C_ACPI_DEVICE_MODULE_NAME, attrs, NULL, NULL); in register_device()
|
H A D | pch_i2c_pci.cpp | 85 device_attr attrs[] = { in register_child_devices() local 97 attrs, NULL, NULL); in register_child_devices() 211 device_attr attrs[] = { in register_device() local 217 PCH_I2C_PCI_DEVICE_MODULE_NAME, attrs, NULL, NULL); in register_device()
|
/haiku/src/add-ons/kernel/bus_managers/scsi/ |
H A D | sim_interface.cpp | 48 device_attr attrs[] = { in scsi_controller_added() local 63 return pnp->register_node(parent, SCSI_BUS_MODULE_NAME, attrs, NULL, in scsi_controller_added()
|
/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | FileSystem.h | 76 inline void SetNamedAttrs(bool attrs); 232 FileSystem::SetNamedAttrs(bool attrs) in SetNamedAttrs() argument 234 fNamedAttrs = attrs; in SetNamedAttrs()
|
H A D | RequestBuilder.h | 41 status_t GetAttr(Attribute* attrs, uint32 count); 67 Attribute* attrs, uint32 attrCount); 97 Attribute* attrs, uint32 count);
|
H A D | RequestBuilder.cpp | 164 RequestBuilder::GetAttr(Attribute* attrs, uint32 count) in GetAttr() argument 172 _AttrBitmap(fRequest->Stream(), attrs, count); in GetAttr() 521 RequestBuilder::ReadDir(uint64 cookie, uint64 cookieVerf, Attribute* attrs, in ReadDir() argument 536 _AttrBitmap(fRequest->Stream(), attrs, attrCount); in ReadDir() 823 RequestBuilder::_AttrBitmap(XDR::WriteStream& stream, Attribute* attrs, in _AttrBitmap() argument 830 bitmap[attrs[i] / 32] |= 1 << attrs[i] % 32; in _AttrBitmap() 850 Attribute* attrs in _EncodeAttrs() local 853 attrs[i] = static_cast<Attribute>(attr[i].fAttribute); in _EncodeAttrs() 854 _AttrBitmap(stream, attrs, count); in _EncodeAttrs() 855 free(attrs); in _EncodeAttrs()
|
/haiku/src/add-ons/kernel/busses/scsi/virtio/ |
H A D | virtio_scsi.cpp | 213 device_attr attrs[] = { in virtio_scsi_register_device() local 229 attrs, NULL, NULL); in virtio_scsi_register_device() 252 device_attr attrs[] = { in virtio_scsi_register_child_devices() local 265 VIRTIO_SCSI_SIM_MODULE_NAME, attrs, NULL, NULL); in virtio_scsi_register_child_devices()
|
/haiku/src/add-ons/kernel/bus_managers/isa/ |
H A D | isa.cpp | 112 static const device_attr attrs[] = { in isa_register_device() local 120 return pnp->register_node(parent, ISA_MODULE_NAME, attrs, NULL, NULL); in isa_register_device()
|
/haiku/src/add-ons/kernel/drivers/display/ |
H A D | display_adapter.cpp | 228 device_attr attrs[] = { in register_displays() local 236 gDeviceManager->register_node(node, DISPLAY_DEVICE_MODULE_NAME, attrs, in register_displays() 254 device_attr attrs[] = { in displayadapter_register_device() local 262 attrs, NULL, NULL); in displayadapter_register_device()
|
/haiku/headers/os/drivers/ |
H A D | device_manager.h | 70 const device_attr *attrs, const io_resource *ioResources, 79 const device_attr *attrs, device_node **node); 106 const device_attr *attrs, device_node **node);
|