persist 26 drivers/atm/atmtcp.c int persist; /* non-zero if persistent */ persist 240 drivers/atm/atmtcp.c if (!dev_data->persist) return sprintf(page,"ephemeral\n"); persist 254 drivers/atm/atmtcp.c if (dev_data->persist) return; persist 360 drivers/atm/atmtcp.c static int atmtcp_create(int itf,int persist,struct atm_dev **result) persist 378 drivers/atm/atmtcp.c PRIV(dev)->persist = persist; persist 436 drivers/atm/atmtcp.c if (!dev_data->persist) return 0; persist 437 drivers/atm/atmtcp.c dev_data->persist = 0; persist 218 drivers/infiniband/hw/mlx4/alias_GUID.c if (slave_id >= dev->dev->persist->num_vfs + 1) persist 592 drivers/infiniband/hw/mlx4/alias_GUID.c if (!entry || entry > dev->dev->persist->num_vfs || persist 890 drivers/infiniband/hw/mlx4/cq.c if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { persist 2171 drivers/infiniband/hw/mlx4/mad.c (u16)(dev->dev->persist->num_vfs + 1)); persist 524 drivers/infiniband/hw/mlx4/main.c props->vendor_part_id = dev->dev->persist->pdev->device; persist 1182 drivers/infiniband/hw/mlx4/main.c (pci_resource_start(dev->dev->persist->pdev, persist 2040 drivers/infiniband/hw/mlx4/main.c return sprintf(buf, "MT%d\n", dev->dev->persist->pdev->device); persist 2408 drivers/infiniband/hw/mlx4/main.c for (slave = 0; slave <= ibdev->dev->persist->num_vfs; persist 2643 drivers/infiniband/hw/mlx4/main.c dev_err(&dev->persist->pdev->dev, persist 2671 drivers/infiniband/hw/mlx4/main.c ibdev->ib_dev.dev.parent = &dev->persist->pdev->dev; persist 3573 drivers/infiniband/hw/mlx4/qp.c if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR && persist 3871 drivers/infiniband/hw/mlx4/qp.c if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR && persist 4440 drivers/infiniband/hw/mlx4/qp.c if (mdev->persist->state == MLX4_DEVICE_STATE_INTERNAL_ERROR) { persist 4495 drivers/infiniband/hw/mlx4/qp.c if (ret && mdev->persist->state != MLX4_DEVICE_STATE_INTERNAL_ERROR) { persist 4524 drivers/infiniband/hw/mlx4/qp.c if (ret && mdev->persist->state != MLX4_DEVICE_STATE_INTERNAL_ERROR) { persist 313 drivers/infiniband/hw/mlx4/srq.c if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { persist 360 drivers/infiniband/hw/mlx4/sysfs.c snprintf(name, max, "%.8s%.2d.%d", pci_name(dev->dev->persist->pdev), persist 775 drivers/infiniband/hw/mlx4/sysfs.c for (i = 0; i <= device->dev->persist->num_vfs; ++i) persist 790 drivers/infiniband/hw/mlx4/sysfs.c for (slave = device->dev->persist->num_vfs; slave >= 0; --slave) { persist 1815 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int idx, const u8 *addr, bool persist, u8 *smt_idx); persist 459 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c int *tcam_idx, const u8 *addr, bool persist, persist 467 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c *tcam_idx, addr, persist, smt_idx); persist 8131 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int idx, const u8 *addr, bool persist, u8 *smt_idx) persist 8139 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c idx = persist ? FW_VI_MAC_ADD_PERSIST_MAC : FW_VI_MAC_ADD_MAC; persist 1691 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c int idx, const u8 *addr, bool persist) persist 1705 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c idx = persist ? FW_VI_MAC_ADD_PERSIST_MAC : FW_VI_MAC_ADD_MAC; persist 3704 drivers/net/ethernet/intel/i40e/i40e_common.c bool persist, persist 3717 drivers/net/ethernet/intel/i40e/i40e_common.c if (persist) { persist 3740 drivers/net/ethernet/intel/i40e/i40e_common.c i40e_status i40e_aq_start_lldp(struct i40e_hw *hw, bool persist, persist 3752 drivers/net/ethernet/intel/i40e/i40e_common.c if (persist) { persist 210 drivers/net/ethernet/intel/i40e/i40e_prototype.h bool persist, persist 216 drivers/net/ethernet/intel/i40e/i40e_prototype.h i40e_status i40e_aq_start_lldp(struct i40e_hw *hw, bool persist, persist 92 drivers/net/ethernet/intel/ice/ice_dcb.c ice_aq_stop_lldp(struct ice_hw *hw, bool shutdown_lldp_agent, bool persist, persist 105 drivers/net/ethernet/intel/ice/ice_dcb.c if (persist) persist 120 drivers/net/ethernet/intel/ice/ice_dcb.c ice_aq_start_lldp(struct ice_hw *hw, bool persist, struct ice_sq_cd *cd) persist 131 drivers/net/ethernet/intel/ice/ice_dcb.c if (persist) persist 135 drivers/net/ethernet/intel/ice/ice_dcb.h ice_aq_stop_lldp(struct ice_hw *hw, bool shutdown_lldp_agent, bool persist, persist 138 drivers/net/ethernet/intel/ice/ice_dcb.h ice_aq_start_lldp(struct ice_hw *hw, bool persist, struct ice_sq_cd *cd); persist 147 drivers/net/ethernet/intel/ice/ice_dcb.h bool __always_unused persist, persist 155 drivers/net/ethernet/intel/ice/ice_dcb.h bool __always_unused persist, persist 586 drivers/net/ethernet/mellanox/mlx4/alloc.c dma_alloc_coherent(&dev->persist->pdev->dev, size, &t, persist 626 drivers/net/ethernet/mellanox/mlx4/alloc.c dma_alloc_coherent(&dev->persist->pdev->dev, persist 647 drivers/net/ethernet/mellanox/mlx4/alloc.c dma_free_coherent(&dev->persist->pdev->dev, size, persist 654 drivers/net/ethernet/mellanox/mlx4/alloc.c dma_free_coherent(&dev->persist->pdev->dev, persist 727 drivers/net/ethernet/mellanox/mlx4/alloc.c pgdir = mlx4_alloc_db_pgdir(&dev->persist->pdev->dev); persist 764 drivers/net/ethernet/mellanox/mlx4/alloc.c dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, persist 55 drivers/net/ethernet/mellanox/mlx4/catas.c ret = pci_read_config_word(dev->persist->pdev, 0, &vendor_id); persist 76 drivers/net/ethernet/mellanox/mlx4/catas.c if (!pci_channel_offline(dev->persist->pdev)) { persist 103 drivers/net/ethernet/mellanox/mlx4/catas.c if (pci_channel_offline(dev->persist->pdev)) persist 163 drivers/net/ethernet/mellanox/mlx4/catas.c void mlx4_enter_error_state(struct mlx4_dev_persistent *persist) persist 171 drivers/net/ethernet/mellanox/mlx4/catas.c mutex_lock(&persist->device_state_mutex); persist 172 drivers/net/ethernet/mellanox/mlx4/catas.c if (persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) persist 175 drivers/net/ethernet/mellanox/mlx4/catas.c dev = persist->dev; persist 190 drivers/net/ethernet/mellanox/mlx4/catas.c if (!pci_channel_offline(dev->persist->pdev)) persist 193 drivers/net/ethernet/mellanox/mlx4/catas.c dev->persist->state |= MLX4_DEVICE_STATE_INTERNAL_ERROR; persist 194 drivers/net/ethernet/mellanox/mlx4/catas.c mutex_unlock(&persist->device_state_mutex); persist 202 drivers/net/ethernet/mellanox/mlx4/catas.c mutex_unlock(&persist->device_state_mutex); persist 205 drivers/net/ethernet/mellanox/mlx4/catas.c static void mlx4_handle_error_state(struct mlx4_dev_persistent *persist) persist 209 drivers/net/ethernet/mellanox/mlx4/catas.c mlx4_enter_error_state(persist); persist 210 drivers/net/ethernet/mellanox/mlx4/catas.c mutex_lock(&persist->interface_state_mutex); persist 211 drivers/net/ethernet/mellanox/mlx4/catas.c if (persist->interface_state & MLX4_INTERFACE_STATE_UP && persist 212 drivers/net/ethernet/mellanox/mlx4/catas.c !(persist->interface_state & MLX4_INTERFACE_STATE_DELETION)) { persist 213 drivers/net/ethernet/mellanox/mlx4/catas.c err = mlx4_restart_one(persist->pdev); persist 214 drivers/net/ethernet/mellanox/mlx4/catas.c mlx4_info(persist->dev, "mlx4_restart_one was ended, ret=%d\n", persist 217 drivers/net/ethernet/mellanox/mlx4/catas.c mutex_unlock(&persist->interface_state_mutex); persist 249 drivers/net/ethernet/mellanox/mlx4/catas.c if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { persist 260 drivers/net/ethernet/mellanox/mlx4/catas.c queue_work(dev->persist->catas_wq, &dev->persist->catas_work); persist 265 drivers/net/ethernet/mellanox/mlx4/catas.c struct mlx4_dev_persistent *persist = persist 269 drivers/net/ethernet/mellanox/mlx4/catas.c mlx4_handle_error_state(persist); persist 282 drivers/net/ethernet/mellanox/mlx4/catas.c addr = pci_resource_start(dev->persist->pdev, persist 310 drivers/net/ethernet/mellanox/mlx4/catas.c if (dev->persist->interface_state & MLX4_INTERFACE_STATE_DELETION) persist 311 drivers/net/ethernet/mellanox/mlx4/catas.c flush_workqueue(dev->persist->catas_wq); persist 316 drivers/net/ethernet/mellanox/mlx4/catas.c INIT_WORK(&dev->persist->catas_work, catas_reset); persist 317 drivers/net/ethernet/mellanox/mlx4/catas.c dev->persist->catas_wq = create_singlethread_workqueue("mlx4_health"); persist 318 drivers/net/ethernet/mellanox/mlx4/catas.c if (!dev->persist->catas_wq) persist 326 drivers/net/ethernet/mellanox/mlx4/catas.c if (dev->persist->catas_wq) { persist 327 drivers/net/ethernet/mellanox/mlx4/catas.c destroy_workqueue(dev->persist->catas_wq); persist 328 drivers/net/ethernet/mellanox/mlx4/catas.c dev->persist->catas_wq = NULL; persist 248 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_enter_error_state(dev->persist); persist 273 drivers/net/ethernet/mellanox/mlx4/cmd.c mutex_lock(&dev->persist->device_state_mutex); persist 275 drivers/net/ethernet/mellanox/mlx4/cmd.c if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { persist 276 drivers/net/ethernet/mellanox/mlx4/cmd.c mutex_unlock(&dev->persist->device_state_mutex); persist 284 drivers/net/ethernet/mellanox/mlx4/cmd.c mutex_unlock(&dev->persist->device_state_mutex); persist 332 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_enter_error_state(dev->persist); persist 387 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!(dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)) { persist 396 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_enter_error_state(dev->persist); persist 410 drivers/net/ethernet/mellanox/mlx4/cmd.c if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) persist 422 drivers/net/ethernet/mellanox/mlx4/cmd.c if (pci_channel_offline(dev->persist->pdev)) persist 441 drivers/net/ethernet/mellanox/mlx4/cmd.c mutex_lock(&dev->persist->device_state_mutex); persist 447 drivers/net/ethernet/mellanox/mlx4/cmd.c if (pci_channel_offline(dev->persist->pdev) || persist 448 drivers/net/ethernet/mellanox/mlx4/cmd.c (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)) { persist 461 drivers/net/ethernet/mellanox/mlx4/cmd.c if (pci_channel_offline(dev->persist->pdev)) { persist 506 drivers/net/ethernet/mellanox/mlx4/cmd.c mutex_unlock(&dev->persist->device_state_mutex); persist 545 drivers/net/ethernet/mellanox/mlx4/cmd.c dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) persist 563 drivers/net/ethernet/mellanox/mlx4/cmd.c if (dev->persist->state & persist 588 drivers/net/ethernet/mellanox/mlx4/cmd.c if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { persist 611 drivers/net/ethernet/mellanox/mlx4/cmd.c if (pci_channel_offline(dev->persist->pdev)) { persist 620 drivers/net/ethernet/mellanox/mlx4/cmd.c if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { persist 750 drivers/net/ethernet/mellanox/mlx4/cmd.c if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) persist 778 drivers/net/ethernet/mellanox/mlx4/cmd.c if (pci_channel_offline(dev->persist->pdev)) persist 784 drivers/net/ethernet/mellanox/mlx4/cmd.c if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) persist 1688 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!(dev->persist->state & persist 1734 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!(dev->persist->state & persist 1785 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!(dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)) { persist 1810 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!(dev->persist->state & persist 2207 drivers/net/ethernet/mellanox/mlx4/cmd.c if (dev->persist->interface_state & MLX4_INTERFACE_STATE_UP) persist 2312 drivers/net/ethernet/mellanox/mlx4/cmd.c if (dev->persist->interface_state & persist 2355 drivers/net/ethernet/mellanox/mlx4/cmd.c ioremap(pci_resource_start(dev->persist->pdev, persist 2360 drivers/net/ethernet/mellanox/mlx4/cmd.c ioremap(pci_resource_start(dev->persist->pdev, 2) + persist 2488 drivers/net/ethernet/mellanox/mlx4/cmd.c dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, persist 2511 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->cmd.hcr = ioremap(pci_resource_start(dev->persist->pdev, persist 2521 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->mfunc.vhcr = dma_alloc_coherent(&dev->persist->pdev->dev, persist 2533 drivers/net/ethernet/mellanox/mlx4/cmd.c &dev->persist->pdev->dev, persist 2611 drivers/net/ethernet/mellanox/mlx4/cmd.c dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, persist 2730 drivers/net/ethernet/mellanox/mlx4/cmd.c if ((vf < 0) || (vf >= dev->persist->num_vfs)) { persist 2732 drivers/net/ethernet/mellanox/mlx4/cmd.c vf, dev->persist->num_vfs); persist 2741 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 1 || slave > dev->persist->num_vfs) { persist 2832 drivers/net/ethernet/mellanox/mlx4/cmd.c for (i = 0; i < dev->persist->num_vfs + 1; i++) { persist 2852 drivers/net/ethernet/mellanox/mlx4/cmd.c for (i = 0; i < dev->persist->num_vfs + 1; i++) { persist 81 drivers/net/ethernet/mellanox/mlx4/crdump.c struct mlx4_fw_crdump *crdump = &dev->persist->crdump; persist 82 drivers/net/ethernet/mellanox/mlx4/crdump.c struct pci_dev *pdev = dev->persist->pdev; persist 120 drivers/net/ethernet/mellanox/mlx4/crdump.c struct mlx4_fw_crdump *crdump = &dev->persist->crdump; persist 158 drivers/net/ethernet/mellanox/mlx4/crdump.c struct mlx4_fw_crdump *crdump = &dev->persist->crdump; persist 159 drivers/net/ethernet/mellanox/mlx4/crdump.c struct pci_dev *pdev = dev->persist->pdev; persist 200 drivers/net/ethernet/mellanox/mlx4/crdump.c struct mlx4_fw_crdump *crdump = &dev->persist->crdump; persist 201 drivers/net/ethernet/mellanox/mlx4/crdump.c struct pci_dev *pdev = dev->persist->pdev; persist 232 drivers/net/ethernet/mellanox/mlx4/crdump.c struct mlx4_fw_crdump *crdump = &dev->persist->crdump; persist 71 drivers/net/ethernet/mellanox/mlx4/en_cq.c set_dev_node(&mdev->dev->persist->pdev->dev, node); persist 74 drivers/net/ethernet/mellanox/mlx4/en_cq.c set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); persist 99 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c strlcpy(drvinfo->bus_info, pci_name(mdev->dev->persist->pdev), persist 295 drivers/net/ethernet/mellanox/mlx4/en_main.c mdev->dma_device = &dev->persist->pdev->dev; persist 296 drivers/net/ethernet/mellanox/mlx4/en_main.c mdev->pdev = dev->persist->pdev; persist 3254 drivers/net/ethernet/mellanox/mlx4/en_netdev.c SET_NETDEV_DEV(dev, &mdev->dev->persist->pdev->dev); persist 301 drivers/net/ethernet/mellanox/mlx4/en_rx.c set_dev_node(&mdev->dev->persist->pdev->dev, node); persist 303 drivers/net/ethernet/mellanox/mlx4/en_rx.c set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); persist 91 drivers/net/ethernet/mellanox/mlx4/en_tx.c set_dev_node(&mdev->dev->persist->pdev->dev, node); persist 93 drivers/net/ethernet/mellanox/mlx4/en_tx.c set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); persist 167 drivers/net/ethernet/mellanox/mlx4/eq.c for (i = 0; i <= dev->persist->num_vfs; i++) { persist 228 drivers/net/ethernet/mellanox/mlx4/eq.c if (slave < 0 || slave > dev->persist->num_vfs || persist 278 drivers/net/ethernet/mellanox/mlx4/eq.c if (dev->persist->num_vfs < slave) persist 297 drivers/net/ethernet/mellanox/mlx4/eq.c if (dev->persist->num_vfs < slave) persist 352 drivers/net/ethernet/mellanox/mlx4/eq.c for (i = 0; i < dev->persist->num_vfs + 1; i++) persist 476 drivers/net/ethernet/mellanox/mlx4/eq.c if (dev->persist->interface_state & persist 614 drivers/net/ethernet/mellanox/mlx4/eq.c for (i = 0; i < dev->persist->num_vfs + 1; persist 658 drivers/net/ethernet/mellanox/mlx4/eq.c i < dev->persist->num_vfs + 1; persist 944 drivers/net/ethernet/mellanox/mlx4/eq.c pci_resource_start(dev->persist->pdev, 2) + persist 1007 drivers/net/ethernet/mellanox/mlx4/eq.c eq->page_list[i].buf = dma_alloc_coherent(&dev->persist-> persist 1074 drivers/net/ethernet/mellanox/mlx4/eq.c dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, persist 1108 drivers/net/ethernet/mellanox/mlx4/eq.c dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, persist 1122 drivers/net/ethernet/mellanox/mlx4/eq.c free_irq(dev->persist->pdev->irq, dev); persist 1141 drivers/net/ethernet/mellanox/mlx4/eq.c priv->clr_base = ioremap(pci_resource_start(dev->persist->pdev, persist 1270 drivers/net/ethernet/mellanox/mlx4/eq.c pci_name(dev->persist->pdev)); persist 1285 drivers/net/ethernet/mellanox/mlx4/eq.c pci_name(dev->persist->pdev)); persist 1286 drivers/net/ethernet/mellanox/mlx4/eq.c err = request_irq(dev->persist->pdev->irq, mlx4_interrupt, persist 1510 drivers/net/ethernet/mellanox/mlx4/eq.c *prequested_vector, dev_name(&dev->persist->pdev->dev)); persist 60 drivers/net/ethernet/mellanox/mlx4/icm.c dma_unmap_sg(&dev->persist->pdev->dev, chunk->sg, chunk->npages, persist 73 drivers/net/ethernet/mellanox/mlx4/icm.c dma_free_coherent(&dev->persist->pdev->dev, persist 187 drivers/net/ethernet/mellanox/mlx4/icm.c ret = mlx4_alloc_icm_coherent(&dev->persist->pdev->dev, persist 207 drivers/net/ethernet/mellanox/mlx4/icm.c chunk->nsg = dma_map_sg(&dev->persist->pdev->dev, persist 222 drivers/net/ethernet/mellanox/mlx4/icm.c chunk->nsg = dma_map_sg(&dev->persist->pdev->dev, chunk->sg, persist 205 drivers/net/ethernet/mellanox/mlx4/intf.c dev->persist->interface_state |= MLX4_INTERFACE_STATE_UP; persist 221 drivers/net/ethernet/mellanox/mlx4/intf.c if (!(dev->persist->interface_state & MLX4_INTERFACE_STATE_UP)) persist 225 drivers/net/ethernet/mellanox/mlx4/intf.c if (dev->persist->interface_state & MLX4_INTERFACE_STATE_DELETION && persist 234 drivers/net/ethernet/mellanox/mlx4/intf.c mlx4_enter_error_state(dev->persist); persist 243 drivers/net/ethernet/mellanox/mlx4/intf.c dev->persist->interface_state &= ~MLX4_INTERFACE_STATE_UP; persist 201 drivers/net/ethernet/mellanox/mlx4/main.c ctx->val.vbool = dev->persist->crdump.snapshot_enable; persist 211 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->crdump.snapshot_enable = ctx->val.vbool; persist 480 drivers/net/ethernet/mellanox/mlx4/main.c if (dev_cap->uar_size > pci_resource_len(dev->persist->pdev, 2)) { persist 484 drivers/net/ethernet/mellanox/mlx4/main.c pci_resource_len(dev->persist->pdev, 2)); persist 550 drivers/net/ethernet/mellanox/mlx4/main.c if (enable_4k_uar || !dev->persist->num_vfs) persist 1030 drivers/net/ethernet/mellanox/mlx4/main.c pci_resource_len(dev->persist->pdev, persist 1035 drivers/net/ethernet/mellanox/mlx4/main.c pci_resource_len(dev->persist->pdev, 2)); persist 1382 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->num_vfs + 1); persist 1385 drivers/net/ethernet/mellanox/mlx4/main.c if (bitmap_weight(slaves_port_1_2, dev->persist->num_vfs + 1) > 1) { persist 1393 drivers/net/ethernet/mellanox/mlx4/main.c nvfs = bitmap_weight(slaves_port1.slaves, dev->persist->num_vfs + 1) + persist 1394 drivers/net/ethernet/mellanox/mlx4/main.c bitmap_weight(slaves_port2.slaves, dev->persist->num_vfs + 1) - 2; persist 1889 drivers/net/ethernet/mellanox/mlx4/main.c bf_start = pci_resource_start(dev->persist->pdev, 2) + persist 1891 drivers/net/ethernet/mellanox/mlx4/main.c bf_len = pci_resource_len(dev->persist->pdev, 2) - persist 1933 drivers/net/ethernet/mellanox/mlx4/main.c ioremap(pci_resource_start(dev->persist->pdev, persist 2011 drivers/net/ethernet/mellanox/mlx4/main.c if (dev->persist->interface_state & persist 2183 drivers/net/ethernet/mellanox/mlx4/main.c (dev->persist->num_vfs + 1))) && persist 2350 drivers/net/ethernet/mellanox/mlx4/main.c if (enable_4k_uar || !dev->persist->num_vfs) { persist 2954 drivers/net/ethernet/mellanox/mlx4/main.c nreq = pci_enable_msix_range(dev->persist->pdev, entries, 2, persist 3018 drivers/net/ethernet/mellanox/mlx4/main.c priv->eq_table.eq[i].irq = dev->persist->pdev->irq; persist 3056 drivers/net/ethernet/mellanox/mlx4/main.c err = device_create_file(&dev->persist->pdev->dev, &info->port_attr); persist 3075 drivers/net/ethernet/mellanox/mlx4/main.c err = device_create_file(&dev->persist->pdev->dev, persist 3079 drivers/net/ethernet/mellanox/mlx4/main.c device_remove_file(&info->dev->persist->pdev->dev, persist 3094 drivers/net/ethernet/mellanox/mlx4/main.c device_remove_file(&info->dev->persist->pdev->dev, &info->port_attr); persist 3095 drivers/net/ethernet/mellanox/mlx4/main.c device_remove_file(&info->dev->persist->pdev->dev, persist 3170 drivers/net/ethernet/mellanox/mlx4/main.c if (pci_channel_offline(dev->persist->pdev)) persist 3173 drivers/net/ethernet/mellanox/mlx4/main.c owner = ioremap(pci_resource_start(dev->persist->pdev, 0) + persist 3190 drivers/net/ethernet/mellanox/mlx4/main.c if (pci_channel_offline(dev->persist->pdev)) persist 3193 drivers/net/ethernet/mellanox/mlx4/main.c owner = ioremap(pci_resource_start(dev->persist->pdev, 0) + persist 3258 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->num_vfs = total_vfs; persist 3265 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->num_vfs = 0; persist 3291 drivers/net/ethernet/mellanox/mlx4/main.c struct pci_dev *pdev = dev->persist->pdev; persist 3294 drivers/net/ethernet/mellanox/mlx4/main.c mutex_lock(&dev->persist->pci_status_mutex); persist 3295 drivers/net/ethernet/mellanox/mlx4/main.c if (dev->persist->pci_status == MLX4_PCI_STATUS_DISABLED) { persist 3298 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->pci_status = MLX4_PCI_STATUS_ENABLED; persist 3300 drivers/net/ethernet/mellanox/mlx4/main.c mutex_unlock(&dev->persist->pci_status_mutex); persist 3307 drivers/net/ethernet/mellanox/mlx4/main.c struct pci_dev *pdev = dev->persist->pdev; persist 3309 drivers/net/ethernet/mellanox/mlx4/main.c mutex_lock(&dev->persist->pci_status_mutex); persist 3310 drivers/net/ethernet/mellanox/mlx4/main.c if (dev->persist->pci_status == MLX4_PCI_STATUS_ENABLED) { persist 3312 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->pci_status = MLX4_PCI_STATUS_DISABLED; persist 3314 drivers/net/ethernet/mellanox/mlx4/main.c mutex_unlock(&dev->persist->pci_status_mutex); persist 3384 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->num_vfs = total_vfs; persist 3391 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->state = MLX4_DEVICE_STATE_UP; persist 3532 drivers/net/ethernet/mellanox/mlx4/main.c pcie_print_link_status(dev->persist->pdev); persist 3545 drivers/net/ethernet/mellanox/mlx4/main.c memcpy(dev->persist->nvfs, nvfs, sizeof(dev->persist->nvfs)); persist 3548 drivers/net/ethernet/mellanox/mlx4/main.c i < sizeof(dev->persist->nvfs)/ persist 3549 drivers/net/ethernet/mellanox/mlx4/main.c sizeof(dev->persist->nvfs[0]); i++) { persist 3552 drivers/net/ethernet/mellanox/mlx4/main.c for (j = 0; j < dev->persist->nvfs[i]; ++sum, ++j) { persist 3636 drivers/net/ethernet/mellanox/mlx4/main.c if (mlx4_is_master(dev) && dev->persist->num_vfs && !reset_flow) persist 3699 drivers/net/ethernet/mellanox/mlx4/main.c if (mlx4_is_master(dev) && dev->persist->num_vfs && !reset_flow) persist 3897 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_fw_crdump *crdump = &dev->persist->crdump; persist 3944 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = dev->persist; persist 3946 drivers/net/ethernet/mellanox/mlx4/main.c if (persist->num_vfs) persist 3947 drivers/net/ethernet/mellanox/mlx4/main.c mlx4_warn(persist->dev, "Reload performed on PF, will cause reset on operating Virtual Functions\n"); persist 3948 drivers/net/ethernet/mellanox/mlx4/main.c mlx4_restart_one_down(persist->pdev); persist 3957 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = dev->persist; persist 3960 drivers/net/ethernet/mellanox/mlx4/main.c err = mlx4_restart_one_up(persist->pdev, true, devlink); persist 3962 drivers/net/ethernet/mellanox/mlx4/main.c mlx4_err(persist->dev, "mlx4_restart_one_up failed, ret=%d\n", persist 3989 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist = kzalloc(sizeof(*dev->persist), GFP_KERNEL); persist 3990 drivers/net/ethernet/mellanox/mlx4/main.c if (!dev->persist) { persist 3994 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->pdev = pdev; persist 3995 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->dev = dev; persist 3996 drivers/net/ethernet/mellanox/mlx4/main.c pci_set_drvdata(pdev, dev->persist); persist 3998 drivers/net/ethernet/mellanox/mlx4/main.c mutex_init(&dev->persist->device_state_mutex); persist 3999 drivers/net/ethernet/mellanox/mlx4/main.c mutex_init(&dev->persist->interface_state_mutex); persist 4000 drivers/net/ethernet/mellanox/mlx4/main.c mutex_init(&dev->persist->pci_status_mutex); persist 4025 drivers/net/ethernet/mellanox/mlx4/main.c kfree(dev->persist); persist 4033 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = dev->persist; persist 4038 drivers/net/ethernet/mellanox/mlx4/main.c priv->dev.persist = persist; persist 4044 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = pci_get_drvdata(pdev); persist 4045 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev *dev = persist->dev; persist 4055 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->curr_port_type[i] = dev->caps.port_type[i + 1]; persist 4056 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->curr_port_poss_type[i] = dev->caps. persist 4121 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = pci_get_drvdata(pdev); persist 4122 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev *dev = persist->dev; persist 4130 drivers/net/ethernet/mellanox/mlx4/main.c persist->interface_state |= MLX4_INTERFACE_STATE_NOWAIT; persist 4132 drivers/net/ethernet/mellanox/mlx4/main.c mutex_lock(&persist->interface_state_mutex); persist 4133 drivers/net/ethernet/mellanox/mlx4/main.c persist->interface_state |= MLX4_INTERFACE_STATE_DELETION; persist 4134 drivers/net/ethernet/mellanox/mlx4/main.c mutex_unlock(&persist->interface_state_mutex); persist 4148 drivers/net/ethernet/mellanox/mlx4/main.c if (persist->interface_state & MLX4_INTERFACE_STATE_UP) persist 4164 drivers/net/ethernet/mellanox/mlx4/main.c kfree(dev->persist); persist 4195 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = pci_get_drvdata(pdev); persist 4196 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev *dev = persist->dev; persist 4202 drivers/net/ethernet/mellanox/mlx4/main.c total_vfs = dev->persist->num_vfs; persist 4203 drivers/net/ethernet/mellanox/mlx4/main.c memcpy(nvfs, dev->persist->nvfs, sizeof(dev->persist->nvfs)); persist 4214 drivers/net/ethernet/mellanox/mlx4/main.c err = restore_current_port_types(dev, dev->persist->curr_port_type, persist 4215 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->curr_port_poss_type); persist 4284 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = pci_get_drvdata(pdev); persist 4286 drivers/net/ethernet/mellanox/mlx4/main.c mlx4_err(persist->dev, "mlx4_pci_err_detected was called\n"); persist 4287 drivers/net/ethernet/mellanox/mlx4/main.c mlx4_enter_error_state(persist); persist 4289 drivers/net/ethernet/mellanox/mlx4/main.c mutex_lock(&persist->interface_state_mutex); persist 4290 drivers/net/ethernet/mellanox/mlx4/main.c if (persist->interface_state & MLX4_INTERFACE_STATE_UP) persist 4293 drivers/net/ethernet/mellanox/mlx4/main.c mutex_unlock(&persist->interface_state_mutex); persist 4297 drivers/net/ethernet/mellanox/mlx4/main.c mlx4_pci_disable_device(persist->dev); persist 4303 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = pci_get_drvdata(pdev); persist 4304 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev *dev = persist->dev; persist 4322 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = pci_get_drvdata(pdev); persist 4323 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev *dev = persist->dev; persist 4330 drivers/net/ethernet/mellanox/mlx4/main.c total_vfs = dev->persist->num_vfs; persist 4331 drivers/net/ethernet/mellanox/mlx4/main.c memcpy(nvfs, dev->persist->nvfs, sizeof(dev->persist->nvfs)); persist 4333 drivers/net/ethernet/mellanox/mlx4/main.c mutex_lock(&persist->interface_state_mutex); persist 4334 drivers/net/ethernet/mellanox/mlx4/main.c if (!(persist->interface_state & MLX4_INTERFACE_STATE_UP)) { persist 4343 drivers/net/ethernet/mellanox/mlx4/main.c err = restore_current_port_types(dev, dev->persist-> persist 4344 drivers/net/ethernet/mellanox/mlx4/main.c curr_port_type, dev->persist-> persist 4350 drivers/net/ethernet/mellanox/mlx4/main.c mutex_unlock(&persist->interface_state_mutex); persist 4356 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = pci_get_drvdata(pdev); persist 4358 drivers/net/ethernet/mellanox/mlx4/main.c mlx4_info(persist->dev, "mlx4_shutdown was called\n"); persist 4359 drivers/net/ethernet/mellanox/mlx4/main.c mutex_lock(&persist->interface_state_mutex); persist 4360 drivers/net/ethernet/mellanox/mlx4/main.c if (persist->interface_state & MLX4_INTERFACE_STATE_UP) persist 4362 drivers/net/ethernet/mellanox/mlx4/main.c mutex_unlock(&persist->interface_state_mutex); persist 4373 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = pci_get_drvdata(pdev); persist 4374 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev *dev = persist->dev; persist 4377 drivers/net/ethernet/mellanox/mlx4/main.c mutex_lock(&persist->interface_state_mutex); persist 4378 drivers/net/ethernet/mellanox/mlx4/main.c if (persist->interface_state & MLX4_INTERFACE_STATE_UP) persist 4380 drivers/net/ethernet/mellanox/mlx4/main.c mutex_unlock(&persist->interface_state_mutex); persist 4387 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev_persistent *persist = pci_get_drvdata(pdev); persist 4388 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_dev *dev = persist->dev; persist 4395 drivers/net/ethernet/mellanox/mlx4/main.c total_vfs = dev->persist->num_vfs; persist 4396 drivers/net/ethernet/mellanox/mlx4/main.c memcpy(nvfs, dev->persist->nvfs, sizeof(dev->persist->nvfs)); persist 4398 drivers/net/ethernet/mellanox/mlx4/main.c mutex_lock(&persist->interface_state_mutex); persist 4399 drivers/net/ethernet/mellanox/mlx4/main.c if (!(persist->interface_state & MLX4_INTERFACE_STATE_UP)) { persist 4404 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->curr_port_type, persist 4405 drivers/net/ethernet/mellanox/mlx4/main.c dev->persist->curr_port_poss_type); persist 4410 drivers/net/ethernet/mellanox/mlx4/main.c mutex_unlock(&persist->interface_state_mutex); persist 1329 drivers/net/ethernet/mellanox/mlx4/mcg.c if (err && dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) persist 1362 drivers/net/ethernet/mellanox/mlx4/mcg.c dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) persist 221 drivers/net/ethernet/mellanox/mlx4/mlx4.h &(mdev)->persist->pdev->dev, format, \ persist 226 drivers/net/ethernet/mellanox/mlx4/mlx4.h dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) persist 228 drivers/net/ethernet/mellanox/mlx4/mlx4.h dev_info(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) persist 230 drivers/net/ethernet/mellanox/mlx4/mlx4.h dev_warn(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) persist 1228 drivers/net/ethernet/mellanox/mlx4/mlx4.h void mlx4_enter_error_state(struct mlx4_dev_persistent *persist); persist 706 drivers/net/ethernet/mellanox/mlx4/mr.c dma_sync_single_for_cpu(&dev->persist->pdev->dev, dma_handle, persist 712 drivers/net/ethernet/mellanox/mlx4/mr.c dma_sync_single_for_device(&dev->persist->pdev->dev, dma_handle, persist 1017 drivers/net/ethernet/mellanox/mlx4/mr.c dma_sync_single_for_cpu(&dev->persist->pdev->dev, fmr->dma_handle, persist 1023 drivers/net/ethernet/mellanox/mlx4/mr.c dma_sync_single_for_device(&dev->persist->pdev->dev, fmr->dma_handle, persist 154 drivers/net/ethernet/mellanox/mlx4/pd.c offset = uar->index % ((int)pci_resource_len(dev->persist->pdev, persist 159 drivers/net/ethernet/mellanox/mlx4/pd.c uar->pfn = (pci_resource_start(dev->persist->pdev, 2) >> PAGE_SHIFT) persist 1120 drivers/net/ethernet/mellanox/mlx4/port.c dev->persist->num_vfs + 1); persist 1122 drivers/net/ethernet/mellanox/mlx4/port.c vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; persist 1157 drivers/net/ethernet/mellanox/mlx4/port.c dev->persist->num_vfs + 1); persist 1160 drivers/net/ethernet/mellanox/mlx4/port.c vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; persist 1211 drivers/net/ethernet/mellanox/mlx4/port.c if (slave < 0 || slave > dev->persist->num_vfs) persist 1872 drivers/net/ethernet/mellanox/mlx4/port.c dev->persist->num_vfs + 1) - 1; persist 1916 drivers/net/ethernet/mellanox/mlx4/port.c dev->persist->num_vfs + 1); persist 1946 drivers/net/ethernet/mellanox/mlx4/port.c dev->persist->num_vfs + 1); persist 79 drivers/net/ethernet/mellanox/mlx4/reset.c pcie_cap = pci_pcie_cap(dev->persist->pdev); persist 84 drivers/net/ethernet/mellanox/mlx4/reset.c if (pci_read_config_dword(dev->persist->pdev, i * 4, persist 92 drivers/net/ethernet/mellanox/mlx4/reset.c reset = ioremap(pci_resource_start(dev->persist->pdev, 0) + persist 127 drivers/net/ethernet/mellanox/mlx4/reset.c if (!pci_read_config_word(dev->persist->pdev, PCI_VENDOR_ID, persist 143 drivers/net/ethernet/mellanox/mlx4/reset.c if (pcie_capability_write_word(dev->persist->pdev, persist 151 drivers/net/ethernet/mellanox/mlx4/reset.c if (pcie_capability_write_word(dev->persist->pdev, persist 164 drivers/net/ethernet/mellanox/mlx4/reset.c if (pci_write_config_dword(dev->persist->pdev, i * 4, persist 173 drivers/net/ethernet/mellanox/mlx4/reset.c if (pci_write_config_dword(dev->persist->pdev, PCI_COMMAND, persist 318 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (slave > dev->persist->num_vfs) persist 324 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (dev->persist->num_vfs + 1) + slave] : persist 363 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (dev->persist->num_vfs + 1) + slave] += count; persist 387 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (slave > dev->persist->num_vfs) persist 394 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (dev->persist->num_vfs + 1) + slave] : persist 410 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (dev->persist->num_vfs + 1) + slave] -= count; persist 429 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (2 * (dev->persist->num_vfs + 1)); persist 528 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_alloc->quota = kmalloc_array(dev->persist->num_vfs + 1, persist 531 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_alloc->guaranteed = kmalloc_array(dev->persist->num_vfs + 1, persist 537 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (dev->persist->num_vfs + 1), persist 541 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c kcalloc(dev->persist->num_vfs + 1, persist 552 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c for (t = 0; t < dev->persist->num_vfs + 1; t++) { persist 3352 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (slave < 0 || slave > dev->persist->num_vfs || persist 161 drivers/net/hamradio/dmascc.c int persist; /* 1 ... 256 */ persist 567 drivers/net/hamradio/dmascc.c priv->param.persist = 256; persist 1447 drivers/net/hamradio/dmascc.c random() / priv->param.persist * persist 1145 drivers/net/hamradio/scc.c if (scc->dcd || (scc->kiss.persist) < Rand || (scc->kiss.group && is_grouped(scc)) ) persist 1307 drivers/net/hamradio/scc.c case PARAM_PERSIST: scc->kiss.persist=arg; break; persist 1376 drivers/net/hamradio/scc.c case PARAM_PERSIST: return CAST(scc->kiss.persist); persist 1865 drivers/net/hamradio/scc.c scc->kiss.persist = 42; /* 25% persistence */ /* was 25 */ persist 1877 drivers/net/hamradio/scc.c scc->kiss.persist = 64; /* 25% persistence */ /* was 25 */ persist 2053 drivers/net/hamradio/scc.c K(txdelay), K(persist), K(slottime), K(tailtime), persist 1023 drivers/net/hamradio/yam.c if (yi.cfg.persist > YAM_MAXPERSIST) persist 1025 drivers/net/hamradio/yam.c yp->pers = yi.cfg.persist; persist 1046 drivers/net/hamradio/yam.c yi.cfg.persist = yp->pers; persist 363 drivers/usb/core/sysfs.c static DEVICE_ATTR_RW(persist); persist 1807 fs/ocfs2/dir.c bool persist) persist 1896 fs/ocfs2/dir.c if (!persist && stored) persist 1904 fs/ocfs2/dir.c bool persist) persist 1908 fs/ocfs2/dir.c return ocfs2_dir_foreach_blk_el(inode, f_version, ctx, persist); persist 615 fs/overlayfs/super.c const char *name, bool persist) persist 641 fs/overlayfs/super.c if (persist) persist 886 include/linux/mlx4/device.h struct mlx4_dev_persistent *persist; persist 31 include/linux/scc.h unsigned char persist; /* Persistence (0-255) as a % */ persist 52 include/linux/yam.h unsigned int persist; /* Persistence */ persist 121 include/net/dn.h unsigned long persist; persist 33 include/uapi/linux/bpqether.h unsigned char persist; /* unused */ persist 523 net/decnet/af_decnet.c scp->persist = 0; persist 562 net/decnet/af_decnet.c scp->persist = dn_nsp_persist(sk); persist 586 net/decnet/af_decnet.c scp->persist = (HZ * decnet_time_wait); persist 618 net/decnet/af_decnet.c scp->persist = dn_nsp_persist(sk); persist 640 net/decnet/af_decnet.c scp->persist = dn_nsp_persist(sk); persist 2062 net/decnet/af_decnet.c scp->persist = dn_nsp_persist(sk); persist 351 net/decnet/dn_nsp_in.c scp->persist = 0; persist 385 net/decnet/dn_nsp_in.c scp->persist = 0; persist 449 net/decnet/dn_nsp_in.c scp->persist = dn_nsp_persist(sk); persist 498 net/decnet/dn_nsp_in.c scp->persist = dn_nsp_persist(sk); persist 274 net/decnet/dn_nsp_out.c scp->persist = dn_nsp_persist(sk); persist 519 net/decnet/dn_nsp_out.c scp->persist = dn_nsp_persist(sk); persist 614 net/decnet/dn_nsp_out.c scp->persist = dn_nsp_persist(sk); persist 689 net/decnet/dn_nsp_out.c scp->persist = dn_nsp_persist(sk); persist 73 net/decnet/dn_timer.c if (scp->persist && scp->persist_fxn) { persist 74 net/decnet/dn_timer.c if (scp->persist <= SLOW_INTERVAL) { persist 75 net/decnet/dn_timer.c scp->persist = 0; persist 80 net/decnet/dn_timer.c scp->persist -= SLOW_INTERVAL;