| /sys/amd64/ |
| D | pci.c | 14 PCIGetAddr(uint32_t bus, uint32_t slot, uint32_t func, uint32_t reg) in PCIGetAddr() argument 16 ASSERT(bus < 256 && slot < 64 && func < 8 && reg < 256); in PCIGetAddr() 17 return (1 << 31) | (bus << 16) | (slot << 11) | (func << 8) | (reg & 0x00fc); in PCIGetAddr() 21 PCICfgRead8(uint32_t bus, uint32_t slot, uint32_t func, uint32_t reg) in PCICfgRead8() argument 23 uint32_t addr = PCIGetAddr(bus, slot, func, reg); in PCICfgRead8() 31 PCICfgRead16(uint32_t bus, uint32_t slot, uint32_t func, uint32_t reg) in PCICfgRead16() argument 33 uint32_t addr = PCIGetAddr(bus, slot, func, reg); in PCICfgRead16() 43 PCICfgRead32(uint32_t bus, uint32_t slot, uint32_t func, uint32_t reg) in PCICfgRead32() argument 45 uint32_t addr = PCIGetAddr(bus, slot, func, reg); in PCICfgRead32() 55 PCICfgWrite8(uint32_t bus, uint32_t slot, uint32_t func, uint32_t reg, in PCICfgWrite8() argument [all …]
|
| /sys/kern/ |
| D | handle.c | 49 int slot; in Handle_Add() local 55 slot = handle->fd % PROCESS_HANDLE_SLOTS; in Handle_Add() 57 TAILQ_INSERT_HEAD(&proc->handles[slot], handle, handleList); in Handle_Add() 65 int slot = handle->fd % PROCESS_HANDLE_SLOTS; in Handle_Remove() local 67 TAILQ_REMOVE(&proc->handles[slot], handle, handleList); in Handle_Remove() 73 int slot = fd % PROCESS_HANDLE_SLOTS; in Handle_Lookup() local 76 TAILQ_FOREACH(handle, &proc->handles[slot], handleList) { in Handle_Lookup()
|
| D | ktimer.c | 43 int slot; in KTimer_Create() local 52 slot = (timerHead + timeout + TIMER_WHEEL_LENGTH - 1) % TIMER_WHEEL_LENGTH; in KTimer_Create() 54 LIST_INSERT_HEAD(&timerSlot[slot], evt, timerQueue); in KTimer_Create()
|
| /sys/dev/ |
| D | pci.c | 12 uint8_t PCICfgRead8(uint32_t bus, uint32_t slot, uint32_t func, uint32_t reg); 13 uint16_t PCICfgRead16(uint32_t bus, uint32_t slot, uint32_t func, uint32_t reg); 14 uint32_t PCICfgRead32(uint32_t bus, uint32_t slot, uint32_t func, uint32_t reg); 15 void PCICfgWrite8(uint32_t bus, uint32_t slot, uint32_t func, 17 void PCICfgWrite16(uint32_t bus, uint32_t slot, uint32_t func, 19 void PCICfgWrite32(uint32_t bus, uint32_t slot, uint32_t func, 67 return PCICfgRead8(dev->bus, dev->slot, dev->func, reg); in PCI_CfgRead8() 73 return PCICfgRead16(dev->bus, dev->slot, dev->func, reg); in PCI_CfgRead16() 79 return PCICfgRead32(dev->bus, dev->slot, dev->func, reg); in PCI_CfgRead32() 85 return PCICfgWrite8(dev->bus, dev->slot, dev->func, reg, data); in PCI_CfgWrite8() [all …]
|
| D | e1000.c | 168 E1000_Init(uint32_t bus, uint32_t slot, uint32_t func) in E1000_Init() argument 173 dev.slot = slot; in E1000_Init() 276 dev->dev.bus, dev->dev.slot); in E1000_Interrupt()
|
| D | ahci.c | 183 AHCI_Init(uint32_t bus, uint32_t slot, uint32_t func) in AHCI_Init() argument 188 dev.slot = slot; in AHCI_Init()
|
| /sys/include/ |
| D | pci.h | 61 uint8_t slot; member
|