Lines Matching refs:pci
400 static int mac_address_from_string_specs ( struct pci_device *pci, in mac_address_from_string_specs() argument
413 vs = pci_find_capability ( pci, 9 ); in mac_address_from_string_specs()
421 pci_write_config_byte ( pci, VS_MODE, VS_MODE_LOCATE ); in mac_address_from_string_specs()
422 pci_write_config_dword ( pci, VS_ADDR, VS_LOCATE_STRING_SPECS ); in mac_address_from_string_specs()
423 pci_read_config_dword ( pci, VS_ADDR, &addr ); in mac_address_from_string_specs()
424 pci_read_config_dword ( pci, VS_DATA, &len ); in mac_address_from_string_specs()
434 pci_write_config_byte ( pci, VS_MODE, VS_MODE_READ32 ); in mac_address_from_string_specs()
438 pci_write_config_byte ( pci, VS_ADDR, addr ); in mac_address_from_string_specs()
439 pci_read_config_dword ( pci, VS_DATA, &tmp ); in mac_address_from_string_specs()
446 pci_write_config_byte ( pci, VS_MODE, 0 ); in mac_address_from_string_specs()
500 static int myri10ge_pci_probe ( struct pci_device *pci, in myri10ge_pci_probe() argument
528 pci_set_drvdata ( pci, netdev ); in myri10ge_pci_probe()
529 netdev->dev = &pci->dev; in myri10ge_pci_probe()
537 rc = mac_address_from_string_specs ( pci, netdev->hw_addr ); in myri10ge_pci_probe()
546 adjust_pci_device ( pci ); in myri10ge_pci_probe()
576 static void myri10ge_pci_remove ( struct pci_device *pci ) in myri10ge_pci_remove() argument
581 netdev = pci_get_drvdata ( pci ); in myri10ge_pci_remove()