Lines Matching refs:hinf
247 struct efa_admin_host_info *hinf; in efa_set_host_info() local
248 u32 bufsz = sizeof(*hinf); in efa_set_host_info()
256 hinf = dma_alloc_coherent(&dev->pdev->dev, bufsz, &hinf_dma, in efa_set_host_info()
258 if (!hinf) in efa_set_host_info()
261 strscpy(hinf->os_dist_str, utsname()->release, in efa_set_host_info()
262 sizeof(hinf->os_dist_str)); in efa_set_host_info()
263 hinf->os_type = EFA_ADMIN_OS_LINUX; in efa_set_host_info()
264 strscpy(hinf->kernel_ver_str, utsname()->version, in efa_set_host_info()
265 sizeof(hinf->kernel_ver_str)); in efa_set_host_info()
266 hinf->kernel_ver = LINUX_VERSION_CODE; in efa_set_host_info()
267 EFA_SET(&hinf->driver_ver, EFA_ADMIN_HOST_INFO_DRIVER_MAJOR, 0); in efa_set_host_info()
268 EFA_SET(&hinf->driver_ver, EFA_ADMIN_HOST_INFO_DRIVER_MINOR, 0); in efa_set_host_info()
269 EFA_SET(&hinf->driver_ver, EFA_ADMIN_HOST_INFO_DRIVER_SUB_MINOR, 0); in efa_set_host_info()
270 EFA_SET(&hinf->driver_ver, EFA_ADMIN_HOST_INFO_DRIVER_MODULE_TYPE, 0); in efa_set_host_info()
271 EFA_SET(&hinf->bdf, EFA_ADMIN_HOST_INFO_BUS, dev->pdev->bus->number); in efa_set_host_info()
272 EFA_SET(&hinf->bdf, EFA_ADMIN_HOST_INFO_DEVICE, in efa_set_host_info()
274 EFA_SET(&hinf->bdf, EFA_ADMIN_HOST_INFO_FUNCTION, in efa_set_host_info()
276 EFA_SET(&hinf->spec_ver, EFA_ADMIN_HOST_INFO_SPEC_MAJOR, in efa_set_host_info()
278 EFA_SET(&hinf->spec_ver, EFA_ADMIN_HOST_INFO_SPEC_MINOR, in efa_set_host_info()
280 EFA_SET(&hinf->flags, EFA_ADMIN_HOST_INFO_INTREE, 1); in efa_set_host_info()
281 EFA_SET(&hinf->flags, EFA_ADMIN_HOST_INFO_GDR, 0); in efa_set_host_info()
286 dma_free_coherent(&dev->pdev->dev, bufsz, hinf, hinf_dma); in efa_set_host_info()