Searched refs:new_num (Results 1 – 5 of 5) 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() 104 unsigned new_num = old_num + 1; in pinctrl_utils_add_config() local 107 new_configs = krealloc(*configs, sizeof(*new_configs) * new_num, in pinctrl_utils_add_config() 117 *num_configs = new_num; in pinctrl_utils_add_config()
|
/drivers/pinctrl/samsung/ |
D | pinctrl-samsung.c | 83 unsigned new_num = *num_maps + reserve; in reserve_map() local 86 if (old_num >= new_num) in reserve_map() 89 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map() 93 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map() 96 *reserved_maps = new_num; in reserve_map() 144 unsigned new_num = old_num + 1; in add_config() local 147 new_configs = krealloc(*configs, sizeof(*new_configs) * new_num, in add_config() 155 *num_configs = new_num; in add_config()
|
/drivers/pinctrl/freescale/ |
D | pinctrl-mxs.c | 66 unsigned new_num = 1; in mxs_dt_node_to_map() local 90 new_num = 2; in mxs_dt_node_to_map() 92 new_map = kcalloc(new_num, sizeof(*new_map), GFP_KERNEL); in mxs_dt_node_to_map() 126 *num_maps = new_num; in mxs_dt_node_to_map()
|
/drivers/vhost/ |
D | vringh.c | 194 unsigned int flag, new_num = (iov->max_num & ~VRINGH_IOV_ALLOCATED) * 2; in resize_iovec() local 196 if (new_num < 8) in resize_iovec() 197 new_num = 8; in resize_iovec() 201 new = krealloc(iov->iov, new_num * sizeof(struct iovec), gfp); in resize_iovec() 203 new = kmalloc_array(new_num, sizeof(struct iovec), gfp); in resize_iovec() 213 iov->max_num = (new_num | flag); in resize_iovec()
|
/drivers/iommu/ |
D | iommu.c | 2939 int i, new_num; in iommu_fwspec_add_ids() local 2944 new_num = fwspec->num_ids + num_ids; in iommu_fwspec_add_ids() 2945 if (new_num > 1) { in iommu_fwspec_add_ids() 2946 fwspec = krealloc(fwspec, struct_size(fwspec, ids, new_num), in iommu_fwspec_add_ids() 2957 fwspec->num_ids = new_num; in iommu_fwspec_add_ids()
|