Lines Matching refs:desc

42 	fpga_desc *desc = (fpga_desc *)NULL;  in fpga_get_desc()  local
45 desc = &desc_table[devnum]; in fpga_get_desc()
47 __func__, devnum, desc); in fpga_get_desc()
50 return desc; in fpga_get_desc()
60 const fpga_desc *desc = fpga_get_desc(devnum); in fpga_validate() local
62 if (!desc) in fpga_validate()
69 return desc; in fpga_validate()
79 const fpga_desc * const desc = fpga_get_desc(devnum); in fpga_dev_info() local
81 if (desc) { in fpga_dev_info()
83 __func__, desc->devdesc); in fpga_dev_info()
85 switch (desc->devtype) { in fpga_dev_info()
88 printf("Xilinx Device\nDescriptor @ 0x%p\n", desc); in fpga_dev_info()
89 ret_val = xilinx_info(desc->devdesc); in fpga_dev_info()
96 printf("Altera Device\nDescriptor @ 0x%p\n", desc); in fpga_dev_info()
97 ret_val = altera_info(desc->devdesc); in fpga_dev_info()
104 printf("Lattice Device\nDescriptor @ 0x%p\n", desc); in fpga_dev_info()
105 ret_val = lattice_info(desc->devdesc); in fpga_dev_info()
112 __func__, desc->devtype); in fpga_dev_info()
146 int fpga_add(fpga_type devtype, void *desc) in fpga_add() argument
150 if (!desc) { in fpga_add()
161 desc_table[next_desc++].devdesc = desc; in fpga_add()
197 const fpga_desc *desc = fpga_validate(devnum, buf, size, in fpga_fsload() local
200 if (desc) { in fpga_fsload()
201 switch (desc->devtype) { in fpga_fsload()
204 ret_val = xilinx_loadfs(desc->devdesc, buf, size, in fpga_fsload()
212 __func__, desc->devtype); in fpga_fsload()
226 const fpga_desc *desc = fpga_validate(devnum, buf, size, in fpga_loads() local
229 if (desc) { in fpga_loads()
230 switch (desc->devtype) { in fpga_loads()
233 ret_val = xilinx_loads(desc->devdesc, buf, size, in fpga_loads()
241 __func__, desc->devtype); in fpga_loads()
255 const fpga_desc *desc = fpga_validate(devnum, buf, bsize, in fpga_load() local
258 if (desc) { in fpga_load()
259 switch (desc->devtype) { in fpga_load()
262 ret_val = xilinx_load(desc->devdesc, buf, bsize, in fpga_load()
270 ret_val = altera_load(desc->devdesc, buf, bsize); in fpga_load()
277 ret_val = lattice_load(desc->devdesc, buf, bsize); in fpga_load()
284 __func__, desc->devtype); in fpga_load()
298 const fpga_desc *desc = fpga_validate(devnum, buf, bsize, in fpga_dump() local
301 if (desc) { in fpga_dump()
302 switch (desc->devtype) { in fpga_dump()
305 ret_val = xilinx_dump(desc->devdesc, buf, bsize); in fpga_dump()
312 ret_val = altera_dump(desc->devdesc, buf, bsize); in fpga_dump()
319 ret_val = lattice_dump(desc->devdesc, buf, bsize); in fpga_dump()
326 __func__, desc->devtype); in fpga_dump()