Lines Matching refs:fields

44 	struct hid_sensor_custom_field *fields;  member
303 attribute = &sensor_inst->fields[field_index].attribute; in show_value()
356 value = sensor_inst->fields[field_index].attribute.units; in show_value()
358 value = sensor_inst->fields[field_index].attribute.unit_expo; in show_value()
360 value = sensor_inst->fields[field_index].attribute.size; in show_value()
362 value = sensor_inst->fields[field_index].attribute. in show_value()
365 value = sensor_inst->fields[field_index].attribute. in show_value()
405 report_id = sensor_inst->fields[field_index].attribute. in store_value()
481 void *fields; in hid_sensor_custom_add_field() local
483 fields = krealloc(sensor_inst->fields, in hid_sensor_custom_add_field()
486 if (!fields) { in hid_sensor_custom_add_field()
487 kfree(sensor_inst->fields); in hid_sensor_custom_add_field()
490 sensor_inst->fields = fields; in hid_sensor_custom_add_field()
491 sensor_field = &sensor_inst->fields[sensor_inst->sensor_field_count]; in hid_sensor_custom_add_field()
588 device_attr = &sensor_inst->fields[i].sd_attrs[j]; in hid_sensor_custom_add_attributes()
590 snprintf((char *)&sensor_inst->fields[i].attr_name[j], in hid_sensor_custom_add_attributes()
592 sensor_inst->fields[i].group_name, in hid_sensor_custom_add_attributes()
596 (char *)&sensor_inst->fields[i].attr_name[j]; in hid_sensor_custom_add_attributes()
601 sensor_inst->fields[i].attrs[j] = &device_attr->attr; in hid_sensor_custom_add_attributes()
604 sensor_inst->fields[i].attrs[j] = NULL; in hid_sensor_custom_add_attributes()
605 sensor_inst->fields[i].hid_custom_attribute_group.attrs = in hid_sensor_custom_add_attributes()
606 sensor_inst->fields[i].attrs; in hid_sensor_custom_add_attributes()
607 sensor_inst->fields[i].hid_custom_attribute_group.name = in hid_sensor_custom_add_attributes()
608 sensor_inst->fields[i].group_name; in hid_sensor_custom_add_attributes()
610 &sensor_inst->fields[i]. in hid_sensor_custom_add_attributes()
616 if (sensor_inst->fields[i].attribute.attrib_id == in hid_sensor_custom_add_attributes()
618 sensor_inst->power_state = &sensor_inst->fields[i]; in hid_sensor_custom_add_attributes()
619 else if (sensor_inst->fields[i].attribute.attrib_id == in hid_sensor_custom_add_attributes()
621 sensor_inst->report_state = &sensor_inst->fields[i]; in hid_sensor_custom_add_attributes()
634 &sensor_inst->fields[i]. in hid_sensor_custom_remove_attributes()
637 kfree(sensor_inst->fields); in hid_sensor_custom_remove_attributes()