Searched refs:hmux (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/arch/arm/mach-omap2/
H A Dmux.c265 struct omap_hwmod_mux_info *hmux; omap_hwmod_mux_init() local
271 hmux = kzalloc(sizeof(struct omap_hwmod_mux_info), GFP_KERNEL); omap_hwmod_mux_init()
272 if (!hmux) omap_hwmod_mux_init()
275 hmux->nr_pads = nr_pads; omap_hwmod_mux_init()
277 hmux->pads = kzalloc(sizeof(struct omap_device_pad) * omap_hwmod_mux_init()
279 if (!hmux->pads) omap_hwmod_mux_init()
282 for (i = 0; i < hmux->nr_pads; i++) { omap_hwmod_mux_init()
284 struct omap_device_pad *bpad = &bpads[i], *pad = &hmux->pads[i]; omap_hwmod_mux_init()
301 kfree(hmux->pads[j].name); omap_hwmod_mux_init()
319 return hmux; omap_hwmod_mux_init()
325 hmux->nr_pads_dynamic = nr_pads_dynamic; omap_hwmod_mux_init()
326 hmux->pads_dynamic = kzalloc(sizeof(struct omap_device_pad *) * omap_hwmod_mux_init()
328 if (!hmux->pads_dynamic) { omap_hwmod_mux_init()
330 return hmux; omap_hwmod_mux_init()
334 for (i = 0; i < hmux->nr_pads; i++) { omap_hwmod_mux_init()
335 struct omap_device_pad *pad = &hmux->pads[i]; omap_hwmod_mux_init()
341 hmux->pads_dynamic[nr_pads_dynamic] = pad; omap_hwmod_mux_init()
346 return hmux; omap_hwmod_mux_init()
349 kfree(hmux->pads); omap_hwmod_mux_init()
351 kfree(hmux); omap_hwmod_mux_init()
360 * @hmux: Pads for a hwmod
369 static bool omap_hwmod_mux_scan_wakeups(struct omap_hwmod_mux_info *hmux, omap_hwmod_mux_scan_wakeups() argument
376 for (i = 0; i < hmux->nr_pads_dynamic; i++) { omap_hwmod_mux_scan_wakeups()
377 struct omap_device_pad *pad = hmux->pads_dynamic[i]; omap_hwmod_mux_scan_wakeups()
387 if (!hmux->irqs) omap_hwmod_mux_scan_wakeups()
390 irq = hmux->irqs[i]; omap_hwmod_mux_scan_wakeups()
431 void omap_hwmod_mux(struct omap_hwmod_mux_info *hmux, u8 state) omap_hwmod_mux() argument
436 if (state == _HWMOD_STATE_IDLE && hmux->enabled) { omap_hwmod_mux()
437 for (i = 0; i < hmux->nr_pads_dynamic; i++) { omap_hwmod_mux()
438 struct omap_device_pad *pad = hmux->pads_dynamic[i]; omap_hwmod_mux()
450 if ((state == _HWMOD_STATE_ENABLED) && hmux->pads_dynamic omap_hwmod_mux()
451 && hmux->enabled) { omap_hwmod_mux()
452 for (i = 0; i < hmux->nr_pads_dynamic; i++) { omap_hwmod_mux()
453 struct omap_device_pad *pad = hmux->pads_dynamic[i]; omap_hwmod_mux()
465 for (i = 0; i < hmux->nr_pads; i++) { omap_hwmod_mux()
466 struct omap_device_pad *pad = &hmux->pads[i]; omap_hwmod_mux()
499 hmux->enabled = true; omap_hwmod_mux()
501 hmux->enabled = false; omap_hwmod_mux()
H A Dmux.h221 * @hmux: Pads for a hwmod
226 void omap_hwmod_mux(struct omap_hwmod_mux_info *hmux, u8 state);
255 static inline void omap_hwmod_mux(struct omap_hwmod_mux_info *hmux, u8 state) omap_hwmod_mux() argument

Completed in 89 milliseconds