Lines Matching defs:model

315              "model=%s,macaddr=%02x:%02x:%02x:%02x:%02x:%02x",
316 vc->model,
321 static char *assign_name(VLANClientState *vc1, const char *model)
331 if (vc != vc1 && strcmp(vc->model, model) == 0)
335 snprintf(buf, sizeof(buf), "%s.%d", model, id);
341 const char *model,
351 vc->model = strdup(model);
355 vc->name = assign_name(vc, model);
382 free(vc->model);
813 static int net_slirp_init(VLANState *vlan, const char *model, const char *name,
839 slirp_vc = qemu_new_vlan_client(vlan, model, name, NULL, slirp_receive,
1229 const char *model,
1237 s->vc = qemu_new_vlan_client(vlan, model, name, NULL, tap_receive,
1478 static int net_tap_init(VLANState *vlan, const char *model,
1500 s = net_tap_fd_init(vlan, model, name, fd);
1551 static int net_vde_init(VLANState *vlan, const char *model,
1571 s->vc = qemu_new_vlan_client(vlan, model, name, NULL, vde_receive,
1593 char *model;
1757 const char *model,
1799 s->vc = qemu_new_vlan_client(vlan, model, name, NULL, net_socket_receive_dgram,
1820 const char *model,
1827 s->vc = qemu_new_vlan_client(vlan, model, name, NULL, net_socket_receive,
1840 const char *model, const char *name,
1847 return net_socket_fd_init_dgram(vlan, model, name, fd, is_connected);
1849 return net_socket_fd_init_stream(vlan, model, name, fd, is_connected);
1853 return net_socket_fd_init_stream(vlan, model, name, fd, is_connected);
1873 s1 = net_socket_fd_init(s->vlan, s->model, s->name, fd, 1);
1883 const char *model,
1917 s->model = strdup(model);
1925 const char *model,
1961 s = net_socket_fd_init(vlan, model, name, fd, connected);
1971 const char *model,
1987 s = net_socket_fd_init(vlan, model, name, fd, 0);
2130 void qemu_check_nic_model(NICInfo *nd, const char *model)
2134 models[0] = model;
2137 qemu_check_nic_model_list(nd, models, model);
2145 if (!nd->model)
2146 nd->model = strdup(default_model);
2148 if (strcmp(nd->model, "?") != 0) {
2150 if (strcmp(nd->model, models[i]) == 0)
2153 fprintf(stderr, "qemu: Unsupported NIC model: %s\n", nd->model);
2185 "vlan", "name", "macaddr", "model", NULL
2217 if (get_param_value(buf, sizeof(buf), "model", p)) {
2218 nd->model = strdup(buf);
2461 free((void *)nd->model);
2512 if (!net_host_check_device(vc->model)) {