Lines Matching refs:desc
45 fpga_desc *desc = (fpga_desc *)NULL; in fpga_get_desc() local
48 desc = &desc_table[devnum]; in fpga_get_desc()
50 __func__, devnum, desc); in fpga_get_desc()
53 return desc; in fpga_get_desc()
63 const fpga_desc *desc = fpga_get_desc(devnum); in fpga_validate() local
65 if (!desc) in fpga_validate()
72 return desc; in fpga_validate()
82 const fpga_desc * const desc = fpga_get_desc(devnum); in fpga_dev_info() local
84 if (desc) { in fpga_dev_info()
86 __func__, desc->devdesc); in fpga_dev_info()
88 switch (desc->devtype) { in fpga_dev_info()
91 printf("Xilinx Device\nDescriptor @ 0x%p\n", desc); in fpga_dev_info()
92 ret_val = xilinx_info(desc->devdesc); in fpga_dev_info()
99 printf("Altera Device\nDescriptor @ 0x%p\n", desc); in fpga_dev_info()
100 ret_val = altera_info(desc->devdesc); in fpga_dev_info()
107 printf("Lattice Device\nDescriptor @ 0x%p\n", desc); in fpga_dev_info()
108 ret_val = lattice_info(desc->devdesc); in fpga_dev_info()
115 __func__, desc->devtype); in fpga_dev_info()
149 int fpga_add(fpga_type devtype, void *desc) in fpga_add() argument
153 if (!desc) { in fpga_add()
164 desc_table[next_desc++].devdesc = desc; in fpga_add()
200 const fpga_desc *desc = fpga_validate(devnum, buf, size, in fpga_fsload() local
203 if (desc) { in fpga_fsload()
204 switch (desc->devtype) { in fpga_fsload()
207 ret_val = xilinx_loadfs(desc->devdesc, buf, size, in fpga_fsload()
215 __func__, desc->devtype); in fpga_fsload()
229 const fpga_desc *desc = fpga_validate(devnum, buf, size, in fpga_loads() local
232 if (desc) { in fpga_loads()
233 switch (desc->devtype) { in fpga_loads()
236 ret_val = xilinx_loads(desc->devdesc, buf, size, in fpga_loads()
244 __func__, desc->devtype); in fpga_loads()
258 const fpga_desc *desc = fpga_validate(devnum, buf, bsize, in fpga_load() local
261 if (desc) { in fpga_load()
262 switch (desc->devtype) { in fpga_load()
265 ret_val = xilinx_load(desc->devdesc, buf, bsize, in fpga_load()
273 ret_val = altera_load(desc->devdesc, buf, bsize); in fpga_load()
280 ret_val = lattice_load(desc->devdesc, buf, bsize); in fpga_load()
287 __func__, desc->devtype); in fpga_load()
301 const fpga_desc *desc = fpga_validate(devnum, buf, bsize, in fpga_dump() local
304 if (desc) { in fpga_dump()
305 switch (desc->devtype) { in fpga_dump()
308 ret_val = xilinx_dump(desc->devdesc, buf, bsize); in fpga_dump()
315 ret_val = altera_dump(desc->devdesc, buf, bsize); in fpga_dump()
322 ret_val = lattice_dump(desc->devdesc, buf, bsize); in fpga_dump()
329 __func__, desc->devtype); in fpga_dump()