Lines Matching refs:length
132 acpi_size length;
153 length = (acpi_size)operand[2]->integer.value;
156 * If the index is beyond the length of the String/Buffer, or if the
157 * requested length is zero, return a zero-length String/Buffer
159 if (index >= operand[0]->string.length) {
160 length = 0;
165 else if ((index + length) > operand[0]->string.length) {
166 length =
167 (acpi_size)operand[0]->string.length -
178 buffer = ACPI_ALLOCATE_ZEROED((acpi_size)length + 1);
187 /* If the requested length is zero, don't allocate a buffer */
189 if (length > 0) {
193 buffer = ACPI_ALLOCATE_ZEROED(length);
212 operand[0]->string.pointer + index, length);
215 /* Set the length of the new String/Buffer */
218 return_desc->string.length = (u32) length;