Lines Matching refs:vpd
764 if (!adapter->vpd) in release_vpd_data()
767 kfree(adapter->vpd->buff); in release_vpd_data()
768 kfree(adapter->vpd); in release_vpd_data()
770 adapter->vpd = NULL; in release_vpd_data()
1279 if (adapter->vpd->buff) in ibmvnic_get_vpd()
1280 len = adapter->vpd->len; in ibmvnic_get_vpd()
1302 if (!adapter->vpd->len) in ibmvnic_get_vpd()
1305 if (!adapter->vpd->buff) in ibmvnic_get_vpd()
1306 adapter->vpd->buff = kzalloc(adapter->vpd->len, GFP_KERNEL); in ibmvnic_get_vpd()
1307 else if (adapter->vpd->len != len) in ibmvnic_get_vpd()
1308 adapter->vpd->buff = in ibmvnic_get_vpd()
1309 krealloc(adapter->vpd->buff, in ibmvnic_get_vpd()
1310 adapter->vpd->len, GFP_KERNEL); in ibmvnic_get_vpd()
1312 if (!adapter->vpd->buff) { in ibmvnic_get_vpd()
1317 adapter->vpd->dma_addr = in ibmvnic_get_vpd()
1318 dma_map_single(dev, adapter->vpd->buff, adapter->vpd->len, in ibmvnic_get_vpd()
1320 if (dma_mapping_error(dev, adapter->vpd->dma_addr)) { in ibmvnic_get_vpd()
1322 kfree(adapter->vpd->buff); in ibmvnic_get_vpd()
1323 adapter->vpd->buff = NULL; in ibmvnic_get_vpd()
1333 crq.get_vpd.ioba = cpu_to_be32(adapter->vpd->dma_addr); in ibmvnic_get_vpd()
1334 crq.get_vpd.len = cpu_to_be32((u32)adapter->vpd->len); in ibmvnic_get_vpd()
1337 kfree(adapter->vpd->buff); in ibmvnic_get_vpd()
1338 adapter->vpd->buff = NULL; in ibmvnic_get_vpd()
1346 kfree(adapter->vpd->buff); in ibmvnic_get_vpd()
1347 adapter->vpd->buff = NULL; in ibmvnic_get_vpd()
1365 adapter->vpd = kzalloc(sizeof(*adapter->vpd), GFP_KERNEL); in init_resources()
1366 if (!adapter->vpd) in init_resources()
4585 adapter->vpd->len = be64_to_cpu(crq->get_vpd_size_rsp.len); in handle_vpd_size_rsp()
4598 dma_unmap_single(dev, adapter->vpd->dma_addr, adapter->vpd->len, in handle_vpd_rsp()
4610 substr = strnstr(adapter->vpd->buff, "RM", adapter->vpd->len); in handle_vpd_rsp()
4617 if ((substr + 2) < (adapter->vpd->buff + adapter->vpd->len)) { in handle_vpd_rsp()
4626 (adapter->vpd->buff + adapter->vpd->len)) { in handle_vpd_rsp()