/drivers/pci/endpoint/ |
D | pci-epc-core.c | 22 struct pci_epc *epc = *(struct pci_epc **)res; in devm_pci_epc_release() local 24 pci_epc_destroy(epc); in devm_pci_epc_release() 29 struct pci_epc **epc = res; in devm_pci_epc_match() local 31 return *epc == match_data; in devm_pci_epc_match() 40 void pci_epc_put(struct pci_epc *epc) in pci_epc_put() argument 42 if (!epc || IS_ERR(epc)) in pci_epc_put() 45 module_put(epc->ops->owner); in pci_epc_put() 46 put_device(&epc->dev); in pci_epc_put() 60 struct pci_epc *epc; in pci_epc_get() local 69 epc = to_pci_epc(dev); in pci_epc_get() [all …]
|
D | pci-epc-mem.c | 47 int pci_epc_multi_mem_init(struct pci_epc *epc, in pci_epc_multi_mem_init() argument 60 epc->num_windows = 0; in pci_epc_multi_mem_init() 65 epc->windows = kcalloc(num_windows, sizeof(*epc->windows), GFP_KERNEL); in pci_epc_multi_mem_init() 66 if (!epc->windows) in pci_epc_multi_mem_init() 98 epc->windows[i] = mem; in pci_epc_multi_mem_init() 101 epc->mem = epc->windows[0]; in pci_epc_multi_mem_init() 102 epc->num_windows = num_windows; in pci_epc_multi_mem_init() 108 mem = epc->windows[i]; in pci_epc_multi_mem_init() 112 kfree(epc->windows); in pci_epc_multi_mem_init() 118 int pci_epc_mem_init(struct pci_epc *epc, phys_addr_t base, in pci_epc_mem_init() argument [all …]
|
D | pci-ep-cfs.c | 33 struct pci_epc *epc; member 53 struct pci_epc *epc = epc_group->epc; in pci_secondary_epc_epf_link() local 56 ret = pci_epc_add_epf(epc, epf, SECONDARY_INTERFACE); in pci_secondary_epc_epf_link() 62 pci_epc_remove_epf(epc, epf, SECONDARY_INTERFACE); in pci_secondary_epc_epf_link() 74 struct pci_epc *epc; in pci_secondary_epc_epf_unlink() local 79 epc = epc_group->epc; in pci_secondary_epc_epf_unlink() 82 pci_epc_remove_epf(epc, epf, SECONDARY_INTERFACE); in pci_secondary_epc_epf_unlink() 114 struct pci_epc *epc = epc_group->epc; in pci_primary_epc_epf_link() local 117 ret = pci_epc_add_epf(epc, epf, PRIMARY_INTERFACE); in pci_primary_epc_epf_link() 123 pci_epc_remove_epf(epc, epf, PRIMARY_INTERFACE); in pci_primary_epc_epf_link() [all …]
|
D | pci-epf-core.c | 96 struct pci_epc *epc; in pci_epf_bind() local 117 epc = epf->epc; in pci_epf_bind() 119 if (!IS_ERR_OR_NULL(epc)) { in pci_epf_bind() 120 if (!epc->max_vfs) { in pci_epf_bind() 126 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind() 134 epc = epf->sec_epc; in pci_epf_bind() 136 if (!IS_ERR_OR_NULL(epc)) { in pci_epf_bind() 137 if (!epc->max_vfs) { in pci_epf_bind() 143 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind() 153 epf_vf->epc = epf->epc; in pci_epf_bind() [all …]
|
D | Makefile | 7 obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\ 8 pci-epc-mem.o functions/
|
/drivers/pci/endpoint/functions/ |
D | pci-epf-ntb.c | 83 struct epf_ntb_epc *epc[2]; member 95 struct pci_epc *epc; member 146 struct pci_epc *epc; in epf_ntb_link_up() local 152 ntb_epc = ntb->epc[type]; in epf_ntb_link_up() 153 epc = ntb_epc->epc; in epf_ntb_link_up() 163 ret = pci_epc_raise_irq(epc, func_no, vfunc_no, irq_type, 1); in epf_ntb_link_up() 165 dev_err(&epc->dev, in epf_ntb_link_up() 244 struct pci_epc *epc; in epf_ntb_configure_mw() local 248 ntb_epc = ntb->epc[type]; in epf_ntb_configure_mw() 249 epc = ntb_epc->epc; in epf_ntb_configure_mw() [all …]
|
D | pci-epf-test.c | 238 struct pci_epc *epc = epf->epc; in pci_epf_test_copy() local 242 src_addr = pci_epc_mem_alloc_addr(epc, &src_phys_addr, reg->size); in pci_epf_test_copy() 250 ret = pci_epc_map_addr(epc, epf->func_no, epf->vfunc_no, src_phys_addr, in pci_epf_test_copy() 258 dst_addr = pci_epc_mem_alloc_addr(epc, &dst_phys_addr, reg->size); in pci_epf_test_copy() 266 ret = pci_epc_map_addr(epc, epf->func_no, epf->vfunc_no, dst_phys_addr, in pci_epf_test_copy() 304 pci_epc_unmap_addr(epc, epf->func_no, epf->vfunc_no, dst_phys_addr); in pci_epf_test_copy() 307 pci_epc_mem_free_addr(epc, dst_phys_addr, dst_addr, reg->size); in pci_epf_test_copy() 310 pci_epc_unmap_addr(epc, epf->func_no, epf->vfunc_no, src_phys_addr); in pci_epf_test_copy() 313 pci_epc_mem_free_addr(epc, src_phys_addr, src_addr, reg->size); in pci_epf_test_copy() 331 struct pci_epc *epc = epf->epc; in pci_epf_test_read() local [all …]
|
/drivers/pci/controller/dwc/ |
D | pcie-designware-ep.c | 21 struct pci_epc *epc = ep->epc; in dw_pcie_ep_linkup() local 23 pci_epc_linkup(epc); in dw_pcie_ep_linkup() 29 struct pci_epc *epc = ep->epc; in dw_pcie_ep_init_notify() local 31 pci_epc_init_notify(epc); in dw_pcie_ep_init_notify() 82 funcs = pci->ep.epc->max_functions; in dw_pcie_ep_reset_bar() 130 static int dw_pcie_ep_write_header(struct pci_epc *epc, u8 func_no, u8 vfunc_no, in dw_pcie_ep_write_header() argument 133 struct dw_pcie_ep *ep = epc_get_drvdata(epc); in dw_pcie_ep_write_header() 207 static void dw_pcie_ep_clear_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no, in dw_pcie_ep_clear_bar() argument 210 struct dw_pcie_ep *ep = epc_get_drvdata(epc); in dw_pcie_ep_clear_bar() 222 static int dw_pcie_ep_set_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no, in dw_pcie_ep_set_bar() argument [all …]
|
D | pcie-designware.h | 231 struct pci_epc *epc; member
|
/drivers/pci/controller/cadence/ |
D | pcie-cadence-ep.c | 34 static int cdns_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in cdns_pcie_ep_write_header() argument 37 struct cdns_pcie_ep *ep = epc_get_drvdata(epc); in cdns_pcie_ep_write_header() 43 dev_err(&epc->dev, "Only Virtual Function #1 has deviceID\n"); in cdns_pcie_ep_write_header() 76 static int cdns_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, u8 vfn, in cdns_pcie_ep_set_bar() argument 79 struct cdns_pcie_ep *ep = epc_get_drvdata(epc); in cdns_pcie_ep_set_bar() 150 static void cdns_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, in cdns_pcie_ep_clear_bar() argument 153 struct cdns_pcie_ep *ep = epc_get_drvdata(epc); in cdns_pcie_ep_clear_bar() 183 static int cdns_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn, in cdns_pcie_ep_map_addr() argument 186 struct cdns_pcie_ep *ep = epc_get_drvdata(epc); in cdns_pcie_ep_map_addr() 192 dev_err(&epc->dev, "no free outbound region\n"); in cdns_pcie_ep_map_addr() [all …]
|
/drivers/pci/controller/ |
D | pcie-rockchip-ep.c | 42 struct pci_epc *epc; member 92 static int rockchip_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_write_header() argument 96 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); in rockchip_pcie_ep_write_header() 131 static int rockchip_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_set_bar() argument 134 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); in rockchip_pcie_ep_set_bar() 199 static void rockchip_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_clear_bar() argument 202 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); in rockchip_pcie_ep_clear_bar() 233 static int rockchip_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_map_addr() argument 237 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); in rockchip_pcie_ep_map_addr() 249 static void rockchip_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_unmap_addr() argument [all …]
|
D | pcie-rcar-ep.c | 162 static int rcar_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in rcar_pcie_ep_write_header() argument 165 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); in rcar_pcie_ep_write_header() 198 static int rcar_pcie_ep_set_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no, in rcar_pcie_ep_set_bar() argument 202 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); in rcar_pcie_ep_set_bar() 249 static void rcar_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rcar_pcie_ep_clear_bar() argument 252 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); in rcar_pcie_ep_clear_bar() 262 static int rcar_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, in rcar_pcie_ep_set_msi() argument 265 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); in rcar_pcie_ep_set_msi() 276 static int rcar_pcie_ep_get_msi(struct pci_epc *epc, u8 fn, u8 vfn) in rcar_pcie_ep_get_msi() argument 278 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); in rcar_pcie_ep_get_msi() [all …]
|
/drivers/infiniband/hw/cxgb4/ |
D | cm.c | 150 static void deref_cm_id(struct c4iw_ep_common *epc) in deref_cm_id() argument 152 epc->cm_id->rem_ref(epc->cm_id); in deref_cm_id() 153 epc->cm_id = NULL; in deref_cm_id() 154 set_bit(CM_ID_DEREFED, &epc->history); in deref_cm_id() 157 static void ref_cm_id(struct c4iw_ep_common *epc) in ref_cm_id() argument 159 set_bit(CM_ID_REFED, &epc->history); in ref_cm_id() 160 epc->cm_id->add_ref(epc->cm_id); in ref_cm_id() 266 static enum c4iw_ep_state state_read(struct c4iw_ep_common *epc) in state_read() argument 270 mutex_lock(&epc->mutex); in state_read() 271 state = epc->state; in state_read() [all …]
|
/drivers/scsi/ |
D | gvp11.c | 275 unsigned int epc; in gvp11_probe() local 336 epc = *(unsigned short *)(ZTWO_VADDR(address) + 0x8000); in gvp11_probe() 338 (epc & GVP_SCSICLKMASK) ? WD33C93_FS_8_10 in gvp11_probe()
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_dev.h | 446 u32 epc; member
|
D | hinic_devlink.c | 398 err = devlink_fmsg_u8_pair_put(fmsg, "epc", event->event.ucode.epc); in fault_report_show()
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | sdio.c | 345 __le32 epc; member 3058 le32_to_cpu(tr.type), le32_to_cpu(tr.epc), in brcmf_sdio_trap_info() 3072 le32_to_cpu(tr.type), le32_to_cpu(tr.epc), in brcmf_sdio_trap_info()
|
/drivers/dma/ |
D | imx-sdma.c | 300 u32 epc :14; member
|