Searched refs:cap_offset (Results 1 – 5 of 5) sorted by relevance
/drivers/pci/hotplug/ |
D | shpchp_hpc.c | 222 u32 cap_offset = ctrl->cap_offset; in shpc_indirect_read() local 225 rc = pci_write_config_byte(pdev, cap_offset + DWORD_SELECT, index); in shpc_indirect_read() 228 return pci_read_config_dword(pdev, cap_offset + DWORD_DATA, value); in shpc_indirect_read() 960 ctrl->cap_offset = pci_find_capability(pdev, PCI_CAP_ID_SHPC); in shpc_init() 961 if (!ctrl->cap_offset) { in shpc_init() 965 ctrl_dbg(ctrl, " cap_offset = %x\n", ctrl->cap_offset); in shpc_init()
|
D | shpchp.h | 113 u32 cap_offset; member
|
/drivers/net/igb/ |
D | e1000_mac.c | 56 u16 cap_offset; in igb_read_pcie_cap_reg() local 58 cap_offset = pci_find_capability(adapter->pdev, PCI_CAP_ID_EXP); in igb_read_pcie_cap_reg() 59 if (!cap_offset) in igb_read_pcie_cap_reg() 62 pci_read_config_word(adapter->pdev, cap_offset + reg, value); in igb_read_pcie_cap_reg()
|
/drivers/net/e1000e/ |
D | lib.c | 62 u16 pcie_link_status, pci_header_type, cap_offset; in e1000e_get_bus_info_pcie() local 64 cap_offset = pci_find_capability(adapter->pdev, PCI_CAP_ID_EXP); in e1000e_get_bus_info_pcie() 65 if (!cap_offset) { in e1000e_get_bus_info_pcie() 69 cap_offset + PCIE_LINK_STATUS, in e1000e_get_bus_info_pcie()
|
/drivers/net/e1000/ |
D | e1000_main.c | 4430 u16 cap_offset; in e1000_read_pcie_cap_reg() local 4432 cap_offset = pci_find_capability(adapter->pdev, PCI_CAP_ID_EXP); in e1000_read_pcie_cap_reg() 4433 if (!cap_offset) in e1000_read_pcie_cap_reg() 4436 pci_read_config_word(adapter->pdev, cap_offset + reg, value); in e1000_read_pcie_cap_reg()
|