Lines Matching refs:dt
473 struct exofs_device_table *dt) in _read_and_match_data_map() argument
478 le64_to_cpu(dt->dt_data_map.cb_stripe_unit); in _read_and_match_data_map()
480 le32_to_cpu(dt->dt_data_map.cb_group_width); in _read_and_match_data_map()
482 le32_to_cpu(dt->dt_data_map.cb_group_depth); in _read_and_match_data_map()
484 le32_to_cpu(dt->dt_data_map.cb_mirror_cnt) + 1; in _read_and_match_data_map()
486 le32_to_cpu(dt->dt_data_map.cb_raid_algorithm); in _read_and_match_data_map()
578 struct exofs_device_table *dt; in exofs_read_lookup_dev_table() local
580 unsigned table_bytes = table_count * sizeof(dt->dt_dev_table[0]) + in exofs_read_lookup_dev_table()
581 sizeof(*dt); in exofs_read_lookup_dev_table()
585 dt = kmalloc(table_bytes, GFP_KERNEL); in exofs_read_lookup_dev_table()
586 if (unlikely(!dt)) { in exofs_read_lookup_dev_table()
598 ret = exofs_read_kern(fscb_od, comp.cred, &comp.obj, 0, dt, in exofs_read_lookup_dev_table()
605 numdevs = le64_to_cpu(dt->dt_num_devices); in exofs_read_lookup_dev_table()
612 ret = _read_and_match_data_map(sbi, numdevs, dt); in exofs_read_lookup_dev_table()
631 exofs_sysfs_sb_add(sbi, &dt->dt_dev_table[0]); in exofs_read_lookup_dev_table()
638 if (exofs_devs_2_odi(&dt->dt_dev_table[i], &odi)) { in exofs_read_lookup_dev_table()
693 kfree(dt); in exofs_read_lookup_dev_table()