Lines Matching refs:devnum
43 const fpga_desc *const fpga_get_desc(int devnum) in fpga_get_desc() argument
47 if ((devnum >= 0) && (devnum < next_desc)) { in fpga_get_desc()
48 desc = &desc_table[devnum]; in fpga_get_desc()
50 __func__, devnum, desc); in fpga_get_desc()
60 const fpga_desc *const fpga_validate(int devnum, const void *buf, in fpga_validate() argument
63 const fpga_desc *desc = fpga_get_desc(devnum); in fpga_validate()
66 printf("%s: Invalid device number %d\n", fn, devnum); in fpga_validate()
79 static int fpga_dev_info(int devnum) in fpga_dev_info() argument
82 const fpga_desc * const desc = fpga_get_desc(devnum); in fpga_dev_info()
118 printf("%s: Invalid device number %d\n", __func__, devnum); in fpga_dev_info()
151 int devnum = FPGA_INVALID_DEVICE; in fpga_add() local
155 return devnum; in fpga_add()
162 devnum = next_desc; in fpga_add()
173 return devnum; in fpga_add()
180 int __weak fpga_is_partial_data(int devnum, size_t img_len) in fpga_is_partial_data() argument
188 int __weak fpga_loadbitstream(int devnum, char *fpgadata, size_t size, in fpga_loadbitstream() argument
196 int fpga_fsload(int devnum, const void *buf, size_t size, in fpga_fsload() argument
200 const fpga_desc *desc = fpga_validate(devnum, buf, size, in fpga_fsload()
224 int fpga_loads(int devnum, const void *buf, size_t size, in fpga_loads() argument
229 const fpga_desc *desc = fpga_validate(devnum, buf, size, in fpga_loads()
255 int fpga_load(int devnum, const void *buf, size_t bsize, bitstream_type bstype) in fpga_load() argument
258 const fpga_desc *desc = fpga_validate(devnum, buf, bsize, in fpga_load()
298 int fpga_dump(int devnum, const void *buf, size_t bsize) in fpga_dump() argument
301 const fpga_desc *desc = fpga_validate(devnum, buf, bsize, in fpga_dump()
341 int fpga_info(int devnum) in fpga_info() argument
343 if (devnum == FPGA_INVALID_DEVICE) { in fpga_info()
357 return fpga_dev_info(devnum); in fpga_info()