• Home
  • Raw
  • Download

Lines Matching refs:oct_dev

110 	struct octeon_device *oct = lio->oct_dev;  in lio_get_settings()
148 oct = lio->oct_dev; in lio_get_drvinfo()
163 struct octeon_device *oct = lio->oct_dev; in lio_ethtool_get_channels()
185 struct octeon_device *oct_dev = lio->oct_dev; in lio_get_eeprom_len() local
189 board_info = (struct octeon_board_info *)(&oct_dev->boardinfo); in lio_get_eeprom_len()
202 struct octeon_device *oct_dev = lio->oct_dev; in lio_get_eeprom() local
209 eeprom->magic = oct_dev->pci_dev->vendor; in lio_get_eeprom()
210 board_info = (struct octeon_board_info *)(&oct_dev->boardinfo); in lio_get_eeprom()
223 struct octeon_device *oct = lio->oct_dev; in octnet_gpio_access()
241 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl, nparams); in octnet_gpio_access()
280 struct octeon_device *oct_dev = lio->oct_dev; in octnet_mdio45_access() local
288 octeon_alloc_soft_command(oct_dev, in octnet_mdio45_access()
301 mdio_cmd_ctx->octeon_id = lio_get_device_id(oct_dev); in octnet_mdio45_access()
309 octeon_prepare_soft_command(oct_dev, sc, OPCODE_NIC, OPCODE_NIC_MDIO45, in octnet_mdio45_access()
318 retval = octeon_send_soft_command(oct_dev, sc); in octnet_mdio45_access()
321 dev_err(&oct_dev->pci_dev->dev, in octnet_mdio45_access()
332 dev_err(&oct_dev->pci_dev->dev, "octnet mdio45 access failed\n"); in octnet_mdio45_access()
347 octeon_free_soft_command(oct_dev, sc); in octnet_mdio45_access()
356 struct octeon_device *oct = lio->oct_dev; in lio_set_phys_id()
459 struct octeon_device *oct = lio->oct_dev; in lio_ethtool_get_ringparam()
530 struct octeon_device *oct_dev = lio->oct_dev; in lio_get_ethtool_stats() local
534 if (!(oct_dev->io_qmask.iq & (1UL << j))) in lio_get_ethtool_stats()
537 CVM_CAST64(oct_dev->instr_queue[j]->stats.instr_posted); in lio_get_ethtool_stats()
540 oct_dev->instr_queue[j]->stats.instr_processed); in lio_get_ethtool_stats()
543 oct_dev->instr_queue[j]->stats.instr_dropped); in lio_get_ethtool_stats()
545 CVM_CAST64(oct_dev->instr_queue[j]->stats.bytes_sent); in lio_get_ethtool_stats()
547 CVM_CAST64(oct_dev->instr_queue[j]->stats.sgentry_sent); in lio_get_ethtool_stats()
549 readl(oct_dev->instr_queue[j]->inst_cnt_reg); in lio_get_ethtool_stats()
551 CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_done); in lio_get_ethtool_stats()
553 CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_iq_busy); in lio_get_ethtool_stats()
555 CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_dropped); in lio_get_ethtool_stats()
557 CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_tot_bytes); in lio_get_ethtool_stats()
562 if (!(oct_dev->io_qmask.oq & (1UL << j))) in lio_get_ethtool_stats()
564 data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.pkts_received); in lio_get_ethtool_stats()
565 data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.bytes_received); in lio_get_ethtool_stats()
567 CVM_CAST64(oct_dev->droq[j]->stats.dropped_nodispatch); in lio_get_ethtool_stats()
568 data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.dropped_nomem); in lio_get_ethtool_stats()
569 data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.dropped_toomany); in lio_get_ethtool_stats()
571 CVM_CAST64(oct_dev->droq[j]->stats.rx_pkts_received); in lio_get_ethtool_stats()
573 CVM_CAST64(oct_dev->droq[j]->stats.rx_bytes_received); in lio_get_ethtool_stats()
575 CVM_CAST64(oct_dev->droq[j]->stats.rx_dropped); in lio_get_ethtool_stats()
582 struct octeon_device *oct_dev = lio->oct_dev; in lio_get_strings() local
587 if (!(oct_dev->io_qmask.iq & (1UL << i))) in lio_get_strings()
598 if (!(oct_dev->io_qmask.oq & (1UL << i))) in lio_get_strings()
610 struct octeon_device *oct_dev = lio->oct_dev; in lio_get_sset_count() local
612 return (ARRAY_SIZE(oct_iq_stats_strings) * oct_dev->num_iqs) + in lio_get_sset_count()
613 (ARRAY_SIZE(oct_droq_stats_strings) * oct_dev->num_oqs); in lio_get_sset_count()
620 struct octeon_device *oct = lio->oct_dev; in lio_get_intr_coalesce()
669 static void octnet_intrmod_callback(struct octeon_device *oct_dev, in octnet_intrmod_callback() argument
676 oct_dev = cmd->oct_dev; in octnet_intrmod_callback()
679 dev_err(&oct_dev->pci_dev->dev, "intrmod config failed. Status: %llx\n", in octnet_intrmod_callback()
682 dev_info(&oct_dev->pci_dev->dev, in octnet_intrmod_callback()
684 oct_dev->intrmod.intrmod_enable); in octnet_intrmod_callback()
686 octeon_free_soft_command(oct_dev, sc); in octnet_intrmod_callback()
696 struct octeon_device *oct_dev = (struct octeon_device *)oct; in octnet_set_intrmod_cfg() local
700 octeon_alloc_soft_command(oct_dev, in octnet_set_intrmod_cfg()
715 cmd->oct_dev = oct_dev; in octnet_set_intrmod_cfg()
717 octeon_prepare_soft_command(oct_dev, sc, OPCODE_NIC, in octnet_set_intrmod_cfg()
724 retval = octeon_send_soft_command(oct_dev, sc); in octnet_set_intrmod_cfg()
726 octeon_free_soft_command(oct_dev, sc); in octnet_set_intrmod_cfg()
738 struct octeon_device *oct = lio->oct_dev; in oct_cfg_adaptive_intr()
804 struct octeon_device *oct = lio->oct_dev; in oct_cfg_rx_intrcnt()
829 struct octeon_device *oct = lio->oct_dev; in oct_cfg_rx_intrtime()
856 struct octeon_device *oct = lio->oct_dev; in lio_set_intr_coalesce()
950 struct octeon_device *oct = lio->oct_dev; in lio_set_settings()
1005 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl, nparams); in lio_set_settings()
1171 struct octeon_device *oct = lio->oct_dev; in lio_get_regs()