/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() 192 if (!pci_channel_offline(dev->persist->pdev)) in mlx4_enter_error_state() 195 dev->persist->state |= MLX4_DEVICE_STATE_INTERNAL_ERROR; in mlx4_enter_error_state() 196 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 | 366 if (dev_cap->uar_size > pci_resource_len(dev->persist->pdev, 2)) { in mlx4_dev_cap() 370 pci_resource_len(dev->persist->pdev, 2)); in mlx4_dev_cap() 436 if (enable_4k_uar || !dev->persist->num_vfs) in mlx4_dev_cap() 638 err1 = pcie_capability_read_dword(dev->persist->pdev, PCI_EXP_LNKCAP, in mlx4_get_pcie_dev_link_caps() 640 err2 = pcie_capability_read_dword(dev->persist->pdev, PCI_EXP_LNKCAP2, in mlx4_get_pcie_dev_link_caps() 686 err = pcie_get_minimum_link(dev->persist->pdev, &speed, &width); in mlx4_check_pcie_caps() 995 pci_resource_len(dev->persist->pdev, in mlx4_slave_cap() 1000 pci_resource_len(dev->persist->pdev, 2)); in mlx4_slave_cap() 1347 dev->persist->num_vfs + 1); in mlx4_mf_bond() 1350 if (bitmap_weight(slaves_port_1_2, dev->persist->num_vfs + 1) > 1) { in mlx4_mf_bond() [all …]
|
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 | 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 | 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 | 59 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() 182 ret = mlx4_alloc_icm_coherent(&dev->persist->pdev->dev, in mlx4_alloc_icm() 202 chunk->nsg = pci_map_sg(dev->persist->pdev, chunk->mem, in mlx4_alloc_icm() 217 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()
|
D | port.c | 1120 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()
|
D | mlx4.h | 222 &(mdev)->persist->pdev->dev, format, \ 227 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) 229 dev_info(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) 231 dev_warn(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) 1227 void mlx4_enter_error_state(struct mlx4_dev_persistent *persist);
|
D | mr.c | 706 dma_sync_single_for_cpu(&dev->persist->pdev->dev, dma_handle, in mlx4_write_mtt_chunk() 712 dma_sync_single_for_device(&dev->persist->pdev->dev, dma_handle, in mlx4_write_mtt_chunk() 1017 dma_sync_single_for_cpu(&dev->persist->pdev->dev, fmr->dma_handle, in mlx4_map_phys_fmr() 1023 dma_sync_single_for_device(&dev->persist->pdev->dev, fmr->dma_handle, in mlx4_map_phys_fmr()
|
D | resource_tracker.c | 318 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((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker() 530 res_alloc->guaranteed = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker() 534 (dev->persist->num_vfs in mlx4_init_resource_tracker() [all …]
|
/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()
|
/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.
|
/drivers/char/mwave/ |
D | README | 5 are not saved by the BIOS and so do not persist after unload and reload.
|
/drivers/net/hamradio/ |
D | scc.c | 1143 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()
|
D | yam.c | 1052 if (yi.cfg.persist > YAM_MAXPERSIST) in yam_ioctl() 1054 yp->pers = yi.cfg.persist; in yam_ioctl() 1075 yi.cfg.persist = yp->pers; in yam_ioctl()
|
D | dmascc.c | 174 int persist; /* 1 ... 256 */ member 580 priv->param.persist = 256; in setup_adapter() 1460 random() / priv->param.persist * in tm_isr()
|
/drivers/infiniband/hw/mlx4/ |
D | sysfs.c | 360 snprintf(name, max, "%.8s%.2d.%d", pci_name(dev->dev->persist->pdev), in get_name() 775 for (i = 0; i <= device->dev->persist->num_vfs; ++i) in register_pkey_tree() 790 for (slave = device->dev->persist->num_vfs; slave >= 0; --slave) { in unregister_pkey_tree()
|
D | srq.c | 323 if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_ib_post_srq_recv()
|
D | alias_GUID.c | 218 if (slave_id >= dev->dev->persist->num_vfs + 1) in mlx4_ib_notify_slaves_on_guid_change() 592 if (!entry || entry > dev->dev->persist->num_vfs || in mlx4_ib_guid_port_init()
|
/drivers/video/console/ |
D | Kconfig | 55 Say Y here if the scrollback history should persist by default when
|