/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | catas.c | 55 ret = pci_read_config_word(dev->persist->pdev, 0, &vendor_id); in read_vendor_id() 76 if (!pci_channel_offline(dev->persist->pdev)) { in mlx4_reset_master() 103 if (pci_channel_offline(dev->persist->pdev)) in mlx4_reset_slave() 163 void mlx4_enter_error_state(struct mlx4_dev_persistent *persist) in mlx4_enter_error_state() argument 171 mutex_lock(&persist->device_state_mutex); in mlx4_enter_error_state() 172 if (persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) in mlx4_enter_error_state() 175 dev = persist->dev; in mlx4_enter_error_state() 190 if (!pci_channel_offline(dev->persist->pdev)) in mlx4_enter_error_state() 193 dev->persist->state |= MLX4_DEVICE_STATE_INTERNAL_ERROR; in mlx4_enter_error_state() 194 mutex_unlock(&persist->device_state_mutex); in mlx4_enter_error_state() [all …]
|
H A D | main.c | 195 ctx->val.vbool = dev->persist->crdump.snapshot_enable; in mlx4_devlink_crdump_snapshot_get() 206 dev->persist->crdump.snapshot_enable = ctx->val.vbool; in mlx4_devlink_crdump_snapshot_set() 475 if (dev_cap->uar_size > pci_resource_len(dev->persist->pdev, 2)) { in mlx4_dev_cap() 479 pci_resource_len(dev->persist->pdev, 2)); in mlx4_dev_cap() 546 if (enable_4k_uar || !dev->persist->num_vfs) in mlx4_dev_cap() 1026 pci_resource_len(dev->persist->pdev, in mlx4_slave_cap() 1031 pci_resource_len(dev->persist->pdev, 2)); in mlx4_slave_cap() 1356 dev->persist->num_vfs + 1) > 1) { in mlx4_mf_bond() 1364 nvfs = bitmap_weight(slaves_port1.slaves, dev->persist->num_vfs + 1) + in mlx4_mf_bond() 1365 bitmap_weight(slaves_port2.slaves, dev->persist->num_vfs + 1) - 2; in mlx4_mf_bond() [all …]
|
H A D | reset.c | 79 pcie_cap = pci_pcie_cap(dev->persist->pdev); in mlx4_reset() 84 if (pci_read_config_dword(dev->persist->pdev, i * 4, in mlx4_reset() 92 reset = ioremap(pci_resource_start(dev->persist->pdev, 0) + in mlx4_reset() 127 if (!pci_read_config_word(dev->persist->pdev, PCI_VENDOR_ID, in mlx4_reset() 143 if (pcie_capability_write_word(dev->persist->pdev, in mlx4_reset() 151 if (pcie_capability_write_word(dev->persist->pdev, in mlx4_reset() 164 if (pci_write_config_dword(dev->persist->pdev, i * 4, in mlx4_reset() 173 if (pci_write_config_dword(dev->persist->pdev, PCI_COMMAND, in mlx4_reset()
|
H A D | crdump.c | 94 struct mlx4_fw_crdump *crdump = &dev->persist->crdump; in mlx4_crdump_collect_crspace() 95 struct pci_dev *pdev = dev->persist->pdev; in mlx4_crdump_collect_crspace() 133 struct mlx4_fw_crdump *crdump = &dev->persist->crdump; in mlx4_crdump_collect_fw_health() 171 struct mlx4_fw_crdump *crdump = &dev->persist->crdump; in mlx4_crdump_collect() 172 struct pci_dev *pdev = dev->persist->pdev; in mlx4_crdump_collect() 222 struct mlx4_fw_crdump *crdump = &dev->persist->crdump; in mlx4_crdump_init() 223 struct pci_dev *pdev = dev->persist->pdev; in mlx4_crdump_init() 254 struct mlx4_fw_crdump *crdump = &dev->persist->crdump; in mlx4_crdump_end()
|
H A D | intf.c | 125 adev->dev.parent = &dev->persist->pdev->dev; in add_adev() 303 delete_all = !(dev->persist->interface_state & MLX4_INTERFACE_STATE_UP); in delete_drivers() 329 if (!(dev->persist->interface_state & MLX4_INTERFACE_STATE_UP)) in rescan_drivers_locked() 341 dev->persist->interface_state |= MLX4_INTERFACE_STATE_UP; in mlx4_register_device() 359 if (!(dev->persist->interface_state & MLX4_INTERFACE_STATE_UP)) in mlx4_unregister_device() 363 if (dev->persist->interface_state & MLX4_INTERFACE_STATE_DELETION && in mlx4_unregister_device() 372 mlx4_enter_error_state(dev->persist); in mlx4_unregister_device() 377 dev->persist->interface_state &= ~MLX4_INTERFACE_STATE_UP; in mlx4_unregister_device()
|
H A D | cmd.c | 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() [all …]
|
H A D | eq.c | 167 for (i = 0; i <= dev->persist->num_vfs; i++) { in mlx4_gen_slave_eqe() 228 if (slave < 0 || slave > dev->persist->num_vfs || in mlx4_slave_event() 278 if (dev->persist->num_vfs < slave) in mlx4_gen_guid_change_eqe() 297 if (dev->persist->num_vfs < slave) in mlx4_gen_port_state_change_eqe() 352 for (i = 0; i < dev->persist->num_vfs + 1; i++) in set_all_slave_state() 476 if (dev->persist->interface_state & in mlx4_master_handle_slave_flr() 614 for (i = 0; i < dev->persist->num_vfs + 1; in mlx4_eq_int() 659 i < dev->persist->num_vfs + 1; in mlx4_eq_int() 945 pci_resource_start(dev->persist->pdev, 2) + in mlx4_get_eq_uar() 1008 eq->page_list[i].buf = dma_alloc_coherent(&dev->persist-> in mlx4_create_eq() [all …]
|
H A D | icm.c | 60 dma_unmap_sg(&dev->persist->pdev->dev, chunk->sg, chunk->npages, in mlx4_free_icm_pages() 73 dma_free_coherent(&dev->persist->pdev->dev, in mlx4_free_icm_coherent() 187 ret = mlx4_alloc_icm_coherent(&dev->persist->pdev->dev, in mlx4_alloc_icm() 207 chunk->nsg = dma_map_sg(&dev->persist->pdev->dev, in mlx4_alloc_icm() 222 chunk->nsg = dma_map_sg(&dev->persist->pdev->dev, chunk->sg, in mlx4_alloc_icm()
|
H A D | alloc.c | 586 dma_alloc_coherent(&dev->persist->pdev->dev, size, &t, in mlx4_buf_direct_alloc() 626 dma_alloc_coherent(&dev->persist->pdev->dev, in mlx4_buf_alloc() 647 dma_free_coherent(&dev->persist->pdev->dev, size, in mlx4_buf_free() 654 dma_free_coherent(&dev->persist->pdev->dev, in mlx4_buf_free() 727 pgdir = mlx4_alloc_db_pgdir(&dev->persist->pdev->dev); in mlx4_db_alloc() 764 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, in mlx4_db_free()
|
H A D | pd.c | 154 offset = uar->index % ((int)pci_resource_len(dev->persist->pdev, in mlx4_uar_alloc() 159 uar->pfn = (pci_resource_start(dev->persist->pdev, 2) >> PAGE_SHIFT) in mlx4_uar_alloc()
|
/linux/Documentation/driver-api/usb/ |
H A D | persist.rst | 1 .. _usb-persist: 72 The kernel includes a feature called USB-persist. It tries to work 74 persist across a power-session disruption. 80 "persist" attribute is set. It doesn't try to resume the device; that 104 Note that the "USB-persist" feature will be applied only to those 108 echo 1 >/sys/bus/usb/devices/.../power/persist 112 automatically and permanently enabled and the power/persist file 126 it would be more far-reaching than USB-persist. 133 Furthermore, the USB-persist feature applies to _all_ USB devices, not 138 WARNING: USB-persist can be dangerous!! [all …]
|
H A D | index.rst | 16 persist
|
H A D | power-management.rst | 328 using the USB Persist facility.) 330 The ``reset_resume`` method is used by the USB Persist facility (see 331 :ref:`usb-persist`) and it can also be used under certain 755 ``<child>/power/persist``: 757 kernel can persist the device's configuration across a 774 echo 1 > <child>/power/persist # this is the default value
|
/linux/include/linux/ |
H A D | papr_scm.h | 6 /* SCM device is unable to persist memory contents */ 8 /* SCM device failed to persist memory contents */ 18 /* SCM contents cannot persist due to current platform health status */ 20 /* SCM device is unable to persist memory contents in certain conditions */
|
H A D | yam.h | 29 #define YAM_PERSIST (1 << 7) /* Persist (ms) */ 52 unsigned int persist; /* Persistence */ member
|
/linux/drivers/usb/core/ |
H A D | Kconfig | 21 bool "Enable USB persist by default" 28 persist feature can still be enabled for individual devices 29 through the power/persist sysfs node. See 30 Documentation/driver-api/usb/persist.rst for more info.
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb.h | 156 ice_aq_stop_lldp(struct ice_hw *hw, bool shutdown_lldp_agent, bool persist, 158 int ice_aq_start_lldp(struct ice_hw *hw, bool persist, struct ice_sq_cd *cd); 167 bool __always_unused persist, in ice_aq_stop_lldp() argument 175 bool __always_unused persist, in ice_aq_start_lldp() argument
|
/linux/drivers/atm/ |
H A D | atmtcp.c | 26 int persist; /* non-zero if persistent */ member 240 if (!dev_data->persist) return sprintf(page,"ephemeral\n"); in atmtcp_v_proc() 254 if (dev_data->persist) return; in atmtcp_c_close() 360 static int atmtcp_create(int itf,int persist,struct atm_dev **result) in atmtcp_create() argument 378 PRIV(dev)->persist = persist; in atmtcp_create() 436 if (!dev_data->persist) { in atmtcp_remove_persistent() 440 dev_data->persist = 0; in atmtcp_remove_persistent()
|
/linux/Documentation/ABI/stable/ |
H A D | sysfs-bus-usb | 1 What: /sys/bus/usb/devices/.../power/persist 6 USB device directories can contain a file named power/persist. 8 not the "USB-Persist" facility is enabled for the device. For 12 For more information, see Documentation/driver-api/usb/persist.rst.
|
/linux/samples/ftrace/ |
H A D | ftrace-ops.c | 67 static bool persist; variable 68 module_param(persist, bool, 0); 69 MODULE_PARM_DESC(persist, "Successfully load module and leave ftrace ops registered after test comp… 228 if (persist) in ftrace_ops_sample_init()
|
/linux/include/uapi/linux/ |
H A D | papr_pdsm.h | 88 * dimm_unarmed : Dimm not armed. So contents wont persist. 89 * dimm_bad_shutdown : Previous shutdown did not persist contents.
|
H A D | bpqether.h | 33 unsigned char persist; /* unused */ member
|
/linux/Documentation/networking/device_drivers/hamradio/ |
H A D | z8530drv.rst | 284 persist 64 380 persist : 255 447 persist 255 482 persist: 489 Example: sccparam /dev/scc2 persist 20
|
/linux/drivers/char/mwave/ |
H A D | README | 5 are not saved by the BIOS and so do not persist after unload and reload.
|
/linux/Documentation/arch/powerpc/ |
H A D | papr_hcalls.rst | 238 | 00 | PMEM device is unable to persist memory contents. | 241 | 01 | PMEM device failed to persist memory contents. Either contents were | 255 | 06 | PMEM device contents cannot persist due to current platform health | 259 | 07 | PMEM device is unable to persist memory contents in certain conditions|
|