Lines Matching refs:pstore
102 struct pstore_info pstore; member
441 .pstore = {
811 cxt->pstore.data = cxt; in ramoops_probe()
818 cxt->pstore.flags = 0; in ramoops_probe()
820 cxt->pstore.flags |= PSTORE_FLAGS_DMESG; in ramoops_probe()
821 cxt->pstore.max_reason = pdata->max_reason; in ramoops_probe()
824 cxt->pstore.flags |= PSTORE_FLAGS_CONSOLE; in ramoops_probe()
826 cxt->pstore.flags |= PSTORE_FLAGS_FTRACE; in ramoops_probe()
828 cxt->pstore.flags |= PSTORE_FLAGS_PMSG; in ramoops_probe()
835 if (cxt->pstore.flags & PSTORE_FLAGS_DMESG) { in ramoops_probe()
836 cxt->pstore.bufsize = cxt->dprzs[0]->buffer_size; in ramoops_probe()
837 cxt->pstore.buf = kvzalloc(cxt->pstore.bufsize, GFP_KERNEL); in ramoops_probe()
838 if (!cxt->pstore.buf) { in ramoops_probe()
845 err = pstore_register(&cxt->pstore); in ramoops_probe()
870 kvfree(cxt->pstore.buf); in ramoops_probe()
872 cxt->pstore.bufsize = 0; in ramoops_probe()
883 pstore_unregister(&cxt->pstore); in ramoops_remove()
885 kvfree(cxt->pstore.buf); in ramoops_remove()
886 cxt->pstore.bufsize = 0; in ramoops_remove()