Home
last modified time | relevance | path

Searched refs:bal (Results 1 – 10 of 10) sorted by relevance

/drivers/media/pci/cx18/
Dcx18-av-audio.c375 int bal = balance >> 8; in set_balance() local
376 if (bal > 0x80) { in set_balance()
380 cx18_av_and_or(cx, 0x8d5, ~0x7f, bal & 0x7f); in set_balance()
385 cx18_av_and_or(cx, 0x8d5, ~0x7f, 0x80 - bal); in set_balance()
/drivers/media/i2c/
Dmt9v011.c178 s16 bal; in set_balance() local
184 bal = core->global_gain; in set_balance()
185 bal += (core->blue_bal * core->global_gain / (1 << 7)); in set_balance()
186 blue_gain = calc_mt9v011_gain(bal); in set_balance()
188 bal = core->global_gain; in set_balance()
189 bal += (core->red_bal * core->global_gain / (1 << 7)); in set_balance()
190 red_gain = calc_mt9v011_gain(bal); in set_balance()
Dwm8775.c61 struct v4l2_ctrl *bal; member
100 u16 balance = (u16)state->bal->val; in wm8775_set_audio()
245 state->bal = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe()
/drivers/media/i2c/cx25840/
Dcx25840-audio.c503 int bal = balance >> 8; in set_balance() local
504 if (bal > 0x80) { in set_balance()
508 cx25840_and_or(client, 0x8d5, ~0x7f, bal & 0x7f); in set_balance()
513 cx25840_and_or(client, 0x8d5, ~0x7f, 0x80 - bal); in set_balance()
/drivers/net/ethernet/intel/i40e/
Di40e_adminq.c58 hw->aq.asq.bal = I40E_VF_ATQBAL1; in i40e_adminq_init_regs()
63 hw->aq.arq.bal = I40E_VF_ARQBAL1; in i40e_adminq_init_regs()
69 hw->aq.asq.bal = I40E_PF_ATQBAL; in i40e_adminq_init_regs()
74 hw->aq.arq.bal = I40E_PF_ARQBAL; in i40e_adminq_init_regs()
314 wr32(hw, hw->aq.asq.bal, lower_32_bits(hw->aq.asq.desc_buf.pa)); in i40e_config_asq_regs()
318 reg = rd32(hw, hw->aq.asq.bal); in i40e_config_asq_regs()
343 wr32(hw, hw->aq.arq.bal, lower_32_bits(hw->aq.arq.desc_buf.pa)); in i40e_config_arq_regs()
350 reg = rd32(hw, hw->aq.arq.bal); in i40e_config_arq_regs()
496 wr32(hw, hw->aq.asq.bal, 0); in i40e_shutdown_asq()
530 wr32(hw, hw->aq.arq.bal, 0); in i40e_shutdown_arq()
Di40e_adminq.h61 u32 bal; member
/drivers/net/ethernet/intel/i40evf/
Di40e_adminq.c56 hw->aq.asq.bal = I40E_VF_ATQBAL1; in i40e_adminq_init_regs()
61 hw->aq.arq.bal = I40E_VF_ARQBAL1; in i40e_adminq_init_regs()
301 wr32(hw, hw->aq.asq.bal, lower_32_bits(hw->aq.asq.desc_buf.pa)); in i40e_config_asq_regs()
305 reg = rd32(hw, hw->aq.asq.bal); in i40e_config_asq_regs()
330 wr32(hw, hw->aq.arq.bal, lower_32_bits(hw->aq.arq.desc_buf.pa)); in i40e_config_arq_regs()
337 reg = rd32(hw, hw->aq.arq.bal); in i40e_config_arq_regs()
483 wr32(hw, hw->aq.asq.bal, 0); in i40e_shutdown_asq()
517 wr32(hw, hw->aq.arq.bal, 0); in i40e_shutdown_arq()
Di40e_adminq.h61 u32 bal; member
/drivers/net/ethernet/intel/fm10k/
Dfm10k_vf.c31 u32 bal = 0, bah = 0; in fm10k_stop_hw_vf() local
42 bal = (((u32)perm_addr[3]) << 24) | in fm10k_stop_hw_vf()
55 fm10k_write_reg(hw, FM10K_TDBAL(i), bal); in fm10k_stop_hw_vf()
57 fm10k_write_reg(hw, FM10K_RDBAL(i), bal); in fm10k_stop_hw_vf()
/drivers/media/pci/cx88/
Dcx88-alsa.c652 bal = cx_read(AUD_BAL_CTL); in snd_cx88_volume_get() local
654 value->value.integer.value[(bal & 0x40) ? 0 : 1] = vol; in snd_cx88_volume_get()
655 vol -= (bal & 0x3f); in snd_cx88_volume_get()
656 value->value.integer.value[(bal & 0x40) ? 1 : 0] = vol < 0 ? 0 : vol; in snd_cx88_volume_get()