Lines Matching refs:fns
71 altera_board_specific_func *fns; in StratixII_ps_fpp_load() local
96 fns = (altera_board_specific_func *) (desc->iface_fns); in StratixII_ps_fpp_load()
100 (fns->config && fns->status && fns->done && fns->data in StratixII_ps_fpp_load()
101 && fns->abort)) { in StratixII_ps_fpp_load()
109 if (fns->pre) { in StratixII_ps_fpp_load()
110 if ((ret_val = fns->pre (cookie)) < 0) { in StratixII_ps_fpp_load()
118 fns->config (0, 1, cookie); in StratixII_ps_fpp_load()
120 fns->config (1, 1, cookie); in StratixII_ps_fpp_load()
125 fns->clk (0, 1, cookie); in StratixII_ps_fpp_load()
130 if (fns->status (cookie) != 1) { in StratixII_ps_fpp_load()
134 fns->abort (cookie); in StratixII_ps_fpp_load()
142 fns->data ((data >> i) & 1, 1, cookie); in StratixII_ps_fpp_load()
145 fns->clk (1, 1, cookie); in StratixII_ps_fpp_load()
146 fns->clk (0, 1, cookie); in StratixII_ps_fpp_load()
150 fns->data (buff[bytecount++], 1, cookie); in StratixII_ps_fpp_load()
153 fns->clk (1, 1, cookie); in StratixII_ps_fpp_load()
154 fns->clk (0, 1, cookie); in StratixII_ps_fpp_load()
158 fns->clk (1, 1, cookie); in StratixII_ps_fpp_load()
159 fns->clk (0, 1, cookie); in StratixII_ps_fpp_load()
170 fns->clk (1, 1, cookie); in StratixII_ps_fpp_load()
172 if (!fns->done (cookie)) { in StratixII_ps_fpp_load()
174 fns->abort (cookie); in StratixII_ps_fpp_load()
181 if (fns->post) { in StratixII_ps_fpp_load()
182 if ((ret_val = fns->post (cookie)) < 0) { in StratixII_ps_fpp_load()
183 fns->abort (cookie); in StratixII_ps_fpp_load()