Lines Matching refs:fields

43 	struct hid_sensor_custom_field *fields;  member
302 attribute = &sensor_inst->fields[field_index].attribute; in show_value()
355 value = sensor_inst->fields[field_index].attribute.units; in show_value()
357 value = sensor_inst->fields[field_index].attribute.unit_expo; in show_value()
359 value = sensor_inst->fields[field_index].attribute.size; in show_value()
361 value = sensor_inst->fields[field_index].attribute. in show_value()
364 value = sensor_inst->fields[field_index].attribute. in show_value()
404 report_id = sensor_inst->fields[field_index].attribute. in store_value()
480 void *fields; in hid_sensor_custom_add_field() local
482 fields = krealloc(sensor_inst->fields, in hid_sensor_custom_add_field()
485 if (!fields) { in hid_sensor_custom_add_field()
486 kfree(sensor_inst->fields); in hid_sensor_custom_add_field()
489 sensor_inst->fields = fields; in hid_sensor_custom_add_field()
490 sensor_field = &sensor_inst->fields[sensor_inst->sensor_field_count]; in hid_sensor_custom_add_field()
587 device_attr = &sensor_inst->fields[i].sd_attrs[j]; in hid_sensor_custom_add_attributes()
589 snprintf((char *)&sensor_inst->fields[i].attr_name[j], in hid_sensor_custom_add_attributes()
591 sensor_inst->fields[i].group_name, in hid_sensor_custom_add_attributes()
595 (char *)&sensor_inst->fields[i].attr_name[j]; in hid_sensor_custom_add_attributes()
600 sensor_inst->fields[i].attrs[j] = &device_attr->attr; in hid_sensor_custom_add_attributes()
603 sensor_inst->fields[i].attrs[j] = NULL; in hid_sensor_custom_add_attributes()
604 sensor_inst->fields[i].hid_custom_attribute_group.attrs = in hid_sensor_custom_add_attributes()
605 sensor_inst->fields[i].attrs; in hid_sensor_custom_add_attributes()
606 sensor_inst->fields[i].hid_custom_attribute_group.name = in hid_sensor_custom_add_attributes()
607 sensor_inst->fields[i].group_name; in hid_sensor_custom_add_attributes()
609 &sensor_inst->fields[i]. in hid_sensor_custom_add_attributes()
615 if (sensor_inst->fields[i].attribute.attrib_id == in hid_sensor_custom_add_attributes()
617 sensor_inst->power_state = &sensor_inst->fields[i]; in hid_sensor_custom_add_attributes()
618 else if (sensor_inst->fields[i].attribute.attrib_id == in hid_sensor_custom_add_attributes()
620 sensor_inst->report_state = &sensor_inst->fields[i]; in hid_sensor_custom_add_attributes()
633 &sensor_inst->fields[i]. in hid_sensor_custom_remove_attributes()
636 kfree(sensor_inst->fields); in hid_sensor_custom_remove_attributes()