Home
last modified time | relevance | path

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

/linux-4.4.14/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()
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()
187 dev->persist->state |= MLX4_DEVICE_STATE_INTERNAL_ERROR; in mlx4_enter_error_state()
189 mutex_unlock(&persist->device_state_mutex); in mlx4_enter_error_state()
197 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.c343 if (dev_cap->uar_size > pci_resource_len(dev->persist->pdev, 2)) { in mlx4_dev_cap()
347 pci_resource_len(dev->persist->pdev, 2)); in mlx4_dev_cap()
602 err1 = pcie_capability_read_dword(dev->persist->pdev, PCI_EXP_LNKCAP, in mlx4_get_pcie_dev_link_caps()
604 err2 = pcie_capability_read_dword(dev->persist->pdev, PCI_EXP_LNKCAP2, in mlx4_get_pcie_dev_link_caps()
650 err = pcie_get_minimum_link(dev->persist->pdev, &speed, &width); in mlx4_check_pcie_caps()
904 pci_resource_len(dev->persist->pdev, in mlx4_slave_cap()
909 pci_resource_len(dev->persist->pdev, 2)); in mlx4_slave_cap()
1650 bf_start = pci_resource_start(dev->persist->pdev, 2) + in map_bf_area()
1652 bf_len = pci_resource_len(dev->persist->pdev, 2) - in map_bf_area()
1694 ioremap(pci_resource_start(dev->persist->pdev, in map_internal_clock()
[all …]
Dcmd.c247 mlx4_enter_error_state(dev->persist); in mlx4_cmd_reset_flow()
272 mutex_lock(&dev->persist->device_state_mutex); in mlx4_comm_cmd_post()
274 if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_comm_cmd_post()
275 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.c156 for (i = 0; i <= dev->persist->num_vfs; i++) { in mlx4_gen_slave_eqe()
216 if (slave < 0 || slave > dev->persist->num_vfs || in mlx4_slave_event()
265 if (dev->persist->num_vfs < slave) in mlx4_gen_guid_change_eqe()
284 if (dev->persist->num_vfs < slave) in mlx4_gen_port_state_change_eqe()
339 for (i = 0; i < dev->persist->num_vfs + 1; i++) in set_all_slave_state()
463 if (dev->persist->interface_state & in mlx4_master_handle_slave_flr()
595 for (i = 0; i < dev->persist->num_vfs + 1; in mlx4_eq_int()
637 i < dev->persist->num_vfs + 1; in mlx4_eq_int()
927 ioremap(pci_resource_start(dev->persist->pdev, 2) + in mlx4_get_eq_uar()
990 eq->page_list[i].buf = dma_alloc_coherent(&dev->persist-> in mlx4_create_eq()
[all …]
Dicm.c59 pci_unmap_sg(dev->persist->pdev, chunk->mem, chunk->npages, in mlx4_free_icm_pages()
72 dma_free_coherent(&dev->persist->pdev->dev, in mlx4_free_icm_coherent()
177 ret = mlx4_alloc_icm_coherent(&dev->persist->pdev->dev, in mlx4_alloc_icm()
197 chunk->nsg = pci_map_sg(dev->persist->pdev, chunk->mem, in mlx4_alloc_icm()
212 chunk->nsg = pci_map_sg(dev->persist->pdev, chunk->mem, in mlx4_alloc_icm()
Dalloc.c595 buf->direct.buf = dma_alloc_coherent(&dev->persist->pdev->dev, in mlx4_buf_alloc()
622 dma_alloc_coherent(&dev->persist->pdev->dev, in mlx4_buf_alloc()
661 dma_free_coherent(&dev->persist->pdev->dev, size, in mlx4_buf_free()
670 dma_free_coherent(&dev->persist->pdev->dev, in mlx4_buf_free()
744 pgdir = mlx4_alloc_db_pgdir(&dev->persist->pdev->dev, gfp); in mlx4_db_alloc()
781 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, in mlx4_db_free()
Den_cq.c74 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()
Dintf.c204 dev->persist->interface_state |= MLX4_INTERFACE_STATE_UP; in mlx4_register_device()
227 dev->persist->interface_state &= ~MLX4_INTERFACE_STATE_UP; in mlx4_unregister_device()
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()
Dport.c562 dev->persist->num_vfs + 1); in mlx4_get_slave_num_gids()
564 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_num_gids()
599 dev->persist->num_vfs + 1); in mlx4_get_base_gid_ix()
602 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_base_gid_ix()
653 if (slave < 0 || slave > dev->persist->num_vfs) in mlx4_reset_roce_gids()
1193 dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_from_roce_gid()
1237 dev->persist->num_vfs + 1); in mlx4_get_slave_from_roce_gid()
1267 dev->persist->num_vfs + 1); in mlx4_get_slave_from_roce_gid()
Den_main.c290 mdev->dma_device = &dev->persist->pdev->dev; in mlx4_en_add()
291 mdev->pdev = dev->persist->pdev; in mlx4_en_add()
Dmlx4.h220 &(mdev)->persist->pdev->dev, format, \
225 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
227 dev_info(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
229 dev_warn(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
1207 void mlx4_enter_error_state(struct mlx4_dev_persistent *persist);
Dmr.c708 dma_sync_single_for_cpu(&dev->persist->pdev->dev, dma_handle, in mlx4_write_mtt_chunk()
714 dma_sync_single_for_device(&dev->persist->pdev->dev, dma_handle, in mlx4_write_mtt_chunk()
1020 dma_sync_single_for_cpu(&dev->persist->pdev->dev, fmr->dma_handle, in mlx4_map_phys_fmr()
1026 dma_sync_single_for_device(&dev->persist->pdev->dev, fmr->dma_handle, in mlx4_map_phys_fmr()
Dresource_tracker.c310 if (slave > dev->persist->num_vfs) in mlx4_grant_resource()
316 (dev->persist->num_vfs + 1) + slave] : in mlx4_grant_resource()
355 (dev->persist->num_vfs + 1) + slave] += count; in mlx4_grant_resource()
379 if (slave > dev->persist->num_vfs) in mlx4_release_resource()
386 (dev->persist->num_vfs + 1) + slave] : in mlx4_release_resource()
402 (dev->persist->num_vfs + 1) + slave] -= count; in mlx4_release_resource()
421 (2 * (dev->persist->num_vfs + 1)); in initialize_res_quotas()
502 res_alloc->quota = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker()
504 res_alloc->guaranteed = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker()
508 (dev->persist->num_vfs in mlx4_init_resource_tracker()
[all …]
Den_tx.c95 set_dev_node(&mdev->dev->persist->pdev->dev, node); in mlx4_en_create_tx_ring()
98 set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); in mlx4_en_create_tx_ring()
Den_rx.c393 set_dev_node(&mdev->dev->persist->pdev->dev, node); in mlx4_en_create_rx_ring()
396 set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); in mlx4_en_create_rx_ring()
Dmcg.c1322 if (err && dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) in mlx4_qp_detach_common()
1355 dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) in mlx4_QP_ATTACH()
Den_ethtool.c96 strlcpy(drvinfo->bus_info, pci_name(mdev->dev->persist->pdev), in mlx4_en_get_drvinfo()
Den_netdev.c2827 SET_NETDEV_DEV(dev, &mdev->dev->persist->pdev->dev); in mlx4_en_init_netdev()
/linux-4.4.14/net/decnet/
Ddn_timer.c72 if (scp->persist && scp->persist_fxn) { in dn_slow_timer()
73 if (scp->persist <= SLOW_INTERVAL) { in dn_slow_timer()
74 scp->persist = 0; in dn_slow_timer()
79 scp->persist -= SLOW_INTERVAL; in dn_slow_timer()
Ddn_nsp_in.c359 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()
505 scp->persist = dn_nsp_persist(sk); in dn_nsp_disc_conf()
Ddn_nsp_out.c282 scp->persist = dn_nsp_persist(sk); in dn_nsp_xmit_timeout()
541 scp->persist = dn_nsp_persist(sk); in dn_send_conn_conf()
636 scp->persist = dn_nsp_persist(sk); in dn_nsp_send_link()
711 scp->persist = dn_nsp_persist(sk); in dn_nsp_send_conninit()
Daf_decnet.c530 scp->persist = 0; in dn_alloc_sock()
573 scp->persist = dn_nsp_persist(sk); in dn_destroy_timer()
597 scp->persist = (HZ * decnet_time_wait); in dn_destroy_timer()
629 scp->persist = dn_nsp_persist(sk); in dn_destroy_sock()
649 scp->persist = dn_nsp_persist(sk); in dn_destroy_sock()
2067 scp->persist = dn_nsp_persist(sk); in dn_sendmsg()
/linux-4.4.14/drivers/atm/
Datmtcp.c25 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-4.4.14/Documentation/usb/
Dpersist.txt68 The kernel includes a feature called USB-persist. It tries to work
70 persist across a power-session disruption.
76 "persist" attribute is set. It doesn't try to resume the device; that
100 Note that the "USB-persist" feature will be applied only to those
104 echo 1 >/sys/bus/usb/devices/.../power/persist
108 automatically and permanently enabled and the power/persist file
121 it would be more far-reaching than USB-persist.
128 Furthermore, the USB-persist feature applies to _all_ USB devices, not
133 WARNING: USB-persist can be dangerous!!
158 For those devices with avoid_reset_quirk attribute being set, persist
[all …]
Dmtouchusb.txt39 download, I persist in updating this driver since I would like to use the
Dpower-management.txt326 Documentation/usb/persist.txt) and it can also be used under certain
729 <child>/power/persist:
731 kernel can persist the device's configuration across a
748 echo 1 > <child>/power/persist # this is the default value
/linux-4.4.14/drivers/usb/core/
DKconfig20 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/usb/persist.txt for more info.
Dsysfs.c311 static DEVICE_ATTR_RW(persist);
/linux-4.4.14/include/uapi/linux/
Dbpqether.h34 unsigned char persist; /* unused */ member
/linux-4.4.14/include/linux/
Dyam.h67 unsigned int persist; /* Persistence */ member
Dscc.h30 unsigned char persist; /* Persistence (0-255) as a % */ member
/linux-4.4.14/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/usb/persist.txt.
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-class-power-twl403014 The change will only persist until the next
/linux-4.4.14/drivers/char/mwave/
DREADME5 are not saved by the BIOS and so do not persist after unload and reload.
/linux-4.4.14/include/net/
Ddn.h120 unsigned long persist; member
/linux-4.4.14/drivers/net/hamradio/
Dscc.c1143 if (scc->dcd || (scc->kiss.persist) < Rand || (scc->kiss.group && is_grouped(scc)) ) in t_dwait()
1305 case PARAM_PERSIST: scc->kiss.persist=arg; break; in scc_set_param()
1374 case PARAM_PERSIST: return CAST(scc->kiss.persist); in scc_get_param()
1864 scc->kiss.persist = 42; /* 25% persistence */ /* was 25 */ in scc_net_ioctl()
1876 scc->kiss.persist = 64; /* 25% persistence */ /* was 25 */ in scc_net_ioctl()
2052 K(txdelay), K(persist), K(slottime), K(tailtime), in scc_net_seq_show()
Dyam.c1050 if (yi.cfg.persist > YAM_MAXPERSIST) in yam_ioctl()
1052 yp->pers = yi.cfg.persist; in yam_ioctl()
1073 yi.cfg.persist = yp->pers; in yam_ioctl()
Ddmascc.c174 int persist; /* 1 ... 256 */ member
575 priv->param.persist = 256; in setup_adapter()
1453 random() / priv->param.persist * in tm_isr()
/linux-4.4.14/Documentation/prctl/
Dno_new_privs.txt41 - Filters installed for the seccomp mode 2 sandbox persist across
/linux-4.4.14/Documentation/networking/
Dz8530drv.txt267 persist 64
363 persist : 255
427 persist : 255
461 persist:
468 Example: sccparam /dev/scc2 persist 20
Dnetdevices.txt12 Network device structures need to persist even after module is unloaded and
Dbonding.txt1296 devices (presumed to be eth0 and eth1), and have it persist across
1503 and eth1), and have it persist across reboots, edit the appropriate
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dsysfs.c358 strlcpy(name, pci_name(dev->dev->persist->pdev), max); in get_name()
778 for (i = 0; i <= device->dev->persist->num_vfs; ++i) in register_pkey_tree()
793 for (slave = device->dev->persist->num_vfs; slave >= 0; --slave) { in unregister_pkey_tree()
Dmain.c449 props->vendor_part_id = dev->dev->persist->pdev->device; in mlx4_ib_query_device()
1125 (pci_resource_start(dev->dev->persist->pdev, in mlx4_ib_mmap()
1889 return sprintf(buf, "MT%d\n", dev->dev->persist->pdev->device); in show_hca()
2042 for (slave = 0; slave <= ibdev->dev->persist->num_vfs; in init_pkeys()
2166 dev_err(&dev->persist->pdev->dev, in mlx4_ib_add()
2196 ibdev->ib_dev.dma_device = &dev->persist->pdev->dev; in mlx4_ib_add()
2399 dev_err(&dev->persist->pdev->dev, in mlx4_ib_add()
Dsrq.c327 if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_ib_post_srq_recv()
Dalias_GUID.c218 if (slave_id >= dev->dev->persist->num_vfs + 1) in mlx4_ib_notify_slaves_on_guid_change()
591 if (!entry || entry > dev->dev->persist->num_vfs || in mlx4_ib_guid_port_init()
Dcq.c901 if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_ib_poll_cq()
Dqp.c2770 if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_ib_post_send()
3083 if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_ib_post_recv()
Dmad.c1991 (u16)(dev->dev->persist->num_vfs + 1)); in mlx4_ib_alloc_demux_ctx()
/linux-4.4.14/Documentation/filesystems/nfs/
Dnfs41-server.txt155 persist across client reboots). Thus we need not implement this for
/linux-4.4.14/Documentation/hwmon/
Dabituguru-datasheet227 Bit 7: Volt sensor: Shutdown if alarm persist for more than 4 seconds (RW)
296 Bit 7: Shutdown if alarm persist for more than 4 seconds (RW)
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c1280 int idx, const u8 *addr, bool persist) in t4vf_change_mac() argument
1294 idx = persist ? FW_VI_MAC_ADD_PERSIST_MAC : FW_VI_MAC_ADD_MAC; in t4vf_change_mac()
/linux-4.4.14/fs/ocfs2/
Ddir.c1828 bool persist) in ocfs2_dir_foreach_blk_el() argument
1922 if (!persist && stored) in ocfs2_dir_foreach_blk_el()
1930 bool persist) in ocfs2_dir_foreach_blk() argument
1934 return ocfs2_dir_foreach_blk_el(inode, f_version, ctx, persist); in ocfs2_dir_foreach_blk()
/linux-4.4.14/Documentation/filesystems/caching/
Dobject.txt262 cookie. In the first state, the cached data is expected to persist, and
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4.h1388 int idx, const u8 *addr, bool persist, bool add_smt);
Dt4_hw.c6628 int idx, const u8 *addr, bool persist, bool add_smt) in t4_change_mac() argument
6636 idx = persist ? FW_VI_MAC_ADD_PERSIST_MAC : FW_VI_MAC_ADD_MAC; in t4_change_mac()
/linux-4.4.14/include/linux/mlx4/
Ddevice.h841 struct mlx4_dev_persistent *persist; member
/linux-4.4.14/Documentation/powerpc/
Dcxlflash.txt104 restart and also reboot. The virtual LUNs do not persist (i.e. do
/linux-4.4.14/Documentation/power/
Dswsusp.txt409 Documentation/usb/persist.txt.
/linux-4.4.14/Documentation/
Dkobject.txt271 release() method, and the kobject must persist (in a consistent state)
/linux-4.4.14/Documentation/scsi/
Dscsi_fc_transport.txt222 to create the vport. This state will persist until the vport is
Dst.txt36 manager. The changes persist until the defaults again come into
/linux-4.4.14/Documentation/DocBook/
Ddevice-drivers.xml.db519 API-mptbase-sas-persist-operation