| /NextBSD/usr.bin/iscsictl/ |
| HD | iscsictl.c | 68 struct target *targ; in target_find() local 70 TAILQ_FOREACH(targ, &conf->conf_targets, t_next) { in target_find() 71 if (targ->t_nickname != NULL && in target_find() 72 strcasecmp(targ->t_nickname, nickname) == 0) in target_find() 73 return (targ); in target_find() 82 struct target *targ; in target_new() local 84 targ = calloc(1, sizeof(*targ)); in target_new() 85 if (targ == NULL) in target_new() 87 targ->t_conf = conf; in target_new() 88 TAILQ_INSERT_TAIL(&conf->conf_targets, targ, t_next); in target_new() [all …]
|
| /NextBSD/tools/tools/netmap/ |
| HD | pkt-gen.c | 216 struct targ { struct 305 bcopy(targ->src_mac, eh->ether_shost, 6); in extract_mac_range() 306 p = index(targ->g->src_mac, '-'); in extract_mac_range() 308 targ->src_mac_range = atoi(p+1); in extract_mac_range() 310 bcopy(ether_aton(targ->g->dst_mac), targ->dst_mac, 6); in extract_mac_range() 311 bcopy(targ->dst_mac, eh->ether_dhost, 6); in extract_mac_range() 312 p = index(targ->g->dst_mac, '-'); in extract_mac_range() 314 targ->dst_mac_range = atoi(p+1); in extract_mac_range() 320 static struct targ *targs; 621 initialize_packet(struct targ *targ) in initialize_packet() argument [all …]
|
| /NextBSD/sys/dev/mpr/ |
| HD | mpr_sas_lsi.c | 280 struct mprsas_target *targ; in mprsas_fw_work() local 398 targ = &sassc->targets[id]; in mprsas_fw_work() 399 targ->handle = 0x0; in mprsas_fw_work() 400 targ->encl_slot = 0x0; in mprsas_fw_work() 401 targ->encl_handle = 0x0; in mprsas_fw_work() 402 targ->encl_level_valid = 0x0; in mprsas_fw_work() 403 targ->encl_level = 0x0; in mprsas_fw_work() 404 targ->connector_name[0] = ' '; in mprsas_fw_work() 405 targ->connector_name[1] = ' '; in mprsas_fw_work() 406 targ->connector_name[2] = ' '; in mprsas_fw_work() [all …]
|
| HD | mpr_sas.c | 273 mprsas_rescan_target(struct mpr_softc *sc, struct mprsas_target *targ) in mprsas_rescan_target() argument 282 if (targ == NULL) in mprsas_rescan_target() 285 targetid = targ - sassc->targets; in mprsas_rescan_target() 361 struct mprsas_target *targ; in mprsas_remove_volume() local 368 targ = tm->cm_targ; in mprsas_remove_volume() 391 targ->tid, handle); in mprsas_remove_volume() 400 targ = tm->cm_targ; in mprsas_remove_volume() 401 targ->handle = 0x0; in mprsas_remove_volume() 402 targ->encl_handle = 0x0; in mprsas_remove_volume() 403 targ->encl_level_valid = 0x0; in mprsas_remove_volume() [all …]
|
| /NextBSD/sys/dev/mps/ |
| HD | mps_sas_lsi.c | 277 struct mpssas_target *targ; in mpssas_fw_work() local 318 targ = &sassc->targets[id]; in mpssas_fw_work() 319 targ->handle = 0x0; in mpssas_fw_work() 320 targ->encl_slot = 0x0; in mpssas_fw_work() 321 targ->encl_handle = 0x0; in mpssas_fw_work() 322 targ->exp_dev_handle = 0x0; in mpssas_fw_work() 323 targ->phy_num = 0x0; in mpssas_fw_work() 324 targ->linkrate = 0x0; in mpssas_fw_work() 325 mpssas_rescan_target(sc, targ); in mpssas_fw_work() 327 targ->tid); in mpssas_fw_work() [all …]
|
| HD | mps_sas.c | 267 mpssas_rescan_target(struct mps_softc *sc, struct mpssas_target *targ) in mpssas_rescan_target() argument 276 if (targ == NULL) in mpssas_rescan_target() 279 targetid = targ - sassc->targets; in mpssas_rescan_target() 357 struct mpssas_target *targ; in mpssas_remove_volume() local 364 targ = tm->cm_targ; in mpssas_remove_volume() 389 "clearing target %u handle 0x%04x\n", targ->tid, handle); in mpssas_remove_volume() 398 targ = tm->cm_targ; in mpssas_remove_volume() 399 targ->handle = 0x0; in mpssas_remove_volume() 400 targ->encl_handle = 0x0; in mpssas_remove_volume() 401 targ->encl_slot = 0x0; in mpssas_remove_volume() [all …]
|
| /NextBSD/contrib/bmake/ |
| HD | suff.c | 674 Suff *src, *targ; in Suff_IsTransform() local 676 return (SuffParseTransform(str, &src, &targ)); in Suff_IsTransform() 1195 Src *targ; /* Target structure */ in SuffAddSrc() local 1197 targ = ls->s; in SuffAddSrc() 1206 s2->file = bmake_strdup(targ->pref); in SuffAddSrc() 1207 s2->pref = targ->pref; in SuffAddSrc() 1208 s2->parent = targ; in SuffAddSrc() 1213 targ->children += 1; in SuffAddSrc() 1217 Lst_AtEnd(targ->cp, s2); in SuffAddSrc() 1218 fprintf(debug_file, "1 add %x %x to %x:", targ, s2, ls->l); in SuffAddSrc() [all …]
|
| /NextBSD/bin/rcp/ |
| HD | rcp.c | 108 char *targ; in main() local 198 if ((targ = colon(argv[argc - 1]))) /* Dest is remote host. */ in main() 199 toremote(targ, argc, argv); in main() 209 toremote(char *targ, int argc, char *argv[]) in toremote() argument 214 *targ++ = 0; in toremote() 215 if (*targ == 0) in toremote() 216 targ = period; in toremote() 251 thost, targ) == -1) in toremote() 258 thost, targ) == -1) in toremote() 264 if (asprintf(&bp, "%s -t %s", cmd, targ) in toremote() [all …]
|
| /NextBSD/usr.sbin/ctld/ |
| HD | discovery.c | 166 discovery_add_target(struct keys *response_keys, const struct target *targ) in discovery_add_target() argument 175 keys_add(response_keys, "TargetName", targ->t_name); in discovery_add_target() 176 TAILQ_FOREACH(port, &targ->t_ports, p_ts) { in discovery_add_target() 218 const struct target *targ; in discovery_target_filtered_out() local 222 targ = port->p_target; in discovery_target_filtered_out() 225 ag = targ->t_auth_group; in discovery_target_filtered_out() 233 "allowed for target \"%s\"; skipping", targ->t_name); in discovery_target_filtered_out() 240 "allowed for target \"%s\"; skipping", targ->t_name); in discovery_target_filtered_out() 251 "\"%s\" requires CHAP; skipping", targ->t_name); in discovery_target_filtered_out() 259 "\"%s\"; skipping", conn->conn_user, targ->t_name); in discovery_target_filtered_out() [all …]
|
| HD | ctld.c | 112 struct target *targ, *tmp; in conf_delete() local 122 TAILQ_FOREACH_SAFE(targ, &conf->conf_targets, t_next, tmp) in conf_delete() 123 target_delete(targ); in conf_delete() 1312 struct target *targ; in target_new() local 1315 targ = target_find(conf, name); in target_new() 1316 if (targ != NULL) { in target_new() 1324 targ = calloc(1, sizeof(*targ)); in target_new() 1325 if (targ == NULL) in target_new() 1327 targ->t_name = checked_strdup(name); in target_new() 1334 targ->t_name[i] = tolower(targ->t_name[i]); in target_new() [all …]
|
| HD | kernel.c | 394 struct target *targ; in conf_new_from_kernel() local 556 targ = target_find(conf, port->cfiscsi_target); in conf_new_from_kernel() 557 if (targ == NULL) { in conf_new_from_kernel() 562 targ = target_new(conf, port->cfiscsi_target); in conf_new_from_kernel() 563 if (targ == NULL) { in conf_new_from_kernel() 584 cp = port_new(conf, targ, pg); in conf_new_from_kernel() 956 struct target *targ = port->p_target; in kernel_port_add() local 978 str_arg(&req.args[n++], "cfiscsi_target", targ->t_name); in kernel_port_add() 981 if (targ->t_alias) in kernel_port_add() 982 str_arg(&req.args[n++], "cfiscsi_target_alias", targ->t_alias); in kernel_port_add() [all …]
|
| /NextBSD/crypto/heimdal/appl/rcp/ |
| HD | 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 …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/ARCMigrate/ |
| HD | FileRemapper.cpp | 214 Target &targ = FromToMappings[file]; in remap() local 215 resetTarget(targ); in remap() 216 targ = memBuf.release(); in remap() 221 Target &targ = FromToMappings[file]; in remap() local 222 resetTarget(targ); in remap() 223 targ = newfile; in remap() 241 void FileRemapper::resetTarget(Target &targ) { in resetTarget() argument 242 if (!targ) in resetTarget() 245 if (llvm::MemoryBuffer *oldmem = targ.dyn_cast<llvm::MemoryBuffer *>()) { in resetTarget() 248 const FileEntry *toFE = targ.get<const FileEntry *>(); in resetTarget()
|
| /NextBSD/crypto/openssh/ |
| HD | scp.c | 372 char *targ, **newargv; in main() local 515 if ((targ = colon(argv[argc - 1]))) /* Dest is remote host. */ in main() 516 toremote(targ, argc, argv); in main() 572 toremote(char *targ, int argc, char **argv) in toremote() argument 582 *targ++ = 0; in toremote() 583 if (*targ == 0) in toremote() 584 targ = "."; in toremote() 629 *targ == '-' ? "-- " : "", targ); in toremote() 670 thost, targ); in toremote() 676 *targ == '-' ? "-- " : "", targ); in toremote() [all …]
|
| /NextBSD/usr.sbin/mlxcontrol/ |
| HD | 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()
|
| HD | 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()
|
| /NextBSD/contrib/netbsd-tests/fs/puffs/h_dtfs/ |
| HD | 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 …]
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | bfd-target.c | 57 build_target_sections_from_bfd (struct target_ops *targ, struct bfd *abfd) in build_target_sections_from_bfd() argument 64 target_resize_to_sections (targ, count); in build_target_sections_from_bfd() 65 start = targ->to_sections; in build_target_sections_from_bfd() 66 cl.end = targ->to_sections; in build_target_sections_from_bfd()
|
| HD | solib.h | 37 #define SOLIB_ADD(filename, from_tty, targ, readsyms) \ argument 38 solib_add (filename, from_tty, targ, readsyms)
|
| HD | coff-solib.h | 35 #define SOLIB_ADD(filename, from_tty, targ, readsyms) \ argument 36 coff_solib_add (filename, from_tty, targ, readsyms)
|
| /NextBSD/contrib/gdb/gdb/cli/ |
| HD | cli-logging.c | 36 struct ui_file *targ; member 54 gdb_stdtarg = saved_output.targ; in pop_output_files() 58 saved_output.targ = NULL; in pop_output_files() 98 saved_output.targ = gdb_stdtarg; in handle_redirections()
|
| /NextBSD/contrib/binutils/binutils/ |
| HD | configure.in | 191 for targ in `echo $enable_targets | sed 's/,/ /g'` 193 result=`$ac_config_sub $targ 2>/dev/null` 198 canon_targets="$canon_targets $targ" 220 for targ in $target $canon_targets 222 if test "x$targ" = "xall"; then 229 case $targ in 249 case $targ in 252 case $targ in 407 targ=$target 423 targ=$result [all …]
|
| HD | configure.tgt | 6 # This file switches on the shell variable ${targ}, and sets the 11 case "${targ}" in
|
| /NextBSD/contrib/binutils/bfd/ |
| HD | pe-mips.c | 626 bfd_vma val, tmp, targ, src, low; in coff_pe_mips_relocate_section() local 744 targ = val + (tmp & 0x03ffffff) * 4; in coff_pe_mips_relocate_section() 745 if ((src & 0xf0000000) != (targ & 0xf0000000)) in coff_pe_mips_relocate_section() 752 tmp |= (targ / 4) & 0x3ffffff; in coff_pe_mips_relocate_section() 762 targ = val + rel[1].r_offset + ((tmp & 0xffff) << 16); in coff_pe_mips_relocate_section() 770 targ = val + low + ((tmp & 0xffff) << 16); in coff_pe_mips_relocate_section() 779 tmp |= (targ >> 16) & 0xffff; in coff_pe_mips_relocate_section() 785 targ = val + (tmp & 0xffff); in coff_pe_mips_relocate_section() 788 tmp |= targ & 0xffff; in coff_pe_mips_relocate_section()
|
| /NextBSD/usr.bin/tftp/ |
| HD | main.c | 422 char *cp, *targ; in put() local 438 targ = argv[argc - 1]; in put() 448 targ = strrchr(lcp, ':'); in put() 449 *targ++ = 0; in put() 461 cp = argc == 2 ? tail(targ) : argv[1]; in put() 473 cp, hostname, targ, mode); in put() 474 xmitfile(peer, port, fd, targ, mode); in put() 479 cp = strchr(targ, '\0'); in put() 494 argv[n], hostname, targ, mode); in put() 495 xmitfile(peer, port, fd, targ, mode); in put()
|