Lines Matching refs:oct_dev

472 			lio->oct_dev->num_iqs].s.q_no;  in check_txq_status()
473 if (octnet_iq_is_full(lio->oct_dev, iq)) in check_txq_status()
477 INCR_INSTRQUEUE_PKT_COUNT(lio->oct_dev, iq, in check_txq_status()
533 struct octeon_device *oct = lio->oct_dev; in setup_link_status_change_wq()
572 struct octeon_device *oct = lio->oct_dev; in update_link_status()
616 struct octeon_device *oct = lio->oct_dev; in lio_sync_octeon_time()
666 struct octeon_device *oct = lio->oct_dev; in setup_sync_octeon_time_wq()
832 struct octeon_device *oct_dev = NULL; in liquidio_probe() local
835 oct_dev = octeon_allocate_device(pdev->device, in liquidio_probe()
837 if (!oct_dev) { in liquidio_probe()
843 oct_dev->msix_on = LIO_FLAG_MSIX_ENABLED; in liquidio_probe()
848 oct_dev->ptp_enable = true; in liquidio_probe()
850 oct_dev->ptp_enable = false; in liquidio_probe()
856 pci_set_drvdata(pdev, oct_dev); in liquidio_probe()
859 oct_dev->pci_dev = (void *)pdev; in liquidio_probe()
861 oct_dev->subsystem_id = pdev->subsystem_vendor | in liquidio_probe()
864 hs = &handshake[oct_dev->octeon_id]; in liquidio_probe()
869 if (oct_dev->octeon_id == 0) in liquidio_probe()
873 if (octeon_device_init(oct_dev)) { in liquidio_probe()
879 if (OCTEON_CN23XX_PF(oct_dev)) { in liquidio_probe()
882 if (atomic_read(oct_dev->adapter_refcount) == 1) { in liquidio_probe()
890 oct_dev->watchdog_task = kthread_run(liquidio_watchdog, in liquidio_probe()
891 oct_dev, in liquidio_probe()
894 if (IS_ERR(oct_dev->watchdog_task)) { in liquidio_probe()
895 oct_dev->watchdog_task = NULL; in liquidio_probe()
896 dev_err(&oct_dev->pci_dev->dev, in liquidio_probe()
904 oct_dev->rx_pause = 1; in liquidio_probe()
905 oct_dev->tx_pause = 1; in liquidio_probe()
907 dev_dbg(&oct_dev->pci_dev->dev, "Device is ready\n"); in liquidio_probe()
1154 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; in send_rx_ctrl_cmd()
1315 struct octeon_device *oct_dev = pci_get_drvdata(pdev); in liquidio_remove() local
1317 dev_dbg(&oct_dev->pci_dev->dev, "Stopping device\n"); in liquidio_remove()
1319 if (oct_dev->watchdog_task) in liquidio_remove()
1320 kthread_stop(oct_dev->watchdog_task); in liquidio_remove()
1322 if (!oct_dev->octeon_id && in liquidio_remove()
1323 oct_dev->fw_info.app_cap_flags & LIQUIDIO_SWITCHDEV_CAP) in liquidio_remove()
1326 if (oct_dev->app_mode && (oct_dev->app_mode == CVM_DRV_NIC_APP)) in liquidio_remove()
1327 liquidio_stop_nic_module(oct_dev); in liquidio_remove()
1332 octeon_destroy_resources(oct_dev); in liquidio_remove()
1334 dev_info(&oct_dev->pci_dev->dev, "Device removed\n"); in liquidio_remove()
1339 octeon_free_device_mem(oct_dev); in liquidio_remove()
1424 dma_unmap_single(&lio->oct_dev->pci_dev->dev, finfo->dptr, skb->len, in free_netbuf()
1448 dma_unmap_single(&lio->oct_dev->pci_dev->dev, in free_netsgbuf()
1456 dma_unmap_page(&lio->oct_dev->pci_dev->dev, in free_netsgbuf()
1462 iq = skb_iq(lio->oct_dev, skb); in free_netsgbuf()
1491 dma_unmap_single(&lio->oct_dev->pci_dev->dev, in free_netsgbuf_with_resp()
1499 dma_unmap_page(&lio->oct_dev->pci_dev->dev, in free_netsgbuf_with_resp()
1505 iq = skb_iq(lio->oct_dev, skb); in free_netsgbuf_with_resp()
1522 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; in liquidio_ptp_adjfreq()
1579 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; in liquidio_ptp_gettime()
1602 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; in liquidio_ptp_settime()
1635 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; in oct_ptp_open()
1741 struct octeon_device *oct = lio->oct_dev; in setup_tx_poll_fn()
1774 struct octeon_device *oct = lio->oct_dev; in liquidio_open()
1855 struct octeon_device *oct = lio->oct_dev; in liquidio_stop()
1956 struct octeon_device *oct = lio->oct_dev; in liquidio_set_mcast_list()
1990 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_mcast_list()
2006 struct octeon_device *oct = lio->oct_dev; in liquidio_set_mac()
2026 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_mac()
2056 oct = lio->oct_dev; in liquidio_get_stats64()
2183 if (lio->oct_dev->ptp_enable) in liquidio_ioctl()
2210 oct = lio->oct_dev; in handle_timestamp()
2322 oct = lio->oct_dev; in liquidio_xmit()
2570 struct octeon_device *oct = lio->oct_dev; in liquidio_vlan_rx_add_vid()
2583 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vlan_rx_add_vid()
2599 struct octeon_device *oct = lio->oct_dev; in liquidio_vlan_rx_kill_vid()
2612 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vlan_rx_kill_vid()
2633 struct octeon_device *oct = lio->oct_dev; in liquidio_set_rxcsum_command()
2646 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_rxcsum_command()
2670 struct octeon_device *oct = lio->oct_dev; in liquidio_vxlan_port_command()
2684 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vxlan_port_command()
2818 struct octeon_device *oct = lio->oct_dev; in __liquidio_set_vf_mac()
2858 struct octeon_device *oct = lio->oct_dev; in liquidio_set_vf_mac()
2875 struct octeon_device *oct = lio->oct_dev; in liquidio_set_vf_spoofchk()
2931 struct octeon_device *oct = lio->oct_dev; in liquidio_set_vf_vlan()
2983 struct octeon_device *oct = lio->oct_dev; in liquidio_get_vf_config()
3011 struct octeon_device *oct = lio->oct_dev; in liquidio_send_vf_trust_cmd()
3049 struct octeon_device *oct = lio->oct_dev; in liquidio_set_vf_trust()
3101 struct octeon_device *oct = lio->oct_dev; in liquidio_set_vf_link_state()
3189 struct octeon_device *oct = lio->oct_dev; in liquidio_get_port_parent_id()
3204 struct octeon_device *oct = lio->oct_dev; in liquidio_get_vf_stats()
3619 lio->oct_dev = octeon_dev; in setup_nic_devices()
3673 if (lio->oct_dev->chip_id == OCTEON_CN23XX_PF_VID) in setup_nic_devices()