Lines Matching refs:api
58 const struct fpga_driver_api *api = in fpga_get_status() local
59 (const struct fpga_driver_api *)dev->api; in fpga_get_status()
61 if (api->get_status == NULL) { in fpga_get_status()
68 return api->get_status(dev); in fpga_get_status()
81 const struct fpga_driver_api *api = in fpga_reset() local
82 (const struct fpga_driver_api *)dev->api; in fpga_reset()
84 if (api->reset == NULL) { in fpga_reset()
88 return api->reset(dev); in fpga_reset()
104 const struct fpga_driver_api *api = in fpga_load() local
105 (const struct fpga_driver_api *)dev->api; in fpga_load()
107 if (api->load == NULL) { in fpga_load()
111 return api->load(dev, image_ptr, img_size); in fpga_load()
124 const struct fpga_driver_api *api = in fpga_on() local
125 (const struct fpga_driver_api *)dev->api; in fpga_on()
127 if (api->on == NULL) { in fpga_on()
131 return api->on(dev); in fpga_on()
145 const struct fpga_driver_api *api = in fpga_get_info() local
146 (const struct fpga_driver_api *)dev->api; in fpga_get_info()
148 if (api->get_info == NULL) { in fpga_get_info()
152 return api->get_info(dev); in fpga_get_info()
165 const struct fpga_driver_api *api = in fpga_off() local
166 (const struct fpga_driver_api *)dev->api; in fpga_off()
168 if (api->off == NULL) { in fpga_off()
172 return api->off(dev); in fpga_off()