Lines Matching refs:tgtinfo

1969 	struct mpi3mr_ioctl_tgtinfo tgtinfo;  in mpi3mr_get_tgtinfo()  local
1971 memset(&tgtinfo, 0, sizeof(tgtinfo)); in mpi3mr_get_tgtinfo()
1980 if (copyin(karg->data_out_buf, &tgtinfo, sizeof(tgtinfo))) { in mpi3mr_get_tgtinfo()
1987 if ((tgtinfo.bus_id != 0xFF) && (tgtinfo.target_id != 0xFFFFFFFF)) { in mpi3mr_get_tgtinfo()
1988 if ((tgtinfo.persistent_id != 0xFFFF) || in mpi3mr_get_tgtinfo()
1989 (tgtinfo.dev_handle != 0xFFFF)) in mpi3mr_get_tgtinfo()
1991 tgtdev = mpi3mr_find_target_by_per_id(sc->cam_sc, tgtinfo.target_id); in mpi3mr_get_tgtinfo()
1992 } else if (tgtinfo.persistent_id != 0xFFFF) { in mpi3mr_get_tgtinfo()
1993 if ((tgtinfo.bus_id != 0xFF) || in mpi3mr_get_tgtinfo()
1994 (tgtinfo.dev_handle !=0xFFFF) || in mpi3mr_get_tgtinfo()
1995 (tgtinfo.target_id != 0xFFFFFFFF)) in mpi3mr_get_tgtinfo()
1997 tgtdev = mpi3mr_find_target_by_per_id(sc->cam_sc, tgtinfo.persistent_id); in mpi3mr_get_tgtinfo()
1998 } else if (tgtinfo.dev_handle !=0xFFFF) { in mpi3mr_get_tgtinfo()
1999 if ((tgtinfo.bus_id != 0xFF) || in mpi3mr_get_tgtinfo()
2000 (tgtinfo.target_id != 0xFFFFFFFF) || in mpi3mr_get_tgtinfo()
2001 (tgtinfo.persistent_id != 0xFFFF)) in mpi3mr_get_tgtinfo()
2003 tgtdev = mpi3mr_find_target_by_dev_handle(sc->cam_sc, tgtinfo.dev_handle); in mpi3mr_get_tgtinfo()
2008 tgtinfo.target_id = tgtdev->per_id; in mpi3mr_get_tgtinfo()
2009 tgtinfo.bus_id = 0; in mpi3mr_get_tgtinfo()
2010 tgtinfo.dev_handle = tgtdev->dev_handle; in mpi3mr_get_tgtinfo()
2011 tgtinfo.persistent_id = tgtdev->per_id; in mpi3mr_get_tgtinfo()
2012 tgtinfo.seq_num = 0; in mpi3mr_get_tgtinfo()
2014 if (copyout(&tgtinfo, karg->data_in_buf, sizeof(tgtinfo))) { in mpi3mr_get_tgtinfo()