• Home
  • Raw
  • Download

Lines Matching refs:ionic

16 	struct ionic *ionic = from_timer(ionic, t, watchdog_timer);  in ionic_watchdog_cb()  local
19 mod_timer(&ionic->watchdog_timer, in ionic_watchdog_cb()
20 round_jiffies(jiffies + ionic->watchdog_period)); in ionic_watchdog_cb()
22 if (!ionic->lif) in ionic_watchdog_cb()
25 hb = ionic_heartbeat_check(ionic); in ionic_watchdog_cb()
28 ionic_link_status_check_request(ionic->lif, false); in ionic_watchdog_cb()
31 void ionic_init_devinfo(struct ionic *ionic) in ionic_init_devinfo() argument
33 struct ionic_dev *idev = &ionic->idev; in ionic_init_devinfo()
49 dev_dbg(ionic->dev, "fw_version %s\n", idev->dev_info.fw_version); in ionic_init_devinfo()
52 int ionic_dev_setup(struct ionic *ionic) in ionic_dev_setup() argument
54 struct ionic_dev_bar *bar = ionic->bars; in ionic_dev_setup()
55 unsigned int num_bars = ionic->num_bars; in ionic_dev_setup()
56 struct ionic_dev *idev = &ionic->idev; in ionic_dev_setup()
57 struct device *dev = ionic->dev; in ionic_dev_setup()
83 ionic_init_devinfo(ionic); in ionic_dev_setup()
93 timer_setup(&ionic->watchdog_timer, ionic_watchdog_cb, 0); in ionic_dev_setup()
94 ionic->watchdog_period = IONIC_WATCHDOG_SECS * HZ; in ionic_dev_setup()
95 mod_timer(&ionic->watchdog_timer, in ionic_dev_setup()
96 round_jiffies(jiffies + ionic->watchdog_period)); in ionic_dev_setup()
105 int ionic_heartbeat_check(struct ionic *ionic) in ionic_heartbeat_check() argument
107 struct ionic_dev *idev = &ionic->idev; in ionic_heartbeat_check()
114 if (time_before(hb_time, (idev->last_hb_time + ionic->watchdog_period))) in ionic_heartbeat_check()
127 struct ionic_lif *lif = ionic->lif; in ionic_heartbeat_check()
131 dev_info(ionic->dev, "FW stopped %u\n", fw_status); in ionic_heartbeat_check()
135 dev_info(ionic->dev, "FW running %u\n", fw_status); in ionic_heartbeat_check()
145 dev_err(ionic->dev, "%s OOM\n", __func__); in ionic_heartbeat_check()
169 dev_info(ionic->dev, "FW heartbeat stalled at %d\n", in ionic_heartbeat_check()
178 dev_info(ionic->dev, "FW heartbeat restored at %d\n", hb); in ionic_heartbeat_check()
332 int ionic_set_vf_config(struct ionic *ionic, int vf, u8 attr, u8 *data) in ionic_set_vf_config() argument
344 dev_dbg(ionic->dev, "%s: vf %d spoof %d\n", in ionic_set_vf_config()
349 dev_dbg(ionic->dev, "%s: vf %d trust %d\n", in ionic_set_vf_config()
354 dev_dbg(ionic->dev, "%s: vf %d linkstate %d\n", in ionic_set_vf_config()
359 dev_dbg(ionic->dev, "%s: vf %d macaddr %pM\n", in ionic_set_vf_config()
364 dev_dbg(ionic->dev, "%s: vf %d vlan %d\n", in ionic_set_vf_config()
369 dev_dbg(ionic->dev, "%s: vf %d maxrate %d\n", in ionic_set_vf_config()
374 dev_dbg(ionic->dev, "%s: vf %d stats_pa 0x%08llx\n", in ionic_set_vf_config()
381 mutex_lock(&ionic->dev_cmd_lock); in ionic_set_vf_config()
382 ionic_dev_cmd_go(&ionic->idev, &cmd); in ionic_set_vf_config()
383 err = ionic_dev_cmd_wait(ionic, DEVCMD_TIMEOUT); in ionic_set_vf_config()
384 mutex_unlock(&ionic->dev_cmd_lock); in ionic_set_vf_config()
589 struct device *dev = q->lif->ionic->dev; in ionic_q_post()
633 dev_err(q->lif->ionic->dev, in ionic_q_service()