Home
last modified time | relevance | path

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

12

/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.c201 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 …]
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()
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 …]
Dintf.c205 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()
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()
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 …]
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.c295 mdev->dma_device = &dev->persist->pdev->dev; in mlx4_en_add()
296 mdev->pdev = dev->persist->pdev; in mlx4_en_add()
Dmlx4.h221 &(mdev)->persist->pdev->dev, format, \
226 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
228 dev_info(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
230 dev_warn(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
1229 void mlx4_enter_error_state(struct mlx4_dev_persistent *persist);
Dport.c1120 dev->persist->num_vfs + 1); in mlx4_get_slave_num_gids()
1122 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_num_gids()
1157 dev->persist->num_vfs + 1); in mlx4_get_base_gid_ix()
1160 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_base_gid_ix()
1211 if (slave < 0 || slave > dev->persist->num_vfs) in mlx4_reset_roce_gids()
1872 dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_from_roce_gid()
1916 dev->persist->num_vfs + 1); in mlx4_get_slave_from_roce_gid()
1946 dev->persist->num_vfs + 1); in mlx4_get_slave_from_roce_gid()
Dresource_tracker.c318 if (slave > dev->persist->num_vfs) in mlx4_grant_resource()
324 (dev->persist->num_vfs + 1) + slave] : in mlx4_grant_resource()
363 (dev->persist->num_vfs + 1) + slave] += count; in mlx4_grant_resource()
387 if (slave > dev->persist->num_vfs) in mlx4_release_resource()
394 (dev->persist->num_vfs + 1) + slave] : in mlx4_release_resource()
410 (dev->persist->num_vfs + 1) + slave] -= count; in mlx4_release_resource()
429 (2 * (dev->persist->num_vfs + 1)); in initialize_res_quotas()
528 res_alloc->quota = kmalloc_array(dev->persist->num_vfs + 1, in mlx4_init_resource_tracker()
531 res_alloc->guaranteed = kmalloc_array(dev->persist->num_vfs + 1, in mlx4_init_resource_tracker()
537 (dev->persist->num_vfs + 1), in mlx4_init_resource_tracker()
[all …]
/drivers/net/ethernet/intel/ice/
Dice_dcb.h135 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
Dice_dcb.c92 ice_aq_stop_lldp(struct ice_hw *hw, bool shutdown_lldp_agent, bool persist, in ice_aq_stop_lldp() argument
105 if (persist) in ice_aq_stop_lldp()
120 ice_aq_start_lldp(struct ice_hw *hw, bool persist, struct ice_sq_cd *cd) in ice_aq_start_lldp() argument
131 if (persist) in ice_aq_start_lldp()
/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()
/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.
/drivers/media/platform/qcom/venus/
Dhfi_plat_bufs_v6.c1063 u32 (*persist)(void); member
1100 .persist = enc_persist_size,
1107 .persist = enc_persist_size,
1114 .persist = enc_persist_size,
1312 bufreq->size = enc_ops->persist(); in bufreq_enc()
/drivers/char/mwave/
DREADME5 are not saved by the BIOS and so do not persist after unload and reload.
/drivers/net/hamradio/
Dscc.c1146 if (scc->dcd || (scc->kiss.persist) < Rand || (scc->kiss.group && is_grouped(scc)) ) in t_dwait()
1308 case PARAM_PERSIST: scc->kiss.persist=arg; break; in scc_set_param()
1377 case PARAM_PERSIST: return CAST(scc->kiss.persist); in scc_get_param()
1868 scc->kiss.persist = 42; /* 25% persistence */ /* was 25 */ in scc_net_siocdevprivate()
1880 scc->kiss.persist = 64; /* 25% persistence */ /* was 25 */ in scc_net_siocdevprivate()
2056 K(txdelay), K(persist), K(slottime), K(tailtime), in scc_net_seq_show()
Dyam.c1020 if (yi.cfg.persist > YAM_MAXPERSIST) in yam_siocdevprivate()
1022 yp->pers = yi.cfg.persist; in yam_siocdevprivate()
1043 yi.cfg.persist = yp->pers; in yam_siocdevprivate()
/drivers/infiniband/hw/mlx4/
Dsysfs.c362 snprintf(name, max, "%.8s%.2d.%d", pci_name(dev->dev->persist->pdev), in get_name()
765 for (i = 0; i <= device->dev->persist->num_vfs; ++i) in register_pkey_tree()
780 for (slave = device->dev->persist->num_vfs; slave >= 0; --slave) { in unregister_pkey_tree()
/drivers/net/ethernet/intel/i40e/
Di40e_prototype.h196 int i40e_aq_stop_lldp(struct i40e_hw *hw, bool shutdown_agent, bool persist,
200 int i40e_aq_start_lldp(struct i40e_hw *hw, bool persist,

12