Lines Matching refs:blk_data
198 bk_da = cfg_info->blk_data = kcalloc(cfg_info->nblocks, in tasdevice_add_config()
817 struct tasdev_blk_data **blk_data; in tasdevice_select_cfg_blk() local
825 blk_data = cfg_info[conf_no]->blk_data; in tasdevice_select_cfg_blk()
835 if (block_type != blk_data[j]->block_type) in tasdevice_select_cfg_blk()
838 for (k = 0; k < (int)blk_data[j]->n_subblks; k++) { in tasdevice_select_cfg_blk()
839 if (blk_data[j]->dev_idx) { in tasdevice_select_cfg_blk()
840 chn = blk_data[j]->dev_idx - 1; in tasdevice_select_cfg_blk()
841 chnend = blk_data[j]->dev_idx; in tasdevice_select_cfg_blk()
850 blk_data[j]->regdata + length, in tasdevice_select_cfg_blk()
851 blk_data[j]->dev_idx, in tasdevice_select_cfg_blk()
852 blk_data[j]->block_size - length); in tasdevice_select_cfg_blk()
854 if (blk_data[j]->block_size < length) { in tasdevice_select_cfg_blk()
858 blk_data[j]->block_size); in tasdevice_select_cfg_blk()
862 if (length != blk_data[j]->block_size) in tasdevice_select_cfg_blk()
864 __func__, length, blk_data[j]->block_size); in tasdevice_select_cfg_blk()
2122 if (ci[i]->blk_data) { in tasdevice_config_info_remove()
2124 if (!ci[i]->blk_data[j]) in tasdevice_config_info_remove()
2126 kfree(ci[i]->blk_data[j]->regdata); in tasdevice_config_info_remove()
2127 kfree(ci[i]->blk_data[j]); in tasdevice_config_info_remove()
2129 kfree(ci[i]->blk_data); in tasdevice_config_info_remove()