Lines Matching refs:persist

247 		mlx4_enter_error_state(dev->persist);
272 mutex_lock(&dev->persist->device_state_mutex);
274 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) {
275 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)) {
512 mutex_unlock(&dev->persist->device_state_mutex);
551 dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)
569 if (dev->persist->state &
594 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) {
617 if (pci_channel_offline(dev->persist->pdev)) {
626 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) {
756 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)
784 if (pci_channel_offline(dev->persist->pdev))
790 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)
1702 if (!(dev->persist->state &
1748 if (!(dev->persist->state &
1799 if (!(dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR))
1816 if (!(dev->persist->state &
2209 if (dev->persist->interface_state & MLX4_INTERFACE_STATE_UP)
2346 ioremap(pci_resource_start(dev->persist->pdev,
2351 ioremap(pci_resource_start(dev->persist->pdev, 2) +
2477 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE,
2501 priv->cmd.hcr = ioremap(pci_resource_start(dev->persist->pdev,
2511 priv->mfunc.vhcr = dma_alloc_coherent(&dev->persist->pdev->dev,
2523 dev->persist->pdev,
2605 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE,
2724 if ((vf < 0) || (vf >= dev->persist->num_vfs)) {
2726 vf, dev->persist->num_vfs);
2735 if (slave < 1 || slave > dev->persist->num_vfs) {
2826 for (i = 0; i < dev->persist->num_vfs + 1; i++) {
2846 for (i = 0; i < dev->persist->num_vfs + 1; i++) {