Home
last modified time | relevance | path

Searched refs:hdr_type (Results 1 – 25 of 58) sorted by relevance

123

/Linux-v4.19/drivers/pci/pcie/
Derr.c67 dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { in report_error_detected()
90 if (dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) in report_error_detected()
191 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { in reset_link()
246 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { in broadcast_error_message()
289 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) in pcie_do_fatal_recovery()
311 (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE)) { in pcie_do_fatal_recovery()
/Linux-v4.19/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c58 static u16 ocrdma_hdr_type_to_proto_num(int devid, u8 hdr_type) in ocrdma_hdr_type_to_proto_num() argument
60 switch (hdr_type) { in ocrdma_hdr_type_to_proto_num()
95 proto_num = ocrdma_hdr_type_to_proto_num(dev->id, ah->hdr_type); in set_av_attr()
128 if (ah->hdr_type == RDMA_NETWORK_IPV4) { in set_av_attr()
191 ah->hdr_type = rdma_gid_attr_network_type(sgid_attr); in ocrdma_create_ah()
204 *ahid_addr |= ((u32)ah->hdr_type & in ocrdma_create_ah()
/Linux-v4.19/arch/powerpc/kernel/
Dpci_of_scan.c172 dev->hdr_type = PCI_HEADER_TYPE_BRIDGE; in of_create_pci_dev()
176 dev->hdr_type = PCI_HEADER_TYPE_CARDBUS; in of_create_pci_dev()
178 dev->hdr_type = PCI_HEADER_TYPE_NORMAL; in of_create_pci_dev()
337 pr_debug(" dev header type: %x\n", dev->hdr_type); in of_scan_pci_dev()
361 pr_debug(" dev header type: %x\n", dev->hdr_type); in __of_scan_bus()
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dverbs_txreq.h96 tx->phdr.hdr.hdr_type = priv->hdr_type; in get_txreq()
Dtrace_ibhdrs.h312 __field(u8, hdr_type)
346 __entry->hdr_type = opah->hdr_type;
349 if (__entry->hdr_type) {
420 !!__entry->hdr_type,
437 !!__entry->hdr_type,
Dverbs.h136 u8 hdr_type; /* 9B or 16B */ member
162 u8 hdr_type; /* 9B or 16B */ member
Dud.c203 if (priv->hdr_type == HFI1_PKT_TYPE_16B) { in ud_loopback()
388 ps->s_txreq->phdr.hdr.hdr_type = HFI1_PKT_TYPE_9B; in hfi1_make_ud_req_9B()
482 ps->s_txreq->phdr.hdr.hdr_type = HFI1_PKT_TYPE_16B; in hfi1_make_ud_req_16B()
538 priv->hdr_type = hfi1_get_hdr_type(ppd->lid, ah_attr); in hfi1_make_ud_req()
580 hfi1_make_ud_req_tbl[priv->hdr_type](qp, ps, qp->s_wqe); in hfi1_make_ud_req()
Dverbs.c844 if (tx->phdr.hdr.hdr_type) { in build_verbs_tx_desc()
917 if (ps->s_txreq->phdr.hdr.hdr_type) { in hfi1_verbs_send_dma()
934 if (ps->s_txreq->phdr.hdr.hdr_type) in hfi1_verbs_send_dma()
1059 if (ps->s_txreq->phdr.hdr.hdr_type) { in hfi1_verbs_send_pio()
1089 if (ps->s_txreq->phdr.hdr.hdr_type) in hfi1_verbs_send_pio()
1324 if (ps->s_txreq->phdr.hdr.hdr_type) { in hfi1_verbs_send()
Drc.c103 if (priv->hdr_type == HFI1_PKT_TYPE_9B) in make_rc_ack()
277 if (priv->hdr_type == HFI1_PKT_TYPE_9B) { in hfi1_make_rc_req()
769 opa_hdr->hdr_type = HFI1_PKT_TYPE_9B; in hfi1_make_rc_ack_9B()
819 opa_hdr->hdr_type = HFI1_PKT_TYPE_16B; in hfi1_make_rc_ack_16B()
910 hfi1_make_rc_ack_tbl[priv->hdr_type](packet, &opa_hdr, sc5, is_fecn, in hfi1_send_rc_ack()
932 (priv->hdr_type == HFI1_PKT_TYPE_9B ? in hfi1_send_rc_ack()
1115 if (priv->hdr_type == HFI1_PKT_TYPE_9B) { in hfi1_rc_send_complete()
Ddriver.c443 u8 hdr_type, sc, svc_type; in hfi1_process_ecn_slowpath() local
453 hdr_type = HFI1_PKT_TYPE_16B; in hfi1_process_ecn_slowpath()
461 hdr_type = HFI1_PKT_TYPE_9B; in hfi1_process_ecn_slowpath()
494 hfi1_handle_cnp_tbl[hdr_type](ibp, qp, rqpn, pkey, in hfi1_process_ecn_slowpath()
/Linux-v4.19/drivers/pci/hotplug/
Dibmphp_pci.c72 u8 hdr_type, device, sec_number; in ibmphp_configure_card() local
115 pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); in ibmphp_configure_card()
119 debug("hrd_type = %x, class = %x, class_code %x\n", hdr_type, class, class_code); in ibmphp_configure_card()
130 switch (hdr_type) { in ibmphp_configure_card()
132 …("single device case.... vendor id = %x, hdr_type = %x, class = %x\n", vendor_id, hdr_type, class); in ibmphp_configure_card()
295 err("MAJOR PROBLEM!!!!, header type not supported? %x\n", hdr_type); in ibmphp_configure_card()
1051 u8 hdr_type; in scan_behind_bridge() local
1087 pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); in scan_behind_bridge()
1090 debug("hdr_type behind the bridge is %x\n", hdr_type); in scan_behind_bridge()
1091 if ((hdr_type & 0x7f) == PCI_HEADER_TYPE_BRIDGE) { in scan_behind_bridge()
[all …]
Drpadlpar_core.c187 if (dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { in dlpar_add_pci_slot()
189 __func__, dev->hdr_type, drc_name); in dlpar_add_pci_slot()
Dcpcihp_generic.c140 if (!dev || dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { in cpcihp_generic_init()
/Linux-v4.19/drivers/misc/
Dspear13xx_pcie_gadget.c164 u8 hdr_type) in pci_find_own_cap_start() argument
172 switch (hdr_type) { in pci_find_own_cap_start()
204 u32 hdr_type; in pci_find_own_capability() local
206 spear_dbi_read_reg(config, PCI_HEADER_TYPE, 1, &hdr_type); in pci_find_own_capability()
208 pos = pci_find_own_cap_start(config, hdr_type); in pci_find_own_capability()
/Linux-v4.19/drivers/pci/
Dprobe.c1061 int is_cardbus = (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS); in pci_scan_bridge_extend()
1495 u8 hdr_type; in pci_hdr_type() local
1499 return dev->physfn->sriov->hdr_type; in pci_hdr_type()
1501 pci_read_config_byte(dev, PCI_HEADER_TYPE, &hdr_type); in pci_hdr_type()
1502 return hdr_type; in pci_hdr_type()
1579 u8 hdr_type; in pci_setup_device() local
1584 hdr_type = pci_hdr_type(dev); in pci_setup_device()
1589 dev->hdr_type = hdr_type & 0x7f; in pci_setup_device()
1590 dev->multifunction = !!(hdr_type & 0x80); in pci_setup_device()
1612 dev->vendor, dev->device, dev->hdr_type, dev->class); in pci_setup_device()
[all …]
Dpci.c399 unsigned int devfn, u8 hdr_type) in __pci_bus_find_cap_start() argument
407 switch (hdr_type) { in __pci_bus_find_cap_start()
441 pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type); in pci_find_capability()
465 u8 hdr_type; in pci_bus_find_capability() local
467 pci_bus_read_config_byte(bus, devfn, PCI_HEADER_TYPE, &hdr_type); in pci_bus_find_capability()
469 pos = __pci_bus_find_cap_start(bus, devfn, hdr_type & 0x7f); in pci_bus_find_capability()
610 pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type); in pci_find_ht_capability()
1329 if (pdev->hdr_type == PCI_HEADER_TYPE_NORMAL) { in pci_restore_config_space()
1334 } else if (pdev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { in pci_restore_config_space()
2905 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) in pci_ea_init()
[all …]
Dproc.c42 else if (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) in proc_bus_pci_read()
/Linux-v4.19/arch/powerpc/sysdev/
Dfsl_pci.c50 u8 hdr_type; in quirk_fsl_pcie_early() local
57 pci_read_config_byte(dev, PCI_HEADER_TYPE, &hdr_type); in quirk_fsl_pcie_early()
58 if ((hdr_type & 0x7f) != PCI_HEADER_TYPE_BRIDGE) in quirk_fsl_pcie_early()
525 u8 hdr_type, progif; in fsl_add_bridge() local
579 early_read_config_byte(hose, 0, 0, PCI_HEADER_TYPE, &hdr_type); in fsl_add_bridge()
580 if ((hdr_type & 0x7f) != PCI_HEADER_TYPE_BRIDGE) in fsl_add_bridge()
/Linux-v4.19/arch/sparc/kernel/
Dpci.c341 dev->hdr_type = PCI_HEADER_TYPE_BRIDGE; in of_create_pci_dev()
344 dev->hdr_type = PCI_HEADER_TYPE_CARDBUS; in of_create_pci_dev()
346 dev->hdr_type = PCI_HEADER_TYPE_NORMAL; in of_create_pci_dev()
355 dev->vendor, dev->device, dev->hdr_type, dev->class); in of_create_pci_dev()
585 pci_info(dev, "dev header type: %x\n", dev->hdr_type); in pci_of_scan_bus()
/Linux-v4.19/drivers/xen/xen-pciback/
Dconf_space_header.c406 switch (dev->hdr_type) { in xen_pcibk_config_header_add_fields()
418 pci_name(dev), dev->hdr_type); in xen_pcibk_config_header_add_fields()
Dpciback_ops.c37 if (dev->hdr_type != PCI_HEADER_TYPE_NORMAL) in xen_pcibk_control_isr()
118 if (dev->hdr_type == PCI_HEADER_TYPE_NORMAL) { in xen_pcibk_reset_device()
/Linux-v4.19/drivers/pci/controller/
Dpcie-iproc.c768 u32 hdr_type, link_ctrl, link_status, class, val; in iproc_pcie_check_link() local
785 iproc_pci_raw_config_read32(pcie, 0, PCI_HEADER_TYPE, 1, &hdr_type); in iproc_pcie_check_link()
786 if ((hdr_type & 0x7f) != PCI_HEADER_TYPE_BRIDGE) { in iproc_pcie_check_link()
787 dev_err(dev, "in EP mode, hdr=%#02x\n", hdr_type); in iproc_pcie_check_link()
1527 if (pdev->hdr_type == PCI_HEADER_TYPE_BRIDGE) in quirk_paxc_disable_msi_parsing()
/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_reset.c75 if (bridge->hdr_type == PCI_HEADER_TYPE_BRIDGE && in mthca_reset()
/Linux-v4.19/arch/powerpc/platforms/85xx/
Dmpc85xx_cds.c175 dev->hdr_type = 0x7f; in skip_fake_bridge()
/Linux-v4.19/arch/unicore32/kernel/
Dpci.c240 if (bus->self && bus->self->hdr_type == PCI_HEADER_TYPE_BRIDGE) { in pcibios_fixup_bus()

123