/linux-2.4.37.9/fs/ntfs/ |
D | super.c | 74 int ntfs_init_volume(ntfs_volume *vol, char *boot) in ntfs_init_volume() argument 81 vol->at_standard_information = 0x10; in ntfs_init_volume() 82 vol->at_attribute_list = 0x20; in ntfs_init_volume() 83 vol->at_file_name = 0x30; in ntfs_init_volume() 84 vol->at_volume_version = 0x40; in ntfs_init_volume() 85 vol->at_security_descriptor = 0x50; in ntfs_init_volume() 86 vol->at_volume_name = 0x60; in ntfs_init_volume() 87 vol->at_volume_information = 0x70; in ntfs_init_volume() 88 vol->at_data = 0x80; in ntfs_init_volume() 89 vol->at_index_root = 0x90; in ntfs_init_volume() [all …]
|
D | fs.c | 79 attr = ntfs_find_attr(ino, ino->vol->at_data, NULL); in ntfs_read() 92 error = ntfs_read_attr(ino, ino->vol->at_data, NULL, *off, &io); in ntfs_read() 123 data = ntfs_find_attr(ntfs_ino, ntfs_ino->vol->at_data, NULL); in ntfs_write() 345 static void init_ntfs_super_block(ntfs_volume* vol) in init_ntfs_super_block() argument 347 vol->uid = vol->gid = 0; in init_ntfs_super_block() 348 vol->umask = 0077; in init_ntfs_super_block() 349 vol->ngt = ngt_nt; in init_ntfs_super_block() 350 vol->nls_map = (void*)-1; in init_ntfs_super_block() 351 vol->mft_zone_multiplier = -1; in init_ntfs_super_block() 355 static int parse_options(ntfs_volume *vol, char *opt) in parse_options() argument [all …]
|
D | support.c | 111 int ntfs_read_mft_record(ntfs_volume *vol, int mftno, char *buf) in ntfs_read_mft_record() argument 119 ntfs_memcpy(buf, vol->mft, vol->mft_record_size); in ntfs_read_mft_record() 122 if (!vol->mft_ino) in ntfs_read_mft_record() 131 io.size = vol->mft_record_size; in ntfs_read_mft_record() 135 vol->mft_record_size_bits, in ntfs_read_mft_record() 136 (__s64)mftno << vol->mft_record_size_bits); in ntfs_read_mft_record() 137 error = ntfs_read_attr(vol->mft_ino, vol->at_data, NULL, in ntfs_read_mft_record() 138 (__s64)mftno << vol->mft_record_size_bits, &io); in ntfs_read_mft_record() 139 if (error || (io.size != vol->mft_record_size)) { in ntfs_read_mft_record() 142 vol->mft_record_size); in ntfs_read_mft_record() [all …]
|
D | dir.c | 119 ntfs_volume *vol = walk->dir->vol; in ntfs_allocate_index_block() local 122 allocation = ntfs_find_attr(walk->dir, vol->at_index_allocation, I30); in ntfs_allocate_index_block() 126 error = ntfs_create_attr(walk->dir, vol->at_index_allocation, in ntfs_allocate_index_block() 131 error = ntfs_create_attr(walk->dir, vol->at_bitmap, I30, bmp, in ntfs_allocate_index_block() 136 bitmap = ntfs_find_attr(walk->dir, vol->at_bitmap, I30); in ntfs_allocate_index_block() 153 error = ntfs_read_attr(walk->dir, vol->at_bitmap, I30, 0, &io); in ntfs_allocate_index_block() 173 error = ntfs_read_attr(walk->dir, vol->at_bitmap, I30, i, &io); in ntfs_allocate_index_block() 184 error = ntfs_write_attr(walk->dir, vol->at_bitmap, I30, i, &io); in ntfs_allocate_index_block() 195 if (walk->newblock * vol->cluster_size >= size) { in ntfs_allocate_index_block() 199 int nr_fix = (s1 >> vol->sector_size) + 1; in ntfs_allocate_index_block() [all …]
|
D | super.h | 11 int ntfs_get_volumesize(ntfs_volume *vol, __s64 *vol_size); 13 int ntfs_init_volume(ntfs_volume *vol, char *boot); 15 int ntfs_load_special_files(ntfs_volume *vol); 17 int ntfs_release_volume(ntfs_volume *vol); 23 int ntfs_allocate_clusters(ntfs_volume *vol, ntfs_cluster_t *location, 27 int ntfs_deallocate_cluster_run(const ntfs_volume *vol, 30 int ntfs_deallocate_clusters(const ntfs_volume *vol, const ntfs_runlist *rl,
|
D | inode.c | 217 mft = ntfs_malloc(ino->vol->mft_record_size); in parse_attributes() 236 error = ntfs_read_mft_record(ino->vol, mftno, mft); in parse_attributes() 249 ino->vol, /* ntfs volume */ in parse_attributes() 303 mft2 = ntfs_malloc(ino->vol->mft_record_size); in parse_attributes() 308 ntfs_memcpy(mft2, mft, ino->vol->mft_record_size); in parse_attributes() 313 if (NTFS_GETU32(alist2 + 0x0) < ino->vol->at_data) { in parse_attributes() 318 if (NTFS_GETU32(alist2 + 0x0) > ino->vol->at_data) { in parse_attributes() 333 error2 = ntfs_read_mft_record(ino->vol, mftno2, mft2); in parse_attributes() 343 ino->vol, /* ntfs volume */ in parse_attributes() 385 ntfs_volume *vol = ino->vol; in ntfs_load_attributes() local [all …]
|
D | attr.c | 38 ntfs_u8* ntfs_find_attr_in_mft_rec(ntfs_volume *vol, ntfs_u8 *m, __u32 type, in ntfs_find_attr_in_mft_rec() argument 45 for (; a >= m && a <= m + vol->mft_record_size; in ntfs_find_attr_in_mft_rec() 57 a[9] /* name_length */, ic, vol->upcase, in ntfs_find_attr_in_mft_rec() 58 vol->upcase_length)) { in ntfs_find_attr_in_mft_rec() 61 rc = ntfs_collate_names(vol->upcase, vol->upcase_length, in ntfs_find_attr_in_mft_rec() 74 rc = ntfs_collate_names(vol->upcase, vol->upcase_length, in ntfs_find_attr_in_mft_rec() 119 1 /* ignore case*/, ino->vol->upcase, in ntfs_new_attr() 120 ino->vol->upcase_length)) { in ntfs_new_attr() 123 rc = ntfs_collate_names(ino->vol->upcase, in ntfs_new_attr() 124 ino->vol->upcase_length, a->name, in ntfs_new_attr() [all …]
|
D | macros.h | 12 #define NTFS_FD(vol) ((vol)->u.fd) argument 14 #define NTFS_SB(vol) ((struct super_block*)(vol)->sb) argument
|
D | util.c | 146 int ntfs_encodeuni(ntfs_volume *vol, ntfs_u16 *in, int in_len, char **out, in ntfs_encodeuni() argument 149 if (vol->nls_map) in ntfs_encodeuni() 150 return ntfs_dupuni2map(vol, in, in_len, out, out_len); in ntfs_encodeuni() 155 int ntfs_decodeuni(ntfs_volume *vol, char *in, int in_len, ntfs_u16 **out, in ntfs_decodeuni() argument 158 if (vol->nls_map) in ntfs_decodeuni() 159 return ntfs_dupmap2uni(vol, in, in_len, out, out_len); in ntfs_decodeuni()
|
D | support.h | 77 int ntfs_read_mft_record(ntfs_volume *vol, int mftno, char *buf); 84 int ntfs_dupuni2map(ntfs_volume *vol, ntfs_u16 *in, int in_len, char **out, 87 int ntfs_dupmap2uni(ntfs_volume *vol, char* in, int in_len, ntfs_u16 **out,
|
D | util.h | 44 int ntfs_encodeuni(ntfs_volume *vol, ntfs_u16 *in, int in_len, char **out, 46 int ntfs_decodeuni(ntfs_volume *vol, char *in, int in_len, ntfs_u16 **out,
|
D | inode.h | 17 int ntfs_init_inode(ntfs_inode *ino, ntfs_volume *vol, int inum); 21 int ntfs_check_mft_record(ntfs_volume *vol, char *record);
|
/linux-2.4.37.9/drivers/sound/ |
D | aci.c | 240 int vol, ret, uservol, buf; in setvolume() local 245 vol = uservol & 0xff; in setvolume() 246 if (vol > 100) in setvolume() 247 vol = 100; in setvolume() 248 vol = SCALE(100, 0x20, vol); in setvolume() 249 if ((buf=aci_write_cmd(left_index, 0x20 - vol))<0) in setvolume() 251 ret = SCALE(0x20, 100, vol); in setvolume() 255 vol = (uservol >> 8) & 0xff; in setvolume() 256 if (vol > 100) in setvolume() 257 vol = 100; in setvolume() [all …]
|
D | ics2101.c | 37 static int scale_vol(int vol) in scale_vol() argument 47 if (vol < 0) in scale_vol() 48 vol = 0; in scale_vol() 49 if (vol > 100) in scale_vol() 50 vol = 100; in scale_vol() 51 vol = (31 * vol + 50) / 100; in scale_vol() 53 if (vol) in scale_vol() 55 while (vol < 16) in scale_vol() 57 vol <<= 1; in scale_vol() 60 vol -= 16; in scale_vol() [all …]
|
D | gus_vol.c | 129 unsigned short gus_linear_vol(int vol, int mainvol) in gus_linear_vol() argument 133 if (vol <= 0) in gus_linear_vol() 134 vol = 0; in gus_linear_vol() 135 else if (vol >= 127) in gus_linear_vol() 136 vol = 127; in gus_linear_vol() 152 return gus_linearvol[(((vol * mainvol) / 127) * mixer_mainvol) / 100]; in gus_linear_vol()
|
D | opl3sa2.c | 259 unsigned char vol; in opl3sa2_set_volume() local 261 vol = scale[left]; in opl3sa2_set_volume() 265 vol |= 0x80; in opl3sa2_set_volume() 267 opl3sa2_write(devc->cfg_port, OPL3SA2_MASTER_LEFT, vol); in opl3sa2_set_volume() 269 vol = scale[right]; in opl3sa2_set_volume() 273 vol |= 0x80; in opl3sa2_set_volume() 275 opl3sa2_write(devc->cfg_port, OPL3SA2_MASTER_RIGHT, vol); in opl3sa2_set_volume() 281 unsigned char vol = 0x1F; in opl3sa2_set_mic() local 284 vol = 0x1F - (unsigned char) (32 * level / 101); in opl3sa2_set_mic() 288 vol |= 0x80; in opl3sa2_set_mic() [all …]
|
D | gus_wave.c | 187 extern unsigned short gus_linear_vol(int vol, int mainvol); 452 static void gus_voice_volume(unsigned int vol) in gus_voice_volume() argument 455 gus_write16(0x09, (unsigned short) (vol << 4)); in gus_voice_volume() 555 unsigned vol, prev_vol, phase; in step_envelope() local 580 vol = voices[voice].initial_volume * voices[voice].env_offset[phase] / 255; in step_envelope() 594 if (((vol - prev_vol) / 64) == 0) /* No significant volume change */ in step_envelope() 600 if (vol > prev_vol) in step_envelope() 602 if (vol >= (4096 - 64)) in step_envelope() 603 vol = 4096 - 65; in step_envelope() 604 gus_ramp_range(0, vol); in step_envelope() [all …]
|
D | ite8172.c | 768 unsigned short vol, mute; in it8172_interrupt() local 788 vol = inw(s->io+IT_AC_PCMOV); in it8172_interrupt() 789 mute = vol & PCMOV_PCMOM; in it8172_interrupt() 790 vol &= PCMOV_PCMLCG_MASK; in it8172_interrupt() 791 if ((vs & VS_VUP) && vol > 0) in it8172_interrupt() 792 vol--; in it8172_interrupt() 793 if ((vs & VS_VDP) && vol < 0x1f) in it8172_interrupt() 794 vol++; in it8172_interrupt() 795 vol |= (vol << PCMOV_PCMRCG_BIT); in it8172_interrupt() 797 vol |= (mute ^ PCMOV_PCMOM); in it8172_interrupt() [all …]
|
D | swarm_cs4297a.c | 285 unsigned short vol[10]; member 1301 return put_user(s->mix.vol[vidx - 1], (int *) arg); in mixer_ioctl() 1364 s->mix.vol[8] = ((unsigned int) r << 8) | l; in mixer_ioctl() 1366 s->mix.vol[8] = val; in mixer_ioctl() 1368 return put_user(s->mix.vol[8], (int *) arg); in mixer_ioctl() 1394 s->mix.vol[6] = l << 8; in mixer_ioctl() 1396 s->mix.vol[6] = val; in mixer_ioctl() 1398 return put_user(s->mix.vol[6], (int *) arg); in mixer_ioctl() 1420 s->mix.vol[7] = ((unsigned int) r << 8) | l; in mixer_ioctl() 1422 s->mix.vol[7] = val; in mixer_ioctl() [all …]
|
/linux-2.4.37.9/drivers/media/radio/ |
D | radio-typhoon.c | 64 static void typhoon_setvol_generic(struct typhoon_device *dev, int vol); 70 static int typhoon_setvol(struct typhoon_device *dev, int vol); 78 static void typhoon_setvol_generic(struct typhoon_device *dev, int vol) in typhoon_setvol_generic() argument 80 vol >>= 14; /* Map 16 bit to 2 bit */ in typhoon_setvol_generic() 81 vol &= 3; in typhoon_setvol_generic() 82 outb_p(vol / 2, dev->iobase); /* Set the volume, high bit. */ in typhoon_setvol_generic() 83 outb_p(vol % 2, dev->iobase + 2); /* Set the volume, low bit. */ in typhoon_setvol_generic() 141 static int typhoon_setvol(struct typhoon_device *dev, int vol) in typhoon_setvol() argument 143 if (dev->muted && vol != 0) { /* user is unmuting the card */ in typhoon_setvol() 144 dev->curvol = vol; in typhoon_setvol() [all …]
|
D | radio-terratec.c | 90 static int tt_setvol(struct tt_device *dev, int vol) in tt_setvol() argument 95 if(vol == dev->curvol) { /* requested volume = current */ in tt_setvol() 98 cardWriteVol(vol); /* enable card */ in tt_setvol() 104 if(vol == 0) { /* volume = 0 means mute the card */ in tt_setvol() 106 dev->curvol = vol; /* track the volume state! */ in tt_setvol() 112 cardWriteVol(vol); in tt_setvol() 114 dev->curvol = vol; in tt_setvol()
|
D | radio-aimslab.c | 97 static int rt_setvol(struct rt_device *dev, int vol) in rt_setvol() argument 103 if(vol == dev->curvol) { /* requested volume = current */ in rt_setvol() 112 if(vol == 0) { /* volume = 0 means mute the card */ in rt_setvol() 122 if(vol > dev->curvol) in rt_setvol() 123 for(i = dev->curvol; i < vol; i++) in rt_setvol() 126 for(i = dev->curvol; i > vol; i--) in rt_setvol() 129 dev->curvol = vol; in rt_setvol()
|
D | radio-zoltrix.c | 64 static int zol_setvol(struct zol_device *dev, int vol) in zol_setvol() argument 66 dev->curvol = vol; in zol_setvol() 71 if (vol == 0) { in zol_setvol()
|
/linux-2.4.37.9/drivers/sound/emu10k1/ |
D | efxmgr.c | 170 void emu10k1_set_volume_gpr(struct emu10k1_card *card, int addr, s32 vol, int scale) in emu10k1_set_volume_gpr() argument 185 vol = (100 - vol ) * scale / 100; in emu10k1_set_volume_gpr() 188 vol = (vol >= scale) ? 0 : (log2lin[vol & 3] >> (vol >> 2)); in emu10k1_set_volume_gpr() 191 emu10k1_set_control_gpr(card, addr, vol, 0); in emu10k1_set_volume_gpr()
|
/linux-2.4.37.9/drivers/net/ |
D | dgrs_i82596.h | 53 vol struct _I596_TBD *next; 104 vol struct _I596_RBD *next; /* Next buffer descriptor in list */ 135 vol struct _I596_RFD *next; 136 vol struct _I596_RBD *rbdp;
|