/linux/arch/arc/kernel/ |
A D | disasm.c | 106 state->x = BITS(state->words[0], 6, 6); in disasm_instr() 107 state->zz = BITS(state->words[0], 7, 8); in disasm_instr() 113 state->src1 = state->words[1]; in disasm_instr() 117 state->src2 = FIELD_s9(state->words[0]); in disasm_instr() 118 state->dest = FIELD_A(state->words[0]); in disasm_instr() 129 state->src1 = FIELD_C(state->words[0]); in disasm_instr() 132 state->src1 = state->words[1]; in disasm_instr() 140 state->src2 = state->words[1]; in disasm_instr() 219 state->src1 = state->words[1]; in disasm_instr() 227 state->src2 = state->words[1]; in disasm_instr() [all …]
|
/linux/drivers/media/tuners/ |
A D | mxl5005s.c | 1724 state->IF_LO = state->IF_OUT; in MXL_SynthIFLO_Calc() 1727 state->IF_LO = state->IF_OUT + 400000; in MXL_SynthIFLO_Calc() 1729 state->IF_LO = state->IF_OUT + state->Chan_Bandwidth/2; in MXL_SynthIFLO_Calc() 1739 state->RF_LO = state->RF_IN; in MXL_SynthRFTGLO_Calc() 1741 state->TG_LO = state->RF_IN - 750000; in MXL_SynthRFTGLO_Calc() 1744 state->RF_LO = state->RF_IN - 400000; in MXL_SynthRFTGLO_Calc() 1745 state->TG_LO = state->RF_IN - 1750000; in MXL_SynthRFTGLO_Calc() 1747 state->RF_LO = state->RF_IN - state->Chan_Bandwidth/2; in MXL_SynthRFTGLO_Calc() 1748 state->TG_LO = state->RF_IN - in MXL_SynthRFTGLO_Calc() 2162 if (state->Mode || (state->Mode == 0 && state->IF_Mode == 0)) { in MXL_IFSynthInit() [all …]
|
/linux/drivers/media/dvb-frontends/ |
A D | stv0910.c | 969 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 0, state->vth[0]); in set_vth_default() 970 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 1, state->vth[1]); in set_vth_default() 971 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 2, state->vth[2]); in set_vth_default() 972 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 3, state->vth[3]); in set_vth_default() 973 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 4, state->vth[4]); in set_vth_default() 974 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 5, state->vth[5]); in set_vth_default() 1001 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 0, state->vth[0]); in set_vth() 1002 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 1, state->vth[1]); in set_vth() 1003 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 2, state->vth[2]); in set_vth() 1004 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 3, state->vth[3]); in set_vth() [all …]
|
A D | dib0090.c | 214 state->msg[0].buf = state->i2c_write_buffer; in dib0090_read_reg() 218 state->msg[1].buf = state->i2c_read_buffer; in dib0090_read_reg() 248 state->msg[0].buf = state->i2c_write_buffer; in dib0090_write_reg() 275 state->msg.buf = state->i2c_read_buffer; in dib0090_fw_read_reg() 303 state->msg.buf = state->i2c_write_buffer; in dib0090_fw_write_reg() 908 state->wbd_target = dib0090_wbd_to_db(state, state->wbd_offset + offset); in dib0090_wbd_target() 1701 dib0090_write_reg(state, 0x07, state->bb7 | (state->dc->i << 7)); in dib0090_dc_offset_calibration() 1752 state->dc->addr, state->adc_diff, state->step); in dib0090_dc_offset_calibration() 2097 state->step = state->captrim = state->fcaptrim = 64; in dib0090_captrim_search() 2156 state->fcaptrim = state->captrim; in dib0090_captrim_search() [all …]
|
A D | dib8000.c | 179 state->msg[0].addr = state->i2c.addr >> 1; in __dib8000_read_word() 181 state->msg[0].buf = state->i2c_write_buffer; in __dib8000_read_word() 183 state->msg[1].addr = state->i2c.addr >> 1; in __dib8000_read_word() 185 state->msg[1].buf = state->i2c_read_buffer; in __dib8000_read_word() 188 if (i2c_transfer(state->i2c.adap, state->msg, 2) != 2) in __dib8000_read_word() 266 state->msg[0].addr = state->i2c.addr >> 1; in dib8000_write_word() 268 state->msg[0].buf = state->i2c_write_buffer; in dib8000_write_word() 1204 dib8000_write_word(state, 106, state->wbd_ref); in dib8000_set_agc_config() 2216 dib8000_write_word(state, 353, state->seg_mask); in dib8000_small_fine_tune() 2381 state->mode = fft_to_mode(state); in dib8000_set_isdbt_common_channel() [all …]
|
A D | stv090x.c | 796 state->config->tuner_i2c_lock(&state->frontend, 0); in stv090x_i2c_gate_ctrl() 2176 state->tuner_bw = stv090x_car_width(state->srate, state->rolloff) + state->srate; in stv090x_get_coldlock() 2602 state->delsys = stv090x_get_std(state); in stv090x_get_sig_params() 3224 state->tuner_bw = stv090x_car_width(state->srate, state->rolloff) + 10000000; in stv090x_algo() 3233 if (stv090x_set_srate(state, state->srate) < 0) in stv090x_algo() 4284 state->internal->mclk = stv090x_get_mclk(state); in stv090x_set_mclk() 4915 state->internal->i2c_adap = state->i2c; in stv090x_setup_compound() 5001 state = kzalloc(sizeof(*state), GFP_KERNEL); in stv090x_probe() 5011 state->frontend.demodulator_priv = state; in stv090x_probe() 5050 state = kzalloc(sizeof(*state), GFP_KERNEL); in stv090x_attach() [all …]
|
A D | dib0070.c | 81 state->msg[0].addr = state->cfg->i2c_address; in dib0070_read_reg() 83 state->msg[0].buf = state->i2c_write_buffer; in dib0070_read_reg() 85 state->msg[1].addr = state->cfg->i2c_address; in dib0070_read_reg() 87 state->msg[1].buf = state->i2c_read_buffer; in dib0070_read_reg() 116 state->msg[0].buf = state->i2c_write_buffer; in dib0070_write_reg() 130 state->cfg->sleep(state->fe, 0); \ 177 state->step = state->captrim = state->fcaptrim = 64; in dib0070_captrim() 184 dib0070_write_reg(state, 0x14, state->lo4 | state->captrim); in dib0070_captrim() 205 state->captrim, adc, state->adc_diff); in dib0070_captrim() 207 state->fcaptrim = state->captrim; in dib0070_captrim() [all …]
|
A D | dib7000m.c | 89 state->msg[0].addr = state->i2c_addr >> 1; in dib7000m_read_word() 91 state->msg[0].buf = state->i2c_write_buffer; in dib7000m_read_word() 93 state->msg[1].addr = state->i2c_addr >> 1; in dib7000m_read_word() 95 state->msg[1].buf = state->i2c_read_buffer; in dib7000m_read_word() 98 if (i2c_transfer(state->i2c_adap, state->msg, 2) != 2) in dib7000m_read_word() 122 state->msg[0].addr = state->i2c_addr >> 1; in dib7000m_write_word() 124 state->msg[0].buf = state->i2c_write_buffer; in dib7000m_write_word() 626 state->internal_clk = state->cfg.bw->internal; in dib7000m_demod_reset() 715 dib7000m_write_word(state, 102, state->wbd_ref); in dib7000m_set_agc_config() 777 state->cfg.agc_control(&state->demod, 1); in dib7000m_agc_startup() [all …]
|
A D | drxk_hard.c | 451 status = i2c_write(state, state->demod_address, in write_block() 481 status = i2c_write(state, state->demod_address, in power_up_device() 487 status = i2c_read1(state, state->demod_address, in power_up_device() 5957 state->m_gpio &= ~state->antenna_gpio; in switch_antenna_to_qam() 5959 state->m_gpio |= state->antenna_gpio; in switch_antenna_to_qam() 5982 state->m_gpio |= state->antenna_gpio; in switch_antenna_to_dvbt() 5984 state->m_gpio &= ~state->antenna_gpio; in switch_antenna_to_dvbt() 6796 if (!state->antenna_dvbt && state->antenna_gpio) in drxk_attach() 6797 state->m_gpio |= state->antenna_gpio; in drxk_attach() 6799 state->m_gpio &= ~state->antenna_gpio; in drxk_attach() [all …]
|
A D | drxd_hard.c | 347 return WriteTable(state, state->m_ResetCEFR); in ResetCEFR() 352 return WriteTable(state, state->m_InitCP); in InitCP() 361 status = WriteTable(state, state->m_InitCE); in InitCE() 495 return WriteTable(state, state->m_InitEQ); in InitEQ() 500 return WriteTable(state, state->m_InitEC); in InitEC() 505 return WriteTable(state, state->m_InitSC); in InitSC() 1008 state->hi_cfg_wakeup_key = (state->chip_adr); in InitHI() 2590 CDRXD(state, state->config.IF ? state->config.IF : 36000000); in DRXD_init() 2671 status = DownloadMicrocode(state, state->microcode, state->microcode_length); in DRXD_init() 2937 state->frontend.demodulator_priv = state; in drxd_attach() [all …]
|
A D | cx24110.c | 140 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x1); in cx24110_set_inversion() 142 cx24110_writereg(state,0x5,cx24110_readreg(state,0x5)&0xf7); in cx24110_set_inversion() 144 cx24110_writereg(state,0x22,cx24110_readreg(state,0x22)&0xef); in cx24110_set_inversion() 150 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x1); in cx24110_set_inversion() 152 cx24110_writereg(state,0x5,cx24110_readreg(state,0x5)|0x08); in cx24110_set_inversion() 464 state->lastber=cx24110_readreg(state,0x25)| in cx24110_read_ber() 492 state->lastesn0=cx24110_readreg(state,0x69)| in cx24110_read_snr() 512 state->lastbler=cx24110_readreg(state,0x12)| in cx24110_read_ucblocks() 579 kfree(state); in cx24110_release() 607 state->frontend.demodulator_priv = state; in cx24110_attach() [all …]
|
A D | cx24113.c | 138 r = (state->icp_auto_low << 0) | (state->icp_auto_mlow << 2) in cx24113_set_parameters() 139 | (state->icp_auto_mhi << 4) | (state->icp_auto_hi << 6); in cx24113_set_parameters() 163 r |= (state->vco_mode << 6) | ((state->bs_freqcnt >> 8) & 0x1f); in cx24113_set_parameters() 167 cx24113_writereg(state, 0x16, (state->bs_rdiv >> 4) & 0xff); in cx24113_set_parameters() 223 if (state->rev == 0x43 && state->vcodiv == VCODIV4) in cx24113_set_Fref() 283 if (state->rev == 0x43 && state->vcodiv == VCODIV4) in cx24113_set_ref_div() 396 cx24113_set_nfr(state, n, f, state->refdiv); in cx24113_set_frequency() 521 kfree(state); in cx24113_release() 548 if (!state) in cx24113_attach() 579 state->ver = cx24113_readreg(state, 0x01); in cx24113_attach() [all …]
|
A D | tda18271c2dd.c | 138 return i2c_write(state->i2c, state->adr, data, nRegs + 1); in WriteRegs() 145 return i2c_write(state->i2c, state->adr, msg, 2); in WriteReg() 150 return i2c_readn(state->i2c, state->adr, Regs, 16); in Read() 155 return i2c_readn(state->i2c, state->adr, Regs, NUM_REGS); in ReadExtented() 165 return WriteReg(state, Reg, state->m_Regs[Reg]); in UpdateReg() 306 state->m_Regs[EP3] = state->m_EP3_Standby; in StandBy() 999 …state->m_Regs[EP4] = state->m_EP4 | ((Standard > HF_AnalogMax) ? state->m_IFLevelDigital : state->… in ChannelConfiguration() 1002 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelAnalog; in ChannelConfiguration() 1004 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelDVBT; in ChannelConfiguration() 1006 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelDVBC; in ChannelConfiguration() [all …]
|
A D | au8522_decoder.c | 546 au8522_video_set(state); in au8522_s_stream() 547 set_audio_input(state); in au8522_s_stream() 577 au8522_video_set(state); in au8522_s_video_routing() 589 state->std = std; in au8522_s_std() 605 set_audio_input(state); in au8522_s_audio_routing() 708 sd = &state->sd; in au8522_probe() 721 state->pads); in au8522_probe() 728 hdl = &state->hdl; in au8522_probe() 748 state->c = client; in au8522_probe() 752 state->id = 8522; in au8522_probe() [all …]
|
A D | stv0367.c | 1731 state->fe.demodulator_priv = state; in stv0367ter_attach() 1732 state->chip_id = stv0367_readreg(state, 0xf000); in stv0367ter_attach() 2224 if (state->cab_state->state > FE_CAB_NOSIGNAL) in stv0367cab_read_status() 2227 if (state->cab_state->state > FE_CAB_NOCARRIER) in stv0367cab_read_status() 2230 if (state->cab_state->state >= FE_CAB_DEMODOK) in stv0367cab_read_status() 2233 if (state->cab_state->state >= FE_CAB_DATAOK) in stv0367cab_read_status() 2585 state, in stv0367cab_set_frontend() 2595 cab_state->state = stv0367cab_algo(state, p); in stv0367cab_set_frontend() 2904 state->fe.demodulator_priv = state; in stv0367cab_attach() 3317 state->fe.demodulator_priv = state; in stv0367ddb_attach() [all …]
|
A D | s5h1420.c | 185 s5h1420_writereg(state, 0x3b, s5h1420_readreg(state, 0x3b) | in s5h1420_send_master_cmd() 679 s5h1420_writereg(state, PLL01, state->fclk/1000000 - 8); in s5h1420_set_frontend() 806 state->CON_1_val = state->config->serial_mpeg << 4; in s5h1420_init() 807 s5h1420_writereg(state, 0x02, state->CON_1_val); in s5h1420_init() 818 return s5h1420_writereg(state, 0x02, state->CON_1_val); in s5h1420_sleep() 825 kfree(state); in s5h1420_release() 895 memset(state->shadow, 0xff, sizeof(state->shadow)); in s5h1420_attach() 898 state->shadow[i] = s5h1420_readreg(state, i); in s5h1420_attach() 902 state->frontend.demodulator_priv = state; in s5h1420_attach() 909 i2c_set_adapdata(&state->tuner_i2c_adapter, state); in s5h1420_attach() [all …]
|
A D | mxl5xx.c | 481 state->tuner_in_use = state->tuner; in set_parameters() 506 enable_tuner(state, state->tuner, 0); in sleep() 520 HYDRA_DEMOD_STATUS_LOCK(state, state->demod); in read_snr() 524 HYDRA_DEMOD_STATUS_UNLOCK(state, state->demod); in read_snr() 540 HYDRA_DEMOD_STATUS_LOCK(state, state->demod); in read_ber() 546 HYDRA_DEMOD_STATUS_UNLOCK(state, state->demod); in read_ber() 597 HYDRA_DEMOD_STATUS_LOCK(state, state->demod); in read_signal_strength() 601 HYDRA_DEMOD_STATUS_UNLOCK(state, state->demod); in read_signal_strength() 617 HYDRA_DEMOD_STATUS_LOCK(state, state->demod); in read_status() 687 HYDRA_DEMOD_STATUS_LOCK(state, state->demod); in get_frontend() [all …]
|
/linux/lib/zlib_inflate/ |
A D | inflate.c | 38 state = (struct inflate_state *)strm->state; in zlib_inflateReset() 48 state->lencode = state->distcode = state->next = state->codes; in zlib_inflateReset() 51 state->wsize = 1U << state->wbits; in zlib_inflateReset() 130 memcpy(state->window, strm->next_out - state->wsize, state->wsize); in zlib_updatewindow() 132 state->whave = state->wsize; in zlib_updatewindow() 135 dist = state->wsize - state->write; in zlib_updatewindow() 142 state->whave = state->wsize; in zlib_updatewindow() 146 if (state->write == state->wsize) state->write = 0; in zlib_updatewindow() 147 if (state->whave < state->wsize) state->whave += dist; in zlib_updatewindow() 492 state->next = state->codes; in zlib_inflate() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_atomic_state_helper.c | 134 memcpy(state, crtc->state, sizeof(*state)); in __drm_atomic_helper_crtc_duplicate_state() 175 state = kmalloc(sizeof(*state), GFP_KERNEL); in drm_atomic_helper_crtc_duplicate_state() 176 if (state) in drm_atomic_helper_crtc_duplicate_state() 203 if (state->event && state->commit->abort_completion) in __drm_atomic_helper_crtc_destroy_state() 306 memcpy(state, plane->state, sizeof(*state)); in __drm_atomic_helper_plane_duplicate_state() 332 state = kmalloc(sizeof(*state), GFP_KERNEL); in drm_atomic_helper_plane_duplicate_state() 333 if (state) in drm_atomic_helper_plane_duplicate_state() 469 memcpy(state, connector->state, sizeof(*state)); in __drm_atomic_helper_connector_duplicate_state() 497 state = kmalloc(sizeof(*state), GFP_KERNEL); in drm_atomic_helper_connector_duplicate_state() 556 memcpy(state, obj->state, sizeof(*state)); in __drm_atomic_helper_private_obj_duplicate_state() [all …]
|
/linux/drivers/media/pci/bt8xx/ |
A D | dst.c | 908 state->fw_version[5], state->fw_version[6], in dst_fw_ver() 909 state->fw_version[4], state->fw_version[3], state->fw_version[2]); in dst_fw_ver() 949 memcpy(&state->vendor, &state->rxbuffer, 7); in dst_get_vendor() 1256 state->decode_lock = state->decode_strength = state->decode_snr = 0; in dst_get_signal() 1260 state->decode_lock = state->decode_strength = state->decode_snr = 0; in dst_get_signal() 1270 state->decode_snr = state->rxbuffer[2] << 8 | state->rxbuffer[3]; in dst_get_signal() 1278 state->decode_snr = state->rxbuffer[2] << 8 | state->rxbuffer[3]; in dst_get_signal() 1333 state->decode_freq = ((state->rx_tuna[2] & 0x7f) << 8) + state->rx_tuna[3]; in dst_get_tuna() 1335 …state->decode_freq = ((state->rx_tuna[2] & 0x7f) << 16) + (state->rx_tuna[3] << 8) + state->rx_tun… in dst_get_tuna() 1355 state->decode_lock = state->decode_strength = state->decode_snr = 0; in dst_write_tuna() [all …]
|
/linux/drivers/video/ |
A D | vgastate.c | 364 vga_cleanup(state); in save_vga() 378 state->num_gfx = 9; in save_vga() 380 state->num_seq = 5; in save_vga() 381 total = state->num_attr + state->num_crtc + in save_vga() 382 state->num_gfx + state->num_seq; in save_vga() 386 vga_cleanup(state); in save_vga() 400 if (state->memsize && state->memsize < 4 * 8192) { in save_vga() 401 vga_cleanup(state); in save_vga() 410 fbbase = ioremap(state->membase, state->memsize); in save_vga() 467 void __iomem *fbbase = ioremap(state->membase, state->memsize); in restore_vga() [all …]
|
/linux/tools/testing/selftests/kvm/x86_64/ |
A D | vmx_set_nested_state_test.c | 69 memset(state, 0, sizeof(*state)); in set_default_state() 72 state->format = 0; in set_default_state() 73 state->size = sizeof(*state); in set_default_state() 121 state->flags = 0; in test_vmx_nested_state() 196 state->size = sizeof(*state); in test_vmx_nested_state() 201 state->size = sizeof(*state); in test_vmx_nested_state() 216 state->size = sizeof(*state); in test_vmx_nested_state() 238 TEST_ASSERT(state->size >= sizeof(*state) && state->size <= state_sz, in test_vmx_nested_state() 240 sizeof(*state), state_sz, state->size); in test_vmx_nested_state() 244 free(state); in test_vmx_nested_state() [all …]
|
/linux/arch/x86/kernel/ |
A D | unwind_frame.c | 19 return __kernel_text_address(state->ip) ? state->ip : 0; in unwind_get_return_address() 28 return state->regs ? &state->regs->ip : state->bp + 1; in unwind_get_return_address_ptr() 46 state->stack_mask, state->graph_idx); in unwind_dump() 87 return state->bp == last_frame(state); in is_last_frame() 150 *state->bp == *(state->bp + 2) && in is_last_ftrace_frame() 151 *(state->bp + 1) == *(state->bp + 4)); in is_last_ftrace_frame() 238 if (state->regs && user_mode(state->regs)) in update_stack_state() 262 if (state->regs && user_mode(state->regs)) in unwind_next_frame() 346 state->regs, state->task->comm, in unwind_next_frame() 352 state->bp, state->task->comm, in unwind_next_frame() [all …]
|
/linux/drivers/net/ppp/ |
A D | ppp_mppe.c | 134 crypto_shash_update(state->sha1, state->master_key, in get_new_key_from_sha() 138 crypto_shash_update(state->sha1, state->session_key, in get_new_key_from_sha() 142 crypto_shash_final(state->sha1, state->sha1_digest); in get_new_key_from_sha() 153 arc4_setkey(&state->arc4, state->sha1_digest, state->keylen); in mppe_rekey() 154 arc4_crypt(&state->arc4, state->session_key, state->sha1_digest, in mppe_rekey() 157 memcpy(state->session_key, state->sha1_digest, state->keylen); in mppe_rekey() 165 arc4_setkey(&state->arc4, state->session_key, state->keylen); in mppe_rekey() 182 state = kzalloc(sizeof(*state), GFP_KERNEL); in mppe_alloc() 191 state->sha1 = kmalloc(sizeof(*state->sha1) + in mppe_alloc() 211 memcpy(state->session_key, state->master_key, in mppe_alloc() [all …]
|
/linux/drivers/media/i2c/adv748x/ |
A D | adv748x-core.c | 72 adv_err(state, in adv748x_configure_regmap() 187 state->client, in adv748x_initialise_clients() 239 struct adv748x_state *state = tx->state; in adv748x_power_up_tx() local 286 struct adv748x_state *state = tx->state; in adv748x_power_down_tx() local 519 adv748x_afe_s_input(&state->afe, state->afe.input); in adv748x_reset() 634 adv_dbg(state, "TXA: using %u lanes\n", state->txa.num_lanes); in adv748x_parse_csi2_lanes() 646 adv_dbg(state, "TXB: using %u lanes\n", state->txb.num_lanes); in adv748x_parse_csi2_lanes() 717 if (!state) in adv748x_probe() 732 state->txa.state = state->txb.state = state; in adv748x_probe() 787 ret = adv748x_csi2_init(state, &state->txa); in adv748x_probe() [all …]
|