Home
last modified time | relevance | path

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

12

/external/ltp/testcases/kernel/device-drivers/usb/tusb/
Dtusb.c349 struct pci_dev *pdev = in test_find_hcd() local
352 ltp_usb.pdev = pdev; in test_find_hcd()
356 pdev = pci_find_class(PCI_CLASS_SERIAL_USB << 8, NULL); in test_find_hcd()
357 if (pdev) { in test_find_hcd()
359 printk("tusb: Slot number: %d\n", pdev->devfn); in test_find_hcd()
361 memcpy(ltp_usb.pdev, pdev, sizeof(struct pci_dev)); in test_find_hcd()
363 if (pdev->driver->id_table) in test_find_hcd()
388 struct pci_dev *pdev = ltp_usb.pdev; in test_hcd_probe() local
391 if (!pdev) { in test_hcd_probe()
396 id = (struct pci_device_id *)pdev->driver->id_table; in test_hcd_probe()
[all …]
Dst_tusb.h60 struct pci_dev *pdev; /* pci is typical */ member
102 struct pci_dev *pdev; member
/external/syslinux/gpxe/src/drivers/net/
Dr8169.c1057 struct pci_device *pdev = tp->pci_dev; in rtl_hw_start_8169() local
1063 pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, 0x08); in rtl_hw_start_8169()
1128 static void rtl_tx_performance_tweak(struct pci_device *pdev, u16 force) in rtl_tx_performance_tweak() argument
1130 struct net_device *dev = pci_get_drvdata(pdev); in rtl_tx_performance_tweak()
1139 pci_read_config_word(pdev, cap + PCI_EXP_DEVCTL, &ctl); in rtl_tx_performance_tweak()
1141 pci_write_config_word(pdev, cap + PCI_EXP_DEVCTL, ctl); in rtl_tx_performance_tweak()
1174 static void rtl_disable_clock_request(struct pci_device *pdev) in rtl_disable_clock_request() argument
1176 struct net_device *dev = pci_get_drvdata(pdev); in rtl_disable_clock_request()
1185 pci_read_config_word(pdev, cap + PCI_EXP_LNKCTL, &ctl); in rtl_disable_clock_request()
1187 pci_write_config_word(pdev, cap + PCI_EXP_LNKCTL, ctl); in rtl_disable_clock_request()
[all …]
Dsis190.c50 static int sis190_isa_bridge_probe(struct pci_device *pdev __unused, in sis190_isa_bridge_probe()
56 static void sis190_isa_bridge_remove(struct pci_device *pdev __unused) in sis190_isa_bridge_remove()
873 static int sis190_init_board(struct pci_device *pdev, struct net_device **netdev) in sis190_init_board() argument
887 dev->dev = &pdev->dev; in sis190_init_board()
894 adjust_pci_device(pdev); in sis190_init_board()
896 ioaddr = ioremap(pdev->membase, SIS190_REGS_SIZE); in sis190_init_board()
903 tp->pci_device = pdev; in sis190_init_board()
923 static int sis190_get_mac_addr_from_eeprom(struct pci_device *pdev __unused, in sis190_get_mac_addr_from_eeprom()
962 static int sis190_get_mac_addr_from_apc(struct pci_device *pdev, in sis190_get_mac_addr_from_apc() argument
973 list_for_each_entry(d, &(pdev->dev.siblings), siblings) { in sis190_get_mac_addr_from_apc()
[all …]
Datl1e.c191 static void atl1e_setup_pcicmd(struct pci_device *pdev) in atl1e_setup_pcicmd() argument
195 pci_read_config_word(pdev, PCI_COMMAND, &cmd); in atl1e_setup_pcicmd()
197 pci_write_config_word(pdev, PCI_COMMAND, cmd); in atl1e_setup_pcicmd()
204 pci_write_config_dword(pdev, REG_PM_CTRLSTAT, 0); in atl1e_setup_pcicmd()
219 struct pci_device *pdev = adapter->pdev; in atl1e_sw_init() local
227 pci_read_config_byte(pdev, PCI_REVISION_ID, &rev_id); in atl1e_sw_init()
1109 static void atl1e_init_netdev(struct net_device *netdev, struct pci_device *pdev) in atl1e_init_netdev() argument
1113 netdev->dev = &pdev->dev; in atl1e_init_netdev()
1114 pci_set_drvdata(pdev, netdev); in atl1e_init_netdev()
1128 static int atl1e_probe(struct pci_device *pdev, in atl1e_probe() argument
[all …]
Dvia-velocity.c212 static void velocity_init_info(struct pci_device *pdev,
216 struct pci_device *pdev);
758 static void velocity_init_info(struct pci_device *pdev, in velocity_init_info() argument
764 vptr->pdev = pdev; in velocity_init_info()
807 unsigned long pci_resource_flags(struct pci_device *pdev, unsigned int bar) in pci_resource_flags() argument
812 pci_read_config_dword(pdev, bar, &l); in pci_resource_flags()
813 pci_write_config_dword(pdev, bar, ~0); in pci_resource_flags()
814 pci_read_config_dword(pdev, bar, &sz); in pci_resource_flags()
815 pci_write_config_dword(pdev, bar, l); in pci_resource_flags()
852 struct pci_device *pdev) in velocity_get_pci_info() argument
[all …]
Dtg3.c106 pci_write_config_dword(tg3.pdev, TG3PCI_REG_BASE_ADDR, off); in tg3_write_indirect_reg32()
107 pci_write_config_dword(tg3.pdev, TG3PCI_REG_DATA, val); in tg3_write_indirect_reg32()
133 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, off); in tg3_write_mem()
134 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_DATA, val); in tg3_write_mem()
137 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0); in tg3_write_mem()
142 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, off); in tg3_read_mem()
143 pci_read_config_dword(tg3.pdev, TG3PCI_MEM_WIN_DATA, val); in tg3_read_mem()
146 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0); in tg3_read_mem()
522 pci_write_config_dword(tp->pdev, TG3PCI_MISC_HOST_CTRL, tp->misc_host_ctrl); in tg3_set_power_state_0()
524 pci_read_config_word(tp->pdev, pm + PCI_PM_CTRL, &power_control); in tg3_set_power_state_0()
[all …]
Damd8111e.c103 struct pci_device *pdev; member
652 static int amd8111e_probe(struct nic *nic, struct pci_device *pdev) in amd8111e_probe() argument
657 nic->ioaddr = pdev->ioaddr; in amd8111e_probe()
658 nic->irqno = pdev->irq; in amd8111e_probe()
660 mmio_start = pci_bar_start(pdev, PCI_BASE_ADDRESS_0); in amd8111e_probe()
661 mmio_len = pci_bar_size(pdev, PCI_BASE_ADDRESS_0); in amd8111e_probe()
664 lp->pdev = pdev; in amd8111e_probe()
668 adjust_pci_device(pdev); in amd8111e_probe()
Dbnx2.c1633 pci_read_config_word(bp->pdev, bp->pm_cap + PCI_PM_CTRL, &pmcsr); in bnx2_set_power_state_0()
1635 pci_write_config_word(bp->pdev, bp->pm_cap + PCI_PM_CTRL, in bnx2_set_power_state_0()
1882 pci_read_config_word(bp->pdev, bp->pcix_cap + PCI_X_CMD, in bnx2_init_chip()
1884 pci_write_config_word(bp->pdev, bp->pcix_cap + PCI_X_CMD, in bnx2_init_chip()
2118 bnx2_init_board(struct pci_device *pdev, struct nic *nic) in bnx2_init_board() argument
2129 adjust_pci_device(pdev); in bnx2_init_board()
2131 nic->ioaddr = pdev->ioaddr & ~3; in bnx2_init_board()
2135 bp->pm_cap = pci_find_capability(pdev, PCI_CAP_ID_PM); in bnx2_init_board()
2142 bp->pcix_cap = pci_find_capability(pdev, PCI_CAP_ID_PCIX); in bnx2_init_board()
2149 bp->pdev = pdev; in bnx2_init_board()
[all …]
Dskge.c2150 pci_read_config_word(hw->pdev, PCI_STATUS, &pci_status); in skge_reset()
2151 pci_write_config_word(hw->pdev, PCI_STATUS, in skge_reset()
2237 pci_read_config_dword(hw->pdev, PCI_DEV_REG1, &reg); in skge_reset()
2239 pci_write_config_dword(hw->pdev, PCI_DEV_REG1, reg); in skge_reset()
2307 dev->dev = &hw->pdev->dev; in skge_devinit()
2339 static int skge_probe(struct pci_device *pdev, in skge_probe() argument
2346 adjust_pci_device(pdev); in skge_probe()
2355 hw->pdev = pdev; in skge_probe()
2357 hw->regs = (u32)ioremap(pci_bar_start(pdev, PCI_BASE_ADDRESS_0), in skge_probe()
2369 (unsigned long long)pdev->ioaddr, pdev->irq, in skge_probe()
[all …]
Dsky2.c932 static void sky2_rx_map_iob(struct pci_device *pdev __unused, in sky2_rx_map_iob()
1055 if (pci_find_capability(hw->pdev, PCI_CAP_ID_EXP)) in sky2_rx_start()
1086 sky2_rx_map_iob(hw->pdev, re, sky2->rx_data_size); in sky2_rx_start()
1559 sky2_rx_map_iob(sky2->hw->pdev, re, hdr_space); in receive_new()
2032 cap = pci_find_capability(hw->pdev, PCI_CAP_ID_EXP); in sky2_reset()
2194 dev->dev = &hw->pdev->dev; in sky2_init_netdev()
2267 static int sky2_probe(struct pci_device *pdev, in sky2_probe() argument
2275 adjust_pci_device(pdev); in sky2_probe()
2284 hw->pdev = pdev; in sky2_probe()
2286 hw->regs = (unsigned long)ioremap(pci_bar_start(pdev, PCI_BASE_ADDRESS_0), 0x4000); in sky2_probe()
[all …]
Dmtnic.h403 struct pci_device *pdev; member
Datl1e.h221 struct pci_device *pdev; member
Dvia-velocity.h1772 struct pci_device *pdev; member
/external/syslinux/gpxe/src/drivers/net/e1000/
De1000.c125 struct pci_device *pdev = adapter->pdev; in e1000_sw_init() local
129 hw->vendor_id = pdev->vendor; in e1000_sw_init()
130 hw->device_id = pdev->device; in e1000_sw_init()
132 pci_read_config_word ( pdev, PCI_COMMAND, &hw->pci_cmd_word ); in e1000_sw_init()
822 e1000_probe ( struct pci_device *pdev, in e1000_probe() argument
846 pci_set_drvdata ( pdev, netdev ); in e1000_probe()
847 netdev->dev = &pdev->dev; in e1000_probe()
853 adapter->hw.io_base = pdev->ioaddr; in e1000_probe()
854 adapter->ioaddr = pdev->ioaddr; in e1000_probe()
855 adapter->irqno = pdev->irq; in e1000_probe()
[all …]
De1000.h237 struct pci_device *pdev; member
/external/ltp/testcases/kernel/device-drivers/agp/kernel_space/
Dtagp.c579 struct pci_dev *pdev; // = (struct pci_dev *)kmalloc(sizeof(struct pci_dev), GFP_KERNEL); in test_pci_find_device() local
582 pdev = pci_find_device(PCI_VENDOR_ID_ATI, PCI_ANY_ID, NULL); in test_pci_find_device()
584 if (pdev) { in test_pci_find_device()
589 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in test_pci_find_device()
603 bridge->dev = pdev; in test_pci_find_device()
607 pci_read_config_dword(pdev, in test_pci_find_device()
611 pci_set_drvdata(pdev, bridge); in test_pci_find_device()
619 static int __init agp_test_probe(struct pci_dev *pdev, in agp_test_probe() argument
628 static void __devexit agp_test_remove(struct pci_dev *pdev) in agp_test_remove() argument
631 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); in agp_test_remove()
Dstr_agp.h370 int (*chipset_setup) (struct pci_dev *pdev); // used to override generic
/external/libdrm/nouveau/
Dnouveau.c361 nouveau_device_open_existing(struct nouveau_device **pdev, int close, int fd, in nouveau_device_open_existing() argument
369 void *data, uint32_t size, struct nouveau_device **pdev) in nouveau_device_new() argument
389 dev = *pdev = &nvdev->base; in nouveau_device_new()
457 nouveau_device_del(pdev); in nouveau_device_new()
462 nouveau_device_wrap(int fd, int close, struct nouveau_device **pdev) in nouveau_device_wrap() argument
476 }, sizeof(struct nv_device_v0), pdev); in nouveau_device_wrap()
482 nvdev = nouveau_device(*pdev); in nouveau_device_wrap()
490 nouveau_device_open(const char *busid, struct nouveau_device **pdev) in nouveau_device_open() argument
494 ret = nouveau_device_wrap(fd, 1, pdev); in nouveau_device_open()
502 nouveau_device_del(struct nouveau_device **pdev) in nouveau_device_del() argument
[all …]
/external/syslinux/gpxe/src/drivers/net/ath5k/
Dath5k.c160 static int ath5k_probe(struct pci_device *pdev,
162 static void ath5k_remove(struct pci_device *pdev);
287 static int ath5k_probe(struct pci_device *pdev, in ath5k_probe() argument
296 adjust_pci_device(pdev); in ath5k_probe()
302 pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &csz); in ath5k_probe()
310 pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, csz); in ath5k_probe()
317 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0xa8); in ath5k_probe()
323 pci_write_config_byte(pdev, 0x41, 0); in ath5k_probe()
325 mem = ioremap(pdev->membase, 0x10000); in ath5k_probe()
346 sc->pdev = pdev; in ath5k_probe()
[all …]
Dath5k_attach.c116 struct pci_device *pdev = sc->pdev; in ath5k_hw_attach() local
261 pci_find_capability(pdev, PCI_CAP_ID_EXP)) { in ath5k_hw_attach()
305 sc->pdev->device); in ath5k_hw_attach()
Dbase.h89 struct pci_device *pdev; /* for dma mapping */ member
Dath5k_reset.c292 struct pci_device *pdev = ah->ah_sc->pdev; in ath5k_hw_nic_wakeup() local
373 if (pci_find_capability(pdev, PCI_CAP_ID_EXP)) in ath5k_hw_nic_wakeup()
/external/syslinux/gpxe/src/drivers/net/rtl818x/
Drtl818x.c652 static int rtl818x_probe(struct pci_device *pdev, in rtl818x_probe() argument
670 adjust_pci_device(pdev); in rtl818x_probe()
679 priv->pdev = pdev; in rtl818x_probe()
680 dev->netdev->dev = &pdev->dev; in rtl818x_probe()
682 priv->map = (struct rtl818x_csr *)pdev->ioaddr; in rtl818x_probe()
818 pci_set_drvdata(pdev, NULL); in rtl818x_probe()
824 static void rtl818x_remove(struct pci_device *pdev) in rtl818x_remove() argument
826 struct net80211_device *dev = pci_get_drvdata(pdev); in rtl818x_remove()
Drtl818x.h300 struct pci_device *pdev; member

12