Home
last modified time | relevance | path

Searched refs:mbox_ctrl (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/soc/apple/
H A Dmailbox.c107 u32 mbox_ctrl; in apple_mbox_send() local
111 mbox_ctrl = readl_relaxed(mbox->regs + mbox->hw->a2i_control); in apple_mbox_send()
113 while (mbox_ctrl & mbox->hw->control_full) { in apple_mbox_send()
116 mbox->regs + mbox->hw->a2i_control, mbox_ctrl, in apple_mbox_send()
117 !(mbox_ctrl & mbox->hw->control_full), 100, in apple_mbox_send()
153 mbox_ctrl = readl_relaxed(mbox->regs + mbox->hw->a2i_control); in apple_mbox_send()
190 u32 mbox_ctrl = readl_relaxed(mbox->regs + mbox->hw->i2a_control); in apple_mbox_poll_locked() local
192 while (!(mbox_ctrl & mbox->hw->control_empty)) { in apple_mbox_poll_locked()
200 mbox_ctrl = readl_relaxed(mbox->regs + mbox->hw->i2a_control); in apple_mbox_poll_locked()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_mbox.c704 u32 mbox_int, mbox_ctrl; in write_mbox_msg_attr() local
720 mbox_ctrl = HINIC_MBOX_CTRL_SET(TX_NOT_DONE, TX_STATUS); in write_mbox_msg_attr()
723 mbox_ctrl |= HINIC_MBOX_CTRL_SET(NOT_TRIGGER, TRIGGER_AEQE); in write_mbox_msg_attr()
725 mbox_ctrl |= HINIC_MBOX_CTRL_SET(TRIGGER, TRIGGER_AEQE); in write_mbox_msg_attr()
728 HINIC_FUNC_CSR_MAILBOX_CONTROL_OFF, mbox_ctrl); in write_mbox_msg_attr()