lio                38 drivers/net/ethernet/cavium/liquidio/lio_core.c void lio_delete_glists(struct lio *lio)
lio                43 drivers/net/ethernet/cavium/liquidio/lio_core.c 	kfree(lio->glist_lock);
lio                44 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->glist_lock = NULL;
lio                46 drivers/net/ethernet/cavium/liquidio/lio_core.c 	if (!lio->glist)
lio                49 drivers/net/ethernet/cavium/liquidio/lio_core.c 	for (i = 0; i < lio->oct_dev->num_iqs; i++) {
lio                52 drivers/net/ethernet/cavium/liquidio/lio_core.c 			    lio_list_delete_head(&lio->glist[i]);
lio                56 drivers/net/ethernet/cavium/liquidio/lio_core.c 		if (lio->glists_virt_base && lio->glists_virt_base[i] &&
lio                57 drivers/net/ethernet/cavium/liquidio/lio_core.c 		    lio->glists_dma_base && lio->glists_dma_base[i]) {
lio                58 drivers/net/ethernet/cavium/liquidio/lio_core.c 			lio_dma_free(lio->oct_dev,
lio                59 drivers/net/ethernet/cavium/liquidio/lio_core.c 				     lio->glist_entry_size * lio->tx_qsize,
lio                60 drivers/net/ethernet/cavium/liquidio/lio_core.c 				     lio->glists_virt_base[i],
lio                61 drivers/net/ethernet/cavium/liquidio/lio_core.c 				     lio->glists_dma_base[i]);
lio                65 drivers/net/ethernet/cavium/liquidio/lio_core.c 	kfree(lio->glists_virt_base);
lio                66 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->glists_virt_base = NULL;
lio                68 drivers/net/ethernet/cavium/liquidio/lio_core.c 	kfree(lio->glists_dma_base);
lio                69 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->glists_dma_base = NULL;
lio                71 drivers/net/ethernet/cavium/liquidio/lio_core.c 	kfree(lio->glist);
lio                72 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->glist = NULL;
lio                79 drivers/net/ethernet/cavium/liquidio/lio_core.c int lio_setup_glists(struct octeon_device *oct, struct lio *lio, int num_iqs)
lio                84 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->glist_lock =
lio                85 drivers/net/ethernet/cavium/liquidio/lio_core.c 	    kcalloc(num_iqs, sizeof(*lio->glist_lock), GFP_KERNEL);
lio                86 drivers/net/ethernet/cavium/liquidio/lio_core.c 	if (!lio->glist_lock)
lio                89 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->glist =
lio                90 drivers/net/ethernet/cavium/liquidio/lio_core.c 	    kcalloc(num_iqs, sizeof(*lio->glist), GFP_KERNEL);
lio                91 drivers/net/ethernet/cavium/liquidio/lio_core.c 	if (!lio->glist) {
lio                92 drivers/net/ethernet/cavium/liquidio/lio_core.c 		kfree(lio->glist_lock);
lio                93 drivers/net/ethernet/cavium/liquidio/lio_core.c 		lio->glist_lock = NULL;
lio                97 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->glist_entry_size =
lio               103 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->glists_virt_base = kcalloc(num_iqs, sizeof(*lio->glists_virt_base),
lio               105 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->glists_dma_base = kcalloc(num_iqs, sizeof(*lio->glists_dma_base),
lio               108 drivers/net/ethernet/cavium/liquidio/lio_core.c 	if (!lio->glists_virt_base || !lio->glists_dma_base) {
lio               109 drivers/net/ethernet/cavium/liquidio/lio_core.c 		lio_delete_glists(lio);
lio               116 drivers/net/ethernet/cavium/liquidio/lio_core.c 		spin_lock_init(&lio->glist_lock[i]);
lio               118 drivers/net/ethernet/cavium/liquidio/lio_core.c 		INIT_LIST_HEAD(&lio->glist[i]);
lio               120 drivers/net/ethernet/cavium/liquidio/lio_core.c 		lio->glists_virt_base[i] =
lio               122 drivers/net/ethernet/cavium/liquidio/lio_core.c 				      lio->glist_entry_size * lio->tx_qsize,
lio               123 drivers/net/ethernet/cavium/liquidio/lio_core.c 				      &lio->glists_dma_base[i]);
lio               125 drivers/net/ethernet/cavium/liquidio/lio_core.c 		if (!lio->glists_virt_base[i]) {
lio               126 drivers/net/ethernet/cavium/liquidio/lio_core.c 			lio_delete_glists(lio);
lio               130 drivers/net/ethernet/cavium/liquidio/lio_core.c 		for (j = 0; j < lio->tx_qsize; j++) {
lio               138 drivers/net/ethernet/cavium/liquidio/lio_core.c 			g->sg = lio->glists_virt_base[i] +
lio               139 drivers/net/ethernet/cavium/liquidio/lio_core.c 				(j * lio->glist_entry_size);
lio               141 drivers/net/ethernet/cavium/liquidio/lio_core.c 			g->sg_dma_ptr = lio->glists_dma_base[i] +
lio               142 drivers/net/ethernet/cavium/liquidio/lio_core.c 					(j * lio->glist_entry_size);
lio               144 drivers/net/ethernet/cavium/liquidio/lio_core.c 			list_add_tail(&g->list, &lio->glist[i]);
lio               147 drivers/net/ethernet/cavium/liquidio/lio_core.c 		if (j != lio->tx_qsize) {
lio               148 drivers/net/ethernet/cavium/liquidio/lio_core.c 			lio_delete_glists(lio);
lio               158 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio = GET_LIO(netdev);
lio               159 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct octeon_device *oct = lio->oct_dev;
lio               168 drivers/net/ethernet/cavium/liquidio/lio_core.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio               172 drivers/net/ethernet/cavium/liquidio/lio_core.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio               253 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio = GET_LIO(netdev);
lio               254 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct octeon_device *oct = lio->oct_dev;
lio               274 drivers/net/ethernet/cavium/liquidio/lio_core.c 				netif_info(lio, probe, lio->netdev,
lio               278 drivers/net/ethernet/cavium/liquidio/lio_core.c 			netif_info(lio, probe, lio->netdev,
lio               285 drivers/net/ethernet/cavium/liquidio/lio_core.c 		netif_info(lio, probe, lio->netdev, "LED Flashing visual identification\n");
lio               290 drivers/net/ethernet/cavium/liquidio/lio_core.c 		netif_info(lio, probe, lio->netdev, "LED Flashing visual identification\n");
lio               343 drivers/net/ethernet/cavium/liquidio/lio_core.c 			netif_info(lio, probe, lio->netdev,
lio               347 drivers/net/ethernet/cavium/liquidio/lio_core.c 			netif_info(lio, probe, lio->netdev,
lio               357 drivers/net/ethernet/cavium/liquidio/lio_core.c 			netif_info(lio, probe, lio->netdev,
lio               361 drivers/net/ethernet/cavium/liquidio/lio_core.c 			netif_info(lio, probe, lio->netdev,
lio               371 drivers/net/ethernet/cavium/liquidio/lio_core.c 			netif_info(lio, probe, lio->netdev,
lio               376 drivers/net/ethernet/cavium/liquidio/lio_core.c 			netif_info(lio, probe, lio->netdev,
lio               383 drivers/net/ethernet/cavium/liquidio/lio_core.c 		netif_info(lio, probe, lio->netdev, "Set RX/TX flow control parameters\n");
lio               387 drivers/net/ethernet/cavium/liquidio/lio_core.c 		netif_info(lio, probe, lio->netdev, "Queue count updated to %d\n",
lio               401 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio;
lio               406 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio = GET_LIO(netdev);
lio               408 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->linfo.macaddr_is_admin_asgnd = true;
lio               413 drivers/net/ethernet/cavium/liquidio/lio_core.c 		ether_addr_copy(((u8 *)&lio->linfo.hw_addr) + 2, mac);
lio               432 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio = GET_LIO(netdev);
lio               433 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct cavium_wq *wq = &lio->rxq_status_wq[droq->q_no];
lio               442 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio = (struct lio *)wk->ctxptr;
lio               443 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct octeon_device *oct = lio->oct_dev;
lio               447 drivers/net/ethernet/cavium/liquidio/lio_core.c 	if (!ifstate_check(lio, LIO_IFSTATE_RUNNING) || !droq)
lio               456 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio = GET_LIO(netdev);
lio               457 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct octeon_device *oct = lio->oct_dev;
lio               462 drivers/net/ethernet/cavium/liquidio/lio_core.c 		q_no = lio->linfo.rxpciq[q].s.q_no;
lio               463 drivers/net/ethernet/cavium/liquidio/lio_core.c 		wq = &lio->rxq_status_wq[q_no];
lio               473 drivers/net/ethernet/cavium/liquidio/lio_core.c 		wq->wk.ctxptr = lio;
lio               482 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio = GET_LIO(netdev);
lio               483 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct octeon_device *oct = lio->oct_dev;
lio               488 drivers/net/ethernet/cavium/liquidio/lio_core.c 		wq = &lio->rxq_status_wq[q_no];
lio               503 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio;
lio               513 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio = GET_LIO(netdev);
lio               515 drivers/net/ethernet/cavium/liquidio/lio_core.c 	    lio->linfo.link.s.link_up &&
lio               518 drivers/net/ethernet/cavium/liquidio/lio_core.c 		INCR_INSTRQUEUE_PKT_COUNT(lio->oct_dev, iq_num,
lio               585 drivers/net/ethernet/cavium/liquidio/lio_core.c 		struct lio *lio = GET_LIO(netdev);
lio               586 drivers/net/ethernet/cavium/liquidio/lio_core.c 		struct octeon_device *oct = lio->oct_dev;
lio               589 drivers/net/ethernet/cavium/liquidio/lio_core.c 		if (!ifstate_check(lio, LIO_IFSTATE_RUNNING)) {
lio               633 drivers/net/ethernet/cavium/liquidio/lio_core.c 					(lio,
lio               644 drivers/net/ethernet/cavium/liquidio/lio_core.c 							    lio->ptp_adjust);
lio               813 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio;
lio               820 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio = GET_LIO(netdev);
lio               834 drivers/net/ethernet/cavium/liquidio/lio_core.c 		q_no = lio->linfo.rxpciq[q].s.q_no;
lio               841 drivers/net/ethernet/cavium/liquidio/lio_core.c 						lio->ifidx),
lio               843 drivers/net/ethernet/cavium/liquidio/lio_core.c 						   lio->ifidx),
lio               879 drivers/net/ethernet/cavium/liquidio/lio_core.c 		    octeon_get_conf(octeon_dev), lio->ifidx);
lio               881 drivers/net/ethernet/cavium/liquidio/lio_core.c 					 lio->linfo.txpciq[q], num_tx_descs,
lio              1206 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio = GET_LIO(netdev);
lio              1207 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct octeon_device *oct = lio->oct_dev;
lio              1215 drivers/net/ethernet/cavium/liquidio/lio_core.c 		netif_info(lio, rx_err, lio->netdev,
lio              1231 drivers/net/ethernet/cavium/liquidio/lio_core.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1238 drivers/net/ethernet/cavium/liquidio/lio_core.c 		netif_info(lio, rx_err, lio->netdev, "Failed to change MTU\n");
lio              1255 drivers/net/ethernet/cavium/liquidio/lio_core.c 	lio->mtu = new_mtu;
lio              1383 drivers/net/ethernet/cavium/liquidio/lio_core.c static int lio_fetch_vf_stats(struct lio *lio)
lio              1385 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              1410 drivers/net/ethernet/cavium/liquidio/lio_core.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1449 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct lio *lio = wk->ctxptr;
lio              1450 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              1461 drivers/net/ethernet/cavium/liquidio/lio_core.c 			lio_fetch_vf_stats(lio);
lio              1485 drivers/net/ethernet/cavium/liquidio/lio_core.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1508 drivers/net/ethernet/cavium/liquidio/lio_core.c 	if (ifstate_check(lio, LIO_IFSTATE_RUNNING))
lio              1509 drivers/net/ethernet/cavium/liquidio/lio_core.c 		schedule_delayed_work(&lio->stats_wk.work, time_in_jiffies);
lio              1514 drivers/net/ethernet/cavium/liquidio/lio_core.c int liquidio_set_speed(struct lio *lio, int speed)
lio              1516 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct octeon_device *oct = lio->oct_dev;
lio              1551 drivers/net/ethernet/cavium/liquidio/lio_core.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1591 drivers/net/ethernet/cavium/liquidio/lio_core.c int liquidio_get_speed(struct lio *lio)
lio              1593 drivers/net/ethernet/cavium/liquidio/lio_core.c 	struct octeon_device *oct = lio->oct_dev;
lio              1617 drivers/net/ethernet/cavium/liquidio/lio_core.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1664 drivers/net/ethernet/cavium/liquidio/lio_core.c int liquidio_set_fec(struct lio *lio, int on_off)
lio              1673 drivers/net/ethernet/cavium/liquidio/lio_core.c 	oct = lio->oct_dev;
lio              1675 drivers/net/ethernet/cavium/liquidio/lio_core.c 	if (oct->props[lio->ifidx].fec == on_off)
lio              1712 drivers/net/ethernet/cavium/liquidio/lio_core.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1734 drivers/net/ethernet/cavium/liquidio/lio_core.c 		oct->props[lio->ifidx].fec = var;
lio              1736 drivers/net/ethernet/cavium/liquidio/lio_core.c 			oct->props[lio->ifidx].fec = 1;
lio              1738 drivers/net/ethernet/cavium/liquidio/lio_core.c 			oct->props[lio->ifidx].fec = 0;
lio              1743 drivers/net/ethernet/cavium/liquidio/lio_core.c 	if (oct->props[lio->ifidx].fec !=
lio              1744 drivers/net/ethernet/cavium/liquidio/lio_core.c 	    oct->props[lio->ifidx].fec_boot) {
lio              1747 drivers/net/ethernet/cavium/liquidio/lio_core.c 			oct->props[lio->ifidx].fec ? "on" : "off");
lio              1753 drivers/net/ethernet/cavium/liquidio/lio_core.c int liquidio_get_fec(struct lio *lio)
lio              1762 drivers/net/ethernet/cavium/liquidio/lio_core.c 	oct = lio->oct_dev;
lio              1781 drivers/net/ethernet/cavium/liquidio/lio_core.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1801 drivers/net/ethernet/cavium/liquidio/lio_core.c 		oct->props[lio->ifidx].fec = 1;
lio              1803 drivers/net/ethernet/cavium/liquidio/lio_core.c 		oct->props[lio->ifidx].fec = 0;
lio              1807 drivers/net/ethernet/cavium/liquidio/lio_core.c 	if (oct->props[lio->ifidx].fec !=
lio              1808 drivers/net/ethernet/cavium/liquidio/lio_core.c 	    oct->props[lio->ifidx].fec_boot) {
lio              1811 drivers/net/ethernet/cavium/liquidio/lio_core.c 			oct->props[lio->ifidx].fec ? "on" : "off");
lio               217 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio               218 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio               221 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	linfo = &lio->linfo;
lio               282 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 					liquidio_get_speed(lio);
lio               283 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 					liquidio_get_fec(lio);
lio               319 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 				if (oct->props[lio->ifidx].fec == 1) {
lio               397 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio               401 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	oct = lio->oct_dev;
lio               403 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	linfo = &lio->linfo;
lio               426 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	liquidio_set_speed(lio, speed / 1000);
lio               437 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio;
lio               440 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio = GET_LIO(netdev);
lio               441 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	oct = lio->oct_dev;
lio               455 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio;
lio               457 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio = GET_LIO(netdev);
lio               458 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	oct = lio->oct_dev;
lio               471 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio               472 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio               482 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio               486 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio               500 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(dev);
lio               501 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio               510 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		rx_count = CFG_GET_NUM_RXQS_NIC_IF(conf6x, lio->ifidx);
lio               511 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		tx_count = CFG_GET_NUM_TXQS_NIC_IF(conf6x, lio->ifidx);
lio               514 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			max_combined = lio->linfo.num_txpciq;
lio               606 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(dev);
lio               607 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio               623 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			max_combined = lio->linfo.num_txpciq;
lio               649 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	ifstate_set(lio, LIO_IFSTATE_RESETTING);
lio               662 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	ifstate_reset(lio, LIO_IFSTATE_RESETTING);
lio               670 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio               671 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio               687 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio               688 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio               706 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio               707 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio               717 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio               721 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio               733 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio               734 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio               743 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio               747 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio               761 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c octnet_mdio45_access(struct lio *lio, int op, int loc, int *value)
lio               763 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio               786 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio               832 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio               833 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio               838 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	linfo = &lio->linfo;
lio               852 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			ret = octnet_mdio45_access(lio, 0,
lio               854 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 						   &lio->phy_beacon_val);
lio               858 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			ret = octnet_mdio45_access(lio, 0,
lio               860 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 						   &lio->led_ctrl_val);
lio               866 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			ret = octnet_mdio45_access(lio, 1,
lio               873 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			ret = octnet_mdio45_access(lio, 1,
lio               922 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			ret = octnet_mdio45_access(lio, 1,
lio               924 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 						   &lio->led_ctrl_val);
lio               928 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			ret = octnet_mdio45_access(lio, 1,
lio               930 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 						   &lio->phy_beacon_val);
lio               953 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio               954 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio               958 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	if (ifstate_check(lio, LIO_IFSTATE_RESETTING))
lio               966 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		rx_pending = CFG_GET_NUM_RX_DESCS_NIC_IF(conf6x, lio->ifidx);
lio               967 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		tx_pending = CFG_GET_NUM_TX_DESCS_NIC_IF(conf6x, lio->ifidx);
lio               985 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c static int lio_23xx_reconfigure_queue_count(struct lio *lio)
lio               987 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              1055 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->ifidx = ifidx_or_pfnum;
lio              1056 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->linfo.num_rxpciq = hweight64(resp->cfg_info.iqmask);
lio              1057 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->linfo.num_txpciq = hweight64(resp->cfg_info.iqmask);
lio              1058 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	for (j = 0; j < lio->linfo.num_rxpciq; j++) {
lio              1059 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		lio->linfo.rxpciq[j].u64 =
lio              1063 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	for (j = 0; j < lio->linfo.num_txpciq; j++) {
lio              1064 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		lio->linfo.txpciq[j].u64 =
lio              1068 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->linfo.hw_addr = resp->cfg_info.linfo.hw_addr;
lio              1069 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->linfo.gmxport = resp->cfg_info.linfo.gmxport;
lio              1070 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64;
lio              1071 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->txq = lio->linfo.txpciq[0].s.q_no;
lio              1072 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->rxq = lio->linfo.rxpciq[0].s.q_no;
lio              1075 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		 lio->linfo.num_rxpciq);
lio              1084 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1085 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              1141 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		lio_delete_glists(lio);
lio              1223 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			if (lio_23xx_reconfigure_queue_count(lio))
lio              1235 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		if (lio_setup_glists(oct, lio, num_qs)) {
lio              1260 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1261 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              1281 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	ifstate_set(lio, LIO_IFSTATE_RESETTING);
lio              1290 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		CFG_SET_NUM_TX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx,
lio              1293 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		CFG_SET_NUM_RX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx,
lio              1302 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	ifstate_reset(lio, LIO_IFSTATE_RESETTING);
lio              1308 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		CFG_SET_NUM_TX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx,
lio              1311 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		CFG_SET_NUM_RX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx,
lio              1318 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1320 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	return lio->msg_enable;
lio              1325 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1327 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	if ((msglvl ^ lio->msg_enable) & NETIF_MSG_HW) {
lio              1336 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->msg_enable = msglvl;
lio              1341 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1343 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->msg_enable = msglvl;
lio              1352 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1353 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              1367 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1368 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              1370 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct oct_link_info *linfo = &lio->linfo;
lio              1391 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1411 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              1429 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1430 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              1434 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	if (ifstate_check(lio, LIO_IFSTATE_RESETTING))
lio              1631 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	data[i++] = CVM_CAST64(lio->link_changes);
lio              1719 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1720 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              1723 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	if (ifstate_check(lio, LIO_IFSTATE_RESETTING))
lio              1753 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	data[i++] = CVM_CAST64(lio->link_changes);
lio              1756 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		j = lio->linfo.txpciq[vj].s.q_no;
lio              1798 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		j = lio->linfo.rxpciq[vj].s.q_no;
lio              1826 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c static void lio_get_priv_flags_strings(struct lio *lio, u8 *data)
lio              1828 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              1843 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		netif_info(lio, drv, lio->netdev, "Unknown Chip !!\n");
lio              1850 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1851 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              1887 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		lio_get_priv_flags_strings(lio, data);
lio              1890 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		netif_info(lio, drv, lio->netdev, "Unknown Stringset !!\n");
lio              1899 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1900 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              1935 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		lio_get_priv_flags_strings(lio, data);
lio              1938 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		netif_info(lio, drv, lio->netdev, "Unknown Stringset !!\n");
lio              1943 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c static int lio_get_priv_flags_ss_count(struct lio *lio)
lio              1945 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              1955 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		netif_info(lio, drv, lio->netdev, "Unknown Chip !!\n");
lio              1962 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1963 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              1971 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		return lio_get_priv_flags_ss_count(lio);
lio              1979 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              1980 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              1988 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		return lio_get_priv_flags_ss_count(lio);
lio              1995 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c static int octnet_get_intrmod_cfg(struct lio *lio,
lio              2001 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              2015 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2052 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c static int octnet_set_intrmod_cfg(struct lio *lio,
lio              2058 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct_dev = lio->oct_dev;
lio              2074 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2114 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              2115 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              2119 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	if (octnet_get_intrmod_cfg(lio, &intrmod_cfg))
lio              2146 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		iq = oct->instr_queue[lio->linfo.txpciq[0].s.q_no];
lio              2151 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		netif_info(lio, drv, lio->netdev, "Unknown Chip !!\n");
lio              2185 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c static int oct_cfg_adaptive_intr(struct lio *lio,
lio              2213 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	ret = octnet_set_intrmod_cfg(lio, intrmod_cfg);
lio              2219 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_cfg_rx_intrcnt(struct lio *lio,
lio              2223 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              2292 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c static int oct_cfg_rx_intrtime(struct lio *lio,
lio              2296 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              2371 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_cfg_tx_intrcnt(struct lio *lio,
lio              2375 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              2418 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              2420 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              2432 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			for (j = 0; j < lio->linfo.num_txpciq; j++) {
lio              2433 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 				q_no = lio->linfo.txpciq[j].s.q_no;
lio              2458 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	ret = oct_cfg_adaptive_intr(lio, &intrmod, intr_coal);
lio              2461 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		ret = oct_cfg_rx_intrtime(lio, &intrmod, intr_coal);
lio              2465 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		ret = oct_cfg_rx_intrcnt(lio, &intrmod, intr_coal);
lio              2476 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		ret = oct_cfg_tx_intrcnt(lio, &intrmod, intr_coal);
lio              2492 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              2504 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	if (lio->ptp_clock)
lio              2505 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		info->phc_index = ptp_clock_index(lio->ptp_clock);
lio              2524 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(dev);
lio              2525 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              3009 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(dev);
lio              3011 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              3038 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              3040 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	return lio->oct_dev->priv_flags;
lio              3045 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              3048 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio_set_priv_flag(lio->oct_dev, OCT_PRIV_FLAG_TX_BYTES,
lio              3056 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              3057 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              3067 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		liquidio_get_fec(lio);
lio              3069 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		if (oct->props[lio->ifidx].fec == 1)
lio              3081 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              3082 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio              3090 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			liquidio_set_fec(lio, 0);
lio              3092 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			liquidio_set_fec(lio, 1);
lio              3156 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct lio *lio = GET_LIO(netdev);
lio              3157 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	struct octeon_device *oct = lio->oct_dev;
lio               492 drivers/net/ethernet/cavium/liquidio/lio_main.c static inline int check_txq_status(struct lio *lio)
lio               494 drivers/net/ethernet/cavium/liquidio/lio_main.c 	int numqs = lio->netdev->real_num_tx_queues;
lio               500 drivers/net/ethernet/cavium/liquidio/lio_main.c 		iq = lio->linfo.txpciq[q %
lio               501 drivers/net/ethernet/cavium/liquidio/lio_main.c 			lio->oct_dev->num_iqs].s.q_no;
lio               502 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (octnet_iq_is_full(lio->oct_dev, iq))
lio               504 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (__netif_subqueue_stopped(lio->netdev, q)) {
lio               505 drivers/net/ethernet/cavium/liquidio/lio_main.c 			netif_wake_subqueue(lio->netdev, q);
lio               506 drivers/net/ethernet/cavium/liquidio/lio_main.c 			INCR_INSTRQUEUE_PKT_COUNT(lio->oct_dev, iq,
lio               521 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio               523 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (!ifstate_check(lio, LIO_IFSTATE_RESETTING) &&
lio               524 drivers/net/ethernet/cavium/liquidio/lio_main.c 	    ifstate_check(lio, LIO_IFSTATE_REGISTERED)) {
lio               525 drivers/net/ethernet/cavium/liquidio/lio_main.c 		struct oct_link_info *linfo = &lio->linfo;
lio               528 drivers/net/ethernet/cavium/liquidio/lio_main.c 			netif_info(lio, link, lio->netdev, "%d Mbps %s Duplex UP\n",
lio               532 drivers/net/ethernet/cavium/liquidio/lio_main.c 			netif_info(lio, link, lio->netdev, "Link Down\n");
lio               544 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = (struct lio *)wk->ctxptr;
lio               551 drivers/net/ethernet/cavium/liquidio/lio_main.c 	dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu);
lio               561 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio               562 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio               564 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->link_status_wq.wq = alloc_workqueue("link-status",
lio               566 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (!lio->link_status_wq.wq) {
lio               570 drivers/net/ethernet/cavium/liquidio/lio_main.c 	INIT_DELAYED_WORK(&lio->link_status_wq.wk.work,
lio               572 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->link_status_wq.wk.ctxptr = lio;
lio               579 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio               581 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (lio->link_status_wq.wq) {
lio               582 drivers/net/ethernet/cavium/liquidio/lio_main.c 		cancel_delayed_work_sync(&lio->link_status_wq.wk.work);
lio               583 drivers/net/ethernet/cavium/liquidio/lio_main.c 		destroy_workqueue(lio->link_status_wq.wq);
lio               598 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio               599 drivers/net/ethernet/cavium/liquidio/lio_main.c 	int changed = (lio->linfo.link.u64 != ls->u64);
lio               600 drivers/net/ethernet/cavium/liquidio/lio_main.c 	int current_max_mtu = lio->linfo.link.s.mtu;
lio               601 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio               604 drivers/net/ethernet/cavium/liquidio/lio_main.c 		__func__, lio->linfo.link.u64, ls->u64);
lio               605 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->linfo.link.u64 = ls->u64;
lio               607 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if ((lio->intf_open) && (changed)) {
lio               609 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->link_changes++;
lio               611 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (lio->linfo.link.s.link_up) {
lio               620 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (lio->linfo.link.s.mtu != current_max_mtu) {
lio               621 drivers/net/ethernet/cavium/liquidio/lio_main.c 			netif_info(lio, probe, lio->netdev, "Max MTU changed from %d to %d\n",
lio               622 drivers/net/ethernet/cavium/liquidio/lio_main.c 				   current_max_mtu, lio->linfo.link.s.mtu);
lio               623 drivers/net/ethernet/cavium/liquidio/lio_main.c 			netdev->max_mtu = lio->linfo.link.s.mtu;
lio               625 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (lio->linfo.link.s.mtu < netdev->mtu) {
lio               628 drivers/net/ethernet/cavium/liquidio/lio_main.c 				     netdev->mtu, lio->linfo.link.s.mtu);
lio               629 drivers/net/ethernet/cavium/liquidio/lio_main.c 			queue_delayed_work(lio->link_status_wq.wq,
lio               630 drivers/net/ethernet/cavium/liquidio/lio_main.c 					   &lio->link_status_wq.wk.work, 0);
lio               644 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = (struct lio *)wk->ctxptr;
lio               645 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio               666 drivers/net/ethernet/cavium/liquidio/lio_main.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio               682 drivers/net/ethernet/cavium/liquidio/lio_main.c 	queue_delayed_work(lio->sync_octeon_time_wq.wq,
lio               683 drivers/net/ethernet/cavium/liquidio/lio_main.c 			   &lio->sync_octeon_time_wq.wk.work,
lio               695 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio               696 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio               698 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->sync_octeon_time_wq.wq =
lio               700 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (!lio->sync_octeon_time_wq.wq) {
lio               704 drivers/net/ethernet/cavium/liquidio/lio_main.c 	INIT_DELAYED_WORK(&lio->sync_octeon_time_wq.wk.work,
lio               706 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->sync_octeon_time_wq.wk.ctxptr = lio;
lio               707 drivers/net/ethernet/cavium/liquidio/lio_main.c 	queue_delayed_work(lio->sync_octeon_time_wq.wq,
lio               708 drivers/net/ethernet/cavium/liquidio/lio_main.c 			   &lio->sync_octeon_time_wq.wk.work,
lio               722 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio               723 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct cavium_wq *time_wq = &lio->sync_octeon_time_wq;
lio              1182 drivers/net/ethernet/cavium/liquidio/lio_main.c static void send_rx_ctrl_cmd(struct lio *lio, int start_stop)
lio              1186 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = (struct octeon_device *)lio->oct_dev;
lio              1189 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (oct->props[lio->ifidx].rx_on == start_stop)
lio              1196 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, rx_err, lio->netdev,
lio              1209 drivers/net/ethernet/cavium/liquidio/lio_main.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1219 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, rx_err, lio->netdev, "Failed to send RX Control message\n");
lio              1230 drivers/net/ethernet/cavium/liquidio/lio_main.c 		oct->props[lio->ifidx].rx_on = start_stop;
lio              1249 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio;
lio              1257 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio = GET_LIO(netdev);
lio              1261 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (atomic_read(&lio->ifstate) & LIO_IFSTATE_RUNNING)
lio              1264 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (oct->props[lio->ifidx].napi_enabled == 1) {
lio              1268 drivers/net/ethernet/cavium/liquidio/lio_main.c 		oct->props[lio->ifidx].napi_enabled = 0;
lio              1280 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (atomic_read(&lio->ifstate) & LIO_IFSTATE_REGISTERED)
lio              1288 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio_delete_glists(lio);
lio              1304 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio;
lio              1319 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio = GET_LIO(oct->props[i].netdev);
lio              1322 drivers/net/ethernet/cavium/liquidio/lio_main.c 						   lio->linfo.rxpciq[j].s.q_no);
lio              1459 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio;
lio              1463 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio = finfo->lio;
lio              1465 drivers/net/ethernet/cavium/liquidio/lio_main.c 	dma_unmap_single(&lio->oct_dev->pci_dev->dev, finfo->dptr, skb->len,
lio              1479 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio;
lio              1485 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio = finfo->lio;
lio              1489 drivers/net/ethernet/cavium/liquidio/lio_main.c 	dma_unmap_single(&lio->oct_dev->pci_dev->dev,
lio              1497 drivers/net/ethernet/cavium/liquidio/lio_main.c 		pci_unmap_page((lio->oct_dev)->pci_dev,
lio              1503 drivers/net/ethernet/cavium/liquidio/lio_main.c 	iq = skb_iq(lio->oct_dev, skb);
lio              1504 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_lock(&lio->glist_lock[iq]);
lio              1505 drivers/net/ethernet/cavium/liquidio/lio_main.c 	list_add_tail(&g->list, &lio->glist[iq]);
lio              1506 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_unlock(&lio->glist_lock[iq]);
lio              1520 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio;
lio              1528 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio = finfo->lio;
lio              1532 drivers/net/ethernet/cavium/liquidio/lio_main.c 	dma_unmap_single(&lio->oct_dev->pci_dev->dev,
lio              1540 drivers/net/ethernet/cavium/liquidio/lio_main.c 		pci_unmap_page((lio->oct_dev)->pci_dev,
lio              1546 drivers/net/ethernet/cavium/liquidio/lio_main.c 	iq = skb_iq(lio->oct_dev, skb);
lio              1548 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_lock(&lio->glist_lock[iq]);
lio              1549 drivers/net/ethernet/cavium/liquidio/lio_main.c 	list_add_tail(&g->list, &lio->glist[iq]);
lio              1550 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_unlock(&lio->glist_lock[iq]);
lio              1562 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = container_of(ptp, struct lio, ptp_info);
lio              1563 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = (struct octeon_device *)lio->oct_dev;
lio              1580 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_lock_irqsave(&lio->ptp_lock, flags);
lio              1587 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_unlock_irqrestore(&lio->ptp_lock, flags);
lio              1600 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = container_of(ptp, struct lio, ptp_info);
lio              1602 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_lock_irqsave(&lio->ptp_lock, flags);
lio              1603 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_adjust += delta;
lio              1604 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_unlock_irqrestore(&lio->ptp_lock, flags);
lio              1619 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = container_of(ptp, struct lio, ptp_info);
lio              1620 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = (struct octeon_device *)lio->oct_dev;
lio              1622 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_lock_irqsave(&lio->ptp_lock, flags);
lio              1624 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ns += lio->ptp_adjust;
lio              1625 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_unlock_irqrestore(&lio->ptp_lock, flags);
lio              1642 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = container_of(ptp, struct lio, ptp_info);
lio              1643 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = (struct octeon_device *)lio->oct_dev;
lio              1647 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_lock_irqsave(&lio->ptp_lock, flags);
lio              1649 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_adjust = 0;
lio              1650 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_unlock_irqrestore(&lio->ptp_lock, flags);
lio              1675 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1676 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = (struct octeon_device *)lio->oct_dev;
lio              1678 drivers/net/ethernet/cavium/liquidio/lio_main.c 	spin_lock_init(&lio->ptp_lock);
lio              1680 drivers/net/ethernet/cavium/liquidio/lio_main.c 	snprintf(lio->ptp_info.name, 16, "%s", netdev->name);
lio              1681 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.owner = THIS_MODULE;
lio              1682 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.max_adj = 250000000;
lio              1683 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.n_alarm = 0;
lio              1684 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.n_ext_ts = 0;
lio              1685 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.n_per_out = 0;
lio              1686 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.pps = 0;
lio              1687 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.adjfreq = liquidio_ptp_adjfreq;
lio              1688 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.adjtime = liquidio_ptp_adjtime;
lio              1689 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.gettime64 = liquidio_ptp_gettime;
lio              1690 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.settime64 = liquidio_ptp_settime;
lio              1691 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_info.enable = liquidio_ptp_enable;
lio              1693 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_adjust = 0;
lio              1695 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->ptp_clock = ptp_clock_register(&lio->ptp_info,
lio              1698 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (IS_ERR(lio->ptp_clock))
lio              1699 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->ptp_clock = NULL;
lio              1765 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = (struct lio *)wk->ctxptr;
lio              1767 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (!ifstate_check(lio, LIO_IFSTATE_RUNNING))
lio              1770 drivers/net/ethernet/cavium/liquidio/lio_main.c 	check_txq_status(lio);
lio              1771 drivers/net/ethernet/cavium/liquidio/lio_main.c 	queue_delayed_work(lio->txq_status_wq.wq,
lio              1772 drivers/net/ethernet/cavium/liquidio/lio_main.c 			   &lio->txq_status_wq.wk.work, msecs_to_jiffies(1));
lio              1781 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1782 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1784 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->txq_status_wq.wq = alloc_workqueue("txq-status",
lio              1786 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (!lio->txq_status_wq.wq) {
lio              1790 drivers/net/ethernet/cavium/liquidio/lio_main.c 	INIT_DELAYED_WORK(&lio->txq_status_wq.wk.work,
lio              1792 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->txq_status_wq.wk.ctxptr = lio;
lio              1793 drivers/net/ethernet/cavium/liquidio/lio_main.c 	queue_delayed_work(lio->txq_status_wq.wq,
lio              1794 drivers/net/ethernet/cavium/liquidio/lio_main.c 			   &lio->txq_status_wq.wk.work, msecs_to_jiffies(1));
lio              1800 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1802 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (lio->txq_status_wq.wq) {
lio              1803 drivers/net/ethernet/cavium/liquidio/lio_main.c 		cancel_delayed_work_sync(&lio->txq_status_wq.wk.work);
lio              1804 drivers/net/ethernet/cavium/liquidio/lio_main.c 		destroy_workqueue(lio->txq_status_wq.wq);
lio              1814 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1815 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1820 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (oct->props[lio->ifidx].napi_enabled == 0) {
lio              1826 drivers/net/ethernet/cavium/liquidio/lio_main.c 		oct->props[lio->ifidx].napi_enabled = 1;
lio              1835 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ifstate_set(lio, LIO_IFSTATE_RUNNING);
lio              1849 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->intf_open = 1;
lio              1851 drivers/net/ethernet/cavium/liquidio/lio_main.c 	netif_info(lio, ifup, lio->netdev, "Interface Open, ready for traffic\n");
lio              1854 drivers/net/ethernet/cavium/liquidio/lio_main.c 	send_rx_ctrl_cmd(lio, 1);
lio              1857 drivers/net/ethernet/cavium/liquidio/lio_main.c 	INIT_DELAYED_WORK(&lio->stats_wk.work, lio_fetch_stats);
lio              1858 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->stats_wk.ctxptr = lio;
lio              1859 drivers/net/ethernet/cavium/liquidio/lio_main.c 	schedule_delayed_work(&lio->stats_wk.work, msecs_to_jiffies
lio              1874 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1875 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1880 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ifstate_reset(lio, LIO_IFSTATE_RUNNING);
lio              1883 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->intf_open = 0;
lio              1891 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->linfo.link.s.link_up = 0;
lio              1892 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->link_changes++;
lio              1895 drivers/net/ethernet/cavium/liquidio/lio_main.c 	send_rx_ctrl_cmd(lio, 0);
lio              1904 drivers/net/ethernet/cavium/liquidio/lio_main.c 	cancel_delayed_work_sync(&lio->stats_wk.work);
lio              1906 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (lio->ptp_clock) {
lio              1907 drivers/net/ethernet/cavium/liquidio/lio_main.c 		ptp_clock_unregister(lio->ptp_clock);
lio              1908 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->ptp_clock = NULL;
lio              1913 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, rx_err, lio->netdev,
lio              1916 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (oct->props[lio->ifidx].napi_enabled == 1) {
lio              1920 drivers/net/ethernet/cavium/liquidio/lio_main.c 		oct->props[lio->ifidx].napi_enabled = 0;
lio              1972 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1973 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1988 drivers/net/ethernet/cavium/liquidio/lio_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2007 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              2021 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2022 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              2035 drivers/net/ethernet/cavium/liquidio/lio_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2042 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              2056 drivers/net/ethernet/cavium/liquidio/lio_main.c 	memcpy(((u8 *)&lio->linfo.hw_addr) + 2, addr->sa_data, ETH_ALEN);
lio              2065 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2072 drivers/net/ethernet/cavium/liquidio/lio_main.c 	oct = lio->oct_dev;
lio              2074 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (ifstate_check(lio, LIO_IFSTATE_RESETTING))
lio              2078 drivers/net/ethernet/cavium/liquidio/lio_main.c 		iq_no = lio->linfo.txpciq[i].s.q_no;
lio              2094 drivers/net/ethernet/cavium/liquidio/lio_main.c 		oq_no = lio->linfo.rxpciq[i].s.q_no;
lio              2142 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2183 drivers/net/ethernet/cavium/liquidio/lio_main.c 		ifstate_set(lio, LIO_IFSTATE_RX_TIMESTAMP_ENABLED);
lio              2186 drivers/net/ethernet/cavium/liquidio/lio_main.c 		ifstate_reset(lio, LIO_IFSTATE_RX_TIMESTAMP_ENABLED);
lio              2199 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2203 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (lio->oct_dev->ptp_enable)
lio              2223 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio;
lio              2227 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio = finfo->lio;
lio              2229 drivers/net/ethernet/cavium/liquidio/lio_main.c 	oct = lio->oct_dev;
lio              2244 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, tx_done, lio->netdev,
lio              2247 drivers/net/ethernet/cavium/liquidio/lio_main.c 		ts.hwtstamp = ns_to_ktime(ns + lio->ptp_adjust);
lio              2267 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio;
lio              2271 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio = finfo->lio;
lio              2308 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, tx_queued, lio->netdev, "Queued timestamp packet\n");
lio              2322 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio;
lio              2336 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio = GET_LIO(netdev);
lio              2337 drivers/net/ethernet/cavium/liquidio/lio_main.c 	oct = lio->oct_dev;
lio              2341 drivers/net/ethernet/cavium/liquidio/lio_main.c 	iq_no = lio->linfo.txpciq[q_idx].s.q_no;
lio              2348 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (!(atomic_read(&lio->ifstate) & LIO_IFSTATE_RUNNING) ||
lio              2349 drivers/net/ethernet/cavium/liquidio/lio_main.c 	    (!lio->linfo.link.s.link_up) ||
lio              2351 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, tx_err, lio->netdev,
lio              2353 drivers/net/ethernet/cavium/liquidio/lio_main.c 			   lio->linfo.link.s.link_up);
lio              2361 drivers/net/ethernet/cavium/liquidio/lio_main.c 	finfo->lio = lio;
lio              2374 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, tx_err, lio->netdev, "Transmit failed iq:%d full\n",
lio              2430 drivers/net/ethernet/cavium/liquidio/lio_main.c 		spin_lock(&lio->glist_lock[q_idx]);
lio              2432 drivers/net/ethernet/cavium/liquidio/lio_main.c 			lio_list_delete_head(&lio->glist[q_idx]);
lio              2433 drivers/net/ethernet/cavium/liquidio/lio_main.c 		spin_unlock(&lio->glist_lock[q_idx]);
lio              2436 drivers/net/ethernet/cavium/liquidio/lio_main.c 			netif_info(lio, tx_err, lio->netdev,
lio              2533 drivers/net/ethernet/cavium/liquidio/lio_main.c 	netif_info(lio, tx_queued, lio->netdev, "Transmit queued successfully\n");
lio              2550 drivers/net/ethernet/cavium/liquidio/lio_main.c 	netif_info(lio, tx_err, lio->netdev, "IQ%d Transmit dropped:%llu\n",
lio              2567 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio;
lio              2569 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio = GET_LIO(netdev);
lio              2571 drivers/net/ethernet/cavium/liquidio/lio_main.c 	netif_info(lio, tx_err, lio->netdev,
lio              2582 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2583 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              2592 drivers/net/ethernet/cavium/liquidio/lio_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2596 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              2611 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2612 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              2621 drivers/net/ethernet/cavium/liquidio/lio_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2625 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              2645 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2646 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              2655 drivers/net/ethernet/cavium/liquidio/lio_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2659 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              2681 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2682 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              2692 drivers/net/ethernet/cavium/liquidio/lio_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2696 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              2715 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = netdev_priv(netdev);
lio              2718 drivers/net/ethernet/cavium/liquidio/lio_main.c 	    !(lio->dev_capability & NETIF_F_RXCSUM))
lio              2722 drivers/net/ethernet/cavium/liquidio/lio_main.c 	    !(lio->dev_capability & NETIF_F_HW_CSUM))
lio              2725 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if ((request & NETIF_F_TSO) && !(lio->dev_capability & NETIF_F_TSO))
lio              2728 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if ((request & NETIF_F_TSO6) && !(lio->dev_capability & NETIF_F_TSO6))
lio              2731 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if ((request & NETIF_F_LRO) && !(lio->dev_capability & NETIF_F_LRO))
lio              2736 drivers/net/ethernet/cavium/liquidio/lio_main.c 	    (lio->dev_capability & NETIF_F_LRO))
lio              2740 drivers/net/ethernet/cavium/liquidio/lio_main.c 	    !(lio->dev_capability & NETIF_F_HW_VLAN_CTAG_FILTER))
lio              2753 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = netdev_priv(netdev);
lio              2756 drivers/net/ethernet/cavium/liquidio/lio_main.c 	    (lio->dev_capability & NETIF_F_LRO) &&
lio              2761 drivers/net/ethernet/cavium/liquidio/lio_main.c 		 (lio->dev_capability & NETIF_F_LRO) &&
lio              2770 drivers/net/ethernet/cavium/liquidio/lio_main.c 	    (lio->enc_dev_capability & NETIF_F_RXCSUM) &&
lio              2776 drivers/net/ethernet/cavium/liquidio/lio_main.c 		 (lio->enc_dev_capability & NETIF_F_RXCSUM) &&
lio              2782 drivers/net/ethernet/cavium/liquidio/lio_main.c 	    (lio->dev_capability & NETIF_F_HW_VLAN_CTAG_FILTER) &&
lio              2787 drivers/net/ethernet/cavium/liquidio/lio_main.c 		 (lio->dev_capability & NETIF_F_HW_VLAN_CTAG_FILTER) &&
lio              2822 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2823 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              2840 drivers/net/ethernet/cavium/liquidio/lio_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2862 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2863 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              2879 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2880 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              2885 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, drv, lio->netdev,
lio              2891 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, drv, lio->netdev, "Invalid vfidx %d\n", vfidx);
lio              2913 drivers/net/ethernet/cavium/liquidio/lio_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2919 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, drv, lio->netdev,
lio              2926 drivers/net/ethernet/cavium/liquidio/lio_main.c 	netif_info(lio, drv, lio->netdev, "VF %u spoofchk is %s\n", vfidx,
lio              2935 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2936 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              2969 drivers/net/ethernet/cavium/liquidio/lio_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              2987 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              2988 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              3008 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ivi->max_tx_rate = lio->linfo.link.s.speed;
lio              3014 drivers/net/ethernet/cavium/liquidio/lio_main.c static int liquidio_send_vf_trust_cmd(struct lio *lio, int vfidx, bool trusted)
lio              3016 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              3024 drivers/net/ethernet/cavium/liquidio/lio_main.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio              3053 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              3054 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              3062 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, drv, lio->netdev, "Invalid vfidx %d\n", vfidx);
lio              3074 drivers/net/ethernet/cavium/liquidio/lio_main.c 			netif_info(lio, drv, lio->netdev, "More than one trusted VF is not allowed\n");
lio              3084 drivers/net/ethernet/cavium/liquidio/lio_main.c 	if (!liquidio_send_vf_trust_cmd(lio, vfidx, setting)) {
lio              3092 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, drv, lio->netdev, "VF %u is %strusted\n", vfidx,
lio              3095 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netif_info(lio, drv, lio->netdev, "Failed to set VF trusted\n");
lio              3105 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              3106 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              3122 drivers/net/ethernet/cavium/liquidio/lio_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              3193 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(dev);
lio              3194 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              3200 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ether_addr_copy(ppid->id, (void *)&lio->linfo.hw_addr + 2);
lio              3208 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = GET_LIO(netdev);
lio              3209 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              3349 drivers/net/ethernet/cavium/liquidio/lio_main.c 	struct lio *lio = NULL;
lio              3547 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio = GET_LIO(netdev);
lio              3549 drivers/net/ethernet/cavium/liquidio/lio_main.c 		memset(lio, 0, sizeof(struct lio));
lio              3551 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->ifidx = ifidx_or_pfnum;
lio              3557 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->linfo.num_rxpciq = num_oqueues;
lio              3558 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->linfo.num_txpciq = num_iqueues;
lio              3560 drivers/net/ethernet/cavium/liquidio/lio_main.c 			lio->linfo.rxpciq[j].u64 =
lio              3564 drivers/net/ethernet/cavium/liquidio/lio_main.c 			lio->linfo.txpciq[j].u64 =
lio              3567 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->linfo.hw_addr = resp->cfg_info.linfo.hw_addr;
lio              3568 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->linfo.gmxport = resp->cfg_info.linfo.gmxport;
lio              3569 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64;
lio              3573 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->msg_enable = netif_msg_init(debug, DEFAULT_MSG_ENABLE);
lio              3577 drivers/net/ethernet/cavium/liquidio/lio_main.c 			lio->dev_capability = NETIF_F_HIGHDMA
lio              3590 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->enc_dev_capability = NETIF_F_IP_CSUM
lio              3598 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netdev->hw_enc_features = (lio->enc_dev_capability &
lio              3601 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->dev_capability |= NETIF_F_GSO_UDP_TUNNEL;
lio              3603 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netdev->vlan_features = lio->dev_capability;
lio              3605 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->dev_capability |=  NETIF_F_HW_VLAN_CTAG_FILTER |
lio              3609 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netdev->features = (lio->dev_capability & ~NETIF_F_LRO);
lio              3611 drivers/net/ethernet/cavium/liquidio/lio_main.c 		netdev->hw_features = lio->dev_capability;
lio              3623 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->oct_dev = octeon_dev;
lio              3624 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->octprops = props;
lio              3625 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->netdev = netdev;
lio              3629 drivers/net/ethernet/cavium/liquidio/lio_main.c 			lio->linfo.gmxport, CVM_CAST64(lio->linfo.hw_addr));
lio              3644 drivers/net/ethernet/cavium/liquidio/lio_main.c 		octeon_swap_8B_data(&lio->linfo.hw_addr, 1);
lio              3646 drivers/net/ethernet/cavium/liquidio/lio_main.c 			mac[j] = *((u8 *)(((u8 *)&lio->linfo.hw_addr) + 2 + j));
lio              3655 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->txq = lio->linfo.txpciq[0].s.q_no;
lio              3656 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->rxq = lio->linfo.rxpciq[0].s.q_no;
lio              3658 drivers/net/ethernet/cavium/liquidio/lio_main.c 					     lio->linfo.num_txpciq,
lio              3659 drivers/net/ethernet/cavium/liquidio/lio_main.c 					     lio->linfo.num_rxpciq)) {
lio              3664 drivers/net/ethernet/cavium/liquidio/lio_main.c 		ifstate_set(lio, LIO_IFSTATE_DROQ_OPS);
lio              3666 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->tx_qsize = octeon_get_tx_qsize(octeon_dev, lio->txq);
lio              3667 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->rx_qsize = octeon_get_rx_qsize(octeon_dev, lio->rxq);
lio              3669 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (lio_setup_glists(octeon_dev, lio, num_iqueues)) {
lio              3677 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (lio->oct_dev->chip_id == OCTEON_CN23XX_PF_VID)
lio              3714 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->link_changes++;
lio              3716 drivers/net/ethernet/cavium/liquidio/lio_main.c 		ifstate_set(lio, LIO_IFSTATE_REGISTERED);
lio              3745 drivers/net/ethernet/cavium/liquidio/lio_main.c 				liquidio_get_speed(lio);
lio              3761 drivers/net/ethernet/cavium/liquidio/lio_main.c 			liquidio_get_fec(lio);
lio              3762 drivers/net/ethernet/cavium/liquidio/lio_main.c 			octeon_dev->props[lio->ifidx].fec_boot =
lio              3763 drivers/net/ethernet/cavium/liquidio/lio_main.c 				octeon_dev->props[lio->ifidx].fec;
lio               265 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio               267 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (!ifstate_check(lio, LIO_IFSTATE_RESETTING) &&
lio               268 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	    ifstate_check(lio, LIO_IFSTATE_REGISTERED)) {
lio               269 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		struct oct_link_info *linfo = &lio->linfo;
lio               272 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			netif_info(lio, link, lio->netdev, "%d Mbps %s Duplex UP\n",
lio               276 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			netif_info(lio, link, lio->netdev, "Link Down\n");
lio               288 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = (struct lio *)wk->ctxptr;
lio               295 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu);
lio               305 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio               306 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio               308 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio->link_status_wq.wq = alloc_workqueue("link-status",
lio               310 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (!lio->link_status_wq.wq) {
lio               314 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	INIT_DELAYED_WORK(&lio->link_status_wq.wk.work,
lio               316 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio->link_status_wq.wk.ctxptr = lio;
lio               323 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio               325 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (lio->link_status_wq.wq) {
lio               326 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		cancel_delayed_work_sync(&lio->link_status_wq.wk.work);
lio               327 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		destroy_workqueue(lio->link_status_wq.wq);
lio               342 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio               343 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	int current_max_mtu = lio->linfo.link.s.mtu;
lio               344 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio               346 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if ((lio->intf_open) && (lio->linfo.link.u64 != ls->u64)) {
lio               347 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->linfo.link.u64 = ls->u64;
lio               350 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->link_changes++;
lio               352 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		if (lio->linfo.link.s.link_up) {
lio               360 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		if (lio->linfo.link.s.mtu != current_max_mtu) {
lio               363 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 				 current_max_mtu, lio->linfo.link.s.mtu);
lio               364 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			netdev->max_mtu = lio->linfo.link.s.mtu;
lio               367 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		if (lio->linfo.link.s.mtu < netdev->mtu) {
lio               370 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 				 netdev->mtu, lio->linfo.link.s.mtu);
lio               371 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			queue_delayed_work(lio->link_status_wq.wq,
lio               372 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 					   &lio->link_status_wq.wk.work, 0);
lio               601 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c static void send_rx_ctrl_cmd(struct lio *lio, int start_stop)
lio               603 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = (struct octeon_device *)lio->oct_dev;
lio               608 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (oct->props[lio->ifidx].rx_on == start_stop)
lio               623 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	sc->iq_no = lio->linfo.txpciq[0].s.q_no;
lio               633 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		netif_info(lio, rx_err, lio->netdev, "Failed to send RX Control message\n");
lio               643 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		oct->props[lio->ifidx].rx_on = start_stop;
lio               662 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio;
lio               670 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio = GET_LIO(netdev);
lio               674 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (atomic_read(&lio->ifstate) & LIO_IFSTATE_RUNNING)
lio               677 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (oct->props[lio->ifidx].napi_enabled == 1) {
lio               681 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		oct->props[lio->ifidx].napi_enabled = 0;
lio               692 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (atomic_read(&lio->ifstate) & LIO_IFSTATE_REGISTERED)
lio               699 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio_delete_glists(lio);
lio               714 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio;
lio               728 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio = GET_LIO(oct->props[i].netdev);
lio               731 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 						   lio->linfo.rxpciq[j].s.q_no);
lio               804 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio;
lio               808 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio = finfo->lio;
lio               810 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	dma_unmap_single(&lio->oct_dev->pci_dev->dev, finfo->dptr, skb->len,
lio               826 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio;
lio               830 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio = finfo->lio;
lio               834 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	dma_unmap_single(&lio->oct_dev->pci_dev->dev,
lio               842 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		pci_unmap_page((lio->oct_dev)->pci_dev,
lio               848 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	iq = skb_iq(lio->oct_dev, skb);
lio               850 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	spin_lock(&lio->glist_lock[iq]);
lio               851 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	list_add_tail(&g->list, &lio->glist[iq]);
lio               852 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	spin_unlock(&lio->glist_lock[iq]);
lio               868 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio;
lio               874 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio = finfo->lio;
lio               878 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	dma_unmap_single(&lio->oct_dev->pci_dev->dev,
lio               886 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		pci_unmap_page((lio->oct_dev)->pci_dev,
lio               892 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	iq = skb_iq(lio->oct_dev, skb);
lio               894 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	spin_lock(&lio->glist_lock[iq]);
lio               895 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	list_add_tail(&g->list, &lio->glist[iq]);
lio               896 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	spin_unlock(&lio->glist_lock[iq]);
lio               907 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio               908 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio               913 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (!oct->props[lio->ifidx].napi_enabled) {
lio               919 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		oct->props[lio->ifidx].napi_enabled = 1;
lio               924 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	ifstate_set(lio, LIO_IFSTATE_RUNNING);
lio               927 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio->intf_open = 1;
lio               929 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	netif_info(lio, ifup, lio->netdev, "Interface Open, ready for traffic\n");
lio               932 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	INIT_DELAYED_WORK(&lio->stats_wk.work, lio_fetch_stats);
lio               933 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio->stats_wk.ctxptr = lio;
lio               934 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	schedule_delayed_work(&lio->stats_wk.work, msecs_to_jiffies
lio               938 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	send_rx_ctrl_cmd(lio, 1);
lio               951 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio               952 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio               958 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	send_rx_ctrl_cmd(lio, 0);
lio               960 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	netif_info(lio, ifdown, lio->netdev, "Stopping interface!\n");
lio               962 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio->intf_open = 0;
lio               963 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio->linfo.link.s.link_up = 0;
lio               966 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio->link_changes++;
lio               968 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	ifstate_reset(lio, LIO_IFSTATE_RUNNING);
lio               974 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		netif_info(lio, rx_err, lio->netdev,
lio               977 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (oct->props[lio->ifidx].napi_enabled == 1) {
lio               981 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		oct->props[lio->ifidx].napi_enabled = 0;
lio               988 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	cancel_delayed_work_sync(&lio->stats_wk.work);
lio              1030 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1031 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1036 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (lio->netdev_uc_count == netdev_uc_count(netdev))
lio              1044 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio->netdev_uc_count = netdev_uc_count(netdev);
lio              1048 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	nctrl.ncmd.s.more = lio->netdev_uc_count;
lio              1050 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1061 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              1071 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1072 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1099 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1105 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              1121 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1122 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1132 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (lio->linfo.macaddr_is_admin_asgnd)
lio              1141 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1148 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              1161 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	ether_addr_copy(((u8 *)&lio->linfo.hw_addr) + 2, addr->sa_data);
lio              1170 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1177 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	oct = lio->oct_dev;
lio              1179 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (ifstate_check(lio, LIO_IFSTATE_RESETTING))
lio              1183 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		iq_no = lio->linfo.txpciq[i].s.q_no;
lio              1199 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		oq_no = lio->linfo.rxpciq[i].s.q_no;
lio              1241 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1283 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		ifstate_set(lio, LIO_IFSTATE_RX_TIMESTAMP_ENABLED);
lio              1286 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		ifstate_reset(lio, LIO_IFSTATE_RX_TIMESTAMP_ENABLED);
lio              1313 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio;
lio              1316 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio = finfo->lio;
lio              1318 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	oct = lio->oct_dev;
lio              1333 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		netif_info(lio, tx_done, lio->netdev,
lio              1336 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		ts.hwtstamp = ns_to_ktime(ns + lio->ptp_adjust);
lio              1356 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio;
lio              1360 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio = finfo->lio;
lio              1392 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		netif_info(lio, tx_queued, lio->netdev, "Queued timestamp packet\n");
lio              1415 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio;
lio              1421 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio = GET_LIO(netdev);
lio              1422 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	oct = lio->oct_dev;
lio              1424 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	q_idx = skb_iq(lio->oct_dev, skb);
lio              1426 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	iq_no = lio->linfo.txpciq[q_idx].s.q_no;
lio              1433 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if (!(atomic_read(&lio->ifstate) & LIO_IFSTATE_RUNNING) ||
lio              1434 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	    (!lio->linfo.link.s.link_up) || (skb->len <= 0)) {
lio              1435 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		netif_info(lio, tx_err, lio->netdev, "Transmit failed link_status : %d\n",
lio              1436 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			   lio->linfo.link.s.link_up);
lio              1444 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	finfo->lio = lio;
lio              1457 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		netif_info(lio, tx_err, lio->netdev, "Transmit failed iq:%d full\n",
lio              1504 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		spin_lock(&lio->glist_lock[q_idx]);
lio              1506 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			lio_list_delete_head(&lio->glist[q_idx]);
lio              1507 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		spin_unlock(&lio->glist_lock[q_idx]);
lio              1510 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			netif_info(lio, tx_err, lio->netdev,
lio              1596 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	netif_info(lio, tx_queued, lio->netdev, "Transmit queued successfully\n");
lio              1616 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	netif_info(lio, tx_err, lio->netdev, "IQ%d Transmit dropped:%llu\n",
lio              1633 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio;
lio              1635 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio = GET_LIO(netdev);
lio              1637 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	netif_info(lio, tx_err, lio->netdev,
lio              1648 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1649 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1658 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1662 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              1676 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1677 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1686 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1690 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              1710 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1711 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1720 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1724 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              1745 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = GET_LIO(netdev);
lio              1746 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct octeon_device *oct = lio->oct_dev;
lio              1756 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
lio              1760 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
lio              1779 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = netdev_priv(netdev);
lio              1782 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	    !(lio->dev_capability & NETIF_F_RXCSUM))
lio              1786 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	    !(lio->dev_capability & NETIF_F_HW_CSUM))
lio              1789 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if ((request & NETIF_F_TSO) && !(lio->dev_capability & NETIF_F_TSO))
lio              1792 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if ((request & NETIF_F_TSO6) && !(lio->dev_capability & NETIF_F_TSO6))
lio              1795 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if ((request & NETIF_F_LRO) && !(lio->dev_capability & NETIF_F_LRO))
lio              1800 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	    (lio->dev_capability & NETIF_F_LRO))
lio              1813 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = netdev_priv(netdev);
lio              1818 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if ((features & NETIF_F_LRO) && (lio->dev_capability & NETIF_F_LRO))
lio              1822 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		 (lio->dev_capability & NETIF_F_LRO))
lio              1826 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	    (lio->enc_dev_capability & NETIF_F_RXCSUM) &&
lio              1831 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		 (lio->enc_dev_capability & NETIF_F_RXCSUM) &&
lio              1934 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	struct lio *lio = NULL;
lio              2046 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio = GET_LIO(netdev);
lio              2048 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		memset(lio, 0, sizeof(struct lio));
lio              2050 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->ifidx = ifidx_or_pfnum;
lio              2056 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->linfo.num_rxpciq = num_oqueues;
lio              2057 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->linfo.num_txpciq = num_iqueues;
lio              2060 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			lio->linfo.rxpciq[j].u64 =
lio              2064 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			lio->linfo.txpciq[j].u64 =
lio              2068 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->linfo.hw_addr = resp->cfg_info.linfo.hw_addr;
lio              2069 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->linfo.gmxport = resp->cfg_info.linfo.gmxport;
lio              2070 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64;
lio              2071 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->linfo.macaddr_is_admin_asgnd =
lio              2073 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->linfo.macaddr_spoofchk =
lio              2076 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->msg_enable = netif_msg_init(debug, DEFAULT_MSG_ENABLE);
lio              2078 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->dev_capability = NETIF_F_HIGHDMA
lio              2089 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->enc_dev_capability = NETIF_F_IP_CSUM
lio              2098 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		    (lio->enc_dev_capability & ~NETIF_F_LRO);
lio              2099 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		netdev->vlan_features = lio->dev_capability;
lio              2101 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->dev_capability |= NETIF_F_HW_VLAN_CTAG_FILTER |
lio              2105 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		netdev->features = (lio->dev_capability & ~NETIF_F_LRO);
lio              2107 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		netdev->hw_features = lio->dev_capability;
lio              2119 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->oct_dev = octeon_dev;
lio              2120 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->octprops = props;
lio              2121 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->netdev = netdev;
lio              2125 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			lio->linfo.gmxport, CVM_CAST64(lio->linfo.hw_addr));
lio              2128 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		octeon_swap_8B_data(&lio->linfo.hw_addr, 1);
lio              2130 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			mac[j] = *((u8 *)(((u8 *)&lio->linfo.hw_addr) + 2 + j));
lio              2136 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 					     lio->linfo.num_txpciq,
lio              2137 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 					     lio->linfo.num_rxpciq)) {
lio              2142 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		ifstate_set(lio, LIO_IFSTATE_DROQ_OPS);
lio              2153 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->txq = lio->linfo.txpciq[0].s.q_no;
lio              2154 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->rxq = lio->linfo.rxpciq[0].s.q_no;
lio              2156 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->tx_qsize = octeon_get_tx_qsize(octeon_dev, lio->txq);
lio              2157 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->rx_qsize = octeon_get_rx_qsize(octeon_dev, lio->rxq);
lio              2159 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		if (lio_setup_glists(octeon_dev, lio, num_iqueues)) {
lio              2167 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		if (lio->oct_dev->chip_id == OCTEON_CN23XX_VF_VID)
lio              2192 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->link_changes++;
lio              2194 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		ifstate_set(lio, LIO_IFSTATE_REGISTERED);
lio               377 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c 	struct lio *parent_lio;
lio               453 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c 	struct lio *lio = GET_LIO(parent_ndev);
lio               456 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c 	ether_addr_copy(ppid->id, (void *)&lio->linfo.hw_addr + 2);
lio                50 drivers/net/ethernet/cavium/liquidio/octeon_main.h 	struct lio *lio;
lio               191 drivers/net/ethernet/cavium/liquidio/octeon_network.h #define LIO_SIZE         (sizeof(struct lio))
lio               192 drivers/net/ethernet/cavium/liquidio/octeon_network.h #define GET_LIO(netdev)  ((struct lio *)netdev_priv(netdev))
lio               236 drivers/net/ethernet/cavium/liquidio/octeon_network.h void lio_delete_glists(struct lio *lio);
lio               238 drivers/net/ethernet/cavium/liquidio/octeon_network.h int lio_setup_glists(struct octeon_device *oct, struct lio *lio, int num_qs);
lio               240 drivers/net/ethernet/cavium/liquidio/octeon_network.h int liquidio_get_speed(struct lio *lio);
lio               241 drivers/net/ethernet/cavium/liquidio/octeon_network.h int liquidio_set_speed(struct lio *lio, int speed);
lio               242 drivers/net/ethernet/cavium/liquidio/octeon_network.h int liquidio_get_fec(struct lio *lio);
lio               243 drivers/net/ethernet/cavium/liquidio/octeon_network.h int liquidio_set_fec(struct lio *lio, int on_off);
lio               504 drivers/net/ethernet/cavium/liquidio/octeon_network.h static inline int ifstate_check(struct lio *lio, int state_flag)
lio               506 drivers/net/ethernet/cavium/liquidio/octeon_network.h 	return atomic_read(&lio->ifstate) & state_flag;
lio               514 drivers/net/ethernet/cavium/liquidio/octeon_network.h static inline void ifstate_set(struct lio *lio, int state_flag)
lio               516 drivers/net/ethernet/cavium/liquidio/octeon_network.h 	atomic_set(&lio->ifstate, (atomic_read(&lio->ifstate) | state_flag));
lio               524 drivers/net/ethernet/cavium/liquidio/octeon_network.h static inline void ifstate_reset(struct lio *lio, int state_flag)
lio               526 drivers/net/ethernet/cavium/liquidio/octeon_network.h 	atomic_set(&lio->ifstate, (atomic_read(&lio->ifstate) & ~(state_flag)));
lio               573 drivers/net/ethernet/cavium/liquidio/octeon_network.h 	struct lio *lio = GET_LIO(netdev);
lio               577 drivers/net/ethernet/cavium/liquidio/octeon_network.h 		qno = lio->linfo.txpciq[i % lio->oct_dev->num_iqs].s.q_no;
lio               580 drivers/net/ethernet/cavium/liquidio/octeon_network.h 			INCR_INSTRQUEUE_PKT_COUNT(lio->oct_dev, qno,
lio               593 drivers/net/ethernet/cavium/liquidio/octeon_network.h 	struct lio *lio = GET_LIO(netdev);
lio               596 drivers/net/ethernet/cavium/liquidio/octeon_network.h 	if (lio->linfo.link.s.link_up) {
lio               201 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio               221 drivers/scsi/qla2xxx/qla_init.c 			lio->u.logio.data[0] = MBS_COMMAND_ERROR;
lio               222 drivers/scsi/qla2xxx/qla_init.c 			lio->u.logio.data[1] =
lio               223 drivers/scsi/qla2xxx/qla_init.c 				lio->u.logio.flags & SRB_LOGIN_RETRIED ?
lio               272 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio               283 drivers/scsi/qla2xxx/qla_init.c 		ea.data[0] = lio->u.logio.data[0];
lio               284 drivers/scsi/qla2xxx/qla_init.c 		ea.data[1] = lio->u.logio.data[1];
lio               285 drivers/scsi/qla2xxx/qla_init.c 		ea.iop[0] = lio->u.logio.iop[0];
lio               286 drivers/scsi/qla2xxx/qla_init.c 		ea.iop[1] = lio->u.logio.iop[1];
lio               315 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio;
lio               339 drivers/scsi/qla2xxx/qla_init.c 	lio = &sp->u.iocb_cmd;
lio               340 drivers/scsi/qla2xxx/qla_init.c 	lio->timeout = qla2x00_async_iocb_timeout;
lio               345 drivers/scsi/qla2xxx/qla_init.c 		lio->u.logio.flags |= SRB_LOGIN_PRLI_ONLY;
lio               347 drivers/scsi/qla2xxx/qla_init.c 		lio->u.logio.flags |= SRB_LOGIN_COND_PLOGI;
lio               350 drivers/scsi/qla2xxx/qla_init.c 		lio->u.logio.flags |= SRB_LOGIN_SKIP_PRLI;
lio               387 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio;
lio               398 drivers/scsi/qla2xxx/qla_init.c 	lio = &sp->u.iocb_cmd;
lio               399 drivers/scsi/qla2xxx/qla_init.c 	lio->timeout = qla2x00_async_iocb_timeout;
lio               435 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio               441 drivers/scsi/qla2xxx/qla_init.c 		    lio->u.logio.data);
lio               449 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio;
lio               460 drivers/scsi/qla2xxx/qla_init.c 	lio = &sp->u.iocb_cmd;
lio               461 drivers/scsi/qla2xxx/qla_init.c 	lio->timeout = qla2x00_async_iocb_timeout;
lio               545 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio               555 drivers/scsi/qla2xxx/qla_init.c 	ea.data[0] = lio->u.logio.data[0];
lio               556 drivers/scsi/qla2xxx/qla_init.c 	ea.data[1] = lio->u.logio.data[1];
lio               557 drivers/scsi/qla2xxx/qla_init.c 	ea.iop[0] = lio->u.logio.iop[0];
lio               558 drivers/scsi/qla2xxx/qla_init.c 	ea.iop[1] = lio->u.logio.iop[1];
lio               572 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio;
lio               586 drivers/scsi/qla2xxx/qla_init.c 	lio = &sp->u.iocb_cmd;
lio               587 drivers/scsi/qla2xxx/qla_init.c 	lio->timeout = qla2x00_async_iocb_timeout;
lio               594 drivers/scsi/qla2xxx/qla_init.c 		lio->u.logio.flags |= SRB_LOGIN_RETRIED;
lio              1198 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio              1210 drivers/scsi/qla2xxx/qla_init.c 		ea.data[0] = lio->u.logio.data[0];
lio              1211 drivers/scsi/qla2xxx/qla_init.c 		ea.data[1] = lio->u.logio.data[1];
lio              1212 drivers/scsi/qla2xxx/qla_init.c 		ea.iop[0] = lio->u.logio.iop[0];
lio              1213 drivers/scsi/qla2xxx/qla_init.c 		ea.iop[1] = lio->u.logio.iop[1];
lio              1226 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio;
lio              1253 drivers/scsi/qla2xxx/qla_init.c 	lio = &sp->u.iocb_cmd;
lio              1254 drivers/scsi/qla2xxx/qla_init.c 	lio->timeout = qla2x00_async_iocb_timeout;
lio              1258 drivers/scsi/qla2xxx/qla_init.c 	lio->u.logio.flags = 0;
lio              1261 drivers/scsi/qla2xxx/qla_init.c 		lio->u.logio.flags |= SRB_LOGIN_NVME_PRLI;
lio              2342 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio              2346 drivers/scsi/qla2xxx/qla_iocb.c 	if (lio->u.logio.flags & SRB_LOGIN_NVME_PRLI) {
lio              2362 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio              2365 drivers/scsi/qla2xxx/qla_iocb.c 	if (lio->u.logio.flags & SRB_LOGIN_PRLI_ONLY) {
lio              2369 drivers/scsi/qla2xxx/qla_iocb.c 		if (lio->u.logio.flags & SRB_LOGIN_COND_PLOGI)
lio              2371 drivers/scsi/qla2xxx/qla_iocb.c 		if (lio->u.logio.flags & SRB_LOGIN_SKIP_PRLI)
lio              2385 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio              2391 drivers/scsi/qla2xxx/qla_iocb.c 	opts = lio->u.logio.flags & SRB_LOGIN_COND_PLOGI ? BIT_0 : 0;
lio              2392 drivers/scsi/qla2xxx/qla_iocb.c 	opts |= lio->u.logio.flags & SRB_LOGIN_SKIP_PRLI ? BIT_1 : 0;
lio              2539 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio              2546 drivers/scsi/qla2xxx/qla_iocb.c 	complete(&lio->u.els_logo.comp);
lio              2552 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio              2560 drivers/scsi/qla2xxx/qla_iocb.c 	complete(&lio->u.els_logo.comp);
lio              2748 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio              2761 drivers/scsi/qla2xxx/qla_iocb.c 		complete(&lio->u.els_plogi.comp);
lio              1354 drivers/scsi/qla2xxx/qla_isr.c 	struct srb_iocb *lio;
lio              1362 drivers/scsi/qla2xxx/qla_isr.c 	lio = &sp->u.iocb_cmd;
lio              1365 drivers/scsi/qla2xxx/qla_isr.c 	data = lio->u.logio.data;
lio              1368 drivers/scsi/qla2xxx/qla_isr.c 	data[1] = lio->u.logio.flags & SRB_LOGIN_RETRIED ?
lio              1685 drivers/scsi/qla2xxx/qla_isr.c 	struct srb_iocb *lio;
lio              1693 drivers/scsi/qla2xxx/qla_isr.c 	lio = &sp->u.iocb_cmd;
lio              1696 drivers/scsi/qla2xxx/qla_isr.c 	data = lio->u.logio.data;
lio              1699 drivers/scsi/qla2xxx/qla_isr.c 	data[1] = lio->u.logio.flags & SRB_LOGIN_RETRIED ?
lio              1726 drivers/scsi/qla2xxx/qla_isr.c 			lio->u.logio.iop[0] =
lio              1728 drivers/scsi/qla2xxx/qla_isr.c 			lio->u.logio.iop[1] =
lio              1757 drivers/scsi/qla2xxx/qla_isr.c 	lio->u.logio.iop[0] = iop[0];
lio              1758 drivers/scsi/qla2xxx/qla_isr.c 	lio->u.logio.iop[1] = iop[1];
lio              1795 drivers/scsi/qla2xxx/qla_mr.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio              1797 drivers/scsi/qla2xxx/qla_mr.c 	complete(&lio->u.fxiocb.fxiocb_comp);
lio              1802 drivers/scsi/qla2xxx/qla_mr.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
lio              1804 drivers/scsi/qla2xxx/qla_mr.c 	complete(&lio->u.fxiocb.fxiocb_comp);