/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/mthca/ |
H A D | mthca_main.c | 138 static int mthca_tune_pci(struct mthca_dev *mdev) argument 147 cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX); 149 if (pci_read_config_word(mdev->pdev, cap + PCI_X_CMD, &val)) { 150 mthca_err(mdev, "Couldn't read PCI-X command register, " 155 if (pci_write_config_word(mdev->pdev, cap + PCI_X_CMD, val)) { 156 mthca_err(mdev, "Couldn't write PCI-X command register, " 160 } else if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) 161 mthca_info(mdev, "No PCI-X capability, not setting RBC.\n"); 163 cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_EXP); 165 if (pci_read_config_word(mdev 183 mthca_dev_lim(struct mthca_dev *mdev, struct mthca_dev_lim *dev_lim) argument 295 mthca_init_tavor(struct mthca_dev *mdev) argument 373 mthca_load_fw(struct mthca_dev *mdev) argument 418 mthca_init_icm(struct mthca_dev *mdev, struct mthca_dev_lim *dev_lim, struct mthca_init_hca_param *init_hca, u64 icm_size) argument 605 mthca_free_icms(struct mthca_dev *mdev) argument 624 mthca_init_arbel(struct mthca_dev *mdev) argument 714 mthca_close_hca(struct mthca_dev *mdev) argument 732 mthca_init_hca(struct mthca_dev *mdev) argument 976 mthca_enable_msi_x(struct mthca_dev *mdev) argument 1032 struct mthca_dev *mdev; local 1206 struct mthca_dev *mdev = pci_get_drvdata(pdev); local 1251 struct mthca_dev *mdev; local [all...] |
H A D | mthca_reset.c | 44 int mthca_reset(struct mthca_dev *mdev) argument 72 if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) { 75 while ((bridge = pci_get_device(mdev->pdev->vendor, 76 mdev->pdev->device + 2, 79 bridge->subordinate == mdev->pdev->bus) { 80 mthca_dbg(mdev, "Found bridge: %s\n", 92 mthca_warn(mdev, "No bridge found for %s\n", 93 pci_name(mdev->pdev)); 102 mthca_err(mdev, "Couldn't allocate memory to save HCA " 110 if (pci_read_config_dword(mdev [all...] |
H A D | mthca_profile.h | 56 u64 mthca_make_profile(struct mthca_dev *mdev,
|
H A D | mthca_provider.c | 63 struct mthca_dev* mdev = to_mdev(ibdev); local 74 props->fw_ver = mdev->fw_ver; 79 err = mthca_MAD_IFC(mdev, 1, 1, 89 props->device_cap_flags = mdev->device_cap_flags; 97 props->page_size_cap = mdev->limits.page_size_cap; 98 props->max_qp = mdev->limits.num_qps - mdev->limits.reserved_qps; 99 props->max_qp_wr = mdev->limits.max_wqes; 100 props->max_sge = mdev->limits.max_sg; 101 props->max_cq = mdev 1156 struct mthca_dev *mdev = NULL; local [all...] |
H A D | mthca_dev.h | 368 #define mthca_dbg(mdev, format, arg...) \ 371 dev_printk(KERN_DEBUG, &mdev->pdev->dev, format, ## arg); \ 376 #define mthca_dbg(mdev, format, arg...) do { (void) mdev; } while (0) 380 #define mthca_err(mdev, format, arg...) \ 381 dev_err(&mdev->pdev->dev, format, ## arg) 382 #define mthca_info(mdev, format, arg...) \ 383 dev_info(&mdev->pdev->dev, format, ## arg) 384 #define mthca_warn(mdev, format, arg...) \ 385 dev_warn(&mdev [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/core/seq/oss/ |
H A D | seq_oss_midi.c | 67 static int send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_midi *mdev); 106 struct seq_oss_midi *mdev; local 110 mdev = midi_devs[dev]; 111 if (mdev) 112 snd_use_lock_use(&mdev->use_lock); 114 return mdev; 124 struct seq_oss_midi *mdev; local 129 mdev = midi_devs[i]; 130 if (mdev && mdev 151 struct seq_oss_midi *mdev; local 229 struct seq_oss_midi *mdev; local 261 struct seq_oss_midi *mdev; local 331 struct seq_oss_midi *mdev; local 397 struct seq_oss_midi *mdev; local 435 struct seq_oss_midi *mdev; local 458 struct seq_oss_midi *mdev; local 506 struct seq_oss_midi *mdev; local 523 struct seq_oss_midi *mdev; local 609 send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_midi *mdev) argument 639 struct seq_oss_midi *mdev; local 658 struct seq_oss_midi *mdev; local 693 struct seq_oss_midi *mdev; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/wireless/ |
H A D | airport.c | 28 struct macio_dev *mdev; member in struct:airport 35 airport_suspend(struct macio_dev *mdev, pm_message_t state) argument 37 struct net_device *dev = dev_get_drvdata(&mdev->ofdev.dev); 63 pmac_call_feature(PMAC_FTR_AIRPORT_ENABLE, macio_get_of_node(mdev), 0, 0); 69 airport_resume(struct macio_dev *mdev) argument 71 struct net_device *dev = dev_get_drvdata(&mdev->ofdev.dev); 78 pmac_call_feature(PMAC_FTR_AIRPORT_ENABLE, macio_get_of_node(mdev), 0, 1); 110 airport_detach(struct macio_dev *mdev) argument 112 struct net_device *dev = dev_get_drvdata(&mdev->ofdev.dev); 128 macio_release_resource(mdev, 150 airport_attach(struct macio_dev *mdev, const struct of_device_id *match) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/mac80211/ |
H A D | ieee80211_cfg.c | 41 return ieee80211_if_add(local->mdev, name, NULL, itype); 60 return ieee80211_if_remove(local->mdev, name, -1);
|
H A D | ieee80211.c | 991 if (sdata->dev == local->mdev || 1017 local->mdev->name, purged); 1178 struct net_device *mdev, 1186 if (unlikely(dev && !is_ieee80211_device(dev, mdev))) { 1218 if (!ieee80211_qdisc_installed(local->mdev) && 1220 netif_stop_queue(local->mdev); 1224 ieee80211_dump_frame(local->mdev->name, "TX to low-level driver", skb); 1228 local->mdev->trans_start = jiffies; 1252 ieee80211_dump_frame(local->mdev->name, 1260 local->mdev 1176 ieee80211_tx_prepare(struct ieee80211_txrx_data *tx, struct sk_buff *skb, struct net_device *mdev, struct ieee80211_tx_control *control) argument 4578 struct net_device *mdev; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/aoa/soundbus/ |
H A D | sysfs.c | 11 struct soundbus_dev *mdev = to_soundbus_device (dev); \ 12 return sprintf (buf, format_string, mdev->ofdev.node->field); \
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/mlx4/ |
H A D | mlx4.h | 93 #define mlx4_dbg(mdev, format, arg...) \ 96 dev_printk(KERN_DEBUG, &mdev->pdev->dev, format, ## arg); \ 101 #define mlx4_dbg(mdev, format, arg...) do { (void) mdev; } while (0) 105 #define mlx4_err(mdev, format, arg...) \ 106 dev_err(&mdev->pdev->dev, format, ## arg) 107 #define mlx4_info(mdev, format, arg...) \ 108 dev_info(&mdev->pdev->dev, format, ## arg) 109 #define mlx4_warn(mdev, format, arg...) \ 110 dev_warn(&mdev [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/oss/ |
H A D | vidc.c | 88 vidc_mixer_set(int mdev, unsigned int level) argument 104 switch (mdev) { 107 vidc_level_l[mdev] = lev_l; 108 vidc_level_r[mdev] = lev_r; 121 unsigned int mdev; local 126 mdev = _SIOC_NR(cmd); 132 if (mdev < SOUND_MIXER_NRDEVICES) 133 vidc_mixer_set(mdev, val); 141 switch (mdev) { 163 if (mdev < SOUND_MIXER_NRDEVICE [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-powerpc/ |
H A D | macio.h | 106 static inline struct device_node *macio_get_of_node(struct macio_dev *mdev) argument 108 return mdev->ofdev.node; 112 static inline struct pci_dev *macio_get_pci_dev(struct macio_dev *mdev) argument 114 return mdev->bus->pdev;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/ |
H A D | mca.h | 72 #define to_mca_device(mdev) container_of(mdev, struct mca_device, dev) 92 #define to_mca_bus(mdev) container_of(mdev, struct mca_bus, dev)
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/macintosh/ |
H A D | mediabay.c | 75 struct macio_dev *mdev; member in struct:media_bay_info 423 if (media_bays[i].mdev && which_bay == media_bays[i].mdev->ofdev.node) { 440 if (media_bays[i].mdev && base == (unsigned long) media_bays[i].cd_base) { 460 if (bay->mdev && which_bay == bay->mdev->ofdev.node) { 644 static int __devinit media_bay_attach(struct macio_dev *mdev, const struct of_device_id *match) argument 652 ofnode = mdev->ofdev.node; 654 if (macio_resource_count(mdev) < 1) 656 if (macio_request_resources(mdev, "medi 708 media_bay_suspend(struct macio_dev *mdev, pm_message_t state) argument 723 media_bay_resume(struct macio_dev *mdev) argument [all...] |
H A D | macio_sysfs.c | 11 struct macio_dev *mdev = to_macio_device (dev); \ 12 return sprintf (buf, format_string, mdev->ofdev.node->field); \
|
H A D | rack-meter.c | 59 struct macio_dev *mdev; member in struct:rackmeter 97 struct macio_chip *macio = rm->mdev->bus->chip; 366 static int __devinit rackmeter_probe(struct macio_dev* mdev, argument 377 while ((i2s = of_get_next_child(mdev->ofdev.node, i2s)) != NULL) 404 rm->mdev = mdev; 407 dev_set_drvdata(&mdev->ofdev.dev, rm); 415 mdev->ofdev.node->full_name); 432 rm->dma_buf_v = dma_alloc_coherent(&macio_get_pci_dev(mdev)->dev, 480 dma_free_coherent(&macio_get_pci_dev(mdev) 495 rackmeter_remove(struct macio_dev* mdev) argument 530 rackmeter_shutdown(struct macio_dev* mdev) argument [all...] |
H A D | macio_asic.c | 171 struct macio_dev *mdev; local 173 mdev = to_macio_device(dev); 174 kfree(mdev); 383 printk("preparing mdev @%p, ofdev @%p, dev @%p, kobj @%p\n", 443 struct macio_dev *rdev, *mdev, *mbdev = NULL, *sdev = NULL; local 469 mdev = macio_add_one_device(chip, &rdev->ofdev.dev, np, NULL, 471 if (mdev == NULL) 474 mbdev = mdev; 476 sdev = mdev;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/ |
H A D | mac53c94.c | 58 struct macio_dev *mdev; member in struct:fsc_state 407 static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *match) argument 409 struct device_node *node = macio_get_of_node(mdev); 410 struct pci_dev *pdev = macio_get_pci_dev(mdev); 417 if (macio_resource_count(mdev) != 2 || macio_irq_count(mdev) != 2) { 420 macio_resource_count(mdev), macio_irq_count(mdev)); 424 if (macio_request_resources(mdev, "mac53c94") != 0) { 437 macio_set_drvdata(mdev, stat 506 mac53c94_remove(struct macio_dev *mdev) argument [all...] |
H A D | mesh.c | 173 struct macio_dev *mdev; member in struct:mesh_state 1740 pmac_call_feature(PMAC_FTR_MESH_ENABLE, macio_get_of_node(ms->mdev), 0, 1); 1743 pmac_call_feature(PMAC_FTR_MESH_ENABLE, macio_get_of_node(ms->mdev), 0, 0); 1750 static int mesh_suspend(struct macio_dev *mdev, pm_message_t mesg) argument 1752 struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev); 1762 if (mesg.event == mdev->ofdev.dev.power.power_state.event) 1777 mdev->ofdev.dev.power.power_state = mesg; 1782 static int mesh_resume(struct macio_dev *mdev) argument 1784 struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev); 1787 if (mdev 1810 mesh_shutdown(struct macio_dev *mdev) argument 1843 mesh_probe(struct macio_dev *mdev, const struct of_device_id *match) argument 1991 mesh_remove(struct macio_dev *mdev) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/tokenring/ |
H A D | madgemc.c | 149 struct mca_device *mdev = to_mca_device(device); local 155 if(mca_device_claimed(mdev)) 157 mca_device_set_claim(mdev, 1); 162 mca_device_set_claim(mdev, 0); 187 ((mdev->pos[2] & MC16_POS2_ADDR2)?0x0400:0) + 188 ((mdev->pos[0] & MC16_POS0_ADDR1)?0x1000:0) + 189 ((mdev->pos[3] & MC16_POS3_ADDR3)?0x2000:0); 194 switch(mdev->pos[0] >> 6) { /* upper two bits */ 209 printk(KERN_INFO "madgemc: unable to setup Smart MC in slot %d because of I/O base conflict at 0x%04lx\n", mdev->slot, dev->base_addr); 219 card->arblevel = ((mdev [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/ |
H A D | mace.c | 64 struct macio_dev *mdev; member in struct:mace_data 98 static int __devinit mace_probe(struct macio_dev *mdev, const struct of_device_id *match) argument 100 struct device_node *mace = macio_get_of_node(mdev); 106 if (macio_resource_count(mdev) != 3 || macio_irq_count(mdev) != 3) { 134 if (macio_request_resources(mdev, "mace")) { 146 SET_NETDEV_DEV(dev, &mdev->ofdev.dev); 149 mp->mdev = mdev; 150 macio_set_drvdata(mdev, de 275 mace_remove(struct macio_dev *mdev) argument [all...] |
H A D | bmac.c | 68 struct macio_dev *mdev; member in struct:bmac_data 193 pmac_call_feature(PMAC_FTR_BMAC_ENABLE, macio_get_of_node(bp->mdev), 0, 1); 400 static int bmac_suspend(struct macio_dev *mdev, pm_message_t state) argument 402 struct net_device* dev = macio_get_drvdata(mdev); 446 pmac_call_feature(PMAC_FTR_BMAC_ENABLE, macio_get_of_node(bp->mdev), 0, 0); 450 static int bmac_resume(struct macio_dev *mdev) argument 452 struct net_device* dev = macio_get_drvdata(mdev); 1170 static int __devinit bmac_probe(struct macio_dev *mdev, const struct of_device_id *match) argument 1179 if (macio_resource_count(mdev) != 3 || macio_irq_count(mdev) ! 1483 bmac_remove(struct macio_dev *mdev) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/ppc/ |
H A D | pmac.c | 67 struct macio_dev *mdev; member in struct:pmac_ide_hwif 454 hw->dev = &pmac_ide[ix].mdev->ofdev.dev; 1286 pmac_ide_macio_attach(struct macio_dev *mdev, const struct of_device_id *match) argument 1301 printk(KERN_ERR " %s\n", mdev->ofdev.node->full_name); 1308 if (macio_resource_count(mdev) == 0) { 1310 i, mdev->ofdev.node->full_name); 1315 if (macio_request_resource(mdev, 0, "ide-pmac (ports)")) { 1320 if (macio_irq_count(mdev) == 0) { 1322 i, mdev->ofdev.node->full_name); 1325 irq = macio_irq(mdev, 1366 pmac_ide_macio_suspend(struct macio_dev *mdev, pm_message_t mesg) argument 1382 pmac_ide_macio_resume(struct macio_dev *mdev) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/block/ |
H A D | swim3.c | 1005 static int swim3_add_device(struct macio_dev *mdev, int index) argument 1007 struct device_node *swim = mdev->ofdev.node; 1013 if (macio_resource_count(mdev) < 2) { 1018 if (macio_irq_count(mdev) < 2) { 1022 if (macio_request_resource(mdev, 0, "swim3 (mmio)")) { 1027 if (macio_request_resource(mdev, 1, "swim3 (dma)")) { 1030 macio_release_resource(mdev, 0); 1033 dev_set_drvdata(&mdev->ofdev.dev, fs); 1044 ioremap(macio_resource_start(mdev, 0), 0x200); 1052 ioremap(macio_resource_start(mdev, 1107 swim3_attach(struct macio_dev *mdev, const struct of_device_id *match) argument [all...] |