Lines Matching refs:cfg_entry

150 	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()
210 const struct config_field_entry *cfg_entry; in xen_pcibk_config_write() local
223 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_write()
224 field = cfg_entry->field; in xen_pcibk_config_write()
226 field_start = OFFSET(cfg_entry); in xen_pcibk_config_write()
227 field_end = OFFSET(cfg_entry) + field->size; in xen_pcibk_config_write()
230 err = conf_space_read(dev, cfg_entry, field_start, in xen_pcibk_config_write()
238 err = conf_space_write(dev, cfg_entry, field_start, in xen_pcibk_config_write()
292 struct config_field_entry *cfg_entry, *t; in xen_pcibk_config_free_dyn_fields() local
300 list_for_each_entry_safe(cfg_entry, t, &dev_data->config_fields, list) { in xen_pcibk_config_free_dyn_fields()
301 field = cfg_entry->field; in xen_pcibk_config_free_dyn_fields()
306 kfree(cfg_entry->data); in xen_pcibk_config_free_dyn_fields()
308 list_del(&cfg_entry->list); in xen_pcibk_config_free_dyn_fields()
309 kfree(cfg_entry); in xen_pcibk_config_free_dyn_fields()
318 const struct config_field_entry *cfg_entry; in xen_pcibk_config_reset_dev() local
325 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_reset_dev()
326 field = cfg_entry->field; in xen_pcibk_config_reset_dev()
329 field->reset(dev, OFFSET(cfg_entry), cfg_entry->data); in xen_pcibk_config_reset_dev()
336 struct config_field_entry *cfg_entry, *t; in xen_pcibk_config_free_dev() local
343 list_for_each_entry_safe(cfg_entry, t, &dev_data->config_fields, list) { in xen_pcibk_config_free_dev()
344 list_del(&cfg_entry->list); in xen_pcibk_config_free_dev()
346 field = cfg_entry->field; in xen_pcibk_config_free_dev()
349 field->release(dev, OFFSET(cfg_entry), cfg_entry->data); in xen_pcibk_config_free_dev()
351 kfree(cfg_entry); in xen_pcibk_config_free_dev()
361 struct config_field_entry *cfg_entry; in xen_pcibk_config_add_field_offset() local
364 cfg_entry = kmalloc(sizeof(*cfg_entry), GFP_KERNEL); in xen_pcibk_config_add_field_offset()
365 if (!cfg_entry) { in xen_pcibk_config_add_field_offset()
370 cfg_entry->data = NULL; in xen_pcibk_config_add_field_offset()
371 cfg_entry->field = field; in xen_pcibk_config_add_field_offset()
372 cfg_entry->base_offset = base_offset; in xen_pcibk_config_add_field_offset()
375 err = xen_pcibk_field_is_dup(dev, OFFSET(cfg_entry)); in xen_pcibk_config_add_field_offset()
380 tmp = field->init(dev, OFFSET(cfg_entry)); in xen_pcibk_config_add_field_offset()
387 cfg_entry->data = tmp; in xen_pcibk_config_add_field_offset()
391 OFFSET(cfg_entry)); in xen_pcibk_config_add_field_offset()
392 list_add_tail(&cfg_entry->list, &dev_data->config_fields); in xen_pcibk_config_add_field_offset()
396 kfree(cfg_entry); in xen_pcibk_config_add_field_offset()