Lines Matching refs:fw_rec
224 struct iqs62x_fw_rec *fw_rec; in iqs62x_firmware_parse() local
233 if (pos + sizeof(*fw_rec) > fw->size) { in iqs62x_firmware_parse()
237 fw_rec = (struct iqs62x_fw_rec *)(fw->data + pos); in iqs62x_firmware_parse()
238 pos += sizeof(*fw_rec); in iqs62x_firmware_parse()
240 if (pos + fw_rec->len - 1 > fw->size) { in iqs62x_firmware_parse()
244 pos += fw_rec->len - 1; in iqs62x_firmware_parse()
246 switch (fw_rec->type) { in iqs62x_firmware_parse()
251 if (fw_rec->data == iqs62x->dev_desc->prod_num) in iqs62x_firmware_parse()
256 fw_rec->data); in iqs62x_firmware_parse()
282 if (hall_cal_index > fw_rec->len) { in iqs62x_firmware_parse()
288 data = &fw_rec->data + hall_cal_index - 1; in iqs62x_firmware_parse()
293 if (fw_rec->len < (sizeof(mask) + sizeof(*data))) { in iqs62x_firmware_parse()
298 mask = fw_rec->data; in iqs62x_firmware_parse()
299 data = &fw_rec->data + sizeof(mask); in iqs62x_firmware_parse()
305 data = &fw_rec->data; in iqs62x_firmware_parse()
306 len = fw_rec->len; in iqs62x_firmware_parse()
312 fw_rec->type); in iqs62x_firmware_parse()
327 fw_blk->addr = fw_rec->addr; in iqs62x_firmware_parse()