Searched refs:new_param (Results 1 – 2 of 2) sorted by relevance
567 struct iscsi_param *new_param = NULL; in iscsi_copy_param_list() local586 new_param = kzalloc(sizeof(struct iscsi_param), GFP_KERNEL); in iscsi_copy_param_list()587 if (!new_param) { in iscsi_copy_param_list()592 new_param->name = kstrdup(param->name, GFP_KERNEL); in iscsi_copy_param_list()593 new_param->value = kstrdup(param->value, GFP_KERNEL); in iscsi_copy_param_list()594 if (!new_param->value || !new_param->name) { in iscsi_copy_param_list()595 kfree(new_param->value); in iscsi_copy_param_list()596 kfree(new_param->name); in iscsi_copy_param_list()597 kfree(new_param); in iscsi_copy_param_list()602 new_param->set_param = param->set_param; in iscsi_copy_param_list()[all …]
781 static u32 smooth_alg(u32 new_param, u32 old_param) in smooth_alg() argument783 u32 gap = (new_param > old_param) ? new_param - old_param in smooth_alg()784 : old_param - new_param; in smooth_alg()789 if (new_param > old_param) in smooth_alg()