/linux/drivers/soc/apple/ |
H A D | rtkit.c | 76 struct apple_rtkit *rtk; member 82 bool apple_rtkit_is_running(struct apple_rtkit *rtk) in apple_rtkit_is_running() argument 84 if (rtk->crashed) in apple_rtkit_is_running() 86 if ((rtk->iop_power_state & 0xff) != APPLE_RTKIT_PWR_STATE_ON) in apple_rtkit_is_running() 88 if ((rtk->ap_power_state & 0xff) != APPLE_RTKIT_PWR_STATE_ON) in apple_rtkit_is_running() 94 bool apple_rtkit_is_crashed(struct apple_rtkit *rtk) in apple_rtkit_is_crashed() argument 96 return rtk->crashed; in apple_rtkit_is_crashed() 100 static void apple_rtkit_management_send(struct apple_rtkit *rtk, u8 type, in apple_rtkit_management_send() argument 105 apple_rtkit_send_message(rtk, APPLE_RTKIT_EP_MGMT, msg, NULL, false); in apple_rtkit_management_send() 108 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 | 56 void apple_rtkit_crashlog_dump(struct apple_rtkit *rtk, u8 *bfr, size_t size);
|
/linux/drivers/usb/dwc3/ |
H A D | dwc3-rtk.c | 65 static void switch_usb2_role(struct dwc3_rtk *rtk, enum usb_role role) in switch_usb2_role() argument 70 reg = rtk->regs + WRAP_USB2_PHY_REG; in switch_usb2_role() 81 dev_dbg(rtk->dev, "%s: role=%d\n", __func__, role); in switch_usb2_role() 86 static void switch_dwc3_role(struct dwc3_rtk *rtk, enum usb_role role) in switch_dwc3_role() argument 88 if (!rtk->dwc->role_sw) in switch_dwc3_role() 91 usb_role_switch_set_role(rtk->dwc->role_sw, role); in switch_dwc3_role() 94 static enum usb_role dwc3_rtk_get_role(struct dwc3_rtk *rtk) in dwc3_rtk_get_role() argument 98 role = rtk->cur_role; in dwc3_rtk_get_role() 100 if (rtk->dwc && rtk->dwc->role_sw) in dwc3_rtk_get_role() 101 role = usb_role_switch_get_role(rtk->dwc->role_sw); in dwc3_rtk_get_role() [all …]
|
H A D | Makefile | 58 obj-$(CONFIG_USB_DWC3_RTK) += dwc3-rtk.o
|
/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 …]
|
/linux/drivers/phy/realtek/ |
H A D | Makefile | 2 obj-$(CONFIG_PHY_RTK_RTD_USB2PHY) += phy-rtk-usb2.o 3 obj-$(CONFIG_PHY_RTK_RTD_USB3PHY) += phy-rtk-usb3.o
|
/linux/drivers/nvme/host/ |
H A D | apple.c | 180 struct apple_rtkit *rtk; member 805 if (apple_rtkit_is_crashed(anv->rtk)) in apple_nvme_disable() 913 if (!apple_rtkit_is_crashed(anv->rtk) && !(csts & NVME_CSTS_CFS)) { in apple_nvme_timeout() 998 if (apple_rtkit_is_crashed(anv->rtk)) { in apple_nvme_reset_work() 1006 if (apple_rtkit_is_running(anv->rtk)) { in apple_nvme_reset_work() 1011 ret = apple_rtkit_shutdown(anv->rtk); in apple_nvme_reset_work() 1022 ret = apple_rtkit_reinit(anv->rtk); in apple_nvme_reset_work() 1032 ret = apple_rtkit_boot(anv->rtk); in apple_nvme_reset_work() 1504 anv->rtk = in apple_nvme_alloc() 1506 if (IS_ERR(anv->rtk)) { in apple_nvme_alloc() [all …]
|
/linux/security/selinux/ss/ |
H A D | policydb.c | 2445 struct role_trans_key *rtk = NULL; in policydb_read() local 2621 rtk = kmalloc(sizeof(*rtk), GFP_KERNEL); in policydb_read() 2622 if (!rtk) in policydb_read() 2634 rtk->role = le32_to_cpu(buf[0]); in policydb_read() 2635 rtk->type = le32_to_cpu(buf[1]); in policydb_read() 2641 rtk->tclass = le32_to_cpu(buf[0]); in policydb_read() 2643 rtk->tclass = p->process_class; in policydb_read() 2646 if (!policydb_role_isvalid(p, rtk->role) || in policydb_read() 2647 !policydb_type_isvalid(p, rtk->type) || in policydb_read() 2648 !policydb_class_isvalid(p, rtk->tclass) || in policydb_read() [all …]
|
H A D | services.c | 1856 struct role_trans_key rtk = { in security_compute_sid() local 1862 rtd = policydb_roletr_search(policydb, &rtk); in security_compute_sid()
|
/linux/drivers/extcon/ |
H A D | Makefile | 29 obj-$(CONFIG_EXTCON_RTK_TYPE_C) += extcon-rtk-type-c.o
|