Lines Matching refs:em_ctl

311 	u32 em_ctl, msg;  in ahci_read_em_buffer()  local
319 em_ctl = readl(mmio + HOST_EM_CTL); in ahci_read_em_buffer()
320 if (!(ap->flags & ATA_FLAG_EM) || em_ctl & EM_CTL_XMT || in ahci_read_em_buffer()
327 if (!(em_ctl & EM_CTL_MR)) { in ahci_read_em_buffer()
333 if (!(em_ctl & EM_CTL_SMB)) in ahci_read_em_buffer()
372 u32 em_ctl, msg; in ahci_store_em_buffer() local
385 em_ctl = readl(mmio + HOST_EM_CTL); in ahci_store_em_buffer()
386 if (em_ctl & EM_CTL_TM) { in ahci_store_em_buffer()
398 writel(em_ctl | EM_CTL_TM, mmio + HOST_EM_CTL); in ahci_store_em_buffer()
413 u32 em_ctl; in ahci_show_em_supported() local
416 em_ctl = readl(mmio + HOST_EM_CTL); in ahci_show_em_supported()
420 em_ctl & EM_CTL_LED ? "led " : "", in ahci_show_em_supported()
421 em_ctl & EM_CTL_SAFTE ? "saf-te " : "", in ahci_show_em_supported()
422 em_ctl & EM_CTL_SES ? "ses-2 " : "", in ahci_show_em_supported()
423 em_ctl & EM_CTL_SGPIO ? "sgpio " : ""); in ahci_show_em_supported()
1097 u32 em_ctl; in ahci_reset_em() local
1099 em_ctl = readl(mmio + HOST_EM_CTL); in ahci_reset_em()
1100 if ((em_ctl & EM_CTL_TM) || (em_ctl & EM_CTL_RST)) in ahci_reset_em()
1103 writel(em_ctl | EM_CTL_RST, mmio + HOST_EM_CTL); in ahci_reset_em()
1114 u32 em_ctl; in ahci_transmit_led_message() local
1134 em_ctl = readl(mmio + HOST_EM_CTL); in ahci_transmit_led_message()
1135 if (em_ctl & EM_CTL_TM) { in ahci_transmit_led_message()
1158 writel(em_ctl | EM_CTL_TM, mmio + HOST_EM_CTL); in ahci_transmit_led_message()
2568 u32 em_ctl = readl(mmio + HOST_EM_CTL); in ahci_set_em_messages() local
2573 messages = (em_ctl & EM_CTRL_MSG_TYPE) >> 16; in ahci_set_em_messages()
2581 if (!(em_ctl & EM_CTL_ALHD)) in ahci_set_em_messages()