Lines Matching refs:map

205  * Check if device is in the map.
208 * map - loop map returned from fc port
209 * tid - device ID for private map or 24-bit alpa for fabric map
212 * 1 if device present in the map.
217 g_device_in_map(gfc_map_t *map, int tid)
222 dev_ptr = map->dev_addr;
223 if ((map->hba_addr.port_topology == FC_TOP_PUBLIC_LOOP) ||
224 (map->hba_addr.port_topology == FC_TOP_FABRIC)) {
225 for (i = 0; i < map->count; i++, dev_ptr++) {
236 for (i = 0; i < map->count; i++, dev_ptr++) {
863 * Get the limited map for FC4 devices.
883 /* initialize map */
905 P_DPRINTF(" g_get_limited_map: Geting drive map from:"
1486 * This function returns the device map with local hba in physical
1497 * Gets device map from nexus driver
1501 * map - loop map returned from fc port.
1631 P_DPRINTF(" g_get_dev_map: Geting drive map from:"
1688 /* If map type is on MAP_FORMAT_LILP we need */
1704 /* If we want the lilp map then we need to do a little */
1705 /* work here. The lilp map contains the local hba in */
1708 /* The lilp map will contain the local hba in the */
1772 * make sure that we don't overrun the map structure
1851 /* initialize map */
2113 * Construct device map tree from nexus driver
2118 * flag - device map fomat and property type.
2143 * consturct map and child tree list and
2147 * ptr to map is returned if OK.
2250 P_DPRINTF(" g_dev_map_init: Geting drive map from:"
2406 /* If we want the lilp map then we need to do a little */
2407 /* work here. The lilp map contains the local hba in */
2450 /* Now constructs map tree with these info. */
2451 /* First consturct the root of the map tree */
2505 /* set the map as parent */
2611 /* connect the children to to map. */
2616 /* initialize map */
2651 /* get limited map to get hba param info */
2678 /* Now constructs map tree with these info. */
2679 /* First consturct the root of the map tree */
2721 /* set the map as parent */
2813 * This function deallocates memory for the whole map.
2816 g_dev_map_fini(gfc_dev_t map)
2820 impl_map = (impl_map_dev_t *)map;
2830 * This function passes back topology of the input map.
2837 g_get_map_topology(gfc_dev_t map, uint_t *topology)
2841 if (map == NULL) {
2849 impl_map = (impl_map_dev_t *)map;
2857 * This function returns the first device handle of the input map.
2858 * map input should be a handle form g_dev_map_init().
2864 g_get_first_dev(gfc_dev_t map, int *l_err)
2874 if (map == NULL) {
2879 impl_map = (impl_map_dev_t *)map;
2889 * This function returns the next device handle of the input map.
3325 struct lilpmap map;
3387 /* Get map of devices on this loop. */
3419 (void) memset(&map, 0, sizeof (struct lilpmap));
3434 * First try using the socal version of the map.
3437 if (ioctl(fd, FCIO_GETMAP, &map) != 0) {
3461 map.lilp_length);
3463 if (map.lilp_length > sizeof (map.lilp_list)) {
3467 length = map.lilp_length;
3487 map.lilp_list[i];
3531 /* we have map created already via g_dev_map_init. */
3786 /* This function allocs mem for map.dev_addr on success */
5094 struct lilpmap map;
5099 (void) memset(&map, 0, sizeof (struct lilpmap));
5149 if (ioctl(fd, FCIO_GETMAP, &map) != 0) {
5150 map.lilp_length = 0;
5152 num_devices = map.lilp_length;