• Home
  • Raw
  • Download

Lines Matching +full:0 +full:xc

2  * arch/arm/mach-netx/xc.c
32 #include <mach/xc.h>
36 static int xc_in_use = 0;
53 int xc_stop(struct xc *x) in xc_stop()
58 return 0; in xc_stop()
61 int xc_start(struct xc *x) in xc_start()
63 writel(0, x->xmac_base + NETX_XMAC_RPU_HOLD_PC_OFS); in xc_start()
64 writel(0, x->xmac_base + NETX_XMAC_TPU_HOLD_PC_OFS); in xc_start()
65 writel(0, x->xpec_base + NETX_XPEC_XPU_HOLD_PC_OFS); in xc_start()
66 return 0; in xc_start()
69 int xc_running(struct xc *x) in xc_running()
74 0 : 1; in xc_running()
77 int xc_reset(struct xc *x) in xc_reset()
79 writel(0, x->xpec_base + NETX_XPEC_PC_OFS); in xc_reset()
80 return 0; in xc_reset()
83 static int xc_check_ptr(struct xc *x, unsigned long adr, unsigned int size) in xc_check_ptr()
87 return 0; in xc_check_ptr()
91 return 0; in xc_check_ptr()
98 static int xc_patch(struct xc *x, const void *patch, int count) in xc_patch()
104 for (i = 0; i < count; i++) { in xc_patch()
107 if (xc_check_ptr(x, adr, 4) < 0) in xc_patch()
112 return 0; in xc_patch()
115 int xc_request_firmware(struct xc *x) in xc_request_firmware()
126 sprintf(name, "xc%d.bin", x->no); in xc_request_firmware()
130 if (ret < 0) { in xc_request_firmware()
136 if (head->magic != 0x4e657458) { in xc_request_firmware()
137 if (head->magic == 0x5874654e) { in xc_request_firmware()
143 dev_err(x->dev, "unrecognized firmware magic 0x%08x\n", in xc_request_firmware()
154 for (i = 0; i < 3; i++) { in xc_request_firmware()
168 if (ret < 0) in xc_request_firmware()
172 ret = 0; in xc_request_firmware()
180 struct xc *request_xc(int xcno, struct device *dev) in request_xc()
182 struct xc *x = NULL; in request_xc()
191 x = kmalloc(sizeof (struct xc), GFP_KERNEL); in request_xc()
236 void free_xc(struct xc *x) in free_xc()