• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/dev/vn/

Lines Matching defs:start

129 byte_set_bits(int start, int end)
131 return ((u_char)((~bits_lower(start)) & (bits_lower(end) | bit(end))));
156 bitmap_offset_t start;
159 start = bitmap_offset(start_bit);
161 if (start.byte < end.byte) {
164 if (start.bit) {
165 map[start.byte] |= byte_set_bits(start.bit, NBBY - 1);
166 start.bit = 0;
167 start.byte++;
168 if (start.byte == end.byte)
172 n_bytes = end.byte - start.byte;
175 *((u_long *)(map + start.byte)) = ULONG_ALL_ONES;
176 start.byte += sizeof(u_long);
180 *((u_short *)(map + start.byte)) = USHORT_ALL_ONES;
181 start.byte += sizeof(u_short);
185 map[start.byte] = UCHAR_ALL_ONES;
186 start.byte++;
192 if (end.bit > start.bit) {
193 map[start.byte] |= byte_set_bits(start.bit, end.bit - 1);
218 bitmap_offset_t start;
221 start = bitmap_offset(start_bit);
224 is_set = (map[start.byte] & bit(start.bit)) ? TRUE : FALSE;
227 if (start.byte < end.byte) {
230 if (start.bit) { /* try to align to a byte */
231 for (i = start.bit; i < NBBY; i++) {
234 this_is_set = (map[start.byte] & bit(i)) ? TRUE : FALSE;
240 start.bit = 0; /* made it to the next byte */
241 start.byte++;
242 if (start.byte == end.byte)
246 n_bytes = end.byte - start.byte;
250 u_long * valPtr = (u_long *)(map + start.byte);
254 start.byte += sizeof(*valPtr);
263 u_short * valPtr = (u_short *)(map + start.byte);
268 start.byte += sizeof(*valPtr);
275 if ((is_set && map[start.byte] == UCHAR_ALL_ONES)
276 || (!is_set && map[start.byte] == 0)) {
278 start.byte++;
286 this_is_set = (map[start.byte] & bit(i)) ? TRUE : FALSE;
298 for (i = start.bit; i < (int)end.bit; i++) {
299 boolean_t this_is_set = (map[start.byte] & bit(i)) ? TRUE : FALSE;
469 else { /* start has been written, and therefore mapped */