Lines Matching refs:fw_blk
110 struct iqs62x_fw_blk *fw_blk; in iqs62x_dev_init() local
114 list_for_each_entry(fw_blk, &iqs62x->fw_blk_head, list) { in iqs62x_dev_init()
119 if (fw_blk->addr == IQS62X_SYS_SETTINGS && in iqs62x_dev_init()
120 *fw_blk->data & IQS62X_SYS_SETTINGS_CLK_DIV) in iqs62x_dev_init()
123 if (fw_blk->mask) in iqs62x_dev_init()
124 ret = regmap_update_bits(iqs62x->regmap, fw_blk->addr, in iqs62x_dev_init()
125 fw_blk->mask, *fw_blk->data); in iqs62x_dev_init()
127 ret = regmap_raw_write(iqs62x->regmap, fw_blk->addr, in iqs62x_dev_init()
128 fw_blk->data, fw_blk->len); in iqs62x_dev_init()
225 struct iqs62x_fw_blk *fw_blk; in iqs62x_firmware_parse() local
319 fw_blk = devm_kzalloc(&client->dev, in iqs62x_firmware_parse()
320 struct_size(fw_blk, data, len), in iqs62x_firmware_parse()
322 if (!fw_blk) { in iqs62x_firmware_parse()
327 fw_blk->addr = fw_rec->addr; in iqs62x_firmware_parse()
328 fw_blk->mask = mask; in iqs62x_firmware_parse()
329 fw_blk->len = len; in iqs62x_firmware_parse()
330 memcpy(fw_blk->data, data, len); in iqs62x_firmware_parse()
332 list_add(&fw_blk->list, &iqs62x->fw_blk_head); in iqs62x_firmware_parse()