Searched defs:constraint (Results 1 - 20 of 20) sorted by relevance

/osnet-11/usr/src/lib/libparted/common/libparted/cs/
H A Dconstraint.c35 * The constraint solver allows you to specify constraints on where a partition
40 * The constraint solver in this file unifies solver in geom.c (which allows you
52 * Initializes a pre-allocated piece of memory to contain a constraint
59 PedConstraint* constraint,
67 PED_ASSERT (constraint != NULL, return 0);
73 constraint->start_align = ped_alignment_duplicate (start_align);
74 constraint->end_align = ped_alignment_duplicate (end_align);
75 constraint->start_range = ped_geometry_duplicate (start_range);
76 constraint->end_range = ped_geometry_duplicate (end_range);
77 constraint
58 ped_constraint_init( PedConstraint* constraint, const PedAlignment* start_align, const PedAlignment* end_align, const PedGeometry* start_range, const PedGeometry* end_range, PedSector min_size, PedSector max_size) argument
99 PedConstraint* constraint; local
182 ped_constraint_duplicate(const PedConstraint* constraint) argument
213 PedConstraint* constraint; local
262 ped_constraint_done(PedConstraint* constraint) argument
277 ped_constraint_destroy(PedConstraint* constraint) argument
293 _constraint_get_canonical_start_range(const PedConstraint* constraint) argument
335 _constraint_get_nearest_start_soln(const PedConstraint* constraint, PedSector start) argument
356 _constraint_get_end_range(const PedConstraint* constraint, PedSector start) argument
385 _constraint_get_nearest_end_soln(const PedConstraint* constraint, PedSector start, PedSector end) argument
410 ped_constraint_solve_nearest( const PedConstraint* constraint, const PedGeometry* geom) argument
445 ped_constraint_solve_max(const PedConstraint* constraint) argument
463 ped_constraint_is_solution(const PedConstraint* constraint, const PedGeometry* geom) argument
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/labels/
H A Daix.c199 aix_partition_align (PedPartition* part, const PedConstraint* constraint) argument
H A Dloop.c236 loop_partition_align (PedPartition* part, const PedConstraint* constraint) argument
240 new_geom = ped_constraint_solve_nearest (constraint, &part->geom);
H A Ddvh.c196 PedConstraint* constraint; local
212 constraint = ped_constraint_any (part->disk->dev);
213 if (!constraint)
215 if (!ped_disk_add_partition (disk, part, constraint))
217 ped_constraint_destroy (constraint);
227 ped_constraint_destroy (constraint);
751 /* The constraint for the volume header partition is different, because it must
773 dvh_partition_align (PedPartition* part, const PedConstraint* constraint) argument
778 part, constraint,
H A Dpc98.c747 pc98_partition_align (PedPartition* part, const PedConstraint* constraint) argument
751 if (_ped_partition_attempt_align (part, constraint,
H A Dbsd.c574 bsd_partition_align (PedPartition* part, const PedConstraint* constraint) argument
576 if (_ped_partition_attempt_align (part, constraint,
H A Dsun.c814 * However, if they really insist (via constraint)... which they will
819 sun_partition_align (PedPartition* part, const PedConstraint* constraint) argument
826 _ped_partition_attempt_align (part, constraint,
829 if (_ped_partition_attempt_align (part, constraint,
H A Dgpt.c1771 gpt_partition_align (PedPartition *part, const PedConstraint *constraint) argument
1775 if (_ped_partition_attempt_align (part, constraint,
H A Dmac.c1422 mac_partition_align (PedPartition* part, const PedConstraint* constraint) argument
1426 if (_ped_partition_attempt_align (part, constraint,
H A Drdb.c1040 amiga_partition_align (PedPartition* part, const PedConstraint* constraint) argument
1045 if (_ped_partition_attempt_align (part, constraint,
H A Ddos.c1621 /* This constraint is for "normal" primary partitions, that start at the
1669 /* This constraint is for partitions starting on the first cylinder. They
1725 * - is_start_part == 1 if the constraint is for the first cylinder of
1726 * the extended partition, or == 0 if the constraint is for the second cylinder
1812 const PedConstraint* constraint)
1822 _try_constraint (part, constraint,
1827 _try_constraint (part, constraint,
1921 const PedConstraint* constraint)
1934 intersect = ped_constraint_intersect (constraint, log_meta_overlap);
1973 const PedConstraint* constraint)
1811 _align_primary(PedPartition* part, const PedCHSGeometry* bios_geom, const PedConstraint* constraint) argument
1920 _align_logical(PedPartition* part, const PedCHSGeometry* bios_geom, const PedConstraint* constraint) argument
1972 _align(PedPartition* part, const PedCHSGeometry* bios_geom, const PedConstraint* constraint) argument
1997 PedConstraint* constraint; local
2014 _align_primary_no_geom(PedPartition* part, const PedConstraint* constraint) argument
2038 _align_logical_no_geom(PedPartition* part, const PedConstraint* constraint) argument
2055 _align_no_geom(PedPartition* part, const PedConstraint* constraint) argument
2064 msdos_partition_align(PedPartition* part, const PedConstraint* constraint) argument
[all...]
/osnet-11/usr/src/lib/libdevinfo/
H A Ddevinfo_retire.c548 * RCM_SUCCESS implies we overcame a constraint, so keep walking.
594 "NULL. Returning no RCM constraint: %s\n", rp->rcm_root);
635 dp->rt_debug(dp->rt_hdl, "[INFO]: len of constraint str = %lu\n", len);
640 "constraint list: error: %s: %s\n", strerror(errno),
659 dp->rt_debug(dp->rt_hdl, "[INFO]: constraint str = %p\n", plistp);
677 char *constraint = NULL; local
779 constraint = NULL;
780 retval = rcm_notify(&rarg, &constraint, &clen);
800 if (modctl(MODRETIRE, devpath, constraint, clen) != 0) {
824 free(constraint);
[all...]
/osnet-11/usr/src/lib/libkmf/libkmf/common/
H A Dcertgetsetop.c420 KMF_BOOL *critical, KMF_X509EXT_BASICCONSTRAINTS *constraint)
430 if (certdata == NULL || constraint == NULL || critical == NULL)
451 if (kmfber_scanf(asn1, "b", &constraint->cA) == KMFBER_DEFAULT) {
455 constraint->pathLenConstraintPresent = KMF_FALSE;
460 &constraint->pathLenConstraint) == KMFBER_DEFAULT) {
464 constraint->pathLenConstraintPresent = KMF_TRUE;
2194 KMF_BOOL critical, KMF_X509EXT_BASICCONSTRAINTS *constraint)
2201 if ((CertData == NULL) || (constraint == NULL))
2219 if (kmfber_printf(asn1, "b", constraint->cA) == -1) {
2224 if (constraint
419 kmf_get_cert_basic_constraint(const KMF_DATA *certdata, KMF_BOOL *critical, KMF_X509EXT_BASICCONSTRAINTS *constraint) argument
2193 kmf_set_cert_basic_constraint(KMF_X509_CERTIFICATE *CertData, KMF_BOOL critical, KMF_X509EXT_BASICCONSTRAINTS *constraint) argument
[all...]
H A Dcertop.c170 KMF_X509EXT_BASICCONSTRAINTS constraint; local
178 (void) memset(&constraint, 0, sizeof (KMF_X509EXT_BASICCONSTRAINTS));
205 &critical, &constraint);
210 if ((!critical) || (!constraint.cA))
462 * Add the missing basic constraint.
1975 KMF_X509EXT_BASICCONSTRAINTS constraint; local
2005 (void) memset(&constraint, 0, sizeof (constraint));
2007 &critical, &constraint);
2013 if (!constraint
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/
H A Ddisk.c894 * (not the hardware). (constraint represented by a PedAlignment)
898 * by a multiple of 4k. (constraint represented by a PedAlignment)
901 * boundaries. (constraint represented by a PedGeometry)
910 _partition_align (PedPartition* part, const PedConstraint* constraint) argument
922 return disk_type->ops->partition_align (part, constraint);
1979 * \warning The partition's geometry may be changed, subject to \p constraint.
1980 * You could set \p constraint to <tt>ped_constraint_exact(&part->geom)</tt>,
1982 * and end of partitions. Therefore, having an overly strict constraint
1991 const PedConstraint* constraint)
2009 constraint);
1990 ped_disk_add_partition(PedDisk* disk, PedPartition* part, const PedConstraint* constraint) argument
2167 ped_disk_set_partition_geom(PedDisk* disk, PedPartition* part, const PedConstraint* constraint, PedSector start, PedSector end) argument
2230 ped_disk_maximize_partition(PedDisk* disk, PedPartition* part, const PedConstraint* constraint) argument
2292 ped_disk_get_max_partition_geometry(PedDisk* disk, PedPartition* part, const PedConstraint* constraint) argument
2336 PedConstraint* constraint; local
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dregex_internal.c1446 dfa->nodes[dfa->nodes_len].constraint = 0;
1648 if (type == CHARACTER && !node->constraint)
1659 else if (type == ANCHOR || node->constraint)
1700 unsigned int constraint = node->constraint;
1702 if (type == CHARACTER && !constraint)
1714 if (constraint)
1731 if (NOT_SATISFY_PREV_CONSTRAINT (constraint,context))
1697 unsigned int constraint = node->constraint; local
H A Dregcomp.c50 static Idx duplicate_node (re_dfa_t *dfa, Idx org_idx, unsigned int constraint);
52 unsigned int constraint);
1387 dfa->nodes[node->node_idx].constraint = node->token.opr.ctx_type;
1473 Note that duplicated nodes have constraint INIT_CONSTRAINT in addition
1474 to their own constraint. */
1483 unsigned int constraint = init_constraint;
1490 also have the constraint. Then duplicate the epsilon closure
1495 clone_dest = duplicate_node (dfa, org_dest, constraint);
1526 /* In case the node has another constraint, append it. */
1527 constraint |
1476 unsigned int constraint = init_constraint; local
1578 search_duplicated_node(const re_dfa_t *dfa, Idx org_node, unsigned int constraint) argument
1596 duplicate_node(re_dfa_t *dfa, Idx org_idx, unsigned int constraint) argument
[all...]
H A Dregex_internal.h345 unsigned int constraint : 10; /* context constraint */ member in struct:__anon467
525 #define NOT_SATISFY_PREV_CONSTRAINT(constraint,context) \
526 ((((constraint) & PREV_WORD_CONSTRAINT) && !IS_WORD_CONTEXT (context)) \
527 || ((constraint & PREV_NOTWORD_CONSTRAINT) && IS_WORD_CONTEXT (context)) \
528 || ((constraint & PREV_NEWLINE_CONSTRAINT) && !IS_NEWLINE_CONTEXT (context))\
529 || ((constraint & PREV_BEGBUF_CONSTRAINT) && !IS_BEGBUF_CONTEXT (context)))
531 #define NOT_SATISFY_NEXT_CONSTRAINT(constraint,context) \
532 ((((constraint) & NEXT_WORD_CONSTRAINT) && !IS_WORD_CONTEXT (context)) \
533 || (((constraint)
[all...]
H A Dregexec.c1252 unsigned int constraint = dfa->nodes[node].constraint;
1255 if (!constraint)
1257 if (NOT_SATISFY_NEXT_CONSTRAINT (constraint, context))
2559 if (dfa->nodes[cur_node_idx].constraint)
2564 if (NOT_SATISFY_NEXT_CONSTRAINT (dfa->nodes[cur_node_idx].constraint,
2631 if (node->constraint)
2635 if (NOT_SATISFY_NEXT_CONSTRAINT (node->constraint, context))
3470 /* If the new state has context constraint,
3609 unsigned int constraint
1249 unsigned int constraint = dfa->nodes[node].constraint; local
3605 unsigned int constraint = node->constraint; local
[all...]
/osnet-11/usr/src/cmd/parted/
H A Dparted.c366 * always called before the constraint solver kicks in. So you don't need to
445 /* This functions constructs a constraint from the following information:
448 * If is_start_exact == 1, then the constraint requires start be as given in
449 * "start". Otherwise, the constraint does not set any requirements on the
828 /* subject to partition constraint */
1037 /* subject to partition constraint */
1170 PedConstraint* constraint; local
1205 constraint = constraint_intersect_and_destroy (
1208 if (!ped_disk_set_partition_geom (disk, part, constraint,
1211 ped_constraint_destroy (constraint);
1753 PedConstraint* constraint; local
1811 PedConstraint constraint; local
1921 PedConstraint *constraint; local
[all...]

Completed in 1522 milliseconds