Lines Matching refs:prop
113 Property *prop;
135 for (prop = info->props; prop && prop->name; prop++) {
142 if (!prop->info->parse) {
145 error_printf("%s.%s=%s\n", info->name, prop->name, prop->info->name);
237 DeviceProperty *prop;
240 prop = qemu_mallocz(sizeof(*prop));
241 prop->name = qemu_strdup(name);
242 prop->type = type;
243 prop->next = dev->props;
244 dev->props = prop;
246 return prop;
251 DeviceProperty *prop;
253 prop = create_prop(dev, name, PROP_TYPE_INT);
254 prop->value.i = value;
259 DeviceProperty *prop;
261 prop = create_prop(dev, name, PROP_TYPE_DEV);
262 prop->value.ptr = value;
267 DeviceProperty *prop;
269 prop = create_prop(dev, name, PROP_TYPE_PTR);
270 prop->value.ptr = value;
301 DeviceProperty *prop;
303 for (prop = dev->props; prop; prop = prop->next) {
304 if (strcmp(prop->name, name) == 0) {
305 assert (prop->type == type);
306 return prop;
314 DeviceProperty *prop;
316 prop = find_prop(dev, name, PROP_TYPE_INT);
317 if (!prop) {
321 return prop->value.i;
326 DeviceProperty *prop;
328 prop = find_prop(dev, name, PROP_TYPE_PTR);
329 assert(prop);
330 return prop->value.ptr;
335 DeviceProperty *prop;
337 prop = find_prop(dev, name, PROP_TYPE_DEV);
338 if (!prop) {
341 return prop->value.ptr;
466 DeviceProperty *prop;
476 for (prop = dev->props; prop; prop = prop->next) {
477 switch (prop->type) {
479 qdev_printf("prop-int %s 0x%" PRIx64 "\n", prop->name,
480 prop->value.i);
483 qdev_printf("prop-ptr %s\n", prop->name);
486 qdev_printf("prop-dev %s %s\n", prop->name,
487 ((DeviceState *)prop->value.ptr)->type->info->name);
490 qdev_printf("prop-unknown%d %s\n", prop->type, prop->name);