Lines Matching refs:per

225 static int portmux_group_check(unsigned short per)  in portmux_group_check()  argument
227 u16 ident = P_IDENT(per); in portmux_group_check()
228 u16 function = P_FUNCT2MUX(per); in portmux_group_check()
260 static void portmux_setup(unsigned short per) in portmux_setup() argument
262 u16 ident = P_IDENT(per); in portmux_setup()
263 u16 function = P_FUNCT2MUX(per); in portmux_setup()
282 static int portmux_group_check(unsigned short per) in portmux_group_check() argument
284 u16 ident = P_IDENT(per); in portmux_group_check()
285 u16 function = P_FUNCT2MUX(per); in portmux_group_check()
311 inline void portmux_setup(unsigned short per) in portmux_setup() argument
313 u16 ident = P_IDENT(per); in portmux_setup()
314 u16 function = P_FUNCT2MUX(per); in portmux_setup()
328 static int portmux_group_check(unsigned short per) in portmux_group_check() argument
653 int peripheral_request(unsigned short per, const char *label) in peripheral_request() argument
656 unsigned short ident = P_IDENT(per); in peripheral_request()
662 if (per & P_DONTCARE) in peripheral_request()
665 if (!(per & P_DEFINED)) in peripheral_request()
692 if (!(per & P_MAYSHARE)) { in peripheral_request()
705 __func__, ident, P_FUNCT2MUX(per), get_label(ident)); in peripheral_request()
711 if (unlikely(portmux_group_check(per))) { in peripheral_request()
718 portmux_setup(per); in peripheral_request()
728 int peripheral_request_list(const unsigned short per[], const char *label) in peripheral_request_list() argument
733 for (cnt = 0; per[cnt] != 0; cnt++) { in peripheral_request_list()
735 ret = peripheral_request(per[cnt], label); in peripheral_request_list()
739 peripheral_free(per[cnt - 1]); in peripheral_request_list()
749 void peripheral_free(unsigned short per) in peripheral_free() argument
752 unsigned short ident = P_IDENT(per); in peripheral_free()
754 if (per & P_DONTCARE) in peripheral_free()
757 if (!(per & P_DEFINED)) in peripheral_free()
767 if (!(per & P_MAYSHARE)) in peripheral_free()
778 void peripheral_free_list(const unsigned short per[]) in peripheral_free_list() argument
781 for (cnt = 0; per[cnt] != 0; cnt++) in peripheral_free_list()
782 peripheral_free(per[cnt]); in peripheral_free_list()