Lines Matching refs:new_disk_conf

3832 	struct disk_conf *old_disk_conf = NULL, *new_disk_conf = NULL;  in receive_SyncParam()  local
3880 new_disk_conf = kzalloc(sizeof(struct disk_conf), GFP_KERNEL); in receive_SyncParam()
3881 if (!new_disk_conf) { in receive_SyncParam()
3889 *new_disk_conf = *old_disk_conf; in receive_SyncParam()
3891 new_disk_conf->resync_rate = be32_to_cpu(p->resync_rate); in receive_SyncParam()
3948 if (apv > 94 && new_disk_conf) { in receive_SyncParam()
3949 new_disk_conf->c_plan_ahead = be32_to_cpu(p->c_plan_ahead); in receive_SyncParam()
3950 new_disk_conf->c_delay_target = be32_to_cpu(p->c_delay_target); in receive_SyncParam()
3951 new_disk_conf->c_fill_target = be32_to_cpu(p->c_fill_target); in receive_SyncParam()
3952 new_disk_conf->c_max_rate = be32_to_cpu(p->c_max_rate); in receive_SyncParam()
3954 fifo_size = (new_disk_conf->c_plan_ahead * 10 * SLEEP_TIME) / HZ; in receive_SyncParam()
3990 if (new_disk_conf) { in receive_SyncParam()
3991 rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf); in receive_SyncParam()
4010 if (new_disk_conf) { in receive_SyncParam()
4012 kfree(new_disk_conf); in receive_SyncParam()
4019 if (new_disk_conf) { in receive_SyncParam()
4021 kfree(new_disk_conf); in receive_SyncParam()
4102 struct disk_conf *old_disk_conf, *new_disk_conf = NULL; in receive_sizes() local
4104 new_disk_conf = kzalloc(sizeof(struct disk_conf), GFP_KERNEL); in receive_sizes()
4105 if (!new_disk_conf) { in receive_sizes()
4112 *new_disk_conf = *old_disk_conf; in receive_sizes()
4113 new_disk_conf->disk_size = p_usize; in receive_sizes()
4115 rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf); in receive_sizes()