Home
last modified time | relevance | path

Searched refs:MAJOR (Results 1 – 25 of 31) sorted by relevance

12

/dragonfly/contrib/lvm2/dist/lib/filters/
H A Dfilter.c59 if (MAJOR(dev->dev) == -1) in dev_subsystem_part_major()
62 if (MAJOR(dev->dev) == _md_major) in dev_subsystem_part_major()
65 if (MAJOR(dev->dev) == _drbd_major) in dev_subsystem_part_major()
73 if (MAJOR(dev->dev) == _md_major) in dev_subsystem_name()
76 if (MAJOR(dev->dev) == _drbd_major) in dev_subsystem_name()
129 if (!_max_partitions_by_major[MAJOR(dev->dev)]) { in _passes_lvm_type_device_filter()
131 PRIu64, name, (uint64_t) MAJOR(dev->dev)); in _passes_lvm_type_device_filter()
136 if (MAJOR(dev->dev) == _device_mapper_major && in _passes_lvm_type_device_filter()
H A Dfilter.h26 # define MAJOR(dev) ((dev & 0xfff00) >> 8) macro
30 # define MAJOR(x) major((x)) macro
H A Dfilter_netbsd.c99 if (_char_device_major[MAJOR(dev->dev)] == -1 ){ in _passes_lvm_type_device_filter()
101 PRIu64, name, (uint64_t) MAJOR(dev->dev)); in _passes_lvm_type_device_filter()
106 if (MAJOR(dev->dev) == _device_mapper_major && in _passes_lvm_type_device_filter()
H A Dfilter_dragonfly.c103 if (MAJOR(dev->dev) == _device_mapper_major && in _passes_lvm_type_device_filter()
/dragonfly/contrib/lvm2/dist/lib/device/
H A Ddevice.c47 int parts = max_partitions(MAJOR(dev->dev)); in _is_partitionable()
50 if (MAJOR(dev->dev) == md_major()) in _is_partitionable()
304 sysfs_dir, (int)MAJOR(dev->dev), (int)MINOR(dev->dev)) < 0) { in get_primary_dev()
386 (int)MAJOR(dev->dev), (int)MINOR(dev->dev), in _dev_topology_attribute()
407 (int)MAJOR(primary), (int)MINOR(primary), in _dev_topology_attribute()
H A Ddev-md.c142 if (MAJOR(dev) == blkext_major()) { in _md_sysfs_attribute_snprintf()
148 if (MAJOR(dev) != md_major()) in _md_sysfs_attribute_snprintf()
152 (int)MAJOR(dev), (int)MINOR(dev), attribute); in _md_sysfs_attribute_snprintf()
H A Ddev-cache.c448 if (nbsd_check_dev(MAJOR(info.st_rdev),path) < 0) { in _insert()
453 if (dragonfly_check_dev(MAJOR(info.st_rdev),path) < 0) { in _insert()
703 name, (int) MAJOR(dev->dev), in dev_name_confirmed()
707 name, (int) MAJOR(dev->dev), in dev_name_confirmed()
/dragonfly/contrib/lvm2/dist/include/
H A Dfilter.h26 # define MAJOR(dev) ((dev & 0xfff00) >> 8) macro
30 # define MAJOR(x) major((x)) macro
H A Dkdev_t.h20 #define MAJOR(dev) ((dev & 0xfff00) >> 8) macro
/dragonfly/contrib/lvm2/dist/scripts/lvm2create_initrd/
H A Dlvm2create_initrd151 MAJOR=$(sed -n 's/^ *\([0-9]\+\) \+misc$/\1/p' /proc/devices)
153 if test -n "$MAJOR" -a -n "$MINOR" ; then
155 mknod -m 600 /dev/mapper/control c $MAJOR $MINOR
158 echo "($MAJOR,$MINOR)"
/dragonfly/contrib/lvm2/dist/libdm/misc/
H A Dkdev_t.h20 #define MAJOR(dev) ((dev & 0xfff00) >> 8) macro
/dragonfly/contrib/lvm2/dist/libdm/ioctl/
H A Dlibdm-netbsd.h38 # define MAJOR(x) major((x)) macro
H A Dlibdm-iface.c36 # define MAJOR(x) major((x)) macro
220 MAJOR(buf.st_mode), MINOR(buf.st_mode), in _control_exists()
463 info->major = MAJOR(dmt->dmi.v1->dev); in _dm_task_get_info_v1()
735 add_dev_node(dmt->dev_name, MAJOR(dmi->dev), MINOR(dmi->dev), in _dm_task_run_v1()
749 add_dev_node(dmt->dev_name, MAJOR(dmi->dev), in _dm_task_run_v1()
963 info->major = MAJOR(dmt->dmi.v4->dev); in dm_task_get_info()
1855 add_dev_node(dmt->dev_name, MAJOR(dmi->dev), in dm_task_run()
1880 add_dev_node(dmi->name, MAJOR(dmi->dev), in dm_task_run()
H A Dlibdm-nbsd-iface.c137 MAJOR(buf.st_mode), MINOR(buf.st_mode), in _control_exists()
1167 add_dev_node(dmt->dev_name, MAJOR(dmi->dev), MINOR(dmi->dev),
1191 add_dev_node(dmi->name, MAJOR(dmi->dev),
H A Dlibdm_dragonfly.c444 dmtd->dev[j] = MKDEV(MAJOR(dev_tmp),MINOR(dev_tmp)); in dm_dev_deps()
H A Dlibdm_netbsd.c488 if (kd[i].d_bmajor == MAJOR(dev_tmp)) { in dm_dev_deps()
/dragonfly/bin/pax/
H A Dpax.h229 #define MAJOR(x) major(x) macro
H A Dgen_subs.c120 fprintf(fp, "%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev), in ls_list()
H A Dcpio.c752 ul_asc((u_long)MAJOR(arcn->sb.st_dev),hd->c_maj, sizeof(hd->c_maj), in vcpio_wr()
756 ul_asc((u_long)MAJOR(arcn->sb.st_rdev),hd->c_rmaj,sizeof(hd->c_maj), in vcpio_wr()
/dragonfly/contrib/bmake/mk/
H A Dsys.vars.mk113 M_M.M.P_VERSION = L:@v@$${MAJOR MINOR PATCH:L:@t@$${$$v_$$t_VERSION:U0}@}@:ts.
/dragonfly/contrib/lvm2/dist/lib/cache/
H A Dlvmcache.c1199 } else if (dm_is_dm_major(MAJOR(existing->dev->dev)) && in lvmcache_add()
1200 !dm_is_dm_major(MAJOR(dev->dev))) { in lvmcache_add()
1213 else if (!dm_is_dm_major(MAJOR(existing->dev->dev)) && in lvmcache_add()
1214 dm_is_dm_major(MAJOR(dev->dev))) in lvmcache_add()
/dragonfly/sys/dev/drm/amd/display/dc/
H A Ddc_dp_types.h111 uint8_t MAJOR:4; member
/dragonfly/contrib/lvm2/dist/lib/activate/
H A Ddev_manager.c174 if (!dm_task_set_major_minor(dmt, MAJOR(dev), MINOR(dev), 1)) in device_is_usable()
1343 if (!dm_tree_add_dev(dtree, (uint32_t) MAJOR(dev->dev), (uint32_t) MINOR(dev->dev))) { in dev_manager_device_uses_vg()
1345 dev_name(dev), (uint32_t) MAJOR(dev->dev), (uint32_t) MINOR(dev->dev)); in dev_manager_device_uses_vg()
/dragonfly/contrib/lvm2/dist/tools/
H A Ddmsetup.c92 # define MAJOR(x) major((x)) macro
1580 (int) MAJOR(deps->device[i]), in _deps()
1599 (int) MAJOR(names->dev), (int) MINOR(names->dev)); in _display_name()
1913 if (!dm_tree_add_dev(_dtree, (unsigned) MAJOR(names->dev), (unsigned) MINOR(names->dev))) in _add_dep()
2254 (int) MAJOR(deps->device[i]), in _dm_deps_disp()
/dragonfly/contrib/lvm2/dist/libdm/
H A Dlibdm-deptree.c501 if (!_add_dev(dtree, node, MAJOR(deps->device[i]), in _add_dev()
1961 if (!(dev_node = _add_dev(node->dtree, node, MAJOR(info.st_rdev), MINOR(info.st_rdev)))) in dm_tree_node_add_target_area()

12