Lines Matching +defs:i +defs:n

54  * guarantees. intp points to the OBP data, and n the number of bytes.
59 impl_di_prop_int_from_prom(uchar_t *intp, int n)
61 int i = 0;
64 intp += n;
65 while (n-- > 0) {
66 i = (i << 8) | *(--intp);
69 while (n-- > 0) {
70 i = (i << 8) | *intp++;
74 return (i);
117 int i;
121 int n;
128 i = DDI_PROP_INT(ph, DDI_PROP_CMD_SKIP, NULL);
129 if (i < 0)
143 if (i == DDI_PROP_RESULT_ERROR)
163 for (n = 0; n < cnt; n++, tmp++) {
164 i = DDI_PROP_INT(ph, DDI_PROP_CMD_DECODE, tmp);
165 if (i < DDI_PROP_RESULT_OK) {
171 switch (i) {
197 int i;
198 int n;
242 for (n = 0; n < cnt; n++) {
243 i = DDI_PROP_STR(ph, DDI_PROP_CMD_DECODE, tmp);
244 if (i < DDI_PROP_RESULT_OK) {
250 switch (i) {
275 int i;
308 i = DDI_PROP_BYTES(ph, DDI_PROP_CMD_DECODE, tmp, nbytes);
309 if (i < DDI_PROP_RESULT_OK) {
315 switch (i) {
373 int i;
383 i = ph->ph_size < PROP_1275_INT_SIZE ?
386 ph->ph_size - i))
591 int n;
604 n = strlen((char *)ph->ph_cur_pos) + 1;
606 ph->ph_size - n)) {
613 bcopy((char *)ph->ph_cur_pos, data, n);
619 ph->ph_cur_pos = (char *)ph->ph_cur_pos + n;
630 n = strlen(data) + 1;
632 ph->ph_size - n)) {
639 bcopy(data, (char *)ph->ph_cur_pos, n);
645 ph->ph_cur_pos = (char *)ph->ph_cur_pos + n;
672 for (n = 0; p < end && isascii(*p) && !iscntrl(*p); n++, p++)
676 if ((*p == 0) && (n != 0)) {
698 for (n = 0; p < end; n++) {
701 return (n+1);
828 int n;
864 for (n = 0; cp < end &&
865 isascii(*cp) && !iscntrl(*cp); n++, cp++)
869 * Fail if reached end (i.e. last char != 0),
967 int count, i;
985 for (i = 0; i < maxslots; i++) {
986 if (slots & (1 << i))
989 maxslots = i;
998 for (i = 0; i < maxslots; i++) {
999 if (slots & (1 << i)) {
1010 slot_names[count].num = i;