Home
last modified time | relevance | path

Searched refs:dkw_wname (Results 1 – 17 of 17) sorted by relevance

/netbsd/sys/dev/dkwedge/
H A Ddkwedge_gpt.c262 strlcpy(dkw.dkw_wname, ent_guid_str, sizeof(dkw.dkw_wname)); in dkwedge_discover_gpt()
264 c = dkw.dkw_wname; in dkwedge_discover_gpt()
265 r = sizeof(dkw.dkw_wname) - 1; in dkwedge_discover_gpt()
281 strcmp(dkw.dkw_wname, ent_guid_str) != 0) { in dkwedge_discover_gpt()
282 char orig[sizeof(dkw.dkw_wname)]; in dkwedge_discover_gpt()
283 strlcpy(orig, dkw.dkw_wname, sizeof(orig)); in dkwedge_discover_gpt()
284 strlcpy(dkw.dkw_wname, ent_guid_str, sizeof(dkw.dkw_wname)); in dkwedge_discover_gpt()
294 dkw.dkw_wname); in dkwedge_discover_gpt()
H A Ddkwedge_bsdlabel.c253 snprintf((char *)&dkw.dkw_wname, sizeof(dkw.dkw_wname), in addwedges()
254 "%.*s/%c", (int)sizeof(dkw.dkw_wname)-3, in addwedges()
257 snprintf((char *)&dkw.dkw_wname, sizeof(dkw.dkw_wname), in addwedges()
265 a->pdk->dk_name, dkw.dkw_wname); in addwedges()
H A Ddkwedge_rdb.c245 strlcpy(dkw.dkw_wname, pbp->partname + 1, in dkwedge_discover_rdb()
246 sizeof(dkw.dkw_wname)); in dkwedge_discover_rdb()
262 pdk->dk_name, dkw.dkw_wname); in dkwedge_discover_rdb()
265 pdk->dk_name, error, dkw.dkw_wname); in dkwedge_discover_rdb()
H A Ddkwedge_mbr.c143 snprintf(dkw.dkw_wname, sizeof(dkw.dkw_wname), in getparts()
151 a->pdk->dk_name, dkw.dkw_wname); in getparts()
H A Ddkwedge_apple.c226 strlcpy(dkw.dkw_wname, ae->pmPartName, sizeof(dkw.dkw_wname)); in dkwedge_discover_apple()
231 pdk->dk_name, dkw.dkw_wname); in dkwedge_discover_apple()
H A Ddk.c452 if (strcmp(lsc->sc_wname, dkw->dkw_wname) != 0) in dkwedge_add()
480 memcpy(sc->sc_wname, dkw->dkw_wname, sizeof(sc->sc_wname)); in dkwedge_add()
893 memcpy(dkw.dkw_wname, sc->sc_wname, sizeof(dkw.dkw_wname)); in dkwedge_list()
894 dkw.dkw_wname[sizeof(dkw.dkw_wname) - 1] = '\0'; in dkwedge_list()
1776 memcpy(dkw->dkw_wname, sc->sc_wname, sizeof(dkw->dkw_wname)); in dkioctl()
1777 dkw->dkw_wname[sizeof(dkw->dkw_wname) - 1] = '\0'; in dkioctl()
/netbsd/sbin/dkctl/
H A Ddkctl.c557 if (strlcpy((char *)dkw.dkw_wname, argv[1], sizeof(dkw.dkw_wname)) >= in disk_addwedge()
558 sizeof(dkw.dkw_wname)) in disk_addwedge()
560 sizeof(dkw.dkw_wname) - 1); in disk_addwedge()
623 dkw.dkw_wname); /* XXX Unicode */ in disk_getwedgeinfo()
697 dkw[i].dkw_wname, /* XXX Unicode */ in disk_listwedges()
/netbsd/sys/dev/altmem/
H A Daltmem.c193 strlcpy(dkw->dkw_wname, "altmem", sizeof(dkw->dkw_wname)); in altmemioctl()
/netbsd/sbin/dkscan_bsdlabel/
H A Ddkscan_util.c83 dkw->dkw_wname, dkw->dkw_ptype, dkw->dkw_offset, dkw->dkw_size); in dkwedge_add()
/netbsd/usr.sbin/sysinst/
H A Dgpt.c1413 strlcpy((char*)&dkw.dkw_wname, p->gp_id, sizeof(dkw.dkw_wname)); in gpt_add_wedge()
1416 if (dkw.dkw_wname[0] == 0) { in gpt_add_wedge()
1418 strlcpy((char*)&dkw.dkw_wname, in gpt_add_wedge()
1419 p->gp_label, sizeof(dkw.dkw_wname)); in gpt_add_wedge()
1421 if (dkw.dkw_wname[0] == 0) { in gpt_add_wedge()
1422 snprintf((char*)dkw.dkw_wname, sizeof dkw.dkw_wname, in gpt_add_wedge()
H A Ddisks.c494 dkw.dkw_wname, dkw.dkw_devname, dkw.dkw_parent); in get_wedge_descr()
505 strcpy(name, (const char *)dkw.dkw_wname); in get_name_and_parent()
525 strcpy(swap_name, (const char*)dkw[i].dkw_wname); in find_swap_part_on()
H A Dmbr.c3004 snprintf((char*)dkw.dkw_wname, sizeof dkw.dkw_wname, in add_wedge()
/netbsd/sys/kern/
H A Dsubr_disk_open.c161 dkw->dkw_wname[0] = '\0'; in getdiskinfo()
/netbsd/lib/libutil/
H A Dgetfsspecname.c152 if (strcmp(vname, (char *)dkw.dkw_wname) == 0) { in getfsspecname()
/netbsd/sys/sys/
H A Ddisk.h159 uint8_t dkw_wname[128]; /* wedge name (Unicode, UTF-8) */ member
/netbsd/sys/dev/dm/
H A Ddevice-mapper.c496 strlcpy(dkw->dkw_wname, dmv->name, DM_NAME_LEN); in disk_ioctl_switch()
/netbsd/sys/miscfs/specfs/
H A Dspec_vnops.c588 strlcpy(mp->mnt_stat.f_mntfromlabel, dkw.dkw_wname, in spec_node_setmountedfs()