Home
last modified time | relevance | path

Searched refs:persist (Results 1 – 25 of 88) sorted by relevance

1234

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/
Dcatas.c55 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 …]
Dreset.c79 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()
Dmain.c195 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 …]
Dcrdump.c94 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()
Dintf.c125 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()
Dcmd.c248 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 …]
Deq.c167 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 …]
Dicm.c60 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()
Dalloc.c586 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()
Den_cq.c71 set_dev_node(&mdev->dev->persist->pdev->dev, node); in mlx4_en_create_cq()
74 set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); in mlx4_en_create_cq()
Dpd.c154 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()
Den_main.c297 mdev->dma_device = &dev->persist->pdev->dev; in mlx4_en_probe()
298 mdev->pdev = dev->persist->pdev; in mlx4_en_probe()
Dmlx4.h223 &(mdev)->persist->pdev->dev, format, \
228 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
230 dev_info(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
232 dev_warn(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
1239 void mlx4_enter_error_state(struct mlx4_dev_persistent *persist);
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_dcb.h156 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-6.12.1/samples/ftrace/
Dftrace-ops.c67 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-6.12.1/Documentation/driver-api/usb/
Dpersist.rst1 .. _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 …]
Dindex.rst16 persist
/linux-6.12.1/drivers/atm/
Datmtcp.c26 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-6.12.1/drivers/usb/core/
DKconfig21 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-6.12.1/include/uapi/linux/
Dbpqether.h33 unsigned char persist; /* unused */ member
/linux-6.12.1/include/linux/
Dyam.h52 unsigned int persist; /* Persistence */ member
Dscc.h31 unsigned char persist; /* Persistence (0-255) as a % */ member
/linux-6.12.1/Documentation/ABI/stable/
Dsysfs-bus-usb1 What: /sys/bus/usb/devices/.../power/persist
6 USB device directories can contain a file named power/persist.
12 For more information, see Documentation/driver-api/usb/persist.rst.
/linux-6.12.1/Documentation/arch/powerpc/
Dpapr_hcalls.rst238 | 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|
/linux-6.12.1/drivers/char/mwave/
DREADME5 are not saved by the BIOS and so do not persist after unload and reload.

1234