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()
333 const struct config_field *field; in xen_pcibk_config_free_dyn_fields() local
341 field = cfg_entry->field; in xen_pcibk_config_free_dyn_fields()
343 if (field->clean) { in xen_pcibk_config_free_dyn_fields()
344 field->clean((struct config_field *)field); in xen_pcibk_config_free_dyn_fields()
359 const struct config_field *field; in xen_pcibk_config_reset_dev() local
366 field = cfg_entry->field; in xen_pcibk_config_reset_dev()
368 if (field->reset) in xen_pcibk_config_reset_dev()
369 field->reset(dev, OFFSET(cfg_entry), cfg_entry->data); in xen_pcibk_config_reset_dev()
377 const struct config_field *field; in xen_pcibk_config_free_dev() local
386 field = cfg_entry->field; in xen_pcibk_config_free_dev()
388 if (field->release) in xen_pcibk_config_free_dev()
389 field->release(dev, OFFSET(cfg_entry), cfg_entry->data); in xen_pcibk_config_free_dev()
396 const struct config_field *field, in xen_pcibk_config_add_field_offset() argument
411 cfg_entry->field = field; in xen_pcibk_config_add_field_offset()
419 if (field->init) { in xen_pcibk_config_add_field_offset()
420 tmp = field->init(dev, OFFSET(cfg_entry)); in xen_pcibk_config_add_field_offset()