| /kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
| 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 …]
|
| D | main.c | 200 ctx->val.vbool = dev->persist->crdump.snapshot_enable; in mlx4_devlink_crdump_snapshot_get() 210 dev->persist->crdump.snapshot_enable = ctx->val.vbool; in mlx4_devlink_crdump_snapshot_set() 479 if (dev_cap->uar_size > pci_resource_len(dev->persist->pdev, 2)) { in mlx4_dev_cap() 483 pci_resource_len(dev->persist->pdev, 2)); in mlx4_dev_cap() 550 if (enable_4k_uar || !dev->persist->num_vfs) in mlx4_dev_cap() 1030 pci_resource_len(dev->persist->pdev, in mlx4_slave_cap() 1035 pci_resource_len(dev->persist->pdev, 2)); in mlx4_slave_cap() 1360 dev->persist->num_vfs + 1) > 1) { in mlx4_mf_bond() 1368 nvfs = bitmap_weight(slaves_port1.slaves, dev->persist->num_vfs + 1) + in mlx4_mf_bond() 1369 bitmap_weight(slaves_port2.slaves, dev->persist->num_vfs + 1) - 2; in mlx4_mf_bond() [all …]
|
| 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()
|
| 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()
|
| 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()
|
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
| 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 …]
|
| D | main.c | 201 ctx->val.vbool = dev->persist->crdump.snapshot_enable; in mlx4_devlink_crdump_snapshot_get() 211 dev->persist->crdump.snapshot_enable = ctx->val.vbool; in mlx4_devlink_crdump_snapshot_set() 480 if (dev_cap->uar_size > pci_resource_len(dev->persist->pdev, 2)) { in mlx4_dev_cap() 484 pci_resource_len(dev->persist->pdev, 2)); in mlx4_dev_cap() 551 if (enable_4k_uar || !dev->persist->num_vfs) in mlx4_dev_cap() 1031 pci_resource_len(dev->persist->pdev, in mlx4_slave_cap() 1036 pci_resource_len(dev->persist->pdev, 2)); in mlx4_slave_cap() 1383 dev->persist->num_vfs + 1); in mlx4_mf_bond() 1386 if (bitmap_weight(slaves_port_1_2, dev->persist->num_vfs + 1) > 1) { in mlx4_mf_bond() 1394 nvfs = bitmap_weight(slaves_port1.slaves, dev->persist->num_vfs + 1) + in mlx4_mf_bond() [all …]
|
| 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()
|
| 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()
|
| D | intf.c | 205 dev->persist->interface_state |= MLX4_INTERFACE_STATE_UP; in mlx4_register_device() 221 if (!(dev->persist->interface_state & MLX4_INTERFACE_STATE_UP)) in mlx4_unregister_device() 225 if (dev->persist->interface_state & MLX4_INTERFACE_STATE_DELETION && in mlx4_unregister_device() 234 mlx4_enter_error_state(dev->persist); in mlx4_unregister_device() 243 dev->persist->interface_state &= ~MLX4_INTERFACE_STATE_UP; in mlx4_unregister_device()
|
| 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 …]
|
| 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() 658 i < dev->persist->num_vfs + 1; in mlx4_eq_int() 944 pci_resource_start(dev->persist->pdev, 2) + in mlx4_get_eq_uar() 1007 eq->page_list[i].buf = dma_alloc_coherent(&dev->persist-> in mlx4_create_eq() [all …]
|
| /kernel/linux/linux-6.6/Documentation/driver-api/usb/ |
| 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 …]
|
| /kernel/linux/linux-5.10/Documentation/driver-api/usb/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/usb/core/ |
| 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.
|
| /kernel/linux/linux-6.6/drivers/usb/core/ |
| 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.
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
| D | ice_dcb.h | 135 ice_aq_stop_lldp(struct ice_hw *hw, bool shutdown_lldp_agent, bool persist, 138 ice_aq_start_lldp(struct ice_hw *hw, bool persist, struct ice_sq_cd *cd); 147 bool __always_unused persist, in ice_aq_stop_lldp() argument 155 bool __always_unused persist, in ice_aq_start_lldp() argument
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
| 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
|
| /kernel/linux/linux-6.6/tools/testing/nvdimm/test/ |
| D | ndtest.h | 8 /* SCM device is unable to persist memory contents */ 10 /* SCM device failed to persist memory contents */ 17 /* SCM contents cannot persist due to current platform health status */
|
| /kernel/linux/linux-5.10/drivers/atm/ |
| 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()
|
| /kernel/linux/linux-6.6/drivers/atm/ |
| 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()
|
| /kernel/linux/linux-6.6/Documentation/ABI/stable/ |
| 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.
|
| /kernel/linux/linux-5.10/Documentation/ABI/stable/ |
| 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.
|
| /kernel/linux/linux-6.6/samples/ftrace/ |
| 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()
|