Lines Matching refs:cfg_entry

152 	const struct config_field_entry *cfg_entry;  in xen_pcibk_config_read()  local
179 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_read()
180 field = cfg_entry->field; in xen_pcibk_config_read()
182 field_start = OFFSET(cfg_entry); in xen_pcibk_config_read()
183 field_end = OFFSET(cfg_entry) + field->size; in xen_pcibk_config_read()
186 err = conf_space_read(dev, cfg_entry, field_start, in xen_pcibk_config_read()
208 const struct config_field_entry *cfg_entry; in xen_pcibk_config_write() local
219 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_write()
220 field = cfg_entry->field; in xen_pcibk_config_write()
222 field_start = OFFSET(cfg_entry); in xen_pcibk_config_write()
223 field_end = OFFSET(cfg_entry) + field->size; in xen_pcibk_config_write()
226 err = conf_space_read(dev, cfg_entry, field_start, in xen_pcibk_config_write()
234 err = conf_space_write(dev, cfg_entry, field_start, in xen_pcibk_config_write()
332 struct config_field_entry *cfg_entry, *t; in xen_pcibk_config_free_dyn_fields() local
340 list_for_each_entry_safe(cfg_entry, t, &dev_data->config_fields, list) { in xen_pcibk_config_free_dyn_fields()
341 field = cfg_entry->field; in xen_pcibk_config_free_dyn_fields()
346 kfree(cfg_entry->data); in xen_pcibk_config_free_dyn_fields()
348 list_del(&cfg_entry->list); in xen_pcibk_config_free_dyn_fields()
349 kfree(cfg_entry); in xen_pcibk_config_free_dyn_fields()
358 const struct config_field_entry *cfg_entry; in xen_pcibk_config_reset_dev() local
365 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_reset_dev()
366 field = cfg_entry->field; in xen_pcibk_config_reset_dev()
369 field->reset(dev, OFFSET(cfg_entry), cfg_entry->data); in xen_pcibk_config_reset_dev()
376 struct config_field_entry *cfg_entry, *t; in xen_pcibk_config_free_dev() local
383 list_for_each_entry_safe(cfg_entry, t, &dev_data->config_fields, list) { in xen_pcibk_config_free_dev()
384 list_del(&cfg_entry->list); in xen_pcibk_config_free_dev()
386 field = cfg_entry->field; in xen_pcibk_config_free_dev()
389 field->release(dev, OFFSET(cfg_entry), cfg_entry->data); in xen_pcibk_config_free_dev()
391 kfree(cfg_entry); in xen_pcibk_config_free_dev()
401 struct config_field_entry *cfg_entry; in xen_pcibk_config_add_field_offset() local
404 cfg_entry = kmalloc(sizeof(*cfg_entry), GFP_KERNEL); in xen_pcibk_config_add_field_offset()
405 if (!cfg_entry) { in xen_pcibk_config_add_field_offset()
410 cfg_entry->data = NULL; in xen_pcibk_config_add_field_offset()
411 cfg_entry->field = field; in xen_pcibk_config_add_field_offset()
412 cfg_entry->base_offset = base_offset; in xen_pcibk_config_add_field_offset()
415 err = xen_pcibk_field_is_dup(dev, OFFSET(cfg_entry)); in xen_pcibk_config_add_field_offset()
420 tmp = field->init(dev, OFFSET(cfg_entry)); in xen_pcibk_config_add_field_offset()
427 cfg_entry->data = tmp; in xen_pcibk_config_add_field_offset()
431 OFFSET(cfg_entry)); in xen_pcibk_config_add_field_offset()
432 list_add_tail(&cfg_entry->list, &dev_data->config_fields); in xen_pcibk_config_add_field_offset()
436 kfree(cfg_entry); in xen_pcibk_config_add_field_offset()