/linux-4.1.27/arch/powerpc/sysdev/ |
H A D | mv64x60_pci.c | 110 * Set the host bridge hdr_type to an invalid value so that mv64x60_pci_fixup_early() 113 dev->hdr_type = PCI_HEADER_TYPE_INVALID; mv64x60_pci_fixup_early()
|
H A D | fsl_pci.c | 47 u8 hdr_type; quirk_fsl_pcie_early() local 54 pci_read_config_byte(dev, PCI_HEADER_TYPE, &hdr_type); quirk_fsl_pcie_early() 55 if ((hdr_type & 0x7f) != PCI_HEADER_TYPE_BRIDGE) quirk_fsl_pcie_early() 474 u8 hdr_type, progif; fsl_add_bridge() local 526 early_read_config_byte(hose, 0, 0, PCI_HEADER_TYPE, &hdr_type); fsl_add_bridge() 527 if ((hdr_type & 0x7f) != PCI_HEADER_TYPE_BRIDGE) fsl_add_bridge()
|
H A D | mpic.c | 564 u8 hdr_type = readb(devbase + PCI_HEADER_TYPE); mpic_scan_ht_pics() local 584 if (PCI_FUNC(devfn) == 0 && (hdr_type & 0x80) == 0) mpic_scan_ht_pics()
|
/linux-4.1.27/drivers/pci/host/ |
H A D | pcie-iproc.c | 128 u8 hdr_type; iproc_pcie_check_link() local 134 pci_bus_read_config_byte(bus, 0, PCI_HEADER_TYPE, &hdr_type); iproc_pcie_check_link() 135 if ((hdr_type & 0x7f) != PCI_HEADER_TYPE_BRIDGE) { iproc_pcie_check_link() 136 dev_err(pcie->dev, "in EP mode, hdr=%#02x\n", hdr_type); iproc_pcie_check_link()
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | pci_of_scan.c | 176 dev->hdr_type = PCI_HEADER_TYPE_BRIDGE; of_create_pci_dev() 180 dev->hdr_type = PCI_HEADER_TYPE_CARDBUS; of_create_pci_dev() 182 dev->hdr_type = PCI_HEADER_TYPE_NORMAL; of_create_pci_dev() 341 pr_debug(" dev header type: %x\n", dev->hdr_type); of_scan_pci_dev() 365 pr_debug(" dev header type: %x\n", dev->hdr_type); for_each_child_of_node()
|
H A D | eeh.c | 1182 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { eeh_add_device_tree_late() 1205 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { eeh_add_sysfs_files()
|
H A D | eeh_driver.c | 426 if (!dev || (dev->hdr_type & PCI_HEADER_TYPE_BRIDGE)) eeh_rmv_device()
|
H A D | pci-common.c | 1692 (dev->hdr_type == PCI_HEADER_TYPE_NORMAL) && fixup_hide_host_resource_fsl()
|
/linux-4.1.27/drivers/pci/hotplug/ |
H A D | ibmphp_pci.c | 86 u8 hdr_type, device, sec_number; ibmphp_configure_card() local 129 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); ibmphp_configure_card() 133 debug ("hrd_type = %x, class = %x, class_code %x\n", hdr_type, class, class_code); ibmphp_configure_card() 144 switch (hdr_type) { ibmphp_configure_card() 146 debug ("single device case.... vendor id = %x, hdr_type = %x, class = %x\n", vendor_id, hdr_type, class); ibmphp_configure_card() 313 err ("MAJOR PROBLEM!!!!, header type not supported? %x\n", hdr_type); ibmphp_configure_card() 1082 u8 hdr_type; scan_behind_bridge() local 1118 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); scan_behind_bridge() 1121 debug ("hdr_type behind the bridge is %x\n", hdr_type); scan_behind_bridge() 1122 if (hdr_type & PCI_HEADER_TYPE_BRIDGE) { scan_behind_bridge() 1448 u8 hdr_type; unconfigure_boot_card() local 1480 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); unconfigure_boot_card() 1483 debug ("hdr_type %x, class %x\n", hdr_type, class); unconfigure_boot_card() 1493 switch (hdr_type) { unconfigure_boot_card()
|
H A D | pciehp_pci.c | 101 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE && presence) { pciehp_unconfigure_device()
|
H A D | shpchp_pci.c | 98 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { shpchp_unconfigure_device()
|
H A D | rpadlpar_core.c | 195 if (dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { dlpar_add_pci_slot() 197 __func__, dev->hdr_type, drc_name); dlpar_add_pci_slot()
|
H A D | cpcihp_generic.c | 159 if (!dev || dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { cpcihp_generic_init()
|
H A D | ibmphp_res.c | 1942 u8 sec_busno, device, function, hdr_type, start_io_address, end_io_address; update_bridge_ranges() local 1968 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); update_bridge_ranges() 1970 switch (hdr_type) { update_bridge_ranges()
|
H A D | sgi_hotplug.c | 393 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { enable_slot()
|
H A D | cpqphp_pci.c | 109 if (func->pci_dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { cpqhp_configure_device()
|
H A D | ibmphp_core.c | 815 if (!(flag) && (func->dev->hdr_type == PCI_HEADER_TYPE_BRIDGE)) { ibm_configure_device()
|
/linux-4.1.27/drivers/xen/xen-pciback/ |
H A D | conf_space_header.c | 415 switch (dev->hdr_type) { xen_pcibk_config_header_add_fields() 427 pci_name(dev), dev->hdr_type); xen_pcibk_config_header_add_fields()
|
H A D | pciback_ops.c | 36 if (dev->hdr_type != PCI_HEADER_TYPE_NORMAL) xen_pcibk_control_isr() 110 if (dev->hdr_type == PCI_HEADER_TYPE_NORMAL) { xen_pcibk_reset_device()
|
H A D | pci_stub.c | 526 if (dev->hdr_type != PCI_HEADER_TYPE_NORMAL pcistub_probe() 527 && dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { pcistub_probe()
|
/linux-4.1.27/drivers/misc/ |
H A D | spear13xx_pcie_gadget.c | 164 u8 hdr_type) pci_find_own_cap_start() 172 switch (hdr_type) { pci_find_own_cap_start() 204 u32 hdr_type; pci_find_own_capability() local 206 spear_dbi_read_reg(config, PCI_HEADER_TYPE, 1, &hdr_type); pci_find_own_capability() 208 pos = pci_find_own_cap_start(config, hdr_type); pci_find_own_capability() 163 pci_find_own_cap_start(struct spear_pcie_gadget_config *config, u8 hdr_type) pci_find_own_cap_start() argument
|
/linux-4.1.27/drivers/pci/pcie/aer/ |
H A D | aerdrv_core.c | 221 !(dev->hdr_type & PCI_HEADER_TYPE_BRIDGE)) { report_error_detected() 244 if (!(dev->hdr_type & PCI_HEADER_TYPE_BRIDGE)) report_error_detected() 344 if (dev->hdr_type & PCI_HEADER_TYPE_BRIDGE) { broadcast_error_message() 415 if (dev->hdr_type & PCI_HEADER_TYPE_BRIDGE) { reset_link() 636 } else if (dev->hdr_type & PCI_HEADER_TYPE_BRIDGE || get_device_error_info()
|
/linux-4.1.27/drivers/pci/ |
H A D | probe.c | 770 int is_cardbus = (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS); pci_scan_bridge() 1123 u8 hdr_type; pci_setup_device() local 1129 if (pci_read_config_byte(dev, PCI_HEADER_TYPE, &hdr_type)) pci_setup_device() 1135 dev->hdr_type = hdr_type & 0x7f; pci_setup_device() 1136 dev->multifunction = !!(hdr_type & 0x80); pci_setup_device() 1157 dev->vendor, dev->device, dev->hdr_type, dev->class); pci_setup_device() 1180 switch (dev->hdr_type) { /* header type */ pci_setup_device() 1261 dev->hdr_type); pci_setup_device() 1266 dev->class, dev->hdr_type); pci_setup_device()
|
H A D | proc.c | 41 else if (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) proc_bus_pci_read()
|
H A D | pci.c | 185 unsigned int devfn, u8 hdr_type) __pci_bus_find_cap_start() 193 switch (hdr_type) { __pci_bus_find_cap_start() 229 pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type); pci_find_capability() 253 u8 hdr_type; pci_bus_find_capability() local 255 pci_bus_read_config_byte(bus, devfn, PCI_HEADER_TYPE, &hdr_type); pci_bus_find_capability() 257 pos = __pci_bus_find_cap_start(bus, devfn, hdr_type & 0x7f); pci_bus_find_capability() 398 pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type); pci_find_ht_capability() 1067 if (pdev->hdr_type == PCI_HEADER_TYPE_NORMAL) { pci_restore_config_space() 4417 if (dev->hdr_type == PCI_HEADER_TYPE_NORMAL && pci_reassigndev_resource_alignment() 4449 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE && pci_reassigndev_resource_alignment() 184 __pci_bus_find_cap_start(struct pci_bus *bus, unsigned int devfn, u8 hdr_type) __pci_bus_find_cap_start() argument
|
H A D | pci-sysfs.c | 639 else if (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) pci_read_config()
|
H A D | quirks.c | 1552 pdev->hdr_type = hdr & 0x7f; quirk_jmicron_ata() 3689 pdev->hdr_type == PCI_HEADER_TYPE_BRIDGE && quirk_use_pcie_bridge_dma_alias()
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
H A D | mthca_reset.c | 75 if (bridge->hdr_type == PCI_HEADER_TYPE_BRIDGE && mthca_reset()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | pci.c | 336 dev->hdr_type = PCI_HEADER_TYPE_BRIDGE; of_create_pci_dev() 339 dev->hdr_type = PCI_HEADER_TYPE_CARDBUS; of_create_pci_dev() 341 dev->hdr_type = PCI_HEADER_TYPE_NORMAL; of_create_pci_dev() 578 dev->hdr_type); pci_of_scan_bus()
|
/linux-4.1.27/arch/unicore32/kernel/ |
H A D | pci.c | 240 if (bus->self && bus->self->hdr_type == PCI_HEADER_TYPE_BRIDGE) { pcibios_fixup_bus()
|
/linux-4.1.27/arch/powerpc/platforms/85xx/ |
H A D | mpc85xx_cds.c | 161 dev->hdr_type = 0x7f; skip_fake_bridge()
|
/linux-4.1.27/drivers/s390/net/ |
H A D | qeth_core.h | 334 __u8 hdr_type; member in struct:qeth_hdr_ext_tso
|
H A D | qeth_l3_main.c | 2905 hdr->ext.hdr_type = 1; qeth_tso_fill_header()
|
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
H A D | bna_types.h | 670 enum bfi_enet_hds_type hdr_type; member in struct:bna_hds_config
|
H A D | bna_tx_rx.c | 1887 cfg_req->rx_cfg.hds.type = rx->hds_cfg.hdr_type; bna_bfi_rx_enet_start()
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | assigned-dev.c | 727 if (dev->hdr_type != PCI_HEADER_TYPE_NORMAL) { kvm_vm_ioctl_assign_device()
|
/linux-4.1.27/arch/arm/kernel/ |
H A D | bios32.c | 357 if (bus->self && bus->self->hdr_type == PCI_HEADER_TYPE_BRIDGE) { pcibios_fixup_bus()
|
/linux-4.1.27/include/linux/ |
H A D | pci.h | 274 u8 hdr_type; /* PCI header type (`multi' flag masked out) */ member in struct:pci_dev 505 return dev->hdr_type == PCI_HEADER_TYPE_BRIDGE || pci_is_bridge() 506 dev->hdr_type == PCI_HEADER_TYPE_CARDBUS; pci_is_bridge()
|
/linux-4.1.27/drivers/vfio/pci/ |
H A D | vfio_pci.c | 943 if (pdev->hdr_type != PCI_HEADER_TYPE_NORMAL) vfio_pci_probe()
|
/linux-4.1.27/drivers/iommu/ |
H A D | dmar.c | 245 (info->dev->hdr_type == PCI_HEADER_TYPE_NORMAL)) { dmar_insert_dev_scope()
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
H A D | pci-ioda.c | 859 if (dev->hdr_type != PCI_HEADER_TYPE_NORMAL) pnv_ioda_dma_weight()
|