/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_ctx.c | 851 const struct qlcnic_info_le *nic_info; in qlcnic_82xx_get_nic_info() local 861 nic_info = nic_info_addr; in qlcnic_82xx_get_nic_info() 876 npar_info->pci_func = le16_to_cpu(nic_info->pci_func); in qlcnic_82xx_get_nic_info() 877 npar_info->op_mode = le16_to_cpu(nic_info->op_mode); in qlcnic_82xx_get_nic_info() 878 npar_info->min_tx_bw = le16_to_cpu(nic_info->min_tx_bw); in qlcnic_82xx_get_nic_info() 879 npar_info->max_tx_bw = le16_to_cpu(nic_info->max_tx_bw); in qlcnic_82xx_get_nic_info() 880 npar_info->phys_port = le16_to_cpu(nic_info->phys_port); in qlcnic_82xx_get_nic_info() 881 npar_info->switch_mode = le16_to_cpu(nic_info->switch_mode); in qlcnic_82xx_get_nic_info() 882 npar_info->max_tx_ques = le16_to_cpu(nic_info->max_tx_ques); in qlcnic_82xx_get_nic_info() 883 npar_info->max_rx_ques = le16_to_cpu(nic_info->max_rx_ques); in qlcnic_82xx_get_nic_info() [all …]
|
D | qlcnic_83xx_vnic.c | 267 struct qlcnic_info nic_info; in qlcnic_83xx_set_port_eswitch_status() local 270 memset(&nic_info, 0, sizeof(struct qlcnic_info)); in qlcnic_83xx_set_port_eswitch_status() 272 err = qlcnic_get_nic_info(adapter, &nic_info, func); in qlcnic_83xx_set_port_eswitch_status() 276 if (nic_info.capabilities & QLC_83XX_ESWITCH_CAPABILITY) in qlcnic_83xx_set_port_eswitch_status() 277 *port_id = nic_info.phys_port; in qlcnic_83xx_set_port_eswitch_status()
|
D | qlcnic_sysfs.c | 686 struct qlcnic_info nic_info; in qlcnic_sysfs_write_npar_config() local 705 memset(&nic_info, 0, sizeof(struct qlcnic_info)); in qlcnic_sysfs_write_npar_config() 706 ret = qlcnic_get_nic_info(adapter, &nic_info, pci_func); in qlcnic_sysfs_write_npar_config() 709 nic_info.pci_func = pci_func; in qlcnic_sysfs_write_npar_config() 710 nic_info.min_tx_bw = np_cfg[i].min_bw; in qlcnic_sysfs_write_npar_config() 711 nic_info.max_tx_bw = np_cfg[i].max_bw; in qlcnic_sysfs_write_npar_config() 712 ret = qlcnic_set_nic_info(adapter, &nic_info); in qlcnic_sysfs_write_npar_config() 718 adapter->npars[index].min_bw = nic_info.min_tx_bw; in qlcnic_sysfs_write_npar_config() 719 adapter->npars[index].max_bw = nic_info.max_tx_bw; in qlcnic_sysfs_write_npar_config() 734 struct qlcnic_info nic_info; in qlcnic_sysfs_read_npar_config() local [all …]
|
D | qlcnic_sriov_pf.c | 507 struct qlcnic_info nic_info, pf_info, vp_info; in qlcnic_sriov_pf_init() local 536 err = qlcnic_get_nic_info(adapter, &nic_info, func); in qlcnic_sriov_pf_init() 548 ahw->physical_port = (u8) nic_info.phys_port; in qlcnic_sriov_pf_init() 549 ahw->switch_mode = nic_info.switch_mode; in qlcnic_sriov_pf_init() 550 ahw->max_mtu = nic_info.max_mtu; in qlcnic_sriov_pf_init() 551 ahw->capabilities = nic_info.capabilities; in qlcnic_sriov_pf_init() 1860 struct qlcnic_info nic_info; in qlcnic_sriov_set_vf_tx_rate() local 1897 if (qlcnic_sriov_get_vf_vport_info(adapter, &nic_info, vpid)) in qlcnic_sriov_set_vf_tx_rate() 1900 nic_info.max_tx_bw = max_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate() 1901 nic_info.min_tx_bw = min_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate() [all …]
|
D | qlcnic_83xx_init.c | 2276 struct qlcnic_info nic_info; in qlcnic_83xx_get_nic_configuration() local 2279 memset(&nic_info, 0, sizeof(struct qlcnic_info)); in qlcnic_83xx_get_nic_configuration() 2280 err = qlcnic_get_nic_info(adapter, &nic_info, ahw->pci_func); in qlcnic_83xx_get_nic_configuration() 2284 ahw->physical_port = (u8) nic_info.phys_port; in qlcnic_83xx_get_nic_configuration() 2285 ahw->switch_mode = nic_info.switch_mode; in qlcnic_83xx_get_nic_configuration() 2286 ahw->max_tx_ques = nic_info.max_tx_ques; in qlcnic_83xx_get_nic_configuration() 2287 ahw->max_rx_ques = nic_info.max_rx_ques; in qlcnic_83xx_get_nic_configuration() 2288 ahw->capabilities = nic_info.capabilities; in qlcnic_83xx_get_nic_configuration() 2289 ahw->max_mac_filters = nic_info.max_mac_filters; in qlcnic_83xx_get_nic_configuration() 2290 ahw->max_mtu = nic_info.max_mtu; in qlcnic_83xx_get_nic_configuration()
|
D | qlcnic_main.c | 1308 struct qlcnic_info nic_info; in qlcnic_initialize_nic() local 1311 memset(&nic_info, 0, sizeof(struct qlcnic_info)); in qlcnic_initialize_nic() 1312 err = qlcnic_get_nic_info(adapter, &nic_info, adapter->ahw->pci_func); in qlcnic_initialize_nic() 1316 adapter->ahw->physical_port = (u8)nic_info.phys_port; in qlcnic_initialize_nic() 1317 adapter->ahw->switch_mode = nic_info.switch_mode; in qlcnic_initialize_nic() 1318 adapter->ahw->max_tx_ques = nic_info.max_tx_ques; in qlcnic_initialize_nic() 1319 adapter->ahw->max_rx_ques = nic_info.max_rx_ques; in qlcnic_initialize_nic() 1320 adapter->ahw->capabilities = nic_info.capabilities; in qlcnic_initialize_nic() 1332 adapter->ahw->max_mac_filters = nic_info.max_mac_filters; in qlcnic_initialize_nic() 1333 adapter->ahw->max_mtu = nic_info.max_mtu; in qlcnic_initialize_nic() [all …]
|
D | qlcnic_sriov_common.c | 494 struct qlcnic_info nic_info; in qlcnic_sriov_vf_init_driver() local 497 err = qlcnic_sriov_get_vf_vport_info(adapter, &nic_info, 0); in qlcnic_sriov_vf_init_driver() 501 ahw->max_mc_count = nic_info.max_rx_mcast_mac_filters; in qlcnic_sriov_vf_init_driver() 503 err = qlcnic_get_nic_info(adapter, &nic_info, ahw->pci_func); in qlcnic_sriov_vf_init_driver() 515 ahw->physical_port = (u8) nic_info.phys_port; in qlcnic_sriov_vf_init_driver() 516 ahw->switch_mode = nic_info.switch_mode; in qlcnic_sriov_vf_init_driver() 517 ahw->max_mtu = nic_info.max_mtu; in qlcnic_sriov_vf_init_driver() 518 ahw->op_mode = nic_info.op_mode; in qlcnic_sriov_vf_init_driver() 519 ahw->capabilities = nic_info.capabilities; in qlcnic_sriov_vf_init_driver()
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_hw.c | 314 iowrite32(val, dev->nic_info.db + OCRDMA_DB_CQ_OFFSET); in ocrdma_ring_cq_db() 323 iowrite32(val, dev->nic_info.db + OCRDMA_DB_MQ_OFFSET); in ocrdma_ring_mq_db() 339 iowrite32(val, dev->nic_info.db + OCRDMA_DB_EQ_OFFSET); in ocrdma_ring_eq_db() 369 dma_free_coherent(&dev->nic_info.pdev->dev, q->size, q->va, q->dma); in ocrdma_free_q() 379 q->va = dma_alloc_coherent(&dev->nic_info.pdev->dev, q->size, in ocrdma_alloc_q() 423 status = be_roce_mcc_cmd(dev->nic_info.netdev, in ocrdma_mbx_delete_q() 447 status = be_roce_mcc_cmd(dev->nic_info.netdev, cmd, sizeof(*cmd), NULL, in ocrdma_mbx_create_eq() 483 if (dev->nic_info.intr_mode == BE_INTERRUPT_MODE_INTX) in ocrdma_get_irq() 484 irq = dev->nic_info.pdev->irq; in ocrdma_get_irq() 486 irq = dev->nic_info.msix.vector_list[eq->vector]; in ocrdma_get_irq() [all …]
|
D | ocrdma_verbs.c | 115 attr->vendor_id = dev->nic_info.pdev->vendor; in ocrdma_query_device() 116 attr->vendor_part_id = dev->nic_info.pdev->device; in ocrdma_query_device() 159 ndev = dev->nic_info.netdev; in ocrdma_get_netdev() 219 netdev = dev->nic_info.netdev; in ocrdma_query_port() 432 pd->dpp_enabled ? (dev->nic_info.db_page_size / in _ocrdma_alloc_pd() 543 struct pci_dev *pdev = dev->nic_info.pdev; in ocrdma_alloc_ucontext() 603 struct pci_dev *pdev = dev->nic_info.pdev; in ocrdma_dealloc_ucontext() 624 u64 unmapped_db = (u64) dev->nic_info.unmapped_db; in ocrdma_mmap() 636 dev->nic_info.db_total_size)) && in ocrdma_mmap() 637 (len <= dev->nic_info.db_page_size)) { in ocrdma_mmap() [all …]
|
D | ocrdma_main.c | 72 memcpy(&mac_addr[0], &dev->nic_info.mac_addr[0], ETH_ALEN); in ocrdma_get_guid() 189 dev->ibdev.dma_device = &dev->nic_info.pdev->dev; in ocrdma_register_device() 253 return scnprintf(buf, PAGE_SIZE, "0x%x\n", dev->nic_info.pdev->vendor); in show_rev() 305 memcpy(&dev->nic_info, dev_info, sizeof(*dev_info)); in ocrdma_add() 338 dev_name(&dev->nic_info.pdev->dev), hca_name(dev), in ocrdma_add() 342 dev_name(&dev->nic_info.pdev->dev), dev->id); in ocrdma_add()
|
D | ocrdma.h | 281 struct be_dev_info nic_info; member 547 switch (dev->nic_info.pdev->device) { in hca_name() 571 if (dev->nic_info.dev_family == 0xF && !dev->asic_id) { in ocrdma_get_asic_type() 573 dev->nic_info.pdev, in ocrdma_get_asic_type()
|
D | ocrdma_hw.h | 98 return dev->nic_info.unmapped_db + (pdid * dev->nic_info.db_page_size); in ocrdma_get_db_addr()
|
D | ocrdma_ah.c | 91 memcpy(ð.smac[0], &dev->nic_info.mac_addr[0], ETH_ALEN); in set_av_attr()
|
D | ocrdma_stats.c | 75 mem->va = dma_alloc_coherent(&dev->nic_info.pdev->dev, mem->size, in ocrdma_alloc_stats_mem() 99 dma_free_coherent(&dev->nic_info.pdev->dev, mem->size, in ocrdma_release_stats_mem()
|