Lines Matching defs:object
76 /* MXT_GEN_MESSAGE_T5 object */
315 /* Cached parameters from object table */
700 struct mxt_object *object;
704 object = data->object_table + i;
705 if (object->type == type)
706 return object;
709 dev_warn(&data->client->dev, "Invalid object type T%u\n", type);
749 struct mxt_object *object;
752 object = mxt_get_object(data, type);
753 if (!object || offset >= mxt_obj_size(object))
756 reg = object->start_address;
1326 struct mxt_object *object;
1342 dev_err(dev, "Bad format: failed to parse object\n");
1347 object = mxt_get_object(data, type);
1348 if (!object) {
1349 /* Skip object */
1363 if (size > mxt_obj_size(object)) {
1370 size - mxt_obj_size(object), type);
1371 } else if (mxt_obj_size(object) > size) {
1382 mxt_obj_size(object) - size, type);
1385 if (instance >= mxt_obj_instances(object)) {
1390 reg = object->start_address + mxt_obj_size(object) * instance;
1403 if (i > mxt_obj_size(object))
1411 dev_err(dev, "Bad object: reg:%d, T%d, ofs=%d\n",
1412 reg, object->type, byte_offset);
1461 * The rest of the file consists of one line per object instance:
1464 * <TYPE> - 2-byte object type as hex
1465 * <INSTANCE> - 2-byte object instance number as hex
1466 * <SIZE> - 2-byte object size as hex
1540 * The Info Block CRC is calculated over mxt_info and the object
1669 struct mxt_object *object = object_table + i;
1672 le16_to_cpus(&object->start_address);
1674 if (object->num_report_ids) {
1676 reportid += object->num_report_ids *
1677 mxt_obj_instances(object);
1686 object->type, object->start_address,
1687 mxt_obj_size(object), mxt_obj_instances(object),
1690 switch (object->type) {
1699 data->T5_msg_size = mxt_obj_size(object);
1702 data->T5_msg_size = mxt_obj_size(object) - 1;
1704 data->T5_address = object->start_address;
1708 data->T6_address = object->start_address;
1711 data->T7_address = object->start_address;
1714 data->T71_address = object->start_address;
1721 object->num_report_ids - 1;
1722 data->num_touchids = object->num_report_ids;
1725 data->T18_address = object->start_address;
1728 data->T44_address = object->start_address;
1738 data->num_touchids = object->num_report_ids - 2;
1742 end_address = object->start_address
1743 + mxt_obj_size(object) * mxt_obj_instances(object) - 1;
1837 /* Parse object table information */
1840 dev_err(&client->dev, "Error %d parsing object table\n", error);
1860 struct mxt_object *object;
1862 object = mxt_get_object(data, MXT_TOUCH_MULTI_T9);
1863 if (!object)
1867 object->start_address + MXT_T9_XSIZE,
1873 object->start_address + MXT_T9_YSIZE,
1879 object->start_address + MXT_T9_RANGE,
1888 object->start_address + MXT_T9_ORIENT,
1904 struct mxt_object *object;
1909 object = mxt_get_object(data, MXT_TOUCH_MULTITOUCHSCREEN_T100);
1910 if (!object)
1915 object->start_address + MXT_T100_XRANGE,
1923 object->start_address + MXT_T100_YRANGE,
1931 object->start_address + MXT_T100_XSIZE,
1937 object->start_address + MXT_T100_YSIZE,
1944 object->start_address + MXT_T100_CFG1,
1955 object->start_address + MXT_T100_TCHAUX,
2027 dev_err(dev, "Invalid multitouch object\n");
2604 struct mxt_object *object;
2607 object = mxt_get_object(data, MXT_GEN_COMMAND_T6);
2608 if (!object)
2611 dbg->diag_cmd_address = object->start_address + MXT_COMMAND_DIAGNOSTIC;
2613 object = mxt_get_object(data, MXT_DEBUG_DIAGNOSTIC_T37);
2614 if (!object)
2617 if (mxt_obj_size(object) != sizeof(struct t37_debug)) {
2622 dbg->t37_address = object->start_address;
2707 dev_warn(dev, "No touch object detected\n");
2736 struct mxt_object *object, int instance,
2741 if (mxt_obj_instances(object) > 1)
2745 for (i = 0; i < mxt_obj_size(object); i++)
2757 struct mxt_object *object;
2763 /* Pre-allocate buffer large enough to hold max sized object. */
2770 object = data->object_table + i;
2772 if (!mxt_object_readable(object->type))
2776 "T%u:\n", object->type);
2778 for (j = 0; j < mxt_obj_instances(object); j++) {
2779 u16 size = mxt_obj_size(object);
2780 u16 addr = object->start_address + j * size;
2786 count = mxt_show_instance(buf, count, object, j, obuf);
2964 static DEVICE_ATTR(object, S_IRUGO, mxt_object_show, NULL);