Lines Matching refs:persist

248 		mlx4_enter_error_state(dev->persist);  in mlx4_cmd_reset_flow()
273 mutex_lock(&dev->persist->device_state_mutex); in mlx4_comm_cmd_post()
275 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_comm_cmd_post()
276 mutex_unlock(&dev->persist->device_state_mutex); in mlx4_comm_cmd_post()
284 mutex_unlock(&dev->persist->device_state_mutex); in mlx4_comm_cmd_post()
332 mlx4_enter_error_state(dev->persist); in mlx4_comm_cmd_poll()
387 if (!(dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)) { in mlx4_comm_cmd_wait()
396 mlx4_enter_error_state(dev->persist); in mlx4_comm_cmd_wait()
410 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) in mlx4_comm_cmd()
422 if (pci_channel_offline(dev->persist->pdev)) in cmd_pending()
441 mutex_lock(&dev->persist->device_state_mutex); in mlx4_cmd_post()
447 if (pci_channel_offline(dev->persist->pdev) || in mlx4_cmd_post()
448 (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)) { in mlx4_cmd_post()
461 if (pci_channel_offline(dev->persist->pdev)) { in mlx4_cmd_post()
506 mutex_unlock(&dev->persist->device_state_mutex); in mlx4_cmd_post()
545 dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) in mlx4_slave_cmd()
563 if (dev->persist->state & in mlx4_slave_cmd()
588 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_cmd_poll()
611 if (pci_channel_offline(dev->persist->pdev)) { in mlx4_cmd_poll()
620 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_cmd_poll()
750 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) in mlx4_cmd_wait()
778 if (pci_channel_offline(dev->persist->pdev)) in __mlx4_cmd()
784 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) in __mlx4_cmd()
1688 if (!(dev->persist->state & in mlx4_master_process_vhcr()
1734 if (!(dev->persist->state & in mlx4_master_process_vhcr()
1785 if (!(dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)) { in mlx4_master_process_vhcr()
1810 if (!(dev->persist->state & in mlx4_master_process_vhcr()
2196 if (dev->persist->interface_state & MLX4_INTERFACE_STATE_UP) in mlx4_master_do_cmd()
2245 nmbr_bits = dev->persist->num_vfs + 1; in mlx4_master_comm_channel()
2310 if (dev->persist->interface_state & in sync_toggles()
2353 ioremap(pci_resource_start(dev->persist->pdev, in mlx4_multi_func_init()
2358 ioremap(pci_resource_start(dev->persist->pdev, 2) + in mlx4_multi_func_init()
2487 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, in mlx4_multi_func_init()
2510 priv->cmd.hcr = ioremap(pci_resource_start(dev->persist->pdev, in mlx4_cmd_init()
2520 priv->mfunc.vhcr = dma_alloc_coherent(&dev->persist->pdev->dev, in mlx4_cmd_init()
2532 &dev->persist->pdev->dev, in mlx4_cmd_init()
2609 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, in mlx4_cmd_cleanup()
2728 if ((vf < 0) || (vf >= dev->persist->num_vfs)) { in mlx4_get_slave_indx()
2730 vf, dev->persist->num_vfs); in mlx4_get_slave_indx()
2739 if (slave < 1 || slave > dev->persist->num_vfs) { in mlx4_get_vf_indx()
2830 for (i = 0; i < dev->persist->num_vfs + 1; i++) { in mlx4_phys_to_slaves_pport()
2850 for (i = 0; i < dev->persist->num_vfs + 1; i++) { in mlx4_phys_to_slaves_pport_actv()