FreeBSD/sys/dev/firewire/firewire.c
/*
 * Find the self_id packet for a node, ignoring sequels.
 */
Find the self_id packet for a node, ignoring sequels.
Find the self_id packet for a node ignoring sequels .
static union fw_self_id *
fw_find_self_id(struct firewire_comm *fc, int node)
{
	uint32_t i;
	union fw_self_id *s;
	for (i = 0; i < fc->topology_map->self_id_count; i++) {
		s = &fc->topology_map->self_id[i];
		if (s->p0.sequel)
			continue;
		if (s->p0.phy_id == node)
			return s;
	}
	return 0;
}
static union fw_self_id * fw_find_self_id ( struct firewire_comm * fc , int node ) { uint32_t i ; union fw_self_id * s ; for ( i = 0 ; i < fc -> topology_map -> self_id_count ; i ++ ) { s = & fc -> topology_map -> self_id [ i ] ; if ( s -> p0 . sequel ) continue ; if ( s -> p0 . phy_id == node ) return s ; } return 0 ; }
Find the self_id packet for a node, ignoring sequels.
Find the self_id packet for a node ignoring sequels .