Lines Matching refs:octeon_dev

1937 static int setup_nic_devices(struct octeon_device *octeon_dev)  in setup_nic_devices()  argument
1951 ifidx_or_pfnum = octeon_dev->pf_num; in setup_nic_devices()
1954 octeon_register_dispatch_fn(octeon_dev, OPCODE_NIC, OPCODE_NIC_INFO, in setup_nic_devices()
1955 lio_nic_info, octeon_dev); in setup_nic_devices()
1960 octeon_register_reqtype_free_fn(octeon_dev, REQTYPE_NORESP_NET, in setup_nic_devices()
1963 octeon_register_reqtype_free_fn(octeon_dev, REQTYPE_NORESP_NET_SG, in setup_nic_devices()
1966 octeon_register_reqtype_free_fn(octeon_dev, REQTYPE_RESP_NET_SG, in setup_nic_devices()
1969 for (i = 0; i < octeon_dev->ifcount; i++) { in setup_nic_devices()
1973 octeon_alloc_soft_command(octeon_dev, data_size, in setup_nic_devices()
1985 if_cfg.s.num_iqueues = octeon_dev->sriov_info.rings_per_vf; in setup_nic_devices()
1986 if_cfg.s.num_oqueues = octeon_dev->sriov_info.rings_per_vf; in setup_nic_devices()
1991 octeon_prepare_soft_command(octeon_dev, sc, OPCODE_NIC, in setup_nic_devices()
1998 retval = octeon_send_soft_command(octeon_dev, sc); in setup_nic_devices()
2000 dev_err(&octeon_dev->pci_dev->dev, in setup_nic_devices()
2003 octeon_free_soft_command(octeon_dev, sc); in setup_nic_devices()
2010 retval = wait_for_sc_completion_timeout(octeon_dev, sc, 0); in setup_nic_devices()
2016 dev_err(&octeon_dev->pci_dev->dev, in setup_nic_devices()
2022 snprintf(octeon_dev->fw_info.liquidio_firmware_version, in setup_nic_devices()
2033 dev_err(&octeon_dev->pci_dev->dev, in setup_nic_devices()
2039 dev_dbg(&octeon_dev->pci_dev->dev, in setup_nic_devices()
2047 dev_err(&octeon_dev->pci_dev->dev, "Device allocation failed\n"); in setup_nic_devices()
2052 SET_NETDEV_DEV(netdev, &octeon_dev->pci_dev->dev); in setup_nic_devices()
2065 props = &octeon_dev->props[i]; in setup_nic_devices()
2134 lio->oct_dev = octeon_dev; in setup_nic_devices()
2138 dev_dbg(&octeon_dev->pci_dev->dev, in setup_nic_devices()
2150 if (liquidio_setup_io_queues(octeon_dev, i, in setup_nic_devices()
2153 dev_err(&octeon_dev->pci_dev->dev, "I/O queues creation failed\n"); in setup_nic_devices()
2162 octeon_dev->fn_list.enable_interrupt(octeon_dev, in setup_nic_devices()
2171 lio->tx_qsize = octeon_get_tx_qsize(octeon_dev, lio->txq); in setup_nic_devices()
2172 lio->rx_qsize = octeon_get_rx_qsize(octeon_dev, lio->rxq); in setup_nic_devices()
2174 if (lio_setup_glists(octeon_dev, lio, num_iqueues)) { in setup_nic_devices()
2175 dev_err(&octeon_dev->pci_dev->dev, in setup_nic_devices()
2183 octeon_dev->priv_flags = OCT_PRIV_FLAG_DEFAULT; in setup_nic_devices()
2185 octeon_dev->priv_flags = 0x0; in setup_nic_devices()
2199 dev_err(&octeon_dev->pci_dev->dev, "Device registration failed\n"); in setup_nic_devices()
2203 dev_dbg(&octeon_dev->pci_dev->dev, in setup_nic_devices()
2220 dev_dbg(&octeon_dev->pci_dev->dev, in setup_nic_devices()
2223 octeon_dev->no_speed_setting = 1; in setup_nic_devices()
2231 dev_err(&octeon_dev->pci_dev->dev, in setup_nic_devices()
2233 liquidio_destroy_nic_device(octeon_dev, i); in setup_nic_devices()