/freebsd/usr.bin/iscsictl/ |
H A D | iscsictl.c | 67 struct target *targ; in target_find() local 69 TAILQ_FOREACH(targ, &conf->conf_targets, t_next) { in target_find() 70 if (targ->t_nickname != NULL && in target_find() 71 strcasecmp(targ->t_nickname, nickname) == 0) in target_find() 72 return (targ); in target_find() 81 struct target *targ; in target_new() local 83 targ = calloc(1, sizeof(*targ)); in target_new() 84 if (targ == NULL) in target_new() 86 targ->t_conf = conf; in target_new() 87 targ->t_dscp = -1; in target_new() [all …]
|
/freebsd/sys/dev/mpr/ |
H A D | mpr_sas_lsi.c | 283 struct mprsas_target *targ; in mprsas_fw_work() local 403 targ = &sassc->targets[id]; in mprsas_fw_work() 404 targ->handle = 0x0; in mprsas_fw_work() 405 targ->encl_slot = 0x0; in mprsas_fw_work() 406 targ->encl_handle = 0x0; in mprsas_fw_work() 407 targ->encl_level_valid = 0x0; in mprsas_fw_work() 408 targ->encl_level = 0x0; in mprsas_fw_work() 409 targ->connector_name[0] = ' '; in mprsas_fw_work() 410 targ->connector_name[1] = ' '; in mprsas_fw_work() 411 targ->connector_name[2] = ' '; in mprsas_fw_work() [all …]
|
H A D | mpr_sas.c | 262 mprsas_rescan_target(struct mpr_softc *sc, struct mprsas_target *targ) in mprsas_rescan_target() argument 271 if (targ == NULL) in mprsas_rescan_target() 274 targetid = targ - sassc->targets; in mprsas_rescan_target() 347 struct mprsas_target *targ; in mprsas_remove_volume() local 354 targ = tm->cm_targ; in mprsas_remove_volume() 376 targ->tid, handle); in mprsas_remove_volume() 386 targ = tm->cm_targ; in mprsas_remove_volume() 387 targ->handle = 0x0; in mprsas_remove_volume() 388 targ->encl_handle = 0x0; in mprsas_remove_volume() 389 targ->encl_level_valid = 0x0; in mprsas_remove_volume() [all …]
|
/freebsd/tools/tools/netmap/ |
H A D | pkt-gen.c | 325 struct targ { struct 505 bcopy(targ->src_mac, eh->ether_shost, 6); in extract_mac_range() 506 p = index(targ->g->src_mac, '-'); in extract_mac_range() 508 targ->src_mac_range = atoi(p+1); in extract_mac_range() 510 bcopy(ether_aton(targ->g->dst_mac), targ->dst_mac, 6); in extract_mac_range() 511 bcopy(targ->dst_mac, eh->ether_dhost, 6); in extract_mac_range() 512 p = index(targ->g->dst_mac, '-'); in extract_mac_range() 514 targ->dst_mac_range = atoi(p+1); in extract_mac_range() 563 static struct targ *targs; 829 update_ip(struct pkt *pkt, struct targ *t) in update_ip() [all …]
|
/freebsd/sys/dev/mps/ |
H A D | mps_sas_lsi.c | 279 struct mpssas_target *targ; in mpssas_fw_work() local 321 targ = &sassc->targets[id]; in mpssas_fw_work() 322 targ->handle = 0x0; in mpssas_fw_work() 323 targ->encl_slot = 0x0; in mpssas_fw_work() 324 targ->encl_handle = 0x0; in mpssas_fw_work() 325 targ->exp_dev_handle = 0x0; in mpssas_fw_work() 326 targ->phy_num = 0x0; in mpssas_fw_work() 327 targ->linkrate = 0x0; in mpssas_fw_work() 328 mpssas_rescan_target(sc, targ); in mpssas_fw_work() 330 targ->tid); in mpssas_fw_work() [all …]
|
H A D | mps_sas.c | 253 mpssas_rescan_target(struct mps_softc *sc, struct mpssas_target *targ) in mpssas_rescan_target() argument 262 if (targ == NULL) in mpssas_rescan_target() 265 targetid = targ - sassc->targets; in mpssas_rescan_target() 339 struct mpssas_target *targ; in mpssas_remove_volume() local 346 targ = tm->cm_targ; in mpssas_remove_volume() 370 "clearing target %u handle 0x%04x\n", targ->tid, handle); in mpssas_remove_volume() 380 targ = tm->cm_targ; in mpssas_remove_volume() 381 targ->handle = 0x0; in mpssas_remove_volume() 382 targ->encl_handle = 0x0; in mpssas_remove_volume() 383 targ->encl_slot = 0x0; in mpssas_remove_volume() [all …]
|
/freebsd/contrib/bmake/ |
H A D | suff.c | 515 Suffix *targ = FindSuffixByName(str + src->nameLen); in ParseTransform() local 516 if (targ != NULL) { in ParseTransform() 518 *out_targ = targ; in ParseTransform() 550 Suffix *src, *targ; in Suff_IsTransform() local 552 return ParseTransform(str, &src, &targ); in Suff_IsTransform() 983 CandidateList_Add(CandidateList *list, char *srcName, Candidate *targ, in CandidateList_Add() argument 986 Candidate *cand = Candidate_New(srcName, targ->prefix, suff, targ, in CandidateList_Add() 988 targ->numChildren++; in CandidateList_Add() 992 Lst_Append(&targ->childrenList, cand); in CandidateList_Add() 994 debug_tag, targ, targ->file, cand, cand->file, list); in CandidateList_Add() [all …]
|
/freebsd/usr.sbin/ctld/ |
H A D | discovery.c | 102 discovery_add_target(struct keys *response_keys, const struct target *targ) in discovery_add_target() argument 111 keys_add(response_keys, "TargetName", targ->t_name); in discovery_add_target() 112 TAILQ_FOREACH(port, &targ->t_ports, p_ts) { in discovery_add_target() 154 const struct target *targ; in discovery_target_filtered_out() local 158 targ = port->p_target; in discovery_target_filtered_out() 161 ag = targ->t_auth_group; in discovery_target_filtered_out() 169 "allowed for target \"%s\"; skipping", targ->t_name); in discovery_target_filtered_out() 176 "allowed for target \"%s\"; skipping", targ->t_name); in discovery_target_filtered_out() 187 "\"%s\" requires CHAP; skipping", targ->t_name); in discovery_target_filtered_out() 195 "\"%s\"; skipping", conn->conn_user, targ->t_name); in discovery_target_filtered_out() [all …]
|
H A D | ctld.c | 116 struct target *targ, *tmp; in conf_delete() local 125 TAILQ_FOREACH_SAFE(targ, &conf->conf_targets, t_next, tmp) in conf_delete() 126 target_delete(targ); in conf_delete() 1384 struct target *targ; in target_new() local 1387 targ = target_find(conf, name); in target_new() 1388 if (targ != NULL) { in target_new() 1396 targ = calloc(1, sizeof(*targ)); in target_new() 1397 if (targ == NULL) in target_new() 1399 targ->t_name = checked_strdup(name); in target_new() 1406 targ->t_name[i] = tolower(targ->t_name[i]); in target_new() [all …]
|
H A D | kernel.c | 420 struct target *targ; in conf_new_from_kernel() local 582 targ = target_find(conf, port->cfiscsi_target); in conf_new_from_kernel() 583 if (targ == NULL) { in conf_new_from_kernel() 588 targ = target_new(conf, port->cfiscsi_target); in conf_new_from_kernel() 589 if (targ == NULL) { in conf_new_from_kernel() 610 cp = port_new(conf, targ, pg); in conf_new_from_kernel() 1046 struct target *targ = port->p_target; in kernel_port_add() local 1060 targ->t_name); in kernel_port_add() 1066 if (targ->t_alias) { in kernel_port_add() 1068 "cfiscsi_target_alias", targ->t_alias); in kernel_port_add() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/ |
H A D | redacted_origin.ksh | 46 typeset targ=$POOL2/targfs@snap 55 log_must eval "zfs receive $targ <$stream" 72 log_must eval "zfs receive -o origin=$targ $POOL2/tdBCD <$stream" 75 log_must eval "zfs receive -o origin=$targ $POOL2/tdBC <$stream" 78 log_mustnot eval "zfs receive -o origin=$targ $POOL2/tdE <$stream" 82 log_must eval "zfs receive -o origin=$targ $POOL2/tbBC <$stream" 85 log_mustnot eval "zfs receive -o origin=$targ $POOL2/tbE <$stream"
|
/freebsd/sys/dev/mpi3mr/ |
H A D | mpi3mr_cam.c | 551 tgtdev = cmd->targ; in mpi3mr_issue_tm() 771 target = cmd->targ; in mpi3mr_target_reset() 887 targ_dev = cmd->targ; in mpi3mr_scsiio_timeout() 951 struct mpi3mr_target *targ; in mpi3mr_action_scsiio() local 980 targ = mpi3mr_find_target_by_per_id(cam_sc, csio->ccb_h.target_id); in mpi3mr_action_scsiio() 981 if (targ == NULL) { in mpi3mr_action_scsiio() 989 if (targ && targ->is_hidden) { in mpi3mr_action_scsiio() 997 if (targ->dev_removed == 1) { in mpi3mr_action_scsiio() 1004 if (targ->dev_handle == 0x0) { in mpi3mr_action_scsiio() 1012 if (mpi3mr_atomic_read(&targ->block_io) || in mpi3mr_action_scsiio() [all …]
|
/freebsd/crypto/heimdal/appl/rcp/ |
H A D | rcp.c | 91 char *targ; in main() local 140 if ((targ = colon(argv[argc - 1]))) /* Dest is remote host. */ in main() 141 toremote(targ, argc, argv); in main() 151 toremote(char *targ, int argc, char **argv) in toremote() argument 156 *targ++ = 0; in toremote() 157 if (*targ == 0) in toremote() 158 targ = "."; in toremote() 195 thost, targ); in toremote() 203 thost, targ); in toremote() 211 if (asprintf(&bp, "%s -t %s", cmd, targ) == -1) in toremote() [all …]
|
/freebsd/usr.sbin/mlxcontrol/ |
H A D | config.c | 44 static void print_phys_drive(struct conf_config *conf, int chn, int targ); 146 print_phys_drive(struct conf_config *conf, int chn, int targ) in print_phys_drive() argument 148 struct mlx_phys_drv *drv = &conf->cc_cfg.cc_phys_drives[chn * 16 + targ]; in print_phys_drive() 154 mlx_print_phys_drv(drv, chn, targ, "# ", 1); in print_phys_drive()
|
H A D | util.c | 110 mlx_print_phys_drv(struct mlx_phys_drv *drv, int chn, int targ, char *prefix, int verbose) in mlx_print_phys_drv() argument 129 printf("%s%s%02d%02d ", prefix, type, chn, targ); in mlx_print_phys_drv() 151 if (!mlx_scsi_inquiry(0, chn, targ, &vendor, &device, &revision)) { in mlx_print_phys_drv()
|
/freebsd/contrib/netbsd-tests/fs/puffs/h_dtfs/ |
H A D | dtfs_vnops.c | 186 dtfs_node_remove(struct puffs_usermount *pu, void *opc, void *targ, in dtfs_node_remove() argument 190 struct puffs_node *pn = targ; in dtfs_node_remove() 195 dtfs_nukenode(targ, pn_parent, pcn->pcn_name, pcn->pcn_namelen); in dtfs_node_remove() 220 dtfs_node_rmdir(struct puffs_usermount *pu, void *opc, void *targ, in dtfs_node_rmdir() argument 224 struct dtfs_file *df = DTFS_CTOF(targ); in dtfs_node_rmdir() 229 dtfs_nukenode(targ, pn_parent, pcn->pcn_name, pcn->pcn_namelen); in dtfs_node_rmdir() 314 const struct puffs_cn *pcn_src, void *targ_dir, void *targ, in dtfs_node_rename() argument 322 struct puffs_node *pn_tfile = targ; in dtfs_node_rename() 372 dtfs_node_link(struct puffs_usermount *pu, void *opc, void *targ, in dtfs_node_link() argument 379 dfd->dfd_node = targ; in dtfs_node_link() [all …]
|
/freebsd/crypto/openssh/ |
H A D | scp.c | 1039 char *bp, *tuser, *thost, *targ; in toremote() local 1051 r = parse_scp_uri(argv[argc - 1], &tuser, &thost, &tport, &targ); in toremote() 1059 &targ) == -1) { in toremote() 1114 throughlocal_sftp(conn2, conn, src, targ); in toremote() 1133 *targ == '-' ? "-- " : "", targ); in toremote() 1182 thost, targ); in toremote() 1204 source_sftp(1, argv[i], targ, conn); in toremote() 1210 *targ == '-' ? "-- " : "", targ); in toremote() 1226 free(targ); in toremote() 1336 source_sftp(int argc, char *src, char *targ, struct sftp_conn *conn) in source_sftp() argument [all …]
|
/freebsd/usr.bin/tftp/ |
H A D | main.c | 433 char *cp, *targ, *path; in put() local 449 targ = argv[argc - 1]; in put() 459 targ = strrchr(lcp, ':'); in put() 460 *targ++ = 0; in put() 472 cp = argc == 2 ? tail(targ) : argv[1]; in put() 488 cp, hostname, targ, mode); in put() 489 if (xmitfile(peer, port, fd, targ, mode)) in put() 497 if (asprintf(&path, "%s/%s", targ, tail(argv[n])) < 0) in put()
|
/freebsd/sys/x86/x86/ |
H A D | x86_mem.c | 552 struct mem_range_desc *targ; in x86_mrset() local 581 if ((targ = mem_range_match(sc, mrd)) == NULL) in x86_mrset() 583 if (targ->mr_flags & MDF_FIXACTIVE) in x86_mrset() 585 if (targ->mr_flags & MDF_BUSY) in x86_mrset() 587 targ->mr_flags &= ~MDF_ACTIVE; in x86_mrset() 588 targ->mr_owner[0] = 0; in x86_mrset()
|
/freebsd/sys/dev/ciss/ |
H A D | cissvar.h | 378 padstr(char *targ, const char *src, int len) in padstr() argument 382 *targ++ = *src++; in padstr() 384 *targ++ = ' '; in padstr()
|
/freebsd/contrib/flex/src/ |
H A D | dfa.c | 377 int targptr, totaltrans, i, comstate, comfreq, targ; in ntod() local 659 targ = state[duplist[sym]]; in ntod() 660 state[sym] = targ; in ntod() 665 targ); in ntod() 672 while (targstate[++i] != targ) ; in ntod()
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_node.h | 186 if (node->targ) retval |= (1U << 0); in ocs_node_get_enable() 199 extern ocs_node_t *ocs_node_alloc(ocs_sport_t *sport, uint32_t port_id, uint8_t init, uint8_t targ);
|
H A D | ocs_device.c | 122 if (node->init && !node->targ) { in __ocs_d_initiate_shutdown() 135 } else if (node->targ && !node->init) { in __ocs_d_initiate_shutdown() 148 } else if (node->init && node->targ) { in __ocs_d_initiate_shutdown() 199 if (!node->init && !node->targ){ in __ocs_d_initiate_shutdown() 497 node->targ = (ocs_be16toh(prli->service_params) & FC_PRLI_TARGET_FUNCTION) != 0; in ocs_process_prli_payload() 1622 if (node->targ) { in __ocs_d_device_ready() 1767 labels[(node->targ << 1) | (node->init)], node->wwpn, node->wwnn); in __ocs_d_device_gone()
|
H A D | ocs_node.c | 369 ocs_node_alloc(ocs_sport_t *sport, uint32_t port_id, uint8_t init, uint8_t targ) in ocs_node_alloc() argument 410 node->targ = targ; in ocs_node_alloc() 819 !pend_frames_empty, node->sport->enable_ini, node->targ); in __ocs_node_shutdown() 821 if((!pend_frames_empty) || (node->sport->enable_ini && node->targ)) { in __ocs_node_shutdown() 823 if (node->sport->enable_ini && node->targ) { in __ocs_node_shutdown() 1535 ocs_ddump_value(textbuf, "targ", "%d", node->targ); in ocs_ddump_node() 1779 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "targ", node->targ); in ocs_mgmt_node_get() 1854 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "targ", node->targ); in ocs_mgmt_node_get_all()
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | setchgpw2.asn1 | 167 targ-name[3] PrincipalName OPTIONAL, 168 targ-realm[4] Realm OPTIONAL,
|