Home | History | Annotate | Download | only in fpga

Lines Matching refs:fn

106 	xilinx_spartan3_slave_parallel_fns *fn = desc->iface_fns;
109 __FUNCTION__, fn);
111 if (fn) {
132 __FUNCTION__, &fn, fn, fn->pre, fn->pgm, fn->init, fn->err,
133 fn->clk, fn->cs, fn->wr, fn->rdata, fn->wdata, fn->busy,
134 fn->abort, fn->post);
147 if (*fn->pre) {
148 (*fn->pre) (cookie);
152 (*fn->pgm) (true, true, cookie); /* Assert the program, commit */
156 (*fn->pgm) (false, true, cookie); /* Deassert the program, commit */
164 (*fn->abort) (cookie); /* abort the burn */
167 } while ((*fn->init) (cookie) && (*fn->busy) (cookie));
169 (*fn->wr) (true, true, cookie); /* Assert write, commit */
170 (*fn->cs) (true, true, cookie); /* Assert chip select, commit */
171 (*fn->clk) (true, true, cookie); /* Assert the clock pin */
178 (*fn->wdata) (data[bytecount++], true, cookie); /* write the data */
180 (*fn->clk) (false, true, cookie); /* Deassert the clock pin */
182 (*fn->clk) (true, true, cookie); /* Assert the clock pin */
186 while ((*fn->busy) (cookie)) {
191 (*fn->clk) (false, true, cookie); /* Deassert the clock pin */
193 (*fn->clk) (true, true, cookie); /* Assert the clock pin */
197 (*fn->abort) (cookie); /* abort the burn */
210 (*fn->cs) (false, true, cookie); /* Deassert the chip select */
211 (*fn->wr) (false, true, cookie); /* Deassert the write pin */
220 while ((*fn->done) (cookie) == FPGA_FAIL) {
225 (*fn->clk) (false, true, cookie); /* Deassert the clock pin */
227 (*fn->clk) (true, true, cookie); /* Assert the clock pin */
231 (*fn->abort) (cookie); /* abort the burn */
240 if (*fn->post)
241 (*fn->post) (cookie);
260 xilinx_spartan3_slave_parallel_fns *fn = desc->iface_fns;
262 if (fn) {
269 (*fn->cs) (true, true, cookie); /* Assert chip select, commit */
270 (*fn->clk) (true, true, cookie); /* Assert the clock pin */
276 (*fn->clk) (false, true, cookie); /* Deassert the clock pin */
277 (*fn->clk) (true, true, cookie); /* Assert the clock pin */
278 (*fn->rdata) (&(data[bytecount++]), cookie); /* read the data */
285 (*fn->cs) (false, false, cookie); /* Deassert the chip select */
286 (*fn->clk) (false, true, cookie); /* Deassert the clock pin */
287 (*fn->clk) (true, true, cookie); /* Assert the clock pin */
308 xilinx_spartan3_slave_serial_fns *fn = desc->iface_fns;
313 __FUNCTION__, fn);
315 if (fn) {
329 __FUNCTION__, &fn, fn, fn->pgm, fn->init,
330 fn->clk, fn->wr, fn->done);
338 if (*fn->pre) {
339 (*fn->pre) (cookie);
343 (*fn->pgm) (true, true, cookie); /* Assert the program, commit */
351 if (*fn->abort)
352 (*fn->abort) (cookie);
355 } while (!(*fn->init) (cookie));
359 (*fn->pgm) (false, true, cookie); /* Deassert the program, commit */
367 if (*fn->abort)
368 (*fn->abort) (cookie);
371 } while ((*fn->init) (cookie));
374 if(*fn->bwr)
375 (*fn->bwr) (data, bsize, true, cookie);
381 if ((*fn->done) (cookie) == 0 && (*fn->init) (cookie)) {
383 if (*fn->abort)
384 (*fn->abort) (cookie);
391 (*fn->clk) (false, true, cookie);
394 (*fn->wr) ((val & 0x80), true, cookie);
397 (*fn->clk) (true, true, cookie);
419 (*fn->wr) (true, true, cookie);
421 while (! (*fn->done) (cookie)) {
426 (*fn->clk) (false, true, cookie); /* Deassert the clock pin */
428 (*fn->clk) (true, true, cookie); /* Assert the clock pin */
443 if (*fn->post)
444 (*fn->post) (cookie);