Lines Matching refs:blob
116 static int find_peripheral_uart(const void *blob, in find_peripheral_uart() argument
125 base_addr = fdtdec_get_addr_size(blob, child, "reg", &size); in find_peripheral_uart()
127 cell = fdt_getprop(blob, child, "pinctrl-single,pins", in find_peripheral_uart()
148 static int is_peripheral_uart_true(const void *blob, in is_peripheral_uart_true() argument
154 child = fdt_first_subnode(blob, node); in is_peripheral_uart_true()
159 node_name = fdt_get_name(blob, child, &len); in is_peripheral_uart_true()
163 return find_peripheral_uart(blob, child, node_name); in is_peripheral_uart_true()
165 child = fdt_next_subnode(blob, child); in is_peripheral_uart_true()
169 node_name = fdt_get_name(blob, child, &len); in is_peripheral_uart_true()
180 unsigned int dedicated_uart_com_port(const void *blob) in dedicated_uart_com_port() argument
184 node = fdtdec_next_compatible(blob, 0, in dedicated_uart_com_port()
189 if (is_peripheral_uart_true(blob, node, "dedicated") >= 0) in dedicated_uart_com_port()
199 unsigned int shared_uart_com_port(const void *blob) in shared_uart_com_port() argument
203 node = fdtdec_next_compatible(blob, 0, in shared_uart_com_port()
208 ret = is_peripheral_uart_true(blob, node, "shared"); in shared_uart_com_port()
226 unsigned int uart_com_port(const void *blob) in uart_com_port() argument
230 ret = dedicated_uart_com_port(blob); in uart_com_port()
235 return shared_uart_com_port(blob); in uart_com_port()