Searched refs:rtk (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/drivers/soc/apple/ |
H A D | rtkit.c | 81 struct apple_rtkit *rtk; member 87 bool apple_rtkit_is_running(struct apple_rtkit *rtk) in apple_rtkit_is_running() argument 89 if (rtk->crashed) in apple_rtkit_is_running() 91 if ((rtk->iop_power_state & 0xff) != APPLE_RTKIT_PWR_STATE_ON) in apple_rtkit_is_running() 93 if ((rtk->ap_power_state & 0xff) != APPLE_RTKIT_PWR_STATE_ON) in apple_rtkit_is_running() 99 bool apple_rtkit_is_crashed(struct apple_rtkit *rtk) in apple_rtkit_is_crashed() argument 101 return rtk->crashed; in apple_rtkit_is_crashed() 105 static void apple_rtkit_management_send(struct apple_rtkit *rtk, u8 type, in apple_rtkit_management_send() argument 110 apple_rtkit_send_message(rtk, APPLE_RTKIT_EP_MGMT, msg, NULL, false); in apple_rtkit_management_send() 113 static void apple_rtkit_management_rx_hello(struct apple_rtkit *rtk, u64 msg) in apple_rtkit_management_rx_hello() argument [all …]
|
H A D | rtkit-crashlog.c | 63 static void apple_rtkit_crashlog_dump_str(struct apple_rtkit *rtk, u8 *bfr, in apple_rtkit_crashlog_dump_str() argument 79 dev_warn(rtk->dev, "RTKit: Message (id=%x): %s\n", idx, in apple_rtkit_crashlog_dump_str() 84 dev_warn(rtk->dev, "RTKit: Message (id=%x): %s", idx, in apple_rtkit_crashlog_dump_str() 91 static void apple_rtkit_crashlog_dump_version(struct apple_rtkit *rtk, u8 *bfr, in apple_rtkit_crashlog_dump_version() argument 94 dev_warn(rtk->dev, "RTKit: Version: %s", bfr + 16); in apple_rtkit_crashlog_dump_version() 97 static void apple_rtkit_crashlog_dump_time(struct apple_rtkit *rtk, u8 *bfr, in apple_rtkit_crashlog_dump_time() argument 103 dev_warn(rtk->dev, "RTKit: Crash time: %lld", crash_time); in apple_rtkit_crashlog_dump_time() 106 static void apple_rtkit_crashlog_dump_mailbox(struct apple_rtkit *rtk, u8 *bfr, in apple_rtkit_crashlog_dump_mailbox() argument 117 dev_warn(rtk->dev, "RTKit: Mailbox history (type = %d, index = %d)", in apple_rtkit_crashlog_dump_mailbox() 121 dev_warn(rtk->dev, "RTKit: #%03d@%08x: %016llx %016llx", i, in apple_rtkit_crashlog_dump_mailbox() [all …]
|
H A D | rtkit-internal.h | 60 void apple_rtkit_crashlog_dump(struct apple_rtkit *rtk, u8 *bfr, size_t size);
|
/openbmc/linux/include/linux/soc/apple/ |
H A D | rtkit.h | 99 void apple_rtkit_free(struct apple_rtkit *rtk); 105 int apple_rtkit_reinit(struct apple_rtkit *rtk); 111 int apple_rtkit_boot(struct apple_rtkit *rtk); 116 int apple_rtkit_quiesce(struct apple_rtkit *rtk); 121 int apple_rtkit_wake(struct apple_rtkit *rtk); 126 int apple_rtkit_shutdown(struct apple_rtkit *rtk); 131 int apple_rtkit_idle(struct apple_rtkit *rtk); 136 bool apple_rtkit_is_running(struct apple_rtkit *rtk); 141 bool apple_rtkit_is_crashed(struct apple_rtkit *rtk); 147 int apple_rtkit_start_ep(struct apple_rtkit *rtk, u8 endpoint); [all …]
|
/openbmc/linux/drivers/nvme/host/ |
H A D | apple.c | 180 struct apple_rtkit *rtk; member 804 if (apple_rtkit_is_crashed(anv->rtk)) in apple_nvme_disable() 912 if (!apple_rtkit_is_crashed(anv->rtk) && !(csts & NVME_CSTS_CFS)) { in apple_nvme_timeout() 997 if (apple_rtkit_is_crashed(anv->rtk)) { in apple_nvme_reset_work() 1005 if (apple_rtkit_is_running(anv->rtk)) { in apple_nvme_reset_work() 1010 ret = apple_rtkit_shutdown(anv->rtk); in apple_nvme_reset_work() 1021 ret = apple_rtkit_reinit(anv->rtk); in apple_nvme_reset_work() 1031 ret = apple_rtkit_boot(anv->rtk); in apple_nvme_reset_work() 1503 anv->rtk = in apple_nvme_alloc() 1505 if (IS_ERR(anv->rtk)) { in apple_nvme_alloc() [all …]
|
/openbmc/linux/security/selinux/ss/ |
H A D | policydb.c | 2408 struct role_trans_key *rtk = NULL; in policydb_read() local 2580 rtk = kmalloc(sizeof(*rtk), GFP_KERNEL); in policydb_read() 2581 if (!rtk) in policydb_read() 2593 rtk->role = le32_to_cpu(buf[0]); in policydb_read() 2594 rtk->type = le32_to_cpu(buf[1]); in policydb_read() 2600 rtk->tclass = le32_to_cpu(buf[0]); in policydb_read() 2602 rtk->tclass = p->process_class; in policydb_read() 2605 if (!policydb_role_isvalid(p, rtk->role) || in policydb_read() 2606 !policydb_type_isvalid(p, rtk->type) || in policydb_read() 2607 !policydb_class_isvalid(p, rtk->tclass) || in policydb_read() [all …]
|
H A D | services.c | 1844 struct role_trans_key rtk = { in security_compute_sid() local 1850 rtd = policydb_roletr_search(policydb, &rtk); in security_compute_sid()
|