Lines Matching refs:lp
53 ukfs__disklabel_scan(struct ukfs__disklabel *lp, int *isswapped,
62 for (i=0; i <= buflen - sizeof(*lp); i += SCAN_INCR) {
63 memcpy(lp, buf + i, sizeof(*lp));
64 if (lp->d_magic == UKFS_DISKMAGIC &&
65 lp->d_magic2 == UKFS_DISKMAGIC) {
69 if (lp->d_magic == bswap32(UKFS_DISKMAGIC) &&
70 lp->d_magic2 == bswap32(UKFS_DISKMAGIC)) {
80 npart = bswap16(lp->d_npartitions);
82 npart = lp->d_npartitions;
85 || ukfs__disklabel_dkcksum(lp, imswapped))
128 ukfs__disklabel_dkcksum(struct ukfs__disklabel *lp, int imswapped)
135 npart = bswap16(lp->d_npartitions);
137 npart = lp->d_npartitions;
140 start = (uint16_t *)(void *)lp;
141 end = (uint16_t *)(void *)&lp->d_partitions[npart];