/linux-2.4.37.9/drivers/sbus/char/ |
D | bpp.c | 111 static void set_pins(unsigned short pins, unsigned minor) in set_pins() argument 113 unsigned char bits = instances[minor].direction; /* == 0x20 */ in set_pins() 120 instances[minor].pp_state = bits; in set_pins() 122 outb_p(bits, base_addrs[minor]+2); in set_pins() 125 static unsigned short get_pins(unsigned minor) in get_pins() argument 129 unsigned value = instances[minor].pp_state; in get_pins() 135 value = inb_p(base_addrs[minor]+1); in get_pins() 257 static void set_pins(unsigned short pins, unsigned minor) in set_pins() argument 259 unsigned long base = base_addrs[minor]; in set_pins() 262 if (instances[minor].direction & 0x20) bits_tcr |= P_TCR_DIR; in set_pins() [all …]
|
/linux-2.4.37.9/drivers/char/ |
D | lp.c | 207 static int lp_reset(int minor) in lp_reset() argument 210 lp_claim_parport_or_block (&lp_table[minor]); in lp_reset() 211 w_ctr(minor, LP_PSELECP); in lp_reset() 213 w_ctr(minor, LP_PSELECP | LP_PINITP); in lp_reset() 214 retval = r_str(minor); in lp_reset() 215 lp_release_parport (&lp_table[minor]); in lp_reset() 219 static void lp_error (int minor) in lp_error() argument 223 if (LP_F(minor) & LP_ABORT) in lp_error() 226 polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE; in lp_error() 227 if (polling) lp_release_parport (&lp_table[minor]); in lp_error() [all …]
|
D | tipar.c | 75 # define minor(x) MINOR(x) macro 108 outbyte(int value, int minor) in outbyte() argument 110 w_dtr(minor, value); in outbyte() 114 inbyte(int minor) in inbyte() argument 116 return (r_str(minor)); in inbyte() 120 init_ti_parallel(int minor) in init_ti_parallel() argument 122 outbyte(3, minor); in init_ti_parallel() 144 put_ti_parallel(int minor, unsigned char data) in put_ti_parallel() argument 151 outbyte(2, minor); in put_ti_parallel() 155 } while (inbyte(minor) & 0x10); in put_ti_parallel() [all …]
|
D | raw.c | 72 int minor; in raw_open() local 79 minor = MINOR(inode->i_rdev); in raw_open() 85 if (minor == 0) { in raw_open() 96 down(&raw_devices[minor].mutex); in raw_open() 103 bdev = raw_devices[minor].binding; in raw_open() 119 if (raw_devices[minor].inuse++) in raw_open() 137 raw_devices[minor].sector_size = sector_size; in raw_open() 141 raw_devices[minor].sector_bits = sector_bits; in raw_open() 144 up(&raw_devices[minor].mutex); in raw_open() 151 int minor; in raw_release() local [all …]
|
D | misc.c | 85 written += sprintf(buf+written, "%3i %s\n",p->minor, p->name ?: ""); in misc_read_proc() 104 int minor = MINOR(inode->i_rdev); in misc_open() local 113 while ((c != &misc_list) && (c->minor != minor)) in misc_open() 120 sprintf(modname, "char-major-%d-%d", MISC_MAJOR, minor); in misc_open() 124 while ((c != &misc_list) && (c->minor != minor)) in misc_open() 178 while ((c != &misc_list) && (c->minor != misc->minor)) in misc_register() 185 if (misc->minor == MISC_DYNAMIC_MINOR) { in misc_register() 195 misc->minor = i; in misc_register() 197 if (misc->minor < DYNAMIC_MINORS) in misc_register() 198 misc_minors[misc->minor >> 3] |= 1 << (misc->minor & 7); in misc_register() [all …]
|
/linux-2.4.37.9/drivers/scsi/ |
D | sr_vendor.c | 61 #define VENDOR_ID (scsi_CDs[minor].vendor) 63 void sr_vendor_init(int minor) in sr_vendor_init() argument 68 char *vendor = scsi_CDs[minor].device->vendor; in sr_vendor_init() 69 char *model = scsi_CDs[minor].device->model; in sr_vendor_init() 73 if (scsi_CDs[minor].readcd_known) in sr_vendor_init() 77 if (scsi_CDs[minor].device->type == TYPE_WORM) { in sr_vendor_init() 93 scsi_CDs[minor].cdi.mask |= CDC_MULTI_SESSION; in sr_vendor_init() 106 int sr_set_blocklength(int minor, int blocklength) in sr_set_blocklength() argument 123 printk("sr%d: MODE SELECT 0x%x/%d\n", minor, density, blocklength); in sr_set_blocklength() 127 cmd[1] = (scsi_CDs[minor].device->scsi_level <= SCSI_2) ? in sr_set_blocklength() [all …]
|
D | sr_ioctl.c | 191 static int test_unit_ready(int minor) in test_unit_ready() argument 196 sr_cmd[1] = (scsi_CDs[minor].device->scsi_level <= SCSI_2) ? in test_unit_ready() 197 ((scsi_CDs[minor].device->lun) << 5) : 0; in test_unit_ready() 199 return sr_do_ioctl(minor, sr_cmd, NULL, 0, 1, SCSI_DATA_NONE, NULL); in test_unit_ready() 430 int sr_read_cd(int minor, unsigned char *dest, int lba, int format, int blksize) in sr_read_cd() argument 436 minor, lba, format, blksize); in sr_read_cd() 441 cmd[1] = (scsi_CDs[minor].device->scsi_level <= SCSI_2) ? in sr_read_cd() 442 (scsi_CDs[minor].device->lun << 5) : 0; in sr_read_cd() 463 return sr_do_ioctl(minor, cmd, dest, blksize, 0, SCSI_DATA_READ, NULL); in sr_read_cd() 470 int sr_read_sector(int minor, int lba, int blksize, unsigned char *dest) in sr_read_sector() argument [all …]
|
/linux-2.4.37.9/fs/partitions/ |
D | acorn.c | 41 unsigned long first_sector, int minor) in adfs_partition() argument 59 add_gd_partition(hd, minor, first_sector, nr_sects); in adfs_partition() 66 unsigned long first_sect, int minor, unsigned long nr_sects) in riscix_partition() argument 84 add_gd_partition(hd, minor++, first_sect, size); in riscix_partition() 88 add_gd_partition(hd, minor++, in riscix_partition() 97 add_gd_partition(hd, minor++, first_sect, nr_sects); in riscix_partition() 101 return minor; in riscix_partition() 107 unsigned long first_sect, int minor, unsigned long nr_sects) in linux_partition() argument 116 add_gd_partition(hd, minor++, first_sect, size); in linux_partition() 125 if (!(minor & mask)) in linux_partition() [all …]
|
D | check.c | 104 char *disk_name (struct gendisk *hd, int minor, char *buf) in disk_name() argument 107 unsigned int unit = (minor >> hd->minor_shift); in disk_name() 108 unsigned int part = (minor & ((1 << hd->minor_shift) -1 )); in disk_name() 110 if ((unit < hd->nr_real) && hd->part[minor].de) { in disk_name() 113 pos = devfs_generate_path (hd->part[minor].de, buf, 64); in disk_name() 189 int disk = minor >> hd->minor_shift; in disk_name() 190 int part = minor & (( 1 << hd->minor_shift) - 1); in disk_name() 207 void add_gd_partition(struct gendisk *hd, int minor, unsigned int start, in add_gd_partition() argument 214 hd->part[minor].start_sect = start; in add_gd_partition() 215 hd->part[minor].nr_sects = size; in add_gd_partition() [all …]
|
D | msdos.c | 81 *msdos_partition_name (struct gendisk *hd, int minor, char *buf) in msdos_partition_name() argument 84 sprintf(buf, "p%d", (minor & ((1 << hd->minor_shift) - 1))); in msdos_partition_name() 87 return disk_name(hd, minor, buf); in msdos_partition_name() 112 int minor, unsigned long first_size, int *current_minor) in extended_partition() argument 124 this_sector = first_sector = hd->part[minor].start_sect; in extended_partition() 203 minor = *current_minor; in extended_partition() 215 int minor, int *current_minor) in solaris_x86_partition() argument 219 long offset = hd->part[minor].start_sect; in solaris_x86_partition() 234 printk(" %s: <solaris:", msdos_partition_name(hd, minor, buf)); in solaris_x86_partition() 311 int minor, int *current_minor, char *name, int max_partitions) in do_bsd_partition() argument [all …]
|
D | atari.c | 44 unsigned long first_sector, int minor) in atari_partition() argument 46 int m_lim = minor + hd->max_p; in atari_partition() 61 hd_size = hd->part[minor - 1].nr_sects; in atari_partition() 77 for (; pi < &rs->part[4] && minor < m_lim; minor++, pi++) { in atari_partition() 87 add_gd_partition (hd, minor, be32_to_cpu(pi->st), in atari_partition() 112 add_gd_partition(hd, minor, in atari_partition() 129 minor++; in atari_partition() 130 if (minor >= m_lim) { in atari_partition() 143 for (; pi < &rs->icdpart[8] && minor < m_lim; minor++, pi++) { in atari_partition() 148 add_gd_partition (hd, minor, in atari_partition()
|
/linux-2.4.37.9/fs/intermezzo/ |
D | upcall.c | 123 int izo_upc_kml(int minor, __u64 offset, __u32 first_recno, __u64 length, __u32 last_recno, char *f… in izo_upc_kml() argument 130 if (!presto_lento_up(minor)) { in izo_upc_kml() 149 hdr->u_last_recno, minor); in izo_upc_kml() 151 error = izo_upc_upcall(minor, &size, hdr, ASYNCHRONOUS); in izo_upc_kml() 157 int izo_upc_kml_truncate(int minor, __u64 length, __u32 last_recno, char *fsetname) in izo_upc_kml_truncate() argument 164 if (!presto_lento_up(minor)) { in izo_upc_kml_truncate() 180 fsetname, hdr->u_length, hdr->u_last_recno, minor); in izo_upc_kml_truncate() 182 error = izo_upc_upcall(minor, &size, hdr, ASYNCHRONOUS); in izo_upc_kml_truncate() 188 int izo_upc_open(int minor, __u32 pathlen, char *path, char *fsetname, struct lento_vfs_context *in… in izo_upc_open() argument 195 if (!presto_lento_up(minor)) { in izo_upc_open() [all …]
|
D | sysctl.c | 139 int dosetopt(int minor, struct psdev_opt *opt) in dosetopt() argument 149 izo_channels[minor].uc_timeout = newval; in dosetopt() 153 izo_channels[minor].uc_hard = newval; in dosetopt() 157 izo_channels[minor].uc_no_filter = newval; in dosetopt() 161 izo_channels[minor].uc_no_journal = newval; in dosetopt() 165 izo_channels[minor].uc_no_upcall = newval; in dosetopt() 176 int errorval = izo_channels[minor].uc_errorval; in dosetopt() 186 izo_channels[minor].uc_errorval = newval; in dosetopt() 200 minor, opt->optname); in dosetopt() 209 int dogetopt(int minor, struct psdev_opt *opt) in dogetopt() argument [all …]
|
/linux-2.4.37.9/drivers/char/drm/ |
D | drm_stub.h | 46 int (*info_unregister)(int minor); 51 int minor = minor(inode->i_rdev); in DRM() local 55 if (minor < 0 || minor >=DRM_STUB_MAXCARDS) return -ENODEV; in DRM() 56 if (!DRM(stub_list) || !DRM(stub_list)[minor].fops) return -ENODEV; in DRM() 58 filp->f_op = fops_get(DRM(stub_list)[minor].fops); in DRM() 100 static int DRM(stub_putminor)(int minor) in DRM() 102 if (minor < 0 || minor >= DRM_STUB_MAXCARDS) return -1; in DRM() 103 DRM(stub_list)[minor].name = NULL; in DRM() 104 DRM(stub_list)[minor].fops = NULL; in DRM() 105 DRM(proc_cleanup)(minor, DRM(stub_root), in DRM() [all …]
|
/linux-2.4.37.9/arch/m68k/atari/ |
D | joystick.c | 62 int minor = DEVICE_NR(inode->i_rdev); in release_joystick() local 65 joystick[minor].active = 0; in release_joystick() 66 joystick[minor].ready = 0; in release_joystick() 76 int minor = DEVICE_NR(inode->i_rdev); in open_joystick() local 78 if (!DIGITAL_JOY(inode->i_rdev) || minor > 1) in open_joystick() 80 if (joystick[minor].active) in open_joystick() 82 joystick[minor].active = 1; in open_joystick() 83 joystick[minor].ready = 0; in open_joystick() 98 int minor = DEVICE_NR(inode->i_rdev); in read_joystick() local 102 if (!joystick[minor].ready) in read_joystick() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | lp.h | 107 #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */ argument 108 #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */ argument 109 #define LP_TIME(minor) lp_table[(minor)].time /* wait time */ argument 110 #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */ argument 111 #define LP_IRQ(minor) lp_table[(minor)].dev->port->irq /* interrupt # */ argument 114 #define LP_STAT(minor) lp_table[(minor)].stats /* statistics area */ argument
|
D | intermezzo_upcall.h | 15 int lento_permit(int minor, int pathlen, int fsetnamelen, char *path, char *fset); 16 int lento_opendir(int minor, int pathlen, char *path, int async); 17 int lento_kml(int minor, unsigned int offset, unsigned int first_recno, 20 int lento_open(int minor, int pathlen, char *path); 21 int lento_journal(int minor, char *page, int async); 22 int lento_release_permit(int minor, int cookie); 115 int minor; member 142 int lento_upcall(int minor, int read_size, int *rep_size,
|
D | kdev_t.h | 81 #define minor(d) MINOR(d) macro 98 int major, minor; in to_kdev_t() local 103 minor = (dev & 0xff); in to_kdev_t() 105 minor = (dev & 0xffff); in to_kdev_t() 108 minor = (dev & 0xff); in to_kdev_t() 110 return MKDEV(major, minor); in to_kdev_t()
|
/linux-2.4.37.9/drivers/ide/raid/ |
D | ataraid.c | 72 int minor; in ataraid_ioctl() local 73 minor = MINOR(inode->i_rdev)>>SHIFT; in ataraid_ioctl() 75 if ((ataraid_ops[minor])&&(ataraid_ops[minor]->ioctl)) in ataraid_ioctl() 76 return (ataraid_ops[minor]->ioctl)(inode,file,cmd,arg); in ataraid_ioctl() 82 int minor; in ataraid_open() local 83 minor = MINOR(inode->i_rdev)>>SHIFT; in ataraid_open() 85 if ((ataraid_ops[minor])&&(ataraid_ops[minor]->open)) in ataraid_open() 86 return (ataraid_ops[minor]->open)(inode,filp); in ataraid_open() 93 int minor; in ataraid_release() local 94 minor = MINOR(inode->i_rdev)>>SHIFT; in ataraid_release() [all …]
|
D | silraid.c | 47 int minor; member 100 unsigned int minor; in silraid_ioctl() local 106 minor = MINOR(inode->i_rdev)>>SHIFT; in silraid_ioctl() 115 return put_user(raid[minor].sectors , (unsigned long *) arg); in silraid_ioctl() 122 unsigned short bios_cyl = raid[minor].geom.cylinders; /* truncate */ in silraid_ioctl() 125 if (put_user(raid[minor].geom.heads, (byte *) &loc->heads)) return -EFAULT; in silraid_ioctl() 126 if (put_user(raid[minor].geom.sectors, (byte *) &loc->sectors)) return -EFAULT; in silraid_ioctl() 137 if (put_user(raid[minor].geom.heads, (byte *) &loc->heads)) return -EFAULT; in silraid_ioctl() 138 if (put_user(raid[minor].geom.sectors, (byte *) &loc->sectors)) return -EFAULT; in silraid_ioctl() 139 if (put_user(raid[minor].geom.cylinders, (unsigned int *) &loc->cylinders)) return -EFAULT; in silraid_ioctl() [all …]
|
/linux-2.4.37.9/net/netlink/ |
D | netlink_dev.c | 103 unsigned int minor = MINOR(inode->i_rdev); in netlink_open() local 108 if (minor>=MAX_LINKS) in netlink_open() 110 if (test_and_set_bit(minor, &open_map)) in netlink_open() 113 err = sock_create(PF_NETLINK, SOCK_RAW, minor, &sock); in netlink_open() 125 netlink_user[minor] = sock; in netlink_open() 129 clear_bit(minor, &open_map); in netlink_open() 135 unsigned int minor = MINOR(inode->i_rdev); in netlink_release() local 138 sock = netlink_user[minor]; in netlink_release() 139 netlink_user[minor] = NULL; in netlink_release() 140 clear_bit(minor, &open_map); in netlink_release() [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | usb-skeleton.c | 100 unsigned char minor; /* the starting minor number for this device */ member 189 minor: USB_SKEL_MINOR_BASE, 221 minor_table[dev->minor] = NULL; in skel_delete() 298 dbg(__FUNCTION__ " - minor %d", dev->minor); in skel_release() 350 dbg(__FUNCTION__ " - minor %d, count = %d", dev->minor, count); in skel_read() 393 dbg(__FUNCTION__ " - minor %d, count = %d", dev->minor, count); in skel_write() 472 dev->minor, cmd, arg); in skel_ioctl() 492 dbg(__FUNCTION__ " - minor %d", dev->minor); in skel_write_bulk_callback() 517 int minor; in skel_probe() local 531 for (minor = 0; minor < MAX_DEVICES; ++minor) { in skel_probe() [all …]
|
/linux-2.4.37.9/drivers/block/ |
D | blkpg.c | 70 int i, drive, first_minor, end_minor, minor; in add_partition() local 98 minor = first_minor + p->pno; in add_partition() 99 if (g->part[minor].nr_sects != 0) in add_partition() 109 g->part[minor].start_sect = pstart; in add_partition() 110 g->part[minor].nr_sects = plength; in add_partition() 112 g->sizes[minor] = (plength >> (BLOCK_SIZE_BITS - 9)); in add_partition() 130 int drive, first_minor, minor; in del_partition() local 144 minor = first_minor + p->pno; in del_partition() 145 if (drive >= g->nr_real || g->part[minor].nr_sects == 0) in del_partition() 149 devp = MKDEV(MAJOR(dev), minor); in del_partition() [all …]
|
/linux-2.4.37.9/drivers/telephony/ |
D | phonedev.c | 49 unsigned int minor = MINOR(inode->i_rdev); in phone_open() local 54 if (minor >= PHONE_NUM_DEVICES) in phone_open() 58 p = phone_device[minor]; in phone_open() 65 sprintf(modname, "char-major-%d-%d", PHONE_MAJOR, minor); in phone_open() 68 p = phone_device[minor]; in phone_open() 111 p->minor = i; in phone_register_device() 128 if (phone_device[pfd->minor] != pfd) in phone_unregister_device() 130 phone_device[pfd->minor] = NULL; in phone_unregister_device()
|
/linux-2.4.37.9/drivers/media/video/ |
D | tvmixer.c | 21 # define iminor(inode) minor(inode->i_rdev) 35 int minor; member 179 int i, minor = iminor(inode); in tvmixer_open() local 184 if (devices[i].minor == minor) { in tvmixer_open() 254 int i,minor; in tvmixer_clients() local 276 unregister_sound_mixer(devices[i].minor); in tvmixer_clients() 278 devices[i].minor = -1; in tvmixer_clients() 304 if ((minor = register_sound_mixer(&tvmixer_fops,devnr)) < 0) { in tvmixer_clients() 309 devices[i].minor = minor; in tvmixer_clients() 313 client->name,client->adapter->name,minor); in tvmixer_clients() [all …]
|