Home
last modified time | relevance | path

Searched refs:dn (Results 1 – 25 of 44) sorted by relevance

12

/linux-2.4.37.9/arch/ppc64/kernel/
Dpci_dn.c48 update_dn_pci_info(struct device_node *dn, void *data) in update_dn_pci_info() argument
52 char *device_type = get_property(dn, "device_type", 0); in update_dn_pci_info()
53 char *status = get_property(dn, "status", 0); in update_dn_pci_info()
55 dn->phb = phb; in update_dn_pci_info()
56 if (device_type && strcmp(device_type, "pci") == 0 && get_property(dn, "class-code", 0) == 0) { in update_dn_pci_info()
58 regs = (u32 *)get_property(dn, "bus-range", 0); in update_dn_pci_info()
59 dn->busno = regs[0]; in update_dn_pci_info()
60 dn->devfn = 0; /* assumption */ in update_dn_pci_info()
62 regs = (u32 *)get_property(dn, "reg", 0); in update_dn_pci_info()
65 dn->busno = (regs[0] >> 16) & 0xff; in update_dn_pci_info()
[all …]
Deeh.c53 static int eeh_check_opts_config(struct device_node *dn,
79 struct device_node *dn; in eeh_check_failure() local
97 dn = pci_device_to_OF_node(dev); in eeh_check_failure()
98 if (!dn) { in eeh_check_failure()
104 if (!(dn->eeh_mode & EEH_MODE_SUPPORTED) || dn->eeh_mode & EEH_MODE_NOCHECK) in eeh_check_failure()
114 if (dn->eeh_config_addr) { in eeh_check_failure()
116 dn->eeh_config_addr, BUID_HI(dn->phb->buid), BUID_LO(dn->phb->buid)); in eeh_check_failure()
123 8, 1, dn->eeh_config_addr, in eeh_check_failure()
124 BUID_HI(dn->phb->buid), BUID_LO(dn->phb->buid), in eeh_check_failure()
147 static void *early_set_eeh(struct device_node *dn, struct eeh_early_enable_info *info, int enable) in early_set_eeh() argument
[all …]
DpSeries_pci.c55 static int rtas_fake_read(struct device_node *dn, int offset, int nbytes, unsigned long *returnval);
72 rtas_read_config_##size(struct device_node *dn, int offset, type val) { \
78 if (dn == NULL) { \
80 } else if (dn->status) { \
83 addr = (dn->busno << 16) | (dn->devfn << 8) | offset; \
84 buid = dn->phb->buid; \
88 ret = rtas_fake_read(dn, offset, nbytes, &returnval); \
98 struct device_node *dn = pci_device_to_OF_node(dev); \
99 int ret = rtas_read_config_##size(dn, offset, val); \
106 rtas_write_config_##size(struct device_node *dn, int offset, type val) { \
[all …]
Dpci_dma.c124 struct device_node *dn,
128 struct device_node *dn,
679 struct device_node *dn, *first_dn; in create_tce_tables_for_buses() local
686 for (dn = first_dn, num_slots = 0; dn != NULL; dn = dn->sibling) in create_tce_tables_for_buses()
699 for (dn = first_dn, num_slots = 0; dn != NULL; dn = dn->sibling) { in create_tce_tables_for_buses()
700 create_pci_bus_tce_table((unsigned long)dn); in create_tce_tables_for_buses()
729 struct device_node *dn, *mydn; in create_tce_tables() local
742 mydn = dn = PCI_GET_DN(dev); in create_tce_tables()
743 while (dn && dn->tce_table == NULL) in create_tce_tables()
744 dn = dn->parent; in create_tce_tables()
[all …]
Dpci.h73 struct device_node *dn = (struct device_node *)(dev->sysdata); in pci_device_to_OF_node() local
74 if (dn->devfn == dev->devfn && dn->busno == (dev->bus->number&0xff)) in pci_device_to_OF_node()
75 return dn; /* fast path. sysdata is good */ in pci_device_to_OF_node()
Dchrp_setup.c323 struct device_node * dn; in chrp_init() local
326 dn = find_path_device("/rtas"); in chrp_init()
328 hypertas = get_property(dn, "ibm,hypertas-functions", &len); in chrp_init()
/linux-2.4.37.9/fs/
Ddnotify.c34 struct dnotify_struct *dn; in redo_inode_mask() local
37 for (dn = inode->i_dnotify; dn != NULL; dn = dn->dn_next) in redo_inode_mask()
38 new_mask |= dn->dn_mask & ~DN_MULTISHOT; in redo_inode_mask()
44 struct dnotify_struct *dn; in dnotify_flush() local
53 while ((dn = *prev) != NULL) { in dnotify_flush()
54 if ((dn->dn_owner == id) && (dn->dn_filp == filp)) { in dnotify_flush()
55 *prev = dn->dn_next; in dnotify_flush()
57 kmem_cache_free(dn_cache, dn); in dnotify_flush()
60 prev = &dn->dn_next; in dnotify_flush()
67 struct dnotify_struct *dn; in fcntl_dirnotify() local
[all …]
/linux-2.4.37.9/net/decnet/
Ddn_neigh.c131 struct dn_neigh *dn = (struct dn_neigh *)neigh; in dn_neigh_construct() local
145 if (dn->flags & DN_NDFLAG_P3) in dn_neigh_construct()
154 dn_dn2eth(neigh->ha, dn->addr); in dn_neigh_construct()
161 dn->blksize = 230; in dn_neigh_construct()
347 struct dn_neigh *dn; in dn_neigh_router_hello() local
355 dn = (struct dn_neigh *)neigh; in dn_neigh_router_hello()
369 dn->blksize = dn_ntohs(msg->blksize); in dn_neigh_router_hello()
370 dn->priority = msg->priority; in dn_neigh_router_hello()
372 dn->flags &= ~DN_NDFLAG_P3; in dn_neigh_router_hello()
376 dn->flags &=~DN_NDFLAG_R2; in dn_neigh_router_hello()
[all …]
Ddn_dev.c678 struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; in dn_send_endnode_hello() local
679 dn_dn2eth(msg->neighbor, dn->addr); in dn_send_endnode_hello()
700 static int dn_am_i_a_router(struct dn_neigh *dn, struct dn_dev *dn_db) in dn_am_i_a_router() argument
711 if (dn->priority < dn_db->parms.priority) in dn_am_i_a_router()
715 if (dn->priority != dn_db->parms.priority) in dn_am_i_a_router()
718 if (dn_ntohs(dn->addr) < dn_ntohs(decnet_address)) in dn_am_i_a_router()
728 struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; in dn_send_router_hello() local
784 if (dn_am_i_a_router(dn, dn_db)) { in dn_send_router_hello()
819 struct dn_neigh *dn = (struct dn_neigh *)dn_db->router;
836 if (dn_am_i_a_router(dn, dn_db)) {
/linux-2.4.37.9/drivers/ide/pci/
Datiixp.c216 if (save_mdma_mode[drive->dn]) in atiixp_ide_dma_host_on()
217 tmp16 &= ~(1 << drive->dn); in atiixp_ide_dma_host_on()
219 tmp16 |= (1 << drive->dn); in atiixp_ide_dma_host_on()
236 tmp16 &= ~(1 << drive->dn); in atiixp_ide_dma_host_off()
256 int timing_shift = (drive->dn & 2) ? 16 : 0 + (drive->dn & 1) ? 0 : 8; in atiixp_tuneproc()
263 pio_mode_data &= ~(0x07 << (drive->dn * 4)); in atiixp_tuneproc()
264 pio_mode_data |= (pio << (drive->dn * 4)); in atiixp_tuneproc()
290 int timing_shift = (drive->dn & 2) ? 16 : 0 + (drive->dn & 1) ? 0 : 8; in atiixp_speedproc()
299 save_mdma_mode[drive->dn] = 0; in atiixp_speedproc()
302 tmp16 &= ~(0x07 << (drive->dn * 4)); in atiixp_speedproc()
[all …]
Damd74xx.c208 static void amd_set_speed(struct pci_dev *dev, unsigned char dn, struct ide_timing *timing) in amd_set_speed() argument
213 t = (t & ~(3 << ((3 - dn) << 1))) | ((FIT(timing->setup, 1, 4) - 1) << ((3 - dn) << 1)); in amd_set_speed()
216 pci_write_config_byte(dev, AMD_8BIT_TIMING + (1 - (dn >> 1)), in amd_set_speed()
219 pci_write_config_byte(dev, AMD_DRIVE_TIMING + (3 - dn), in amd_set_speed()
230 pci_write_config_byte(dev, AMD_UDMA_TIMING + (3 - dn), t); in amd_set_speed()
241 ide_drive_t *peer = HWIF(drive)->drives + (~drive->dn & 1); in amd_set_drive()
248 drive->dn >> 1, drive->dn & 1); in amd_set_drive()
263 amd_set_speed(HWIF(drive)->pci_dev, drive->dn, &t); in amd_set_drive()
433 hwif->drives[i].dn = hwif->channel * 2 + i; in init_hwif_amd74xx()
Dvia82cxxx.c289 static void via_set_speed(struct pci_dev *dev, u8 dn, struct ide_timing *timing) in via_set_speed() argument
295 t = (t & ~(3 << ((3 - dn) << 1))) | ((FIT(timing->setup, 1, 4) - 1) << ((3 - dn) << 1)); in via_set_speed()
299 pci_write_config_byte(dev, VIA_8BIT_TIMING + (1 - (dn >> 1)), in via_set_speed()
302 pci_write_config_byte(dev, VIA_DRIVE_TIMING + (3 - dn), in via_set_speed()
313 pci_write_config_byte(dev, VIA_UDMA_TIMING + (3 - dn), t); in via_set_speed()
328 ide_drive_t *peer = HWIF(drive)->drives + (~drive->dn & 1); in via_set_drive()
336 drive->dn >> 1, drive->dn & 1); in via_set_drive()
355 via_set_speed(HWIF(drive)->pci_dev, drive->dn, &t); in via_set_drive()
596 hwif->drives[i].dn = hwif->channel * 2 + i; in init_hwif_via82cxxx()
Dhpt34x.c119 tmp1 = ((0x00 << (3*drive->dn)) | (reg1 & ~(7 << (3*drive->dn)))); in hpt34x_clear_chipset()
120 tmp2 = (reg2 & ~(0x11 << drive->dn)); in hpt34x_clear_chipset()
143 tmp1 = ((lo_speed << (3*drive->dn)) | (reg1 & ~(7 << (3*drive->dn)))); in hpt34x_tune_chipset()
144 tmp2 = ((hi_speed << drive->dn) | reg2); in hpt34x_tune_chipset()
152 drive->dn, reg1, tmp1, reg2, tmp2, in hpt34x_tune_chipset()
Dserverworks.c296 pci_read_config_byte(dev, drive_pci[drive->dn], &pio_timing); in svwks_tune_chipset()
297 pci_read_config_byte(dev, drive_pci2[drive->dn], &dma_timing); in svwks_tune_chipset()
309 if (((ultra_enable << (7-drive->dn) & 0x80) == 0x80) && in svwks_tune_chipset()
355 ultra_enable &= ~(0x01 << drive->dn); in svwks_tune_chipset()
356 csb5_pio &= ~(0x0F << (4*drive->dn)); in svwks_tune_chipset()
365 csb5_pio |= ((speed - XFER_PIO_0) << (4*drive->dn)); in svwks_tune_chipset()
372 csb5_pio |= (pio << (4*drive->dn)); in svwks_tune_chipset()
383 csb5_pio |= (pio << (4*drive->dn)); in svwks_tune_chipset()
386 ultra_enable |= (0x01 << drive->dn); in svwks_tune_chipset()
391 pci_write_config_byte(dev, drive_pci[drive->dn], pio_timing); in svwks_tune_chipset()
[all …]
Dslc90e66.c209 int sitre = 0, a_speed = 7 << (drive->dn * 4); in slc90e66_tune_chipset()
210 int u_speed = 0, u_flag = 1 << drive->dn; in slc90e66_tune_chipset()
221 case XFER_UDMA_4: u_speed = 4 << (drive->dn * 4); break; in slc90e66_tune_chipset()
222 case XFER_UDMA_3: u_speed = 3 << (drive->dn * 4); break; in slc90e66_tune_chipset()
223 case XFER_UDMA_2: u_speed = 2 << (drive->dn * 4); break; in slc90e66_tune_chipset()
224 case XFER_UDMA_1: u_speed = 1 << (drive->dn * 4); break; in slc90e66_tune_chipset()
225 case XFER_UDMA_0: u_speed = 0 << (drive->dn * 4); break; in slc90e66_tune_chipset()
Daec62xx.c244 pci_read_config_word(dev, 0x40|(2*drive->dn), &d_conf); in aec6210_tune_chipset()
248 pci_write_config_word(dev, 0x40|(2*drive->dn), d_conf); in aec6210_tune_chipset()
253 tmp1 = ((0x00 << (2*drive->dn)) | (ultra & ~(3 << (2*drive->dn)))); in aec6210_tune_chipset()
255 tmp2 = ((ultra_conf << (2*drive->dn)) | (tmp1 & ~(3 << (2*drive->dn)))); in aec6210_tune_chipset()
272 pci_read_config_byte(dev, 0x40|drive->dn, &drive_conf); in aec6260_tune_chipset()
274 pci_write_config_byte(dev, 0x40|drive->dn, drive_conf); in aec6260_tune_chipset()
Dpiix.c432 int a_speed = 3 << (drive->dn * 4); in piix_tune_chipset()
433 int u_flag = 1 << drive->dn; in piix_tune_chipset()
434 int v_flag = 0x01 << drive->dn; in piix_tune_chipset()
435 int w_flag = 0x10 << drive->dn; in piix_tune_chipset()
450 case XFER_UDMA_2: u_speed = 2 << (drive->dn * 4); break; in piix_tune_chipset()
453 case XFER_UDMA_1: u_speed = 1 << (drive->dn * 4); break; in piix_tune_chipset()
454 case XFER_UDMA_0: u_speed = 0 << (drive->dn * 4); break; in piix_tune_chipset()
Dit8172.c135 int a_speed = 3 << (drive->dn * 4); in it8172_tune_chipset()
136 int u_flag = 1 << drive->dn; in it8172_tune_chipset()
159 case XFER_UDMA_0: u_speed = 0 << (drive->dn * 4); break; in it8172_tune_chipset()
Dsis5513.c448 u8 rw_prefetch = (0x11 << drive->dn); in config_drive_art_rwp()
496 drive_pci += ((drive->dn)*0x4); in config_art_rwp_pio()
498 drive_pci += ((drive->dn)*0x2); in config_art_rwp_pio()
570 drive_pci += ((drive->dn)*0x4); in sis5513_tune_chipset()
579 drive_pci += ((drive->dn)*0x2); in sis5513_tune_chipset()
656 drive->dn, drive->id->dma_ultra); in config_chipset_for_dma()
Dpdc202xx_old.c239 u8 drive_pci = 0x60 + (drive->dn << 2); in pdc202xx_tune_chipset()
329 drive->dn, drive_conf); in pdc202xx_tune_chipset()
369 u8 drive_pci = 0x60 + (drive->dn << 2); in config_chipset_for_dma()
428 if (hwif->drives[!(drive->dn%2)].present) { in config_chipset_for_dma()
429 if (hwif->drives[!(drive->dn%2)].id->dma_ultra & 0x0078) { in config_chipset_for_dma()
440 drive_pci = 0x60 + (drive->dn << 2); in config_chipset_for_dma()
/linux-2.4.37.9/include/asm-ppc64/
Dmachdep.h110 int (*pcibios_read_config_byte)(struct device_node *dn, int offset, u8 *val);
111 int (*pcibios_read_config_word)(struct device_node *dn, int offset, u16 *val);
112 int (*pcibios_read_config_dword)(struct device_node *dn, int offset, u32 *val);
113 int (*pcibios_write_config_byte)(struct device_node *dn, int offset, u8 val);
114 int (*pcibios_write_config_word)(struct device_node *dn, int offset, u16 val);
115 int (*pcibios_write_config_dword)(struct device_node *dn, int offset, u32 val);
/linux-2.4.37.9/drivers/isdn/sc/
Ddebug.c39 inline void pullphone(char *dn, char *str) in pullphone() argument
43 while(dn[i] != ',') in pullphone()
44 str[i] = dn[i], i++; in pullphone()
Dioctl.c216 char dn[SCIOC_DNSIZE]; in sc_ioctl() local
235 strcpy(dn, rcvmsg.msg_data.byte_array); in sc_ioctl()
240 if ((err = copy_to_user((char *) data->dataptr, dn, sizeof(dn)))) in sc_ioctl()
249 char dn[SCIOC_DNSIZE]; in sc_ioctl() local
257 if ((err = copy_from_user(dn, (char *) data->dataptr, sizeof(dn)))) in sc_ioctl()
261 adapter[card]->devicename, data->channel, dn); in sc_ioctl()
264 strlen(dn),dn,&rcvmsg, SAR_TIMEOUT); in sc_ioctl()
514 strcpy(bi->status.bristats[i].dn, rcvmsg.msg_data.byte_array); in GetStatus()
Dcard.h57 char dn[50]; member
/linux-2.4.37.9/drivers/ide/ppc/
Dpmac.c2027 int dn; in idepmac_notify_sleep() local
2033 for (dn=0; dn<MAX_DRIVES; dn++) { in idepmac_notify_sleep()
2034 if (!hwif->drives[dn].present) in idepmac_notify_sleep()
2036 idepmac_sleep_drive(&hwif->drives[dn]); in idepmac_notify_sleep()
2075 int used_dma, dn; in idepmac_notify_sleep() local
2082 for (dn=0; dn<MAX_DRIVES; dn++) { in idepmac_notify_sleep()
2083 ide_drive_t *drive = &hwif->drives[dn]; in idepmac_notify_sleep()

12