Home
last modified time | relevance | path

Searched refs:flash_attr (Results 1 – 3 of 3) sorted by relevance

/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c943 struct bfa_flash_attr *flash_attr; in bnad_get_flash_partition_by_offset() local
948 flash_attr = kzalloc(sizeof(struct bfa_flash_attr), GFP_KERNEL); in bnad_get_flash_partition_by_offset()
949 if (!flash_attr) in bnad_get_flash_partition_by_offset()
957 ret = bfa_nw_flash_get_attr(&bnad->bna.flash, flash_attr, in bnad_get_flash_partition_by_offset()
961 kfree(flash_attr); in bnad_get_flash_partition_by_offset()
970 for (i = 0; i < flash_attr->npart; i++) { in bnad_get_flash_partition_by_offset()
971 if (offset >= flash_attr->part[i].part_off && in bnad_get_flash_partition_by_offset()
972 offset < (flash_attr->part[i].part_off + in bnad_get_flash_partition_by_offset()
973 flash_attr->part[i].part_size)) { in bnad_get_flash_partition_by_offset()
974 flash_part = flash_attr->part[i].part_type; in bnad_get_flash_partition_by_offset()
[all …]
Dbnad.h370 struct bfa_flash_attr flash_attr; member
Dbnad_debugfs.c177 ret = bfa_nw_flash_get_attr(&bnad->bna.flash, &drvinfo->flash_attr, in bnad_get_debug_drvinfo()