Lines Matching refs:field
47 const struct config_field *field = entry->field; in DEFINE_PCI_CONFIG() local
51 switch (field->size) { in DEFINE_PCI_CONFIG()
53 if (field->u.b.read) in DEFINE_PCI_CONFIG()
54 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG()
58 if (field->u.w.read) in DEFINE_PCI_CONFIG()
59 ret = field->u.w.read(dev, offset, (u16 *) value, in DEFINE_PCI_CONFIG()
63 if (field->u.dw.read) in DEFINE_PCI_CONFIG()
64 ret = field->u.dw.read(dev, offset, value, entry->data); in DEFINE_PCI_CONFIG()
75 const struct config_field *field = entry->field; in conf_space_write() local
77 switch (field->size) { in conf_space_write()
79 if (field->u.b.write) in conf_space_write()
80 ret = field->u.b.write(dev, offset, (u8) value, in conf_space_write()
84 if (field->u.w.write) in conf_space_write()
85 ret = field->u.w.write(dev, offset, (u16) value, in conf_space_write()
89 if (field->u.dw.write) in conf_space_write()
90 ret = field->u.dw.write(dev, offset, value, in conf_space_write()
153 const struct config_field *field; in xen_pcibk_config_read() local
180 field = cfg_entry->field; in xen_pcibk_config_read()
183 field_end = OFFSET(cfg_entry) + field->size; in xen_pcibk_config_read()
192 get_mask(field->size), in xen_pcibk_config_read()
209 const struct config_field *field; in xen_pcibk_config_write() local
220 field = cfg_entry->field; in xen_pcibk_config_write()
223 field_end = OFFSET(cfg_entry) + field->size; in xen_pcibk_config_write()
326 const struct config_field *field; in xen_pcibk_config_free_dyn_fields() local
334 field = cfg_entry->field; in xen_pcibk_config_free_dyn_fields()
336 if (field->clean) { in xen_pcibk_config_free_dyn_fields()
337 field->clean((struct config_field *)field); in xen_pcibk_config_free_dyn_fields()
352 const struct config_field *field; in xen_pcibk_config_reset_dev() local
359 field = cfg_entry->field; in xen_pcibk_config_reset_dev()
361 if (field->reset) in xen_pcibk_config_reset_dev()
362 field->reset(dev, OFFSET(cfg_entry), cfg_entry->data); in xen_pcibk_config_reset_dev()
370 const struct config_field *field; in xen_pcibk_config_free_dev() local
379 field = cfg_entry->field; in xen_pcibk_config_free_dev()
381 if (field->release) in xen_pcibk_config_free_dev()
382 field->release(dev, OFFSET(cfg_entry), cfg_entry->data); in xen_pcibk_config_free_dev()
389 const struct config_field *field, in xen_pcibk_config_add_field_offset() argument
404 cfg_entry->field = field; in xen_pcibk_config_add_field_offset()
412 if (field->init) { in xen_pcibk_config_add_field_offset()
413 tmp = field->init(dev, OFFSET(cfg_entry)); in xen_pcibk_config_add_field_offset()