Lines Matching refs:persist

248 		mlx4_enter_error_state(dev->persist);
273 mutex_lock(&dev->persist->device_state_mutex);
275 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) {
276 mutex_unlock(&dev->persist->device_state_mutex);
284 mutex_unlock(&dev->persist->device_state_mutex);
332 mlx4_enter_error_state(dev->persist);
387 if (!(dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)) {
396 mlx4_enter_error_state(dev->persist);
410 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)
422 if (pci_channel_offline(dev->persist->pdev))
441 mutex_lock(&dev->persist->device_state_mutex);
447 if (pci_channel_offline(dev->persist->pdev) ||
448 (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)) {
461 if (pci_channel_offline(dev->persist->pdev)) {
506 mutex_unlock(&dev->persist->device_state_mutex);
545 dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)
563 if (dev->persist->state &
588 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) {
611 if (pci_channel_offline(dev->persist->pdev)) {
620 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) {
750 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)
778 if (pci_channel_offline(dev->persist->pdev))
784 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)
1688 if (!(dev->persist->state &
1734 if (!(dev->persist->state &
1785 if (!(dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)) {
1810 if (!(dev->persist->state &
2196 if (dev->persist->interface_state & MLX4_INTERFACE_STATE_UP)
2246 nmbr_bits = dev->persist->num_vfs + 1;
2311 if (dev->persist->interface_state &
2354 ioremap(pci_resource_start(dev->persist->pdev,
2359 ioremap(pci_resource_start(dev->persist->pdev, 2) +
2488 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE,
2511 priv->cmd.hcr = ioremap(pci_resource_start(dev->persist->pdev,
2521 priv->mfunc.vhcr = dma_alloc_coherent(&dev->persist->pdev->dev,
2533 &dev->persist->pdev->dev,
2610 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE,
2729 if ((vf < 0) || (vf >= dev->persist->num_vfs)) {
2731 vf, dev->persist->num_vfs);
2740 if (slave < 1 || slave > dev->persist->num_vfs) {
2831 for (i = 0; i < dev->persist->num_vfs + 1; i++) {
2851 for (i = 0; i < dev->persist->num_vfs + 1; i++) {