FreeBSD/sys/dev/firewire/firewire.c
/*
 * To lookup bound process from IEEE1394 address.
 */
To lookup bound process from IEEE1394 address.
To lookup bound process from IEEE1394 address .
struct fw_bind *
fw_bindlookup(struct firewire_comm *fc, uint16_t dest_hi, uint32_t dest_lo)
{
	u_int64_t addr;
	struct fw_bind *tfw, *r = NULL;
	addr = ((u_int64_t)dest_hi << 32) | dest_lo;
	FW_GLOCK(fc);
	STAILQ_FOREACH(tfw, &fc->binds, fclist)
		if (BIND_CMP(addr, tfw) == 0) {
			r = tfw;
			break;
		}
	FW_GUNLOCK(fc);
	return (r);
}
struct fw_bind * fw_bindlookup ( struct firewire_comm * fc , uint16_t dest_hi , uint32_t dest_lo ) { u_int64_t addr ; struct fw_bind * tfw , * r = NULL ; addr = ( ( u_int64_t ) dest_hi << 32 ) | dest_lo ; FW_GLOCK ( fc ) ; STAILQ_FOREACH ( tfw , & fc -> binds , fclist ) if ( BIND_CMP ( addr , tfw ) == 0 ) { r = tfw ; break ; } FW_GUNLOCK ( fc ) ; return ( r ) ; }
To lookup bound process from IEEE1394 address.
To lookup bound process from IEEE1394 address .