Lines Matching refs:driver_config
89 static struct vxge_drv_config *driver_config; variable
3682 temp = driver_config->vpath_per_dev; in vxge_config_vpaths()
3683 if ((driver_config->vpath_per_dev == VXGE_USE_DEFAULT) && in vxge_config_vpaths()
3686 if (driver_config->g_no_cpus == -1) in vxge_config_vpaths()
3689 if (!driver_config->g_no_cpus) in vxge_config_vpaths()
3690 driver_config->g_no_cpus = in vxge_config_vpaths()
3693 driver_config->vpath_per_dev = driver_config->g_no_cpus >> 1; in vxge_config_vpaths()
3694 if (!driver_config->vpath_per_dev) in vxge_config_vpaths()
3695 driver_config->vpath_per_dev = 1; in vxge_config_vpaths()
3702 if (default_no_vpath < driver_config->vpath_per_dev) in vxge_config_vpaths()
3703 driver_config->vpath_per_dev = default_no_vpath; in vxge_config_vpaths()
3705 driver_config->g_no_cpus = driver_config->g_no_cpus - in vxge_config_vpaths()
3706 (driver_config->vpath_per_dev * 2); in vxge_config_vpaths()
3707 if (driver_config->g_no_cpus <= 0) in vxge_config_vpaths()
3708 driver_config->g_no_cpus = -1; in vxge_config_vpaths()
3711 if (driver_config->vpath_per_dev == 1) { in vxge_config_vpaths()
3727 if (no_of_vpaths < driver_config->vpath_per_dev) { in vxge_config_vpaths()
3857 driver_config->vpath_per_dev = temp; in vxge_config_vpaths()
4338 if (driver_config->config_dev_cnt && in vxge_probe()
4339 (driver_config->config_dev_cnt != in vxge_probe()
4340 driver_config->total_dev_cnt)) in vxge_probe()
4344 driver_config->config_dev_cnt, in vxge_probe()
4345 driver_config->total_dev_cnt); in vxge_probe()
4346 driver_config->config_dev_cnt = 0; in vxge_probe()
4347 driver_config->total_dev_cnt = 0; in vxge_probe()
4353 driver_config->g_no_cpus = 0; in vxge_probe()
4354 driver_config->vpath_per_dev = max_config_vpath; in vxge_probe()
4356 driver_config->total_dev_cnt++; in vxge_probe()
4357 if (++driver_config->config_dev_cnt > max_config_dev) { in vxge_probe()
4753 driver_config->config_dev_cnt--; in vxge_probe()
4754 driver_config->total_dev_cnt--; in vxge_probe()
4789 driver_config->config_dev_cnt--; in vxge_remove()
4790 driver_config->total_dev_cnt--; in vxge_remove()
4826 driver_config = kzalloc(sizeof(struct vxge_drv_config), GFP_KERNEL); in vxge_starter()
4827 if (!driver_config) in vxge_starter()
4832 kfree(driver_config); in vxge_starter()
4836 if (driver_config->config_dev_cnt && in vxge_starter()
4837 (driver_config->config_dev_cnt != driver_config->total_dev_cnt)) in vxge_starter()
4840 VXGE_DRIVER_NAME, driver_config->config_dev_cnt, in vxge_starter()
4841 driver_config->total_dev_cnt); in vxge_starter()
4850 kfree(driver_config); in vxge_closer()