• Home
  • Raw
  • Download

Lines Matching refs:console

216 	struct brcmf_pcie_console console;  member
612 struct brcmf_pcie_console *console; in brcmf_pcie_bus_console_init() local
616 console = &shared->console; in brcmf_pcie_bus_console_init()
618 console->base_addr = brcmf_pcie_read_tcm32(devinfo, addr); in brcmf_pcie_bus_console_init()
620 addr = console->base_addr + BRCMF_CONSOLE_BUFADDR_OFFSET; in brcmf_pcie_bus_console_init()
621 console->buf_addr = brcmf_pcie_read_tcm32(devinfo, addr); in brcmf_pcie_bus_console_init()
622 addr = console->base_addr + BRCMF_CONSOLE_BUFSIZE_OFFSET; in brcmf_pcie_bus_console_init()
623 console->bufsize = brcmf_pcie_read_tcm32(devinfo, addr); in brcmf_pcie_bus_console_init()
626 console->base_addr, console->buf_addr, console->bufsize); in brcmf_pcie_bus_console_init()
632 struct brcmf_pcie_console *console; in brcmf_pcie_bus_console_read() local
637 console = &devinfo->shared.console; in brcmf_pcie_bus_console_read()
638 addr = console->base_addr + BRCMF_CONSOLE_WRITEIDX_OFFSET; in brcmf_pcie_bus_console_read()
640 while (newidx != console->read_idx) { in brcmf_pcie_bus_console_read()
641 addr = console->buf_addr + console->read_idx; in brcmf_pcie_bus_console_read()
643 console->read_idx++; in brcmf_pcie_bus_console_read()
644 if (console->read_idx == console->bufsize) in brcmf_pcie_bus_console_read()
645 console->read_idx = 0; in brcmf_pcie_bus_console_read()
648 console->log_str[console->log_idx] = ch; in brcmf_pcie_bus_console_read()
649 console->log_idx++; in brcmf_pcie_bus_console_read()
651 (console->log_idx == (sizeof(console->log_str) - 2))) { in brcmf_pcie_bus_console_read()
653 console->log_str[console->log_idx] = ch; in brcmf_pcie_bus_console_read()
654 console->log_idx++; in brcmf_pcie_bus_console_read()
658 console->log_str[console->log_idx] = 0; in brcmf_pcie_bus_console_read()
659 brcmf_dbg(PCIE, "CONSOLE: %s\n", console->log_str); in brcmf_pcie_bus_console_read()
660 console->log_idx = 0; in brcmf_pcie_bus_console_read()