Lines Matching refs:bk_da
153 struct tasdev_blk_data **bk_da; in tasdevice_add_config() local
196 bk_da = cfg_info->blk_data = kcalloc(cfg_info->nblocks, in tasdevice_add_config()
198 if (!bk_da) { in tasdevice_add_config()
211 bk_da[i] = kzalloc(sizeof(struct tasdev_blk_data), GFP_KERNEL); in tasdevice_add_config()
212 if (!bk_da[i]) { in tasdevice_add_config()
217 bk_da[i]->dev_idx = config_data[config_offset]; in tasdevice_add_config()
220 bk_da[i]->block_type = config_data[config_offset]; in tasdevice_add_config()
223 if (bk_da[i]->block_type == TASDEVICE_BIN_BLK_PRE_POWER_UP) { in tasdevice_add_config()
224 if (bk_da[i]->dev_idx == 0) in tasdevice_add_config()
229 (bk_da[i]->dev_idx - 1); in tasdevice_add_config()
232 bk_da[i]->yram_checksum = in tasdevice_add_config()
235 bk_da[i]->block_size = in tasdevice_add_config()
239 bk_da[i]->n_subblks = in tasdevice_add_config()
244 if (config_offset + bk_da[i]->block_size > config_size) { in tasdevice_add_config()
252 bk_da[i]->regdata = kmemdup(&config_data[config_offset], in tasdevice_add_config()
253 bk_da[i]->block_size, GFP_KERNEL); in tasdevice_add_config()
254 if (!bk_da[i]->regdata) { in tasdevice_add_config()
259 config_offset += bk_da[i]->block_size; in tasdevice_add_config()