Lines Matching refs:host_attr
2767 struct ena_host_attribute *host_attr = &ena_dev->host_attr; in ena_com_allocate_host_info() local
2769 host_attr->host_info = dma_alloc_coherent(ena_dev->dmadev, SZ_4K, in ena_com_allocate_host_info()
2770 &host_attr->host_info_dma_addr, GFP_KERNEL); in ena_com_allocate_host_info()
2771 if (unlikely(!host_attr->host_info)) in ena_com_allocate_host_info()
2774 host_attr->host_info->ena_spec_version = ((ENA_COMMON_SPEC_VERSION_MAJOR << in ena_com_allocate_host_info()
2784 struct ena_host_attribute *host_attr = &ena_dev->host_attr; in ena_com_allocate_debug_area() local
2786 host_attr->debug_area_virt_addr = in ena_com_allocate_debug_area()
2788 &host_attr->debug_area_dma_addr, GFP_KERNEL); in ena_com_allocate_debug_area()
2789 if (unlikely(!host_attr->debug_area_virt_addr)) { in ena_com_allocate_debug_area()
2790 host_attr->debug_area_size = 0; in ena_com_allocate_debug_area()
2794 host_attr->debug_area_size = debug_area_size; in ena_com_allocate_debug_area()
2819 struct ena_host_attribute *host_attr = &ena_dev->host_attr; in ena_com_delete_host_info() local
2821 if (host_attr->host_info) { in ena_com_delete_host_info()
2822 dma_free_coherent(ena_dev->dmadev, SZ_4K, host_attr->host_info, in ena_com_delete_host_info()
2823 host_attr->host_info_dma_addr); in ena_com_delete_host_info()
2824 host_attr->host_info = NULL; in ena_com_delete_host_info()
2830 struct ena_host_attribute *host_attr = &ena_dev->host_attr; in ena_com_delete_debug_area() local
2832 if (host_attr->debug_area_virt_addr) { in ena_com_delete_debug_area()
2833 dma_free_coherent(ena_dev->dmadev, host_attr->debug_area_size, in ena_com_delete_debug_area()
2834 host_attr->debug_area_virt_addr, host_attr->debug_area_dma_addr); in ena_com_delete_debug_area()
2835 host_attr->debug_area_virt_addr = NULL; in ena_com_delete_debug_area()
2854 struct ena_host_attribute *host_attr = &ena_dev->host_attr; in ena_com_set_host_attributes() local
2872 &cmd.u.host_attr.debug_ba, in ena_com_set_host_attributes()
2873 host_attr->debug_area_dma_addr); in ena_com_set_host_attributes()
2880 &cmd.u.host_attr.os_info_ba, in ena_com_set_host_attributes()
2881 host_attr->host_info_dma_addr); in ena_com_set_host_attributes()
2887 cmd.u.host_attr.debug_area_size = host_attr->debug_area_size; in ena_com_set_host_attributes()