Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 31) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/driver/pci/
Dmsi.c25 …dw0 = pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, … in __msi_read_msix_cap_list()
32 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_msix_cap_list()
34 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_msix_cap_list()
42 …dw0 = pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, … in __msi_read_cap_list()
48 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list()
53 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list()
61 …cap_list.msg_data = pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->p… in __msi_read_cap_list()
66 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list()
68 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list()
94 uint32_t bar = pci_read_config(pci_dev->bus, pci_dev->device, pci_dev->func, bar_off); in __msix_map_table()
[all …]
Dpci.c234 common_header->device = slot; in pci_read_header()
308 static void pci_checkFunction(uint8_t bus, uint8_t device, uint8_t function) in pci_checkFunction() argument
311 …struct pci_device_structure_header_t *header = pci_read_header(&header_type, bus, device, function… in pci_checkFunction()
328 static int pci_checkDevice(uint8_t bus, uint8_t device) in pci_checkDevice() argument
332 …struct pci_device_structure_header_t *header = pci_read_header(&header_type, bus, device, 0, false… in pci_checkDevice()
351 pci_checkFunction(bus, device, 0); in pci_checkDevice()
361 … = (struct pci_device_structure_header_t *)pci_read_header(&header_type, bus, device, func, false); in pci_checkDevice()
364 pci_checkFunction(bus, device, func); in pci_checkDevice()
377 for (uint8_t device = 0; device < 32; ++device) in pci_checkBus() local
379 pci_checkDevice(bus, device); in pci_checkBus()
[all …]
Dpci.rs99 pub fn add(&self, device: Box<dyn PciDeviceStructure>) { in add()
101 list.push_back(device); in add()
669 | (bus_device_function.device as u32) << 3 in cam_offset()
1017 device: 0, in pci_check_all_buses()
1058 fn pci_check_device(bus: u8, device: u8) -> Result<u8, PciError> { in pci_check_device()
1062 device, in pci_check_device()
1081 busdevicefunction.device in pci_check_device()
1087 device, in pci_check_device()
1099 for device in 0..32 { in pci_check_bus()
1100 pci_check_device(bus, device)?; in pci_check_bus()
[all …]
Dpci.h31 uint8_t device; member
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dmod.rs1 use super::device::{
125 device: Arc<dyn PlatformDevice>, in register_platform_device()
127 let id_table = device.id_table(); in register_platform_device()
133 devices.insert(id_table.clone(), device.clone()); in register_platform_device()
143 fn unregister_platform_device(&mut self, device: Arc<dyn PlatformDevice>) { in unregister_platform_device()
144 let id_table = device.id_table(); in unregister_platform_device()
156 for (_dev_id_table, device) in devices.iter() { in driver_match_device()
157 if device in driver_match_device()
161 if !device.is_initialized() { in driver_match_device()
163 match driver.probe(device.clone()) { in driver_match_device()
[all …]
Dplatform_driver.rs2 super::device::driver::{Driver, DriverError},
14 fn probe(&self, device: Arc<dyn PlatformDevice>) -> Result<(), DriverError>; in probe()
Dplatform_device.rs2 super::device::{Device, DeviceState},
/DragonOS-0.1.8/kernel/src/driver/base/device/
Dmod.rs270 pub fn device_register<T: Device>(device: Arc<T>) -> Result<(), DeviceError> { in device_register()
271 DEVICE_MANAGER.add_device(device.id_table(), device.clone()); in device_register()
272 match sys_device_register(&device.id_table().to_name()) { in device_register()
274 device.set_sys_info(Some(sys_info)); in device_register()
284 pub fn device_unregister<T: Device>(device: Arc<T>) -> Result<(), DeviceError> { in device_unregister()
285 DEVICE_MANAGER.add_device(device.id_table(), device.clone()); in device_unregister()
286 match sys_device_unregister(&device.id_table().to_name()) { in device_unregister()
288 device.set_sys_info(None); in device_unregister()
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dbus.rs60 Ok(device) => device in bus_driver_register()
79 Ok(device) => device in bus_device_register()
/DragonOS-0.1.8/kernel/src/driver/base/
Dmod.rs2 pub mod device; module
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dmod.rs101 device: Arc<T>, in register_device()
104 let metadata = device.metadata()?; in register_device()
118 dev_char_inode.add_dev(name, device.clone())?; in register_device()
122 dev_root_inode.add_dev(name, device.clone())?; in register_device()
124 device.set_fs(dev_char_inode.0.lock().fs.clone()); in register_device()
137 dev_block_inode.add_dev(name, device.clone())?; in register_device()
138 device.set_fs(dev_block_inode.0.lock().fs.clone()); in register_device()
152 device: Arc<T>, in unregister_device()
155 match device.metadata().unwrap().file_type { in unregister_device()
523 pub fn devfs_register<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_register()
[all …]
/DragonOS-0.1.8/kernel/src/io/
Dmod.rs2 pub mod device; module
Ddisk_info.rs2 use super::device::BlockDevice;
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dtransport_pci.rs98 device: &mut PciDeviceStructureGeneralDevice, in new()
100 let header = &device.common_header; in new()
112 device.bar_ioremap().unwrap()?; in new()
113 device.enable_master(); in new()
115 for capability in device.capabilities().unwrap() { in new()
159 &device.standard_device_bar, in new()
170 let notify_region = get_bar_region_slice::<_>(&device.standard_device_bar, &notify_cfg)?; in new()
172 &device.standard_device_bar, in new()
177 &device.standard_device_bar, in new()
Dvirtio.rs93 for device in result { in get_virtio_net_device()
94 let standard_device = device.as_standard_device_mut().unwrap(); in get_virtio_net_device()
/DragonOS-0.1.8/kernel/src/arch/x86_64/pci/
Dpci.rs18 | ((bus_device_function.device as u32) << 11) in read_config()
32 | ((bus_device_function.device as u32) << 11) in write_config()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahcidisk.rs5 use crate::io::{device::BlockDevice, disk_info::Partition, SeekFrom};
55 lba_id_start: crate::io::device::BlockId, // 起始lba编号 in read_at()
173 volatile_write!(cmdfis.device, 1 << 6); // LBA Mode in read_at()
214 lba_id_start: crate::io::device::BlockId, in write_at()
335 volatile_write!(cmdfis.device, 1 << 6); // LBA Mode in write_at()
452 lba_id_start: crate::io::device::BlockId, in read_at()
466 lba_id_start: crate::io::device::BlockId, in write_at()
478 fn device(&self) -> Arc<dyn crate::io::device::Device> { in device() method
Dahci.h72 uint8_t device; // Device register member
109 uint8_t device; // Device register member
160 uint8_t device; // Device register member
Dhba.rs286 pub device: u8, // Device register field
319 pub device: u8, // Device register field
365 pub device: u8, // Device register field
Dahci_inode.rs7 use crate::io::device::BlockDevice;
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Derrno.md103 #define ENODEV 44 /* 没有指定的设备 No such device.*/
121 #define ENOSPC 52 /* 设备上没有空间 No space left on device.*/
145 #define ENXIO 63 /* 没有这样的设备或地址 No such device or address.*/
185 #define EXDEV 81 /* 跨设备连接 Cross-device link.*/
/DragonOS-0.1.8/kernel/src/driver/net/
Dvirtio_net.rs9 use virtio_drivers::{device::net::VirtIONet, transport::Transport};
130 rx_buffer: Option<virtio_drivers::device::net::RxBuffer>,
136 rx_buffer: Option<virtio_drivers::device::net::RxBuffer>, in new()
/DragonOS-0.1.8/kernel/src/driver/base/map/
Dmod.rs1 use super::device::{mkdev, DeviceNumber, KObject};
/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs1 use super::super::base::device::Device;
5 device::{driver::Driver, DeviceState, DeviceType, IdTable, KObject},
250 ) -> Result<(), crate::driver::base::device::driver::DriverError> { in probe()
/DragonOS-0.1.8/docs/kernel/filesystem/
Dsysfs.md81 &emsp;&emsp;可以看到,每个管理器中均存在sys_info,设备模型通过该成员与sysfs建立联系,sys_info指向sysfs中唯一的inode。对于device而言,对应sysfs下…

12