Lines Matching defs:ops
143 * introduce a global port_ops list, it allows port drivers to register ops
156 * dfl_fpga_port_ops_get - get matched port ops from the global list
157 * @pdev: platform device to match with associated port ops.
158 * Return: matched port ops on success, NULL otherwise.
164 struct dfl_fpga_port_ops *ops = NULL;
170 list_for_each_entry(ops, &dfl_port_ops_list, node) {
172 if (!strcmp(pdev->name, ops->name)) {
173 if (!try_module_get(ops->owner))
174 ops = NULL;
179 ops = NULL;
182 return ops;
187 * dfl_fpga_port_ops_put - put port ops
188 * @ops: port ops.
190 void dfl_fpga_port_ops_put(struct dfl_fpga_port_ops *ops)
192 if (ops && ops->owner)
193 module_put(ops->owner);
199 * @ops: port ops to add.
201 void dfl_fpga_port_ops_add(struct dfl_fpga_port_ops *ops)
204 list_add_tail(&ops->node, &dfl_port_ops_list);
211 * @ops: port ops to del.
213 void dfl_fpga_port_ops_del(struct dfl_fpga_port_ops *ops)
216 list_del(&ops->node);
502 if (feature->ops) {
503 if (feature->ops->uinit)
504 feature->ops->uinit(pdev, feature);
505 feature->ops = NULL;
532 if (drv->ops->init) {
533 ret = drv->ops->init(pdev, feature);
538 feature->ops = drv->ops;
576 while (drv->ops) {
638 * dfl_fpga_dev_ops_register - register cdev ops for feature dev
668 * dfl_fpga_dev_ops_unregister - unregister cdev ops for feature dev