Lines Matching refs:hcr
425 status = readl(mlx4_priv(dev)->cmd.hcr + HCR_STATUS_OFFSET); in cmd_pending()
437 u32 __iomem *hcr = cmd->hcr; in mlx4_cmd_post() local
482 __raw_writel((__force u32) cpu_to_be32(in_param >> 32), hcr + 0); in mlx4_cmd_post()
483 __raw_writel((__force u32) cpu_to_be32(in_param & 0xfffffffful), hcr + 1); in mlx4_cmd_post()
484 __raw_writel((__force u32) cpu_to_be32(in_modifier), hcr + 2); in mlx4_cmd_post()
485 __raw_writel((__force u32) cpu_to_be32(out_param >> 32), hcr + 3); in mlx4_cmd_post()
486 __raw_writel((__force u32) cpu_to_be32(out_param & 0xfffffffful), hcr + 4); in mlx4_cmd_post()
487 __raw_writel((__force u32) cpu_to_be32(token << 16), hcr + 5); in mlx4_cmd_post()
496 op), hcr + 6); in mlx4_cmd_post()
581 void __iomem *hcr = priv->cmd.hcr; in mlx4_cmd_poll() local
638 __raw_readl(hcr + HCR_OUT_PARAM_OFFSET)) << 32 | in mlx4_cmd_poll()
640 __raw_readl(hcr + HCR_OUT_PARAM_OFFSET + 4)); in mlx4_cmd_poll()
642 __raw_readl(hcr + HCR_STATUS_OFFSET)) >> 24; in mlx4_cmd_poll()
2510 if (!mlx4_is_slave(dev) && !priv->cmd.hcr) { in mlx4_cmd_init()
2511 priv->cmd.hcr = ioremap(pci_resource_start(dev->persist->pdev, in mlx4_cmd_init()
2513 if (!priv->cmd.hcr) { in mlx4_cmd_init()
2603 if (!mlx4_is_slave(dev) && priv->cmd.hcr && in mlx4_cmd_cleanup()
2605 iounmap(priv->cmd.hcr); in mlx4_cmd_cleanup()
2606 priv->cmd.hcr = NULL; in mlx4_cmd_cleanup()