Lines Matching refs:pstore
95 struct pstore_info pstore; member
472 .pstore = {
810 cxt->pstore.data = cxt; in ramoops_probe()
817 cxt->pstore.flags = 0; in ramoops_probe()
819 cxt->pstore.flags |= PSTORE_FLAGS_DMESG; in ramoops_probe()
821 cxt->pstore.flags |= PSTORE_FLAGS_CONSOLE; in ramoops_probe()
823 cxt->pstore.flags |= PSTORE_FLAGS_FTRACE; in ramoops_probe()
825 cxt->pstore.flags |= PSTORE_FLAGS_PMSG; in ramoops_probe()
832 if (cxt->pstore.flags & PSTORE_FLAGS_DMESG) { in ramoops_probe()
833 cxt->pstore.bufsize = cxt->dprzs[0]->buffer_size; in ramoops_probe()
834 cxt->pstore.buf = kzalloc(cxt->pstore.bufsize, GFP_KERNEL); in ramoops_probe()
835 if (!cxt->pstore.buf) { in ramoops_probe()
842 err = pstore_register(&cxt->pstore); in ramoops_probe()
867 kfree(cxt->pstore.buf); in ramoops_probe()
869 cxt->pstore.bufsize = 0; in ramoops_probe()
884 pstore_unregister(&cxt->pstore); in ramoops_remove()
886 kfree(cxt->pstore.buf); in ramoops_remove()
887 cxt->pstore.bufsize = 0; in ramoops_remove()