Lines Matching defs:object

79 /* MXT_GEN_MESSAGE_T5 object */
321 /* Cached parameters from object table */
752 struct mxt_object *object;
756 object = data->object_table + i;
757 if (object->type == type)
758 return object;
761 dev_warn(&data->client->dev, "Invalid object type T%u\n", type);
801 struct mxt_object *object;
804 object = mxt_get_object(data, type);
805 if (!object || offset >= mxt_obj_size(object))
808 reg = object->start_address;
1402 struct mxt_object *object;
1418 dev_err(dev, "Bad format: failed to parse object\n");
1423 object = mxt_get_object(data, type);
1424 if (!object) {
1425 /* Skip object */
1439 if (size > mxt_obj_size(object)) {
1446 size - mxt_obj_size(object), type);
1447 } else if (mxt_obj_size(object) > size) {
1458 mxt_obj_size(object) - size, type);
1461 if (instance >= mxt_obj_instances(object)) {
1466 reg = object->start_address + mxt_obj_size(object) * instance;
1479 if (i > mxt_obj_size(object))
1487 dev_err(dev, "Bad object: reg:%d, T%d, ofs=%d\n",
1488 reg, object->type, byte_offset);
1537 * The rest of the file consists of one line per object instance:
1540 * <TYPE> - 2-byte object type as hex
1541 * <INSTANCE> - 2-byte object instance number as hex
1542 * <SIZE> - 2-byte object size as hex
1616 * The Info Block CRC is calculated over mxt_info and the object
1749 struct mxt_object *object = object_table + i;
1752 le16_to_cpus(&object->start_address);
1754 if (object->num_report_ids) {
1756 reportid += object->num_report_ids *
1757 mxt_obj_instances(object);
1766 object->type, object->start_address,
1767 mxt_obj_size(object), mxt_obj_instances(object),
1770 switch (object->type) {
1779 data->T5_msg_size = mxt_obj_size(object);
1782 data->T5_msg_size = mxt_obj_size(object) - 1;
1784 data->T5_address = object->start_address;
1788 data->T6_address = object->start_address;
1791 data->T7_address = object->start_address;
1794 data->T71_address = object->start_address;
1801 object->num_report_ids - 1;
1802 data->num_touchids = object->num_report_ids;
1809 data->T18_address = object->start_address;
1812 data->T44_address = object->start_address;
1826 data->num_touchids = object->num_report_ids - 2;
1830 end_address = object->start_address
1831 + mxt_obj_size(object) * mxt_obj_instances(object) - 1;
1925 /* Parse object table information */
1928 dev_err(&client->dev, "Error %d parsing object table\n", error);
1948 struct mxt_object *object;
1950 object = mxt_get_object(data, MXT_TOUCH_MULTI_T9);
1951 if (!object)
1955 object->start_address + MXT_T9_XSIZE,
1961 object->start_address + MXT_T9_YSIZE,
1967 object->start_address + MXT_T9_RANGE,
1976 object->start_address + MXT_T9_ORIENT,
1992 struct mxt_object *object;
1997 object = mxt_get_object(data, MXT_TOUCH_MULTITOUCHSCREEN_T100);
1998 if (!object)
2003 object->start_address + MXT_T100_XRANGE,
2011 object->start_address + MXT_T100_YRANGE,
2019 object->start_address + MXT_T100_XSIZE,
2025 object->start_address + MXT_T100_YSIZE,
2032 object->start_address + MXT_T100_CFG1,
2043 object->start_address + MXT_T100_TCHAUX,
2116 dev_err(dev, "Invalid multitouch object\n");
2704 struct mxt_object *object;
2707 object = mxt_get_object(data, MXT_GEN_COMMAND_T6);
2708 if (!object)
2711 dbg->diag_cmd_address = object->start_address + MXT_COMMAND_DIAGNOSTIC;
2713 object = mxt_get_object(data, MXT_DEBUG_DIAGNOSTIC_T37);
2714 if (!object)
2717 if (mxt_obj_size(object) != sizeof(struct t37_debug)) {
2722 dbg->t37_address = object->start_address;
2807 dev_warn(dev, "No touch object detected\n");
2835 struct mxt_object *object, int instance,
2840 if (mxt_obj_instances(object) > 1)
2843 for (i = 0; i < mxt_obj_size(object); i++)
2855 struct mxt_object *object;
2861 /* Pre-allocate buffer large enough to hold max sized object. */
2868 object = data->object_table + i;
2870 if (!mxt_object_readable(object->type))
2873 count += sysfs_emit_at(buf, count, "T%u:\n", object->type);
2875 for (j = 0; j < mxt_obj_instances(object); j++) {
2876 u16 size = mxt_obj_size(object);
2877 u16 addr = object->start_address + j * size;
2883 count = mxt_show_instance(buf, count, object, j, obuf);
3061 static DEVICE_ATTR(object, S_IRUGO, mxt_object_show, NULL);