Home
last modified time | relevance | path

Searched refs:npe (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/arch/arm/mach-ixp4xx/
Dixp4xx_npe.c125 #define print_npe(pri, npe, fmt, ...) \ argument
126 printk(pri "%s: " fmt, npe_name(npe), ## __VA_ARGS__)
129 #define debug_msg(npe, fmt, ...) \ argument
130 print_npe(KERN_DEBUG, npe, fmt, ## __VA_ARGS__)
132 #define debug_msg(npe, fmt, ...) argument
153 static struct npe npe_tab[NPE_COUNT] = {
169 int npe_running(struct npe *npe) in npe_running() argument
171 return (__raw_readl(&npe->regs->exec_status_cmd) & STAT_RUN) != 0; in npe_running()
174 static void npe_cmd_write(struct npe *npe, u32 addr, int cmd, u32 data) in npe_cmd_write() argument
176 __raw_writel(data, &npe->regs->exec_data); in npe_cmd_write()
[all …]
/Linux-v4.19/arch/arm/mach-ixp4xx/include/mach/
Dnpe.h18 struct npe { struct
27 static inline const char *npe_name(struct npe *npe) in npe_name() argument
29 return npe_names[npe->id]; in npe_name()
32 int npe_running(struct npe *npe);
33 int npe_send_message(struct npe *npe, const void *msg, const char *what);
34 int npe_recv_message(struct npe *npe, void *msg, const char *what);
35 int npe_send_recv_message(struct npe *npe, void *msg, const char *what);
36 int npe_load_firmware(struct npe *npe, const char *name, struct device *dev);
37 struct npe *npe_request(unsigned id);
38 void npe_release(struct npe *npe);
/Linux-v4.19/arch/powerpc/platforms/powernv/
Dnpu-dma.c174 static struct pnv_ioda_pe *get_gpu_pci_dev_and_pe(struct pnv_ioda_pe *npe, in get_gpu_pci_dev_and_pe() argument
183 pdev = pnv_pci_get_gpu_dev(npe->pdev); in get_gpu_pci_dev_and_pe()
201 long pnv_npu_set_window(struct pnv_ioda_pe *npe, int num, in pnv_npu_set_window() argument
204 struct pnv_phb *phb = npe->phb; in pnv_npu_set_window()
211 pe_info(npe, "Setting up window %llx..%llx pg=%lx\n", in pnv_npu_set_window()
216 npe->pe_number, in pnv_npu_set_window()
217 npe->pe_number, in pnv_npu_set_window()
223 pe_err(npe, "Failed to configure TCE table, err %lld\n", rc); in pnv_npu_set_window()
230 tbl, &npe->table_group); in pnv_npu_set_window()
235 long pnv_npu_unset_window(struct pnv_ioda_pe *npe, int num) in pnv_npu_unset_window() argument
[all …]
Dpci.h237 extern struct pnv_ioda_pe *pnv_pci_npu_setup_iommu(struct pnv_ioda_pe *npe);
238 extern long pnv_npu_set_window(struct pnv_ioda_pe *npe, int num,
240 extern long pnv_npu_unset_window(struct pnv_ioda_pe *npe, int num);
241 extern void pnv_npu_take_ownership(struct pnv_ioda_pe *npe);
242 extern void pnv_npu_release_ownership(struct pnv_ioda_pe *npe);
Dpci-ioda.c2672 struct pnv_ioda_pe *npe = NULL; in gpe_table_group_to_npe() local
2673 int ret = iommu_group_for_each_dev(table_group->group, &npe, in gpe_table_group_to_npe()
2676 BUG_ON(!ret || !npe); in gpe_table_group_to_npe()
2678 return npe; in gpe_table_group_to_npe()
2684 struct pnv_ioda_pe *npe = gpe_table_group_to_npe(table_group); in pnv_pci_ioda2_npu_set_window() local
2692 pnv_npu_unset_window(npe, num2); in pnv_pci_ioda2_npu_set_window()
2694 ret = pnv_npu_set_window(npe, num, tbl); in pnv_pci_ioda2_npu_set_window()
2698 pnv_npu_set_window(npe, num2, in pnv_pci_ioda2_npu_set_window()
2709 struct pnv_ioda_pe *npe = gpe_table_group_to_npe(table_group); in pnv_pci_ioda2_npu_unset_window() local
2716 if (!npe->table_group.tables[num]) in pnv_pci_ioda2_npu_unset_window()
[all …]
/Linux-v4.19/drivers/net/ethernet/xscale/
Dixp4xx_eth.c171 struct npe *npe; member
1182 struct npe *npe = port->npe; in eth_open() local
1186 if (!npe_running(npe)) { in eth_open()
1187 err = npe_load_firmware(npe, npe_name(npe), &dev->dev); in eth_open()
1191 if (npe_recv_message(npe, &msg, "ETH_GET_STATUS")) { in eth_open()
1193 npe_name(npe)); in eth_open()
1209 if (npe_send_recv_message(port->npe, &msg, "ETH_SET_RXQ")) in eth_open()
1221 if (npe_send_recv_message(port->npe, &msg, "ETH_SET_MAC")) in eth_open()
1227 if (npe_send_recv_message(port->npe, &msg, "ETH_SET_FIREWALL_MODE")) in eth_open()
1304 if (npe_send_recv_message(port->npe, &msg, "ETH_ENABLE_LOOPBACK")) in eth_close()
[all …]
/Linux-v4.19/drivers/net/wan/
Dixp4xx_hss.c258 struct npe *npe; member
363 if (npe_send_message(port->npe, msg, what)) { in hss_npe_send()
365 port->id, val[0], val[1], npe_name(port->npe)); in hss_npe_send()
449 if (npe_recv_message(port->npe, &msg, "HSS_LOAD_CONFIG") || in hss_config()
457 npe_recv_message(port->npe, &msg, "FLUSH_IT"); in hss_config()
480 if (npe_recv_message(port->npe, &msg, "PORT_ERROR_READ")) { in hss_get_status()
518 if (!npe_running(port->npe) && in hss_load_firmware()
519 (err = npe_load_firmware(port->npe, npe_name(port->npe), in hss_load_firmware()
1338 if ((port->npe = npe_request(0)) == NULL) { in hss_init_one()
1373 npe_release(port->npe); in hss_init_one()
[all …]
/Linux-v4.19/drivers/crypto/
Dixp4xx_crypto.c221 static struct npe *npe_c;
/Linux-v4.19/
DMAINTAINERS7446 F: arch/arm/mach-ixp4xx/include/mach/npe.h