Lines Matching refs:size

189 	size_t size;  in amdgpu_atif_verify_interface()  local
198 size = *(u16 *) info->Buffer.Pointer; in amdgpu_atif_verify_interface()
199 if (size < 12) { in amdgpu_atif_verify_interface()
200 DRM_INFO("ATIF buffer is too small: %zu\n", size); in amdgpu_atif_verify_interface()
204 size = min(sizeof(output), size); in amdgpu_atif_verify_interface()
206 memcpy(&output, info->Buffer.Pointer, size); in amdgpu_atif_verify_interface()
265 size_t size; in amdgpu_atif_get_notification_params() local
275 size = *(u16 *) info->Buffer.Pointer; in amdgpu_atif_get_notification_params()
276 if (size < 10) { in amdgpu_atif_get_notification_params()
282 size = min(sizeof(params), size); in amdgpu_atif_get_notification_params()
283 memcpy(&params, info->Buffer.Pointer, size); in amdgpu_atif_get_notification_params()
296 if (size < 11) { in amdgpu_atif_get_notification_params()
327 size_t size; in amdgpu_atif_get_sbios_requests() local
335 size = *(u16 *)info->Buffer.Pointer; in amdgpu_atif_get_sbios_requests()
336 if (size < 0xd) { in amdgpu_atif_get_sbios_requests()
342 size = min(sizeof(*req), size); in amdgpu_atif_get_sbios_requests()
343 memcpy(req, info->Buffer.Pointer, size); in amdgpu_atif_get_sbios_requests()
522 size_t size; in amdgpu_atcs_verify_interface() local
531 size = *(u16 *) info->Buffer.Pointer; in amdgpu_atcs_verify_interface()
532 if (size < 8) { in amdgpu_atcs_verify_interface()
533 DRM_INFO("ATCS buffer is too small: %zu\n", size); in amdgpu_atcs_verify_interface()
537 size = min(sizeof(output), size); in amdgpu_atcs_verify_interface()
539 memcpy(&output, info->Buffer.Pointer, size); in amdgpu_atcs_verify_interface()
623 size_t size; in amdgpu_acpi_pcie_performance_request()
637 atcs_input.size = sizeof(struct atcs_pref_req_input); in amdgpu_acpi_pcie_performance_request()
657 size = *(u16 *) info->Buffer.Pointer; in amdgpu_acpi_pcie_performance_request()
658 if (size < 3) { in amdgpu_acpi_pcie_performance_request()
659 DRM_INFO("ATCS buffer is too small: %zu\n", size); in amdgpu_acpi_pcie_performance_request()
663 size = min(sizeof(atcs_output), size); in amdgpu_acpi_pcie_performance_request()
665 memcpy(&atcs_output, info->Buffer.Pointer, size); in amdgpu_acpi_pcie_performance_request()