Lines Matching refs:ionic

16 	struct ionic *ionic = from_timer(ionic, t, watchdog_timer);  in ionic_watchdog_cb()  local
17 struct ionic_lif *lif = ionic->lif; in ionic_watchdog_cb()
21 mod_timer(&ionic->watchdog_timer, in ionic_watchdog_cb()
22 round_jiffies(jiffies + ionic->watchdog_period)); in ionic_watchdog_cb()
27 hb = ionic_heartbeat_check(ionic); in ionic_watchdog_cb()
28 dev_dbg(ionic->dev, "%s: hb %d running %d UP %d\n", in ionic_watchdog_cb()
49 void ionic_init_devinfo(struct ionic *ionic) in ionic_init_devinfo() argument
51 struct ionic_dev *idev = &ionic->idev; in ionic_init_devinfo()
67 dev_dbg(ionic->dev, "fw_version %s\n", idev->dev_info.fw_version); in ionic_init_devinfo()
70 int ionic_dev_setup(struct ionic *ionic) in ionic_dev_setup() argument
72 struct ionic_dev_bar *bar = ionic->bars; in ionic_dev_setup()
73 unsigned int num_bars = ionic->num_bars; in ionic_dev_setup()
74 struct ionic_dev *idev = &ionic->idev; in ionic_dev_setup()
75 struct device *dev = ionic->dev; in ionic_dev_setup()
103 ionic_init_devinfo(ionic); in ionic_dev_setup()
112 timer_setup(&ionic->watchdog_timer, ionic_watchdog_cb, 0); in ionic_dev_setup()
113 ionic->watchdog_period = IONIC_WATCHDOG_SECS * HZ; in ionic_dev_setup()
117 idev->last_hb_time = jiffies - 2 * ionic->watchdog_period; in ionic_dev_setup()
125 mod_timer(&ionic->watchdog_timer, in ionic_dev_setup()
126 round_jiffies(jiffies + ionic->watchdog_period)); in ionic_dev_setup()
135 int ionic_heartbeat_check(struct ionic *ionic) in ionic_heartbeat_check() argument
137 struct ionic_dev *idev = &ionic->idev; in ionic_heartbeat_check()
154 dev_dbg(ionic->dev, "%s: do_check_time again\n", __func__); in ionic_heartbeat_check()
169 dev_info(ionic->dev, "FW generation 0x%02x -> 0x%02x\n", in ionic_heartbeat_check()
186 struct ionic_lif *lif = ionic->lif; in ionic_heartbeat_check()
192 dev_info(ionic->dev, "FW stopped %u\n", fw_status); in ionic_heartbeat_check()
196 dev_info(ionic->dev, "FW running %u\n", fw_status); in ionic_heartbeat_check()
218 if (time_before(check_time, last_check_time + ionic->watchdog_period)) in ionic_heartbeat_check()
228 dev_dbg(ionic->dev, "%s: fw_hb %u last_fw_hb %u ready %u\n", in ionic_heartbeat_check()
237 dev_info(ionic->dev, "FW heartbeat stalled at %d\n", fw_hb); in ionic_heartbeat_check()
239 dev_info(ionic->dev, "FW heartbeat restored at %d\n", fw_hb); in ionic_heartbeat_check()
395 int ionic_set_vf_config(struct ionic *ionic, int vf, u8 attr, u8 *data) in ionic_set_vf_config() argument
407 dev_dbg(ionic->dev, "%s: vf %d spoof %d\n", in ionic_set_vf_config()
412 dev_dbg(ionic->dev, "%s: vf %d trust %d\n", in ionic_set_vf_config()
417 dev_dbg(ionic->dev, "%s: vf %d linkstate %d\n", in ionic_set_vf_config()
422 dev_dbg(ionic->dev, "%s: vf %d macaddr %pM\n", in ionic_set_vf_config()
427 dev_dbg(ionic->dev, "%s: vf %d vlan %d\n", in ionic_set_vf_config()
432 dev_dbg(ionic->dev, "%s: vf %d maxrate %d\n", in ionic_set_vf_config()
437 dev_dbg(ionic->dev, "%s: vf %d stats_pa 0x%08llx\n", in ionic_set_vf_config()
444 mutex_lock(&ionic->dev_cmd_lock); in ionic_set_vf_config()
445 ionic_dev_cmd_go(&ionic->idev, &cmd); in ionic_set_vf_config()
446 err = ionic_dev_cmd_wait(ionic, DEVCMD_TIMEOUT); in ionic_set_vf_config()
447 mutex_unlock(&ionic->dev_cmd_lock); in ionic_set_vf_config()