Searched refs:new_num (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/pinctrl/ |
H A D | pinctrl-utils.c | 25 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()
|
/linux/net/core/ |
H A D | net-sysfs.h | 8 int net_rx_queue_update_kobjects(struct net_device *, int old_num, int new_num); 10 int old_num, int new_num);
|
H A D | net-sysfs.c | 1153 net_rx_queue_update_kobjects(struct net_device *dev, int old_num, int new_num) in net_rx_queue_update_kobjects() argument 1163 for (i = old_num; i < new_num; i++) { in net_rx_queue_update_kobjects() 1166 new_num = old_num; in net_rx_queue_update_kobjects() 1171 while (--i >= new_num) { in net_rx_queue_update_kobjects() 1827 netdev_queue_update_kobjects(struct net_device *dev, int old_num, int new_num) in netdev_queue_update_kobjects() argument 1837 WARN(dev->reg_state == NETREG_UNREGISTERING && new_num > old_num, in netdev_queue_update_kobjects() 1840 for (i = old_num; i < new_num; i++) { in netdev_queue_update_kobjects() 1843 new_num = old_num; in netdev_queue_update_kobjects() 1848 while (--i >= new_num) { in netdev_queue_update_kobjects()
|
/linux/fs/reiserfs/ |
H A D | fix_node.c | 31 static inline int old_item_num(int new_num, int affected_item_num, int mode) in old_item_num() argument 33 if (mode == M_PASTE || mode == M_CUT || new_num < affected_item_num) in old_item_num() 34 return new_num; in old_item_num() 38 RFALSE(new_num == 0, in old_item_num() 41 return new_num - 1; in old_item_num() 48 return new_num + 1; in old_item_num() 55 int new_num; in create_virtual_node() local 92 for (new_num = 0; new_num < vn->vn_nr_item; new_num++) { in create_virtual_node() 94 struct virtual_item *vi = vn->vn_vi + new_num; in create_virtual_node() 96 ((new_num != vn->vn_affected_item_num) ? 0 : 1); in create_virtual_node() [all …]
|
/linux/drivers/pinctrl/freescale/ |
H A D | pinctrl-mxs.c | 69 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()
|
/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-samsung.c | 82 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()
|
/linux/drivers/vhost/ |
H A D | vringh.c | 221 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, in resize_iovec() 231 new = kmalloc_array(new_num, sizeof(struct iovec), gfp); in resize_iovec() 241 iov->max_num = (new_num | flag); in resize_iovec()
|
/linux/drivers/iommu/ |
H A D | iommu.c | 2880 int i, new_num; in iommu_fwspec_add_ids() local 2885 new_num = fwspec->num_ids + num_ids; in iommu_fwspec_add_ids() 2886 if (new_num > 1) { in iommu_fwspec_add_ids() 2887 fwspec = krealloc(fwspec, struct_size(fwspec, ids, new_num), in iommu_fwspec_add_ids() 2898 fwspec->num_ids = new_num; in iommu_fwspec_add_ids()
|