Lines Matching refs:num_segments
138 info->num_segments = 0; in acpi_ns_get_internal_name_length()
173 info->num_segments = 1; in acpi_ns_get_internal_name_length()
176 info->num_segments++; in acpi_ns_get_internal_name_length()
181 info->length = (ACPI_NAMESEG_SIZE * info->num_segments) + in acpi_ns_get_internal_name_length()
202 u32 num_segments = info->num_segments; in acpi_ns_build_internal_name() local
215 if (num_segments <= 1) { in acpi_ns_build_internal_name()
217 } else if (num_segments == 2) { in acpi_ns_build_internal_name()
222 internal_name[2] = (char)num_segments; in acpi_ns_build_internal_name()
237 if (num_segments <= 1) { in acpi_ns_build_internal_name()
239 } else if (num_segments == 2) { in acpi_ns_build_internal_name()
244 internal_name[(acpi_size)i + 1] = (char)num_segments; in acpi_ns_build_internal_name()
251 for (; num_segments; num_segments--) { in acpi_ns_build_internal_name()
372 u32 num_segments = 0; in acpi_ns_externalize_name() local
424 num_segments = (u8) in acpi_ns_externalize_name()
433 num_segments = 2; in acpi_ns_externalize_name()
441 num_segments = 0; in acpi_ns_externalize_name()
449 num_segments = 1; in acpi_ns_externalize_name()
459 required_length = prefix_length + (4 * num_segments) + in acpi_ns_externalize_name()
460 ((num_segments > 0) ? (num_segments - 1) : 0) + 1; in acpi_ns_externalize_name()
484 if (num_segments > 0) { in acpi_ns_externalize_name()
485 for (i = 0; i < num_segments; i++) { in acpi_ns_externalize_name()