/freebsd/usr.sbin/mfiutil/ |
H A D | mfi_volume.c | 69 mbox[0] = ref->v.target_id; in mbox_store_ldref() 84 mfi_ld_get_info(int fd, uint8_t target_id, struct mfi_ld_info *info, in mfi_ld_get_info() argument 89 mbox[0] = target_id; in mfi_ld_get_info() 95 mfi_ld_get_props(int fd, uint8_t target_id, struct mfi_ld_props *props) in mfi_ld_get_props() argument 99 mbox[0] = target_id; in mfi_ld_get_props() 291 uint8_t target_id; in volume_cache() local 305 if (mfi_lookup_volume(fd, av[1], &target_id) < 0) { in volume_cache() 312 if (mfi_ld_get_props(fd, target_id, &props) < 0) { in volume_cache() 321 mfi_volume_name(fd, target_id)); in volume_cache() 395 uint8_t target_id; in volume_name() local [all …]
|
H A D | mfi_cmd.c | 168 mfi_query_disk(int fd, uint8_t target_id, struct mfi_query_disk *info) in mfi_query_disk() argument 172 info->array_id = target_id; in mfi_query_disk() 183 mfi_volume_name(int fd, uint8_t target_id) in mfi_volume_name() argument 188 if (mfi_query_disk(fd, target_id, &info) < 0) { in mfi_volume_name() 189 snprintf(buf, sizeof(buf), "%d", target_id); in mfi_volume_name() 196 mfi_volume_busy(int fd, uint8_t target_id) in mfi_volume_busy() argument 201 if (mfi_query_disk(fd, target_id, &info) < 0) in mfi_volume_busy() 232 mfi_lookup_volume(int fd, const char *name, uint8_t *target_id) in mfi_lookup_volume() argument 243 *target_id = val; in mfi_lookup_volume() 252 if (mfi_query_disk(fd, list.ld_list[i].ld.v.target_id, in mfi_lookup_volume() [all …]
|
H A D | mfi_config.c | 140 mfi_config_lookup_volume(struct mfi_config_data *config, uint8_t target_id) in mfi_config_lookup_volume() argument 149 if (ld->properties.ld.v.target_id == target_id) in mfi_config_lookup_volume() 186 if (mfi_volume_busy(fd, list.ld_list[i].ld.v.target_id)) { in clear_config() 188 mfi_volume_name(fd, list.ld_list[i].ld.v.target_id)); in clear_config() 278 uint8_t target_id; member 413 state->target_id++; in find_next_volume() 417 if (state->volumes[i] == state->target_id) in find_next_volume() 418 state->target_id++; in find_next_volume() 419 return (state->target_id); in find_next_volume() 460 ld->properties.ld.v.target_id = find_next_volume(state); in build_volume() [all …]
|
H A D | mfi_show.c | 404 mfi_volume_name(fd, ld->properties.ld.v.target_id)); in show_config() 405 if (mfi_ld_get_info(fd, ld->properties.ld.v.target_id, &linfo, in show_config() 491 if (mfi_ld_get_info(fd, list.ld_list[i].ld.v.target_id, &info, in show_volumes() 495 list.ld_list[i].ld.v.target_id); in show_volumes() 500 mfi_volume_name(fd, list.ld_list[i].ld.v.target_id)); in show_volumes() 675 uint8_t target_id; in show_progress() local 704 target_id = llist.ld_list[i].ld.v.target_id; in show_progress() 705 if (mfi_ld_get_info(fd, target_id, &linfo, NULL) < 0) { in show_progress() 708 mfi_volume_name(fd, target_id)); in show_progress() 714 printf("volume %s ", mfi_volume_name(fd, target_id)); in show_progress() [all …]
|
H A D | mfiutil.h | 149 const char *mfi_volume_name(int fd, uint8_t target_id); 150 int mfi_volume_busy(int fd, uint8_t target_id); 155 int mfi_lookup_volume(int fd, const char *name, uint8_t *target_id); 160 int mfi_ld_get_info(int fd, uint8_t target_id, struct mfi_ld_info *info,
|
/freebsd/usr.bin/ipcrm/ |
H A D | ipcrm.c | 203 int c, result, target_id; in main() local 229 target_id = atoi(optarg); in main() 231 result = msgrm(0, target_id); in main() 233 result = shmrm(0, target_id); in main() 235 result = semrm(0, target_id); in main() 240 IPC_TO_STR(toupper(c)), target_id); in main()
|
/freebsd/lib/libcam/ |
H A D | camlib.c | 82 ccb->ccb_h.target_id = dev->target_id; in cam_getccb() 273 cam_open_btl(path_id_t path_id, target_id_t target_id, lun_id_t target_lun, in cam_open_btl() argument 290 ccb.ccb_h.target_id = CAM_TARGET_WILDCARD; in cam_open_btl() 327 match_pat->target_id = target_id; in cam_open_btl() 357 __func__, path_id, target_id, (uintmax_t)target_lun); in cam_open_btl() 364 " %d:%d:%jx", __func__, path_id, target_id, in cam_open_btl() 594 device->target_id = ccb.ccb_h.target_id; in cam_real_open_device() 705 dev->target_id, in cam_path_string()
|
/freebsd/sys/dev/aacraid/ |
H A D | aacraid_cam.c | 107 uint32_t target_id); 165 aac_cam_rescan(struct aac_softc *sc, uint32_t channel, uint32_t target_id) in aac_cam_rescan() argument 171 if (target_id == AAC_CAM_TARGET_WILDCARD) in aac_cam_rescan() 172 target_id = CAM_TARGET_WILDCARD; in aac_cam_rescan() 189 target_id, CAM_LUN_WILDCARD) != CAM_REQ_CMP) { in aac_cam_rescan() 424 raw->ldNum = ccb->ccb_h.target_id; in aac_container_rw_command() 439 raw->ContainerId = ccb->ccb_h.target_id; in aac_container_rw_command() 451 br->ContainerId = ccb->ccb_h.target_id; in aac_container_rw_command() 461 bw->ContainerId = ccb->ccb_h.target_id; in aac_container_rw_command() 475 br->ContainerId = ccb->ccb_h.target_id; in aac_container_rw_command() [all …]
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | hsi_struct_def.h | 76 uint16_t target_id; member 224 uint16_t target_id; member 277 uint16_t target_id; member 1837 uint16_t target_id; member 13853 uint16_t target_id; member 13954 uint16_t target_id; member 14033 uint16_t target_id; member 14108 uint16_t target_id; member 14184 uint16_t target_id; member 14475 uint16_t target_id; member [all …]
|
/freebsd/sys/dev/ata/ |
H A D | ata-all.c | 741 request->unit = ccb->ccb_h.target_id; in ata_cam_begin_transaction() 777 ch->curr[ccb->ccb_h.target_id].bytecount); in ata_cam_begin_transaction() 787 if (ch->curr[ccb->ccb_h.target_id].atapi == 16) in ata_cam_begin_transaction() 790 ch->curr[ccb->ccb_h.target_id].mode >= ATA_DMA) in ata_cam_begin_transaction() 797 ch->curr[ccb->ccb_h.target_id].bytecount); in ata_cam_begin_transaction() 826 request->unit = ccb->ccb_h.target_id; in ata_cam_request_sense() 832 if (ch->curr[ccb->ccb_h.target_id].atapi == 16) in ata_cam_request_sense() 834 if (ch->curr[ccb->ccb_h.target_id].mode >= ATA_DMA) in ata_cam_request_sense() 838 ch->curr[ccb->ccb_h.target_id].bytecount); in ata_cam_request_sense() 956 if (ccb->ccb_h.target_id > ((ch->flags & ATA_NO_SLAVE) ? 0 : 1)) { in ata_check_ids() [all …]
|
/freebsd/sys/dev/isci/ |
H A D | isci_io_request.c | 146 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 157 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 165 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 209 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 742 target_id_t target_id = ccb->ccb_h.target_id; in isci_io_request_execute_scsi_io() local 746 controller->remote_device[target_id]; in isci_io_request_execute_scsi_io() 923 target_id_t target_id = ccb->ccb_h.target_id; in isci_io_request_execute_smp_io() local 927 struct ISCI_REMOTE_DEVICE *end_device = controller->remote_device[target_id]; in isci_io_request_execute_smp_io()
|
/freebsd/sys/cam/ |
H A D | cam_compat.h | 66 target_id_t target_id; /* Target device ID */ member 154 target_id_t target_id; /* Target device ID */ member 199 target_id_t target_id; member 204 target_id_t target_id; member
|
H A D | cam_xpt.c | 248 xpt_alloc_target(struct cam_eb *bus, target_id_t target_id); 254 xpt_find_target(struct cam_eb *bus, target_id_t target_id); 435 if (inccb->ccb_h.target_id != CAM_TARGET_WILDCARD || in xptdoioctl() 442 if (inccb->ccb_h.target_id == CAM_TARGET_WILDCARD || in xptdoioctl() 468 inccb->ccb_h.target_id, in xptdoioctl() 502 inccb->ccb_h.target_id, in xptdoioctl() 690 ccb->ccb_h.target_id = in xptdoioctl() 691 periph->path->target->target_id; in xptdoioctl() 835 if (ccb->ccb_h.path->target->target_id == CAM_TARGET_WILDCARD && in xpt_rescan() 838 else if (ccb->ccb_h.path->target->target_id != CAM_TARGET_WILDCARD && in xpt_rescan() [all …]
|
H A D | cam_xpt.h | 90 target_id_t target_id, lun_id_t lun_id); 94 target_id_t target_id, lun_id_t lun_id); 135 target_id_t target_id,
|
/freebsd/sys/dev/hptrr/ |
H A D | osm.h | 180 #define os_register_device(osext, target_id) argument 181 #define os_unregister_device(osext, target_id) argument 182 int os_query_remove_device(void *osext, int target_id); 183 int os_revalidate_device(void *osext, int target_id);
|
/freebsd/sys/dev/mps/ |
H A D | mps_sas.c | 959 KASSERT(cts->ccb_h.target_id < sassc->maxtargets, in mpssas_action() 961 cts->ccb_h.target_id)); in mpssas_action() 962 targ = &sassc->targets[cts->ccb_h.target_id]; in mpssas_action() 1025 target_id_t target_id, lun_id_t lun_id) in mpssas_announce_reset() argument 1031 ac_code, target_id, (uintmax_t)lun_id); in mpssas_announce_reset() 1034 path_id, target_id, lun_id) != CAM_REQ_CMP) { in mpssas_announce_reset() 1490 __func__, cm->cm_ccb->ccb_h.target_id); in mpssas_send_abort() 1629 KASSERT(csio->ccb_h.target_id < sassc->maxtargets, in mpssas_action_scsiio() 1631 csio->ccb_h.target_id)); in mpssas_action_scsiio() 1632 targ = &sassc->targets[csio->ccb_h.target_id]; in mpssas_action_scsiio() [all …]
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_cam.c | 262 int target = csio->ccb_h.target_id; in smartpqi_fix_ld_inquiry() 818 target = ccb->ccb_h.target_id; in pqisrc_io_start() 830 DBG_INFO("Device = %d not there\n", ccb->ccb_h.target_id); in pqisrc_io_start() 842 DBG_WARN("Device = %d BUSY/IN_RESET\n", ccb->ccb_h.target_id); in pqisrc_io_start() 848 DBG_WARN("Device = %d GONE/OFFLINE\n", ccb->ccb_h.target_id); in pqisrc_io_start() 854 DBG_WARN("Device %d reset returned busy\n", ccb->ccb_h.target_id); in pqisrc_io_start() 860 DBG_INFO("Device = %d not exposed\n", ccb->ccb_h.target_id); in pqisrc_io_start() 906 ccb->ccb_h.target_id); in pqisrc_io_start() 1027 target = ccb->ccb_h.target_id; in pqisrc_target_reset() 1038 DBG_ERR("bad target %d, tmf type : 0x%x\n", ccb_h->target_id, ccb_h->func_code); in pqisrc_target_reset() [all …]
|
/freebsd/sys/dev/hpt27xx/ |
H A D | osm.h | 215 #define os_register_device(osext, target_id) argument 216 #define os_unregister_device(osext, target_id) argument 217 int os_query_remove_device(void *osext, int target_id); 218 int os_revalidate_device(void *osext, int target_id);
|
/freebsd/sys/dev/hptnr/ |
H A D | osm.h | 213 #define os_register_device(osext, target_id) argument 214 #define os_unregister_device(osext, target_id) argument 215 int os_query_remove_device(void *osext, int target_id); 216 int os_revalidate_device(void *osext, int target_id);
|
/freebsd/sys/dev/mpr/ |
H A D | mpr_sas.c | 1016 KASSERT(cts->ccb_h.target_id < sassc->maxtargets, in mprsas_action() 1018 cts->ccb_h.target_id)); in mprsas_action() 1019 targ = &sassc->targets[cts->ccb_h.target_id]; in mprsas_action() 1086 target_id_t target_id, lun_id_t lun_id) in mprsas_announce_reset() argument 1092 ac_code, target_id, (uintmax_t)lun_id); in mprsas_announce_reset() 1095 path_id, target_id, lun_id) != CAM_REQ_CMP) { in mprsas_announce_reset() 1568 __func__, cm->cm_ccb->ccb_h.target_id); in mprsas_send_abort() 1858 KASSERT(csio->ccb_h.target_id < sassc->maxtargets, in mprsas_action_scsiio() 1860 csio->ccb_h.target_id)); in mprsas_action_scsiio() 1861 targ = &sassc->targets[csio->ccb_h.target_id]; in mprsas_action_scsiio() [all …]
|
/freebsd/sys/dev/mpi3mr/ |
H A D | mpi3mr_cam.c | 554 "TM is not required\n", ccb->ccb_h.target_id); in mpi3mr_issue_tm() 559 ccb->ccb_h.target_id); in mpi3mr_issue_tm() 966 KASSERT(csio->ccb_h.target_id < cam_sc->maxtargets, in mpi3mr_action_scsiio() 968 csio->ccb_h.target_id)); in mpi3mr_action_scsiio() 980 targ = mpi3mr_find_target_by_per_id(cam_sc, csio->ccb_h.target_id); in mpi3mr_action_scsiio() 983 csio->ccb_h.target_id); in mpi3mr_action_scsiio() 991 csio->ccb_h.target_id); in mpi3mr_action_scsiio() 998 …mpi3mr_dprint(sc, MPI3MR_XINFO, "Device with target ID: 0x%x is removed\n", csio->ccb_h.target_id); in mpi3mr_action_scsiio() 1006 __func__, csio->ccb_h.target_id); in mpi3mr_action_scsiio() 1015 __func__, csio->ccb_h.target_id); in mpi3mr_action_scsiio() [all …]
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | bnxt_re.h | 665 u16 target_id); 668 u16 target_id); 671 int bnxt_re_hwrm_cos2bw_qcfg(struct bnxt_re_dev *rdev, u16 target_id, 673 int bnxt_re_hwrm_cos2bw_cfg(struct bnxt_re_dev *rdev, u16 target_id, 676 u16 target_id, u16 port_id, 940 u16 target_id, 971 hdr->target_id = cpu_to_le16(trid); in bnxt_re_init_hwrm_hdr() 1050 u16 target_id);
|
/freebsd/sys/dev/mvs/ |
H A D | mvs.c | 776 ch->slot[i].ccb->ccb_h.target_id != port) in mvs_ch_intr() 946 ch->curr[ccb->ccb_h.target_id].bytecount); in mvs_legacy_intr() 972 ch->curr[ccb->ccb_h.target_id].bytecount); in mvs_legacy_intr() 1101 ch->taggedtarget != ccb->ccb_h.target_id) in mvs_check_collision() 1197 tag = ffs(~ch->otagspd[ccb->ccb_h.target_id]) - 1; in mvs_begin_transaction() 1212 ch->numrslotspd[ccb->ccb_h.target_id]++; in mvs_begin_transaction() 1215 ch->otagspd[ccb->ccb_h.target_id] |= (1 << slot->tag); in mvs_begin_transaction() 1217 ch->numtslotspd[ccb->ccb_h.target_id]++; in mvs_begin_transaction() 1218 ch->taggedtarget = ccb->ccb_h.target_id; in mvs_begin_transaction() 1237 ch->curr[ccb->ccb_h.target_id].mode >= ATA_DMA && in mvs_begin_transaction() [all …]
|
/freebsd/usr.sbin/mptutil/ |
H A D | mpt_cam.c | 146 ccb.ccb_h.target_id = CAM_TARGET_WILDCARD; in mpt_query_disk() 164 p->target_id = VolumeID; in mpt_query_disk() 223 if (vol->VolumeBus == 0 && vol->VolumeID == r->target_id) in periph_is_volume() 491 disks[count].target = r->target_id; in mpt_fetch_disks() 542 ccb.ccb_h.target_id = CAM_TARGET_WILDCARD; in mpt_rescan_bus() 547 ccb.ccb_h.target_id = id; in mpt_rescan_bus()
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | fsl_sata.c | 839 else if ((der & (1 << ch->slot[i].ccb->ccb_h.target_id)) != 0) in fsl_sata_intr_main() 855 int t = ccb->ccb_h.target_id; in fsl_sata_check_collision() 895 tags = ch->curr[ccb->ccb_h.target_id].tags; in fsl_sata_begin_transaction() 915 ch->numrslotspd[ccb->ccb_h.target_id]++; in fsl_sata_begin_transaction() 919 ch->numtslotspd[ccb->ccb_h.target_id]++; in fsl_sata_begin_transaction() 920 ch->taggedtarget = ccb->ccb_h.target_id; in fsl_sata_begin_transaction() 993 int port = ccb->ccb_h.target_id & 0x0f; in fsl_sata_execute_transaction() 1149 slot->slot, slot->ccb->ccb_h.target_id & 0x0f); in fsl_sata_timeout() 1294 ch->numrslotspd[ccb->ccb_h.target_id]--; in fsl_sata_end_transaction() 1299 ch->numtslotspd[ccb->ccb_h.target_id]--; in fsl_sata_end_transaction() [all …]
|