/Linux-v4.19/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() 167 void mlx4_enter_error_state(struct mlx4_dev_persistent *persist) in mlx4_enter_error_state() argument 175 mutex_lock(&persist->device_state_mutex); in mlx4_enter_error_state() 176 if (persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) in mlx4_enter_error_state() 179 dev = persist->dev; in mlx4_enter_error_state() 194 if (!pci_channel_offline(dev->persist->pdev)) in mlx4_enter_error_state() 197 dev->persist->state |= MLX4_DEVICE_STATE_INTERNAL_ERROR; in mlx4_enter_error_state() 198 mutex_unlock(&persist->device_state_mutex); in mlx4_enter_error_state() [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 | 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() 1384 dev->persist->num_vfs + 1); in mlx4_mf_bond() 1387 if (bitmap_weight(slaves_port_1_2, dev->persist->num_vfs + 1) > 1) { in mlx4_mf_bond() 1395 nvfs = bitmap_weight(slaves_port1.slaves, dev->persist->num_vfs + 1) + in mlx4_mf_bond() [all …]
|
D | crdump.c | 81 struct mlx4_fw_crdump *crdump = &dev->persist->crdump; in mlx4_crdump_collect_crspace() 82 struct pci_dev *pdev = dev->persist->pdev; in mlx4_crdump_collect_crspace() 121 struct mlx4_fw_crdump *crdump = &dev->persist->crdump; in mlx4_crdump_collect_fw_health() 161 struct mlx4_fw_crdump *crdump = &dev->persist->crdump; in mlx4_crdump_collect() 162 struct pci_dev *pdev = dev->persist->pdev; in mlx4_crdump_collect() 203 struct mlx4_fw_crdump *crdump = &dev->persist->crdump; in mlx4_crdump_init() 204 struct pci_dev *pdev = dev->persist->pdev; in mlx4_crdump_init() 235 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() 285 mutex_unlock(&dev->persist->device_state_mutex); in mlx4_comm_cmd_post() 333 mlx4_enter_error_state(dev->persist); in mlx4_comm_cmd_poll() 388 if (!(dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)) { in mlx4_comm_cmd_wait() 397 mlx4_enter_error_state(dev->persist); in mlx4_comm_cmd_wait() 411 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) in mlx4_comm_cmd() 423 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() 613 for (i = 0; i < dev->persist->num_vfs + 1; in mlx4_eq_int() 657 i < dev->persist->num_vfs + 1; in mlx4_eq_int() 943 pci_resource_start(dev->persist->pdev, 2) + in mlx4_get_eq_uar() 1006 eq->page_list[i].buf = dma_alloc_coherent(&dev->persist-> in mlx4_create_eq() [all …]
|
D | icm.c | 60 pci_unmap_sg(dev->persist->pdev, chunk->mem, chunk->npages, in mlx4_free_icm_pages() 73 dma_free_coherent(&dev->persist->pdev->dev, in mlx4_free_icm_coherent() 188 ret = mlx4_alloc_icm_coherent(&dev->persist->pdev->dev, in mlx4_alloc_icm() 208 chunk->nsg = pci_map_sg(dev->persist->pdev, chunk->mem, in mlx4_alloc_icm() 223 chunk->nsg = pci_map_sg(dev->persist->pdev, chunk->mem, in mlx4_alloc_icm()
|
D | alloc.c | 587 dma_zalloc_coherent(&dev->persist->pdev->dev, in mlx4_buf_direct_alloc() 627 dma_zalloc_coherent(&dev->persist->pdev->dev, in mlx4_buf_alloc() 648 dma_free_coherent(&dev->persist->pdev->dev, size, in mlx4_buf_free() 655 dma_free_coherent(&dev->persist->pdev->dev, in mlx4_buf_free() 728 pgdir = mlx4_alloc_db_pgdir(&dev->persist->pdev->dev); in mlx4_db_alloc() 765 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, in mlx4_db_free()
|
D | en_cq.c | 74 set_dev_node(&mdev->dev->persist->pdev->dev, node); in mlx4_en_create_cq() 77 set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); in mlx4_en_create_cq()
|
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()
|
D | en_main.c | 290 mdev->dma_device = &dev->persist->pdev->dev; in mlx4_en_add() 291 mdev->pdev = dev->persist->pdev; in mlx4_en_add()
|
/Linux-v4.19/net/decnet/ |
D | dn_timer.c | 73 if (scp->persist && scp->persist_fxn) { in dn_slow_timer() 74 if (scp->persist <= SLOW_INTERVAL) { in dn_slow_timer() 75 scp->persist = 0; in dn_slow_timer() 80 scp->persist -= SLOW_INTERVAL; in dn_slow_timer()
|
D | dn_nsp_out.c | 282 scp->persist = dn_nsp_persist(sk); in dn_nsp_xmit_timeout() 527 scp->persist = dn_nsp_persist(sk); in dn_send_conn_conf() 622 scp->persist = dn_nsp_persist(sk); in dn_nsp_send_link() 697 scp->persist = dn_nsp_persist(sk); in dn_nsp_send_conninit()
|
D | dn_nsp_in.c | 359 scp->persist = 0; in dn_nsp_conn_conf() 393 scp->persist = 0; in dn_nsp_conn_ack() 457 scp->persist = dn_nsp_persist(sk); in dn_nsp_disc_init() 506 scp->persist = dn_nsp_persist(sk); in dn_nsp_disc_conf()
|
/Linux-v4.19/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 …]
|
D | index.rst | 16 persist
|
/Linux-v4.19/drivers/atm/ |
D | atmtcp.c | 25 int persist; /* non-zero if persistent */ member 239 if (!dev_data->persist) return sprintf(page,"ephemeral\n"); in atmtcp_v_proc() 253 if (dev_data->persist) return; in atmtcp_c_close() 359 static int atmtcp_create(int itf,int persist,struct atm_dev **result) in atmtcp_create() argument 377 PRIV(dev)->persist = persist; in atmtcp_create() 435 if (!dev_data->persist) return 0; in atmtcp_remove_persistent() 436 dev_data->persist = 0; in atmtcp_remove_persistent()
|
/Linux-v4.19/drivers/usb/core/ |
D | Kconfig | 20 bool "Enable USB persist by default" 27 persist feature can still be enabled for individual devices 28 through the power/persist sysfs node. See 29 Documentation/driver-api/usb/persist.rst for more info.
|
/Linux-v4.19/include/uapi/linux/ |
D | bpqether.h | 33 unsigned char persist; /* unused */ member
|
/Linux-v4.19/include/linux/ |
D | yam.h | 67 unsigned int persist; /* Persistence */ member
|
D | scc.h | 31 unsigned char persist; /* Persistence (0-255) as a % */ member
|
/Linux-v4.19/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. 12 For more information, see Documentation/driver-api/usb/persist.rst.
|
/Linux-v4.19/include/net/ |
D | dn.h | 121 unsigned long persist; member
|
/Linux-v4.19/drivers/char/mwave/ |
D | README | 5 are not saved by the BIOS and so do not persist after unload and reload.
|