Lines Matching defs:to

4  * The contents of this file are subject to the terms of the
24 * Use is subject to license terms.
33 * various routines that are used to implement remote Config ROM reading.
39 * a block read and fallback to quad reads if this fails.
171 * is the bus reset thread. Its sole purpose is to read/reread config roms
218 /* Try to reallocate all isoch resources */
264 * to read the config roms as appropriate (indicated by BR_THR_CFGROM_SCAN).
265 * If the services layer wishes to kill the bus reset thread, it signals
328 * completion queue and passes it to the "completion handler" function
497 * tells the ndi event framework to invoke any callbacks registered for
525 * node cfgrom state. Drops topology_tree_mutex around the calls to
542 * if cfgrom is non-NULL, this has to be generation changed
543 * case (where we allocate cfgrom again to reread the cfgrom)
549 * if node matched, either cfgrom has to be NULL or link should be
649 * Copies config rom info from "from" node to "to" node. Clears
652 * has a pointer to it; if clear, both the node in the current tree as
653 * well as the corresponding node in the old tree point to the same memory).
656 s1394_copy_cfgrom(s1394_node_t *to, s1394_node_t *from)
659 "", tnf_int, to_node, to->node_num, tnf_int,
662 ASSERT(to->cfgrom == NULL);
664 to->cfgrom = from->cfgrom;
665 to->cfgrom_state = from->cfgrom_state;
666 to->cfgrom_valid_size = from->cfgrom_valid_size;
667 to->cfgrom_size = from->cfgrom_size;
668 to->node_state = from->node_state;
670 bcopy(from->dir_stack, to->dir_stack,
674 to->cfgrom_quad_to_read = from->cfgrom_quad_to_read;
676 CLEAR_CFGROM_NEW_ALLOC(to);
693 s1394_selfid_pkt_t *selfid_pkt = to->selfid_packet;
696 SET_LINK_ACTIVE(to);
705 * Attempts to kick off reading IEEE1212_NODE_CAP_QUAD quad or quad 0.
707 * issued, else sets status to the failure reason and returns DDI_FAILURE.
741 "", tnf_string, msg, "unable to relock the tree");
766 * if this is a matched node, read quad 2 (node capabilities) to
801 "", tnf_string, msg, "Unable to start read");
802 /* free the command if it wasn't handed over to the HAL */
826 * Attempts to start reading node->cfgrom_quad_to_read quadlet. Increments
828 * else sets status to the failure reason and returns DDI_FAILURE.
864 "unable to relock the tree");
888 "unable to start read");
889 /* free the command if it wasn't handed over to the HAL */
913 * Attempts to read bus info blocks for nodes as needed. Returns DDI_FAILURE
971 * or if matched but config rom generation > 1 (this is to
1061 * did not change, move targets hanging off the old node to the current
1068 * S1394_HCMD_NODE_DONE, else returns S1394_HCMD_NODE_EXPECT_MORE (to
1074 * is not due to bus generations changing.
1101 "unable to lock tree");
1178 /* we failed to relock the tree */
1190 * Pass1 Rio bug workaround. Due to this bug, if we read
1223 "unable to relock tree", tnf_uint,
1230 * Failed to get going. If command was
1231 * successfully handed over to the HAL,
1239 "unable to read", tnf_uint,
1294 "unable to relock tree", tnf_uint,
1301 * Failed to get going. If command was
1302 * successfully handed over to the HAL,
1309 msg, "unable to re-read", tnf_uint,
1370 * and new topology trees to identify which node moved where. Processes
1420 "unable to relock the tree");
1439 "unable to relock the tree after isoch notify");
1453 "unable to relock the tree after reset notify");
1459 /* Set HAL state to normal */
1483 "unable to relock after processing topology tree");
1523 * valid and calls s1394_update_devinfo_tree() to parse the config rom.
1524 * If need to get more quadlets, attempts to kick off the read and returns
1528 * S1394_HCMD_NODE_DONE, else returns S1394_HCMD_NODE_EXPECT_MORE (to
1560 "unable to lock tree", tnf_int, node_num, node_num,
1602 msg, "unable to relock the tree",
1650 msg, "unable to relock for reread",
1665 tnf_string, msg, "unable to retry",
1719 * a DDI_FAILURE. Set locked to 0 so in this case so that
1816 "unable to relock the tree");
1828 * due to bus reset else appends the command to the completion queue
1932 * attempts to match nnode (which is in the current topology tree) with
1935 * are set point to each other. Also, this routine makes both the nodes
1936 * point at the same config rom. If unable to relock the tree, returns
2016 * If generations changed, need to offline any targets
2017 * hanging off the old node, prior to freeing up old
2096 * attempt to match each node in the current topology tree with the a
2097 * node in the old topology tree. If unable to relock the tree, returns
2120 * changed, we want to call s1394_match_GUID() even
2240 * Ideally, we would like to do crc validations for the entire cfgrom
2302 * time expires, the local host may attempt to become the Bus Manager.
2303 * This is done by sending a request to the current IRM on the bus. The
2350 /* Send compare-swap to BUS_MANAGER_ID */
2421 /* Need to free the command */
2449 /* Need to free the command */
2461 * to send the Bus Manager request to a remote IRM. After the completion
2463 * in the request to determine whether or not it has become the Bus
2465 * incumbent_bus_mgr fields to their appropriate values.
2510 "Error while attempting to become bus manager",
2523 /* Need to free the command */
2536 * Its purpose is to determine whether the local node is capable of
2537 * becoming the Bus Manager (has the IRMC bit set) and if so to call
2539 * NOTE: we overload DDI_FAILURE return value to mean jump back to
2579 * is used to perform those operations expected of the Bus Manager.
2585 * root holdoff bit (to ensure that the cycle master is/stays root).
2587 * NOTE: we overload DDI_FAILURE return value to mean jump back to
2604 /* Wait for Bus Manager to be determined */
2605 /* or a Bus Reset to happen */
2660 /* Set the gap_count to optimum */
2760 /* Try to become bus manager */
2772 /* Wait 125ms, then try to become bus manager */
2794 * is used to determine a device's maximum payload size. That is to
2827 /* Set dev_max_payload to local (HAL's) size */
2859 /* Speed is to be filled in from speed map */
2867 /* Set dev_max_payload to local (HAL's) size */
2878 * is used to determine whether or not the current root node on the
2897 /* Get a pointer to the root node */
2909 * We want to pick a new root if link is off or we don't have
2943 * is called by s1394_do_bus_mgr_processing() to setup and send out
2948 * NOTE: we overload DDI_FAILURE return value to mean jump back to
2967 /* Gap count needs to be optimized */
2980 /* Root node needs to be changed */
2998 "Unable to allocate PHY config packet");
3023 /* Get a pointer to the HAL private struct */
3049 "Unable to send PHY config packet",
3118 * Attempts to lock the topology tree. Returns DDI_FAILURE if generations
3119 * changed or if the services layer signals the bus reset thread to go
3189 * figures out the next quadlet to read. This maintains a stack of
3198 * Returns 0 is more quads to read, else returns non-zero.
3243 * check to make sure we are looking at a dir. If the config rom
3244 * is broken, then revert to normal scanning of the config rom
3296 * cfgrom_valid_size to the len specfied as crc len
3334 * dir stack and fall back to serial
3368 /* and set the next quadlet to read */