HelenOS sources

label              75 kernel/generic/include/ipc/ipc.h 	sysarg_t label;
label             202 kernel/generic/src/ipc/ipc.c 	phone->label = 0;
label             372 kernel/generic/src/ipc/ipc.c 	call->data.request_label = phone->label;
label             524 kernel/generic/src/ipc/ipc.c 		call->data.request_label = newphone->label;
label             674 kernel/generic/src/ipc/ipc.c 		phone->label = 0;
label              90 kernel/generic/src/ipc/ops/conctmeto.c 	pobj->phone->label = ipc_get_arg5(&answer->data);
label              51 kernel/generic/src/ipc/ops/concttome.c 		pobj->phone->label = ipc_get_arg5(&call->data);
label             203 kernel/generic/src/ipc/sysipc.c 			phone->label = 0;
label             370 kernel/generic/src/ipc/sysipc.c     sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t label)
label             399 kernel/generic/src/ipc/sysipc.c 	call->data.answer_label = label;
label             422 kernel/generic/src/ipc/sysipc.c     sysarg_t label)
label             448 kernel/generic/src/ipc/sysipc.c 	call->data.answer_label = label;
label             442 uspace/app/fdisk/fdisk.c 	char *label = NULL;
label             510 uspace/app/fdisk/fdisk.c 		rc = tinput_read_i(tinput, "New volume", &label);
label             550 uspace/app/fdisk/fdisk.c 	pspec.label = label;
label             559 uspace/app/fdisk/fdisk.c 	free(label);
label             564 uspace/app/fdisk/fdisk.c 	free(label);
label             587 uspace/app/fdisk/fdisk.c 	const char *label;
label             619 uspace/app/fdisk/fdisk.c 			if (str_size(pinfo.label) > 0)
label             620 uspace/app/fdisk/fdisk.c 				label = pinfo.label;
label             622 uspace/app/fdisk/fdisk.c 				label = "(No name)";
label             624 uspace/app/fdisk/fdisk.c 			int ret = asprintf(&sdesc, "%s %s, %s, %s", label,
label             919 uspace/app/fdisk/fdisk.c 	const char *label;
label            1012 uspace/app/fdisk/fdisk.c 		if (str_size(pinfo.label) > 0)
label            1013 uspace/app/fdisk/fdisk.c 			label = pinfo.label;
label            1015 uspace/app/fdisk/fdisk.c 			label = "(No name)";
label            1018 uspace/app/fdisk/fdisk.c 			printf("Entire disk: %s %s", label, scapa);
label            1020 uspace/app/fdisk/fdisk.c 			printf("Partition %d: %s %s", npart, label, scapa);
label             114 uspace/app/hello/hello.c 	rc = ui_label_create(ui_res, "Hello, world!", &hello.label);
label             121 uspace/app/hello/hello.c 	ui_label_set_rect(hello.label, &rect);
label             122 uspace/app/hello/hello.c 	ui_label_set_halign(hello.label, gfx_halign_center);
label             123 uspace/app/hello/hello.c 	ui_label_set_valign(hello.label, gfx_valign_center);
label             125 uspace/app/hello/hello.c 	rc = ui_fixed_add(hello.fixed, ui_label_ctl(hello.label));
label              49 uspace/app/hello/hello.h 	ui_label_t *label;
label              60 uspace/app/mkexfat/exfat.h 	uint16_t 	label[11];
label             104 uspace/app/mkexfat/mkexfat.c 	const char *label;
label             644 uspace/app/mkexfat/mkexfat.c 	if (cfg->label != NULL) {
label             646 uspace/app/mkexfat/mkexfat.c 		rc = str_to_utf16(wlabel, EXFAT_VOLLABEL_LEN + 1, cfg->label);
label             653 uspace/app/mkexfat/mkexfat.c 		memcpy(d->vollabel.label, wlabel, EXFAT_VOLLABEL_LEN * 2);
label             803 uspace/app/mkexfat/mkexfat.c 	cfg.label = NULL;
label             838 uspace/app/mkexfat/mkexfat.c 			cfg.label = optarg;
label              57 uspace/app/mkext4/mkext4.c 	const char *label = "";
label             144 uspace/app/mkext4/mkext4.c 			label = *argv;
label             182 uspace/app/mkext4/mkext4.c 	cfg.volume_name = label;
label              95 uspace/app/mkfat/fat.h 			uint8_t		label[11];
label             126 uspace/app/mkfat/fat.h 			uint8_t		label[11];
label              86 uspace/app/mkfat/mkfat.c 	const char *label;
label             112 uspace/app/mkfat/mkfat.c 	cfg.label = NULL;
label             173 uspace/app/mkfat/mkfat.c 			cfg.label = *argv;
label             363 uspace/app/mkfat/mkfat.c 	if (cfg->label != NULL && fat_label_encode(NULL, cfg->label) != EOK)
label             449 uspace/app/mkfat/mkfat.c 		if (idx == 0 && cfg->label != NULL) {
label             451 uspace/app/mkfat/mkfat.c 			(void) fat_label_encode(&de->name, cfg->label);
label             497 uspace/app/mkfat/mkfat.c 	if (cfg->label != NULL)
label             498 uspace/app/mkfat/mkfat.c 		bs_label = cfg->label;
label             539 uspace/app/mkfat/mkfat.c 		(void) fat_label_encode(&bs->fat32.label, bs_label);
label             547 uspace/app/mkfat/mkfat.c 		(void) fat_label_encode(&bs->label, bs_label);
label              77 uspace/app/shutdown-dlg/shutdown-dlg.c 	(void)ui_label_set_text(sddlg->progress->label,
label              92 uspace/app/shutdown-dlg/shutdown-dlg.c 	(void)ui_label_set_text(sddlg->progress->label, "Shutdown failed.");
label             197 uspace/app/shutdown-dlg/shutdown-dlg.c 	    &progress->label);
label             204 uspace/app/shutdown-dlg/shutdown-dlg.c 	ui_label_set_rect(progress->label, &rect);
label             205 uspace/app/shutdown-dlg/shutdown-dlg.c 	ui_label_set_halign(progress->label, gfx_halign_center);
label             206 uspace/app/shutdown-dlg/shutdown-dlg.c 	ui_label_set_valign(progress->label, gfx_valign_center);
label             208 uspace/app/shutdown-dlg/shutdown-dlg.c 	rc = ui_fixed_add(fixed, ui_label_ctl(progress->label));
label             211 uspace/app/shutdown-dlg/shutdown-dlg.c 		ui_label_destroy(progress->label);
label             212 uspace/app/shutdown-dlg/shutdown-dlg.c 		progress->label = NULL;
label              50 uspace/app/shutdown-dlg/shutdown-dlg.h 	ui_label_t *label;
label              51 uspace/app/sysinst/rdimg.c static errno_t rd_img_part_by_label(vol_t *vol, const char *label,
label              74 uspace/app/sysinst/rdimg.c 		if (str_cmp(vinfo.label, label) == 0) {
label             180 uspace/app/sysinst/sysinst.c 	pspec.label = INST_VOL_LABEL;
label              55 uspace/app/sysinst/types/volume.h 	char *label;
label              79 uspace/app/sysinst/volume.c 	volume->label = str_dup("");
label              82 uspace/app/sysinst/volume.c 	if (volume->label == NULL || volume->mountp == NULL) {
label             102 uspace/app/sysinst/volume.c 	free(volume->label);
label             333 uspace/app/sysinst/volume.c     const char *label, vol_volume_t **rvolume)
label             340 uspace/app/sysinst/volume.c 		if (str_cmp(volume->label, label) == 0 &&
label             341 uspace/app/sysinst/volume.c 		    str_size(label) > 0) {
label             354 uspace/app/sysinst/volume.c 	free(volume->label);
label             355 uspace/app/sysinst/volume.c 	volume->label = str_dup(label);
label             357 uspace/app/sysinst/volume.c 	if (volume->label == NULL) {
label             379 uspace/app/sysinst/volume.c errno_t vol_volume_lookup_ref(vol_volumes_t *volumes, const char *label,
label             385 uspace/app/sysinst/volume.c 	rc = vol_volume_lookup_ref_locked(volumes, label, rvolume);
label             568 uspace/app/sysinst/volume.c 	const char *label;
label             585 uspace/app/sysinst/volume.c 		label = sif_node_get_attr(nvolume, "label");
label             588 uspace/app/sysinst/volume.c 		if (label == NULL || mountp == NULL) {
label             593 uspace/app/sysinst/volume.c 		free(volume->label);
label             596 uspace/app/sysinst/volume.c 		volume->label = str_dup(label);
label             641 uspace/app/sysinst/volume.c 			rc = sif_node_set_attr(node, "label", volume->label);
label             667 uspace/app/sysinst/volume.c 	str_cpy(vinfo->label, sizeof(vinfo->label), volume->label);
label             998 uspace/app/uidemo/uidemo.c 	rc = ui_label_create(ui_res, "Text label", &demo.label);
label            1017 uspace/app/uidemo/uidemo.c 	ui_label_set_rect(demo.label, &rect);
label            1018 uspace/app/uidemo/uidemo.c 	ui_label_set_halign(demo.label, gfx_halign_center);
label            1020 uspace/app/uidemo/uidemo.c 	rc = ui_fixed_add(demo.bfixed, ui_label_ctl(demo.label));
label              73 uspace/app/uidemo/uidemo.h 	ui_label_t *label;
label             247 uspace/app/vol/vol.c 		    vinfo.label, svc_name, sfstype,
label             308 uspace/app/vol/vol.c 		table_printf(table, "%s\t" "%s\n", vinfo.label, vinfo.path);
label            1194 uspace/lib/c/generic/async/server.c 	sysarg_t label = 0;
label            1196 uspace/lib/c/generic/async/server.c 	    0, label);
label              70 uspace/lib/c/generic/ipc.c     sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, void *label)
label              74 uspace/lib/c/generic/ipc.c 	    (sysarg_t) label);
label              96 uspace/lib/c/generic/ipc.c     void *label)
label             109 uspace/lib/c/generic/ipc.c 	    (sysarg_t) label);
label              84 uspace/lib/c/include/ipc/ipc.h #define ipc_call_async_0(phandle, method, label) \
label              85 uspace/lib/c/include/ipc/ipc.h 	ipc_call_async_fast((phandle), (method), 0, 0, 0, (label))
label              86 uspace/lib/c/include/ipc/ipc.h #define ipc_call_async_1(phandle, method, arg1, label) \
label              87 uspace/lib/c/include/ipc/ipc.h 	ipc_call_async_fast((phandle), (method), (arg1), 0, 0, (label))
label              88 uspace/lib/c/include/ipc/ipc.h #define ipc_call_async_2(phandle, method, arg1, arg2, label) \
label              89 uspace/lib/c/include/ipc/ipc.h 	ipc_call_async_fast((phandle), (method), (arg1), (arg2), 0, (label))
label              90 uspace/lib/c/include/ipc/ipc.h #define ipc_call_async_3(phandle, method, arg1, arg2, arg3, label) \
label              92 uspace/lib/c/include/ipc/ipc.h 	    (label))
label              93 uspace/lib/c/include/ipc/ipc.h #define ipc_call_async_4(phandle, method, arg1, arg2, arg3, arg4, label) \
label              95 uspace/lib/c/include/ipc/ipc.h 	    (arg4), 0, (label))
label              97 uspace/lib/c/include/ipc/ipc.h     label) \
label              99 uspace/lib/c/include/ipc/ipc.h 	    (arg4), (arg5), (label))
label              68 uspace/lib/c/include/ipc/vfs.h 	char label[FS_LABEL_MAXLEN + 1];
label              81 uspace/lib/device/include/types/vol.h 	char label[VOL_LABEL_MAXLEN + 1];
label              93 uspace/lib/device/include/types/vol.h 	char label[VOL_LABEL_MAXLEN + 1];
label             391 uspace/lib/device/src/vol.c     const char *label, const char *mountp)
label             400 uspace/lib/device/src/vol.c 	retval = async_data_write_start(exch, label, str_size(label));
label             916 uspace/lib/ext4/src/ops.c 	memcpy(info->label, pinfo.vol_name, sizeof(pinfo.vol_name));
label             146 uspace/lib/fdisk/include/types/fdisk.h 	char *label;
label             158 uspace/lib/fdisk/include/types/fdisk.h 	const char *label;
label             174 uspace/lib/fdisk/include/types/fdisk.h 	char *label;
label             272 uspace/lib/fdisk/src/fdisk.c 		part->label = str_dup(vpinfo.label);
label             306 uspace/lib/fdisk/src/fdisk.c 		free(part->label);
label             322 uspace/lib/fdisk/src/fdisk.c 	free(part->label);
label             675 uspace/lib/fdisk/src/fdisk.c 	info->label = part->label;
label             750 uspace/lib/fdisk/src/fdisk.c 	const char *label;
label             754 uspace/lib/fdisk/src/fdisk.c 	label = pspec->label != NULL ? pspec->label : "";
label             777 uspace/lib/fdisk/src/fdisk.c 		    label, mountp);
label             792 uspace/lib/fdisk/src/fdisk.c 		part->label = str_dup(vpinfo.label);
label             794 uspace/lib/fdisk/src/fdisk.c 		if (part->label == NULL) {
label              95 uspace/lib/label/include/std/fat.h 			uint8_t		label[11];
label             126 uspace/lib/label/include/std/fat.h 			uint8_t		label[11];
label              46 uspace/lib/label/include/types/liblabel.h typedef struct label label_t;
label              94 uspace/lib/label/include/types/liblabel.h 	struct label *label;
label              70 uspace/lib/label/src/dummy.c 	label_t *label = NULL;
label              89 uspace/lib/label/src/dummy.c 	label = calloc(1, sizeof(label_t));
label              90 uspace/lib/label/src/dummy.c 	if (label == NULL)
label              93 uspace/lib/label/src/dummy.c 	list_initialize(&label->parts);
label              94 uspace/lib/label/src/dummy.c 	list_initialize(&label->pri_parts);
label              95 uspace/lib/label/src/dummy.c 	list_initialize(&label->log_parts);
label             100 uspace/lib/label/src/dummy.c 	label->ops = &dummy_label_ops;
label             101 uspace/lib/label/src/dummy.c 	label->ltype = lt_none;
label             102 uspace/lib/label/src/dummy.c 	label->bd = *bd;
label             103 uspace/lib/label/src/dummy.c 	label->ablock0 = ba_min;
label             104 uspace/lib/label/src/dummy.c 	label->anblocks = ba_max - ba_min + 1;
label             105 uspace/lib/label/src/dummy.c 	label->pri_entries = 0;
label             106 uspace/lib/label/src/dummy.c 	label->block_size = bsize;
label             117 uspace/lib/label/src/dummy.c 	part->label = label;
label             118 uspace/lib/label/src/dummy.c 	list_append(&part->lparts, &label->parts);
label             119 uspace/lib/label/src/dummy.c 	list_append(&part->lpri, &label->pri_parts);
label             121 uspace/lib/label/src/dummy.c 	*rlabel = label;
label             125 uspace/lib/label/src/dummy.c 	free(label);
label             134 uspace/lib/label/src/dummy.c static void dummy_close(label_t *label)
label             138 uspace/lib/label/src/dummy.c 	part = dummy_part_first(label);
label             143 uspace/lib/label/src/dummy.c 		part = dummy_part_first(label);
label             146 uspace/lib/label/src/dummy.c 	free(label);
label             149 uspace/lib/label/src/dummy.c static errno_t dummy_destroy(label_t *label)
label             154 uspace/lib/label/src/dummy.c static errno_t dummy_get_info(label_t *label, label_info_t *linfo)
label             159 uspace/lib/label/src/dummy.c 	linfo->ablock0 = label->ablock0;
label             160 uspace/lib/label/src/dummy.c 	linfo->anblocks = label->anblocks;
label             164 uspace/lib/label/src/dummy.c static label_part_t *dummy_part_first(label_t *label)
label             168 uspace/lib/label/src/dummy.c 	link = list_first(&label->parts);
label             179 uspace/lib/label/src/dummy.c 	link = list_next(&part->lparts, &part->label->parts);
label             194 uspace/lib/label/src/dummy.c static errno_t dummy_part_create(label_t *label, label_part_spec_t *pspec,
label             205 uspace/lib/label/src/dummy.c static errno_t dummy_suggest_ptype(label_t *label, label_pcnt_t pcnt,
label             249 uspace/lib/label/src/empty.c 	bd = &part->label->bd;
label             251 uspace/lib/label/src/empty.c 	block_size = part->label->block_size;
label              96 uspace/lib/label/src/gpt.c 	label_t *label = NULL;
label             168 uspace/lib/label/src/gpt.c 	label = calloc(1, sizeof(label_t));
label             169 uspace/lib/label/src/gpt.c 	if (label == NULL)
label             172 uspace/lib/label/src/gpt.c 	list_initialize(&label->parts);
label             173 uspace/lib/label/src/gpt.c 	list_initialize(&label->pri_parts);
label             174 uspace/lib/label/src/gpt.c 	list_initialize(&label->log_parts);
label             305 uspace/lib/label/src/gpt.c 		rc = gpt_pte_to_part(label, eptr, entry + 1);
label             319 uspace/lib/label/src/gpt.c 	label->ops = &gpt_label_ops;
label             320 uspace/lib/label/src/gpt.c 	label->ltype = lt_gpt;
label             321 uspace/lib/label/src/gpt.c 	label->bd = *bd;
label             322 uspace/lib/label/src/gpt.c 	label->ablock0 = ba_min;
label             323 uspace/lib/label/src/gpt.c 	label->anblocks = ba_max - ba_min + 1;
label             324 uspace/lib/label/src/gpt.c 	label->pri_entries = num_entries;
label             325 uspace/lib/label/src/gpt.c 	label->block_size = bsize;
label             327 uspace/lib/label/src/gpt.c 	label->lt.gpt.hdr_ba[0] = gpt_hdr_ba;
label             328 uspace/lib/label/src/gpt.c 	label->lt.gpt.hdr_ba[1] = h1ba;
label             329 uspace/lib/label/src/gpt.c 	label->lt.gpt.ptable_ba[0] = ptba[0];
label             330 uspace/lib/label/src/gpt.c 	label->lt.gpt.ptable_ba[1] = ptba[1];
label             331 uspace/lib/label/src/gpt.c 	label->lt.gpt.esize = esize;
label             332 uspace/lib/label/src/gpt.c 	label->lt.gpt.pt_blocks = pt_blocks;
label             333 uspace/lib/label/src/gpt.c 	label->lt.gpt.pt_crc = pt_crc;
label             334 uspace/lib/label/src/gpt.c 	label->lt.gpt.hdr_size = hdr_size;
label             336 uspace/lib/label/src/gpt.c 	*rlabel = label;
label             343 uspace/lib/label/src/gpt.c 	free(label);
label             349 uspace/lib/label/src/gpt.c 	label_t *label = NULL;
label             463 uspace/lib/label/src/gpt.c 	label = calloc(1, sizeof(label_t));
label             464 uspace/lib/label/src/gpt.c 	if (label == NULL)
label             467 uspace/lib/label/src/gpt.c 	list_initialize(&label->parts);
label             468 uspace/lib/label/src/gpt.c 	list_initialize(&label->pri_parts);
label             469 uspace/lib/label/src/gpt.c 	list_initialize(&label->log_parts);
label             471 uspace/lib/label/src/gpt.c 	label->ops = &gpt_label_ops;
label             472 uspace/lib/label/src/gpt.c 	label->ltype = lt_gpt;
label             473 uspace/lib/label/src/gpt.c 	label->bd = *bd;
label             474 uspace/lib/label/src/gpt.c 	label->ablock0 = ba_min;
label             475 uspace/lib/label/src/gpt.c 	label->anblocks = ba_max - ba_min + 1;
label             476 uspace/lib/label/src/gpt.c 	label->pri_entries = num_entries;
label             477 uspace/lib/label/src/gpt.c 	label->block_size = bsize;
label             479 uspace/lib/label/src/gpt.c 	label->lt.gpt.hdr_ba[0] = hdr_ba[0];
label             480 uspace/lib/label/src/gpt.c 	label->lt.gpt.hdr_ba[1] = hdr_ba[1];
label             481 uspace/lib/label/src/gpt.c 	label->lt.gpt.ptable_ba[0] = ptba[0];
label             482 uspace/lib/label/src/gpt.c 	label->lt.gpt.ptable_ba[1] = ptba[1];
label             483 uspace/lib/label/src/gpt.c 	label->lt.gpt.esize = esize;
label             484 uspace/lib/label/src/gpt.c 	label->lt.gpt.pt_blocks = pt_blocks;
label             485 uspace/lib/label/src/gpt.c 	label->lt.gpt.pt_crc = pt_crc;
label             486 uspace/lib/label/src/gpt.c 	label->lt.gpt.hdr_size = sizeof(gpt_header_t);
label             488 uspace/lib/label/src/gpt.c 	*rlabel = label;
label             493 uspace/lib/label/src/gpt.c 	free(label);
label             497 uspace/lib/label/src/gpt.c static void gpt_close(label_t *label)
label             501 uspace/lib/label/src/gpt.c 	part = gpt_part_first(label);
label             506 uspace/lib/label/src/gpt.c 		part = gpt_part_first(label);
label             509 uspace/lib/label/src/gpt.c 	free(label);
label             512 uspace/lib/label/src/gpt.c static errno_t gpt_destroy(label_t *label)
label             520 uspace/lib/label/src/gpt.c 	part = gpt_part_first(label);
label             527 uspace/lib/label/src/gpt.c 		gpt_hdr = calloc(1, label->block_size);
label             533 uspace/lib/label/src/gpt.c 		rc = label->bd.ops->write(label->bd.arg, label->lt.gpt.hdr_ba[i],
label             543 uspace/lib/label/src/gpt.c 		etable = calloc(1, label->lt.gpt.pt_blocks *
label             544 uspace/lib/label/src/gpt.c 		    label->block_size);
label             550 uspace/lib/label/src/gpt.c 		rc = label->bd.ops->write(label->bd.arg,
label             551 uspace/lib/label/src/gpt.c 		    label->lt.gpt.ptable_ba[i], label->lt.gpt.pt_blocks,
label             562 uspace/lib/label/src/gpt.c 	rc = gpt_pmbr_destroy(&label->bd, label->block_size);
label             566 uspace/lib/label/src/gpt.c 	free(label);
label             572 uspace/lib/label/src/gpt.c static bool gpt_can_create_pri(label_t *label)
label             574 uspace/lib/label/src/gpt.c 	return list_count(&label->parts) < (size_t)label->pri_entries;
label             577 uspace/lib/label/src/gpt.c static bool gpt_can_delete_part(label_t *label)
label             579 uspace/lib/label/src/gpt.c 	return list_count(&label->parts) > 0;
label             582 uspace/lib/label/src/gpt.c static bool gpt_can_modify_part(label_t *label)
label             584 uspace/lib/label/src/gpt.c 	return list_count(&label->parts) > 0;
label             587 uspace/lib/label/src/gpt.c static errno_t gpt_get_info(label_t *label, label_info_t *linfo)
label             592 uspace/lib/label/src/gpt.c 	if (gpt_can_create_pri(label))
label             594 uspace/lib/label/src/gpt.c 	if (gpt_can_delete_part(label))
label             596 uspace/lib/label/src/gpt.c 	if (gpt_can_modify_part(label))
label             598 uspace/lib/label/src/gpt.c 	linfo->ablock0 = label->ablock0;
label             599 uspace/lib/label/src/gpt.c 	linfo->anblocks = label->anblocks;
label             603 uspace/lib/label/src/gpt.c static label_part_t *gpt_part_first(label_t *label)
label             607 uspace/lib/label/src/gpt.c 	link = list_first(&label->parts);
label             618 uspace/lib/label/src/gpt.c 	link = list_next(&part->lparts, &part->label->parts);
label             633 uspace/lib/label/src/gpt.c static errno_t gpt_part_create(label_t *label, label_part_spec_t *pspec,
label             647 uspace/lib/label/src/gpt.c 	rc = gpt_check_free_idx(label, pspec->index);
label             654 uspace/lib/label/src/gpt.c 	rc = gpt_check_free_range(label, pspec->block0, pspec->nblocks);
label             674 uspace/lib/label/src/gpt.c 	part->label = label;
label             689 uspace/lib/label/src/gpt.c 	rc = gpt_pte_update(label, &pte, pspec->index - 1);
label             695 uspace/lib/label/src/gpt.c 	list_append(&part->lparts, &label->parts);
label             696 uspace/lib/label/src/gpt.c 	list_append(&part->lpri, &label->pri_parts);
label             714 uspace/lib/label/src/gpt.c 	rc = gpt_pte_update(part->label, &pte, part->index - 1);
label             724 uspace/lib/label/src/gpt.c static errno_t gpt_suggest_ptype(label_t *label, label_pcnt_t pcnt,
label             757 uspace/lib/label/src/gpt.c static errno_t gpt_check_free_idx(label_t *label, int index)
label             761 uspace/lib/label/src/gpt.c 	if (index < 1 || index > label->pri_entries)
label             764 uspace/lib/label/src/gpt.c 	part = gpt_part_first(label);
label             780 uspace/lib/label/src/gpt.c static errno_t gpt_check_free_range(label_t *label, uint64_t block0,
label             785 uspace/lib/label/src/gpt.c 	if (block0 < label->ablock0)
label             787 uspace/lib/label/src/gpt.c 	if (block0 + nblocks > label->ablock0 + label->anblocks)
label             790 uspace/lib/label/src/gpt.c 	part = gpt_part_first(label);
label             823 uspace/lib/label/src/gpt.c static errno_t gpt_pte_to_part(label_t *label, gpt_entry_t *pte, int index)
label             854 uspace/lib/label/src/gpt.c 	part->label = label;
label             855 uspace/lib/label/src/gpt.c 	list_append(&part->lparts, &label->parts);
label             856 uspace/lib/label/src/gpt.c 	list_append(&part->lpri, &label->pri_parts);
label             865 uspace/lib/label/src/gpt.c static errno_t gpt_pte_update(label_t *label, gpt_entry_t *pte, int index)
label             878 uspace/lib/label/src/gpt.c 	pos = index * label->lt.gpt.esize;
label             880 uspace/lib/label/src/gpt.c 	ptbytes = label->pri_entries * label->lt.gpt.esize;
label             882 uspace/lib/label/src/gpt.c 	buf = calloc(1, label->block_size * label->lt.gpt.pt_blocks);
label             888 uspace/lib/label/src/gpt.c 		ba = label->lt.gpt.ptable_ba[i];
label             889 uspace/lib/label/src/gpt.c 		nblocks = label->lt.gpt.pt_blocks;
label             891 uspace/lib/label/src/gpt.c 		rc = label->bd.ops->read(label->bd.arg, ba, nblocks, buf);
label             898 uspace/lib/label/src/gpt.c 		if (crc != label->lt.gpt.pt_crc) {
label             908 uspace/lib/label/src/gpt.c 		rc = label->bd.ops->write(label->bd.arg, ba, nblocks, buf);
label             915 uspace/lib/label/src/gpt.c 		rc = gpt_update_pt_crc(label, crc);
label             922 uspace/lib/label/src/gpt.c 	label->lt.gpt.pt_crc = crc;
label             930 uspace/lib/label/src/gpt.c static errno_t gpt_update_pt_crc(label_t *label, uint32_t crc)
label             936 uspace/lib/label/src/gpt.c 	gpt_hdr = calloc(1, label->block_size);
label             943 uspace/lib/label/src/gpt.c 		rc = label->bd.ops->read(label->bd.arg,
label             944 uspace/lib/label/src/gpt.c 		    label->lt.gpt.hdr_ba[i], 1, gpt_hdr);
label             951 uspace/lib/label/src/gpt.c 		gpt_hdr_compute_crc(gpt_hdr, label->lt.gpt.hdr_size);
label             953 uspace/lib/label/src/gpt.c 		rc = label->bd.ops->write(label->bd.arg,
label             954 uspace/lib/label/src/gpt.c 		    label->lt.gpt.hdr_ba[i], 1, gpt_hdr);
label              90 uspace/lib/label/src/label.c void label_close(label_t *label)
label              92 uspace/lib/label/src/label.c 	if (label == NULL)
label              95 uspace/lib/label/src/label.c 	label->ops->close(label);
label              98 uspace/lib/label/src/label.c errno_t label_destroy(label_t *label)
label             100 uspace/lib/label/src/label.c 	return label->ops->destroy(label);
label             103 uspace/lib/label/src/label.c errno_t label_get_info(label_t *label, label_info_t *linfo)
label             105 uspace/lib/label/src/label.c 	return label->ops->get_info(label, linfo);
label             108 uspace/lib/label/src/label.c label_part_t *label_part_first(label_t *label)
label             110 uspace/lib/label/src/label.c 	return label->ops->part_first(label);
label             115 uspace/lib/label/src/label.c 	return part->label->ops->part_next(part);
label             120 uspace/lib/label/src/label.c 	return part->label->ops->part_get_info(part, pinfo);
label             123 uspace/lib/label/src/label.c errno_t label_part_create(label_t *label, label_part_spec_t *pspec,
label             126 uspace/lib/label/src/label.c 	return label->ops->part_create(label, pspec, rpart);
label             131 uspace/lib/label/src/label.c 	return part->label->ops->part_destroy(part);
label             139 uspace/lib/label/src/label.c errno_t label_suggest_ptype(label_t *label, label_pcnt_t pcnt,
label             142 uspace/lib/label/src/label.c 	return label->ops->suggest_ptype(label, pcnt, ptype);
label              90 uspace/lib/label/src/mbr.c 	label_t *label = NULL;
label             136 uspace/lib/label/src/mbr.c 	label = calloc(1, sizeof(label_t));
label             137 uspace/lib/label/src/mbr.c 	if (label == NULL)
label             140 uspace/lib/label/src/mbr.c 	list_initialize(&label->parts);
label             141 uspace/lib/label/src/mbr.c 	list_initialize(&label->pri_parts);
label             142 uspace/lib/label/src/mbr.c 	list_initialize(&label->log_parts);
label             169 uspace/lib/label/src/mbr.c 	label->ext_part = NULL;
label             172 uspace/lib/label/src/mbr.c 		rc = mbr_pte_to_part(label, eptr, entry + 1);
label             180 uspace/lib/label/src/mbr.c 	label->ops = &mbr_label_ops;
label             181 uspace/lib/label/src/mbr.c 	label->ltype = lt_mbr;
label             182 uspace/lib/label/src/mbr.c 	label->bd = *bd;
label             183 uspace/lib/label/src/mbr.c 	label->block_size = bsize;
label             184 uspace/lib/label/src/mbr.c 	label->ablock0 = mbr_ablock0;
label             185 uspace/lib/label/src/mbr.c 	label->anblocks = nblocks - mbr_ablock0;
label             186 uspace/lib/label/src/mbr.c 	label->pri_entries = mbr_nprimary;
label             188 uspace/lib/label/src/mbr.c 	if (label->ext_part != NULL) {
label             190 uspace/lib/label/src/mbr.c 		rc = mbr_open_ext(label);
label             195 uspace/lib/label/src/mbr.c 	*rlabel = label;
label             199 uspace/lib/label/src/mbr.c 	mbr_close(label);
label             204 uspace/lib/label/src/mbr.c static errno_t mbr_open_ext(label_t *label)
label             219 uspace/lib/label/src/mbr.c 	ebr = calloc(1, label->block_size);
label             226 uspace/lib/label/src/mbr.c 	ep_b0 = label->ext_part->block0;
label             229 uspace/lib/label/src/mbr.c 	ebr_b0 = label->ext_part->block0;
label             237 uspace/lib/label/src/mbr.c 	ebr_nblocks_max = label->ext_part->nblocks;
label             241 uspace/lib/label/src/mbr.c 		rc = label->bd.ops->read(label->bd.arg, ebr_b0, 1, ebr);
label             263 uspace/lib/label/src/mbr.c 		rc = mbr_pte_to_log_part(label, ebr_b0, ethis);
label             288 uspace/lib/label/src/mbr.c 		if (ebr_b0 + ebr_nblocks_max > label->ablock0 + label->anblocks) {
label             304 uspace/lib/label/src/mbr.c 	label_t *label = NULL;
label             329 uspace/lib/label/src/mbr.c 	label = calloc(1, sizeof(label_t));
label             330 uspace/lib/label/src/mbr.c 	if (label == NULL) {
label             335 uspace/lib/label/src/mbr.c 	list_initialize(&label->parts);
label             336 uspace/lib/label/src/mbr.c 	list_initialize(&label->pri_parts);
label             337 uspace/lib/label/src/mbr.c 	list_initialize(&label->log_parts);
label             354 uspace/lib/label/src/mbr.c 	label->ops = &mbr_label_ops;
label             355 uspace/lib/label/src/mbr.c 	label->ltype = lt_mbr;
label             356 uspace/lib/label/src/mbr.c 	label->block_size = bsize;
label             357 uspace/lib/label/src/mbr.c 	label->bd = *bd;
label             358 uspace/lib/label/src/mbr.c 	label->ablock0 = mbr_ablock0;
label             359 uspace/lib/label/src/mbr.c 	label->anblocks = nblocks - mbr_ablock0;
label             360 uspace/lib/label/src/mbr.c 	label->pri_entries = mbr_nprimary;
label             361 uspace/lib/label/src/mbr.c 	label->ext_part = NULL;
label             363 uspace/lib/label/src/mbr.c 	*rlabel = label;
label             367 uspace/lib/label/src/mbr.c 	free(label);
label             371 uspace/lib/label/src/mbr.c static void mbr_close(label_t *label)
label             375 uspace/lib/label/src/mbr.c 	if (label == NULL)
label             378 uspace/lib/label/src/mbr.c 	part = mbr_part_first(label);
label             387 uspace/lib/label/src/mbr.c 		part = mbr_part_first(label);
label             390 uspace/lib/label/src/mbr.c 	free(label);
label             393 uspace/lib/label/src/mbr.c static errno_t mbr_destroy(label_t *label)
label             399 uspace/lib/label/src/mbr.c 	part = mbr_part_first(label);
label             405 uspace/lib/label/src/mbr.c 	mbr = calloc(1, label->block_size);
label             411 uspace/lib/label/src/mbr.c 	rc = label->bd.ops->write(label->bd.arg, mbr_ba, 1, mbr);
label             420 uspace/lib/label/src/mbr.c 	free(label);
label             427 uspace/lib/label/src/mbr.c static bool mbr_can_delete_part(label_t *label)
label             429 uspace/lib/label/src/mbr.c 	return list_count(&label->parts) > 0;
label             432 uspace/lib/label/src/mbr.c static bool mbr_can_modify_part(label_t *label)
label             434 uspace/lib/label/src/mbr.c 	return list_count(&label->parts) > 0;
label             437 uspace/lib/label/src/mbr.c static errno_t mbr_get_info(label_t *label, label_info_t *linfo)
label             446 uspace/lib/label/src/mbr.c 	if (list_count(&label->pri_parts) < mbr_nprimary)
label             449 uspace/lib/label/src/mbr.c 	if ((linfo->flags & lf_can_create_pri) != 0 && label->ext_part == NULL)
label             452 uspace/lib/label/src/mbr.c 	if (label->ext_part != NULL)
label             455 uspace/lib/label/src/mbr.c 	if (mbr_can_delete_part(label))
label             458 uspace/lib/label/src/mbr.c 	if (mbr_can_modify_part(label))
label             461 uspace/lib/label/src/mbr.c 	linfo->ablock0 = label->ablock0;
label             462 uspace/lib/label/src/mbr.c 	linfo->anblocks = label->anblocks;
label             467 uspace/lib/label/src/mbr.c static label_part_t *mbr_part_first(label_t *label)
label             471 uspace/lib/label/src/mbr.c 	link = list_first(&label->parts);
label             482 uspace/lib/label/src/mbr.c 	link = list_next(&part->lparts, &part->label->parts);
label             489 uspace/lib/label/src/mbr.c static label_part_t *mbr_log_part_first(label_t *label)
label             493 uspace/lib/label/src/mbr.c 	link = list_first(&label->log_parts);
label             504 uspace/lib/label/src/mbr.c 	link = list_next(&part->llog, &part->label->log_parts);
label             515 uspace/lib/label/src/mbr.c 	link = list_prev(&part->llog, &part->label->log_parts);
label             522 uspace/lib/label/src/mbr.c static label_part_t *mbr_pri_part_first(label_t *label)
label             526 uspace/lib/label/src/mbr.c 	link = list_first(&label->pri_parts);
label             537 uspace/lib/label/src/mbr.c 	link = list_next(&part->lpri, &part->label->pri_parts);
label             558 uspace/lib/label/src/mbr.c static errno_t mbr_part_create(label_t *label, label_part_spec_t *pspec,
label             575 uspace/lib/label/src/mbr.c 	part->label = label;
label             592 uspace/lib/label/src/mbr.c 		if (label->ext_part != NULL) {
label             610 uspace/lib/label/src/mbr.c 		rc = mbr_check_free_idx(label, pspec->index);
label             617 uspace/lib/label/src/mbr.c 		rc = mbr_check_free_pri_range(label, pspec->block0, pspec->nblocks);
label             634 uspace/lib/label/src/mbr.c 		rc = mbr_pte_update(label, &pte, pspec->index - 1);
label             641 uspace/lib/label/src/mbr.c 			label->ext_part = part;
label             644 uspace/lib/label/src/mbr.c 			rc = mbr_ebr_create(label, NULL);
label             646 uspace/lib/label/src/mbr.c 				label->ext_part = NULL;
label             652 uspace/lib/label/src/mbr.c 		list_append(&part->lparts, &label->parts);
label             653 uspace/lib/label/src/mbr.c 		list_append(&part->lpri, &label->pri_parts);
label             656 uspace/lib/label/src/mbr.c 		rc = mbr_check_free_log_range(label, pspec->hdr_blocks,
label             664 uspace/lib/label/src/mbr.c 		rc = mbr_log_part_insert(label, part);
label             669 uspace/lib/label/src/mbr.c 		rc = mbr_ebr_create(label, part);
label             676 uspace/lib/label/src/mbr.c 			rc = mbr_ebr_update_next(label, prev);
label             689 uspace/lib/label/src/mbr.c 				rc = mbr_ebr_create(label, next);
label             696 uspace/lib/label/src/mbr.c 		mbr_update_log_indices(label);
label             721 uspace/lib/label/src/mbr.c 		rc = mbr_pte_update(part->label, &pte, part->index - 1);
label             726 uspace/lib/label/src/mbr.c 		if (part == part->label->ext_part)
label             727 uspace/lib/label/src/mbr.c 			part->label->ext_part = NULL;
label             738 uspace/lib/label/src/mbr.c 			rc = mbr_ebr_update_next(part->label, prev);
label             746 uspace/lib/label/src/mbr.c 			rc = mbr_ebr_delete(part->label, part);
label             762 uspace/lib/label/src/mbr.c 				ep_b0 = part->label->ext_part->block0;
label             766 uspace/lib/label/src/mbr.c 				rc = mbr_ebr_create(part->label, next);
label             768 uspace/lib/label/src/mbr.c 					list_prepend(&part->llog, &part->label->log_parts);
label             773 uspace/lib/label/src/mbr.c 				rc = mbr_ebr_delete(part->label, part);
label             780 uspace/lib/label/src/mbr.c 		mbr_update_log_indices(part->label);
label             788 uspace/lib/label/src/mbr.c static errno_t mbr_suggest_ptype(label_t *label, label_pcnt_t pcnt,
label             825 uspace/lib/label/src/mbr.c static errno_t mbr_check_free_idx(label_t *label, int index)
label             829 uspace/lib/label/src/mbr.c 	if (index < 1 || index > label->pri_entries)
label             832 uspace/lib/label/src/mbr.c 	part = mbr_pri_part_first(label);
label             842 uspace/lib/label/src/mbr.c static errno_t mbr_check_free_pri_range(label_t *label, uint64_t block0,
label             847 uspace/lib/label/src/mbr.c 	if (block0 < label->ablock0)
label             849 uspace/lib/label/src/mbr.c 	if (block0 + nblocks > label->ablock0 + label->anblocks)
label             852 uspace/lib/label/src/mbr.c 	part = mbr_pri_part_first(label);
label             862 uspace/lib/label/src/mbr.c static errno_t mbr_check_free_log_range(label_t *label, uint64_t hdr_blocks,
label             867 uspace/lib/label/src/mbr.c 	if (block0 - hdr_blocks < label->ext_part->block0)
label             869 uspace/lib/label/src/mbr.c 	if (block0 + nblocks > label->ext_part->block0 + label->ext_part->nblocks)
label             872 uspace/lib/label/src/mbr.c 	part = mbr_log_part_first(label);
label             904 uspace/lib/label/src/mbr.c static errno_t mbr_pte_to_part(label_t *label, mbr_pte_t *pte, int index)
label             933 uspace/lib/label/src/mbr.c 	part->label = label;
label             934 uspace/lib/label/src/mbr.c 	list_append(&part->lparts, &label->parts);
label             935 uspace/lib/label/src/mbr.c 	list_append(&part->lpri, &label->pri_parts);
label             938 uspace/lib/label/src/mbr.c 		label->ext_part = part;
label             942 uspace/lib/label/src/mbr.c static errno_t mbr_pte_to_log_part(label_t *label, uint64_t ebr_b0,
label             960 uspace/lib/label/src/mbr.c 	nlparts = list_count(&label->log_parts);
label             969 uspace/lib/label/src/mbr.c 	part->label = label;
label             970 uspace/lib/label/src/mbr.c 	list_append(&part->lparts, &label->parts);
label             971 uspace/lib/label/src/mbr.c 	list_append(&part->llog, &label->log_parts);
label             984 uspace/lib/label/src/mbr.c 	ep_b0 = part->label->ext_part->block0;
label            1020 uspace/lib/label/src/mbr.c static errno_t mbr_pte_update(label_t *label, mbr_pte_t *pte, int index)
label            1025 uspace/lib/label/src/mbr.c 	br = calloc(1, label->block_size);
label            1029 uspace/lib/label/src/mbr.c 	rc = label->bd.ops->read(label->bd.arg, mbr_ba, 1, br);
label            1037 uspace/lib/label/src/mbr.c 	rc = label->bd.ops->write(label->bd.arg, mbr_ba, 1, br);
label            1051 uspace/lib/label/src/mbr.c static errno_t mbr_log_part_insert(label_t *label, label_part_t *part)
label            1055 uspace/lib/label/src/mbr.c 	cur = mbr_log_part_first(label);
label            1065 uspace/lib/label/src/mbr.c 		list_append(&part->llog, &label->log_parts);
label            1077 uspace/lib/label/src/mbr.c static errno_t mbr_ebr_create(label_t *label, label_part_t *part)
label            1083 uspace/lib/label/src/mbr.c 	br = calloc(1, label->block_size);
label            1092 uspace/lib/label/src/mbr.c 		ba = label->ext_part->block0;
label            1097 uspace/lib/label/src/mbr.c 	rc = label->bd.ops->write(label->bd.arg, ba, 1, br);
label            1110 uspace/lib/label/src/mbr.c static errno_t mbr_ebr_delete(label_t *label, label_part_t *part)
label            1116 uspace/lib/label/src/mbr.c 	br = calloc(1, label->block_size);
label            1122 uspace/lib/label/src/mbr.c 	rc = label->bd.ops->write(label->bd.arg, ba, 1, br);
label            1136 uspace/lib/label/src/mbr.c static errno_t mbr_ebr_update_next(label_t *label, label_part_t *part)
label            1145 uspace/lib/label/src/mbr.c 	br = calloc(1, label->block_size);
label            1149 uspace/lib/label/src/mbr.c 	rc = label->bd.ops->read(label->bd.arg, ba, 1, br);
label            1164 uspace/lib/label/src/mbr.c 	rc = label->bd.ops->write(label->bd.arg, ba, 1, br);
label            1185 uspace/lib/label/src/mbr.c static void mbr_update_log_indices(label_t *label)
label            1192 uspace/lib/label/src/mbr.c 	part = mbr_log_part_first(label);
label              37 uspace/lib/label/test/label.c PCUT_TEST_SUITE(label);
label             144 uspace/lib/label/test/label.c 	label_t *label;
label             157 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             160 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             167 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             173 uspace/lib/label/test/label.c 	label_close(label);
label             180 uspace/lib/label/test/label.c 	label_t *label;
label             193 uspace/lib/label/test/label.c 	rc = label_create(&lbd, lt_mbr, &label);
label             196 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             204 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             208 uspace/lib/label/test/label.c 	label_close(label);
label             210 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             213 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             221 uspace/lib/label/test/label.c 	rc = label_destroy(label);
label             226 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             229 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             235 uspace/lib/label/test/label.c 	label_close(label);
label             242 uspace/lib/label/test/label.c 	label_t *label;
label             255 uspace/lib/label/test/label.c 	rc = label_create(&lbd, lt_gpt, &label);
label             258 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             265 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             269 uspace/lib/label/test/label.c 	label_close(label);
label             271 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             274 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             281 uspace/lib/label/test/label.c 	rc = label_destroy(label);
label             286 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             289 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             295 uspace/lib/label/test/label.c 	label_close(label);
label             302 uspace/lib/label/test/label.c 	label_t *label;
label             318 uspace/lib/label/test/label.c 	rc = label_create(&lbd, lt_mbr, &label);
label             321 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             325 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             328 uspace/lib/label/test/label.c 	rc = label_suggest_ptype(label, lpc_ext4, &ptype);
label             339 uspace/lib/label/test/label.c 	rc = label_part_create(label, &pspec, &part);
label             349 uspace/lib/label/test/label.c 	label_close(label);
label             351 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             354 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             362 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             377 uspace/lib/label/test/label.c 	label_close(label);
label             379 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             383 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             386 uspace/lib/label/test/label.c 	label_close(label);
label             393 uspace/lib/label/test/label.c 	label_t *label;
label             409 uspace/lib/label/test/label.c 	rc = label_create(&lbd, lt_mbr, &label);
label             412 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             416 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             426 uspace/lib/label/test/label.c 	rc = label_part_create(label, &pspec, &epart);
label             436 uspace/lib/label/test/label.c 	label_close(label);
label             438 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             441 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             449 uspace/lib/label/test/label.c 	epart = label_part_first(label);
label             460 uspace/lib/label/test/label.c 	rc = label_suggest_ptype(label, lpc_ext4, &ptype);
label             471 uspace/lib/label/test/label.c 	rc = label_part_create(label, &pspec, &lpart);
label             481 uspace/lib/label/test/label.c 	label_close(label);
label             483 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             491 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             516 uspace/lib/label/test/label.c 	label_close(label);
label             518 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             522 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             525 uspace/lib/label/test/label.c 	label_close(label);
label             532 uspace/lib/label/test/label.c 	label_t *label;
label             548 uspace/lib/label/test/label.c 	rc = label_create(&lbd, lt_gpt, &label);
label             551 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             555 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             558 uspace/lib/label/test/label.c 	rc = label_suggest_ptype(label, lpc_ext4, &ptype);
label             569 uspace/lib/label/test/label.c 	rc = label_part_create(label, &pspec, &part);
label             579 uspace/lib/label/test/label.c 	label_close(label);
label             581 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             584 uspace/lib/label/test/label.c 	rc = label_get_info(label, &linfo);
label             591 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             606 uspace/lib/label/test/label.c 	label_close(label);
label             608 uspace/lib/label/test/label.c 	rc = label_open(&lbd, &label);
label             612 uspace/lib/label/test/label.c 	part = label_part_first(label);
label             615 uspace/lib/label/test/label.c 	label_close(label);
label             620 uspace/lib/label/test/label.c PCUT_EXPORT(label);
label              33 uspace/lib/label/test/main.c PCUT_IMPORT(label);
label              84 uspace/lib/posix/include/libc/ipc/ipc.h #define ipc_call_async_0(phandle, method, label) \
label              85 uspace/lib/posix/include/libc/ipc/ipc.h 	ipc_call_async_fast((phandle), (method), 0, 0, 0, (label))
label              86 uspace/lib/posix/include/libc/ipc/ipc.h #define ipc_call_async_1(phandle, method, arg1, label) \
label              87 uspace/lib/posix/include/libc/ipc/ipc.h 	ipc_call_async_fast((phandle), (method), (arg1), 0, 0, (label))
label              88 uspace/lib/posix/include/libc/ipc/ipc.h #define ipc_call_async_2(phandle, method, arg1, arg2, label) \
label              89 uspace/lib/posix/include/libc/ipc/ipc.h 	ipc_call_async_fast((phandle), (method), (arg1), (arg2), 0, (label))
label              90 uspace/lib/posix/include/libc/ipc/ipc.h #define ipc_call_async_3(phandle, method, arg1, arg2, arg3, label) \
label              92 uspace/lib/posix/include/libc/ipc/ipc.h 	    (label))
label              93 uspace/lib/posix/include/libc/ipc/ipc.h #define ipc_call_async_4(phandle, method, arg1, arg2, arg3, arg4, label) \
label              95 uspace/lib/posix/include/libc/ipc/ipc.h 	    (arg4), 0, (label))
label              97 uspace/lib/posix/include/libc/ipc/ipc.h     label) \
label              99 uspace/lib/posix/include/libc/ipc/ipc.h 	    (arg4), (arg5), (label))
label              68 uspace/lib/posix/include/libc/ipc/vfs.h 	char label[FS_LABEL_MAXLEN + 1];
label             106 uspace/lib/ui/src/filedialog.c 	ui_label_t *label = NULL;
label             148 uspace/lib/ui/src/filedialog.c 	rc = ui_label_create(ui_res, "File Name:", &label);
label             165 uspace/lib/ui/src/filedialog.c 	ui_label_set_rect(label, &rect);
label             167 uspace/lib/ui/src/filedialog.c 	rc = ui_fixed_add(fixed, ui_label_ctl(label));
label             171 uspace/lib/ui/src/filedialog.c 	label = NULL;
label             206 uspace/lib/ui/src/filedialog.c 	rc = ui_label_create(ui_res, "Files:", &label);
label             223 uspace/lib/ui/src/filedialog.c 	ui_label_set_rect(label, &rect);
label             225 uspace/lib/ui/src/filedialog.c 	rc = ui_fixed_add(fixed, ui_label_ctl(label));
label             229 uspace/lib/ui/src/filedialog.c 	label = NULL;
label             345 uspace/lib/ui/src/filedialog.c 	if (label != NULL)
label             346 uspace/lib/ui/src/filedialog.c 		ui_label_destroy(label);
label              69 uspace/lib/ui/src/label.c 	ui_label_t *label;
label              72 uspace/lib/ui/src/label.c 	label = calloc(1, sizeof(ui_label_t));
label              73 uspace/lib/ui/src/label.c 	if (label == NULL)
label              76 uspace/lib/ui/src/label.c 	rc = ui_control_new(&ui_label_ops, (void *) label, &label->control);
label              78 uspace/lib/ui/src/label.c 		free(label);
label              82 uspace/lib/ui/src/label.c 	label->text = str_dup(text);
label              83 uspace/lib/ui/src/label.c 	if (label->text == NULL) {
label              84 uspace/lib/ui/src/label.c 		ui_control_delete(label->control);
label              85 uspace/lib/ui/src/label.c 		free(label);
label              89 uspace/lib/ui/src/label.c 	label->res = resource;
label              90 uspace/lib/ui/src/label.c 	label->halign = gfx_halign_left;
label              91 uspace/lib/ui/src/label.c 	*rlabel = label;
label              99 uspace/lib/ui/src/label.c void ui_label_destroy(ui_label_t *label)
label             101 uspace/lib/ui/src/label.c 	if (label == NULL)
label             104 uspace/lib/ui/src/label.c 	ui_control_delete(label->control);
label             105 uspace/lib/ui/src/label.c 	free(label);
label             113 uspace/lib/ui/src/label.c ui_control_t *ui_label_ctl(ui_label_t *label)
label             115 uspace/lib/ui/src/label.c 	return label->control;
label             123 uspace/lib/ui/src/label.c void ui_label_set_rect(ui_label_t *label, gfx_rect_t *rect)
label             125 uspace/lib/ui/src/label.c 	label->rect = *rect;
label             133 uspace/lib/ui/src/label.c void ui_label_set_halign(ui_label_t *label, gfx_halign_t halign)
label             135 uspace/lib/ui/src/label.c 	label->halign = halign;
label             143 uspace/lib/ui/src/label.c void ui_label_set_valign(ui_label_t *label, gfx_valign_t valign)
label             145 uspace/lib/ui/src/label.c 	label->valign = valign;
label             154 uspace/lib/ui/src/label.c errno_t ui_label_set_text(ui_label_t *label, const char *text)
label             162 uspace/lib/ui/src/label.c 	free(label->text);
label             163 uspace/lib/ui/src/label.c 	label->text = tcopy;
label             173 uspace/lib/ui/src/label.c errno_t ui_label_paint(ui_label_t *label)
label             181 uspace/lib/ui/src/label.c 	rc = gfx_set_color(label->res->gc, label->res->wnd_face_color);
label             185 uspace/lib/ui/src/label.c 	rc = gfx_fill_rect(label->res->gc, &label->rect);
label             189 uspace/lib/ui/src/label.c 	switch (label->halign) {
label             192 uspace/lib/ui/src/label.c 		pos.x = label->rect.p0.x;
label             195 uspace/lib/ui/src/label.c 		pos.x = (label->rect.p0.x + label->rect.p1.x) / 2;
label             198 uspace/lib/ui/src/label.c 		pos.x = label->rect.p1.x;
label             202 uspace/lib/ui/src/label.c 	switch (label->valign) {
label             204 uspace/lib/ui/src/label.c 		pos.y = label->rect.p0.y;
label             207 uspace/lib/ui/src/label.c 		pos.y = (label->rect.p0.y + label->rect.p1.y) / 2;
label             210 uspace/lib/ui/src/label.c 		pos.y = label->rect.p1.y;
label             217 uspace/lib/ui/src/label.c 	fmt.font = label->res->font;
label             218 uspace/lib/ui/src/label.c 	fmt.color = label->res->wnd_text_color;
label             219 uspace/lib/ui/src/label.c 	fmt.halign = label->halign;
label             220 uspace/lib/ui/src/label.c 	fmt.valign = label->valign;
label             222 uspace/lib/ui/src/label.c 	rc = gfx_puttext(&pos, &fmt, label->text);
label             226 uspace/lib/ui/src/label.c 	rc = gfx_update(label->res->gc);
label             241 uspace/lib/ui/src/label.c 	ui_label_t *label = (ui_label_t *) arg;
label             243 uspace/lib/ui/src/label.c 	ui_label_destroy(label);
label             253 uspace/lib/ui/src/label.c 	ui_label_t *label = (ui_label_t *) arg;
label             255 uspace/lib/ui/src/label.c 	return ui_label_paint(label);
label             266 uspace/lib/ui/src/label.c 	ui_label_t *label = (ui_label_t *) arg;
label             268 uspace/lib/ui/src/label.c 	(void) label;
label              94 uspace/lib/ui/src/msgdialog.c 	ui_label_t *label = NULL;
label             139 uspace/lib/ui/src/msgdialog.c 	rc = ui_label_create(ui_res, params->text, &label);
label             156 uspace/lib/ui/src/msgdialog.c 	ui_label_set_rect(label, &rect);
label             157 uspace/lib/ui/src/msgdialog.c 	ui_label_set_halign(label, gfx_halign_center);
label             159 uspace/lib/ui/src/msgdialog.c 	rc = ui_fixed_add(fixed, ui_label_ctl(label));
label             163 uspace/lib/ui/src/msgdialog.c 	label = NULL;
label             235 uspace/lib/ui/src/msgdialog.c 	if (label != NULL)
label             236 uspace/lib/ui/src/msgdialog.c 		ui_label_destroy(label);
label              96 uspace/lib/ui/src/promptdialog.c 	ui_label_t *label = NULL;
label             137 uspace/lib/ui/src/promptdialog.c 	rc = ui_label_create(ui_res, params->prompt, &label);
label             154 uspace/lib/ui/src/promptdialog.c 	ui_label_set_rect(label, &rect);
label             156 uspace/lib/ui/src/promptdialog.c 	rc = ui_fixed_add(fixed, ui_label_ctl(label));
label             160 uspace/lib/ui/src/promptdialog.c 	label = NULL;
label             269 uspace/lib/ui/src/promptdialog.c 	if (label != NULL)
label             270 uspace/lib/ui/src/promptdialog.c 		ui_label_destroy(label);
label             101 uspace/lib/ui/src/selectdialog.c 	ui_label_t *label = NULL;
label             142 uspace/lib/ui/src/selectdialog.c 	rc = ui_label_create(ui_res, params->prompt, &label);
label             159 uspace/lib/ui/src/selectdialog.c 	ui_label_set_rect(label, &rect);
label             161 uspace/lib/ui/src/selectdialog.c 	rc = ui_fixed_add(fixed, ui_label_ctl(label));
label             165 uspace/lib/ui/src/selectdialog.c 	label = NULL;
label             270 uspace/lib/ui/src/selectdialog.c 	if (label != NULL)
label             271 uspace/lib/ui/src/selectdialog.c 		ui_label_destroy(label);
label              41 uspace/lib/ui/test/label.c PCUT_TEST_SUITE(label);
label              88 uspace/lib/ui/test/label.c 	ui_label_t *label = NULL;
label              91 uspace/lib/ui/test/label.c 	rc = ui_label_create(NULL, "Hello", &label);
label              93 uspace/lib/ui/test/label.c 	PCUT_ASSERT_NOT_NULL(label);
label              95 uspace/lib/ui/test/label.c 	ui_label_destroy(label);
label             107 uspace/lib/ui/test/label.c 	ui_label_t *label;
label             111 uspace/lib/ui/test/label.c 	rc = ui_label_create(NULL, "Hello", &label);
label             114 uspace/lib/ui/test/label.c 	control = ui_label_ctl(label);
label             123 uspace/lib/ui/test/label.c 	ui_label_t *label;
label             127 uspace/lib/ui/test/label.c 	rc = ui_label_create(NULL, "Hello", &label);
label             135 uspace/lib/ui/test/label.c 	ui_label_set_rect(label, &rect);
label             136 uspace/lib/ui/test/label.c 	PCUT_ASSERT_INT_EQUALS(rect.p0.x, label->rect.p0.x);
label             137 uspace/lib/ui/test/label.c 	PCUT_ASSERT_INT_EQUALS(rect.p0.y, label->rect.p0.y);
label             138 uspace/lib/ui/test/label.c 	PCUT_ASSERT_INT_EQUALS(rect.p1.x, label->rect.p1.x);
label             139 uspace/lib/ui/test/label.c 	PCUT_ASSERT_INT_EQUALS(rect.p1.y, label->rect.p1.y);
label             141 uspace/lib/ui/test/label.c 	ui_label_destroy(label);
label             147 uspace/lib/ui/test/label.c 	ui_label_t *label;
label             150 uspace/lib/ui/test/label.c 	rc = ui_label_create(NULL, "Hello", &label);
label             153 uspace/lib/ui/test/label.c 	ui_label_set_halign(label, gfx_halign_left);
label             154 uspace/lib/ui/test/label.c 	PCUT_ASSERT_EQUALS(gfx_halign_left, label->halign);
label             155 uspace/lib/ui/test/label.c 	ui_label_set_halign(label, gfx_halign_center);
label             156 uspace/lib/ui/test/label.c 	PCUT_ASSERT_EQUALS(gfx_halign_center, label->halign);
label             158 uspace/lib/ui/test/label.c 	ui_label_destroy(label);
label             164 uspace/lib/ui/test/label.c 	ui_label_t *label;
label             168 uspace/lib/ui/test/label.c 	rc = ui_label_create(NULL, "Hello", &label);
label             176 uspace/lib/ui/test/label.c 	ui_label_set_rect(label, &rect);
label             177 uspace/lib/ui/test/label.c 	PCUT_ASSERT_INT_EQUALS(rect.p0.x, label->rect.p0.x);
label             178 uspace/lib/ui/test/label.c 	PCUT_ASSERT_INT_EQUALS(rect.p0.y, label->rect.p0.y);
label             179 uspace/lib/ui/test/label.c 	PCUT_ASSERT_INT_EQUALS(rect.p1.x, label->rect.p1.x);
label             180 uspace/lib/ui/test/label.c 	PCUT_ASSERT_INT_EQUALS(rect.p1.y, label->rect.p1.y);
label             182 uspace/lib/ui/test/label.c 	ui_label_destroy(label);
label             192 uspace/lib/ui/test/label.c 	ui_label_t *label;
label             202 uspace/lib/ui/test/label.c 	rc = ui_label_create(resource, "Hello", &label);
label             205 uspace/lib/ui/test/label.c 	rc = ui_label_paint(label);
label             208 uspace/lib/ui/test/label.c 	ui_label_destroy(label);
label             304 uspace/lib/ui/test/label.c PCUT_EXPORT(label);
label              42 uspace/lib/ui/test/main.c PCUT_IMPORT(label);
label             408 uspace/srv/bd/vbd/disk.c static errno_t vbds_disk_parts_add(vbds_disk_t *disk, label_t *label)
label             413 uspace/srv/bd/vbd/disk.c 	part = label_part_first(label);
label             471 uspace/srv/bd/vbd/disk.c 	label_t *label = NULL;
label             530 uspace/srv/bd/vbd/disk.c 	rc = label_open(&lbd, &label);
label             538 uspace/srv/bd/vbd/disk.c 	disk->label = label;
label             548 uspace/srv/bd/vbd/disk.c 	(void) vbds_disk_parts_add(disk, label);
label             551 uspace/srv/bd/vbd/disk.c 	label_close(label);
label             580 uspace/srv/bd/vbd/disk.c 	label_close(disk->label);
label             629 uspace/srv/bd/vbd/disk.c 	rc = label_get_info(disk->label, &linfo);
label             676 uspace/srv/bd/vbd/disk.c 	label_t *label;
label             692 uspace/srv/bd/vbd/disk.c 	rc = label_get_info(disk->label, &linfo);
label             708 uspace/srv/bd/vbd/disk.c 	label_close(disk->label);
label             709 uspace/srv/bd/vbd/disk.c 	disk->label = NULL;
label             716 uspace/srv/bd/vbd/disk.c 	rc = label_create(&lbd, ltype, &label);
label             720 uspace/srv/bd/vbd/disk.c 	(void) vbds_disk_parts_add(disk, label);
label             721 uspace/srv/bd/vbd/disk.c 	disk->label = label;
label             727 uspace/srv/bd/vbd/disk.c 	if (disk->label == NULL) {
label             731 uspace/srv/bd/vbd/disk.c 		rc2 = label_open(&lbd, &label);
label             738 uspace/srv/bd/vbd/disk.c 		disk->label = label;
label             739 uspace/srv/bd/vbd/disk.c 		(void) vbds_disk_parts_add(disk, label);
label             748 uspace/srv/bd/vbd/disk.c 	label_t *label;
label             764 uspace/srv/bd/vbd/disk.c 	rc = label_destroy(disk->label);
label             770 uspace/srv/bd/vbd/disk.c 	disk->label = NULL;
label             775 uspace/srv/bd/vbd/disk.c 	rc = label_open(&lbd, &label);
label             782 uspace/srv/bd/vbd/disk.c 	(void) vbds_disk_parts_add(disk, label);
label             783 uspace/srv/bd/vbd/disk.c 	disk->label = label;
label             848 uspace/srv/bd/vbd/disk.c 	rc = label_part_create(disk->label, &lpspec, &lpart);
label             937 uspace/srv/bd/vbd/disk.c 	rc = label_suggest_ptype(disk->label, pcnt, ptype);
label              97 uspace/srv/bd/vbd/types/vbd.h 	label_t *label;
label            1141 uspace/srv/fs/cdfs/cdfs_ops.c 	str_cpy(info->label, FS_LABEL_MAXLEN + 1, vol_ident);
label             106 uspace/srv/fs/exfat/exfat_dentry.c 		dst[i] = uint16_t_le2host(vollabel->label[i]);
label              64 uspace/srv/fs/exfat/exfat_dentry.h 	uint16_t 	label[11];
label             261 uspace/srv/fs/exfat/exfat_directory.c errno_t exfat_directory_read_vollabel(exfat_directory_t *di, char *label,
label             281 uspace/srv/fs/exfat/exfat_directory.c 	rc = utf16_to_str(label, size, wlabel);
label            1174 uspace/srv/fs/exfat/exfat_ops.c 		rc = exfat_directory_read_vollabel(&di, info->label,
label            1206 uspace/srv/fs/exfat/exfat_ops.c 		str_cpy(info->label, FS_LABEL_MAXLEN + 1, label);
label             113 uspace/srv/fs/fat/fat.h 			uint8_t		label[11];
label             144 uspace/srv/fs/fat/fat.h 			uint8_t		label[11];
label             540 uspace/srv/fs/fat/fat_directory.c errno_t fat_directory_vollabel_get(fat_directory_t *di, char *label)
label             553 uspace/srv/fs/fat/fat_directory.c 			fat_dentry_vollabel_get(d, label);
label            1045 uspace/srv/fs/fat/fat_ops.c 	char label[FAT_VOLLABEL_LEN + 1];
label            1060 uspace/srv/fs/fat/fat_ops.c 	rc = fat_directory_vollabel_get(&di, label);
label            1067 uspace/srv/fs/fat/fat_ops.c 		label[0] = '\0';
label            1070 uspace/srv/fs/fat/fat_ops.c 	str_cpy(info->label, FS_LABEL_MAXLEN + 1, label);
label              95 uspace/srv/ns/task.c 	sysarg_t label;  /**< Incoming phone label. */
label             103 uspace/srv/ns/task.c 	const sysarg_t *label = key;
label             104 uspace/srv/ns/task.c 	return *label;
label             110 uspace/srv/ns/task.c 	return entry->label;
label             115 uspace/srv/ns/task.c 	const sysarg_t *label = key;
label             118 uspace/srv/ns/task.c 	return (*label == entry->label);
label             250 uspace/srv/ns/task.c 	entry->label = call->request_label;
label             267 uspace/srv/ns/task.c static errno_t get_id_by_phone(sysarg_t label, task_id_t *id)
label             269 uspace/srv/ns/task.c 	assert(label);
label             270 uspace/srv/ns/task.c 	ht_link_t *link = hash_table_find(&phone_to_id, &label);
label             103 uspace/srv/volsrv/mkfs.c errno_t volsrv_part_mkfs(service_id_t sid, vol_fstype_t fstype, const char *label)
label             135 uspace/srv/volsrv/mkfs.c 	if (str_size(label) > 0)
label             136 uspace/srv/volsrv/mkfs.c 		rc = cmd_runl(cmd, cmd, "--label", label, svc_name, NULL);
label             209 uspace/srv/volsrv/part.c 	char *label;
label             227 uspace/srv/volsrv/part.c 		    fst->name, info.label);
label             228 uspace/srv/volsrv/part.c 		label = str_dup(info.label);
label             229 uspace/srv/volsrv/part.c 		if (label == NULL) {
label             236 uspace/srv/volsrv/part.c 		part->label = label;
label             249 uspace/srv/volsrv/part.c 		label = str_dup("");
label             250 uspace/srv/volsrv/part.c 		if (label == NULL) {
label             256 uspace/srv/volsrv/part.c 		part->label = label;
label             260 uspace/srv/volsrv/part.c 	rc = vol_volume_lookup_ref(part->parts->volumes, part->label, &volume);
label             330 uspace/srv/volsrv/part.c 		if (str_size(part->label) < 1) {
label             337 uspace/srv/volsrv/part.c 		log_msg(LOG_DEFAULT, LVL_DEBUG, "Determine MP label='%s'", part->label);
label             338 uspace/srv/volsrv/part.c 		err = asprintf(&mp, "/vol/%s", part->label);
label             764 uspace/srv/volsrv/part.c     const char *label, const char *mountp)
label             772 uspace/srv/volsrv/part.c 	rc = volsrv_part_mkfs(part->svc_id, fstype, label);
label             843 uspace/srv/volsrv/part.c 	str_cpy(pinfo->label, sizeof(pinfo->label), part->label);
label              63 uspace/srv/volsrv/types/part.h 	char *label;
label              55 uspace/srv/volsrv/types/volume.h 	char *label;
label             362 uspace/srv/volsrv/volsrv.c 	char *label = NULL;
label             371 uspace/srv/volsrv/volsrv.c 	rc = async_data_write_accept((void **)&label, true, 0, VOL_LABEL_MAXLEN,
label             378 uspace/srv/volsrv/volsrv.c 	if (label != NULL) {
label             380 uspace/srv/volsrv/volsrv.c 		    label);
label             401 uspace/srv/volsrv/volsrv.c 	rc = vol_part_mkfs_part(part, fstype, label, mountp);
label             408 uspace/srv/volsrv/volsrv.c 	free(label);
label             414 uspace/srv/volsrv/volsrv.c 	if (label != NULL)
label             415 uspace/srv/volsrv/volsrv.c 		free(label);
label              79 uspace/srv/volsrv/volume.c 	volume->label = str_dup("");
label              82 uspace/srv/volsrv/volume.c 	if (volume->label == NULL || volume->mountp == NULL) {
label             102 uspace/srv/volsrv/volume.c 	free(volume->label);
label             333 uspace/srv/volsrv/volume.c     const char *label, vol_volume_t **rvolume)
label             340 uspace/srv/volsrv/volume.c 		if (str_cmp(volume->label, label) == 0 &&
label             341 uspace/srv/volsrv/volume.c 		    str_size(label) > 0) {
label             354 uspace/srv/volsrv/volume.c 	free(volume->label);
label             355 uspace/srv/volsrv/volume.c 	volume->label = str_dup(label);
label             357 uspace/srv/volsrv/volume.c 	if (volume->label == NULL) {
label             379 uspace/srv/volsrv/volume.c errno_t vol_volume_lookup_ref(vol_volumes_t *volumes, const char *label,
label             385 uspace/srv/volsrv/volume.c 	rc = vol_volume_lookup_ref_locked(volumes, label, rvolume);
label             568 uspace/srv/volsrv/volume.c 	const char *label;
label             585 uspace/srv/volsrv/volume.c 		label = sif_node_get_attr(nvolume, "label");
label             588 uspace/srv/volsrv/volume.c 		if (label == NULL || mountp == NULL) {
label             593 uspace/srv/volsrv/volume.c 		free(volume->label);
label             596 uspace/srv/volsrv/volume.c 		volume->label = str_dup(label);
label             641 uspace/srv/volsrv/volume.c 			rc = sif_node_set_attr(node, "label", volume->label);
label             667 uspace/srv/volsrv/volume.c 	str_cpy(vinfo->label, sizeof(vinfo->label), volume->label);
HelenOS homepage, sources at GitHub