Lines Matching refs:flash_attr
898 struct bfa_flash_attr *flash_attr; in bnad_get_flash_partition_by_offset() local
903 flash_attr = kzalloc(sizeof(struct bfa_flash_attr), GFP_KERNEL); in bnad_get_flash_partition_by_offset()
904 if (!flash_attr) in bnad_get_flash_partition_by_offset()
912 ret = bfa_nw_flash_get_attr(&bnad->bna.flash, flash_attr, in bnad_get_flash_partition_by_offset()
916 kfree(flash_attr); in bnad_get_flash_partition_by_offset()
925 for (i = 0; i < flash_attr->npart; i++) { in bnad_get_flash_partition_by_offset()
926 if (offset >= flash_attr->part[i].part_off && in bnad_get_flash_partition_by_offset()
927 offset < (flash_attr->part[i].part_off + in bnad_get_flash_partition_by_offset()
928 flash_attr->part[i].part_size)) { in bnad_get_flash_partition_by_offset()
929 flash_part = flash_attr->part[i].part_type; in bnad_get_flash_partition_by_offset()
930 *base_offset = flash_attr->part[i].part_off; in bnad_get_flash_partition_by_offset()
935 kfree(flash_attr); in bnad_get_flash_partition_by_offset()