Lines Matching refs:os

807 	struct omap_hwmod_ocp_if *os;  in _init_interface_clks()  local
816 os = _fetch_next_ocp_if(&p, &i); in _init_interface_clks()
817 if (!os->clk) in _init_interface_clks()
820 c = clk_get(NULL, os->clk); in _init_interface_clks()
823 oh->name, os->clk); in _init_interface_clks()
827 os->_clk = c; in _init_interface_clks()
836 clk_prepare(os->_clk); in _init_interface_clks()
918 struct omap_hwmod_ocp_if *os; in _enable_clocks() local
930 os = _fetch_next_ocp_if(&p, &i); in _enable_clocks()
932 if (os->_clk && (os->flags & OCPIF_SWSUP_IDLE)) in _enable_clocks()
933 clk_enable(os->_clk); in _enable_clocks()
952 struct omap_hwmod_ocp_if *os; in _disable_clocks() local
964 os = _fetch_next_ocp_if(&p, &i); in _disable_clocks()
966 if (os->_clk && (os->flags & OCPIF_SWSUP_IDLE)) in _disable_clocks()
967 clk_disable(os->_clk); in _disable_clocks()
1077 static int _count_ocp_if_addr_spaces(struct omap_hwmod_ocp_if *os) in _count_ocp_if_addr_spaces() argument
1082 if (!os || !os->addr) in _count_ocp_if_addr_spaces()
1086 mem = &os->addr[i++]; in _count_ocp_if_addr_spaces()
1201 struct omap_hwmod_ocp_if *os; in _get_addr_space_by_name() local
1209 os = _fetch_next_ocp_if(&p, &i); in _get_addr_space_by_name()
1211 if (!os->addr) in _get_addr_space_by_name()
1215 while (os->addr[j].pa_start != os->addr[j].pa_end) { in _get_addr_space_by_name()
1216 if (name == os->addr[j].name || in _get_addr_space_by_name()
1217 !strcmp(name, os->addr[j].name)) { in _get_addr_space_by_name()
1231 *pa_start = os->addr[j].pa_start; in _get_addr_space_by_name()
1232 *pa_end = os->addr[j].pa_end; in _get_addr_space_by_name()
1248 struct omap_hwmod_ocp_if *os = NULL; in _save_mpu_port_index() local
1260 os = _fetch_next_ocp_if(&p, &i); in _save_mpu_port_index()
1261 if (os->user & OCP_USER_MPU) { in _save_mpu_port_index()
1262 oh->_mpu_port = os; in _save_mpu_port_index()
1301 struct omap_hwmod_ocp_if *os; in _find_mpu_rt_addr_space() local
1305 os = _find_mpu_rt_port(oh); in _find_mpu_rt_addr_space()
1306 if (!os || !os->addr) in _find_mpu_rt_addr_space()
1310 mem = &os->addr[i++]; in _find_mpu_rt_addr_space()
2517 struct omap_hwmod_ocp_if *os; in _setup_iclk_autoidle() local
2526 os = _fetch_next_ocp_if(&p, &i); in _setup_iclk_autoidle()
2527 if (!os->_clk) in _setup_iclk_autoidle()
2530 if (os->flags & OCPIF_SWSUP_IDLE) { in _setup_iclk_autoidle()
2534 clk_enable(os->_clk); in _setup_iclk_autoidle()
3408 struct omap_hwmod_ocp_if *os; in omap_hwmod_count_resources() local
3412 os = _fetch_next_ocp_if(&p, &i); in omap_hwmod_count_resources()
3413 ret += _count_ocp_if_addr_spaces(os); in omap_hwmod_count_resources()
3432 struct omap_hwmod_ocp_if *os; in omap_hwmod_fill_resources() local
3467 os = _fetch_next_ocp_if(&p, &i); in omap_hwmod_fill_resources()
3468 addr_cnt = _count_ocp_if_addr_spaces(os); in omap_hwmod_fill_resources()
3471 (res + r)->name = (os->addr + j)->name; in omap_hwmod_fill_resources()
3472 (res + r)->start = (os->addr + j)->pa_start; in omap_hwmod_fill_resources()
3473 (res + r)->end = (os->addr + j)->pa_end; in omap_hwmod_fill_resources()