Lines Matching defs:mops
81 if (!mgr->mops->initial_header_size)
82 ret = mgr->mops->write_init(mgr, info, NULL, 0);
84 ret = mgr->mops->write_init(
85 mgr, info, buf, min(mgr->mops->initial_header_size, count));
105 if (!mgr->mops->initial_header_size)
114 miter.length >= mgr->mops->initial_header_size) {
123 buf = kmalloc(mgr->mops->initial_header_size, GFP_KERNEL);
128 mgr->mops->initial_header_size);
146 ret = mgr->mops->write_complete(mgr, info);
186 if (mgr->mops->write_sg) {
187 ret = mgr->mops->write_sg(mgr, sgt);
193 ret = mgr->mops->write(mgr, miter.addr, miter.length);
223 ret = mgr->mops->write(mgr, buf, count);
263 if (mgr->mops->write)
416 if (!mgr->mops->status)
419 status = mgr->mops->status(mgr);
552 * @mops: pointer to structure of fpga manager ops
561 const struct fpga_manager_ops *mops,
567 if (!mops || !mops->write_complete || !mops->state ||
568 !mops->write_init || (!mops->write && !mops->write_sg) ||
569 (mops->write && mops->write_sg)) {
590 mgr->mops = mops;
595 mgr->dev.groups = mops->groups;
637 * @mops: pointer to structure of fpga manager ops
651 const struct fpga_manager_ops *mops,
660 mgr = fpga_mgr_create(dev, name, mops, priv);
687 mgr->state = mgr->mops->state(mgr);
718 if (mgr->mops->fpga_remove)
719 mgr->mops->fpga_remove(mgr);