Lines Matching defs:ops
145 * introduce a global port_ops list, it allows port drivers to register ops
158 * dfl_fpga_port_ops_get - get matched port ops from the global list
159 * @pdev: platform device to match with associated port ops.
160 * Return: matched port ops on success, NULL otherwise.
166 struct dfl_fpga_port_ops *ops = NULL;
172 list_for_each_entry(ops, &dfl_port_ops_list, node) {
174 if (!strcmp(pdev->name, ops->name)) {
175 if (!try_module_get(ops->owner))
176 ops = NULL;
181 ops = NULL;
184 return ops;
189 * dfl_fpga_port_ops_put - put port ops
190 * @ops: port ops.
192 void dfl_fpga_port_ops_put(struct dfl_fpga_port_ops *ops)
194 if (ops && ops->owner)
195 module_put(ops->owner);
201 * @ops: port ops to add.
203 void dfl_fpga_port_ops_add(struct dfl_fpga_port_ops *ops)
206 list_add_tail(&ops->node, &dfl_port_ops_list);
213 * @ops: port ops to del.
215 void dfl_fpga_port_ops_del(struct dfl_fpga_port_ops *ops)
218 list_del(&ops->node);
513 if (feature->ops) {
514 if (feature->ops->uinit)
515 feature->ops->uinit(pdev, feature);
516 feature->ops = NULL;
543 if (drv->ops->init) {
544 ret = drv->ops->init(pdev, feature);
549 feature->ops = drv->ops;
587 while (drv->ops) {
649 * dfl_fpga_dev_ops_register - register cdev ops for feature dev
679 * dfl_fpga_dev_ops_unregister - unregister cdev ops for feature dev