Home
last modified time | relevance | path

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

123

/drivers/mtd/ubi/
A Dupd.c94 vol->last_eb_bytes = vol->usable_leb_size; in clear_update_marker()
120 ubi_assert(!vol->updating && !vol->changing_leb); in ubi_start_update()
171 ubi_assert(!vol->updating && !vol->changing_leb); in ubi_start_leb_change()
271 count, vol->upd_bytes, vol->upd_received); in ubi_more_update_data()
277 if (vol->upd_received + count > vol->upd_bytes) in ubi_more_update_data()
350 if (vol->upd_received == vol->upd_bytes) { in ubi_more_update_data()
386 count, vol->upd_bytes, vol->upd_received); in ubi_more_leb_change_data()
392 count = vol->upd_bytes - vol->upd_received; in ubi_more_leb_change_data()
400 if (vol->upd_received == vol->upd_bytes) { in ubi_more_leb_change_data()
403 memset(vol->upd_buf + vol->upd_bytes, 0xFF, in ubi_more_leb_change_data()
[all …]
A Dvmt.c251 memcpy(vol->name, req->name, vol->name_len); in ubi_create_volume()
272 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume()
273 vol->last_eb_bytes = vol->usable_leb_size; in ubi_create_volume()
334 cdev_device_del(&vol->cdev, &vol->dev); in ubi_create_volume()
363 struct ubi_volume *vol = desc->vol; in ubi_remove_volume() local
411 cdev_device_del(&vol->cdev, &vol->dev); in ubi_remove_volume()
448 struct ubi_volume *vol = desc->vol; in ubi_resize_volume() local
596 struct ubi_volume *vol = re->desc->vol; in ubi_rename_volumes() local
702 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in self_check_volume()
730 if (vol->upd_marker && vol->corrupted) { in self_check_volume()
[all …]
A Dkapi.c155 if (!vol || vol->is_dead) in ubi_open_volume()
173 if (vol->exclusive || vol->writers || vol->readers || in ubi_open_volume()
180 if (vol->metaonly || vol->exclusive) in ubi_open_volume()
189 desc->vol = vol; in ubi_open_volume()
261 if (vol && len == vol->name_len && !strcmp(name, vol->name)) { in ubi_open_volume_nm()
348 struct ubi_volume *vol = desc->vol; in ubi_close_volume() local
392 struct ubi_volume *vol = desc->vol; in leb_read_sanity_check() local
446 struct ubi_volume *vol = desc->vol; in ubi_leb_read() local
486 struct ubi_volume *vol = desc->vol; in ubi_leb_read_sg() local
537 struct ubi_volume *vol = desc->vol; in ubi_leb_write() local
[all …]
A Dcdev.c47 struct ubi_volume *vol = desc->vol; in get_exclusive() local
50 users = vol->readers + vol->writers + vol->exclusive + vol->metaonly; in get_exclusive()
56 vol->readers = vol->writers = vol->metaonly = 0; in get_exclusive()
73 struct ubi_volume *vol = desc->vol; in revoke_exclusive() local
76 ubi_assert(vol->readers == 0 && vol->writers == 0 && vol->metaonly == 0); in revoke_exclusive()
120 struct ubi_volume *vol = desc->vol; in vol_cdev_release() local
133 vol->upd_received, vol->upd_bytes, vol->ubi->ubi_num, in vol_cdev_release()
146 struct ubi_volume *vol = desc->vol; in vol_cdev_llseek() local
175 struct ubi_volume *vol = desc->vol; in vol_cdev_read() local
252 struct ubi_volume *vol = desc->vol; in vol_cdev_direct_write() local
[all …]
A Dvtbl.c128 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes() local
535 if (!vol) in init_volumes()
546 memcpy(vol->name, vtbl[i].name, vol->name_len); in init_volumes()
547 vol->name[vol->name_len] = '\0'; in init_volumes()
586 vol->used_ebs = vol->reserved_pebs; in init_volumes()
587 vol->last_eb_bytes = vol->usable_leb_size; in init_volumes()
589 (long long)vol->used_ebs * vol->usable_leb_size; in init_volumes()
627 if (!vol) in init_volumes()
636 vol->used_ebs = vol->reserved_pebs; in init_volumes()
637 vol->last_eb_bytes = vol->reserved_pebs; in init_volumes()
[all …]
A Deba.c176 ubi_assert(dst && vol && vol->eba_tbl); in ubi_eba_copy_table()
178 src = vol->eba_tbl; in ubi_eba_copy_table()
194 vol->eba_tbl = tbl; in ubi_eba_replace_table()
504 if (!vol->checkmap || test_bit(lnum, vol->checkmap)) in check_mapping()
1312 struct ubi_volume *vol; in ubi_eba_copy_leb() local
1339 if (!vol) { in ubi_eba_copy_leb()
1533 struct ubi_volume *vol; in self_check_eba() local
1550 vol = ubi->volumes[i]; in self_check_eba()
1551 if (!vol) in self_check_eba()
1645 if (!vol) in ubi_eba_init()
[all …]
A Dubi.h380 struct ubi_volume *vol; member
847 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol);
848 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol);
851 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol,
868 static inline bool ubi_leb_valid(struct ubi_volume *vol, int lnum) in ubi_leb_valid() argument
870 return lnum >= 0 && lnum < vol->reserved_pebs; in ubi_leb_valid()
874 struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol,
880 void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum,
882 bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum);
883 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol,
[all …]
A Ddebug.c128 pr_err("\tvol_id %d\n", vol->vol_id); in ubi_dump_vol_info()
130 pr_err("\talignment %d\n", vol->alignment); in ubi_dump_vol_info()
131 pr_err("\tdata_pad %d\n", vol->data_pad); in ubi_dump_vol_info()
132 pr_err("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info()
133 pr_err("\tname_len %d\n", vol->name_len); in ubi_dump_vol_info()
135 pr_err("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info()
142 if (vol->name_len <= UBI_VOL_NAME_MAX && in ubi_dump_vol_info()
143 strnlen(vol->name, vol->name_len + 1) == vol->name_len) { in ubi_dump_vol_info()
144 pr_err("\tname %s\n", vol->name); in ubi_dump_vol_info()
147 vol->name[0], vol->name[1], vol->name[2], in ubi_dump_vol_info()
[all …]
A Dmisc.c52 struct ubi_volume *vol = ubi->volumes[vol_id]; in ubi_check_volume() local
54 if (vol->vol_type != UBI_STATIC_VOLUME) in ubi_check_volume()
57 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume()
61 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume()
66 if (i == vol->used_ebs - 1) in ubi_check_volume()
67 size = vol->last_eb_bytes; in ubi_check_volume()
69 size = vol->usable_leb_size; in ubi_check_volume()
71 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1); in ubi_check_volume()
A Dfastmap.c1106 struct ubi_device *ubi = vol->ubi; in ubi_fastmap_init_checkmap()
1112 if (!vol->checkmap) in ubi_fastmap_init_checkmap()
1120 bitmap_free(vol->checkmap); in ubi_fastmap_destroy_checkmap()
1142 struct ubi_volume *vol; in ubi_write_fastmap() local
1292 vol = ubi->volumes[i]; in ubi_write_fastmap()
1294 if (!vol) in ubi_write_fastmap()
1304 fvh->vol_id = cpu_to_be32(vol->vol_id); in ubi_write_fastmap()
1305 fvh->vol_type = vol->vol_type; in ubi_write_fastmap()
1311 vol->vol_type == UBI_STATIC_VOLUME); in ubi_write_fastmap()
1317 for (j = 0; j < vol->reserved_pebs; j++) { in ubi_write_fastmap()
[all …]
/drivers/media/radio/
A Dradio-typhoon.c111 static int typhoon_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in typhoon_s_mute_volume() argument
116 vol = 0; in typhoon_s_mute_volume()
117 vol >>= 14; /* Map 16 bit to 2 bit */ in typhoon_s_mute_volume()
118 vol &= 3; in typhoon_s_mute_volume()
119 outb_p(vol / 2, isa->io); /* Set the volume, high bit. */ in typhoon_s_mute_volume()
120 outb_p(vol % 2, isa->io + 2); /* Set the volume, low bit. */ in typhoon_s_mute_volume()
122 if (vol == 0 && !ty->muted) { in typhoon_s_mute_volume()
126 if (vol && ty->muted) { in typhoon_s_mute_volume()
A Dradio-aimslab.c118 static int rtrack_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in rtrack_s_mute_volume() argument
127 if (vol == 0) { /* volume = 0 means mute the card */ in rtrack_s_mute_volume()
130 } else if (curvol < vol) { in rtrack_s_mute_volume()
132 for (; curvol < vol; curvol++) in rtrack_s_mute_volume()
134 } else if (curvol > vol) { in rtrack_s_mute_volume()
136 for (; curvol > vol; curvol--) in rtrack_s_mute_volume()
140 rt->curvol = vol; in rtrack_s_mute_volume()
A Dradio-terratec.c62 static int terratec_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in terratec_s_mute_volume() argument
67 vol = 0; in terratec_s_mute_volume()
68 vol = vol + (vol * 32); /* change both channels */ in terratec_s_mute_volume()
70 if (vol & (0x80 >> i)) in terratec_s_mute_volume()
A Dradio-aztech.c109 static int aztech_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in aztech_s_mute_volume() argument
114 vol = 0; in aztech_s_mute_volume()
115 az->curvol = (vol & 1) + ((vol & 2) << 1); in aztech_s_mute_volume()
A Dradio-zoltrix.c87 static int zoltrix_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in zoltrix_s_mute_volume() argument
91 zol->curvol = vol; in zoltrix_s_mute_volume()
93 if (mute || vol == 0) { in zoltrix_s_mute_volume()
100 outb(vol - 1, isa->io); in zoltrix_s_mute_volume()
/drivers/staging/vc04_services/bcm2835-audio/
A Dbcm2835.h26 #define alsa2chip(vol) ((uint)(-(((vol) << 8) / 100))) argument
29 #define chip2alsa(vol) -(((vol) * 100) >> 8) argument
/drivers/media/i2c/cx25840/
A Dcx25840-audio.c470 int vol; in set_volume() local
473 vol = volume >> 9; in set_volume()
478 if (vol <= 23) { in set_volume()
479 vol = 0; in set_volume()
481 vol -= 23; in set_volume()
485 cx25840_write(client, 0x8d4, 228 - (vol * 2)); in set_volume()
/drivers/power/supply/
A Dsc27xx_fuel_gauge.c388 u32 vol; in sc27xx_fgu_get_vol_now() local
391 &vol); in sc27xx_fgu_get_vol_now()
456 int ret, vol; in sc27xx_fgu_get_vbat_vol() local
490 int vol, cur, ret, temp, resistance; in sc27xx_fgu_get_vbat_ocv() local
492 ret = sc27xx_fgu_get_vbat_vol(data, &vol); in sc27xx_fgu_get_vbat_ocv()
512 *val = vol * 1000 - cur * resistance; in sc27xx_fgu_get_vbat_ocv()
519 int ret, vol; in sc27xx_fgu_get_charge_vol() local
525 *val = vol * 1000; in sc27xx_fgu_get_charge_vol()
536 int ret, vol; in sc27xx_fgu_get_health() local
538 ret = sc27xx_fgu_get_vbat_vol(data, &vol); in sc27xx_fgu_get_health()
[all …]
/drivers/media/i2c/
A Dcs5345.c104 int vol = cs5345_read(sd, 0x08) & 0x3f; in cs5345_log_status() local
108 if (vol >= 32) in cs5345_log_status()
109 vol = vol - 64; in cs5345_log_status()
110 v4l2_info(sd, "Volume: %d dB\n", vol); in cs5345_log_status()
A Dwm8775.c47 struct v4l2_ctrl *vol; member
86 u16 volume = (u16)state->vol->val; in wm8775_set_audio()
122 if (!v4l2_ctrl_g_ctrl(state->vol)) in wm8775_s_routing()
222 state->vol = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe()
/drivers/media/pci/cx18/
A Dcx18-av-audio.c334 int vol = volume >> 9; in set_volume() local
338 if (vol <= 23) in set_volume()
339 vol = 0; in set_volume()
341 vol -= 23; in set_volume()
344 cx18_av_write(cx, 0x8d4, 228 - (vol * 2)); in set_volume()
/drivers/media/pci/cx88/
A Dcx88-alsa.c634 int vol = 0x3f - (cx_read(AUD_VOL_CTL) & 0x3f), in snd_cx88_volume_get() local
637 value->value.integer.value[(bal & 0x40) ? 0 : 1] = vol; in snd_cx88_volume_get()
638 vol -= (bal & 0x3f); in snd_cx88_volume_get()
639 value->value.integer.value[(bal & 0x40) ? 1 : 0] = vol < 0 ? 0 : vol; in snd_cx88_volume_get()
734 u32 vol; in snd_cx88_switch_put() local
737 vol = cx_read(AUD_VOL_CTL); in snd_cx88_switch_put()
738 if (value->value.integer.value[0] != !(vol & bit)) { in snd_cx88_switch_put()
739 vol ^= bit; in snd_cx88_switch_put()
740 cx_swrite(SHADOW_AUD_VOL_CTL, AUD_VOL_CTL, vol); in snd_cx88_switch_put()
744 V4L2_CID_AUDIO_MUTE, 0 != (vol & bit)); in snd_cx88_switch_put()
/drivers/net/phy/
A Dmotorcomm.c931 u32 vol; member
937 {.vol = YT8531_LDO_VOL_1V8, .ds = 0, .cur = 1200},
938 {.vol = YT8531_LDO_VOL_1V8, .ds = 1, .cur = 2100},
939 {.vol = YT8531_LDO_VOL_1V8, .ds = 2, .cur = 2700},
940 {.vol = YT8531_LDO_VOL_1V8, .ds = 3, .cur = 2910},
941 {.vol = YT8531_LDO_VOL_1V8, .ds = 4, .cur = 3110},
942 {.vol = YT8531_LDO_VOL_1V8, .ds = 5, .cur = 3600},
943 {.vol = YT8531_LDO_VOL_1V8, .ds = 6, .cur = 3970},
967 u32 vol; in yt8531_get_ds_map() local
970 vol = yt8531_get_ldo_vol(phydev); in yt8531_get_ds_map()
[all …]
/drivers/media/pci/bt8xx/
A Dbttv-audio-hook.c18 int bits_out, loops, vol, data; in winview_volume() local
21 vol = 32 - ((volume>>11)); in winview_volume()
23 bits_out = (PT2254_DBS_IN_2>>(vol%5)); in winview_volume()
25 bits_out |= (PT2254_DBS_IN_10>>(vol/5)); in winview_volume()
/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
A Dvmmgh100.c227 const bool vol = target == NVKM_MEM_TARGET_HOST; in gh100_vmm_valid() local
248 if (vol) in gh100_vmm_valid()
253 if (vol) in gh100_vmm_valid()
260 if (vol) in gh100_vmm_valid()
265 if (vol) in gh100_vmm_valid()

Completed in 91 milliseconds

123