Searched refs:xcno (Results 1 - 7 of 7) sorted by relevance

/linux-4.4.14/arch/arm/mach-netx/
H A Dxc.c180 struct xc *request_xc(int xcno, struct device *dev) request_xc() argument
186 if (xcno > 3) request_xc()
188 if (xc_in_use & (1 << xcno)) request_xc()
196 (NETX_PA_XPEC(xcno), XPEC_MEM_SIZE, kobject_name(&dev->kobj))) request_xc()
200 (NETX_PA_XMAC(xcno), XMAC_MEM_SIZE, kobject_name(&dev->kobj))) request_xc()
204 (SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE, kobject_name(&dev->kobj))) request_xc()
207 x->xpec_base = (void * __iomem)io_p2v(NETX_PA_XPEC(xcno)); request_xc()
208 x->xmac_base = (void * __iomem)io_p2v(NETX_PA_XMAC(xcno)); request_xc()
209 x->sram_base = ioremap(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE); request_xc()
213 x->irq = NETX_IRQ_XPEC(xcno); request_xc()
215 x->no = xcno; request_xc()
218 xc_in_use |= (1 << xcno); request_xc()
223 release_mem_region(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE); request_xc()
225 release_mem_region(NETX_PA_XMAC(xcno), XMAC_MEM_SIZE); request_xc()
227 release_mem_region(NETX_PA_XPEC(xcno), XPEC_MEM_SIZE); request_xc()
238 int xcno = x->no; free_xc() local
243 release_mem_region(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE); free_xc()
244 release_mem_region(NETX_PA_XMAC(xcno), XMAC_MEM_SIZE); free_xc()
245 release_mem_region(NETX_PA_XPEC(xcno), XPEC_MEM_SIZE); free_xc()
H A Dnxdkn.c37 .xcno = 0,
51 .xcno = 1,
H A Dnxdb500.c101 .xcno = 0,
115 .xcno = 1,
H A Dnxeb500hmi.c104 .xcno = 0,
118 .xcno = 1,
/linux-4.4.14/drivers/net/ethernet/
H A Dnetx-eth.c39 #define EMPTY_PTR_FIFO(xcno) (0 + ((xcno) << 3)) /* Index of the empty pointer FIFO */
40 #define IND_FIFO_PORT_HI(xcno) (1 + ((xcno) << 3)) /* Index of the FIFO where received */
42 #define IND_FIFO_PORT_LO(xcno) (2 + ((xcno) << 3)) /* Index of the FIFO where received */
44 #define REQ_FIFO_PORT_HI(xcno) (3 + ((xcno) << 3)) /* Index of the FIFO where Data packages */
47 #define REQ_FIFO_PORT_LO(xcno) (4 + ((xcno) << 3)) /* Index of the FIFO where Data packages */
50 #define CON_FIFO_PORT_HI(xcno) (5 + ((xcno) << 3)) /* Index of the FIFO where sent Data packages */
52 #define CON_FIFO_PORT_LO(xcno) (6 + ((xcno) << 3)) /* Index of the FIFO where sent Data */
54 #define PFIFO_MASK(xcno) (0x7f << (xcno*8))
391 priv->xc = request_xc(pdata->xcno, &pdev->dev); netx_eth_drv_probe()
/linux-4.4.14/include/linux/platform_data/
H A Deth-netx.h22 unsigned int xcno; /* number of xmac/xpec engine this eth uses */ member in struct:netxeth_platform_data
/linux-4.4.14/arch/arm/mach-netx/include/mach/
H A Dxc.h39 struct xc* request_xc(int xcno, struct device *dev);

Completed in 267 milliseconds