Lines Matching refs:img_data
372 struct tasdevice_data *img_data, const struct firmware *fmw, in fw_parse_data_kernel() argument
384 img_data->nr_blk = be32_to_cpup((__be32 *)&data[offset]); in fw_parse_data_kernel()
387 img_data->dev_blks = kcalloc(img_data->nr_blk, in fw_parse_data_kernel()
389 if (!img_data->dev_blks) { in fw_parse_data_kernel()
394 for (i = 0; i < img_data->nr_blk; i++) { in fw_parse_data_kernel()
395 blk = &(img_data->dev_blks[i]); in fw_parse_data_kernel()
1048 struct tasdevice_data *img_data, const struct firmware *fmw, in fw_parse_data() argument
1061 memcpy(img_data->name, &data[offset], 64); in fw_parse_data()
1072 img_data->nr_blk = be16_to_cpup((__be16 *)&data[offset]); in fw_parse_data()
1075 img_data->dev_blks = kcalloc(img_data->nr_blk, in fw_parse_data()
1077 if (!img_data->dev_blks) { in fw_parse_data()
1081 for (i = 0; i < img_data->nr_blk; i++) { in fw_parse_data()
1082 blk = &(img_data->dev_blks[i]); in fw_parse_data()