Lines Matching defs:map

1309  * a <@stem_name>-map property.
1326 * list-map = <0 &phandle2 3>,
1329 * list-map-mask = <0x3>;
1347 const __be32 *map, *mask, *pass;
1363 map_name = kasprintf(GFP_KERNEL, "%s-map", stem_name);
1367 mask_name = kasprintf(GFP_KERNEL, "%s-map-mask", stem_name);
1371 pass_name = kasprintf(GFP_KERNEL, "%s-map-pass-thru", stem_name);
1392 /* Get the <list>-map property */
1393 map = of_get_property(cur, map_name, &map_len);
1394 if (!map) {
1400 /* Get the <list>-map-mask property (optional) */
1404 /* Iterate through <list>-map property */
1410 match &= !((match_array[i] ^ *map++) & mask[i]);
1413 new = of_find_node_by_phandle(be32_to_cpup(map));
1414 map++;
1435 map += new_size;
1441 /* Get the <list>-map-pass-thru property (optional) */
1447 * Successfully parsed a <list>-map translation; copy new
1449 * bits specified in <list>-map-pass-thru.
1451 match_array = map - new_size;
1453 __be32 val = *(map - new_size + i);
1939 * @id: device ID to map.
1940 * @map_name: property name of the map to use.
1947 * ID, as per the "iommu-map" and "msi-map" bindings. Either of @target or
1961 const __be32 *map = NULL;
1966 map = of_get_property(np, map_name, &map_len);
1967 if (!map) {
1970 /* Otherwise, no map implies no translation */
1975 if (!map_len || map_len % (4 * sizeof(*map))) {
1985 * Can be overridden by "{iommu,msi}-map-mask" property.
1992 for ( ; map_len > 0; map_len -= 4 * sizeof(*map), map += 4) {
1994 u32 id_base = be32_to_cpup(map + 0);
1995 u32 phandle = be32_to_cpup(map + 1);
1996 u32 out_base = be32_to_cpup(map + 2);
1997 u32 id_len = be32_to_cpup(map + 3);