Lines Matching refs:oi
2592 * @oi: pointer to a struct omap_hwmod_ocp_if record
2595 * specified in @oi->slave to @oi. This code is assumed to run before
2600 static int _add_link(struct omap_hwmod_ocp_if *oi)
2602 pr_debug("omap_hwmod: %s -> %s: adding link\n", oi->master->name,
2603 oi->slave->name);
2605 list_add(&oi->node, &oi->slave->slave_ports);
2606 oi->slave->slaves_cnt++;
2613 * @oi: struct omap_hwmod_ocp_if *
2615 * Registers the omap_hwmod_ocp_if record @oi. Returns -EEXIST if it
2616 * has already been registered; -EINVAL if @oi is NULL or if the
2617 * record pointed to by @oi is missing required fields; or 0 upon
2624 static int __init _register_link(struct omap_hwmod_ocp_if *oi)
2626 if (!oi || !oi->master || !oi->slave || !oi->user)
2629 if (oi->_int_flags & _OCPIF_INT_FLAGS_REGISTERED)
2633 oi->master->name, oi->slave->name);
2639 if (oi->master->_state != _HWMOD_STATE_REGISTERED)
2640 _register(oi->master);
2642 if (oi->slave->_state != _HWMOD_STATE_REGISTERED)
2643 _register(oi->slave);
2645 _add_link(oi);
2647 oi->_int_flags |= _OCPIF_INT_FLAGS_REGISTERED;
3391 struct omap_hwmod_ocp_if *oi = NULL;
3425 oi = kzalloc(sizeof(*oi), GFP_KERNEL);
3426 if (!oi)
3434 oi->slave = oh;
3435 oi->user = OCP_USER_MPU | OCP_USER_SDMA;
3444 if (oi)
3445 _add_link(oi);