Lines Matching full:length
29 * access_length - The access length of the region field
31 * RETURN: Decoded access length
33 * DESCRIPTION: This routine returns the length of the generic_serial_bus
41 u32 length; in acpi_ex_get_serial_access_length() local
46 length = 0; in acpi_ex_get_serial_access_length()
52 length = 1; in acpi_ex_get_serial_access_length()
58 length = 2; in acpi_ex_get_serial_access_length()
65 length = access_length; in acpi_ex_get_serial_access_length()
72 length = ACPI_GSBUS_BUFFER_SIZE - 2; in acpi_ex_get_serial_access_length()
76 return (length); in acpi_ex_get_serial_access_length()
101 acpi_size length; in acpi_ex_read_data_from_field() local
144 length = ACPI_SMBUS_BUFFER_SIZE; in acpi_ex_read_data_from_field()
150 length = in acpi_ex_read_data_from_field()
159 * Length; (Byte 1 of the data buffer) in acpi_ex_read_data_from_field()
160 * Data[x-1]: (Bytes 2-x of the arbitrary length data buffer) in acpi_ex_read_data_from_field()
162 length += 2; in acpi_ex_read_data_from_field()
166 length = ACPI_IPMI_BUFFER_SIZE; in acpi_ex_read_data_from_field()
170 buffer_desc = acpi_ut_create_buffer_object(length); in acpi_ex_read_data_from_field()
199 * Note: Field.length is in bits. in acpi_ex_read_data_from_field()
201 length = in acpi_ex_read_data_from_field()
204 if (length > acpi_gbl_integer_byte_width) { in acpi_ex_read_data_from_field()
208 buffer_desc = acpi_ut_create_buffer_object(length); in acpi_ex_read_data_from_field()
221 length = acpi_gbl_integer_byte_width; in acpi_ex_read_data_from_field()
231 * pin number index. The bit_length is the length of the field, which in acpi_ex_read_data_from_field()
261 (u32) length)); in acpi_ex_read_data_from_field()
274 status = acpi_ex_extract_from_field(obj_desc, buffer, (u32) length); in acpi_ex_read_data_from_field()
307 u32 length; in acpi_ex_write_data_to_field() local
363 length = ACPI_SMBUS_BUFFER_SIZE; in acpi_ex_write_data_to_field()
369 length = in acpi_ex_write_data_to_field()
378 * Length; (Byte 1 of the data buffer) in acpi_ex_write_data_to_field()
379 * Data[x-1]: (Bytes 2-x of the arbitrary length data buffer) in acpi_ex_write_data_to_field()
381 length += 2; in acpi_ex_write_data_to_field()
385 length = ACPI_IPMI_BUFFER_SIZE; in acpi_ex_write_data_to_field()
389 if (source_desc->buffer.length < length) { in acpi_ex_write_data_to_field()
392 "Buffer of length %u, found length %u", in acpi_ex_write_data_to_field()
393 length, source_desc->buffer.length)); in acpi_ex_write_data_to_field()
400 buffer_desc = acpi_ut_create_buffer_object(length); in acpi_ex_write_data_to_field()
406 memcpy(buffer, source_desc->buffer.pointer, length); in acpi_ex_write_data_to_field()
430 * pin number index. The bit_length is the length of the field, which in acpi_ex_write_data_to_field()
467 length = sizeof(source_desc->integer.value); in acpi_ex_write_data_to_field()
473 length = source_desc->buffer.length; in acpi_ex_write_data_to_field()
479 length = source_desc->string.length; in acpi_ex_write_data_to_field()
491 source_desc->common.type, buffer, length)); in acpi_ex_write_data_to_field()
508 status = acpi_ex_insert_into_field(obj_desc, buffer, length); in acpi_ex_write_data_to_field()