Lines Matching refs:read_size
440 size_t config_size, read_size, max_xfer, offset; in nd_label_data_init() local
466 read_size = sizeof_namespace_index(ndd) * 2; in nd_label_data_init()
467 if (!read_size) in nd_label_data_init()
484 if (read_size < max_xfer) { in nd_label_data_init()
489 if (max_xfer < read_size) in nd_label_data_init()
490 max_xfer = read_size; in nd_label_data_init()
494 read_size = min(DIV_ROUND_UP(read_size, max_xfer) * max_xfer, in nd_label_data_init()
498 rc = nvdimm_get_config_data(ndd, ndd->data, 0, read_size); in nd_label_data_init()
529 if (offset + ndd->nslabel_size <= read_size) in nd_label_data_init()
533 if (read_size < offset) in nd_label_data_init()
534 read_size = offset; in nd_label_data_init()
537 label_read_size = offset + ndd->nslabel_size - read_size; in nd_label_data_init()
542 if (read_size + label_read_size > config_size) in nd_label_data_init()
543 label_read_size = config_size - read_size; in nd_label_data_init()
546 rc = nvdimm_get_config_data(ndd, ndd->data + read_size, in nd_label_data_init()
547 read_size, label_read_size); in nd_label_data_init()
552 read_size += label_read_size; in nd_label_data_init()