Home
last modified time | relevance | path

Searched refs:unit_address (Results 1 – 19 of 19) sorted by relevance

/titanic_50/usr/src/uts/sparc/os/
H A Dbootdev.c102 char *unit_address, *nodename; in i_devi_to_promname() local
144 unit_address = ddi_get_name_addr(idip); in i_devi_to_promname()
160 if (unit_address && (*unit_address)) { in i_devi_to_promname()
162 (void) strcat(prom_path, unit_address); in i_devi_to_promname()
215 char *unit_address, *minorname, *nodename; in i_devname_to_promname() local
324 unit_address = MDI_PI(pip)->pi_addr; in i_devname_to_promname()
337 if (unit_address && (*unit_address)) { in i_devname_to_promname()
339 (void) strcat(prom_path, unit_address); in i_devname_to_promname()
/titanic_50/usr/src/uts/sun4/io/efcode/
H A Dfc_ops.c102 void *fcode, size_t fcode_size, char *unit_address, void *bus_args) in fc_ops_alloc_handle() argument
113 if (unit_address) { in fc_ops_alloc_handle()
114 up = kmem_zalloc(strlen(unit_address) + 1, KM_SLEEP); in fc_ops_alloc_handle()
115 (void) strcpy(up, unit_address); in fc_ops_alloc_handle()
116 rp->unit_address = up; in fc_ops_alloc_handle()
138 if (rp->unit_address) in fc_ops_free_handle()
139 kmem_free(rp->unit_address, strlen(rp->unit_address) + 1); in fc_ops_free_handle()
475 char *unit_address = NULL; in fco_new_device() local
552 unit_address = kmem_zalloc(OBP_MAXPATHLEN, KM_SLEEP); in fco_new_device()
553 if (copyinstr(s, unit_address, OBP_MAXPATHLEN - 1, NULL)) { in fco_new_device()
[all …]
H A Dfcpci.c183 void *fcode, size_t fcode_size, char *unit_address, in pci_fc_ops_alloc_handle() argument
192 unit_address, NULL); in pci_fc_ops_alloc_handle()
197 if (unit_address) { in pci_fc_ops_alloc_handle()
200 buf = kmem_zalloc(strlen(unit_address) + 1, KM_SLEEP); in pci_fc_ops_alloc_handle()
201 (void) strcpy(buf, unit_address); in pci_fc_ops_alloc_handle()
202 rp->unit_address = buf; in pci_fc_ops_alloc_handle()
228 if (rp->unit_address) in pci_fc_ops_free_handle()
229 kmem_free(rp->unit_address, strlen(rp->unit_address) + 1); in pci_fc_ops_free_handle()
H A Dfcode.c527 (void) strncpy(fcp->unit_address, rp->unit_address, in fc_get_parameters()
528 sizeof (fcp->unit_address) - 1); in fc_get_parameters()
/titanic_50/usr/src/uts/sun4/sys/
H A Dfcode.h88 char unit_address[OBP_MAXPATHLEN]; member
457 char *unit_address; /* childs unit address */ member
494 void *fcode, size_t fcode_size, char *unit_address, void *bus_args);
498 void *fcode, size_t fcode_size, char *unit_address,
503 void *fcode, size_t fcode_size, char *unit_address,
/titanic_50/usr/src/uts/sun4u/starcat/io/
H A Dgptwo_pci.c184 char unit_address[64]; in gptwo_configure_pci() local
269 (void) sprintf(unit_address, "%x", id); in gptwo_configure_pci()
281 ap, new_child, unit_address); in gptwo_configure_pci()
288 unit_address, probe_string); in gptwo_configure_pci()
301 "%s\n", unit_address); in gptwo_configure_pci()
H A Dfcgp2.c140 void *fcode, size_t fcode_size, char *unit_address, in gp2_fc_ops_alloc_handle() argument
148 unit_address, NULL); in gp2_fc_ops_alloc_handle()
155 if (unit_address) { in gp2_fc_ops_alloc_handle()
158 buf = kmem_zalloc(strlen(unit_address) + 1, KM_SLEEP); in gp2_fc_ops_alloc_handle()
159 (void) strcpy(buf, unit_address); in gp2_fc_ops_alloc_handle()
160 rp->unit_address = buf; in gp2_fc_ops_alloc_handle()
181 if (rp->unit_address) in gp2_fc_ops_free_handle()
182 kmem_free(rp->unit_address, strlen(rp->unit_address) + 1); in gp2_fc_ops_free_handle()
/titanic_50/usr/src/lib/sun_sas/common/
H A Ddevtree_device_disco.c226 char *unit_address; in get_attached_devices_info() local
272 if ((unit_address = di_bus_addr(node)) != NULL) { in get_attached_devices_info()
273 if ((charptr = strchr(unit_address, ',')) != NULL) { in get_attached_devices_info()
276 for (charptr = unit_address; *charptr != '\0'; charptr++) { in get_attached_devices_info()
536 if ((charptr = strchr(unit_address, ',')) != NULL) { in get_attached_devices_info()
648 char *unit_address; in get_attached_paths_info() local
712 if ((unit_address = di_path_bus_addr(path)) != NULL) { in get_attached_paths_info()
713 if ((charptr = strchr(unit_address, ',')) != NULL) { in get_attached_paths_info()
716 for (charptr = unit_address; *charptr != '\0'; charptr++) { in get_attached_paths_info()
946 if ((charptr = strchr(unit_address, ',')) != NULL) { in get_attached_paths_info()
/titanic_50/usr/src/lib/libdevinfo/
H A Ddevfsmap.c120 char *unit_address; member
421 if (confent->unit_address) in free_confent()
422 free(confent->unit_address); in free_confent()
517 if (confent->unit_address) { in parse_conf_entry()
522 confent->unit_address = string; in parse_conf_entry()
775 if (confent->unit_address != NULL && in lookup_in_confent_list()
776 strcmp(confent->unit_address, unit_addr) == 0 && in lookup_in_confent_list()
2209 if (confent->unit_address) in log_confent_list()
2211 confent->unit_address); in log_confent_list()
/titanic_50/usr/src/lib/efcode/fcdriver/
H A Dfcdebug.c69 log_message(MSG_DEBUG, " unit: %s\n", cdp->fc.unit_address); in dump_private()
H A Dget_req.c56 cdp->fc.fcode_size, cdp->fc.unit_address, cdp->attach, in dot_request()
376 push_a_string(env, cdp->fc.unit_address); in process_request()
/titanic_50/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_scsa.c297 bcopy(ua, lun->unit_address, strnlen(ua, PMCS_MAX_UA_SIZE - 1)); in pmcs_scsa_tran_tgt_init()
417 char *unit_address; in pmcs_scsa_tran_tgt_free() local
433 unit_address = lun->unit_address; in pmcs_scsa_tran_tgt_free()
445 "%s: for @%s tgt 0x%p phy 0x%p", __func__, unit_address, in pmcs_scsa_tran_tgt_free()
447 ddi_soft_state_bystr_free(lun->target->lun_sstate, unit_address); in pmcs_scsa_tran_tgt_free()
1355 ddi_soft_state_bystr_free(iport->tgt_sstate, tgt->unit_address); in pmcs_smp_init()
3171 char unit_address[PMCS_MAX_UA_SIZE]; in pmcs_get_target() local
3212 "%s", __func__, tgt->unit_address); in pmcs_get_target()
3255 (void) scsi_wwn_to_wwnstr(wwn, ua_form, unit_address); in pmcs_get_target()
3257 if (ddi_soft_state_bystr_zalloc(iport->tgt_sstate, unit_address) != in pmcs_get_target()
[all …]
H A Dpmcs_subr.c7237 ddi_soft_state_bystr_free(iport->tgt_sstate, target->unit_address); in pmcs_destroy_target()
7969 char unit_address[PMCS_MAX_UA_SIZE]; in pmcs_phy_target_match() local
7978 (void) scsi_wwn_to_wwnstr(wwn, 1, unit_address); in pmcs_phy_target_match()
7980 if (memcmp((void *)unit_address, (void *)phyp->target->unit_address, in pmcs_phy_target_match()
7981 strnlen(phyp->target->unit_address, PMCS_MAX_UA_SIZE)) == 0) { in pmcs_phy_target_match()
/titanic_50/usr/src/uts/sun4u/io/
H A Dopl_cfg.c1147 void *fcode, size_t fcode_size, char *unit_address, in opl_fc_ops_alloc_handle() argument
1156 unit_address, NULL); in opl_fc_ops_alloc_handle()
1163 if (unit_address) { in opl_fc_ops_alloc_handle()
1165 (void) strcpy(buf, unit_address); in opl_fc_ops_alloc_handle()
1166 rp->unit_address = buf; in opl_fc_ops_alloc_handle()
1188 if (rp->unit_address) in opl_fc_ops_free_handle()
1189 kmem_free(rp->unit_address, UNIT_ADDR_SIZE); in opl_fc_ops_free_handle()
2375 char unit_address[UNIT_ADDR_SIZE]; in opl_probe_leaf() local
2450 (void) sprintf(unit_address, "%x", portid); in opl_probe_leaf()
2464 NULL, 0, unit_address, probe_string); in opl_probe_leaf()
/titanic_50/usr/src/lib/efcode/jupiter/
H A Djupiter.c244 if (cdp && cdp->fc.unit_address && in do_device_id()
245 ((buf = strdup(cdp->fc.unit_address)) != NULL)) { in do_device_id()
/titanic_50/usr/src/uts/common/sys/scsi/adapters/pmcs/
H A Dpmcs.h128 char unit_address[PMCS_MAX_UA_SIZE]; member
163 char unit_address[PMCS_MAX_UA_SIZE]; member
/titanic_50/usr/src/cmd/mdb/common/modules/pmcs/
H A Dpmcs.c375 char unit_address[34]; in pmcs_iport_walk_cb() local
383 if (mdb_readstr(unit_address, sizeof (unit_address), in pmcs_iport_walk_cb()
385 strncpy(unit_address, "Unset", sizeof (unit_address)); in pmcs_iport_walk_cb()
413 if (strlen(unit_address) < 3) { in pmcs_iport_walk_cb()
417 mdb_printf("%2s %16p %16s %8s %8d %16p\n", unit_address, addr, in pmcs_iport_walk_cb()
423 mdb_printf("%32s %16p %20s %8s %8d %16p\n", unit_address, addr, in pmcs_iport_walk_cb()
/titanic_50/usr/src/uts/sun4/io/
H A Dpcicfg.c4291 char unit_address[64]; in pcicfg_fcode_probe() local
4568 (void) sprintf(unit_address, "%x,%x", device, func); in pcicfg_fcode_probe()
4572 parent, new_child, unit_address); in pcicfg_fcode_probe()
4575 fcode_addr, fcode_size, unit_address, &po); in pcicfg_fcode_probe()
/titanic_50/usr/src/uts/common/os/
H A Ddevcfg.c3717 child_path_to_driver(dev_info_t *parent, char *child_name, char *unit_address) in child_path_to_driver() argument
3734 if (unit_address && *unit_address) { in child_path_to_driver()
3736 (void) strcat(p, unit_address); in child_path_to_driver()