Home
last modified time | relevance | path

Searched refs:new_num (Results 1 – 5 of 5) sorted by relevance

/drivers/pinctrl/
A Dpinctrl-utils.c25 unsigned int new_num = *num_maps + reserve; in pinctrl_utils_reserve_map() local
28 if (old_num >= new_num) in pinctrl_utils_reserve_map()
31 new_map = krealloc_array(*map, new_num, sizeof(*new_map), GFP_KERNEL); in pinctrl_utils_reserve_map()
37 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in pinctrl_utils_reserve_map()
40 *reserved_maps = new_num; in pinctrl_utils_reserve_map()
93 unsigned int new_num = old_num + 1; in pinctrl_utils_add_config() local
96 new_configs = krealloc(*configs, sizeof(*new_configs) * new_num, in pinctrl_utils_add_config()
106 *num_configs = new_num; in pinctrl_utils_add_config()
/drivers/pinctrl/freescale/
A Dpinctrl-mxs.c69 unsigned new_num = 1; in mxs_dt_node_to_map() local
93 new_num = 2; in mxs_dt_node_to_map()
95 new_map = kcalloc(new_num, sizeof(*new_map), GFP_KERNEL); in mxs_dt_node_to_map()
129 *num_maps = new_num; in mxs_dt_node_to_map()
/drivers/pinctrl/samsung/
A Dpinctrl-samsung.c82 unsigned new_num = *num_maps + reserve; in reserve_map() local
85 if (old_num >= new_num) in reserve_map()
88 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map()
92 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map()
95 *reserved_maps = new_num; in reserve_map()
143 unsigned new_num = old_num + 1; in add_config() local
146 new_configs = krealloc(*configs, sizeof(*new_configs) * new_num, in add_config()
154 *num_configs = new_num; in add_config()
/drivers/vhost/
A Dvringh.c221 unsigned int flag, new_num = (iov->max_num & ~VRINGH_IOV_ALLOCATED) * 2; in resize_iovec() local
223 if (new_num < 8) in resize_iovec()
224 new_num = 8; in resize_iovec()
228 new = krealloc_array(iov->iov, new_num, sizeof(*new), gfp); in resize_iovec()
230 new = kmalloc_array(new_num, sizeof(*new), gfp); in resize_iovec()
240 iov->max_num = (new_num | flag); in resize_iovec()
/drivers/iommu/
A Diommu.c2921 int i, new_num; in iommu_fwspec_add_ids() local
2926 new_num = fwspec->num_ids + num_ids; in iommu_fwspec_add_ids()
2927 if (new_num > 1) { in iommu_fwspec_add_ids()
2928 fwspec = krealloc(fwspec, struct_size(fwspec, ids, new_num), in iommu_fwspec_add_ids()
2939 fwspec->num_ids = new_num; in iommu_fwspec_add_ids()

Completed in 20 milliseconds