/linux-2.4.37.9/drivers/hotplug/ |
D | acpiphp_core.c | 68 static int enable_slot (struct hotplug_slot *slot); 69 static int disable_slot (struct hotplug_slot *slot); 70 static int set_attention_status (struct hotplug_slot *slot, u8 value); 71 static int hardware_test (struct hotplug_slot *slot, u32 value); 72 static int get_power_status (struct hotplug_slot *slot, u8 *value); 73 static int get_attention_status (struct hotplug_slot *slot, u8 *value); 74 static int get_latch_status (struct hotplug_slot *slot, u8 *value); 75 static int get_adapter_status (struct hotplug_slot *slot, u8 *value); 76 static int get_address (struct hotplug_slot *slot, u32 *value); 97 static inline int slot_paranoia_check (struct slot *slot, const char *function) in slot_paranoia_check() argument [all …]
|
D | pciehp.h | 76 struct slot { struct 78 struct slot *next; argument 121 struct slot *slot; member 208 extern int pciehp_enable_slot (struct slot *slot); 209 extern int pciehp_disable_slot (struct slot *slot); 240 static inline int slot_paranoia_check (struct slot *slot, const char *function) in slot_paranoia_check() argument 242 if (!slot) { in slot_paranoia_check() 246 if (slot->magic != SLOT_MAGIC) { in slot_paranoia_check() 250 if (!slot->hotplug_slot) { in slot_paranoia_check() 257 static inline struct slot *get_slot (struct hotplug_slot *hotplug_slot, const char *function) in get_slot() [all …]
|
D | shpchp.h | 77 struct slot { struct 79 struct slot *next; argument 122 struct slot *slot; member 215 extern int shpchp_enable_slot (struct slot *slot); 216 extern int shpchp_disable_slot (struct slot *slot); 228 …ern int shpchp_get_bus_dev (struct controller *ctrl, u8 *bus_num, u8 *dev_num, struct slot *slot); 321 static inline int slot_paranoia_check (struct slot *slot, const char *function) in slot_paranoia_check() argument 323 if (!slot) { in slot_paranoia_check() 327 if (slot->magic != SLOT_MAGIC) { in slot_paranoia_check() 331 if (!slot->hotplug_slot) { in slot_paranoia_check() [all …]
|
D | acpiphp_glue.c | 108 struct acpiphp_slot *slot; in register_slot() local 153 for (slot = bridge->slots; slot; slot = slot->next) in register_slot() 154 if (slot->device == device) { in register_slot() 155 if (slot->sun != sun) in register_slot() 160 if (!slot) { in register_slot() 161 slot = kmalloc(sizeof(struct acpiphp_slot), GFP_KERNEL); in register_slot() 162 if (!slot) { in register_slot() 167 memset(slot, 0, sizeof(struct acpiphp_slot)); in register_slot() 168 slot->bridge = bridge; in register_slot() 169 slot->id = num_slots++; in register_slot() [all …]
|
D | shpchp_hpc.c | 281 static int shpc_write_cmd(struct slot *slot, u8 t_slot, u8 cmd) in shpc_write_cmd() argument 283 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in shpc_write_cmd() 368 static int hpc_get_attention_status(struct slot *slot, u8 *status) in hpc_get_attention_status() argument 370 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_attention_status() 377 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_attention_status() 382 slot_reg = readl(php_ctlr->creg + SLOT1 + 4*(slot->hp_slot)); in hpc_get_attention_status() 408 static int hpc_get_power_status(struct slot * slot, u8 *status) in hpc_get_power_status() argument 410 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_power_status() 418 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_power_status() 423 slot_reg = readl(php_ctlr->creg + SLOT1 + 4*(slot->hp_slot)); in hpc_get_power_status() [all …]
|
D | pciehp_core.c | 69 static int set_attention_status (struct hotplug_slot *slot, u8 value); 70 static int enable_slot (struct hotplug_slot *slot); 71 static int disable_slot (struct hotplug_slot *slot); 72 static int hardware_test (struct hotplug_slot *slot, u32 value); 73 static int get_power_status (struct hotplug_slot *slot, u8 *value); 74 static int get_attention_status (struct hotplug_slot *slot, u8 *value); 75 static int get_latch_status (struct hotplug_slot *slot, u8 *value); 76 static int get_adapter_status (struct hotplug_slot *slot, u8 *value); 77 static int get_max_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value); 78 static int get_cur_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value); [all …]
|
D | shpchp_core.c | 69 static int set_attention_status (struct hotplug_slot *slot, u8 value); 70 static int enable_slot (struct hotplug_slot *slot); 71 static int disable_slot (struct hotplug_slot *slot); 72 static int hardware_test (struct hotplug_slot *slot, u32 value); 73 static int get_power_status (struct hotplug_slot *slot, u8 *value); 74 static int get_attention_status (struct hotplug_slot *slot, u8 *value); 75 static int get_latch_status (struct hotplug_slot *slot, u8 *value); 76 static int get_adapter_status (struct hotplug_slot *slot, u8 *value); 77 static int get_max_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value); 78 static int get_cur_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value); [all …]
|
D | pci_hotplug_core.c | 561 static int get_##name (struct hotplug_slot *slot, type *value) \ 563 struct hotplug_slot_ops *ops = slot->ops; \ 568 retval = ops->get_##name (slot, value); \ 570 *value = slot->info->name; \ 586 struct hotplug_slot *slot = file->private_data; in GET_STATUS() local 601 if (slot == NULL) { in GET_STATUS() 610 retval = get_power_status (slot, &value); in GET_STATUS() 629 struct hotplug_slot *slot = file->private_data; in power_write_file() local 642 if (slot == NULL) { in power_write_file() 663 if (!slot->ops->disable_slot) in power_write_file() [all …]
|
D | cpqphp.h | 260 struct slot { struct 262 struct slot *next; argument 305 struct slot *slot; member 458 extern int cpqhp_get_bus_dev (struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot); 470 extern struct slot *cpqhp_find_slot (struct controller *ctrl, u8 device); 486 static inline int slot_paranoia_check (struct slot *slot, const char *function) in slot_paranoia_check() argument 488 if (!slot) { in slot_paranoia_check() 492 if (slot->magic != SLOT_MAGIC) { in slot_paranoia_check() 496 if (!slot->hotplug_slot) { in slot_paranoia_check() 503 static inline struct slot *get_slot (struct hotplug_slot *hotplug_slot, const char *function) in get_slot() [all …]
|
D | pciehp_hpc.c | 289 static int pcie_write_cmd(struct slot *slot, u16 cmd) in pcie_write_cmd() argument 291 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in pcie_write_cmd() 298 if (!slot->ctrl->hpc_ctlr_handle) { in pcie_write_cmd() 361 static int hpc_get_attention_status(struct slot *slot, u8 *status) in hpc_get_attention_status() argument 363 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_attention_status() 370 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_attention_status() 409 static int hpc_get_power_status(struct slot * slot, u8 *status) in hpc_get_power_status() argument 411 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_power_status() 418 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_power_status() 450 static int hpc_get_latch_status(struct slot *slot, u8 *status) in hpc_get_latch_status() argument [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | mca.c | 87 struct MCA_adapter slot[MCA_NUMADAPTERS]; member 123 static void mca_configure_adapter_status(int slot) { in mca_configure_adapter_status() argument 124 mca_info->slot[slot].status = MCA_ADAPTER_NONE; in mca_configure_adapter_status() 126 mca_info->slot[slot].id = mca_info->slot[slot].pos[0] in mca_configure_adapter_status() 127 + (mca_info->slot[slot].pos[1] << 8); in mca_configure_adapter_status() 129 if(!mca_info->slot[slot].id && slot < MCA_MAX_SLOT_NR) { in mca_configure_adapter_status() 139 mca_info->slot[slot].status = MCA_ADAPTER_ERROR; in mca_configure_adapter_status() 142 } else if(mca_info->slot[slot].id != 0xffff) { in mca_configure_adapter_status() 151 mca_info->slot[slot].status = MCA_ADAPTER_NORMAL; in mca_configure_adapter_status() 154 if((mca_info->slot[slot].id == 0xffff || in mca_configure_adapter_status() [all …]
|
/linux-2.4.37.9/drivers/tc/ |
D | tc.c | 44 int slot; in search_tc_card() local 47 for (slot = 0; slot < num_tcslots; slot++) { in search_tc_card() 48 sip = &tc_bus[slot]; in search_tc_card() 51 return slot; in search_tc_card() 58 void claim_tc_card(int slot) in claim_tc_card() argument 60 if (tc_bus[slot].flags & IN_USE) { in claim_tc_card() 64 tc_bus[slot].flags &= ~FREE; in claim_tc_card() 65 tc_bus[slot].flags |= IN_USE; in claim_tc_card() 68 void release_tc_card(int slot) in release_tc_card() argument 70 if (tc_bus[slot].flags & FREE) { in release_tc_card() [all …]
|
/linux-2.4.37.9/arch/ia64/sn/io/sn2/pcibr/ |
D | pcibr_rrb.c | 75 #define SLOT_2_PDEV(bridge, slot) ((slot) >> 1) argument 76 #define SLOT_2_RRB_REG(bridge, slot) ((slot) & 0x1) argument 88 pciio_slot_t slot, in do_pcibr_rrb_count_valid() argument 95 if (!VALIDATE_SLOT_n_VCHAN(bridge, slot, vchan)) { in do_pcibr_rrb_count_valid() 96 printk(KERN_WARNING "do_pcibr_rrb_count_valid() invalid slot/vchan [%d/%d]\n", slot, vchan); in do_pcibr_rrb_count_valid() 102 pdev_bits = SLOT_2_PDEV(bridge, slot); in do_pcibr_rrb_count_valid() 105 tmp = bridge->b_rrb_map[SLOT_2_RRB_REG(bridge, slot)].reg; in do_pcibr_rrb_count_valid() 122 pciio_slot_t slot) in do_pcibr_rrb_count_avail() argument 128 if (!VALIDATE_SLOT_n_VCHAN(bridge, slot, 0)) { in do_pcibr_rrb_count_avail() 135 tmp = bridge->b_rrb_map[SLOT_2_RRB_REG(bridge, slot)].reg; in do_pcibr_rrb_count_avail() [all …]
|
D | pcibr_slot.c | 41 int pcibr_slot_info_init(vertex_hdl_t pcibr_vhdl, pciio_slot_t slot); 42 int pcibr_slot_info_free(vertex_hdl_t pcibr_vhdl, pciio_slot_t slot); 43 int pcibr_slot_addr_space_init(vertex_hdl_t pcibr_vhdl, pciio_slot_t slot); 44 int pcibr_slot_pcix_rbar_init(pcibr_soft_t pcibr_soft, pciio_slot_t slot); 45 int pcibr_slot_device_init(vertex_hdl_t pcibr_vhdl, pciio_slot_t slot); 46 int pcibr_slot_guest_info_init(vertex_hdl_t pcibr_vhdl, pciio_slot_t slot); 48 pciio_slot_t slot, int drv_flags); 50 pciio_slot_t slot, int drv_flags); 51 int pcibr_slot_detach(vertex_hdl_t pcibr_vhdl, pciio_slot_t slot, 62 int pcibr_slot_attach(vertex_hdl_t pcibr_vhdl, pciio_slot_t slot, [all …]
|
/linux-2.4.37.9/drivers/scsi/ |
D | NCR_D700.c | 153 int slot = -1, siop = -1; in param_setup() local 159 slot = val; in param_setup() 163 if(slot == -1) { in param_setup() 165 } else if(slot > MCA_MAX_SLOT_NR) { in param_setup() 166 printk(KERN_WARNING "NCR D700: Illegal slot %d for id %d\n", slot, val); in param_setup() 169 id_array[slot*2] = val; in param_setup() 170 id_array[slot*2 + 1] =val; in param_setup() 172 id_array[slot*2 + siop] = val; in param_setup() 193 int slot = 0; in D700_detect() local 206 for(slot = 0; (slot = mca_find_adapter(NCR_D700_MCA_ID, slot)) != MCA_NOTFOUND; slot++) { in D700_detect() [all …]
|
D | 53c700.c | 472 struct NCR_700_command_slot *slot = hostdata->free_list; in find_empty_slot() local 474 if(slot == NULL) { in find_empty_slot() 481 if(slot->state != NCR_700_SLOT_FREE) in find_empty_slot() 486 hostdata->free_list = slot->ITL_forw; in find_empty_slot() 487 slot->ITL_forw = NULL; in find_empty_slot() 494 slot->state = NCR_700_SLOT_BUSY; in find_empty_slot() 497 return slot; in find_empty_slot() 501 free_slot(struct NCR_700_command_slot *slot, in free_slot() argument 508 if((slot->state & NCR_700_SLOT_MASK) != NCR_700_SLOT_MAGIC) { in free_slot() 509 printk(KERN_ERR "53c700: SLOT %p is not MAGIC!!!\n", slot); in free_slot() [all …]
|
/linux-2.4.37.9/drivers/net/wan/8253x/ |
D | readme.txt | 77 128: port 0: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: close: NOPRG 78 129: port 1: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: openA: NOPRG 79 130: port 2: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: openA: NOPRG 80 131: port 3: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: close: NOPRG 81 132: port 4: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: close: NOPRG 82 133: port 5: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: openS: NOPRG 83 134: port 6: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: close: NOPRG 84 135: port 7: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: close: NOPRG 85 136: port 0: sab82538: v2: chip 0: ATI WANMS: bus 2: slot 11: NR: openA: RS232 86 137: port 1: sab82538: v2: chip 0: ATI WANMS: bus 2: slot 11: NR: openA: RS232 [all …]
|
/linux-2.4.37.9/include/linux/ |
D | mca.h | 52 extern int mca_isadapter(int slot); 53 extern int mca_isenabled(int slot); 55 extern int mca_is_adapter_used(int slot); 56 extern int mca_mark_as_used(int slot); 57 extern void mca_mark_as_unused(int slot); 60 extern unsigned char mca_read_stored_pos(int slot, int reg); 66 extern void mca_set_adapter_name(int slot, char* name); 67 extern char* mca_get_adapter_name(int slot); 80 typedef int (*MCA_ProcFn)(char* buf, int slot, void* dev); 81 extern void mca_set_adapter_procfn(int slot, MCA_ProcFn, void* dev); [all …]
|
/linux-2.4.37.9/fs/efs/ |
D | dir.c | 28 int slot, namelen; in efs_readdir() local 38 slot = filp->f_pos & 0xff; in efs_readdir() 58 while (slot < dirblock->slots) { in efs_readdir() 59 if (dirblock->space[slot] == 0) { in efs_readdir() 60 slot++; in efs_readdir() 64 dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); in efs_readdir() 71 …ddir(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", block, slot, dirblock->slots-1,… in efs_readdir() 75 filp->f_pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir() 82 printk(KERN_WARNING "EFS: directory entry %d exceeds directory block\n", slot); in efs_readdir() 83 slot++; in efs_readdir() [all …]
|
/linux-2.4.37.9/arch/mips/sgi-ip27/ |
D | ip27-memory.c | 59 pfn_t slot_getsize(cnodeid_t node, int slot) in slot_getsize() argument 61 return (pfn_t) slot_psize_cache[node][slot]; in slot_getsize() 78 int slot; in node_getmaxclick() local 84 for (slot = (node_getnumslots(node) - 1); slot >= 0; slot--) { in node_getmaxclick() 85 if ((slot_psize = slot_getsize(node, slot))) { in node_getmaxclick() 89 return slot_getbasepfn(node, slot) + slot_psize - 1; in node_getmaxclick() 100 static pfn_t slot_psize_compute(cnodeid_t node, int slot) in slot_psize_compute() argument 119 size = (unsigned long)banks->membnk_bnksz[slot/4]; in slot_psize_compute() 123 if (slot%4 == 0) { in slot_psize_compute() 139 int slot, numslots; in szmem() local [all …]
|
/linux-2.4.37.9/arch/mips/sgi-ip22/ |
D | ip22-irq.S | 65 andi a0, s0, CAUSEF_IP2 # delay slot, check local level zero 69 move a0, sp # delay slot 71 nop # delay slot 75 andi a0, s0, CAUSEF_IP3 # delay slot, check local level one 79 move a0, sp # delay slot 82 nop # delay slot 86 andi a0, s0, CAUSEF_IP6 # delay slot, check bus error 90 move a0, sp # delay slot 92 nop # delay slot 96 andi a0, s0, (CAUSEF_IP4 | CAUSEF_IP5) # delay slot [all …]
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | htab.c | 222 long slot; in make_pte() local 251 slot = ((hash & hash_mask)*HPTES_PER_GROUP); in make_pte() 260 lpar_rc = plpar_pte_enter(flags, slot, local_hpte.dw0.dword0, in make_pte() 265 slot = HvCallHpt_findValid(&rhpte, vpn); in make_pte() 266 if (slot < 0) { in make_pte() 270 HvCallHpt_addValidate(slot, 0, (HPTE *)&local_hpte ); in make_pte() 323 long slot; in __hash_page() local 393 unsigned long hash, slot, secondary; in __hash_page() local 400 slot = (hash & htab_data.htab_hash_mask) * HPTES_PER_GROUP; in __hash_page() 401 slot += (pte_val(old_pte) & _PAGE_GROUP_IX) >> 12; in __hash_page() [all …]
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | pci-direct.h | 12 static inline u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config() argument 15 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config() 18 PDprintk("%x reading 4 from %x: %x\n", slot, offset, v); in read_pci_config() 22 static inline u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_byte() argument 25 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config_byte() 27 PDprintk("%x reading 1 from %x: %x\n", slot, offset, v); in read_pci_config_byte() 31 static inline u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_16() argument 34 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config_16() 36 PDprintk("%x reading 2 from %x: %x\n", slot, offset, v); in read_pci_config_16() 40 static inline void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, in write_pci_config() argument [all …]
|
/linux-2.4.37.9/include/net/ |
D | profile.h | 264 #define NET_PROFILE_ENTER(slot) net_profile_enter(&net_prof_##slot) argument 265 #define NET_PROFILE_LEAVE(slot) net_profile_leave(&net_prof_##slot) argument 266 #define NET_PROFILE_LEAVE_IRQ(slot) net_profile_leave_irq(&net_prof_##slot) argument 276 #define NET_PROFILE_SKB_PASSED(skb, slot) ({ \ argument 280 net_profile_accumulate(&cur_pstamp, &skb->pstamp, &net_prof_##slot.accumulator); \ 281 net_prof_##slot.hits++; \ 284 #define NET_PROFILE_DECL(slot) \ argument 285 extern struct net_profile_slot net_prof_##slot; 287 #define NET_PROFILE_DEFINE(slot) \ argument 288 struct net_profile_slot net_prof_##slot = { #slot, }; [all …]
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | aperture.c | 91 static __u32 __init find_cap(int num, int slot, int func, int cap) in find_cap() argument 93 if (!(read_pci_config_16(num,slot,func,PCI_STATUS) & PCI_STATUS_CAP_LIST)) in find_cap() 95 u8 pos = read_pci_config_byte(num,slot,func,PCI_CAPABILITY_LIST); in find_cap() 99 u8 id = read_pci_config_byte(num,slot,func,pos+PCI_CAP_LIST_ID); in find_cap() 104 pos = read_pci_config_byte(num,slot,func,pos+PCI_CAP_LIST_NEXT); in find_cap() 110 static __u32 __init read_agp(int num, int slot, int func, int cap, u32 *order) in read_agp() argument 112 printk("AGP bridge at %02x:%02x:%02x\n", num, slot, func); in read_agp() 113 u32 apsizereg = read_pci_config_16(num,slot,func, cap + 0x14); in read_agp() 129 u32 aper_low = read_pci_config(num,slot,func, 0x10); in read_agp() 130 u32 aper_hi = read_pci_config(num,slot,func,0x14); in read_agp() [all …]
|