Lines Matching refs:length
47 unsigned short length; member
192 char *buff, int length, in nvram_write_os_partition() argument
203 if (length > part->size) in nvram_write_os_partition()
204 length = part->size; in nvram_write_os_partition()
218 rc = ppc_md.nvram_write(buff, length, &tmp_index); in nvram_write_os_partition()
232 int length, unsigned int *err_type, in nvram_read_partition() argument
242 if (length > part->size) in nvram_read_partition()
243 length = part->size; in nvram_read_partition()
257 rc = ppc_md.nvram_read(buff, length, &tmp_index); in nvram_read_partition()
529 size_t length, hdr_size; in nvram_pstore_read() local
535 length = be16_to_cpu(oops_hdr->version); in nvram_pstore_read()
540 length = be16_to_cpu(oops_hdr->report_length); in nvram_pstore_read()
544 *buf = kmalloc(length, GFP_KERNEL); in nvram_pstore_read()
547 memcpy(*buf, buff + hdr_size, length); in nvram_pstore_read()
554 return length; in nvram_pstore_read()
892 tmp_part->header.checksum, tmp_part->header.length, in nvram_print_partitions()
906 phead.length = cpu_to_be16(phead.length); in nvram_write_header()
919 c_sum = p->signature + p->length + sp[0] + sp[1] + sp[2] + sp[3] + sp[4] + sp[5]; in nvram_checksum()
989 prev->header.length += part->header.length; in nvram_remove_partition()
1051 if (part->header.length >= req_size) { in nvram_create_partition()
1056 if (part->header.length > size && in nvram_create_partition()
1057 part->header.length >= min_size) { in nvram_create_partition()
1058 size = part->header.length; in nvram_create_partition()
1074 new_part->header.length = size; in nvram_create_partition()
1087 if (free_part->header.length > size) { in nvram_create_partition()
1089 free_part->header.length -= size; in nvram_create_partition()
1128 return (part->header.length - 1) * NVRAM_BLOCK_LEN; in nvram_get_partition_size()
1148 *out_size = (p->header.length - 1) * in nvram_find_partition()
1189 phead.length = be16_to_cpu(phead.length); in nvram_scan_partitions()
1200 if (!phead.length) { in nvram_scan_partitions()
1216 cur_index += phead.length * NVRAM_BLOCK_LEN; in nvram_scan_partitions()