Lines Matching defs:fc_regs
1084 * @fc_regs: Top of MMIO region defined for specified port.
1090 static void set_port_online(__be64 __iomem *fc_regs)
1094 cmdcfg = readq_be(&fc_regs[FC_MTIP_CMDCONFIG / 8]);
1097 writeq_be(cmdcfg, &fc_regs[FC_MTIP_CMDCONFIG / 8]);
1102 * @fc_regs: Top of MMIO region defined for specified port.
1106 static void set_port_offline(__be64 __iomem *fc_regs)
1110 cmdcfg = readq_be(&fc_regs[FC_MTIP_CMDCONFIG / 8]);
1113 writeq_be(cmdcfg, &fc_regs[FC_MTIP_CMDCONFIG / 8]);
1118 * @fc_regs: Top of MMIO region defined for specified port.
1129 static bool wait_port_online(__be64 __iomem *fc_regs, u32 delay_us, u32 nretry)
1137 status = readq_be(&fc_regs[FC_MTIP_STATUS / 8]);
1148 * @fc_regs: Top of MMIO region defined for specified port.
1158 static bool wait_port_offline(__be64 __iomem *fc_regs, u32 delay_us, u32 nretry)
1166 status = readq_be(&fc_regs[FC_MTIP_STATUS / 8]);
1179 * @fc_regs: Top of MMIO region defined for specified port.
1188 static void afu_set_wwpn(struct afu *afu, int port, __be64 __iomem *fc_regs,
1194 set_port_offline(fc_regs);
1195 if (!wait_port_offline(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US,
1201 writeq_be(wwpn, &fc_regs[FC_PNAME / 8]);
1203 set_port_online(fc_regs);
1204 if (!wait_port_online(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US,
1215 * @fc_regs: Top of MMIO region defined for specified port.
1224 static void afu_link_reset(struct afu *afu, int port, __be64 __iomem *fc_regs)
1236 set_port_offline(fc_regs);
1237 if (!wait_port_offline(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US,
1242 set_port_online(fc_regs);
1243 if (!wait_port_online(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US,