Searched refs:new_num (Results 1 – 6 of 6) sorted by relevance
/drivers/pinctrl/ |
D | pinctrl-utils.c | 36 unsigned new_num = *num_maps + reserve; in pinctrl_utils_reserve_map() local 39 if (old_num >= new_num) in pinctrl_utils_reserve_map() 42 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in pinctrl_utils_reserve_map() 48 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in pinctrl_utils_reserve_map() 51 *reserved_maps = new_num; in pinctrl_utils_reserve_map() 106 unsigned new_num = old_num + 1; in pinctrl_utils_add_config() local 109 new_configs = krealloc(*configs, sizeof(*new_configs) * new_num, in pinctrl_utils_add_config() 119 *num_configs = new_num; in pinctrl_utils_add_config()
|
D | pinctrl-tz1090-pdc.c | 293 unsigned int new_num = *num_maps + reserve; in reserve_map() local 296 if (old_num >= new_num) in reserve_map() 299 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map() 305 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map() 308 *reserved_maps = new_num; in reserve_map()
|
D | pinctrl-tz1090.c | 1037 unsigned int new_num = *num_maps + reserve; in reserve_map() local 1040 if (old_num >= new_num) in reserve_map() 1043 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map() 1049 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map() 1052 *reserved_maps = new_num; in reserve_map()
|
/drivers/pinctrl/samsung/ |
D | pinctrl-samsung.c | 91 unsigned new_num = *num_maps + reserve; in reserve_map() local 94 if (old_num >= new_num) in reserve_map() 97 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map() 103 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map() 106 *reserved_maps = new_num; in reserve_map() 156 unsigned new_num = old_num + 1; in add_config() local 159 new_configs = krealloc(*configs, sizeof(*new_configs) * new_num, in add_config() 169 *num_configs = new_num; in add_config()
|
/drivers/vhost/ |
D | vringh.c | 184 unsigned int flag, new_num = (iov->max_num & ~VRINGH_IOV_ALLOCATED) * 2; in resize_iovec() local 186 if (new_num < 8) in resize_iovec() 187 new_num = 8; in resize_iovec() 191 new = krealloc(iov->iov, new_num * sizeof(struct iovec), gfp); in resize_iovec() 193 new = kmalloc(new_num * sizeof(struct iovec), gfp); in resize_iovec() 203 iov->max_num = (new_num | flag); in resize_iovec()
|
/drivers/pinctrl/freescale/ |
D | pinctrl-mxs.c | 74 unsigned new_num = 1; in mxs_dt_node_to_map() local 98 new_num = 2; in mxs_dt_node_to_map() 100 new_map = kzalloc(sizeof(*new_map) * new_num, GFP_KERNEL); in mxs_dt_node_to_map() 134 *num_maps = new_num; in mxs_dt_node_to_map()
|