Home
last modified time | relevance | path

Searched refs:new_param (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/target/iscsi/
Discsi_target_parameters.c567 struct iscsi_param *new_param = NULL; in iscsi_copy_param_list() local
586 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c758 static u32 smooth_alg(u32 new_param, u32 old_param) in smooth_alg() argument
760 u32 gap = (new_param > old_param) ? new_param - old_param in smooth_alg()
761 : old_param - new_param; in smooth_alg()
766 if (new_param > old_param) in smooth_alg()