Lines Matching defs:node

71 /* define for fcp pseudo node */
77 static int stat_fc_dev(di_node_t node, void *arg);
78 static int stat_FCP_dev(di_node_t node, void *arg);
81 static int get_xport_state(di_node_t node, void *arg);
83 static fpcfga_ret_t do_stat_fc_dev(const di_node_t node, const char *nodepath,
85 static fpcfga_ret_t do_stat_FCP_dev(const di_node_t node, const char *nodepath,
89 static void get_hw_info(di_node_t node, cfga_list_data_t *clp);
285 * if path is null that guatantees the node is not
286 * configured. if node is detached the path
327 * path indicates if the node exists in dev tree.
341 * path indicates if the node exists in dev tree.
360 * to see if any node exist on the fca port.
416 * on scsi_vhci child node. In order to get the link between
417 * scsi_vhci node and path info node the snap shot of the
635 * if path is null that guatantees the node is not
636 * configured. if node is detached the path
681 * path indicates if the node exists in dev tree.
705 * to see if any node exist on the fca port.
784 * on scsi_vhci child node. In order to get the link between
785 * scsi_vhci node and path info node the snap shot of the
1077 * For remote hba node this will be normal.
1187 stat_fc_dev(di_node_t node, void *arg)
1205 * fp plug-in. The node will be processed for fp even if it is
1206 * in driver detached state. From fp perspective the node is configured
1207 * as long as the node is not in offline or down state.
1211 * If the node is only in driver detached state it is considered as
1214 * if (!known_state(node) && (lap->cmd != FPCFGA_STAT_FC_DEV)) {
1219 devfsp = di_devfs_path(node);
1237 /* Skip node if it is HBA */
1244 /* If stat'ing a specific device, is this node that device */
1247 while ((prop = di_prop_next(node, prop))
1294 ret = do_stat_fc_dev(node, nodepath, lap, limited_stat);
1336 stat_FCP_dev(di_node_t node, void *arg)
1348 devfsp = di_devfs_path(node);
1366 /* Skip node if it is HBA */
1373 /* If stat'ing a specific device, is this node that device */
1376 di_ret = di_prop_lookup_bytes(DDI_DEV_T_ANY, node,
1409 ret = do_stat_FCP_dev(node, nodepath, lap, limited_stat);
1541 get_xport_state(di_node_t node, void *arg)
1545 *di_statep = di_state(node);
1551 * Routine for updating ldata list based on the state of device node.
1556 * If the device node is online and the matching ldata is found
1558 * If the device node is offline or down and the matching ldata is found
1560 * If the device node is online but the matching ldata is not found
1562 * If the device node is offline or down and the matching ldata is not found
1567 const di_node_t node,
1588 devinfo_state = di_state(node);
1635 * This is okay for the detached node due to
1652 * When the device is not accessible the node
1662 * for any existing node. Otherwise when the
1699 * to see if the node exist on the dev list. Otherwise create
1704 if ((ret = make_dyncomp_from_dinode(node,
1712 /* node exists so set ostate to configured. */
1723 * This is okay for the detached node due to
1730 get_hw_info(node, clp);
1733 * node is offline or down.
1740 * a different node with the same
1753 /* node found in ldata list so just return. */
1763 /* node is attached but not in dev list */
1770 * node is offline or down.
1778 * existing node.
1796 * this node
1815 * node is offline or down.
1824 * existing node.
1855 ret = make_dyncomp_from_dinode(node, &dyncomp, &l_errno);
1880 get_hw_info(node, clp);
1913 * Routine for updating ldata list based on the state of path info node.
1918 * If the path info node is not offline and the matching ldata is found
1920 * If the path info node is offline or failed and the matching ldata is found
1922 * If the path info node is online but the matching ldata is not found
1963 * when there is no path_info node return FPCFGA_OK.
1992 * now parse the path info node.
2006 /* if no match contine to the next path info node. */
2070 * now create ldata for this particular path info node.
2102 * Routine for updating ldata list based on the state of path info node.
2111 * If the path info node is not offline and the matching ldata is found
2113 * If the path info node is offline or failed and the matching ldata is found
2115 * If the path info node is online but the matching ldata is not found
2150 * when there is no path_info node return FPCFGA_OK.
2182 * now parse the path info node.
2223 * now create ldata for this particular path info node.
2234 /* create ldata for this pi node. */
2269 * in ldata list but path info node exists.
2335 * now create ldata for this particular path info node.
2346 /* create ldata for this pi node. */
2381 * in ldata list but path info node exists.
2434 * Routine for updating ldata list based on the state of device node.
2443 * If the device node is online and the matching ldata is found
2445 * If the device node is offline or down and the matching ldata is found
2447 * If the device node is online but the matching ldata is not found
2449 * If the device node is offline or down and the matching ldata is not found
2454 const di_node_t node,
2475 devinfo_state = di_state(node);
2510 if ((make_portwwn_luncomp_from_dinode(node, &port_wwn, &lun_nump,
2535 * This is okay for the detached node due to
2552 * When the device is not accessible the node
2562 * for any existing node. Otherwise when the
2605 get_hw_info(node, clp);
2614 * to see if the node exist on the dev list. Otherwise create
2620 /* node exists so set ostate to configured. */
2631 * This is okay for the detached node due to
2638 get_hw_info(node, clp);
2641 * node is offline or down.
2659 /* node found in ldata list so just return. */
2665 /* node is attached but not in dev list */
2672 * node is offline or down.
2680 * existing node.
2698 * this node
2731 get_hw_info(node, clp);
2886 /* get the client node path */
2930 * but path info node exists.
3082 * peripheral qualifier is not 0 so the device node should not
3084 * node for the lun either.
3281 * fc dev list but the node should
3283 * and check the node state later.
3309 get_hw_info(di_node_t node, cfga_list_data_t *clp)
3319 * device node is configured but no valid device type is found
3338 cp = (char *)get_device_type(node);
3346 cp = (char *)get_device_type(node);
3357 if ((di_prop_lookup_strings(DDI_DEV_T_ANY, node,
3359 (di_prop_lookup_strings(DDI_DEV_T_ANY, node,
3368 * derive it from minor node type
3371 get_device_type(di_node_t node)
3377 if (node == DI_NODE_NIL) {
3382 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, "inquiry-device-type",
3394 * device minor node type.
3404 di_minor_t minor = di_minor_next(node, DI_MINOR_NIL);
3497 * if driver is attached the node is configured.
3498 * if offline or down the node is unconfigured.
3704 * to Report LUN. In the case of Minnow, the SES node