Lines Matching refs:mops
81 if (!mgr->mops->initial_header_size) in fpga_mgr_write_init_buf()
82 ret = mgr->mops->write_init(mgr, info, NULL, 0); in fpga_mgr_write_init_buf()
84 ret = mgr->mops->write_init( in fpga_mgr_write_init_buf()
85 mgr, info, buf, min(mgr->mops->initial_header_size, count)); in fpga_mgr_write_init_buf()
105 if (!mgr->mops->initial_header_size) in fpga_mgr_write_init_sg()
114 miter.length >= mgr->mops->initial_header_size) { in fpga_mgr_write_init_sg()
123 buf = kmalloc(mgr->mops->initial_header_size, GFP_KERNEL); in fpga_mgr_write_init_sg()
128 mgr->mops->initial_header_size); in fpga_mgr_write_init_sg()
146 ret = mgr->mops->write_complete(mgr, info); in fpga_mgr_write_complete()
186 if (mgr->mops->write_sg) { in fpga_mgr_buf_load_sg()
187 ret = mgr->mops->write_sg(mgr, sgt); in fpga_mgr_buf_load_sg()
193 ret = mgr->mops->write(mgr, miter.addr, miter.length); in fpga_mgr_buf_load_sg()
223 ret = mgr->mops->write(mgr, buf, count); in fpga_mgr_buf_load_mapped()
263 if (mgr->mops->write) in fpga_mgr_buf_load()
416 if (!mgr->mops->status) in status_show()
419 status = mgr->mops->status(mgr); in status_show()
564 const struct fpga_manager_ops *mops, in fpga_mgr_create() argument
570 if (!mops || !mops->write_complete || !mops->state || in fpga_mgr_create()
571 !mops->write_init || (!mops->write && !mops->write_sg) || in fpga_mgr_create()
572 (mops->write && mops->write_sg)) { in fpga_mgr_create()
595 mgr->mops = mops; in fpga_mgr_create()
600 mgr->dev.groups = mops->groups; in fpga_mgr_create()
646 mgr->state = mgr->mops->state(mgr); in fpga_mgr_register()
675 if (mgr->mops->fpga_remove) in fpga_mgr_unregister()
676 mgr->mops->fpga_remove(mgr); in fpga_mgr_unregister()