Lines Matching full:pstore
15 #include <linux/pstore.h>
106 struct pstore_info pstore; member
445 .pstore = {
816 cxt->pstore.data = cxt; in ramoops_probe()
823 cxt->pstore.flags = 0; in ramoops_probe()
825 cxt->pstore.flags |= PSTORE_FLAGS_DMESG; in ramoops_probe()
826 cxt->pstore.max_reason = pdata->max_reason; in ramoops_probe()
829 cxt->pstore.flags |= PSTORE_FLAGS_CONSOLE; in ramoops_probe()
831 cxt->pstore.flags |= PSTORE_FLAGS_FTRACE; in ramoops_probe()
833 cxt->pstore.flags |= PSTORE_FLAGS_PMSG; in ramoops_probe()
840 if (cxt->pstore.flags & PSTORE_FLAGS_DMESG) { in ramoops_probe()
841 cxt->pstore.bufsize = cxt->dprzs[0]->buffer_size; in ramoops_probe()
842 cxt->pstore.buf = kvzalloc(cxt->pstore.bufsize, GFP_KERNEL); in ramoops_probe()
843 if (!cxt->pstore.buf) { in ramoops_probe()
844 pr_err("cannot allocate pstore crash dump buffer\n"); in ramoops_probe()
850 err = pstore_register(&cxt->pstore); in ramoops_probe()
852 pr_err("registering with pstore failed\n"); in ramoops_probe()
875 kvfree(cxt->pstore.buf); in ramoops_probe()
877 cxt->pstore.bufsize = 0; in ramoops_probe()
888 pstore_unregister(&cxt->pstore); in ramoops_remove()
890 kvfree(cxt->pstore.buf); in ramoops_remove()
891 cxt->pstore.bufsize = 0; in ramoops_remove()