Lines Matching refs:fn
160 xilinx_virtex2_slave_selectmap_fns *fn = desc->iface_fns; in virtex2_ssm_load() local
163 __FUNCTION__, __LINE__, fn); in virtex2_ssm_load()
165 if (fn) { in virtex2_ssm_load()
180 &fn, fn, fn->pre, fn->pgm, fn->init, fn->err); in virtex2_ssm_load()
189 fn->clk, fn->cs, fn->wr, fn->rdata, fn->wdata, in virtex2_ssm_load()
190 fn->busy, fn->abort, fn->post); in virtex2_ssm_load()
198 if (*fn->pre) { in virtex2_ssm_load()
199 (*fn->pre) (cookie); in virtex2_ssm_load()
208 (*fn->pgm) (true, true, cookie); in virtex2_ssm_load()
216 (*fn->abort) (cookie); in virtex2_ssm_load()
219 } while (!(*fn->init) (cookie)); in virtex2_ssm_load()
221 (*fn->pgm) (false, true, cookie); in virtex2_ssm_load()
223 (*fn->clk) (true, true, cookie); in virtex2_ssm_load()
235 (*fn->abort) (cookie); in virtex2_ssm_load()
238 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in virtex2_ssm_load()
240 (*fn->wr) (true, true, cookie); in virtex2_ssm_load()
241 (*fn->cs) (true, true, cookie); in virtex2_ssm_load()
251 (*fn->abort) (cookie); in virtex2_ssm_load()
256 if ((*fn->done) (cookie) == FPGA_SUCCESS) { in virtex2_ssm_load()
263 if ((*fn->init) (cookie)) { in virtex2_ssm_load()
268 (*fn->abort) (cookie); in virtex2_ssm_load()
273 (*fn->wdata) (data[bytecount++], true, cookie); in virtex2_ssm_load()
279 (*fn->clk) (false, true, cookie); in virtex2_ssm_load()
281 (*fn->clk) (true, true, cookie); in virtex2_ssm_load()
285 while ((*fn->busy) (cookie)) { in virtex2_ssm_load()
290 (*fn->abort) (cookie); in virtex2_ssm_load()
306 (*fn->cs) (false, true, cookie); in virtex2_ssm_load()
307 (*fn->wr) (false, true, cookie); in virtex2_ssm_load()
319 while (((*fn->done) (cookie) == FPGA_FAIL) || (*fn->init) (cookie)) { in virtex2_ssm_load()
324 (*fn->abort) (cookie); in virtex2_ssm_load()
337 if (*fn->post) { in virtex2_ssm_load()
338 (*fn->post) (cookie); in virtex2_ssm_load()
359 xilinx_virtex2_slave_selectmap_fns *fn = desc->iface_fns; in virtex2_ssm_dump() local
361 if (fn) { in virtex2_ssm_dump()
368 (*fn->cs) (true, true, cookie); in virtex2_ssm_dump()
369 (*fn->clk) (true, true, cookie); in virtex2_ssm_dump()
374 (*fn->abort) (cookie); in virtex2_ssm_dump()
381 (*fn->clk) (false, true, cookie); in virtex2_ssm_dump()
382 (*fn->clk) (true, true, cookie); in virtex2_ssm_dump()
383 (*fn->rdata) (&(data[bytecount++]), cookie); in virtex2_ssm_dump()
393 (*fn->cs) (false, false, cookie); in virtex2_ssm_dump()
394 (*fn->clk) (false, true, cookie); in virtex2_ssm_dump()
395 (*fn->clk) (true, true, cookie); in virtex2_ssm_dump()