Lines Matching full:model

162     qemu_set_info_str(nc, "model=%s,macaddr=%02x:%02x:%02x:%02x:%02x:%02x",  in qemu_format_nic_info_str()
163 nc->model, macaddr[0], macaddr[1], macaddr[2], in qemu_format_nic_info_str()
236 static char *assign_name(NetClientState *nc1, const char *model) in assign_name() argument
245 if (strcmp(nc->model, model) == 0) { in assign_name()
250 return g_strdup_printf("%s.%d", model, id); in assign_name()
266 const char *model, in qemu_net_client_setup() argument
272 nc->model = g_strdup(model); in qemu_net_client_setup()
276 nc->name = assign_name(nc, model); in qemu_net_client_setup()
294 const char *model, in qemu_new_net_client() argument
302 qemu_net_client_setup(nc, info, peer, model, name, in qemu_new_net_client()
310 const char *model, in qemu_new_net_control_client() argument
318 qemu_net_client_setup(nc, info, peer, model, name, in qemu_new_net_control_client()
326 const char *model, in qemu_new_nic() argument
345 qemu_net_client_setup(&nic->ncs[i], info, peers[i], model, name, in qemu_new_nic()
405 g_free(nc->model); in qemu_free_net_client()
1008 if (nic->model) { in net_init_nic()
1009 nd->model = g_strdup(nic->model); in net_init_nic()
1048 const char *model = key; in add_nic_result() local
1052 result = g_strdup(model); in add_nic_result()
1054 GString *result_str = g_string_new(model); in add_nic_result()
1094 static void add_nic_model_help(const char *model, const char *alias) in add_nic_model_help() argument
1098 if (g_hash_table_lookup_extended(nic_model_help, model, NULL, in add_nic_model_help()
1113 /* Either this model wasn't in the list already, or a first alias added */ in add_nic_model_help()
1119 g_hash_table_replace(nic_model_help, g_strdup(model), alias_list); in add_nic_model_help()
1139 if ((match_default && !nd->model) || !g_strcmp0(nd->model, typename) in qemu_find_nic_info()
1140 || (alias && !g_strcmp0(nd->model, alias))) { in qemu_find_nic_info()
1147 static bool is_nic_model_help_option(const char *model) in is_nic_model_help_option() argument
1149 if (model && is_help_option(model)) { in is_nic_model_help_option()
1198 const char *model; in qemu_create_nic_bus_devices() local
1222 model = nd->model ? nd->model : default_model; in qemu_create_nic_bus_devices()
1223 if (!model) { in qemu_create_nic_bus_devices()
1228 if (g_str_equal(model, alias)) { in qemu_create_nic_bus_devices()
1229 model = alias_target; in qemu_create_nic_bus_devices()
1232 if (!g_ptr_array_find_with_equal_func(nic_models, model, in qemu_create_nic_bus_devices()
1238 dev = qdev_new(model); in qemu_create_nic_bus_devices()
1680 * model which created them, and in some cases (e.g. xen-net-device) in net_cleanup()
1749 warn_report("requested NIC (%s, model %s) " in net_check_clients()
1752 nd->model ? nd->model : "unspecified"); in net_check_clients()
1759 const char *model = qemu_opt_get(opts, "model"); in net_init_client() local
1761 if (is_nic_model_help_option(model)) { in net_init_client()
1798 "(use -nic model=help for a filtered list):\n"); in net_param_nic()
1819 ni->model = qemu_opt_get_del(opts, "model"); in net_param_nic()
1821 if (is_nic_model_help_option(ni->model)) { in net_param_nic()