tag | line | file | source code |
loc | 781 | drivers/block/hd.c | struct hd_geometry *loc = (struct hd_geometry *) arg; |
loc | 792 | drivers/block/hd.c | if (!loc) return -EINVAL; |
loc | 793 | drivers/block/hd.c | err = verify_area(VERIFY_WRITE, loc, sizeof(*loc)); |
loc | 797 | drivers/block/hd.c | (char *) &loc->heads); |
loc | 799 | drivers/block/hd.c | (char *) &loc->sectors); |
loc | 801 | drivers/block/hd.c | (short *) &loc->cylinders); |
loc | 803 | drivers/block/hd.c | (long *) &loc->start); |
loc | 1838 | drivers/block/ide.c | struct hd_geometry *loc = (struct hd_geometry *) arg; |
loc | 1851 | drivers/block/ide.c | if (!loc || drive->media != ide_disk) return -EINVAL; |
loc | 1852 | drivers/block/ide.c | err = verify_area(VERIFY_WRITE, loc, sizeof(*loc)); |
loc | 1854 | drivers/block/ide.c | put_user(drive->bios_head, (byte *) &loc->heads); |
loc | 1855 | drivers/block/ide.c | put_user(drive->bios_sect, (byte *) &loc->sectors); |
loc | 1856 | drivers/block/ide.c | put_user(drive->bios_cyl, (unsigned short *) &loc->cylinders); |
loc | 1858 | drivers/block/ide.c | (unsigned long *) &loc->start); |
loc | 28 | drivers/scsi/sd_ioctl.c | struct hd_geometry *loc = (struct hd_geometry *) arg; |
loc | 32 | drivers/scsi/sd_ioctl.c | if (!loc) return -EINVAL; |
loc | 33 | drivers/scsi/sd_ioctl.c | error = verify_area(VERIFY_WRITE, loc, sizeof(*loc)); |
loc | 44 | drivers/scsi/sd_ioctl.c | put_user(diskinfo[0], &loc->heads); |
loc | 45 | drivers/scsi/sd_ioctl.c | put_user(diskinfo[1], &loc->sectors); |
loc | 46 | drivers/scsi/sd_ioctl.c | put_user(diskinfo[2], &loc->cylinders); |
loc | 47 | drivers/scsi/sd_ioctl.c | put_user(sd[MINOR(inode->i_rdev)].start_sect, &loc->start); |
loc | 848 | drivers/sound/gus_wave.c | unsigned long loc; |
loc | 874 | drivers/sound/gus_wave.c | loc = i << 10; |
loc | 876 | drivers/sound/gus_wave.c | for (n = loc - 1, failed = 0; n <= loc; n++) |
loc | 878 | drivers/sound/gus_wave.c | gus_poke (loc, 0xaa); |
loc | 879 | drivers/sound/gus_wave.c | if (gus_peek (loc) != 0xaa) |
loc | 882 | drivers/sound/gus_wave.c | gus_poke (loc, 0x55); |
loc | 883 | drivers/sound/gus_wave.c | if (gus_peek (loc) != 0x55) |