Lines Matching refs:fn
92 Altera_ACEX1K_Passive_Serial_fns *fn = desc->iface_fns; in ACEX1K_ps_load() local
96 __FUNCTION__, fn); in ACEX1K_ps_load()
98 if (fn) { in ACEX1K_ps_load()
112 __FUNCTION__, &fn, fn, fn->config, fn->status, in ACEX1K_ps_load()
113 fn->clk, fn->data, fn->done); in ACEX1K_ps_load()
121 if (*fn->pre) { in ACEX1K_ps_load()
122 (*fn->pre) (cookie); in ACEX1K_ps_load()
126 (*fn->config) (true, true, cookie); /* Assert nCONFIG */ in ACEX1K_ps_load()
131 (*fn->done) (cookie); in ACEX1K_ps_load()
132 if ( !(*fn->status) (cookie) ) { in ACEX1K_ps_load()
134 (*fn->abort) (cookie); in ACEX1K_ps_load()
138 (*fn->config) (false, true, cookie); /* Deassert nCONFIG */ in ACEX1K_ps_load()
147 (*fn->abort) (cookie); in ACEX1K_ps_load()
150 (*fn->done) (cookie); in ACEX1K_ps_load()
151 } while ((*fn->status) (cookie)); in ACEX1K_ps_load()
161 (*fn->abort) (cookie); in ACEX1K_ps_load()
168 if ((*fn->done) (cookie) == 0 && (*fn->init) (cookie)) { in ACEX1K_ps_load()
170 (*fn->abort) (cookie); in ACEX1K_ps_load()
178 (*fn->clk) (false, true, cookie); in ACEX1K_ps_load()
181 (*fn->data) ((val & 0x01), true, cookie); in ACEX1K_ps_load()
184 (*fn->clk) (true, true, cookie); in ACEX1K_ps_load()
206 if ( ! (*fn->done) (cookie) ) { in ACEX1K_ps_load()
208 (*fn->abort) (cookie); in ACEX1K_ps_load()
218 (*fn->clk) (true, true, cookie); /* Assert the clock pin */ in ACEX1K_ps_load()
220 (*fn->clk) (false, true, cookie); /* Deassert the clock pin */ in ACEX1K_ps_load()
233 (*fn->post) (cookie); in ACEX1K_ps_load()