Searched refs:new_map (Results 1 – 9 of 9) sorted by relevance
/drivers/pinctrl/ |
D | pinctrl-mxs.c | 72 struct pinctrl_map *new_map; in mxs_dt_node_to_map() local 100 new_map = kzalloc(sizeof(*new_map) * new_num, GFP_KERNEL); in mxs_dt_node_to_map() 101 if (!new_map) in mxs_dt_node_to_map() 105 new_map[i].type = PIN_MAP_TYPE_MUX_GROUP; in mxs_dt_node_to_map() 106 new_map[i].data.mux.function = np->name; in mxs_dt_node_to_map() 115 new_map[i].data.mux.group = group; in mxs_dt_node_to_map() 126 new_map[i].type = PIN_MAP_TYPE_CONFIGS_GROUP; in mxs_dt_node_to_map() 127 new_map[i].data.configs.group_or_pin = purecfg ? np->name : in mxs_dt_node_to_map() 129 new_map[i].data.configs.configs = pconfig; in mxs_dt_node_to_map() 130 new_map[i].data.configs.num_configs = 1; in mxs_dt_node_to_map() [all …]
|
D | pinctrl-imx.c | 120 struct pinctrl_map *new_map; in imx_dt_node_to_map() local 141 new_map = kmalloc(sizeof(struct pinctrl_map) * map_num, GFP_KERNEL); in imx_dt_node_to_map() 142 if (!new_map) in imx_dt_node_to_map() 145 *map = new_map; in imx_dt_node_to_map() 151 kfree(new_map); in imx_dt_node_to_map() 154 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx_dt_node_to_map() 155 new_map[0].data.mux.function = parent->name; in imx_dt_node_to_map() 156 new_map[0].data.mux.group = np->name; in imx_dt_node_to_map() 160 new_map++; in imx_dt_node_to_map() 163 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx_dt_node_to_map() [all …]
|
D | pinctrl-tegra.c | 99 struct pinctrl_map *new_map; in reserve_map() local 104 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map() 105 if (!new_map) { in reserve_map() 110 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map() 112 *map = new_map; in reserve_map()
|
D | pinctrl-at91.c | 240 struct pinctrl_map *new_map; in at91_dt_node_to_map() local 257 new_map = devm_kzalloc(pctldev->dev, sizeof(*new_map) * map_num, GFP_KERNEL); in at91_dt_node_to_map() 258 if (!new_map) in at91_dt_node_to_map() 261 *map = new_map; in at91_dt_node_to_map() 267 devm_kfree(pctldev->dev, new_map); in at91_dt_node_to_map() 270 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in at91_dt_node_to_map() 271 new_map[0].data.mux.function = parent->name; in at91_dt_node_to_map() 272 new_map[0].data.mux.group = np->name; in at91_dt_node_to_map() 276 new_map++; in at91_dt_node_to_map() 278 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in at91_dt_node_to_map() [all …]
|
D | pinctrl-nomadik.c | 1511 struct pinctrl_map *new_map; in nmk_dt_reserve_map() local 1516 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in nmk_dt_reserve_map() 1517 if (!new_map) in nmk_dt_reserve_map() 1520 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in nmk_dt_reserve_map() 1522 *map = new_map; in nmk_dt_reserve_map()
|
/drivers/md/ |
D | dm-ioctl.c | 36 struct dm_table *new_map; member 182 hc->new_map = NULL; in alloc_cell() 262 if (hc->new_map) in __hash_remove() 263 dm_table_destroy(hc->new_map); in __hash_remove() 635 table = hc->new_map; in dm_get_inactive_table() 772 if (hc->new_map) in __find_device_hash_cell() 958 struct dm_table *new_map, *old_map = NULL; in do_resume() local 971 new_map = hc->new_map; in do_resume() 972 hc->new_map = NULL; in do_resume() 978 if (new_map) { in do_resume() [all …]
|
/drivers/block/xen-blkback/ |
D | blkback.c | 489 bool new_map; in xen_blkbk_map() local 518 new_map = false; in xen_blkbk_map() 526 new_map = true; in xen_blkbk_map() 563 new_map = true; in xen_blkbk_map() 577 if (new_map) { in xen_blkbk_map()
|
/drivers/tty/vt/ |
D | keyboard.c | 1792 ushort *key_map, *new_map, val, ov; in vt_do_kdsk_ioctl() local 1846 new_map = kmalloc(sizeof(plain_map), GFP_KERNEL); in vt_do_kdsk_ioctl() 1847 if (!new_map) in vt_do_kdsk_ioctl() 1857 kfree(new_map); in vt_do_kdsk_ioctl() 1860 key_maps[s] = new_map; in vt_do_kdsk_ioctl() 1861 key_map = new_map; in vt_do_kdsk_ioctl() 1867 kfree(new_map); in vt_do_kdsk_ioctl()
|
/drivers/ata/ |
D | sata_mv.c | 2483 unsigned int old_map, new_map; in mv_handle_fbs_ncq_dev_err() local 2498 new_map = old_map | mv_get_err_pmp_map(ap); in mv_handle_fbs_ncq_dev_err() 2500 if (old_map != new_map) { in mv_handle_fbs_ncq_dev_err() 2501 pp->delayed_eh_pmp_map = new_map; in mv_handle_fbs_ncq_dev_err() 2502 mv_pmp_eh_prep(ap, new_map & ~old_map); in mv_handle_fbs_ncq_dev_err() 2504 failed_links = hweight16(new_map); in mv_handle_fbs_ncq_dev_err()
|