Lines Matching refs:fc_regs

1089  * @fc_regs:	Top of MMIO region defined for specified port.
1095 static void set_port_online(__be64 __iomem *fc_regs)
1099 cmdcfg = readq_be(&fc_regs[FC_MTIP_CMDCONFIG / 8]);
1102 writeq_be(cmdcfg, &fc_regs[FC_MTIP_CMDCONFIG / 8]);
1107 * @fc_regs: Top of MMIO region defined for specified port.
1111 static void set_port_offline(__be64 __iomem *fc_regs)
1115 cmdcfg = readq_be(&fc_regs[FC_MTIP_CMDCONFIG / 8]);
1118 writeq_be(cmdcfg, &fc_regs[FC_MTIP_CMDCONFIG / 8]);
1123 * @fc_regs: Top of MMIO region defined for specified port.
1134 static bool wait_port_online(__be64 __iomem *fc_regs, u32 delay_us, u32 nretry)
1142 status = readq_be(&fc_regs[FC_MTIP_STATUS / 8]);
1153 * @fc_regs: Top of MMIO region defined for specified port.
1163 static bool wait_port_offline(__be64 __iomem *fc_regs, u32 delay_us, u32 nretry)
1171 status = readq_be(&fc_regs[FC_MTIP_STATUS / 8]);
1184 * @fc_regs: Top of MMIO region defined for specified port.
1193 static void afu_set_wwpn(struct afu *afu, int port, __be64 __iomem *fc_regs,
1199 set_port_offline(fc_regs);
1200 if (!wait_port_offline(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US,
1206 writeq_be(wwpn, &fc_regs[FC_PNAME / 8]);
1208 set_port_online(fc_regs);
1209 if (!wait_port_online(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US,
1220 * @fc_regs: Top of MMIO region defined for specified port.
1229 static void afu_link_reset(struct afu *afu, int port, __be64 __iomem *fc_regs)
1241 set_port_offline(fc_regs);
1242 if (!wait_port_offline(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US,
1247 set_port_online(fc_regs);
1248 if (!wait_port_online(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US,