Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 158) sorted by relevance

1234567

/netbsd-src/external/gpl2/mkhybrid/dist/libhfs_iso/
H A Dhfs.c58 hfsvol *vol = 0; in hfs_mount() local
84 vol = check; in hfs_mount()
91 if (vol == 0) in hfs_mount()
93 vol = ALLOC(hfsvol, 1); in hfs_mount()
94 if (vol == 0) in hfs_mount()
100 vol->flags = 0; in hfs_mount()
101 vol->pnum = pnum; in hfs_mount()
102 vol->vstart = 0; in hfs_mount()
103 vol->vlen = 0; in hfs_mount()
104 vol->lpa = 0; in hfs_mount()
[all …]
H A Dlvolume.c36 int v_catsearch(hfsvol *vol, long parid, char *name, in v_catsearch() argument
51 found = bt_search(&vol->cat, pkey, np); in v_catsearch()
94 found = bt_search(&file->vol->ext, pkey, np); in v_extsearch()
115 int v_getthread(hfsvol *vol, long id, CatDataRec *thread, node *np, int type) in v_getthread() argument
123 found = v_catsearch(vol, id, "", thread, 0, np); in v_getthread()
174 int v_allocblocks(hfsvol *vol, ExtDescriptor *blocks) in v_allocblocks() argument
180 if (vol->mdb.drFreeBks == 0) in v_allocblocks()
189 start = vol->mdb.drAllocPtr; in v_allocblocks()
190 end = vol->mdb.drNmAlBlks; in v_allocblocks()
192 vbm = vol->vbm; in v_allocblocks()
[all …]
H A Dblock.c39 int b_readlb(hfsvol *vol, unsigned long num, block *bp) in b_readlb() argument
46 fprintf(stderr,"b_readlb: start block = %d\n", vol->vstart + num); in b_readlb()
49 hce = vol->hce; in b_readlb()
70 if (lseek(vol->fd, (vol->vstart + num) * HFS_BLOCKSZ, SEEK_SET) < 0) in b_readlb()
76 bytes = read(vol->fd, bp, HFS_BLOCKSZ); in b_readlb()
100 int b_writelb(hfsvol *vol, unsigned long num, block *bp) in b_writelb() argument
107 fprintf(stderr,"b_writelb: start block = %d\n", vol->vstart + num); in b_writelb()
110 hce = vol->hce; in b_writelb()
133 if (lseek(vol->fd, (vol->vstart + num) * HFS_BLOCKSZ, SEEK_SET) < 0) in b_writelb()
139 bytes = write(vol->fd, bp, HFS_BLOCKSZ); in b_writelb()
[all …]
H A Dlow.c36 int l_lockvol(hfsvol *vol) in l_lockvol() argument
42 lock.l_type = (vol->flags & HFS_READONLY) ? F_RDLCK : F_WRLCK; in l_lockvol()
47 if (fcntl(vol->fd, F_SETLK, &lock) < 0) in l_lockvol()
62 int l_readblock0(hfsvol *vol) in l_readblock0() argument
68 if (b_readlb(vol, 0, &b) < 0) in l_readblock0()
92 vol->vlen = rec.sbBlkCount; in l_readblock0()
94 if (l_readpm(vol) < 0) in l_readblock0()
100 vol->pnum = 0; in l_readblock0()
108 if (l_readpm(vol) < 0) in l_readblock0()
109 vol->pnum = 0; in l_readblock0()
[all …]
H A Dfile.c94 abnum = num / file->vol->lpa; in f_doblock()
95 blnum = num % file->vol->lpa; in f_doblock()
134 return func(file->vol, file->ext[i].xdrStABN + abnum, blnum, bp); in f_doblock()
153 hfsvol *vol = file->vol; in f_alloc() local
163 clumpsz = vol->mdb.drClpSiz; in f_alloc()
165 blocks.xdrNumABlks = clumpsz / vol->mdb.drAlBlkSiz; in f_alloc()
167 if (v_allocblocks(vol, &blocks) < 0) in f_alloc()
175 end = *pylen / vol->mdb.drAlBlkSiz; in f_alloc()
193 v_freeblocks(vol, &blocks); in f_alloc()
199 v_freeblocks(vol, &blocks); in f_alloc()
[all …]
H A Dvolume.h25 # define v_getdthread(vol, id, thread, np) \ argument
26 v_getthread(vol, id, thread, np, cdrThdRec)
27 # define v_getfthread(vol, id, thread, np) \ argument
28 v_getthread(vol, id, thread, np, cdrFThdRec)
/netbsd-src/sys/stand/efiboot/
H A Defifile.c40 intmax_t vol; in efi_file_parse() local
46 vol = strtoimax(fname + 2, &ep, 10); in efi_file_parse()
47 if (vol < 0 || vol >= efi_nvol || *ep != ':') in efi_file_parse()
49 *pvol = vol; in efi_file_parse()
74 UINTN vol; in efi_file_open() local
85 rv = efi_file_parse(fname, &vol, &path); in efi_file_open()
94 file_dp = FileDevicePath(efi_vol[vol], upath); in efi_file_open()
161 UINTN vol; in efi_file_path() local
168 for (vol = 0; vol < efi_nvol; vol++) { in efi_file_path()
169 if (efi_device_path_ncmp(dp, DevicePathFromHandle(efi_vol[vol]), depth) == 0) in efi_file_path()
[all …]
/netbsd-src/sys/arch/ews4800mips/stand/common/
H A Dustarfs.c132 int vol, cnt; in __block_read_n() local
135 vol = __block2volume(blk); in __block_read_n()
136 if (vol != __volume.current_volume) { in __block_read_n()
137 __change_volume(vol); in __block_read_n()
138 __volume.current_volume = vol; in __block_read_n()
141 cnt = __next_block(vol) - blk; in __block_read_n()
158 int vol; in __block_read() local
160 vol = __block2volume(blk); in __block_read()
162 if (vol != __volume.current_volume) { in __block_read()
163 __change_volume(vol); in __block_read()
[all …]
/netbsd-src/sys/dev/isa/
H A Daztech.c96 u_int8_t vol; member
172 sc->vol = 0; in az_attach()
204 sc->mute ? 0 : sc->vol); in az_set_mute()
207 sc->mute ? 0 : sc->vol); in az_set_mute()
213 u_int8_t vol; in az_set_freq() local
216 vol = sc->mute ? 0 : sc->vol; in az_set_freq()
228 lm700x_hardware_write(&sc->lm, reg, vol); in az_set_freq()
247 az_conv_vol(u_int8_t vol) in az_conv_vol() argument
249 if (vol < VOLUME_RATIO(1)) in az_conv_vol()
251 else if (vol >= VOLUME_RATIO(1) && vol < VOLUME_RATIO(2)) in az_conv_vol()
[all …]
H A Dradiotrack.c108 u_int8_t vol; member
185 sc->vol = 0; in rt_attach()
231 rt_set_mute(struct rt_softc *sc, int vol) in rt_set_mute() argument
244 val = sc->vol - vol; in rt_set_mute()
276 rt_set_mute(sc, sc->vol); in rt_set_freq()
311 rt_conv_vol(u_int8_t vol) in rt_conv_vol() argument
313 if (vol < VOLUME_RATIO(1)) in rt_conv_vol()
315 else if (vol >= VOLUME_RATIO(1) && vol < VOLUME_RATIO(2)) in rt_conv_vol()
317 else if (vol >= VOLUME_RATIO(2) && vol < VOLUME_RATIO(3)) in rt_conv_vol()
319 else if (vol >= VOLUME_RATIO(3) && vol < VOLUME_RATIO(4)) in rt_conv_vol()
[all …]
H A Dgus.c2934 struct ad1848_volume vol = {AUDIO_MAX_GAIN, AUDIO_MAX_GAIN}; in gus_init_cs4231() local
2950 ad1848_set_mic_gain(&sc->sc_codec.sc_ad1848, &vol); in gus_init_cs4231()
3206 struct ad1848_volume vol; in gusmax_mixer_get_port() local
3221 vol.left = vol.right = AUDIO_MAX_GAIN; in gusmax_mixer_get_port()
3223 vol.left = vol.right = AUDIO_MIN_GAIN; in gusmax_mixer_get_port()
3225 ad1848_from_vol(cp, &vol); in gusmax_mixer_get_port()
3248 struct ad1848_volume vol; in gus_mixer_get_port() local
3310 vol.left = ic->sc_setting[GUSMIX_CHAN_MASTER][ICSMIX_LEFT]; in gus_mixer_get_port()
3311 vol.right = ic->sc_setting[GUSMIX_CHAN_MASTER][ICSMIX_RIGHT]; in gus_mixer_get_port()
3312 if (ad1848_from_vol(cp, &vol)) in gus_mixer_get_port()
[all …]
H A Dradiotrack2.c103 u_int8_t vol; member
173 sc->vol = 0; in rtii_attach()
205 mute = (sc->mute || !sc->vol) ? RTII_MUTE : RTII_UNMUTE; in rtii_set_mute()
298 ri->volume = sc->vol ? 255 : 0; in rtii_get_info()
327 sc->vol = ri->volume ? 255 : 0; in rtii_set_info()
/netbsd-src/sys/dev/dec/
H A Dlk201_ws.c200 unsigned int vol; in lk201_bell() local
203 vol = 8 - bell->volume * 8 / 100; in lk201_bell()
204 if (vol > 7) in lk201_bell()
205 vol = 7; in lk201_bell()
207 vol = 3; in lk201_bell()
209 if (vol != lks->bellvol) { in lk201_bell()
211 send(lks, LK_PARAM_VOLUME(vol)); in lk201_bell()
212 lks->bellvol = vol; in lk201_bell()
238 lk201_set_keyclick(struct lk201_state *lks, int vol) in lk201_set_keyclick() argument
242 if (vol == 0) in lk201_set_keyclick()
[all …]
/netbsd-src/external/gpl2/mkhybrid/dist/
H A Dvolume.c156 hfsvol *vol; /* Mac volume */ in FDECL2() local
228 if ((vol = hfs_mount(hce, 0, 0)) == 0) in FDECL2()
235 vol_save = vol; in FDECL2()
241 ret = copy_to_mac_vol(vol, dpnt); in FDECL2()
249 ret = make_desktop(vol, last_extent*BLK_CONV); in FDECL2()
254 if (hfs_flush(vol) < 0) in FDECL2()
258 if (hfs_umount(vol, last_extent*BLK_CONV) < 0) in FDECL2()
274 int FDECL2(copy_to_mac_vol, hfsvol *, vol, struct directory *, node) in FDECL2() argument
292 if ((id = hfs_getcwd(vol)) == 0) in FDECL2()
327 if ((hfs_create(vol, ent->name, ent->type, ent->creator)) < 0) in FDECL2()
[all …]
H A Ddesktop.c45 make_desktop(hfsvol *vol, int end) in make_desktop() argument
70 if(hfs_create(vol, DB, ent.type, ent.creator) == 0) in make_desktop()
99 if((hfp = hfs_open(vol, DB)) == 0) in make_desktop()
120 if(hfs_setattr(vol, DB, &ent) < 0) in make_desktop()
129 hfs_create(vol, DF, ent.type, ent.creator); in make_desktop()
132 if (hfs_setattr(vol, DF, &ent) < 0) in make_desktop()
/netbsd-src/sys/dev/ic/
H A Dad1848.c199 ad1848_to_vol(mixer_ctrl_t *cp, struct ad1848_volume *vol) in ad1848_to_vol() argument
203 vol->left = in ad1848_to_vol()
204 vol->right = cp->un.value.level[AUDIO_MIXER_LEVEL_MONO]; in ad1848_to_vol()
208 vol->left = cp->un.value.level[AUDIO_MIXER_LEVEL_LEFT]; in ad1848_to_vol()
209 vol->right = cp->un.value.level[AUDIO_MIXER_LEVEL_RIGHT]; in ad1848_to_vol()
216 ad1848_from_vol(mixer_ctrl_t *cp, struct ad1848_volume *vol) in ad1848_from_vol() argument
220 cp->un.value.level[AUDIO_MIXER_LEVEL_MONO] = vol->left; in ad1848_from_vol()
224 cp->un.value.level[AUDIO_MIXER_LEVEL_LEFT] = vol->left; in ad1848_from_vol()
225 cp->un.value.level[AUDIO_MIXER_LEVEL_RIGHT] = vol->right; in ad1848_from_vol()
656 struct ad1848_volume vol; in ad1848_mixer_get_port() local
[all …]
/netbsd-src/sys/fs/hfs/
H A Dhfs_subr.c152 hfs_volume* vol, in hfs_libcb_opendev() argument
165 if (vol == NULL || devname == NULL) { in hfs_libcb_opendev()
175 vol->cbdata = cbdata; in hfs_libcb_opendev()
180 mode = vol->readonly ? FREAD : FREAD|FWRITE; in hfs_libcb_opendev()
210 (void)VOP_CLOSE(cbdata->devvp, vol->readonly ? FREAD : in hfs_libcb_opendev()
215 vol->cbdata = NULL; in hfs_libcb_opendev()
245 hfs_volume* vol, in hfs_libcb_read() argument
256 if (vol == NULL || outbytes == NULL) in hfs_libcb_read()
259 cbdata = (hfs_libcb_data*)vol->cbdata; in hfs_libcb_read()
274 physoffset = offset + vol->offset; in hfs_libcb_read()
/netbsd-src/external/gpl2/lvm2/dist/include/
H A Dlocking.h30 int remote_lock_held(const char *vol);
46 int lock_vol(struct cmd_context *cmd, const char *vol, uint32_t flags);
128 #define unlock_vg(cmd, vol) lock_vol(cmd, vol, LCK_VG_UNLOCK) argument
129 #define unlock_and_release_vg(cmd, vg, vol) \ argument
131 unlock_vg(cmd, vol); \
/netbsd-src/external/gpl2/lvm2/dist/lib/locking/
H A Dlocking.h30 int remote_lock_held(const char *vol);
46 int lock_vol(struct cmd_context *cmd, const char *vol, uint32_t flags);
128 #define unlock_vg(cmd, vol) lock_vol(cmd, vol, LCK_VG_UNLOCK) argument
129 #define unlock_and_release_vg(cmd, vg, vol) \ argument
131 unlock_vg(cmd, vol); \
H A Dlocking.c386 int lock_vol(struct cmd_context *cmd, const char *vol, uint32_t flags) in lock_vol() argument
403 log_debug("Internal error: %s: LCK_NONE lock requested", vol); in lock_vol()
417 if (vol[0] != '#' && in lock_vol()
420 !lvmcache_verify_lock_order(vol)) in lock_vol()
425 if (!check_lvm1_vg_inactive(cmd, vol)) in lock_vol()
438 strncpy(resource, vol, sizeof(resource)); in lock_vol()
524 int remote_lock_held(const char *vol) in remote_lock_held() argument
537 if (!_locking.query_resource(vol, &mode)) { in remote_lock_held()
/netbsd-src/sys/dev/i2c/
H A Daxp809.c206 u_int vol, reg_val; in axp809_set_voltage() local
218 vol = c->c_min; in axp809_set_voltage()
220 for (nstep = 0; nstep < c->c_step1cnt && vol < min; nstep++) { in axp809_set_voltage()
222 vol += c->c_step1; in axp809_set_voltage()
224 for (nstep = 0; nstep < c->c_step2cnt && vol < min; nstep++) { in axp809_set_voltage()
226 vol += c->c_step2; in axp809_set_voltage()
229 if (vol > max) in axp809_set_voltage()
/netbsd-src/sys/arch/mac68k/dev/
H A Dite_compat.c170 if (bp->vol < 0 || bp->vol > 100) in iteioctl()
175 ite_bell_volume = bp->vol; in iteioctl()
184 ite_bell_volume = bp->vol; in iteioctl()
/netbsd-src/sys/compat/linux/common/
H A Dlinux_cdrom.c229 t_vol.vol[0] = l_volctrl.channel0; in linux_ioctl_cdrom()
230 t_vol.vol[1] = l_volctrl.channel1; in linux_ioctl_cdrom()
231 t_vol.vol[2] = l_volctrl.channel2; in linux_ioctl_cdrom()
232 t_vol.vol[3] = l_volctrl.channel3; in linux_ioctl_cdrom()
243 l_volctrl.channel0 = t_vol.vol[0]; in linux_ioctl_cdrom()
244 l_volctrl.channel1 = t_vol.vol[1]; in linux_ioctl_cdrom()
245 l_volctrl.channel2 = t_vol.vol[2]; in linux_ioctl_cdrom()
246 l_volctrl.channel3 = t_vol.vol[3]; in linux_ioctl_cdrom()
/netbsd-src/sys/dev/pci/
H A Dgtp.c97 u_int8_t vol; member
163 sc->vol = 0; in gtp_attach()
186 ri->volume = sc->vol ? 255 : 0; in gtp_get_info()
207 sc->vol = ri->volume ? 255 : 0; in gtp_set_info()
231 if (sc->mute || !sc->vol) in gtp_set_mute()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/recipes/
H A D90-test_store.t440 my $vol;
445 ($vol, $dir, $file) = File::Spec->splitpath($file, $isdir // 0);
472 if ($vol ne '') {
473 $vol =~ s|:||g if ($^O eq "VMS");
475 $dir = '/' . $vol . $dir;

1234567