Searched refs:new_num (Results 1 - 8 of 8) sorted by relevance

/linux-master/net/core/
H A Dnet-sysfs.h8 int net_rx_queue_update_kobjects(struct net_device *, int old_num, int new_num);
10 int old_num, int new_num);
H A Dnet-sysfs.c1149 net_rx_queue_update_kobjects(struct net_device *dev, int old_num, int new_num) argument
1159 for (i = old_num; i < new_num; i++) {
1162 new_num = old_num;
1167 while (--i >= new_num) {
1824 netdev_queue_update_kobjects(struct net_device *dev, int old_num, int new_num) argument
1834 WARN(dev->reg_state == NETREG_UNREGISTERING && new_num > old_num,
1837 for (i = old_num; i < new_num; i++) {
1840 new_num = old_num;
1845 while (--i >= new_num) {
/linux-master/drivers/pinctrl/
H A Dpinctrl-utils.c25 unsigned int new_num = *num_maps + reserve; local
28 if (old_num >= new_num)
31 new_map = krealloc_array(*map, new_num, sizeof(*new_map), GFP_KERNEL);
37 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map));
40 *reserved_maps = new_num;
93 unsigned int new_num = old_num + 1; local
96 new_configs = krealloc(*configs, sizeof(*new_configs) * new_num,
106 *num_configs = new_num;
/linux-master/drivers/pinctrl/freescale/
H A Dpinctrl-mxs.c69 unsigned new_num = 1; local
93 new_num = 2;
95 new_map = kcalloc(new_num, sizeof(*new_map), GFP_KERNEL);
129 *num_maps = new_num;
/linux-master/drivers/pinctrl/samsung/
H A Dpinctrl-samsung.c81 unsigned new_num = *num_maps + reserve; local
84 if (old_num >= new_num)
87 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL);
91 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map));
94 *reserved_maps = new_num;
142 unsigned new_num = old_num + 1; local
145 new_configs = krealloc(*configs, sizeof(*new_configs) * new_num,
153 *num_configs = new_num;
/linux-master/fs/reiserfs/
H A Dfix_node.c31 static inline int old_item_num(int new_num, int affected_item_num, int mode) argument
33 if (mode == M_PASTE || mode == M_CUT || new_num < affected_item_num)
34 return new_num;
38 RFALSE(new_num == 0,
41 return new_num - 1;
48 return new_num + 1;
55 int new_num; local
92 for (new_num = 0; new_num < vn->vn_nr_item; new_num
[all...]
/linux-master/drivers/vhost/
H A Dvringh.c221 unsigned int flag, new_num = (iov->max_num & ~VRINGH_IOV_ALLOCATED) * 2; local
223 if (new_num < 8)
224 new_num = 8;
228 new = krealloc_array(iov->iov, new_num,
231 new = kmalloc_array(new_num, sizeof(struct iovec), gfp);
241 iov->max_num = (new_num | flag);
/linux-master/drivers/iommu/
H A Diommu.c2861 int i, new_num; local
2866 new_num = fwspec->num_ids + num_ids;
2867 if (new_num > 1) {
2868 fwspec = krealloc(fwspec, struct_size(fwspec, ids, new_num),
2879 fwspec->num_ids = new_num;

Completed in 142 milliseconds