/linux-4.1.27/arch/arc/kernel/ |
D | disasm.c | 24 void __kprobes disasm_instr(unsigned long addr, struct disasm_state *state, in disasm_instr() argument 35 memset(state, 0, sizeof(struct disasm_state)); in disasm_instr() 51 state->major_opcode = (word1 >> 11) & 0x1F; in disasm_instr() 54 if (state->major_opcode < 0x0B) { in disasm_instr() 57 state->instr_len = 4; in disasm_instr() 59 state->words[0] = (word1 << 16) | word0; in disasm_instr() 61 state->instr_len = 2; in disasm_instr() 62 state->words[0] = word1; in disasm_instr() 66 word1 = *((uint16_t *)(addr + state->instr_len)); in disasm_instr() 67 word0 = *((uint16_t *)(addr + state->instr_len + 2)); in disasm_instr() [all …]
|
D | unaligned.c | 136 static void fixup_load(struct disasm_state *state, struct pt_regs *regs, in fixup_load() argument 142 if ((state->aa == 1) || (state->aa == 2)) { in fixup_load() 143 set_reg(state->wb_reg, state->src1 + state->src2, regs, cregs); in fixup_load() 145 if (state->aa == 2) in fixup_load() 146 state->src2 = 0; in fixup_load() 149 if (state->zz == 0) { in fixup_load() 150 get32_unaligned_check(val, state->src1 + state->src2); in fixup_load() 152 get16_unaligned_check(val, state->src1 + state->src2); in fixup_load() 154 if (state->x) in fixup_load() 158 if (state->pref == 0) in fixup_load() [all …]
|
D | unwind.c | 645 static int advance_loc(unsigned long delta, struct unwind_state *state) in advance_loc() argument 647 state->loc += delta * state->codeAlign; in advance_loc() 652 unw_debug("delta %3lu => loc 0x%lx: ", delta, state->loc); in advance_loc() 657 struct unwind_state *state) in set_rule() argument 659 if (reg < ARRAY_SIZE(state->regs)) { in set_rule() 660 state->regs[reg].where = where; in set_rule() 661 state->regs[reg].value = value; in set_rule() 686 signed ptrType, struct unwind_state *state) in processCFI() argument 696 if (start != state->cieStart) { in processCFI() 697 state->loc = state->org; in processCFI() [all …]
|
/linux-4.1.27/drivers/media/tuners/ |
D | mxl5005s.c | 298 static u16 MXL_GetMasterControl(u8 *MasterReg, int state); 339 struct mxl5005s_state *state = fe->tuner_priv; in mxl5005s_SetRfFreqHz() local 354 ByteTable[0] |= state->config->AgcMasterByte; in mxl5005s_SetRfFreqHz() 371 state->config->AgcMasterByte; in mxl5005s_SetRfFreqHz() 387 state->config->AgcMasterByte ; in mxl5005s_SetRfFreqHz() 404 struct mxl5005s_state *state = fe->tuner_priv; in MXL5005_RegisterInit() local 405 state->TunerRegs_Num = TUNER_REGS_NUM ; in MXL5005_RegisterInit() 407 state->TunerRegs[0].Reg_Num = 9 ; in MXL5005_RegisterInit() 408 state->TunerRegs[0].Reg_Val = 0x40 ; in MXL5005_RegisterInit() 410 state->TunerRegs[1].Reg_Num = 11 ; in MXL5005_RegisterInit() [all …]
|
D | qm1d1c0042.c | 63 static int reg_write(struct qm1d1c0042_state *state, u8 reg, u8 val) in reg_write() argument 68 ret = i2c_master_send(state->i2c, wbuf, sizeof(wbuf)); in reg_write() 74 static int reg_read(struct qm1d1c0042_state *state, u8 reg, u8 *val) in reg_read() argument 78 .addr = state->i2c->addr, in reg_read() 84 .addr = state->i2c->addr, in reg_read() 92 ret = i2c_transfer(state->i2c->adapter, msgs, ARRAY_SIZE(msgs)); in reg_read() 99 static int qm1d1c0042_set_srch_mode(struct qm1d1c0042_state *state, bool fast) in qm1d1c0042_set_srch_mode() argument 102 state->regs[0x03] |= 0x01; /* set fast search mode */ in qm1d1c0042_set_srch_mode() 104 state->regs[0x03] &= ~0x01 & 0xff; in qm1d1c0042_set_srch_mode() 106 return reg_write(state, 0x03, state->regs[0x03]); in qm1d1c0042_set_srch_mode() [all …]
|
D | mt2063.c | 248 static int mt2063_write(struct mt2063_state *state, u8 reg, u8 *data, u32 len) in mt2063_write() argument 250 struct dvb_frontend *fe = state->frontend; in mt2063_write() 254 .addr = state->config->tuner_address, in mt2063_write() 267 ret = i2c_transfer(state->i2c, &msg, 1); in mt2063_write() 280 static int mt2063_setreg(struct mt2063_state *state, u8 reg, u8 val) in mt2063_setreg() argument 289 status = mt2063_write(state, reg, &val, 1); in mt2063_setreg() 293 state->reg[reg] = val; in mt2063_setreg() 301 static int mt2063_read(struct mt2063_state *state, in mt2063_read() argument 305 struct dvb_frontend *fe = state->frontend; in mt2063_read() 317 .addr = state->config->tuner_address, in mt2063_read() [all …]
|
D | mxl5007t.c | 216 static void mxl5007t_set_mode_bits(struct mxl5007t_state *state, in mxl5007t_set_mode_bits() argument 222 set_reg_bits(state->tab_init, 0x06, 0x1f, 0x12); in mxl5007t_set_mode_bits() 225 set_reg_bits(state->tab_init, 0x06, 0x1f, 0x11); in mxl5007t_set_mode_bits() 228 set_reg_bits(state->tab_init, 0x06, 0x1f, 0x10); in mxl5007t_set_mode_bits() 231 set_reg_bits(state->tab_init_cable, 0x09, 0xff, 0xc1); in mxl5007t_set_mode_bits() 232 set_reg_bits(state->tab_init_cable, 0x0a, 0xff, in mxl5007t_set_mode_bits() 234 set_reg_bits(state->tab_init_cable, 0x0b, 0xff, 0x17); in mxl5007t_set_mode_bits() 242 static void mxl5007t_set_if_freq_bits(struct mxl5007t_state *state, in mxl5007t_set_if_freq_bits() argument 286 set_reg_bits(state->tab_init, 0x02, 0x0f, val); in mxl5007t_set_if_freq_bits() 289 set_reg_bits(state->tab_init, 0x02, 0x10, invert_if ? 0x10 : 0x00); in mxl5007t_set_if_freq_bits() [all …]
|
D | mxl301rf.c | 44 static int raw_write(struct mxl301rf_state *state, const u8 *buf, int len) in raw_write() argument 48 ret = i2c_master_send(state->i2c, buf, len); in raw_write() 54 static int reg_write(struct mxl301rf_state *state, u8 reg, u8 val) in reg_write() argument 58 return raw_write(state, buf, 2); in reg_write() 61 static int reg_read(struct mxl301rf_state *state, u8 reg, u8 *val) in reg_read() argument 66 ret = raw_write(state, wbuf, sizeof(wbuf)); in reg_read() 68 ret = i2c_master_recv(state->i2c, val, 1); in reg_read() 79 struct mxl301rf_state *state; in mxl301rf_get_rf_strength() local 91 state = fe->tuner_priv; in mxl301rf_get_rf_strength() 92 ret = reg_write(state, 0x14, 0x01); in mxl301rf_get_rf_strength() [all …]
|
D | tuner-i2c.h | 129 #define hybrid_tuner_request_state(type, state, list, i2cadap, i2caddr, devname)\ argument 132 list_for_each_entry(state, &list, hybrid_tuner_instance_list) { \ 133 if (((i2cadap) && (state->i2c_props.adap)) && \ 134 ((i2c_adapter_id(state->i2c_props.adap) == \ 136 (i2caddr == state->i2c_props.addr))) { \ 137 __tuner_info(state->i2c_props, \ 139 state->i2c_props.count++; \ 140 __ret = state->i2c_props.count; \ 145 state = kzalloc(sizeof(type), GFP_KERNEL); \ 146 if (NULL == state) \ [all …]
|
/linux-4.1.27/lib/zlib_inflate/ |
D | inflate.c | 25 struct inflate_state *state; in zlib_inflateReset() local 27 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; in zlib_inflateReset() 28 state = (struct inflate_state *)strm->state; in zlib_inflateReset() 29 strm->total_in = strm->total_out = state->total = 0; in zlib_inflateReset() 32 state->mode = HEAD; in zlib_inflateReset() 33 state->last = 0; in zlib_inflateReset() 34 state->havedict = 0; in zlib_inflateReset() 35 state->dmax = 32768U; in zlib_inflateReset() 36 state->hold = 0; in zlib_inflateReset() 37 state->bits = 0; in zlib_inflateReset() [all …]
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
D | dib0090.c | 216 static u16 dib0090_read_reg(struct dib0090_state *state, u8 reg) in dib0090_read_reg() argument 220 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib0090_read_reg() 225 state->i2c_write_buffer[0] = reg; in dib0090_read_reg() 227 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib0090_read_reg() 228 state->msg[0].addr = state->config->i2c_address; in dib0090_read_reg() 229 state->msg[0].flags = 0; in dib0090_read_reg() 230 state->msg[0].buf = state->i2c_write_buffer; in dib0090_read_reg() 231 state->msg[0].len = 1; in dib0090_read_reg() 232 state->msg[1].addr = state->config->i2c_address; in dib0090_read_reg() 233 state->msg[1].flags = I2C_M_RD; in dib0090_read_reg() [all …]
|
D | stv090x.c | 695 static int stv090x_read_reg(struct stv090x_state *state, unsigned int reg) in stv090x_read_reg() argument 697 const struct stv090x_config *config = state->config; in stv090x_read_reg() 708 ret = i2c_transfer(state->i2c, msg, 2); in stv090x_read_reg() 717 if (unlikely(*state->verbose >= FE_DEBUGREG)) in stv090x_read_reg() 724 static int stv090x_write_regs(struct stv090x_state *state, unsigned int reg, u8 *data, u32 count) in stv090x_write_regs() argument 726 const struct stv090x_config *config = state->config; in stv090x_write_regs() 742 if (unlikely(*state->verbose >= FE_DEBUGREG)) { in stv090x_write_regs() 751 ret = i2c_transfer(state->i2c, &i2c_msg, 1); in stv090x_write_regs() 762 static int stv090x_write_reg(struct stv090x_state *state, unsigned int reg, u8 data) in stv090x_write_reg() argument 764 return stv090x_write_regs(state, reg, &data, 1); in stv090x_write_reg() [all …]
|
D | au8522_decoder.c | 187 static void setup_vbi(struct au8522_state *state, int aud_input) in setup_vbi() argument 192 au8522_writereg(state, AU8522_TVDEC_VBI_CTRL_H_REG017H, 0x00); in setup_vbi() 193 au8522_writereg(state, AU8522_TVDEC_VBI_CTRL_L_REG018H, 0x00); in setup_vbi() 194 au8522_writereg(state, AU8522_TVDEC_VBI_USER_TOTAL_BITS_REG019H, 0x00); in setup_vbi() 195 au8522_writereg(state, AU8522_TVDEC_VBI_USER_TUNIT_H_REG01AH, 0x00); in setup_vbi() 196 au8522_writereg(state, AU8522_TVDEC_VBI_USER_TUNIT_L_REG01BH, 0x00); in setup_vbi() 197 au8522_writereg(state, AU8522_TVDEC_VBI_USER_THRESH1_REG01CH, 0x00); in setup_vbi() 198 au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_PAT2_REG01EH, 0x00); in setup_vbi() 199 au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_PAT1_REG01FH, 0x00); in setup_vbi() 200 au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_PAT0_REG020H, 0x00); in setup_vbi() [all …]
|
D | dib0070.c | 85 static u16 dib0070_read_reg(struct dib0070_state *state, u8 reg) in dib0070_read_reg() argument 89 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib0070_read_reg() 94 state->i2c_write_buffer[0] = reg; in dib0070_read_reg() 96 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib0070_read_reg() 97 state->msg[0].addr = state->cfg->i2c_address; in dib0070_read_reg() 98 state->msg[0].flags = 0; in dib0070_read_reg() 99 state->msg[0].buf = state->i2c_write_buffer; in dib0070_read_reg() 100 state->msg[0].len = 1; in dib0070_read_reg() 101 state->msg[1].addr = state->cfg->i2c_address; in dib0070_read_reg() 102 state->msg[1].flags = I2C_M_RD; in dib0070_read_reg() [all …]
|
D | dib7000m.c | 72 static u16 dib7000m_read_word(struct dib7000m_state *state, u16 reg) in dib7000m_read_word() argument 76 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib7000m_read_word() 81 state->i2c_write_buffer[0] = (reg >> 8) | 0x80; in dib7000m_read_word() 82 state->i2c_write_buffer[1] = reg & 0xff; in dib7000m_read_word() 84 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib7000m_read_word() 85 state->msg[0].addr = state->i2c_addr >> 1; in dib7000m_read_word() 86 state->msg[0].flags = 0; in dib7000m_read_word() 87 state->msg[0].buf = state->i2c_write_buffer; in dib7000m_read_word() 88 state->msg[0].len = 2; in dib7000m_read_word() 89 state->msg[1].addr = state->i2c_addr >> 1; in dib7000m_read_word() [all …]
|
D | cx24110.c | 116 static int cx24110_writereg (struct cx24110_state* state, int reg, int data) in cx24110_writereg() argument 119 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in cx24110_writereg() 122 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) { in cx24110_writereg() 131 static int cx24110_readreg (struct cx24110_state* state, u8 reg) in cx24110_readreg() argument 136 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in cx24110_readreg() 137 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in cx24110_readreg() 139 ret = i2c_transfer(state->i2c, msg, 2); in cx24110_readreg() 146 static int cx24110_set_inversion (struct cx24110_state* state, fe_spectral_inversion_t inversion) in cx24110_set_inversion() argument 152 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x1); in cx24110_set_inversion() 154 cx24110_writereg(state,0x5,cx24110_readreg(state,0x5)&0xf7); in cx24110_set_inversion() [all …]
|
D | drxd_hard.c | 241 static int Read16(struct drxd_state *state, u32 reg, u16 *data, u8 flags) in Read16() argument 243 u8 adr = state->config.demod_address; in Read16() 248 if (i2c_read(state->i2c, adr, mm1, 4, mm2, 2) < 0) in Read16() 255 static int Read32(struct drxd_state *state, u32 reg, u32 *data, u8 flags) in Read32() argument 257 u8 adr = state->config.demod_address; in Read32() 263 if (i2c_read(state->i2c, adr, mm1, 4, mm2, 4) < 0) in Read32() 271 static int Write16(struct drxd_state *state, u32 reg, u16 data, u8 flags) in Write16() argument 273 u8 adr = state->config.demod_address; in Write16() 279 if (i2c_write(state->i2c, adr, mm, 6) < 0) in Write16() 284 static int Write32(struct drxd_state *state, u32 reg, u32 data, u8 flags) in Write32() argument [all …]
|
D | cx24113.c | 104 static int cx24113_writereg(struct cx24113_state *state, int reg, int data) in cx24113_writereg() argument 107 struct i2c_msg msg = { .addr = state->config->i2c_addr, in cx24113_writereg() 109 int err = i2c_transfer(state->i2c, &msg, 1); in cx24113_writereg() 119 static int cx24113_readreg(struct cx24113_state *state, u8 reg) in cx24113_readreg() argument 124 { .addr = state->config->i2c_addr, in cx24113_readreg() 126 { .addr = state->config->i2c_addr, in cx24113_readreg() 130 ret = i2c_transfer(state->i2c, msg, 2); in cx24113_readreg() 141 static void cx24113_set_parameters(struct cx24113_state *state) in cx24113_set_parameters() argument 145 r = cx24113_readreg(state, 0x10) & 0x82; in cx24113_set_parameters() 146 r |= state->icp_mode; in cx24113_set_parameters() [all …]
|
D | drxk_hard.c | 41 static int power_down_dvbt(struct drxk_state *state, bool set_power_mode); 42 static int power_down_qam(struct drxk_state *state); 43 static int set_dvbt_standard(struct drxk_state *state, 45 static int set_qam_standard(struct drxk_state *state, 47 static int set_qam(struct drxk_state *state, u16 intermediate_freqk_hz, 49 static int set_dvbt_standard(struct drxk_state *state, 51 static int dvbt_start(struct drxk_state *state); 52 static int set_dvbt(struct drxk_state *state, u16 intermediate_freqk_hz, 54 static int get_qam_lock_status(struct drxk_state *state, u32 *p_lock_status); 55 static int get_dvbt_lock_status(struct drxk_state *state, u32 *p_lock_status); [all …]
|
D | dib8000.c | 167 static u16 __dib8000_read_word(struct dib8000_state *state, u16 reg) in __dib8000_read_word() argument 171 state->i2c_write_buffer[0] = reg >> 8; in __dib8000_read_word() 172 state->i2c_write_buffer[1] = reg & 0xff; in __dib8000_read_word() 174 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in __dib8000_read_word() 175 state->msg[0].addr = state->i2c.addr >> 1; in __dib8000_read_word() 176 state->msg[0].flags = 0; in __dib8000_read_word() 177 state->msg[0].buf = state->i2c_write_buffer; in __dib8000_read_word() 178 state->msg[0].len = 2; in __dib8000_read_word() 179 state->msg[1].addr = state->i2c.addr >> 1; in __dib8000_read_word() 180 state->msg[1].flags = I2C_M_RD; in __dib8000_read_word() [all …]
|
D | tda18271c2dd.c | 119 static int PowerScan(struct tda_state *state, 142 static int WriteRegs(struct tda_state *state, in WriteRegs() argument 156 return i2c_write(state->i2c, state->adr, data, nRegs + 1); in WriteRegs() 159 static int WriteReg(struct tda_state *state, u8 SubAddr, u8 Reg) in WriteReg() argument 163 return i2c_write(state->i2c, state->adr, msg, 2); in WriteReg() 166 static int Read(struct tda_state *state, u8 * Regs) in Read() argument 168 return i2c_readn(state->i2c, state->adr, Regs, 16); in Read() 171 static int ReadExtented(struct tda_state *state, u8 * Regs) in ReadExtented() argument 173 return i2c_readn(state->i2c, state->adr, Regs, NUM_REGS); in ReadExtented() 176 static int UpdateRegs(struct tda_state *state, u8 RegFrom, u8 RegTo) in UpdateRegs() argument [all …]
|
D | stv0297.c | 51 static int stv0297_writereg(struct stv0297_state *state, u8 reg, u8 data) in stv0297_writereg() argument 55 struct i2c_msg msg = {.addr = state->config->demod_address,.flags = 0,.buf = buf,.len = 2 }; in stv0297_writereg() 57 ret = i2c_transfer(state->i2c, &msg, 1); in stv0297_writereg() 66 static int stv0297_readreg(struct stv0297_state *state, u8 reg) in stv0297_readreg() argument 71 struct i2c_msg msg[] = { {.addr = state->config->demod_address,.flags = 0,.buf = b0,.len = 1}, in stv0297_readreg() 72 {.addr = state->config->demod_address,.flags = I2C_M_RD,.buf = b1,.len = 1} in stv0297_readreg() 76 if (state->config->stop_during_read) { in stv0297_readreg() 77 if ((ret = i2c_transfer(state->i2c, &msg[0], 1)) != 1) { in stv0297_readreg() 81 if ((ret = i2c_transfer(state->i2c, &msg[1], 1)) != 1) { in stv0297_readreg() 86 if ((ret = i2c_transfer(state->i2c, msg, 2)) != 2) { in stv0297_readreg() [all …]
|
D | s5h1420.c | 65 static u32 s5h1420_getsymbolrate(struct s5h1420_state* state); 79 static u8 s5h1420_readreg(struct s5h1420_state *state, u8 reg) in s5h1420_readreg() argument 84 { .addr = state->config->demod_address, .flags = 0, .buf = b, .len = 2 }, in s5h1420_readreg() 85 { .addr = state->config->demod_address, .flags = 0, .buf = ®, .len = 1 }, in s5h1420_readreg() 86 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b, .len = 1 }, in s5h1420_readreg() 90 b[1] = state->shadow[(reg - 1) & 0xff]; in s5h1420_readreg() 92 if (state->config->repeated_start_workaround) { in s5h1420_readreg() 93 ret = i2c_transfer(state->i2c, msg, 3); in s5h1420_readreg() 97 ret = i2c_transfer(state->i2c, &msg[1], 1); in s5h1420_readreg() 100 ret = i2c_transfer(state->i2c, &msg[2], 1); in s5h1420_readreg() [all …]
|
D | dib3000mc.c | 50 static u16 dib3000mc_read_word(struct dib3000mc_state *state, u16 reg) in dib3000mc_read_word() argument 55 { .addr = state->i2c_addr >> 1, .flags = 0, .buf = wb, .len = 2 }, in dib3000mc_read_word() 56 { .addr = state->i2c_addr >> 1, .flags = I2C_M_RD, .buf = rb, .len = 2 }, in dib3000mc_read_word() 59 if (i2c_transfer(state->i2c_adap, msg, 2) != 2) in dib3000mc_read_word() 65 static int dib3000mc_write_word(struct dib3000mc_state *state, u16 reg, u16 val) in dib3000mc_write_word() argument 72 .addr = state->i2c_addr >> 1, .flags = 0, .buf = b, .len = 4 in dib3000mc_write_word() 74 return i2c_transfer(state->i2c_adap, &msg, 1) != 1 ? -EREMOTEIO : 0; in dib3000mc_write_word() 77 static int dib3000mc_identify(struct dib3000mc_state *state) in dib3000mc_identify() argument 80 if ((value = dib3000mc_read_word(state, 1025)) != 0x01b3) { in dib3000mc_identify() 85 value = dib3000mc_read_word(state, 1026); in dib3000mc_identify() [all …]
|
D | nxt200x.c | 72 static int i2c_writebytes (struct nxt200x_state* state, u8 addr, u8 *buf, u8 len) in i2c_writebytes() argument 77 if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { in i2c_writebytes() 85 static int i2c_readbytes(struct nxt200x_state *state, u8 addr, u8 *buf, u8 len) in i2c_readbytes() argument 90 if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { in i2c_readbytes() 98 static int nxt200x_writebytes (struct nxt200x_state* state, u8 reg, in nxt200x_writebytes() argument 103 …struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf2, .len = len +… in nxt200x_writebytes() 114 if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { in nxt200x_writebytes() 116 __func__, state->config->demod_address, err); in nxt200x_writebytes() 122 static int nxt200x_readbytes(struct nxt200x_state *state, u8 reg, u8 *buf, u8 len) in nxt200x_readbytes() argument 126 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = reg2, .len = … in nxt200x_readbytes() [all …]
|
D | tda1004x.c | 128 static int tda1004x_write_byteI(struct tda1004x_state *state, int reg, int data) in tda1004x_write_byteI() argument 136 msg.addr = state->config->demod_address; in tda1004x_write_byteI() 137 ret = i2c_transfer(state->i2c, &msg, 1); in tda1004x_write_byteI() 148 static int tda1004x_read_byte(struct tda1004x_state *state, int reg) in tda1004x_read_byte() argument 158 msg[0].addr = state->config->demod_address; in tda1004x_read_byte() 159 msg[1].addr = state->config->demod_address; in tda1004x_read_byte() 160 ret = i2c_transfer(state->i2c, msg, 2); in tda1004x_read_byte() 173 static int tda1004x_write_mask(struct tda1004x_state *state, int reg, int mask, int data) in tda1004x_write_mask() argument 180 val = tda1004x_read_byte(state, reg); in tda1004x_write_mask() 189 return tda1004x_write_byteI(state, reg, val); in tda1004x_write_mask() [all …]
|
D | nxt6000.c | 44 static int nxt6000_writereg(struct nxt6000_state* state, u8 reg, u8 data) in nxt6000_writereg() argument 47 struct i2c_msg msg = {.addr = state->config->demod_address,.flags = 0,.buf = buf,.len = 2 }; in nxt6000_writereg() 50 if ((ret = i2c_transfer(state->i2c, &msg, 1)) != 1) in nxt6000_writereg() 56 static u8 nxt6000_readreg(struct nxt6000_state* state, u8 reg) in nxt6000_readreg() argument 62 {.addr = state->config->demod_address,.flags = 0,.buf = b0,.len = 1}, in nxt6000_readreg() 63 {.addr = state->config->demod_address,.flags = I2C_M_RD,.buf = b1,.len = 1} in nxt6000_readreg() 66 ret = i2c_transfer(state->i2c, msgs, 2); in nxt6000_readreg() 74 static void nxt6000_reset(struct nxt6000_state* state) in nxt6000_reset() argument 78 val = nxt6000_readreg(state, OFDM_COR_CTL); in nxt6000_reset() 80 nxt6000_writereg(state, OFDM_COR_CTL, val & ~COREACT); in nxt6000_reset() [all …]
|
D | cx24123.c | 245 static int cx24123_i2c_writereg(struct cx24123_state *state, in cx24123_i2c_writereg() argument 256 err = i2c_transfer(state->i2c, &msg, 1); in cx24123_i2c_writereg() 266 static int cx24123_i2c_readreg(struct cx24123_state *state, u8 i2c_addr, u8 reg) in cx24123_i2c_readreg() argument 275 ret = i2c_transfer(state->i2c, msg, 2); in cx24123_i2c_readreg() 287 #define cx24123_readreg(state, reg) \ argument 288 cx24123_i2c_readreg(state, state->config->demod_address, reg) 289 #define cx24123_writereg(state, reg, val) \ argument 290 cx24123_i2c_writereg(state, state->config->demod_address, reg, val) 292 static int cx24123_set_inversion(struct cx24123_state *state, in cx24123_set_inversion() argument 295 u8 nom_reg = cx24123_readreg(state, 0x0e); in cx24123_set_inversion() [all …]
|
D | mb86a16.c | 76 static int mb86a16_write(struct mb86a16_state *state, u8 reg, u8 val) in mb86a16_write() argument 82 .addr = state->config->demod_address, in mb86a16_write() 90 state->config->demod_address, buf[0], buf[1]); in mb86a16_write() 92 ret = i2c_transfer(state->i2c_adap, &msg, 1); in mb86a16_write() 97 static int mb86a16_read(struct mb86a16_state *state, u8 reg, u8 *val) in mb86a16_read() argument 105 .addr = state->config->demod_address, in mb86a16_read() 110 .addr = state->config->demod_address, in mb86a16_read() 116 ret = i2c_transfer(state->i2c_adap, msg, 2); in mb86a16_read() 130 static int CNTM_set(struct mb86a16_state *state, in CNTM_set() argument 138 if (mb86a16_write(state, MB86A16_CNTMR, val) < 0) in CNTM_set() [all …]
|
D | tda10023.c | 64 static u8 tda10023_readreg (struct tda10023_state* state, u8 reg) in tda10023_readreg() argument 68 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in tda10023_readreg() 69 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in tda10023_readreg() 72 ret = i2c_transfer (state->i2c, msg, 2); in tda10023_readreg() 74 int num = state->frontend.dvb ? state->frontend.dvb->num : -1; in tda10023_readreg() 82 static int tda10023_writereg (struct tda10023_state* state, u8 reg, u8 data) in tda10023_writereg() argument 85 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in tda10023_writereg() 88 ret = i2c_transfer (state->i2c, &msg, 1); in tda10023_writereg() 90 int num = state->frontend.dvb ? state->frontend.dvb->num : -1; in tda10023_writereg() 99 static int tda10023_writebit (struct tda10023_state* state, u8 reg, u8 mask,u8 data) in tda10023_writebit() argument [all …]
|
D | s5h1409.c | 313 static int s5h1409_writereg(struct s5h1409_state *state, u8 reg, u16 data) in s5h1409_writereg() argument 318 struct i2c_msg msg = { .addr = state->config->demod_address, in s5h1409_writereg() 321 ret = i2c_transfer(state->i2c, &msg, 1); in s5h1409_writereg() 330 static u16 s5h1409_readreg(struct s5h1409_state *state, u8 reg) in s5h1409_readreg() argument 337 { .addr = state->config->demod_address, .flags = 0, in s5h1409_readreg() 339 { .addr = state->config->demod_address, .flags = I2C_M_RD, in s5h1409_readreg() 342 ret = i2c_transfer(state->i2c, msg, 2); in s5h1409_readreg() 351 struct s5h1409_state *state = fe->demodulator_priv; in s5h1409_softreset() local 355 s5h1409_writereg(state, 0xf5, 0); in s5h1409_softreset() 356 s5h1409_writereg(state, 0xf5, 1); in s5h1409_softreset() [all …]
|
D | lgdt3306a.c | 112 static void lgdt3306a_DumpAllRegs(struct lgdt3306a_state *state); 113 static void lgdt3306a_DumpRegs(struct lgdt3306a_state *state); 117 static int lgdt3306a_write_reg(struct lgdt3306a_state *state, u16 reg, u8 val) in lgdt3306a_write_reg() argument 122 .addr = state->cfg->i2c_addr, .flags = 0, in lgdt3306a_write_reg() 128 ret = i2c_transfer(state->i2c_adap, &msg, 1); in lgdt3306a_write_reg() 141 static int lgdt3306a_read_reg(struct lgdt3306a_state *state, u16 reg, u8 *val) in lgdt3306a_read_reg() argument 146 { .addr = state->cfg->i2c_addr, in lgdt3306a_read_reg() 148 { .addr = state->cfg->i2c_addr, in lgdt3306a_read_reg() 152 ret = i2c_transfer(state->i2c_adap, msg, 2); in lgdt3306a_read_reg() 156 state->cfg->i2c_addr, reg, ret); in lgdt3306a_read_reg() [all …]
|
D | dib9000.c | 203 static int dib9000_risc_apb_access_read(struct dib9000_state *state, u32 address, u16 attribute, co… 204 static int dib9000_risc_apb_access_write(struct dib9000_state *state, u32 address, u16 attribute, c… 228 static u16 dib9000_read16_attr(struct dib9000_state *state, u16 reg, u8 * b, u32 len, u16 attribute) in dib9000_read16_attr() argument 234 if (state->platform.risc.fw_is_running && (reg < 1024)) in dib9000_read16_attr() 235 return dib9000_risc_apb_access_read(state, reg, attribute, NULL, 0, b, len); in dib9000_read16_attr() 237 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib9000_read16_attr() 238 state->msg[0].addr = state->i2c.i2c_addr >> 1; in dib9000_read16_attr() 239 state->msg[0].flags = 0; in dib9000_read16_attr() 240 state->msg[0].buf = state->i2c_write_buffer; in dib9000_read16_attr() 241 state->msg[0].len = 2; in dib9000_read16_attr() [all …]
|
D | si2165.c | 105 static int si2165_write(struct si2165_state *state, const u16 reg, in si2165_write() argument 113 dev_warn(&state->i2c->dev, in si2165_write() 122 msg.addr = state->config.i2c_addr; in si2165_write() 130 ret = i2c_transfer(state->i2c, &msg, 1); in si2165_write() 133 dev_err(&state->i2c->dev, "%s: ret == %d\n", __func__, ret); in si2165_write() 143 static int si2165_read(struct si2165_state *state, in si2165_read() argument 149 { .addr = state->config.i2c_addr, in si2165_read() 151 { .addr = state->config.i2c_addr, in si2165_read() 155 ret = i2c_transfer(state->i2c, msg, 2); in si2165_read() 158 dev_err(&state->i2c->dev, "%s: error (addr %02x reg %04x error (ret == %i)\n", in si2165_read() [all …]
|
D | dib7000p.c | 93 static void dib7090_setDibTxMux(struct dib7000p_state *state, int mode); 94 static void dib7090_setHostBusMux(struct dib7000p_state *state, int mode); 96 static u16 dib7000p_read_word(struct dib7000p_state *state, u16 reg) in dib7000p_read_word() argument 100 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib7000p_read_word() 105 state->i2c_write_buffer[0] = reg >> 8; in dib7000p_read_word() 106 state->i2c_write_buffer[1] = reg & 0xff; in dib7000p_read_word() 108 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib7000p_read_word() 109 state->msg[0].addr = state->i2c_addr >> 1; in dib7000p_read_word() 110 state->msg[0].flags = 0; in dib7000p_read_word() 111 state->msg[0].buf = state->i2c_write_buffer; in dib7000p_read_word() [all …]
|
D | ves1x93.c | 95 static int ves1x93_writereg (struct ves1x93_state* state, u8 reg, u8 data) in ves1x93_writereg() argument 98 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 3 }; in ves1x93_writereg() 101 if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { in ves1x93_writereg() 109 static u8 ves1x93_readreg (struct ves1x93_state* state, u8 reg) in ves1x93_readreg() argument 114 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 2 … in ves1x93_readreg() 115 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in ves1x93_readreg() 117 ret = i2c_transfer (state->i2c, msg, 2); in ves1x93_readreg() 124 static int ves1x93_clr_bit (struct ves1x93_state* state) in ves1x93_clr_bit() argument 127 ves1x93_writereg (state, 0, state->init_1x93_tab[0] & 0xfe); in ves1x93_clr_bit() 128 ves1x93_writereg (state, 0, state->init_1x93_tab[0]); in ves1x93_clr_bit() [all …]
|
D | cx24117.c | 269 static int cx24117_writereg(struct cx24117_state *state, u8 reg, u8 data) in cx24117_writereg() argument 272 struct i2c_msg msg = { .addr = state->priv->demod_address, in cx24117_writereg() 276 dev_dbg(&state->priv->i2c->dev, in cx24117_writereg() 278 __func__, state->demod, reg, data); in cx24117_writereg() 280 ret = i2c_transfer(state->priv->i2c, &msg, 1); in cx24117_writereg() 282 dev_warn(&state->priv->i2c->dev, in cx24117_writereg() 284 KBUILD_MODNAME, state->demod, ret, reg, data); in cx24117_writereg() 290 static int cx24117_writecmd(struct cx24117_state *state, in cx24117_writecmd() argument 297 dev_dbg(&state->priv->i2c->dev, in cx24117_writecmd() 299 __func__, state->demod, cmd->len); in cx24117_writecmd() [all …]
|
D | stb0899_drv.c | 225 static int _stb0899_read_reg(struct stb0899_state *state, unsigned int reg) in _stb0899_read_reg() argument 234 .addr = state->config->demod_address, in _stb0899_read_reg() 239 .addr = state->config->demod_address, in _stb0899_read_reg() 246 ret = i2c_transfer(state->i2c, msg, 2); in _stb0899_read_reg() 249 dprintk(state->verbose, FE_ERROR, 1, in _stb0899_read_reg() 255 if (unlikely(*state->verbose >= FE_DEBUGREG)) in _stb0899_read_reg() 256 dprintk(state->verbose, FE_ERROR, 1, "Reg=[0x%02x], data=%02x", in _stb0899_read_reg() 262 int stb0899_read_reg(struct stb0899_state *state, unsigned int reg) in stb0899_read_reg() argument 266 result = _stb0899_read_reg(state, reg); in stb0899_read_reg() 274 _stb0899_read_reg(state, (reg | 0x00ff)); in stb0899_read_reg() [all …]
|
D | stv0299.c | 81 static int stv0299_writeregI (struct stv0299_state* state, u8 reg, u8 data) in stv0299_writeregI() argument 85 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in stv0299_writeregI() 87 ret = i2c_transfer (state->i2c, &msg, 1); in stv0299_writeregI() 98 struct stv0299_state* state = fe->demodulator_priv; in stv0299_write() local 103 return stv0299_writeregI(state, buf[0], buf[1]); in stv0299_write() 106 static u8 stv0299_readreg (struct stv0299_state* state, u8 reg) in stv0299_readreg() argument 111 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in stv0299_readreg() 112 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in stv0299_readreg() 114 ret = i2c_transfer (state->i2c, msg, 2); in stv0299_readreg() 123 static int stv0299_readregs (struct stv0299_state* state, u8 reg1, u8 *b, u8 len) in stv0299_readregs() argument [all …]
|
D | stv0367.c | 53 enum stv0367_cab_signal_type state; member 67 enum stv0367_ter_signal_type state; member 770 int stv0367_writeregs(struct stv0367_state *state, u16 reg, u8 *data, int len) in stv0367_writeregs() argument 774 .addr = state->config->demod_address, in stv0367_writeregs() 796 ret = i2c_transfer(state->i2c, &msg, 1); in stv0367_writeregs() 803 static int stv0367_writereg(struct stv0367_state *state, u16 reg, u8 data) in stv0367_writereg() argument 805 return stv0367_writeregs(state, reg, &data, 1); in stv0367_writereg() 808 static u8 stv0367_readreg(struct stv0367_state *state, u16 reg) in stv0367_readreg() argument 814 .addr = state->config->demod_address, in stv0367_readreg() 819 .addr = state->config->demod_address, in stv0367_readreg() [all …]
|
D | tda10086.c | 52 static int tda10086_write_byte(struct tda10086_state *state, int reg, int data) in tda10086_write_byte() argument 58 msg.addr = state->config->demod_address; in tda10086_write_byte() 59 ret = i2c_transfer(state->i2c, &msg, 1); in tda10086_write_byte() 68 static int tda10086_read_byte(struct tda10086_state *state, int reg) in tda10086_read_byte() argument 76 msg[0].addr = state->config->demod_address; in tda10086_read_byte() 77 msg[1].addr = state->config->demod_address; in tda10086_read_byte() 78 ret = i2c_transfer(state->i2c, msg, 2); in tda10086_read_byte() 89 static int tda10086_write_mask(struct tda10086_state *state, int reg, int mask, int data) in tda10086_write_mask() argument 94 val = tda10086_read_byte(state, reg); in tda10086_write_mask() 103 return tda10086_write_byte(state, reg, val); in tda10086_write_mask() [all …]
|
D | ds3000.c | 240 static int ds3000_writereg(struct ds3000_state *state, int reg, int data) in ds3000_writereg() argument 243 struct i2c_msg msg = { .addr = state->config->demod_address, in ds3000_writereg() 249 err = i2c_transfer(state->i2c, &msg, 1); in ds3000_writereg() 261 struct ds3000_state *state = fe->demodulator_priv; in ds3000_i2c_gate_ctrl() local 264 ds3000_writereg(state, 0x03, 0x12); in ds3000_i2c_gate_ctrl() 266 ds3000_writereg(state, 0x03, 0x02); in ds3000_i2c_gate_ctrl() 272 static int ds3000_writeFW(struct ds3000_state *state, int reg, in ds3000_writeFW() argument 287 msg.addr = state->config->demod_address; in ds3000_writeFW() 297 ret = i2c_transfer(state->i2c, &msg, 1); in ds3000_writeFW() 313 static int ds3000_readreg(struct ds3000_state *state, u8 reg) in ds3000_readreg() argument [all …]
|
D | tda8083.c | 61 static int tda8083_writereg (struct tda8083_state* state, u8 reg, u8 data) in tda8083_writereg() argument 65 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in tda8083_writereg() 67 ret = i2c_transfer(state->i2c, &msg, 1); in tda8083_writereg() 76 static int tda8083_readregs (struct tda8083_state* state, u8 reg1, u8 *b, u8 len) in tda8083_readregs() argument 79 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = ®1, .len =… in tda8083_readregs() 80 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b, .len = len } }; in tda8083_readregs() 82 ret = i2c_transfer(state->i2c, msg, 2); in tda8083_readregs() 91 static inline u8 tda8083_readreg (struct tda8083_state* state, u8 reg) in tda8083_readreg() argument 95 tda8083_readregs (state, reg, &val, 1); in tda8083_readreg() 100 static int tda8083_set_inversion (struct tda8083_state* state, fe_spectral_inversion_t inversion) in tda8083_set_inversion() argument [all …]
|
D | m88rs2000.c | 63 static int m88rs2000_writereg(struct m88rs2000_state *state, in m88rs2000_writereg() argument 69 .addr = state->config->demod_addr, in m88rs2000_writereg() 75 ret = i2c_transfer(state->i2c, &msg, 1); in m88rs2000_writereg() 84 static u8 m88rs2000_readreg(struct m88rs2000_state *state, u8 reg) in m88rs2000_readreg() argument 92 .addr = state->config->demod_addr, in m88rs2000_readreg() 97 .addr = state->config->demod_addr, in m88rs2000_readreg() 104 ret = i2c_transfer(state->i2c, msg, 2); in m88rs2000_readreg() 115 struct m88rs2000_state *state = fe->demodulator_priv; in m88rs2000_get_mclk() local 119 reg = m88rs2000_readreg(state, 0x86); in m88rs2000_get_mclk() 133 struct m88rs2000_state *state = fe->demodulator_priv; in m88rs2000_set_carrieroffset() local [all …]
|
D | s5h1432.c | 55 static int s5h1432_writereg(struct s5h1432_state *state, in s5h1432_writereg() argument 63 ret = i2c_transfer(state->i2c, &msg, 1); in s5h1432_writereg() 72 static u8 s5h1432_readreg(struct s5h1432_state *state, u8 addr, u8 reg) in s5h1432_readreg() argument 83 ret = i2c_transfer(state->i2c, msg, 2); in s5h1432_readreg() 99 struct s5h1432_state *state = fe->demodulator_priv; in s5h1432_set_channel_bandwidth() local 104 reg = s5h1432_readreg(state, S5H1432_I2C_TOP_ADDR, 0x2E); in s5h1432_set_channel_bandwidth() 119 s5h1432_writereg(state, S5H1432_I2C_TOP_ADDR, 0x2E, reg); in s5h1432_set_channel_bandwidth() 125 struct s5h1432_state *state = fe->demodulator_priv; in s5h1432_set_IF() local 129 s5h1432_writereg(state, S5H1432_I2C_TOP_ADDR, 0xe4, 0x55); in s5h1432_set_IF() 130 s5h1432_writereg(state, S5H1432_I2C_TOP_ADDR, 0xe5, 0x55); in s5h1432_set_IF() [all …]
|
D | l64781.c | 52 static int l64781_writereg (struct l64781_state* state, u8 reg, u8 data) in l64781_writereg() argument 56 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in l64781_writereg() 58 if ((ret = i2c_transfer(state->i2c, &msg, 1)) != 1) in l64781_writereg() 65 static int l64781_readreg (struct l64781_state* state, u8 reg) in l64781_readreg() argument 70 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in l64781_readreg() 71 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in l64781_readreg() 73 ret = i2c_transfer(state->i2c, msg, 2); in l64781_readreg() 80 static void apply_tps (struct l64781_state* state) in apply_tps() argument 82 l64781_writereg (state, 0x2a, 0x00); in apply_tps() 83 l64781_writereg (state, 0x2a, 0x01); in apply_tps() [all …]
|
D | sp887x.c | 39 static int i2c_writebytes (struct sp887x_state* state, u8 *buf, u8 len) in i2c_writebytes() argument 41 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = len }; in i2c_writebytes() 44 if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { in i2c_writebytes() 46 __func__, state->config->demod_address, err); in i2c_writebytes() 53 static int sp887x_writereg (struct sp887x_state* state, u16 reg, u16 data) in sp887x_writereg() argument 56 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 4 }; in sp887x_writereg() 59 if ((ret = i2c_transfer(state->i2c, &msg, 1)) != 1) { in sp887x_writereg() 76 static int sp887x_readreg (struct sp887x_state* state, u16 reg) in sp887x_readreg() argument 81 struct i2c_msg msg[] = {{ .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 2 }, in sp887x_readreg() 82 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 2 }}; in sp887x_readreg() [all …]
|
D | ves1820.c | 59 static int ves1820_writereg(struct ves1820_state *state, u8 reg, u8 data) in ves1820_writereg() argument 62 struct i2c_msg msg = {.addr = state->config->demod_address,.flags = 0,.buf = buf,.len = 3 }; in ves1820_writereg() 65 ret = i2c_transfer(state->i2c, &msg, 1); in ves1820_writereg() 74 static u8 ves1820_readreg(struct ves1820_state *state, u8 reg) in ves1820_readreg() argument 79 {.addr = state->config->demod_address,.flags = 0,.buf = b0,.len = 2}, in ves1820_readreg() 80 {.addr = state->config->demod_address,.flags = I2C_M_RD,.buf = b1,.len = 1} in ves1820_readreg() 84 ret = i2c_transfer(state->i2c, msg, 2); in ves1820_readreg() 93 static int ves1820_setup_reg0(struct ves1820_state *state, u8 reg0, fe_spectral_inversion_t inversi… in ves1820_setup_reg0() argument 95 reg0 |= state->reg0 & 0x62; in ves1820_setup_reg0() 98 if (!state->config->invert) reg0 |= 0x20; in ves1820_setup_reg0() [all …]
|
D | af9013.c | 181 static int af9013_write_ofsm_regs(struct af9013_state *state, u16 reg, u8 *val, in af9013_write_ofsm_regs() argument 185 return af9013_wr_regs_i2c(state, mbox, reg, val, len); in af9013_write_ofsm_regs() 188 static int af9013_wr_reg_bits(struct af9013_state *state, u16 reg, int pos, in af9013_wr_reg_bits() argument 196 ret = af9013_rd_reg(state, reg, &tmp); in af9013_wr_reg_bits() 206 return af9013_wr_reg(state, reg, val); in af9013_wr_reg_bits() 209 static int af9013_rd_reg_bits(struct af9013_state *state, u16 reg, int pos, in af9013_rd_reg_bits() argument 215 ret = af9013_rd_reg(state, reg, &tmp); in af9013_rd_reg_bits() 225 static int af9013_set_gpio(struct af9013_state *state, u8 gpio, u8 gpioval) in af9013_set_gpio() argument 231 dev_dbg(&state->i2c->dev, "%s: gpio=%d gpioval=%02x\n", in af9013_set_gpio() 250 dev_err(&state->i2c->dev, "%s: invalid gpio=%d\n", in af9013_set_gpio() [all …]
|
D | stb0899_algo.c | 60 static u32 stb0899_get_srate(struct stb0899_state *state) 62 struct stb0899_internal *internal = &state->internal; 65 stb0899_read_regs(state, STB0899_SFRH, sfr, 3); 78 static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 srate) in stb0899_set_srate() argument 83 dprintk(state->verbose, FE_DEBUG, 1, "-->"); in stb0899_set_srate() 108 stb0899_write_regs(state, STB0899_SFRH, sfr, 3); in stb0899_set_srate() 132 long stb0899_carr_width(struct stb0899_state *state) in stb0899_carr_width() argument 134 struct stb0899_internal *internal = &state->internal; in stb0899_carr_width() 143 static void stb0899_first_subrange(struct stb0899_state *state) in stb0899_first_subrange() argument 145 struct stb0899_internal *internal = &state->internal; in stb0899_first_subrange() [all …]
|
D | stv0288.c | 63 static int stv0288_writeregI(struct stv0288_state *state, u8 reg, u8 data) in stv0288_writeregI() argument 68 .addr = state->config->demod_address, in stv0288_writeregI() 74 ret = i2c_transfer(state->i2c, &msg, 1); in stv0288_writeregI() 85 struct stv0288_state *state = fe->demodulator_priv; in stv0288_write() local 90 return stv0288_writeregI(state, buf[0], buf[1]); in stv0288_write() 93 static u8 stv0288_readreg(struct stv0288_state *state, u8 reg) in stv0288_readreg() argument 100 .addr = state->config->demod_address, in stv0288_readreg() 105 .addr = state->config->demod_address, in stv0288_readreg() 112 ret = i2c_transfer(state->i2c, msg, 2); in stv0288_readreg() 123 struct stv0288_state *state = fe->demodulator_priv; in stv0288_set_symbolrate() local [all …]
|
D | sp8870.c | 66 static int sp8870_writereg (struct sp8870_state* state, u16 reg, u16 data) in sp8870_writereg() argument 69 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 4 }; in sp8870_writereg() 72 if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { in sp8870_writereg() 80 static int sp8870_readreg (struct sp8870_state* state, u16 reg) in sp8870_readreg() argument 85 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 2 … in sp8870_readreg() 86 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 2 } }; in sp8870_readreg() 88 ret = i2c_transfer (state->i2c, msg, 2); in sp8870_readreg() 98 static int sp8870_firmware_upload (struct sp8870_state* state, const struct firmware *fw) in sp8870_firmware_upload() argument 113 sp8870_writereg(state, 0x0F00, 0x0000); in sp8870_firmware_upload() 116 sp8870_writereg(state, 0x8F08, ((SP8870_FIRMWARE_SIZE / 2) & 0xFFFF)); in sp8870_firmware_upload() [all …]
|
D | mb86a20s.c | 228 static int mb86a20s_i2c_writereg(struct mb86a20s_state *state, in mb86a20s_i2c_writereg() argument 237 rc = i2c_transfer(state->i2c, &msg, 1); in mb86a20s_i2c_writereg() 239 dev_err(&state->i2c->dev, in mb86a20s_i2c_writereg() 248 static int mb86a20s_i2c_writeregdata(struct mb86a20s_state *state, in mb86a20s_i2c_writeregdata() argument 254 rc = mb86a20s_i2c_writereg(state, i2c_addr, rd[i].reg, in mb86a20s_i2c_writeregdata() 262 static int mb86a20s_i2c_readreg(struct mb86a20s_state *state, in mb86a20s_i2c_readreg() argument 272 rc = i2c_transfer(state->i2c, msg, 2); in mb86a20s_i2c_readreg() 275 dev_err(&state->i2c->dev, "%s: reg=0x%x (error=%d)\n", in mb86a20s_i2c_readreg() 283 #define mb86a20s_readreg(state, reg) \ argument 284 mb86a20s_i2c_readreg(state, state->config->demod_address, reg) [all …]
|
D | lgs8gl5.c | 72 lgs8gl5_write_reg(struct lgs8gl5_state *state, u8 reg, u8 data) in lgs8gl5_write_reg() argument 77 .addr = state->config->demod_address, in lgs8gl5_write_reg() 83 ret = i2c_transfer(state->i2c, &msg, 1); in lgs8gl5_write_reg() 93 lgs8gl5_read_reg(struct lgs8gl5_state *state, u8 reg) in lgs8gl5_read_reg() argument 100 .addr = state->config->demod_address, in lgs8gl5_read_reg() 106 .addr = state->config->demod_address, in lgs8gl5_read_reg() 113 ret = i2c_transfer(state->i2c, msg, 2); in lgs8gl5_read_reg() 122 lgs8gl5_update_reg(struct lgs8gl5_state *state, u8 reg, u8 data) in lgs8gl5_update_reg() argument 124 lgs8gl5_read_reg(state, reg); in lgs8gl5_update_reg() 125 lgs8gl5_write_reg(state, reg, data); in lgs8gl5_update_reg() [all …]
|
D | or51211.c | 72 static int i2c_writebytes (struct or51211_state* state, u8 reg, const u8 *buf, in i2c_writebytes() argument 82 if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { in i2c_writebytes() 90 static int i2c_readbytes(struct or51211_state *state, u8 reg, u8 *buf, int len) in i2c_readbytes() argument 99 if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { in i2c_readbytes() 110 struct or51211_state* state = fe->demodulator_priv; in or51211_load_firmware() local 118 if (i2c_writebytes(state,0x50,tudata,1)) { in or51211_load_firmware() 122 if (i2c_readbytes(state,0x50,&tudata[145],192)) { in or51211_load_firmware() 134 state->config->reset(fe); in or51211_load_firmware() 136 if (i2c_writebytes(state,state->config->demod_address,tudata,585)) { in or51211_load_firmware() 142 if (i2c_writebytes(state,state->config->demod_address, in or51211_load_firmware() [all …]
|
D | tda10021.c | 72 static int _tda10021_writereg (struct tda10021_state* state, u8 reg, u8 data) in _tda10021_writereg() argument 75 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in _tda10021_writereg() 78 ret = i2c_transfer (state->i2c, &msg, 1); in _tda10021_writereg() 82 state->frontend.dvb->num, __func__, reg, data, ret); in _tda10021_writereg() 88 static u8 tda10021_readreg (struct tda10021_state* state, u8 reg) in tda10021_readreg() argument 92 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in tda10021_readreg() 93 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in tda10021_readreg() 96 ret = i2c_transfer (state->i2c, msg, 2); in tda10021_readreg() 105 static int lock_tuner(struct tda10021_state* state) in lock_tuner() argument 108 struct i2c_msg msg = {.addr=state->config->demod_address, .flags=0, .buf=buf, .len=2}; in lock_tuner() [all …]
|
D | lgdt330x.c | 77 static int i2c_write_demod_bytes (struct lgdt330x_state* state, in i2c_write_demod_bytes() argument 82 { .addr = state->config->demod_address, in i2c_write_demod_bytes() 90 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) { in i2c_write_demod_bytes() 107 static int i2c_read_demod_bytes(struct lgdt330x_state *state, in i2c_read_demod_bytes() argument 112 { .addr = state->config->demod_address, in i2c_read_demod_bytes() 114 { .addr = state->config->demod_address, in i2c_read_demod_bytes() 118 ret = i2c_transfer(state->i2c, msg, 2); in i2c_read_demod_bytes() 120 … "lgdt330x: %s: addr 0x%02x select 0x%02x error (ret == %i)\n", __func__, state->config->demod_add… in i2c_read_demod_bytes() 130 static int lgdt3302_SwReset(struct lgdt330x_state* state) in lgdt3302_SwReset() argument 139 ret = i2c_write_demod_bytes(state, in lgdt3302_SwReset() [all …]
|
D | lg2160.c | 67 static int lg216x_write_reg(struct lg216x_state *state, u16 reg, u8 val) in lg216x_write_reg() argument 72 .addr = state->cfg->i2c_addr, .flags = 0, in lg216x_write_reg() 78 ret = i2c_transfer(state->i2c_adap, &msg, 1); in lg216x_write_reg() 91 static int lg216x_read_reg(struct lg216x_state *state, u16 reg, u8 *val) in lg216x_read_reg() argument 96 { .addr = state->cfg->i2c_addr, in lg216x_read_reg() 98 { .addr = state->cfg->i2c_addr, in lg216x_read_reg() 104 ret = i2c_transfer(state->i2c_adap, msg, 2); in lg216x_read_reg() 108 state->cfg->i2c_addr, reg, ret); in lg216x_read_reg() 122 static int lg216x_write_regs(struct lg216x_state *state, in lg216x_write_regs() argument 130 ret = lg216x_write_reg(state, regs[i].reg, regs[i].val); in lg216x_write_regs() [all …]
|
D | cx22702.c | 85 static int cx22702_writereg(struct cx22702_state *state, u8 reg, u8 data) in cx22702_writereg() argument 90 .addr = state->config->demod_address, .flags = 0, in cx22702_writereg() 93 ret = i2c_transfer(state->i2c, &msg, 1); in cx22702_writereg() 105 static u8 cx22702_readreg(struct cx22702_state *state, u8 reg) in cx22702_readreg() argument 111 { .addr = state->config->demod_address, .flags = 0, in cx22702_readreg() 113 { .addr = state->config->demod_address, .flags = I2C_M_RD, in cx22702_readreg() 116 ret = i2c_transfer(state->i2c, msg, 2); in cx22702_readreg() 127 static int cx22702_set_inversion(struct cx22702_state *state, int inversion) in cx22702_set_inversion() argument 131 val = cx22702_readreg(state, 0x0C); in cx22702_set_inversion() 144 return cx22702_writereg(state, 0x0C, val); in cx22702_set_inversion() [all …]
|
D | mt312.c | 63 static int mt312_read(struct mt312_state *state, const enum mt312_reg_addr reg, in mt312_read() argument 70 msg[0].addr = state->config->demod_address; in mt312_read() 74 msg[1].addr = state->config->demod_address; in mt312_read() 79 ret = i2c_transfer(state->i2c, msg, 2); in mt312_read() 97 static int mt312_write(struct mt312_state *state, const enum mt312_reg_addr reg, in mt312_write() argument 121 msg.addr = state->config->demod_address; in mt312_write() 126 ret = i2c_transfer(state->i2c, &msg, 1); in mt312_write() 136 static inline int mt312_readreg(struct mt312_state *state, in mt312_readreg() argument 139 return mt312_read(state, reg, val, 1); in mt312_readreg() 142 static inline int mt312_writereg(struct mt312_state *state, in mt312_writereg() argument [all …]
|
D | cx22700.c | 70 static int cx22700_writereg (struct cx22700_state* state, u8 reg, u8 data) in cx22700_writereg() argument 74 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in cx22700_writereg() 78 ret = i2c_transfer (state->i2c, &msg, 1); in cx22700_writereg() 87 static int cx22700_readreg (struct cx22700_state* state, u8 reg) in cx22700_readreg() argument 92 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in cx22700_readreg() 93 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in cx22700_readreg() 97 ret = i2c_transfer (state->i2c, msg, 2); in cx22700_readreg() 104 static int cx22700_set_inversion (struct cx22700_state* state, int inversion) in cx22700_set_inversion() argument 114 val = cx22700_readreg (state, 0x09); in cx22700_set_inversion() 115 return cx22700_writereg (state, 0x09, val | 0x01); in cx22700_set_inversion() [all …]
|
D | lgdt3305.c | 115 static int lgdt3305_write_reg(struct lgdt3305_state *state, u16 reg, u8 val) in lgdt3305_write_reg() argument 120 .addr = state->cfg->i2c_addr, .flags = 0, in lgdt3305_write_reg() 126 ret = i2c_transfer(state->i2c_adap, &msg, 1); in lgdt3305_write_reg() 139 static int lgdt3305_read_reg(struct lgdt3305_state *state, u16 reg, u8 *val) in lgdt3305_read_reg() argument 144 { .addr = state->cfg->i2c_addr, in lgdt3305_read_reg() 146 { .addr = state->cfg->i2c_addr, in lgdt3305_read_reg() 152 ret = i2c_transfer(state->i2c_adap, msg, 2); in lgdt3305_read_reg() 156 state->cfg->i2c_addr, reg, ret); in lgdt3305_read_reg() 165 #define read_reg(state, reg) \ argument 168 int ret = lgdt3305_read_reg(state, reg, &__val); \ [all …]
|
D | itd1000.c | 56 static int itd1000_write_regs(struct itd1000_state *state, u8 reg, u8 v[], u8 len) in itd1000_write_regs() argument 60 .addr = state->cfg->i2c_address, .flags = 0, .buf = buf, .len = len+1 in itd1000_write_regs() 75 if (i2c_transfer(state->i2c, &msg, 1) != 1) { in itd1000_write_regs() 82 static int itd1000_read_reg(struct itd1000_state *state, u8 reg) in itd1000_read_reg() argument 86 { .addr = state->cfg->i2c_address, .flags = 0, .buf = ®, .len = 1 }, in itd1000_read_reg() 87 { .addr = state->cfg->i2c_address, .flags = I2C_M_RD, .buf = &val, .len = 1 }, in itd1000_read_reg() 91 itd1000_write_regs(state, (reg - 1) & 0xff, &state->shadow[(reg - 1) & 0xff], 1); in itd1000_read_reg() 93 if (i2c_transfer(state->i2c, msg, 2) != 2) { in itd1000_read_reg() 100 static inline int itd1000_write_reg(struct itd1000_state *state, u8 r, u8 v) in itd1000_write_reg() argument 102 int ret = itd1000_write_regs(state, r, &v, 1); in itd1000_write_reg() [all …]
|
D | s5h1411.c | 342 static int s5h1411_writereg(struct s5h1411_state *state, in s5h1411_writereg() argument 350 ret = i2c_transfer(state->i2c, &msg, 1); in s5h1411_writereg() 359 static u16 s5h1411_readreg(struct s5h1411_state *state, u8 addr, u8 reg) in s5h1411_readreg() argument 369 ret = i2c_transfer(state->i2c, msg, 2); in s5h1411_readreg() 379 struct s5h1411_state *state = fe->demodulator_priv; in s5h1411_softreset() local 383 s5h1411_writereg(state, S5H1411_I2C_TOP_ADDR, 0xf7, 0); in s5h1411_softreset() 384 s5h1411_writereg(state, S5H1411_I2C_TOP_ADDR, 0xf7, 1); in s5h1411_softreset() 390 struct s5h1411_state *state = fe->demodulator_priv; in s5h1411_set_if_freq() local 396 s5h1411_writereg(state, S5H1411_I2C_TOP_ADDR, 0x38, 0x10d5); in s5h1411_set_if_freq() 397 s5h1411_writereg(state, S5H1411_I2C_TOP_ADDR, 0x39, 0x5342); in s5h1411_set_if_freq() [all …]
|
D | tda10048.c | 221 static int tda10048_writereg(struct tda10048_state *state, u8 reg, u8 data) in tda10048_writereg() argument 223 struct tda10048_config *config = &state->config; in tda10048_writereg() 232 ret = i2c_transfer(state->i2c, &msg, 1); in tda10048_writereg() 240 static u8 tda10048_readreg(struct tda10048_state *state, u8 reg) in tda10048_readreg() argument 242 struct tda10048_config *config = &state->config; in tda10048_readreg() 254 ret = i2c_transfer(state->i2c, msg, 2); in tda10048_readreg() 263 static int tda10048_writeregbulk(struct tda10048_state *state, u8 reg, in tda10048_writeregbulk() argument 266 struct tda10048_config *config = &state->config; in tda10048_writeregbulk() 290 ret = i2c_transfer(state->i2c, &msg, 1); in tda10048_writeregbulk() 306 struct tda10048_state *state = fe->demodulator_priv; in tda10048_set_phy2() local [all …]
|
D | cx24116.c | 199 static int cx24116_writereg(struct cx24116_state *state, int reg, int data) in cx24116_writereg() argument 202 struct i2c_msg msg = { .addr = state->config->demod_address, in cx24116_writereg() 210 err = i2c_transfer(state->i2c, &msg, 1); in cx24116_writereg() 221 static int cx24116_writeregN(struct cx24116_state *state, int reg, in cx24116_writeregN() argument 238 msg.addr = state->config->demod_address; in cx24116_writeregN() 247 ret = i2c_transfer(state->i2c, &msg, 1); in cx24116_writeregN() 260 static int cx24116_readreg(struct cx24116_state *state, u8 reg) in cx24116_readreg() argument 266 { .addr = state->config->demod_address, .flags = 0, in cx24116_readreg() 268 { .addr = state->config->demod_address, .flags = I2C_M_RD, in cx24116_readreg() 272 ret = i2c_transfer(state->i2c, msg, 2); in cx24116_readreg() [all …]
|
D | au8522_common.c | 42 int au8522_writereg(struct au8522_state *state, u16 reg, u8 data) in au8522_writereg() argument 47 struct i2c_msg msg = { .addr = state->config->demod_address, in au8522_writereg() 50 ret = i2c_transfer(state->i2c, &msg, 1); in au8522_writereg() 60 u8 au8522_readreg(struct au8522_state *state, u16 reg) in au8522_readreg() argument 67 { .addr = state->config->demod_address, .flags = 0, in au8522_readreg() 69 { .addr = state->config->demod_address, .flags = I2C_M_RD, in au8522_readreg() 72 ret = i2c_transfer(state->i2c, msg, 2); in au8522_readreg() 83 struct au8522_state *state = fe->demodulator_priv; in au8522_i2c_gate_ctrl() local 87 if (state->operational_mode == AU8522_ANALOG_MODE) { in au8522_i2c_gate_ctrl() 96 return au8522_writereg(state, 0x106, 1); in au8522_i2c_gate_ctrl() [all …]
|
D | ec100.c | 34 static int ec100_write_reg(struct ec100_state *state, u8 reg, u8 val) in ec100_write_reg() argument 40 .addr = state->config.demod_address, in ec100_write_reg() 47 ret = i2c_transfer(state->i2c, msg, 1); in ec100_write_reg() 51 dev_warn(&state->i2c->dev, "%s: i2c wr failed=%d reg=%02x\n", in ec100_write_reg() 60 static int ec100_read_reg(struct ec100_state *state, u8 reg, u8 *val) in ec100_read_reg() argument 65 .addr = state->config.demod_address, in ec100_read_reg() 70 .addr = state->config.demod_address, in ec100_read_reg() 77 ret = i2c_transfer(state->i2c, msg, 2); in ec100_read_reg() 81 dev_warn(&state->i2c->dev, "%s: i2c rd failed=%d reg=%02x\n", in ec100_read_reg() 92 struct ec100_state *state = fe->demodulator_priv; in ec100_set_frontend() local [all …]
|
D | si21xx.c | 227 static int si21_writeregs(struct si21xx_state *state, u8 reg1, in si21_writeregs() argument 233 .addr = state->config->demod_address, in si21_writeregs() 245 ret = i2c_transfer(state->i2c, &msg, 1); in si21_writeregs() 254 static int si21_writereg(struct si21xx_state *state, u8 reg, u8 data) in si21_writereg() argument 259 .addr = state->config->demod_address, in si21_writereg() 265 ret = i2c_transfer(state->i2c, &msg, 1); in si21_writereg() 276 struct si21xx_state *state = fe->demodulator_priv; in si21_write() local 281 return si21_writereg(state, buf[0], buf[1]); in si21_write() 284 static u8 si21_readreg(struct si21xx_state *state, u8 reg) in si21_readreg() argument 291 .addr = state->config->demod_address, in si21_readreg() [all …]
|
D | au8522_dig.c | 246 struct au8522_state *state = fe->demodulator_priv; in au8522_set_if() local 274 au8522_writereg(state, 0x80b5, r0b5); in au8522_set_if() 275 au8522_writereg(state, 0x80b6, r0b6); in au8522_set_if() 276 au8522_writereg(state, 0x80b7, r0b7); in au8522_set_if() 557 struct au8522_state *state = fe->demodulator_priv; in au8522_enable_modulation() local 566 au8522_writereg(state, in au8522_enable_modulation() 569 au8522_set_if(fe, state->config->vsb_if); in au8522_enable_modulation() 574 au8522_writereg(state, in au8522_enable_modulation() 577 au8522_set_if(fe, state->config->qam_if); in au8522_enable_modulation() 583 au8522_writereg(state, in au8522_enable_modulation() [all …]
|
D | or51132.c | 75 static int or51132_writebuf(struct or51132_state *state, const u8 *buf, int len) in or51132_writebuf() argument 78 struct i2c_msg msg = { .addr = state->config->demod_address, in or51132_writebuf() 82 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) { in or51132_writebuf() 93 #define or51132_writebytes(state, data...) \ argument 95 or51132_writebuf(state, _data, sizeof(_data)); }) 98 static int or51132_readbuf(struct or51132_state *state, u8 *buf, int len) in or51132_readbuf() argument 101 struct i2c_msg msg = { .addr = state->config->demod_address, in or51132_readbuf() 105 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) { in or51132_readbuf() 114 static int or51132_readreg(struct or51132_state *state, u8 reg) in or51132_readreg() argument 118 {.addr = state->config->demod_address, .flags = 0, in or51132_readreg() [all …]
|
D | s921.c | 206 static int s921_i2c_writereg(struct s921_state *state, in s921_i2c_writereg() argument 215 rc = i2c_transfer(state->i2c, &msg, 1); in s921_i2c_writereg() 225 static int s921_i2c_writeregdata(struct s921_state *state, u8 i2c_addr, in s921_i2c_writeregdata() argument 231 rc = s921_i2c_writereg(state, i2c_addr, rd[i].reg, rd[i].data); in s921_i2c_writeregdata() 238 static int s921_i2c_readreg(struct s921_state *state, u8 i2c_addr, u8 reg) in s921_i2c_readreg() argument 247 rc = i2c_transfer(state->i2c, msg, 2); in s921_i2c_readreg() 257 #define s921_readreg(state, reg) \ argument 258 s921_i2c_readreg(state, state->config->demod_address, reg) 259 #define s921_writereg(state, reg, val) \ argument 260 s921_i2c_writereg(state, state->config->demod_address, reg, val) [all …]
|
D | stb6100.c | 133 static int stb6100_read_regs(struct stb6100_state *state, u8 regs[]) in stb6100_read_regs() argument 137 .addr = state->config->tuner_address, in stb6100_read_regs() 143 rc = i2c_transfer(state->i2c, &msg, 1); in stb6100_read_regs() 146 state->config->tuner_address, rc); in stb6100_read_regs() 153 dprintk(verbose, FE_DEBUG, 1, " Read from 0x%02x", state->config->tuner_address); in stb6100_read_regs() 160 static int stb6100_read_reg(struct stb6100_state *state, u8 reg) in stb6100_read_reg() argument 165 .addr = state->config->tuner_address + reg, in stb6100_read_reg() 171 i2c_transfer(state->i2c, &msg, 1); in stb6100_read_reg() 178 dprintk(verbose, FE_DEBUG, 1, " Read from 0x%02x", state->config->tuner_address); in stb6100_read_reg() 185 static int stb6100_write_reg_range(struct stb6100_state *state, u8 buf[], int start, int len) in stb6100_write_reg_range() argument [all …]
|
D | mt352.c | 60 struct mt352_state* state = fe->demodulator_priv; in mt352_single_write() local 62 struct i2c_msg msg = { .addr = state->config.demod_address, .flags = 0, in mt352_single_write() 64 int err = i2c_transfer(state->i2c, &msg, 1); in mt352_single_write() 82 static int mt352_read_register(struct mt352_state* state, u8 reg) in mt352_read_register() argument 87 struct i2c_msg msg [] = { { .addr = state->config.demod_address, in mt352_read_register() 90 { .addr = state->config.demod_address, in mt352_read_register() 94 ret = i2c_transfer(state->i2c, msg, 2); in mt352_read_register() 113 static void mt352_calc_nominal_rate(struct mt352_state* state, in mt352_calc_nominal_rate() argument 132 if (state->config.adc_clock) in mt352_calc_nominal_rate() 133 adc_clock = state->config.adc_clock; in mt352_calc_nominal_rate() [all …]
|
D | zl10036.c | 71 static int zl10036_read_status_reg(struct zl10036_state *state) in zl10036_read_status_reg() argument 75 { .addr = state->config->tuner_address, .flags = I2C_M_RD, in zl10036_read_status_reg() 79 if (i2c_transfer(state->i2c, msg, 1) != 1) { in zl10036_read_status_reg() 81 __func__, state->config->tuner_address); in zl10036_read_status_reg() 94 static int zl10036_write(struct zl10036_state *state, u8 buf[], u8 count) in zl10036_write() argument 97 { .addr = state->config->tuner_address, .flags = 0, in zl10036_write() 128 ret = i2c_transfer(state->i2c, msg, 1); in zl10036_write() 139 struct zl10036_state *state = fe->tuner_priv; in zl10036_release() local 142 kfree(state); in zl10036_release() 149 struct zl10036_state *state = fe->tuner_priv; in zl10036_sleep() local [all …]
|
D | zl10353.c | 55 struct zl10353_state *state = fe->demodulator_priv; in zl10353_single_write() local 57 struct i2c_msg msg = { .addr = state->config.demod_address, .flags = 0, in zl10353_single_write() 59 int err = i2c_transfer(state->i2c, &msg, 1); in zl10353_single_write() 77 static int zl10353_read_register(struct zl10353_state *state, u8 reg) in zl10353_read_register() argument 82 struct i2c_msg msg[2] = { { .addr = state->config.demod_address, in zl10353_read_register() 85 { .addr = state->config.demod_address, in zl10353_read_register() 89 ret = i2c_transfer(state->i2c, msg, 2); in zl10353_read_register() 102 struct zl10353_state *state = fe->demodulator_priv; in zl10353_dump_regs() local 113 ret = zl10353_read_register(state, reg); in zl10353_dump_regs() 128 struct zl10353_state *state = fe->demodulator_priv; in zl10353_calc_nominal_rate() local [all …]
|
D | zl10039.c | 71 static int zl10039_read(const struct zl10039_state *state, in zl10039_read() argument 78 .addr = state->i2c_addr, in zl10039_read() 83 .addr = state->i2c_addr, in zl10039_read() 92 if (i2c_transfer(state->i2c, msg, 2) != 2) { in zl10039_read() 100 static int zl10039_write(struct zl10039_state *state, in zl10039_write() argument 106 .addr = state->i2c_addr, in zl10039_write() 123 if (i2c_transfer(state->i2c, &msg, 1) != 1) { in zl10039_write() 131 static inline int zl10039_readreg(struct zl10039_state *state, in zl10039_readreg() argument 134 return zl10039_read(state, reg, val, 1); in zl10039_readreg() 137 static inline int zl10039_writereg(struct zl10039_state *state, in zl10039_writereg() argument [all …]
|
D | ix2505v.c | 62 static int ix2505v_read_status_reg(struct ix2505v_state *state) in ix2505v_read_status_reg() argument 64 u8 addr = state->config->tuner_address; in ix2505v_read_status_reg() 72 ret = i2c_transfer(state->i2c, msg, 1); in ix2505v_read_status_reg() 78 static int ix2505v_write(struct ix2505v_state *state, u8 buf[], u8 count) in ix2505v_write() argument 81 { .addr = state->config->tuner_address, .flags = 0, in ix2505v_write() 87 ret = i2c_transfer(state->i2c, msg, 1); in ix2505v_write() 99 struct ix2505v_state *state = fe->tuner_priv; in ix2505v_release() local 102 kfree(state); in ix2505v_release() 135 struct ix2505v_state *state = fe->tuner_priv; in ix2505v_set_params() local 147 if (state->config->tuner_gain) in ix2505v_set_params() [all …]
|
D | as102_fe.c | 65 struct as102_state *state = fe->demodulator_priv; in as102_fe_set_frontend() local 190 return state->ops->set_tune(state->priv, &tune_args); in as102_fe_set_frontend() 195 struct as102_state *state = fe->demodulator_priv; in as102_fe_get_frontend() local 201 ret = state->ops->get_tps(state->priv, &tps); in as102_fe_get_frontend() 312 struct as102_state *state = fe->demodulator_priv; in as102_fe_read_status() local 316 ret = state->ops->get_status(state->priv, &tstate); in as102_fe_read_status() 320 state->signal_strength = tstate.signal_strength; in as102_fe_read_status() 321 state->ber = tstate.BER; in as102_fe_read_status() 344 memset(&state->demod_stats, 0, sizeof(state->demod_stats)); in as102_fe_read_status() 348 ret = state->ops->get_stats(state->priv, &state->demod_stats); in as102_fe_read_status() [all …]
|
D | dvb_dummy_fe.c | 112 struct dvb_dummy_fe_state* state = fe->demodulator_priv; in dvb_dummy_fe_release() local 113 kfree(state); in dvb_dummy_fe_release() 120 struct dvb_dummy_fe_state* state = NULL; in dvb_dummy_fe_ofdm_attach() local 123 state = kzalloc(sizeof(struct dvb_dummy_fe_state), GFP_KERNEL); in dvb_dummy_fe_ofdm_attach() 124 if (!state) in dvb_dummy_fe_ofdm_attach() 128 memcpy(&state->frontend.ops, &dvb_dummy_fe_ofdm_ops, sizeof(struct dvb_frontend_ops)); in dvb_dummy_fe_ofdm_attach() 129 state->frontend.demodulator_priv = state; in dvb_dummy_fe_ofdm_attach() 130 return &state->frontend; in dvb_dummy_fe_ofdm_attach() 137 struct dvb_dummy_fe_state* state = NULL; in dvb_dummy_fe_qpsk_attach() local 140 state = kzalloc(sizeof(struct dvb_dummy_fe_state), GFP_KERNEL); in dvb_dummy_fe_qpsk_attach() [all …]
|
D | tda8261.c | 39 static int tda8261_read(struct tda8261_state *state, u8 *buf) in tda8261_read() argument 41 const struct tda8261_config *config = state->config; in tda8261_read() 45 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) in tda8261_read() 51 static int tda8261_write(struct tda8261_state *state, u8 *buf) in tda8261_write() argument 53 const struct tda8261_config *config = state->config; in tda8261_write() 57 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) in tda8261_write() 65 struct tda8261_state *state = fe->tuner_priv; in tda8261_get_status() local 71 if ((err = tda8261_read(state, &result)) < 0) { in tda8261_get_status() 90 struct tda8261_state *state = fe->tuner_priv; in tda8261_get_state() local 95 tstate->frequency = state->frequency; in tda8261_get_state() [all …]
|
D | tc90522.c | 55 reg_write(struct tc90522_state *state, const struct reg_val *regs, int num) in reg_write() argument 61 msg.addr = state->i2c_client->addr; in reg_write() 66 ret = i2c_transfer(state->i2c_client->adapter, &msg, 1); in reg_write() 75 static int reg_read(struct tc90522_state *state, u8 reg, u8 *val, u8 len) in reg_read() argument 79 .addr = state->i2c_client->addr, in reg_read() 85 .addr = state->i2c_client->addr, in reg_read() 93 ret = i2c_transfer(state->i2c_client->adapter, msgs, ARRAY_SIZE(msgs)); in reg_read() 135 struct tc90522_state *state; in tc90522s_read_status() local 139 state = fe->demodulator_priv; in tc90522s_read_status() 140 ret = reg_read(state, 0xc3, ®, 1); in tc90522s_read_status() [all …]
|
D | tda665x.c | 37 static int tda665x_read(struct tda665x_state *state, u8 *buf) in tda665x_read() argument 39 const struct tda665x_config *config = state->config; in tda665x_read() 43 err = i2c_transfer(state->i2c, &msg, 1); in tda665x_read() 53 static int tda665x_write(struct tda665x_state *state, u8 *buf, u8 length) in tda665x_write() argument 55 const struct tda665x_config *config = state->config; in tda665x_write() 59 err = i2c_transfer(state->i2c, &msg, 1); in tda665x_write() 73 struct tda665x_state *state = fe->tuner_priv; in tda665x_get_state() local 78 tstate->frequency = state->frequency; in tda665x_get_state() 93 struct tda665x_state *state = fe->tuner_priv; in tda665x_get_status() local 99 err = tda665x_read(state, &result); in tda665x_get_status() [all …]
|
/linux-4.1.27/drivers/video/ |
D | vgastate.c | 48 static void save_vga_text(struct vgastate *state, void __iomem *fbbase) in save_vga_text() argument 50 struct regstate *saved = (struct regstate *) state->vidstate; in save_vga_text() 56 misc = vga_r(state->vgabase, VGA_MIS_R); in save_vga_text() 59 vga_r(state->vgabase, iobase + 0xa); in save_vga_text() 60 vga_w(state->vgabase, VGA_ATT_W, 0x00); in save_vga_text() 61 attr10 = vga_rattr(state->vgabase, 0x10); in save_vga_text() 62 vga_r(state->vgabase, iobase + 0xa); in save_vga_text() 63 vga_w(state->vgabase, VGA_ATT_W, 0x20); in save_vga_text() 69 gr4 = vga_rgfx(state->vgabase, VGA_GFX_PLANE_READ); in save_vga_text() 70 gr5 = vga_rgfx(state->vgabase, VGA_GFX_MODE); in save_vga_text() [all …]
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
D | dst.c | 58 state->bt->nr, __func__ , ##arg); \ 61 state->bt->nr, __func__ , ##arg); \ 64 state->bt->nr, __func__ , ##arg); \ 67 state->bt->nr, __func__ , ##arg); \ 74 static int dst_command(struct dst_state *state, u8 *data, u8 len); 76 static void dst_packsize(struct dst_state *state, int psize) in dst_packsize() argument 81 bt878_device_control(state->bt, DST_IG_TS, &bits); in dst_packsize() 84 static int dst_gpio_outb(struct dst_state *state, u32 mask, u32 enbb, in dst_gpio_outb() argument 95 if ((err = bt878_device_control(state->bt, DST_IG_ENABLE, &enb)) < 0) { in dst_gpio_outb() 107 if ((err = bt878_device_control(state->bt, DST_IG_WRITE, &bits)) < 0) { in dst_gpio_outb() [all …]
|
D | dst_ca.c | 90 static int dst_ci_command(struct dst_state* state, u8 * data, u8 *ca_string, u8 len, int read) in dst_ci_command() argument 94 mutex_lock(&state->dst_mutex); in dst_ci_command() 95 dst_comm_init(state); in dst_ci_command() 98 if (write_dst(state, data, len)) { in dst_ci_command() 100 dst_error_recovery(state); in dst_ci_command() 103 if ((dst_pio_disable(state)) < 0) { in dst_ci_command() 107 if (read_dst(state, &reply, GET_ACK) < 0) { in dst_ci_command() 109 dst_error_recovery(state); in dst_ci_command() 113 if (! dst_wait_dst_ready(state, LONG_DELAY)) { in dst_ci_command() 117 if (read_dst(state, ca_string, 128) < 0) { /* Try to make this dynamic */ in dst_ci_command() [all …]
|
/linux-4.1.27/drivers/net/ppp/ |
D | ppp_mppe.c | 136 static void get_new_key_from_sha(struct ppp_mppe_state * state) in get_new_key_from_sha() argument 144 nbytes = setup_sg(&sg[0], state->master_key, state->keylen); in get_new_key_from_sha() 147 nbytes += setup_sg(&sg[2], state->session_key, state->keylen); in get_new_key_from_sha() 151 desc.tfm = state->sha1; in get_new_key_from_sha() 154 crypto_hash_digest(&desc, sg, nbytes, state->sha1_digest); in get_new_key_from_sha() 161 static void mppe_rekey(struct ppp_mppe_state * state, int initial_key) in mppe_rekey() argument 164 struct blkcipher_desc desc = { .tfm = state->arc4 }; in mppe_rekey() 166 get_new_key_from_sha(state); in mppe_rekey() 168 crypto_blkcipher_setkey(state->arc4, state->sha1_digest, in mppe_rekey() 169 state->keylen); in mppe_rekey() [all …]
|
D | ppp_deflate.c | 41 static void z_comp_free(void *state); 42 static void z_decomp_free(void *state); 43 static int z_comp_init(void *state, unsigned char *options, 46 static int z_decomp_init(void *state, unsigned char *options, 49 static int z_compress(void *state, unsigned char *rptr, 52 static void z_incomp(void *state, unsigned char *ibuf, int icnt); 53 static int z_decompress(void *state, unsigned char *ibuf, 55 static void z_comp_reset(void *state); 56 static void z_decomp_reset(void *state); 57 static void z_comp_stats(void *state, struct compstat *stats); [all …]
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | fpsimdmacros.h | 20 .macro fpsimd_save state, tmpnr 21 stp q0, q1, [\state, #16 * 0] 22 stp q2, q3, [\state, #16 * 2] 23 stp q4, q5, [\state, #16 * 4] 24 stp q6, q7, [\state, #16 * 6] 25 stp q8, q9, [\state, #16 * 8] 26 stp q10, q11, [\state, #16 * 10] 27 stp q12, q13, [\state, #16 * 12] 28 stp q14, q15, [\state, #16 * 14] 29 stp q16, q17, [\state, #16 * 16] [all …]
|
/linux-4.1.27/drivers/acpi/acpica/ |
D | utstate.c | 64 union acpi_generic_state *state) in acpi_ut_push_generic_state() argument 70 state->common.next = *list_head; in acpi_ut_push_generic_state() 71 *list_head = state; in acpi_ut_push_generic_state() 90 union acpi_generic_state *state; in acpi_ut_pop_generic_state() local 96 state = *list_head; in acpi_ut_pop_generic_state() 97 if (state) { in acpi_ut_pop_generic_state() 101 *list_head = state->common.next; in acpi_ut_pop_generic_state() 104 return (state); in acpi_ut_pop_generic_state() 122 union acpi_generic_state *state; in acpi_ut_create_generic_state() local 126 state = acpi_os_acquire_object(acpi_gbl_state_cache); in acpi_ut_create_generic_state() [all …]
|
D | utmisc.c | 196 union acpi_generic_state *state; in acpi_ut_create_update_state_and_push() local 206 state = acpi_ut_create_update_state(object, action); in acpi_ut_create_update_state_and_push() 207 if (!state) { in acpi_ut_create_update_state_and_push() 211 acpi_ut_push_generic_state(state_list, state); in acpi_ut_create_update_state_and_push() 237 union acpi_generic_state *state; in acpi_ut_walk_package_tree() local 243 state = acpi_ut_create_pkg_state(source_object, target_object, 0); in acpi_ut_walk_package_tree() 244 if (!state) { in acpi_ut_walk_package_tree() 248 while (state) { in acpi_ut_walk_package_tree() 252 this_index = state->pkg.index; in acpi_ut_walk_package_tree() 254 state->pkg.source_object->package.elements[this_index]; in acpi_ut_walk_package_tree() [all …]
|
/linux-4.1.27/drivers/media/i2c/ |
D | adv7180.c | 184 int (*init)(struct adv7180_state *state); 209 static int adv7180_select_page(struct adv7180_state *state, unsigned int page) in adv7180_select_page() argument 211 if (state->register_page != page) { in adv7180_select_page() 212 i2c_smbus_write_byte_data(state->client, ADV7180_REG_CTRL, in adv7180_select_page() 214 state->register_page = page; in adv7180_select_page() 220 static int adv7180_write(struct adv7180_state *state, unsigned int reg, in adv7180_write() argument 223 lockdep_assert_held(&state->mutex); in adv7180_write() 224 adv7180_select_page(state, reg >> 8); in adv7180_write() 225 return i2c_smbus_write_byte_data(state->client, reg & 0xff, value); in adv7180_write() 228 static int adv7180_read(struct adv7180_state *state, unsigned int reg) in adv7180_read() argument [all …]
|
D | msp3400-kthreads.c | 191 struct msp_state *state = to_state(i2c_get_clientdata(client)); in msp_set_source() local 203 if (state->has_scart2_out) in msp_set_source() 218 struct msp_state *state = to_state(i2c_get_clientdata(client)); in msp3400c_set_mode() local 220 int tuner = (state->route_in >> 3) & 1; in msp3400c_set_mode() 224 state->mode = mode; in msp3400c_set_mode() 225 state->rxsubchans = V4L2_TUNER_SUB_MONO; in msp3400c_set_mode() 248 if (state->has_nicam) /* nicam prescale */ in msp3400c_set_mode() 259 struct msp_state *state = to_state(i2c_get_clientdata(client)); in msp3400c_set_audmode() local 260 char *modestr = (state->audmode >= 0 && state->audmode < 5) ? in msp3400c_set_audmode() 261 strmode[state->audmode] : "unknown"; in msp3400c_set_audmode() [all …]
|
D | s5k5baf.c | 422 static u16 s5k5baf_i2c_read(struct s5k5baf *state, u16 addr) in s5k5baf_i2c_read() argument 424 struct i2c_client *c = v4l2_get_subdevdata(&state->sd); in s5k5baf_i2c_read() 435 if (state->error) in s5k5baf_i2c_read() 446 state->error = ret; in s5k5baf_i2c_read() 451 static void s5k5baf_i2c_write(struct s5k5baf *state, u16 addr, u16 val) in s5k5baf_i2c_write() argument 454 struct i2c_client *c = v4l2_get_subdevdata(&state->sd); in s5k5baf_i2c_write() 457 if (state->error) in s5k5baf_i2c_write() 465 state->error = ret; in s5k5baf_i2c_write() 469 static u16 s5k5baf_read(struct s5k5baf *state, u16 addr) in s5k5baf_read() argument 471 s5k5baf_i2c_write(state, REG_CMDRD_ADDR, addr); in s5k5baf_read() [all …]
|
D | msp3400-driver.c | 291 struct msp_state *state = to_state(i2c_get_clientdata(client)); in msp_set_scart() local 293 state->in_scart = in; in msp_set_scart() 299 state->acb &= ~scarts[out][0]; in msp_set_scart() 300 state->acb |= scarts[out][in + 1]; in msp_set_scart() 302 state->acb = 0xf60; /* Mute Input and SCART 1 Output */ in msp_set_scart() 305 scart_names[in], out, state->acb); in msp_set_scart() 306 msp_write_dsp(client, 0x13, state->acb); in msp_set_scart() 309 if (state->has_i2s_conf) in msp_set_scart() 310 msp_write_dem(client, 0x40, state->i2s_mode); in msp_set_scart() 317 struct msp_state *state = to_state(i2c_get_clientdata(client)); in msp_wake_thread() local [all …]
|
D | saa7127.c | 353 struct saa7127_state *state = to_state(sd); in saa7127_set_vps() local 358 if (state->vps_enable != enable) { in saa7127_set_vps() 361 state->vps_enable = enable; in saa7127_set_vps() 366 state->vps_data[0] = data->data[2]; in saa7127_set_vps() 367 state->vps_data[1] = data->data[8]; in saa7127_set_vps() 368 state->vps_data[2] = data->data[9]; in saa7127_set_vps() 369 state->vps_data[3] = data->data[10]; in saa7127_set_vps() 370 state->vps_data[4] = data->data[11]; in saa7127_set_vps() 371 v4l2_dbg(1, debug, sd, "Set VPS data %*ph\n", 5, state->vps_data); in saa7127_set_vps() 372 saa7127_write(sd, 0x55, state->vps_data[0]); in saa7127_set_vps() [all …]
|
D | adv7343.c | 134 struct adv7343_state *state = to_state(sd); in adv7343_setstd() local 158 val = state->reg80 & (~(SD_STD_MASK)); in adv7343_setstd() 164 state->reg80 = val; in adv7343_setstd() 167 val = state->reg01 & (~((u8) INPUT_MODE_MASK)); in adv7343_setstd() 173 state->reg01 = val; in adv7343_setstd() 184 val = state->reg80; in adv7343_setstd() 196 state->reg80 = val; in adv7343_setstd() 207 struct adv7343_state *state = to_state(sd); in adv7343_setoutput() local 219 val = state->reg00 & 0x03; in adv7343_setoutput() 222 if (!state->pdata) in adv7343_setoutput() [all …]
|
D | adv7393.c | 137 struct adv7393_state *state = to_state(sd); in adv7393_setstd() local 162 val = state->reg80 & ~SD_STD_MASK; in adv7393_setstd() 168 state->reg80 = val; in adv7393_setstd() 171 val = state->reg01 & ~INPUT_MODE_MASK; in adv7393_setstd() 177 state->reg01 = val; in adv7393_setstd() 188 val = state->reg82; in adv7393_setstd() 200 state->reg82 = val; in adv7393_setstd() 211 struct adv7393_state *state = to_state(sd); in adv7393_setoutput() local 223 val = state->reg00 & 0x03; in adv7393_setoutput() 236 state->reg00 = val; in adv7393_setoutput() [all …]
|
D | adv7604.c | 177 static bool adv76xx_has_afe(struct adv76xx_state *state) in adv76xx_has_afe() argument 179 return state->info->has_afe; in adv76xx_has_afe() 364 static s32 adv_smbus_read_byte_data(struct adv76xx_state *state, in adv_smbus_read_byte_data() argument 367 return adv_smbus_read_byte_data_check(state->i2c_clients[page], in adv_smbus_read_byte_data() 371 static s32 adv_smbus_write_byte_data(struct adv76xx_state *state, in adv_smbus_write_byte_data() argument 375 struct i2c_client *client = state->i2c_clients[page]; in adv_smbus_write_byte_data() 395 static s32 adv_smbus_write_i2c_block_data(struct adv76xx_state *state, in adv_smbus_write_i2c_block_data() argument 399 struct i2c_client *client = state->i2c_clients[page]; in adv_smbus_write_i2c_block_data() 415 struct adv76xx_state *state = to_state(sd); in io_read() local 417 return adv_smbus_read_byte_data(state, ADV76XX_PAGE_IO, reg); in io_read() [all …]
|
D | adv7511.c | 227 struct adv7511_state *state = get_adv7511_state(sd); in adv7511_edid_rd() local 234 err = adv_smbus_read_i2c_block_data(state->i2c_edid, i, in adv7511_edid_rd() 314 struct adv7511_state *state = get_adv7511_state(sd); in adv7511_set_IT_content_AVI_InfoFrame() local 315 if (state->dv_timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) { in adv7511_set_IT_content_AVI_InfoFrame() 332 struct adv7511_state *state = get_adv7511_state(sd); in adv7511_set_rgb_quantization_mode() local 334 if (state->dv_timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) { in adv7511_set_rgb_quantization_mode() 360 struct adv7511_state *state = get_adv7511_state(sd); in adv7511_s_ctrl() local 364 if (state->hdmi_mode_ctrl == ctrl) { in adv7511_s_ctrl() 369 if (state->rgb_quantization_range_ctrl == ctrl) in adv7511_s_ctrl() 419 struct adv7511_state *state = get_adv7511_state(sd); in adv7511_log_status() local [all …]
|
D | m52790.c | 53 struct m52790_state *state = to_state(sd); in m52790_write() local 56 u8 sw1 = (state->input | state->output) & 0xff; in m52790_write() 57 u8 sw2 = (state->input | state->output) >> 8; in m52790_write() 73 struct m52790_state *state = to_state(sd); in m52790_s_routing() local 75 state->input = input; in m52790_s_routing() 76 state->output = output; in m52790_s_routing() 84 struct m52790_state *state = to_state(sd); in m52790_g_register() local 89 reg->val = state->input | state->output; in m52790_g_register() 95 struct m52790_state *state = to_state(sd); in m52790_s_register() local 99 state->input = reg->val & 0x0303; in m52790_s_register() [all …]
|
D | ad9389b.c | 155 struct ad9389b_state *state = get_ad9389b_state(sd); in ad9389b_edid_rd() local 161 buf[i] = i2c_smbus_read_byte_data(state->edid_i2c_client, i); in ad9389b_edid_rd() 240 struct ad9389b_state *state = get_ad9389b_state(sd); in ad9389b_set_IT_content_AVI_InfoFrame() local 242 if (state->dv_timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) { in ad9389b_set_IT_content_AVI_InfoFrame() 253 struct ad9389b_state *state = get_ad9389b_state(sd); in ad9389b_set_rgb_quantization_mode() local 258 if (state->dv_timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) { in ad9389b_set_rgb_quantization_mode() 316 struct ad9389b_state *state = get_ad9389b_state(sd); in ad9389b_s_ctrl() local 321 if (state->hdmi_mode_ctrl == ctrl) { in ad9389b_s_ctrl() 327 if (state->rgb_quantization_range_ctrl == ctrl) in ad9389b_s_ctrl() 355 struct ad9389b_state *state = get_ad9389b_state(sd); in ad9389b_log_status() local [all …]
|
D | wm8739.c | 100 struct wm8739_state *state = to_state(sd); in wm8739_s_ctrl() local 115 work_l = (min(65536 - state->balance->val, 32768) * state->volume->val) / 32768; in wm8739_s_ctrl() 116 work_r = (min(state->balance->val, 32768) * state->volume->val) / 32768; in wm8739_s_ctrl() 122 mute = state->mute->val ? 0x80 : 0; in wm8739_s_ctrl() 136 struct wm8739_state *state = to_state(sd); in wm8739_s_clock_freq() local 138 state->clock_freq = audiofreq; in wm8739_s_clock_freq() 164 struct wm8739_state *state = to_state(sd); in wm8739_log_status() local 166 v4l2_info(sd, "Frequency: %u Hz\n", state->clock_freq); in wm8739_log_status() 167 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in wm8739_log_status() 204 struct wm8739_state *state; in wm8739_probe() local [all …]
|
D | wm8775.c | 96 struct wm8775_state *state = to_state(sd); in wm8775_set_audio() local 98 int muted = 0 != state->mute->val; in wm8775_set_audio() 99 u16 volume = (u16)state->vol->val; in wm8775_set_audio() 100 u16 balance = (u16)state->bal->val; in wm8775_set_audio() 108 wm8775_write(sd, R21, 0x0c0 | state->input); in wm8775_set_audio() 115 wm8775_write(sd, R21, state->input); in wm8775_set_audio() 121 struct wm8775_state *state = to_state(sd); in wm8775_s_routing() local 132 state->input = input; in wm8775_s_routing() 133 if (v4l2_ctrl_g_ctrl(state->mute)) in wm8775_s_routing() 135 if (!v4l2_ctrl_g_ctrl(state->vol)) in wm8775_s_routing() [all …]
|
D | adv7842.c | 340 struct adv7842_state *state = to_state(sd); in avlink_read() local 342 return adv_smbus_read_byte_data(state->i2c_avlink, reg); in avlink_read() 347 struct adv7842_state *state = to_state(sd); in avlink_write() local 349 return adv_smbus_write_byte_data(state->i2c_avlink, reg, val); in avlink_write() 354 struct adv7842_state *state = to_state(sd); in cec_read() local 356 return adv_smbus_read_byte_data(state->i2c_cec, reg); in cec_read() 361 struct adv7842_state *state = to_state(sd); in cec_write() local 363 return adv_smbus_write_byte_data(state->i2c_cec, reg, val); in cec_write() 373 struct adv7842_state *state = to_state(sd); in infoframe_read() local 375 return adv_smbus_read_byte_data(state->i2c_infoframe, reg); in infoframe_read() [all …]
|
D | tw2804.c | 154 struct tw2804 *state = to_state(sd); in tw2804_log_status() local 157 state->norm & V4L2_STD_525_60 ? "60 Hz" : "50 Hz"); in tw2804_log_status() 158 v4l2_info(sd, "Channel: %d\n", state->channel); in tw2804_log_status() 159 v4l2_info(sd, "Input: %d\n", state->input); in tw2804_log_status() 178 struct tw2804 *state = to_state_from_ctrl(ctrl); in tw2804_g_volatile_ctrl() local 179 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); in tw2804_g_volatile_ctrl() 203 struct tw2804 *state = to_state_from_ctrl(ctrl); in tw2804_s_ctrl() local 204 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); in tw2804_s_ctrl() 211 reg = read_reg(client, addr, state->channel); in tw2804_s_ctrl() 218 return write_reg(client, addr, reg, state->channel); in tw2804_s_ctrl() [all …]
|
D | vp27smpx.c | 53 struct vp27smpx_state *state = to_state(sd); in vp27smpx_set_audmode() local 73 state->audmode = audmode; in vp27smpx_set_audmode() 78 struct vp27smpx_state *state = to_state(sd); in vp27smpx_s_radio() local 80 state->radio = 1; in vp27smpx_s_radio() 86 struct vp27smpx_state *state = to_state(sd); in vp27smpx_s_std() local 88 state->radio = 0; in vp27smpx_s_std() 94 struct vp27smpx_state *state = to_state(sd); in vp27smpx_s_tuner() local 96 if (!state->radio) in vp27smpx_s_tuner() 103 struct vp27smpx_state *state = to_state(sd); in vp27smpx_g_tuner() local 105 if (state->radio) in vp27smpx_g_tuner() [all …]
|
D | saa7115.c | 160 struct saa711x_state *state = to_state(sd); in saa711x_writeregs() local 169 if (saa711x_has_reg(state->ident, reg)) { in saa711x_writeregs() 756 struct saa711x_state *state = to_state(sd); in saa711x_s_clock_freq() local 764 if (!saa711x_has_reg(state->ident, R_30_AUD_MAST_CLK_CYCLES_PER_FIELD)) in saa711x_s_clock_freq() 774 hz = (state->std & V4L2_STD_525_60) ? 5994 : 5000; in saa711x_s_clock_freq() 782 do_div(f, state->crystal_freq); in saa711x_s_clock_freq() 784 if (state->ucgc) { in saa711x_s_clock_freq() 785 acpf = acpf * state->cgcdiv / 16; in saa711x_s_clock_freq() 786 acni = acni * state->cgcdiv / 16; in saa711x_s_clock_freq() 788 if (state->cgcdiv == 3) in saa711x_s_clock_freq() [all …]
|
D | upd64031a.c | 115 struct upd64031a_state *state = to_state(sd); in upd64031a_s_frequency() local 116 u8 reg = state->regs[R00]; in upd64031a_s_frequency() 129 struct upd64031a_state *state = to_state(sd); in upd64031a_s_routing() local 132 state->gr_mode = (input & 3) << 6; in upd64031a_s_routing() 133 state->direct_3dycs_connect = (input & 0xc) << 4; in upd64031a_s_routing() 134 state->ext_comp_sync = in upd64031a_s_routing() 136 state->ext_vert_sync = in upd64031a_s_routing() 138 r00 = (state->regs[R00] & ~GR_MODE_MASK) | state->gr_mode; in upd64031a_s_routing() 139 r05 = (state->regs[R00] & ~SYNC_CIRCUIT_MASK) | in upd64031a_s_routing() 140 state->ext_comp_sync | state->ext_vert_sync; in upd64031a_s_routing() [all …]
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
D | mipi-csis.c | 293 static void s5pcsis_enable_interrupts(struct csis_state *state, bool on) in s5pcsis_enable_interrupts() argument 295 u32 val = s5pcsis_read(state, S5PCSIS_INTMSK); in s5pcsis_enable_interrupts() 297 val |= state->interrupt_mask; in s5pcsis_enable_interrupts() 299 val &= ~state->interrupt_mask; in s5pcsis_enable_interrupts() 300 s5pcsis_write(state, S5PCSIS_INTMSK, val); in s5pcsis_enable_interrupts() 303 static void s5pcsis_reset(struct csis_state *state) in s5pcsis_reset() argument 305 u32 val = s5pcsis_read(state, S5PCSIS_CTRL); in s5pcsis_reset() 307 s5pcsis_write(state, S5PCSIS_CTRL, val | S5PCSIS_CTRL_RESET); in s5pcsis_reset() 311 static void s5pcsis_system_enable(struct csis_state *state, int on) in s5pcsis_system_enable() argument 315 val = s5pcsis_read(state, S5PCSIS_CTRL); in s5pcsis_system_enable() [all …]
|
/linux-4.1.27/drivers/mtd/maps/ |
D | gpio-addr-flash.c | 63 static void gf_set_gpios(struct async_state *state, unsigned long ofs) in gf_set_gpios() argument 67 ofs /= state->win_size; in gf_set_gpios() 70 if (state->gpio_values[i] != value) { in gf_set_gpios() 71 gpio_set_value(state->gpio_addrs[i], value); in gf_set_gpios() 72 state->gpio_values[i] = value; in gf_set_gpios() 74 } while (++i < state->gpio_count); in gf_set_gpios() 84 struct async_state *state = gf_map_info_to_state(map); in gf_read() local 88 gf_set_gpios(state, ofs); in gf_read() 90 word = readw(map->virt + (ofs % state->win_size)); in gf_read() 107 struct async_state *state = gf_map_info_to_state(map); in gf_copy_from() local [all …]
|
D | bfin-async-flash.c | 46 static void switch_to_flash(struct async_state *state) in switch_to_flash() argument 48 local_irq_save(state->irq_flags); in switch_to_flash() 50 gpio_set_value(state->enet_flash_pin, 0); in switch_to_flash() 52 state->save_ambctl0 = bfin_read_EBIU_AMBCTL0(); in switch_to_flash() 53 state->save_ambctl1 = bfin_read_EBIU_AMBCTL1(); in switch_to_flash() 54 bfin_write_EBIU_AMBCTL0(state->flash_ambctl0); in switch_to_flash() 55 bfin_write_EBIU_AMBCTL1(state->flash_ambctl1); in switch_to_flash() 59 static void switch_back(struct async_state *state) in switch_back() argument 61 bfin_write_EBIU_AMBCTL0(state->save_ambctl0); in switch_back() 62 bfin_write_EBIU_AMBCTL1(state->save_ambctl1); in switch_back() [all …]
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_atomic.c | 33 static void kfree_state(struct drm_atomic_state *state) in kfree_state() argument 35 kfree(state->connectors); in kfree_state() 36 kfree(state->connector_states); in kfree_state() 37 kfree(state->crtcs); in kfree_state() 38 kfree(state->crtc_states); in kfree_state() 39 kfree(state->planes); in kfree_state() 40 kfree(state->plane_states); in kfree_state() 41 kfree(state); in kfree_state() 53 struct drm_atomic_state *state; in drm_atomic_state_alloc() local 55 state = kzalloc(sizeof(*state), GFP_KERNEL); in drm_atomic_state_alloc() [all …]
|
D | drm_atomic_helper.c | 57 drm_atomic_helper_plane_changed(struct drm_atomic_state *state, in drm_atomic_helper_plane_changed() argument 63 if (plane->state->crtc) { in drm_atomic_helper_plane_changed() 64 crtc_state = state->crtc_states[drm_crtc_index(plane->state->crtc)]; in drm_atomic_helper_plane_changed() 74 state->crtc_states[drm_crtc_index(plane_state->crtc)]; in drm_atomic_helper_plane_changed() 93 if (connector->state->best_encoder != encoder) in get_current_crtc_for_encoder() 96 return connector->state->crtc; in get_current_crtc_for_encoder() 103 steal_encoder(struct drm_atomic_state *state, in steal_encoder() argument 107 struct drm_mode_config *config = &state->dev->mode_config; in steal_encoder() 123 crtc_state = drm_atomic_get_crtc_state(state, encoder_crtc); in steal_encoder() 130 if (connector->state->best_encoder != encoder) in steal_encoder() [all …]
|
/linux-4.1.27/drivers/media/i2c/s5c73m3/ |
D | s5c73m3-core.c | 182 int s5c73m3_write(struct s5c73m3 *state, u32 addr, u16 data) in s5c73m3_write() argument 184 struct i2c_client *client = state->i2c_client; in s5c73m3_write() 187 if ((addr ^ state->i2c_write_address) & 0xffff0000) { in s5c73m3_write() 190 state->i2c_write_address = 0; in s5c73m3_write() 195 if ((addr ^ state->i2c_write_address) & 0xffff) { in s5c73m3_write() 198 state->i2c_write_address = 0; in s5c73m3_write() 203 state->i2c_write_address = addr; in s5c73m3_write() 209 state->i2c_write_address += 2; in s5c73m3_write() 214 int s5c73m3_read(struct s5c73m3 *state, u32 addr, u16 *data) in s5c73m3_read() argument 216 struct i2c_client *client = state->i2c_client; in s5c73m3_read() [all …]
|
D | s5c73m3-ctrls.c | 39 static int s5c73m3_get_af_status(struct s5c73m3 *state, struct v4l2_ctrl *ctrl) in s5c73m3_get_af_status() argument 43 int ret = s5c73m3_read(state, REG_AF_STATUS, ®); in s5c73m3_get_af_status() 56 v4l2_info(&state->sensor_sd, "Unknown AF status %#x\n", reg); in s5c73m3_get_af_status() 71 struct s5c73m3 *state = sensor_sd_to_s5c73m3(sd); in s5c73m3_g_volatile_ctrl() local 74 if (state->power == 0) in s5c73m3_g_volatile_ctrl() 79 ret = s5c73m3_get_af_status(state, state->ctrls.af_status); in s5c73m3_g_volatile_ctrl() 88 static int s5c73m3_set_colorfx(struct s5c73m3 *state, int val) in s5c73m3_set_colorfx() argument 103 v4l2_dbg(1, s5c73m3_dbg, &state->sensor_sd, in s5c73m3_set_colorfx() 105 v4l2_ctrl_get_menu(state->ctrls.colorfx->id)[i]); in s5c73m3_set_colorfx() 107 return s5c73m3_isp_command(state, COMM_IMAGE_EFFECT, in s5c73m3_set_colorfx() [all …]
|
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_plane.c | 260 struct atmel_hlcdc_plane_state *state) in atmel_hlcdc_plane_update_pos_and_size() argument 269 (state->crtc_w - 1) | in atmel_hlcdc_plane_update_pos_and_size() 270 ((state->crtc_h - 1) << 16)); in atmel_hlcdc_plane_update_pos_and_size() 276 (state->src_w - 1) | in atmel_hlcdc_plane_update_pos_and_size() 277 ((state->src_h - 1) << 16)); in atmel_hlcdc_plane_update_pos_and_size() 283 state->crtc_x | in atmel_hlcdc_plane_update_pos_and_size() 284 (state->crtc_y << 16)); in atmel_hlcdc_plane_update_pos_and_size() 287 if (state->crtc_w != state->src_w || state->crtc_h != state->src_h) { in atmel_hlcdc_plane_update_pos_and_size() 290 if (state->crtc_w != state->src_w) { in atmel_hlcdc_plane_update_pos_and_size() 296 if (state->crtc_w < state->src_w) in atmel_hlcdc_plane_update_pos_and_size() [all …]
|
/linux-4.1.27/lib/ |
D | random32.c | 59 u32 prandom_u32_state(struct rnd_state *state) in prandom_u32_state() argument 62 state->s1 = TAUSWORTHE(state->s1, 6U, 13U, 4294967294U, 18U); in prandom_u32_state() 63 state->s2 = TAUSWORTHE(state->s2, 2U, 27U, 4294967288U, 2U); in prandom_u32_state() 64 state->s3 = TAUSWORTHE(state->s3, 13U, 21U, 4294967280U, 7U); in prandom_u32_state() 65 state->s4 = TAUSWORTHE(state->s4, 3U, 12U, 4294967168U, 13U); in prandom_u32_state() 67 return (state->s1 ^ state->s2 ^ state->s3 ^ state->s4); in prandom_u32_state() 80 struct rnd_state *state = &get_cpu_var(net_rand_state); in prandom_u32() local 83 res = prandom_u32_state(state); in prandom_u32() 84 put_cpu_var(state); in prandom_u32() 100 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes) in prandom_bytes_state() argument [all …]
|
/linux-4.1.27/block/partitions/ |
D | check.c | 116 struct parsed_partitions *state; in allocate_partitions() local 119 state = kzalloc(sizeof(*state), GFP_KERNEL); in allocate_partitions() 120 if (!state) in allocate_partitions() 124 state->parts = vzalloc(nr * sizeof(state->parts[0])); in allocate_partitions() 125 if (!state->parts) { in allocate_partitions() 126 kfree(state); in allocate_partitions() 130 state->limit = nr; in allocate_partitions() 132 return state; in allocate_partitions() 135 void free_partitions(struct parsed_partitions *state) in free_partitions() argument 137 vfree(state->parts); in free_partitions() [all …]
|
D | msdos.c | 68 static int aix_magic_present(struct parsed_partitions *state, unsigned char *p) in aix_magic_present() argument 89 d = read_part_sector(state, 7, §); in aix_magic_present() 98 static void set_info(struct parsed_partitions *state, int slot, in set_info() argument 101 struct partition_meta_info *info = &state->parts[slot].info; in set_info() 106 state->parts[slot].has_info = true; in set_info() 120 static void parse_extended(struct parsed_partitions *state, in parse_extended() argument 128 sector_t sector_size = bdev_logical_block_size(state->bdev) / 512; in parse_extended() 139 if (state->next == state->limit) in parse_extended() 141 data = read_part_sector(state, this_sector, §); in parse_extended() 182 put_partition(state, state->next, next, size); in parse_extended() [all …]
|
D | acorn.c | 31 adfs_partition(struct parsed_partitions *state, char *name, char *data, in adfs_partition() argument 49 strlcat(state->pp_buf, " [", PAGE_SIZE); in adfs_partition() 50 strlcat(state->pp_buf, name, PAGE_SIZE); in adfs_partition() 51 strlcat(state->pp_buf, "]", PAGE_SIZE); in adfs_partition() 53 put_partition(state, slot, first_sector, nr_sects); in adfs_partition() 76 static int riscix_partition(struct parsed_partitions *state, in riscix_partition() argument 83 rr = read_part_sector(state, first_sect, §); in riscix_partition() 87 strlcat(state->pp_buf, " [RISCiX]", PAGE_SIZE); in riscix_partition() 94 strlcat(state->pp_buf, " <", PAGE_SIZE); in riscix_partition() 96 put_partition(state, slot++, first_sect, size); in riscix_partition() [all …]
|
/linux-4.1.27/drivers/gpu/drm/rcar-du/ |
D | rcar_du_plane.c | 47 struct rcar_du_plane_state *state = in rcar_du_plane_setup_fb() local 48 to_rcar_du_plane_state(plane->plane.state); in rcar_du_plane_setup_fb() 49 struct drm_framebuffer *fb = plane->plane.state->fb; in rcar_du_plane_setup_fb() 51 unsigned int src_x = state->state.src_x >> 16; in rcar_du_plane_setup_fb() 52 unsigned int src_y = state->state.src_y >> 16; in rcar_du_plane_setup_fb() 53 unsigned int index = state->hwindex; in rcar_du_plane_setup_fb() 58 interlaced = state->state.crtc->state->adjusted_mode.flags in rcar_du_plane_setup_fb() 64 if (state->format->planes == 2) in rcar_du_plane_setup_fb() 67 mwr = fb->pitches[0] * 8 / state->format->bpp; in rcar_du_plane_setup_fb() 69 if (interlaced && state->format->bpp == 32) in rcar_du_plane_setup_fb() [all …]
|
/linux-4.1.27/drivers/media/pci/cx23885/ |
D | cimax2.c | 180 struct netup_ci_state *state = en50221->data; in netup_ci_op_cam() local 181 struct cx23885_tsport *port = state->priv; in netup_ci_op_cam() 191 if (state->current_ci_flag != flag) { in netup_ci_op_cam() 192 ret = netup_read_i2c(state->i2c_adap, state->ci_i2c_addr, in netup_ci_op_cam() 200 ret = netup_write_i2c(state->i2c_adap, state->ci_i2c_addr, in netup_ci_op_cam() 205 state->current_ci_flag = flag; in netup_ci_op_cam() 225 (state->ci_i2c_addr == 0x40) ? NETUP_CS0 : NETUP_CS1); in netup_ci_op_cam() 237 (read) ? "read" : "write", state->ci_i2c_addr, addr, in netup_ci_op_cam() 274 struct netup_ci_state *state = en50221->data; in netup_ci_slot_reset() local 282 ret = netup_write_i2c(state->i2c_adap, state->ci_i2c_addr, in netup_ci_slot_reset() [all …]
|
/linux-4.1.27/kernel/power/ |
D | suspend.c | 100 static bool valid_state(suspend_state_t state) in valid_state() argument 107 return suspend_ops && suspend_ops->valid && suspend_ops->valid(state); in valid_state() 160 int suspend_valid_only_mem(suspend_state_t state) in suspend_valid_only_mem() argument 162 return state == PM_SUSPEND_MEM; in suspend_valid_only_mem() 166 static bool sleep_state_supported(suspend_state_t state) in sleep_state_supported() argument 168 return state == PM_SUSPEND_FREEZE || (suspend_ops && suspend_ops->enter); in sleep_state_supported() 171 static int platform_suspend_prepare(suspend_state_t state) in platform_suspend_prepare() argument 173 return state != PM_SUSPEND_FREEZE && suspend_ops->prepare ? in platform_suspend_prepare() 177 static int platform_suspend_prepare_late(suspend_state_t state) in platform_suspend_prepare_late() argument 179 return state == PM_SUSPEND_FREEZE && freeze_ops && freeze_ops->prepare ? in platform_suspend_prepare_late() [all …]
|
/linux-4.1.27/crypto/ |
D | wp512.c | 786 u64 state[8]; /* the cipher state */ in wp512_process_buffer() local 793 state[0] = block[0] ^ (K[0] = wctx->hash[0]); in wp512_process_buffer() 794 state[1] = block[1] ^ (K[1] = wctx->hash[1]); in wp512_process_buffer() 795 state[2] = block[2] ^ (K[2] = wctx->hash[2]); in wp512_process_buffer() 796 state[3] = block[3] ^ (K[3] = wctx->hash[3]); in wp512_process_buffer() 797 state[4] = block[4] ^ (K[4] = wctx->hash[4]); in wp512_process_buffer() 798 state[5] = block[5] ^ (K[5] = wctx->hash[5]); in wp512_process_buffer() 799 state[6] = block[6] ^ (K[6] = wctx->hash[6]); in wp512_process_buffer() 800 state[7] = block[7] ^ (K[7] = wctx->hash[7]); in wp512_process_buffer() 886 L[0] = C0[(int)(state[0] >> 56) ] ^ in wp512_process_buffer() [all …]
|
D | anubis.c | 580 u32 state[4]; in anubis_crypt() local 588 state[i] = be32_to_cpu(src[i]) ^ roundKey[0][i]; in anubis_crypt() 596 T0[(state[0] >> 24) ] ^ in anubis_crypt() 597 T1[(state[1] >> 24) ] ^ in anubis_crypt() 598 T2[(state[2] >> 24) ] ^ in anubis_crypt() 599 T3[(state[3] >> 24) ] ^ in anubis_crypt() 602 T0[(state[0] >> 16) & 0xff] ^ in anubis_crypt() 603 T1[(state[1] >> 16) & 0xff] ^ in anubis_crypt() 604 T2[(state[2] >> 16) & 0xff] ^ in anubis_crypt() 605 T3[(state[3] >> 16) & 0xff] ^ in anubis_crypt() [all …]
|
D | khazad.c | 808 u64 state; in khazad_crypt() local 810 state = be64_to_cpu(*src) ^ roundKey[0]; in khazad_crypt() 813 state = T0[(int)(state >> 56) ] ^ in khazad_crypt() 814 T1[(int)(state >> 48) & 0xff] ^ in khazad_crypt() 815 T2[(int)(state >> 40) & 0xff] ^ in khazad_crypt() 816 T3[(int)(state >> 32) & 0xff] ^ in khazad_crypt() 817 T4[(int)(state >> 24) & 0xff] ^ in khazad_crypt() 818 T5[(int)(state >> 16) & 0xff] ^ in khazad_crypt() 819 T6[(int)(state >> 8) & 0xff] ^ in khazad_crypt() 820 T7[(int)(state ) & 0xff] ^ in khazad_crypt() [all …]
|
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-tuner.c | 47 static int mxl111sf_tuner_read_reg(struct mxl111sf_tuner_state *state, in mxl111sf_tuner_read_reg() argument 50 return (state->cfg->read_reg) ? in mxl111sf_tuner_read_reg() 51 state->cfg->read_reg(state->mxl_state, addr, data) : in mxl111sf_tuner_read_reg() 55 static int mxl111sf_tuner_write_reg(struct mxl111sf_tuner_state *state, in mxl111sf_tuner_write_reg() argument 58 return (state->cfg->write_reg) ? in mxl111sf_tuner_write_reg() 59 state->cfg->write_reg(state->mxl_state, addr, data) : in mxl111sf_tuner_write_reg() 63 static int mxl111sf_tuner_program_regs(struct mxl111sf_tuner_state *state, in mxl111sf_tuner_program_regs() argument 66 return (state->cfg->program_regs) ? in mxl111sf_tuner_program_regs() 67 state->cfg->program_regs(state->mxl_state, ctrl_reg_info) : in mxl111sf_tuner_program_regs() 71 static int mxl1x1sf_tuner_top_master_ctrl(struct mxl111sf_tuner_state *state, in mxl1x1sf_tuner_top_master_ctrl() argument [all …]
|
D | mxl111sf-demod.c | 45 static int mxl111sf_demod_read_reg(struct mxl111sf_demod_state *state, in mxl111sf_demod_read_reg() argument 48 return (state->cfg->read_reg) ? in mxl111sf_demod_read_reg() 49 state->cfg->read_reg(state->mxl_state, addr, data) : in mxl111sf_demod_read_reg() 53 static int mxl111sf_demod_write_reg(struct mxl111sf_demod_state *state, in mxl111sf_demod_write_reg() argument 56 return (state->cfg->write_reg) ? in mxl111sf_demod_write_reg() 57 state->cfg->write_reg(state->mxl_state, addr, data) : in mxl111sf_demod_write_reg() 62 int mxl111sf_demod_program_regs(struct mxl111sf_demod_state *state, in mxl111sf_demod_program_regs() argument 65 return (state->cfg->program_regs) ? in mxl111sf_demod_program_regs() 66 state->cfg->program_regs(state->mxl_state, ctrl_reg_info) : in mxl111sf_demod_program_regs() 74 int mxl1x1sf_demod_get_tps_code_rate(struct mxl111sf_demod_state *state, in mxl1x1sf_demod_get_tps_code_rate() argument [all …]
|
D | mxl111sf-gpio.c | 35 static int mxl111sf_set_gpo_state(struct mxl111sf_state *state, u8 pin, u8 val) in mxl111sf_set_gpo_state() argument 43 ret = mxl111sf_read_reg(state, 0x19, &tmp); in mxl111sf_set_gpo_state() 48 ret = mxl111sf_write_reg(state, 0x19, tmp); in mxl111sf_set_gpo_state() 54 ret = mxl111sf_read_reg(state, 0x30, &tmp); in mxl111sf_set_gpo_state() 59 ret = mxl111sf_write_reg(state, 0x30, tmp); in mxl111sf_set_gpo_state() 68 static int mxl111sf_get_gpi_state(struct mxl111sf_state *state, u8 pin, u8 *val) in mxl111sf_get_gpi_state() argument 82 ret = mxl111sf_read_reg(state, 0x23, &tmp); in mxl111sf_get_gpi_state() 91 ret = mxl111sf_read_reg(state, 0x2f, &tmp); in mxl111sf_get_gpi_state() 99 ret = mxl111sf_read_reg(state, 0x22, &tmp); in mxl111sf_get_gpi_state() 117 static int mxl111sf_config_gpio_pins(struct mxl111sf_state *state, in mxl111sf_config_gpio_pins() argument [all …]
|
D | mxl111sf-phy.c | 24 int mxl111sf_init_tuner_demod(struct mxl111sf_state *state) in mxl111sf_init_tuner_demod() argument 52 return mxl111sf_ctrl_program_regs(state, mxl_111_overwrite_default); in mxl111sf_init_tuner_demod() 55 int mxl1x1sf_soft_reset(struct mxl111sf_state *state) in mxl1x1sf_soft_reset() argument 60 ret = mxl111sf_write_reg(state, 0xff, 0x00); /* AIC */ in mxl1x1sf_soft_reset() 63 ret = mxl111sf_write_reg(state, 0x02, 0x01); /* get out of reset */ in mxl1x1sf_soft_reset() 69 int mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode) in mxl1x1sf_set_device_mode() argument 77 ret = mxl111sf_write_reg(state, 0x03, in mxl1x1sf_set_device_mode() 82 ret = mxl111sf_write_reg_mask(state, in mxl1x1sf_set_device_mode() 91 state->device_mode = mode; in mxl1x1sf_set_device_mode() 97 int mxl1x1sf_top_master_ctrl(struct mxl111sf_state *state, int onoff) in mxl1x1sf_top_master_ctrl() argument [all …]
|
D | mxl111sf.c | 89 int mxl111sf_read_reg(struct mxl111sf_state *state, u8 addr, u8 *data) in mxl111sf_read_reg() argument 94 ret = mxl111sf_ctrl_msg(state->d, MXL_CMD_REG_READ, &addr, 1, buf, 2); in mxl111sf_read_reg() 113 int mxl111sf_write_reg(struct mxl111sf_state *state, u8 addr, u8 data) in mxl111sf_write_reg() argument 120 ret = mxl111sf_ctrl_msg(state->d, MXL_CMD_REG_WRITE, buf, 2, NULL, 0); in mxl111sf_write_reg() 128 int mxl111sf_write_reg_mask(struct mxl111sf_state *state, in mxl111sf_write_reg_mask() argument 135 ret = mxl111sf_read_reg(state, addr, &val); in mxl111sf_write_reg_mask() 142 ret = mxl111sf_read_reg(state, addr, &val); in mxl111sf_write_reg_mask() 150 ret = mxl111sf_write_reg(state, addr, val); in mxl111sf_write_reg_mask() 158 int mxl111sf_ctrl_program_regs(struct mxl111sf_state *state, in mxl111sf_ctrl_program_regs() argument 167 ret = mxl111sf_write_reg_mask(state, in mxl111sf_ctrl_program_regs() [all …]
|
D | mxl111sf-i2c.c | 35 static int mxl111sf_i2c_bitbang_sendbyte(struct mxl111sf_state *state, in mxl111sf_i2c_bitbang_sendbyte() argument 43 ret = mxl111sf_read_reg(state, SW_I2C_BUSY_ADDR, &data); in mxl111sf_i2c_bitbang_sendbyte() 51 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, in mxl111sf_i2c_bitbang_sendbyte() 56 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, in mxl111sf_i2c_bitbang_sendbyte() 61 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, in mxl111sf_i2c_bitbang_sendbyte() 69 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, in mxl111sf_i2c_bitbang_sendbyte() 76 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, in mxl111sf_i2c_bitbang_sendbyte() 81 ret = mxl111sf_read_reg(state, SW_I2C_BUSY_ADDR, &data); in mxl111sf_i2c_bitbang_sendbyte() 86 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, in mxl111sf_i2c_bitbang_sendbyte() 97 static int mxl111sf_i2c_bitbang_recvbyte(struct mxl111sf_state *state, in mxl111sf_i2c_bitbang_recvbyte() argument [all …]
|
D | af9035.c | 51 struct state *state = d_to_priv(d); in af9035_ctrl_msg() local 66 state->buf[0] = REQ_HDR_LEN + req->wlen + CHECKSUM_LEN - 1; in af9035_ctrl_msg() 67 state->buf[1] = req->mbox; in af9035_ctrl_msg() 68 state->buf[2] = req->cmd; in af9035_ctrl_msg() 69 state->buf[3] = state->seq++; in af9035_ctrl_msg() 70 memcpy(&state->buf[REQ_HDR_LEN], req->wbuf, req->wlen); in af9035_ctrl_msg() 76 checksum = af9035_checksum(state->buf, state->buf[0] - 1); in af9035_ctrl_msg() 77 state->buf[state->buf[0] - 1] = (checksum >> 8); in af9035_ctrl_msg() 78 state->buf[state->buf[0] - 0] = (checksum & 0xff); in af9035_ctrl_msg() 85 state->buf, wlen, state->buf, rlen); in af9035_ctrl_msg() [all …]
|
D | af9015.c | 35 struct af9015_state *state = d_to_priv(d); in af9015_ctrl_msg() local 41 state->buf[0] = req->cmd; in af9015_ctrl_msg() 42 state->buf[1] = state->seq++; in af9015_ctrl_msg() 43 state->buf[2] = req->i2c_addr; in af9015_ctrl_msg() 44 state->buf[3] = req->addr >> 8; in af9015_ctrl_msg() 45 state->buf[4] = req->addr & 0xff; in af9015_ctrl_msg() 46 state->buf[5] = req->mbox; in af9015_ctrl_msg() 47 state->buf[6] = req->addr_len; in af9015_ctrl_msg() 48 state->buf[7] = req->data_len; in af9015_ctrl_msg() 58 state->buf[2] |= 0x01; /* set I2C direction */ in af9015_ctrl_msg() [all …]
|
D | mxl111sf-phy.h | 26 int mxl1x1sf_soft_reset(struct mxl111sf_state *state); 27 int mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode); 28 int mxl1x1sf_top_master_ctrl(struct mxl111sf_state *state, int onoff); 29 int mxl111sf_disable_656_port(struct mxl111sf_state *state); 30 int mxl111sf_init_tuner_demod(struct mxl111sf_state *state); 31 int mxl111sf_enable_usb_output(struct mxl111sf_state *state); 32 int mxl111sf_config_mpeg_in(struct mxl111sf_state *state, 38 int mxl111sf_config_i2s(struct mxl111sf_state *state, 40 int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size); 41 int mxl111sf_disable_i2s_port(struct mxl111sf_state *state); [all …]
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | intel_atomic_plane.c | 51 struct intel_plane_state *state; in intel_create_plane_state() local 53 state = kzalloc(sizeof(*state), GFP_KERNEL); in intel_create_plane_state() 54 if (!state) in intel_create_plane_state() 57 state->base.plane = plane; in intel_create_plane_state() 58 state->base.rotation = BIT(DRM_ROTATE_0); in intel_create_plane_state() 60 return state; in intel_create_plane_state() 75 struct drm_plane_state *state; in intel_plane_duplicate_state() local 78 if (WARN_ON(!plane->state)) in intel_plane_duplicate_state() 81 intel_state = kmemdup(plane->state, sizeof(*intel_state), in intel_plane_duplicate_state() 87 state = &intel_state->base; in intel_plane_duplicate_state() [all …]
|
D | intel_atomic.c | 45 struct drm_atomic_state *state) in intel_atomic_check() argument 60 struct intel_plane *plane = to_intel_plane(state->planes[i]); in intel_atomic_check() 76 state->allow_modeset = false; in intel_atomic_check() 78 struct intel_crtc *crtc = to_intel_crtc(state->crtcs[i]); in intel_atomic_check() 83 if (state->connectors[i] != NULL) in intel_atomic_check() 91 ret = drm_atomic_helper_check_planes(dev, state); in intel_atomic_check() 116 struct drm_atomic_state *state, in intel_atomic_commit() argument 127 ret = drm_atomic_helper_prepare_planes(dev, state); in intel_atomic_commit() 149 struct drm_plane *plane = state->planes[i]; in intel_atomic_commit() 154 plane->state->state = state; in intel_atomic_commit() [all …]
|
/linux-4.1.27/drivers/media/pci/pt1/ |
D | va1j5jf8007s.c | 53 struct va1j5jf8007s_state *state; in va1j5jf8007s_read_snr() local 60 state = fe->demodulator_priv; in va1j5jf8007s_read_snr() 61 addr = state->config->demod_address; in va1j5jf8007s_read_snr() 77 if (i2c_transfer(state->adap, msgs, 2) != 2) in va1j5jf8007s_read_snr() 113 struct va1j5jf8007s_state *state; in va1j5jf8007s_read_status() local 115 state = fe->demodulator_priv; in va1j5jf8007s_read_status() 117 switch (state->tune_state) { in va1j5jf8007s_read_status() 174 static int va1j5jf8007s_set_frequency_1(struct va1j5jf8007s_state *state) in va1j5jf8007s_set_frequency_1() argument 181 frequency = state->fe.dtv_property_cache.frequency; in va1j5jf8007s_set_frequency_1() 194 msg.addr = state->config->demod_address; in va1j5jf8007s_set_frequency_1() [all …]
|
D | va1j5jf8007t.c | 51 struct va1j5jf8007t_state *state; in va1j5jf8007t_read_snr() local 58 state = fe->demodulator_priv; in va1j5jf8007t_read_snr() 59 addr = state->config->demod_address; in va1j5jf8007t_read_snr() 75 if (i2c_transfer(state->adap, msgs, 2) != 2) in va1j5jf8007t_read_snr() 103 struct va1j5jf8007t_state *state; in va1j5jf8007t_read_status() local 105 state = fe->demodulator_priv; in va1j5jf8007t_read_status() 107 switch (state->tune_state) { in va1j5jf8007t_read_status() 160 static int va1j5jf8007t_set_frequency(struct va1j5jf8007t_state *state) in va1j5jf8007t_set_frequency() argument 167 frequency = state->fe.dtv_property_cache.frequency; in va1j5jf8007t_set_frequency() 177 msg.addr = state->config->demod_address; in va1j5jf8007t_set_frequency() [all …]
|
/linux-4.1.27/tools/usb/ffs-aio-example/multibuff/host_app/ |
D | test.c | 59 int test_init(struct test_state *state) in test_init() argument 65 state->found = NULL; in test_init() 66 state->ctx = NULL; in test_init() 67 state->handle = NULL; in test_init() 68 state->attached = 0; in test_init() 70 ret = libusb_init(&state->ctx); in test_init() 76 cnt = libusb_get_device_list(state->ctx, &list); in test_init() 92 state->found = dev; in test_init() 97 if (!state->found) { in test_init() 102 ret = libusb_open(state->found, &state->handle); in test_init() [all …]
|
/linux-4.1.27/tools/usb/ffs-aio-example/simple/host_app/ |
D | test.c | 59 int test_init(struct test_state *state) in test_init() argument 65 state->found = NULL; in test_init() 66 state->ctx = NULL; in test_init() 67 state->handle = NULL; in test_init() 68 state->attached = 0; in test_init() 70 ret = libusb_init(&state->ctx); in test_init() 76 cnt = libusb_get_device_list(state->ctx, &list); in test_init() 92 state->found = dev; in test_init() 97 if (!state->found) { in test_init() 102 ret = libusb_open(state->found, &state->handle); in test_init() [all …]
|
/linux-4.1.27/arch/powerpc/boot/ |
D | gunzip_util.c | 42 void gunzip_start(struct gunzip_state *state, void *src, int srclen) in gunzip_start() argument 47 memset(state, 0, sizeof(*state)); in gunzip_start() 54 state->s.workspace = state->scratch; in gunzip_start() 55 if (zlib_inflate_workspacesize() > sizeof(state->scratch)) in gunzip_start() 76 r = zlib_inflateInit2(&state->s, -MAX_WBITS); in gunzip_start() 81 state->s.total_in = hdrlen; in gunzip_start() 82 state->s.next_in = src + hdrlen; in gunzip_start() 83 state->s.avail_in = srclen - hdrlen; in gunzip_start() 102 int gunzip_partial(struct gunzip_state *state, void *dst, int dstlen) in gunzip_partial() argument 106 if (state->s.workspace) { in gunzip_partial() [all …]
|
/linux-4.1.27/include/drm/ |
D | drm_atomic.h | 35 void drm_atomic_state_clear(struct drm_atomic_state *state); 36 void drm_atomic_state_free(struct drm_atomic_state *state); 39 drm_atomic_get_crtc_state(struct drm_atomic_state *state, 42 struct drm_crtc_state *state, struct drm_property *property, 45 drm_atomic_get_plane_state(struct drm_atomic_state *state, 48 struct drm_plane_state *state, struct drm_property *property, 51 drm_atomic_get_connector_state(struct drm_atomic_state *state, 54 struct drm_connector_state *state, struct drm_property *property, 66 drm_atomic_add_affected_connectors(struct drm_atomic_state *state, 69 drm_atomic_connectors_for_crtc(struct drm_atomic_state *state, [all …]
|
D | drm_atomic_helper.h | 34 struct drm_atomic_state *state); 36 struct drm_atomic_state *state); 38 struct drm_atomic_state *state); 40 struct drm_atomic_state *state, 47 struct drm_atomic_state *state); 52 struct drm_atomic_state *state); 54 struct drm_atomic_state *state); 59 struct drm_atomic_state *state); 91 struct drm_crtc_state *state); 95 struct drm_crtc_state *state); [all …]
|
/linux-4.1.27/drivers/media/usb/dvb-usb/ |
D | af9005-fe.c | 106 struct af9005_fe_state *state = fe->demodulator_priv; in af9005_is_fecmon_available() local 112 ret = af9005_read_register_bits(state->d, xd_p_fec_vtb_rsd_mon_en, in af9005_is_fecmon_available() 119 af9005_read_register_bits(state->d, in af9005_is_fecmon_available() 137 struct af9005_fe_state *state = fe->demodulator_priv; in af9005_get_post_vit_err_cw_count() local 149 af9005_read_register_bits(state->d, xd_r_fec_rsd_ber_rdy, in af9005_get_post_vit_err_cw_count() 160 af9005_read_ofdm_register(state->d, in af9005_get_post_vit_err_cw_count() 166 af9005_read_ofdm_register(state->d, in af9005_get_post_vit_err_cw_count() 175 af9005_read_ofdm_register(state->d, xd_r_fec_rsd_bit_err_cnt_7_0, in af9005_get_post_vit_err_cw_count() 180 af9005_read_ofdm_register(state->d, xd_r_fec_rsd_bit_err_cnt_15_8, in af9005_get_post_vit_err_cw_count() 185 af9005_read_ofdm_register(state->d, xd_r_fec_rsd_bit_err_cnt_23_16, in af9005_get_post_vit_err_cw_count() [all …]
|
D | friio-fe.c | 27 static int jdvbt90502_reg_read(struct jdvbt90502_state *state, in jdvbt90502_reg_read() argument 38 msg[0].addr = state->config.demod_address; in jdvbt90502_reg_read() 48 ret = i2c_transfer(state->i2c, msg, 2); in jdvbt90502_reg_read() 57 static int jdvbt90502_single_reg_write(struct jdvbt90502_state *state, in jdvbt90502_single_reg_write() argument 66 msg.addr = state->config.demod_address; in jdvbt90502_single_reg_write() 71 if (i2c_transfer(state->i2c, &msg, 1) != 1) { in jdvbt90502_single_reg_write() 80 struct jdvbt90502_state *state = fe->demodulator_priv; in _jdvbt90502_write() local 83 err = jdvbt90502_single_reg_write(state, in _jdvbt90502_write() 94 static int jdvbt90502_pll_read(struct jdvbt90502_state *state, u8 *result) in jdvbt90502_pll_read() argument 99 u8 pll_addr_byte = (state->config.pll_address << 1) + 1; in jdvbt90502_pll_read() [all …]
|
D | dtt200u-fe.c | 25 struct dtt200u_fe_state *state = fe->demodulator_priv; in dtt200u_fe_read_status() local 28 dvb_usb_generic_rw(state->d,&st,1,b,3,0); in dtt200u_fe_read_status() 48 struct dtt200u_fe_state *state = fe->demodulator_priv; in dtt200u_fe_read_ber() local 50 dvb_usb_generic_rw(state->d,&bw,1,b,3,0); in dtt200u_fe_read_ber() 57 struct dtt200u_fe_state *state = fe->demodulator_priv; in dtt200u_fe_read_unc_blocks() local 60 dvb_usb_generic_rw(state->d,&bw,1,b,2,0); in dtt200u_fe_read_unc_blocks() 67 struct dtt200u_fe_state *state = fe->demodulator_priv; in dtt200u_fe_read_signal_strength() local 69 dvb_usb_generic_rw(state->d,&bw,1,&b,1,0); in dtt200u_fe_read_signal_strength() 76 struct dtt200u_fe_state *state = fe->demodulator_priv; in dtt200u_fe_read_snr() local 78 dvb_usb_generic_rw(state->d,&bw,1,&br,1,0); in dtt200u_fe_read_snr() [all …]
|
D | vp7045-fe.c | 31 struct vp7045_fe_state *state = fe->demodulator_priv; in vp7045_fe_read_status() local 32 u8 s0 = vp7045_read_reg(state->d,0x00), in vp7045_fe_read_status() 33 s1 = vp7045_read_reg(state->d,0x01), in vp7045_fe_read_status() 34 s3 = vp7045_read_reg(state->d,0x03); in vp7045_fe_read_status() 57 struct vp7045_fe_state *state = fe->demodulator_priv; in vp7045_fe_read_ber() local 58 *ber = (vp7045_read_reg(state->d, 0x0D) << 16) | in vp7045_fe_read_ber() 59 (vp7045_read_reg(state->d, 0x0E) << 8) | in vp7045_fe_read_ber() 60 vp7045_read_reg(state->d, 0x0F); in vp7045_fe_read_ber() 66 struct vp7045_fe_state *state = fe->demodulator_priv; in vp7045_fe_read_unc_blocks() local 67 *unc = (vp7045_read_reg(state->d, 0x10) << 8) | in vp7045_fe_read_unc_blocks() [all …]
|
/linux-4.1.27/drivers/scsi/ |
D | mac53c94.c | 71 struct fsc_state *state; in mac53c94_queue_lck() local 88 state = (struct fsc_state *) cmd->device->host->hostdata; in mac53c94_queue_lck() 90 if (state->request_q == NULL) in mac53c94_queue_lck() 91 state->request_q = cmd; in mac53c94_queue_lck() 93 state->request_qtail->host_scribble = (void *) cmd; in mac53c94_queue_lck() 94 state->request_qtail = cmd; in mac53c94_queue_lck() 96 if (state->phase == idle) in mac53c94_queue_lck() 97 mac53c94_start(state); in mac53c94_queue_lck() 106 struct fsc_state *state = (struct fsc_state *) cmd->device->host->hostdata; in DEF_SCSI_QCMD() local 107 struct mac53c94_regs __iomem *regs = state->regs; in DEF_SCSI_QCMD() [all …]
|
/linux-4.1.27/arch/mips/cavium-octeon/crypto/ |
D | octeon-sha512.c | 37 write_octeon_64bit_hash_sha512(sctx->state[0], 0); in octeon_sha512_store_hash() 38 write_octeon_64bit_hash_sha512(sctx->state[1], 1); in octeon_sha512_store_hash() 39 write_octeon_64bit_hash_sha512(sctx->state[2], 2); in octeon_sha512_store_hash() 40 write_octeon_64bit_hash_sha512(sctx->state[3], 3); in octeon_sha512_store_hash() 41 write_octeon_64bit_hash_sha512(sctx->state[4], 4); in octeon_sha512_store_hash() 42 write_octeon_64bit_hash_sha512(sctx->state[5], 5); in octeon_sha512_store_hash() 43 write_octeon_64bit_hash_sha512(sctx->state[6], 6); in octeon_sha512_store_hash() 44 write_octeon_64bit_hash_sha512(sctx->state[7], 7); in octeon_sha512_store_hash() 49 sctx->state[0] = read_octeon_64bit_hash_sha512(0); in octeon_sha512_read_hash() 50 sctx->state[1] = read_octeon_64bit_hash_sha512(1); in octeon_sha512_read_hash() [all …]
|
D | octeon-sha256.c | 38 u64 *hash = (u64 *)sctx->state; in octeon_sha256_store_hash() 48 u64 *hash = (u64 *)sctx->state; in octeon_sha256_read_hash() 74 sctx->state[0] = SHA224_H0; in octeon_sha224_init() 75 sctx->state[1] = SHA224_H1; in octeon_sha224_init() 76 sctx->state[2] = SHA224_H2; in octeon_sha224_init() 77 sctx->state[3] = SHA224_H3; in octeon_sha224_init() 78 sctx->state[4] = SHA224_H4; in octeon_sha224_init() 79 sctx->state[5] = SHA224_H5; in octeon_sha224_init() 80 sctx->state[6] = SHA224_H6; in octeon_sha224_init() 81 sctx->state[7] = SHA224_H7; in octeon_sha224_init() [all …]
|
/linux-4.1.27/drivers/net/wan/ |
D | hdlc_fr.c | 134 }state; member 171 static inline struct frad_state* state(hdlc_device *hdlc) in state() function 173 return(struct frad_state *)(hdlc->state); in state() 179 struct pvc_device *pvc = state(hdlc)->first_pvc; in find_pvc() 196 struct pvc_device *pvc, **pvc_p = &state(hdlc)->first_pvc; in add_pvc() 249 struct pvc_device **pvc_p = &state(hdlc)->first_pvc; in delete_unused_pvcs() 353 if (state(hdlc)->settings.lmi == LMI_NONE) in pvc_open() 354 pvc->state.active = netif_carrier_ok(pvc->frad); in pvc_open() 356 pvc_carrier(pvc->state.active, pvc); in pvc_open() 357 state(hdlc)->dce_changed = 1; in pvc_open() [all …]
|
/linux-4.1.27/drivers/gpu/drm/i2c/ |
D | ch7006_mode.c | 204 uint8_t *regs = priv->state.regs; in ch7006_setup_levels() 235 struct ch7006_state *state = &priv->state; in ch7006_setup_subcarrier() local 243 setbitf(state, CH7006_SUBC_INC0, 28, subc_inc); in ch7006_setup_subcarrier() 244 setbitf(state, CH7006_SUBC_INC1, 24, subc_inc); in ch7006_setup_subcarrier() 245 setbitf(state, CH7006_SUBC_INC2, 20, subc_inc); in ch7006_setup_subcarrier() 246 setbitf(state, CH7006_SUBC_INC3, 16, subc_inc); in ch7006_setup_subcarrier() 247 setbitf(state, CH7006_SUBC_INC4, 12, subc_inc); in ch7006_setup_subcarrier() 248 setbitf(state, CH7006_SUBC_INC5, 8, subc_inc); in ch7006_setup_subcarrier() 249 setbitf(state, CH7006_SUBC_INC6, 4, subc_inc); in ch7006_setup_subcarrier() 250 setbitf(state, CH7006_SUBC_INC7, 0, subc_inc); in ch7006_setup_subcarrier() [all …]
|
/linux-4.1.27/net/802/ |
D | garp.c | 30 u8 state; member 34 [GARP_EVENT_TRANSMIT_PDU] = { .state = GARP_APPLICANT_AA, 36 [GARP_EVENT_R_JOIN_IN] = { .state = GARP_APPLICANT_AA }, 37 [GARP_EVENT_R_JOIN_EMPTY] = { .state = GARP_APPLICANT_VA }, 38 [GARP_EVENT_R_EMPTY] = { .state = GARP_APPLICANT_VA }, 39 [GARP_EVENT_R_LEAVE_IN] = { .state = GARP_APPLICANT_VA }, 40 [GARP_EVENT_R_LEAVE_EMPTY] = { .state = GARP_APPLICANT_VP }, 41 [GARP_EVENT_REQ_JOIN] = { .state = GARP_APPLICANT_INVALID }, 42 [GARP_EVENT_REQ_LEAVE] = { .state = GARP_APPLICANT_LA }, 45 [GARP_EVENT_TRANSMIT_PDU] = { .state = GARP_APPLICANT_QA, [all …]
|
/linux-4.1.27/drivers/input/misc/ |
D | sparcspkr.c | 67 struct sparcspkr_state *state = dev_get_drvdata(dev->dev.parent); in bbc_spkr_event() local 68 struct bbc_beep_info *info = &state->u.bbc; in bbc_spkr_event() 86 spin_lock_irqsave(&state->lock, flags); in bbc_spkr_event() 98 spin_unlock_irqrestore(&state->lock, flags); in bbc_spkr_event() 105 struct sparcspkr_state *state = dev_get_drvdata(dev->dev.parent); in grover_spkr_event() local 106 struct grover_beep_info *info = &state->u.grover; in grover_spkr_event() 122 spin_lock_irqsave(&state->lock, flags); in grover_spkr_event() 137 spin_unlock_irqrestore(&state->lock, flags); in grover_spkr_event() 144 struct sparcspkr_state *state = dev_get_drvdata(dev); in sparcspkr_probe() local 152 input_dev->name = state->name; in sparcspkr_probe() [all …]
|
/linux-4.1.27/drivers/media/usb/ttusb-dec/ |
D | ttusbdecfe.c | 53 struct ttusbdecfe_state* state = fe->demodulator_priv; in ttusbdecfe_dvbt_read_status() local 61 ret=state->config->send_command(fe, 0x73, sizeof(b), b, &len, result); in ttusbdecfe_dvbt_read_status() 93 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; in ttusbdecfe_dvbt_set_frontend() local 102 state->config->send_command(fe, 0x71, sizeof(b), b, NULL, NULL); in ttusbdecfe_dvbt_set_frontend() 120 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; in ttusbdecfe_dvbs_set_frontend() local 138 (state->hi_band ? LOF_HI : LOF_LO)); in ttusbdecfe_dvbs_set_frontend() 142 band = htonl(state->hi_band ? LOF_HI : LOF_LO); in ttusbdecfe_dvbs_set_frontend() 144 lnb_voltage = htonl(state->voltage); in ttusbdecfe_dvbs_set_frontend() 147 state->config->send_command(fe, 0x71, sizeof(b), b, NULL, NULL); in ttusbdecfe_dvbs_set_frontend() 154 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; in ttusbdecfe_dvbs_diseqc_send_master_cmd() local [all …]
|
/linux-4.1.27/drivers/input/ |
D | ff-memless.c | 89 static unsigned long calculate_next_time(struct ml_effect_state *state) in calculate_next_time() argument 91 const struct ff_envelope *envelope = get_envelope(state->effect); in calculate_next_time() 95 attack_stop = state->play_at + in calculate_next_time() 97 if (time_before(state->adj_at, attack_stop)) in calculate_next_time() 98 return state->adj_at + in calculate_next_time() 102 if (state->effect->replay.length) { in calculate_next_time() 105 fade_start = state->stop_at - in calculate_next_time() 108 if (time_before(state->adj_at, fade_start)) in calculate_next_time() 112 next_fade = state->adj_at + in calculate_next_time() 114 if (time_before(next_fade, state->stop_at)) in calculate_next_time() [all …]
|
/linux-4.1.27/drivers/media/i2c/cx25840/ |
D | cx25840-audio.c | 46 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); in cx25840_set_audclk_freq() local 48 if (state->aud_input != CX25840_AUDIO_SERIAL) { in cx25840_set_audclk_freq() 78 if (is_cx2583x(state)) in cx25840_set_audclk_freq() 115 if (is_cx2583x(state)) in cx25840_set_audclk_freq() 152 if (is_cx2583x(state)) in cx25840_set_audclk_freq() 191 if (is_cx2583x(state)) in cx25840_set_audclk_freq() 232 if (is_cx2583x(state)) in cx25840_set_audclk_freq() 273 if (is_cx2583x(state)) in cx25840_set_audclk_freq() 289 state->audclk_freq = freq; in cx25840_set_audclk_freq() 301 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); in cx23885_set_audclk_freq() local [all …]
|
/linux-4.1.27/drivers/ata/ |
D | pata_icside.c | 62 struct pata_icside_state *state; member 87 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqenable_arcin_v5() local 89 writeb(0, state->irq_port + ICS_ARCIN_V5_INTROFFSET); in pata_icside_irqenable_arcin_v5() 97 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqdisable_arcin_v5() local 99 readb(state->irq_port + ICS_ARCIN_V5_INTROFFSET); in pata_icside_irqdisable_arcin_v5() 114 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqenable_arcin_v6() local 115 void __iomem *base = state->irq_port; in pata_icside_irqenable_arcin_v6() 117 if (!state->port[0].disabled) in pata_icside_irqenable_arcin_v6() 119 if (!state->port[1].disabled) in pata_icside_irqenable_arcin_v6() 128 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqdisable_arcin_v6() local [all …]
|
/linux-4.1.27/drivers/phy/ |
D | phy-exynos-mipi-video.c | 49 static int __set_phy_state(struct exynos_mipi_video_phy *state, in __set_phy_state() argument 61 spin_lock(&state->slock); in __set_phy_state() 63 if (!IS_ERR(state->regmap)) { in __set_phy_state() 64 regmap_read(state->regmap, offset, &val); in __set_phy_state() 69 regmap_write(state->regmap, offset, val); in __set_phy_state() 74 regmap_write(state->regmap, offset, val); in __set_phy_state() 76 addr = state->regs + EXYNOS_MIPI_PHY_CONTROL(id / 2); in __set_phy_state() 93 spin_unlock(&state->slock); in __set_phy_state() 103 struct exynos_mipi_video_phy *state = to_mipi_video_phy(phy_desc); in exynos_mipi_video_phy_power_on() local 105 return __set_phy_state(state, phy_desc->index, 1); in exynos_mipi_video_phy_power_on() [all …]
|
D | phy-exynos-dp-video.c | 35 struct exynos_dp_video_phy *state = phy_get_drvdata(phy); in exynos_dp_video_phy_power_on() local 38 return regmap_update_bits(state->regs, state->drvdata->phy_ctrl_offset, in exynos_dp_video_phy_power_on() 44 struct exynos_dp_video_phy *state = phy_get_drvdata(phy); in exynos_dp_video_phy_power_off() local 47 return regmap_update_bits(state->regs, state->drvdata->phy_ctrl_offset, in exynos_dp_video_phy_power_off() 79 struct exynos_dp_video_phy *state; in exynos_dp_video_phy_probe() local 85 state = devm_kzalloc(dev, sizeof(*state), GFP_KERNEL); in exynos_dp_video_phy_probe() 86 if (!state) in exynos_dp_video_phy_probe() 89 state->regs = syscon_regmap_lookup_by_phandle(dev->of_node, in exynos_dp_video_phy_probe() 91 if (IS_ERR(state->regs)) { in exynos_dp_video_phy_probe() 93 return PTR_ERR(state->regs); in exynos_dp_video_phy_probe() [all …]
|
/linux-4.1.27/drivers/hid/ |
D | hid-wiimote-core.c | 61 spin_lock_irqsave(&wdata->state.lock, flags); in wiimote_queue_worker() 63 spin_unlock_irqrestore(&wdata->state.lock, flags); in wiimote_queue_worker() 129 if (wdata->state.flags & WIIPROTO_FLAG_RUMBLE) in wiiproto_keep_rumble() 138 if (rumble == !!(wdata->state.flags & WIIPROTO_FLAG_RUMBLE)) in wiiproto_req_rumble() 142 wdata->state.flags |= WIIPROTO_FLAG_RUMBLE; in wiiproto_req_rumble() 144 wdata->state.flags &= ~WIIPROTO_FLAG_RUMBLE; in wiiproto_req_rumble() 158 if ((wdata->state.flags & WIIPROTO_FLAGS_LEDS) == leds) in wiiproto_req_leds() 160 wdata->state.flags = (wdata->state.flags & ~WIIPROTO_FLAGS_LEDS) | leds; in wiiproto_req_leds() 199 __u8 ir = wdata->state.flags & WIIPROTO_FLAGS_IR; in select_drm() 202 ext = (wdata->state.flags & WIIPROTO_FLAG_EXT_USED) || in select_drm() [all …]
|
/linux-4.1.27/drivers/gpu/drm/msm/ |
D | msm_atomic.c | 24 struct drm_atomic_state *state; member 62 static struct msm_commit *commit_init(struct drm_atomic_state *state) in commit_init() argument 69 c->dev = state->dev; in commit_init() 70 c->state = state; in commit_init() 92 struct drm_atomic_state *state = c->state; in complete_commit() local 93 struct drm_device *dev = state->dev; in complete_commit() 97 kms->funcs->prepare_commit(kms, state); in complete_commit() 99 drm_atomic_helper_commit_modeset_disables(dev, state); in complete_commit() 101 drm_atomic_helper_commit_planes(dev, state); in complete_commit() 103 drm_atomic_helper_commit_modeset_enables(dev, state); in complete_commit() [all …]
|
/linux-4.1.27/net/netfilter/ |
D | nf_queue.c | 51 struct nf_hook_state *state = &entry->state; in nf_queue_entry_release_refs() local 54 if (state->in) in nf_queue_entry_release_refs() 55 dev_put(state->in); in nf_queue_entry_release_refs() 56 if (state->out) in nf_queue_entry_release_refs() 57 dev_put(state->out); in nf_queue_entry_release_refs() 58 if (state->sk) in nf_queue_entry_release_refs() 59 sock_put(state->sk); in nf_queue_entry_release_refs() 80 struct nf_hook_state *state = &entry->state; in nf_queue_entry_get_refs() local 85 if (state->in) in nf_queue_entry_get_refs() 86 dev_hold(state->in); in nf_queue_entry_get_refs() [all …]
|
/linux-4.1.27/lib/xz/ |
D | xz_lzma2.h | 64 static inline void lzma_state_literal(enum lzma_state *state) in lzma_state_literal() argument 66 if (*state <= STATE_SHORTREP_LIT_LIT) in lzma_state_literal() 67 *state = STATE_LIT_LIT; in lzma_state_literal() 68 else if (*state <= STATE_LIT_SHORTREP) in lzma_state_literal() 69 *state -= 3; in lzma_state_literal() 71 *state -= 6; in lzma_state_literal() 75 static inline void lzma_state_match(enum lzma_state *state) in lzma_state_match() argument 77 *state = *state < LIT_STATES ? STATE_LIT_MATCH : STATE_NONLIT_MATCH; in lzma_state_match() 81 static inline void lzma_state_long_rep(enum lzma_state *state) in lzma_state_long_rep() argument 83 *state = *state < LIT_STATES ? STATE_LIT_LONGREP : STATE_NONLIT_REP; in lzma_state_long_rep() [all …]
|
/linux-4.1.27/drivers/iio/dac/ |
D | mcp4922.c | 60 static int mcp4922_spi_write(struct mcp4922_state *state, u8 addr, u32 val) in mcp4922_spi_write() argument 62 state->mosi[1] = val & 0xff; in mcp4922_spi_write() 63 state->mosi[0] = (addr == 0) ? 0x00 : 0x80; in mcp4922_spi_write() 64 state->mosi[0] |= 0x30 | ((val >> 8) & 0x0f); in mcp4922_spi_write() 66 return spi_write(state->spi, state->mosi, 2); in mcp4922_spi_write() 75 struct mcp4922_state *state = iio_priv(indio_dev); in mcp4922_read_raw() local 79 *val = state->value[chan->channel]; in mcp4922_read_raw() 82 *val = state->vref_mv; in mcp4922_read_raw() 96 struct mcp4922_state *state = iio_priv(indio_dev); in mcp4922_write_raw() local 106 state->value[chan->channel] = val; in mcp4922_write_raw() [all …]
|
/linux-4.1.27/drivers/base/power/ |
D | main.c | 205 int error, pm_message_t state, char *info) in initcall_debug_report() argument 249 static pm_callback_t pm_op(const struct dev_pm_ops *ops, pm_message_t state) in pm_op() argument 251 switch (state.event) { in pm_op() 284 pm_message_t state) in pm_late_early_op() argument 286 switch (state.event) { in pm_late_early_op() 318 static pm_callback_t pm_noirq_op(const struct dev_pm_ops *ops, pm_message_t state) in pm_noirq_op() argument 320 switch (state.event) { in pm_noirq_op() 344 static void pm_dev_dbg(struct device *dev, pm_message_t state, char *info) in pm_dev_dbg() argument 346 dev_dbg(dev, "%s%s%s\n", info, pm_verb(state.event), in pm_dev_dbg() 347 ((state.event & PM_EVENT_SLEEP) && device_may_wakeup(dev)) ? in pm_dev_dbg() [all …]
|
/linux-4.1.27/drivers/ide/ |
D | icside.c | 89 struct icside_state *state = ec->irq_data; in icside_irqenable_arcin_v5() local 91 writeb(0, state->irq_port + ICS_ARCIN_V5_INTROFFSET); in icside_irqenable_arcin_v5() 99 struct icside_state *state = ec->irq_data; in icside_irqdisable_arcin_v5() local 101 readb(state->irq_port + ICS_ARCIN_V5_INTROFFSET); in icside_irqdisable_arcin_v5() 116 struct icside_state *state = ec->irq_data; in icside_irqenable_arcin_v6() local 117 void __iomem *base = state->irq_port; in icside_irqenable_arcin_v6() 119 state->enabled = 1; in icside_irqenable_arcin_v6() 121 switch (state->channel) { in icside_irqenable_arcin_v6() 138 struct icside_state *state = ec->irq_data; in icside_irqdisable_arcin_v6() local 140 state->enabled = 0; in icside_irqdisable_arcin_v6() [all …]
|
/linux-4.1.27/net/wimax/ |
D | op-rfkill.c | 94 enum wimax_rf_state state) in wimax_report_rfkill_hw() argument 100 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); in wimax_report_rfkill_hw() 101 BUG_ON(state == WIMAX_RF_QUERY); in wimax_report_rfkill_hw() 102 BUG_ON(state != WIMAX_RF_ON && state != WIMAX_RF_OFF); in wimax_report_rfkill_hw() 109 if (state != wimax_dev->rf_hw) { in wimax_report_rfkill_hw() 110 wimax_dev->rf_hw = state; in wimax_report_rfkill_hw() 118 state == WIMAX_RF_OFF); in wimax_report_rfkill_hw() 125 wimax_dev, state, result); in wimax_report_rfkill_hw() 150 enum wimax_rf_state state) in wimax_report_rfkill_sw() argument 156 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); in wimax_report_rfkill_sw() [all …]
|
/linux-4.1.27/drivers/video/fbdev/riva/ |
D | riva_hw.c | 242 static int nv3_iterate(nv3_fifo_info *res_info, nv3_sim_state * state, nv3_arb_info *ainfo) in nv3_iterate() argument 273 ns = 1000000 * ainfo->vburst_size/(state->memory_width/8)/state->mclk_khz; in nv3_iterate() 277 if (state->enable_mp) in nv3_iterate() 285 ns = 1000000 * (ainfo->gburst_size/(state->memory_width/8))/state->mclk_khz; in nv3_iterate() 290 if (!state->gr_during_vid && ainfo->vid_en) in nv3_iterate() 340 … ns = 1000000 * (vmisses*state->mem_page_miss + state->mem_latency)/state->mclk_khz; in nv3_iterate() 344 …ns = 1000000*(misses*state->mem_page_miss + ainfo->vburst_size)/(state->memory_width/8)/state->mcl… in nv3_iterate() 356 … ns = 1000000*(gmisses*state->mem_page_miss + state->mem_latency)/state->mclk_khz ; in nv3_iterate() 360 …ns = 1000000*(misses*state->mem_page_miss + ainfo->gburst_size/(state->memory_width/8))/state->mcl… in nv3_iterate() 370 … ns = 1000000*(misses*state->mem_page_miss + mburst_size/(state->memory_width/8))/state->mclk_khz; in nv3_iterate() [all …]
|
/linux-4.1.27/arch/s390/crypto/ |
D | sha512_s390.c | 29 *(__u64 *)&ctx->state[0] = 0x6a09e667f3bcc908ULL; in sha512_init() 30 *(__u64 *)&ctx->state[2] = 0xbb67ae8584caa73bULL; in sha512_init() 31 *(__u64 *)&ctx->state[4] = 0x3c6ef372fe94f82bULL; in sha512_init() 32 *(__u64 *)&ctx->state[6] = 0xa54ff53a5f1d36f1ULL; in sha512_init() 33 *(__u64 *)&ctx->state[8] = 0x510e527fade682d1ULL; in sha512_init() 34 *(__u64 *)&ctx->state[10] = 0x9b05688c2b3e6c1fULL; in sha512_init() 35 *(__u64 *)&ctx->state[12] = 0x1f83d9abfb41bd6bULL; in sha512_init() 36 *(__u64 *)&ctx->state[14] = 0x5be0cd19137e2179ULL; in sha512_init() 50 memcpy(octx->state, sctx->state, sizeof(octx->state)); in sha512_export() 64 memcpy(sctx->state, ictx->state, sizeof(ictx->state)); in sha512_import() [all …]
|
D | sha256_s390.c | 28 sctx->state[0] = SHA256_H0; in sha256_init() 29 sctx->state[1] = SHA256_H1; in sha256_init() 30 sctx->state[2] = SHA256_H2; in sha256_init() 31 sctx->state[3] = SHA256_H3; in sha256_init() 32 sctx->state[4] = SHA256_H4; in sha256_init() 33 sctx->state[5] = SHA256_H5; in sha256_init() 34 sctx->state[6] = SHA256_H6; in sha256_init() 35 sctx->state[7] = SHA256_H7; in sha256_init() 48 memcpy(octx->state, sctx->state, sizeof(octx->state)); in sha256_export() 59 memcpy(sctx->state, ictx->state, sizeof(ictx->state)); in sha256_import() [all …]
|
/linux-4.1.27/drivers/media/usb/go7007/ |
D | s2250-board.c | 330 struct s2250 *state = to_state(sd); in s2250_s_video_routing() local 334 vidsys = (state->std == V4L2_STD_NTSC) ? 0x01 : 0x00; in s2250_s_video_routing() 348 state->input = input; in s2250_s_video_routing() 354 struct s2250 *state = to_state(sd); in s2250_s_std() local 358 vidsource = (state->input == 1) ? 0x040 : 0x020; in s2250_s_std() 367 state->std = norm; in s2250_s_std() 373 struct s2250 *state = container_of(ctrl->handler, struct s2250, hdl); in s2250_s_ctrl() local 374 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); in s2250_s_ctrl() 411 struct s2250 *state = to_state(sd); in s2250_s_mbus_fmt() local 415 write_reg_fp(client, 0x12b, state->reg12b_val | 0x400); in s2250_s_mbus_fmt() [all …]
|
/linux-4.1.27/fs/btrfs/ |
D | check-integrity.c | 200 struct btrfsic_state *state; member 302 static int btrfsic_process_superblock(struct btrfsic_state *state, 304 static int btrfsic_process_metablock(struct btrfsic_state *state, 312 struct btrfsic_state *state, 323 static int btrfsic_handle_extent_data(struct btrfsic_state *state, 327 static int btrfsic_map_block(struct btrfsic_state *state, u64 bytenr, u32 len, 331 static int btrfsic_read_block(struct btrfsic_state *state, 333 static void btrfsic_dump_database(struct btrfsic_state *state); 334 static int btrfsic_test_for_metadata(struct btrfsic_state *state, 343 struct btrfsic_state *state, [all …]
|
/linux-4.1.27/drivers/acpi/ |
D | device_pm.c | 40 const char *acpi_power_state_string(int state) in acpi_power_state_string() argument 42 switch (state) { in acpi_power_state_string() 67 int acpi_device_get_power(struct acpi_device *device, int *state) in acpi_device_get_power() argument 71 if (!device || !state) in acpi_device_get_power() 76 *state = device->parent ? in acpi_device_get_power() 77 device->parent->power.state : ACPI_STATE_D0; in acpi_device_get_power() 120 && device->parent->power.state == ACPI_STATE_UNKNOWN in acpi_device_get_power() 122 device->parent->power.state = ACPI_STATE_D0; in acpi_device_get_power() 124 *state = result; in acpi_device_get_power() 128 device->pnp.bus_id, acpi_power_state_string(*state))); in acpi_device_get_power() [all …]
|
/linux-4.1.27/security/apparmor/ |
D | match.c | 307 unsigned int state = start, pos; in aa_dfa_match_len() local 309 if (state == 0) in aa_dfa_match_len() 318 pos = base_idx(base[state]) + equiv[(u8) *str++]; in aa_dfa_match_len() 319 if (check[pos] == state) in aa_dfa_match_len() 320 state = next[pos]; in aa_dfa_match_len() 322 state = def[state]; in aa_dfa_match_len() 327 pos = base_idx(base[state]) + (u8) *str++; in aa_dfa_match_len() 328 if (check[pos] == state) in aa_dfa_match_len() 329 state = next[pos]; in aa_dfa_match_len() 331 state = def[state]; in aa_dfa_match_len() [all …]
|
/linux-4.1.27/drivers/video/fbdev/ |
D | s3fb.c | 38 struct vgastate state; member 207 return vga_rcrt(par->state.vgabase, DDC_REG); in s3fb_ddc_read() 215 vga_wcrt(par->state.vgabase, DDC_REG, val); in s3fb_ddc_write() 286 svga_wseq_mask(par->state.vgabase, 0x0d, 0x01, 0x03); in s3fb_setup_ddc_bus() 288 svga_wseq_mask(par->state.vgabase, 0x0d, 0x00, 0x03); in s3fb_setup_ddc_bus() 290 svga_wcrt_mask(par->state.vgabase, 0x5c, 0x03, 0x03); in s3fb_setup_ddc_bus() 327 svga_tilecursor(par->state.vgabase, info, cursor); in s3fb_tilecursor() 484 regval = vga_r(par->state.vgabase, VGA_MIS_R); in s3_set_pixclock() 485 vga_w(par->state.vgabase, VGA_MIS_W, regval | VGA_MIS_ENB_PLL_LOAD); in s3_set_pixclock() 494 vga_wseq(par->state.vgabase, 0x12, (n - 2) | ((r & 3) << 6)); /* n and two bits of r */ in s3_set_pixclock() [all …]
|
D | vt8623fb.c | 36 struct vgastate state; member 128 svga_tilecursor(par->state.vgabase, info, cursor); in vt8623fb_tilecursor() 274 regval = vga_r(par->state.vgabase, VGA_MIS_R); in vt8623_set_pixclock() 275 vga_w(par->state.vgabase, VGA_MIS_W, regval | VGA_MIS_ENB_PLL_LOAD); in vt8623_set_pixclock() 278 vga_wseq(par->state.vgabase, 0x46, (n | (r << 6))); in vt8623_set_pixclock() 279 vga_wseq(par->state.vgabase, 0x47, m); in vt8623_set_pixclock() 284 svga_wseq_mask(par->state.vgabase, 0x40, 0x02, 0x02); in vt8623_set_pixclock() 285 svga_wseq_mask(par->state.vgabase, 0x40, 0x00, 0x02); in vt8623_set_pixclock() 295 void __iomem *vgabase = par->state.vgabase; in vt8623fb_open() 297 memset(&(par->state), 0, sizeof(struct vgastate)); in vt8623fb_open() [all …]
|
/linux-4.1.27/include/trace/events/ |
D | power.h | 16 TP_PROTO(unsigned int state, unsigned int cpu_id), 18 TP_ARGS(state, cpu_id), 21 __field( u32, state ) 26 __entry->state = state; 30 TP_printk("state=%lu cpu_id=%lu", (unsigned long)__entry->state, 36 TP_PROTO(unsigned int state, unsigned int cpu_id), 38 TP_ARGS(state, cpu_id) 45 u32 state, 53 state, 62 __field(u32, state) [all …]
|
/linux-4.1.27/kernel/ |
D | cgroup_freezer.c | 45 unsigned int state; member 70 ret = task_freezer(task)->state & CGROUP_FREEZING; in cgroup_freezing() 76 static const char *freezer_state_strs(unsigned int state) in freezer_state_strs() argument 78 if (state & CGROUP_FROZEN) in freezer_state_strs() 80 if (state & CGROUP_FREEZING) in freezer_state_strs() 112 freezer->state |= CGROUP_FREEZER_ONLINE; in freezer_css_online() 114 if (parent && (parent->state & CGROUP_FREEZING)) { in freezer_css_online() 115 freezer->state |= CGROUP_FREEZING_PARENT | CGROUP_FROZEN; in freezer_css_online() 136 if (freezer->state & CGROUP_FREEZING) in freezer_css_offline() 139 freezer->state = 0; in freezer_css_offline() [all …]
|
/linux-4.1.27/arch/powerpc/crypto/ |
D | sha256-spe-glue.c | 39 extern void ppc_spe_sha256_transform(u32 *state, const u8 *src, u32 blocks); 68 sctx->state[0] = SHA256_H0; in ppc_spe_sha256_init() 69 sctx->state[1] = SHA256_H1; in ppc_spe_sha256_init() 70 sctx->state[2] = SHA256_H2; in ppc_spe_sha256_init() 71 sctx->state[3] = SHA256_H3; in ppc_spe_sha256_init() 72 sctx->state[4] = SHA256_H4; in ppc_spe_sha256_init() 73 sctx->state[5] = SHA256_H5; in ppc_spe_sha256_init() 74 sctx->state[6] = SHA256_H6; in ppc_spe_sha256_init() 75 sctx->state[7] = SHA256_H7; in ppc_spe_sha256_init() 85 sctx->state[0] = SHA224_H0; in ppc_spe_sha224_init() [all …]
|
/linux-4.1.27/fs/nfsd/ |
D | nfs4acl.c | 467 init_state(struct posix_acl_state *state, int cnt) in init_state() argument 471 memset(state, 0, sizeof(struct posix_acl_state)); in init_state() 472 state->empty = 1; in init_state() 480 state->users = kzalloc(alloc, GFP_KERNEL); in init_state() 481 if (!state->users) in init_state() 483 state->groups = kzalloc(alloc, GFP_KERNEL); in init_state() 484 if (!state->groups) { in init_state() 485 kfree(state->users); in init_state() 492 free_state(struct posix_acl_state *state) { in free_state() argument 493 kfree(state->users); in free_state() [all …]
|
/linux-4.1.27/drivers/media/pci/cx88/ |
D | cx88-vp3054-i2c.c | 40 static void vp3054_bit_setscl(void *data, int state) in vp3054_bit_setscl() argument 46 if (state) { in vp3054_bit_setscl() 47 vp3054_i2c->state |= 0x0001; /* SCL high */ in vp3054_bit_setscl() 48 vp3054_i2c->state &= ~0x0100; /* external pullup */ in vp3054_bit_setscl() 50 vp3054_i2c->state &= ~0x0001; /* SCL low */ in vp3054_bit_setscl() 51 vp3054_i2c->state |= 0x0100; /* drive pin */ in vp3054_bit_setscl() 53 cx_write(MO_GP0_IO, 0x010000 | vp3054_i2c->state); in vp3054_bit_setscl() 57 static void vp3054_bit_setsda(void *data, int state) in vp3054_bit_setsda() argument 63 if (state) { in vp3054_bit_setsda() 64 vp3054_i2c->state |= 0x0002; /* SDA high */ in vp3054_bit_setsda() [all …]
|
/linux-4.1.27/drivers/tty/serial/ |
D | serial_core.c | 54 static void uart_change_speed(struct tty_struct *tty, struct uart_state *state, 57 static void uart_change_pm(struct uart_state *state, 73 struct uart_state *state = port->state; in uart_write_wakeup() local 78 BUG_ON(!state); in uart_write_wakeup() 79 tty_wakeup(state->port.tty); in uart_write_wakeup() 84 struct uart_state *state = tty->driver_data; in uart_stop() local 85 struct uart_port *port = state->uart_port; in uart_stop() 95 struct uart_state *state = tty->driver_data; in __uart_start() local 96 struct uart_port *port = state->uart_port; in __uart_start() 104 struct uart_state *state = tty->driver_data; in uart_start() local [all …]
|
/linux-4.1.27/drivers/pcmcia/ |
D | sa1111_lubbock.c | 33 const socket_state_t *state) in lubbock_pcmcia_configure_socket() argument 76 switch (state->Vcc) { in lubbock_pcmcia_configure_socket() 90 __func__, state->Vcc); in lubbock_pcmcia_configure_socket() 94 switch (state->Vpp) { in lubbock_pcmcia_configure_socket() 103 if (state->Vpp == state->Vcc) in lubbock_pcmcia_configure_socket() 107 __func__, state->Vpp); in lubbock_pcmcia_configure_socket() 117 switch (state->Vcc) { in lubbock_pcmcia_configure_socket() 131 __func__, state->Vcc); in lubbock_pcmcia_configure_socket() 136 if (state->Vpp != state->Vcc && state->Vpp != 0) { in lubbock_pcmcia_configure_socket() 138 __func__, state->Vpp); in lubbock_pcmcia_configure_socket() [all …]
|
D | pxa2xx_trizeps4.c | 56 struct pcmcia_state *state) in trizeps_pcmcia_socket_state() argument 74 state->bvd1 = (status & ConXS_CFSR_BVD1) ? 1 : 0; in trizeps_pcmcia_socket_state() 75 state->bvd2 = (status & ConXS_CFSR_BVD2) ? 1 : 0; in trizeps_pcmcia_socket_state() 76 state->vs_3v = (status & ConXS_CFSR_VS1) ? 0 : 1; in trizeps_pcmcia_socket_state() 77 state->vs_Xv = (status & ConXS_CFSR_VS2) ? 0 : 1; in trizeps_pcmcia_socket_state() 83 state->detect = 0; in trizeps_pcmcia_socket_state() 84 state->ready = 0; in trizeps_pcmcia_socket_state() 85 state->bvd1 = 0; in trizeps_pcmcia_socket_state() 86 state->bvd2 = 0; in trizeps_pcmcia_socket_state() 87 state->vs_3v = 0; in trizeps_pcmcia_socket_state() [all …]
|
/linux-4.1.27/drivers/pinctrl/qcom/ |
D | pinctrl-spmi-gpio.c | 166 static int pmic_gpio_read(struct pmic_gpio_state *state, in pmic_gpio_read() argument 172 ret = regmap_read(state->map, pad->base + addr, &val); in pmic_gpio_read() 174 dev_err(state->dev, "read 0x%x failed\n", addr); in pmic_gpio_read() 181 static int pmic_gpio_write(struct pmic_gpio_state *state, in pmic_gpio_write() argument 187 ret = regmap_write(state->map, pad->base + addr, val); in pmic_gpio_write() 189 dev_err(state->dev, "write 0x%x failed\n", addr); in pmic_gpio_write() 246 struct pmic_gpio_state *state = pinctrl_dev_get_drvdata(pctldev); in pmic_gpio_set_mux() local 267 ret = pmic_gpio_write(state, pad, PMIC_GPIO_REG_MODE_CTL, val); in pmic_gpio_set_mux() 273 return pmic_gpio_write(state, pad, PMIC_GPIO_REG_EN_CTL, val); in pmic_gpio_set_mux() 340 struct pmic_gpio_state *state = pinctrl_dev_get_drvdata(pctldev); in pmic_gpio_config_set() local [all …]
|
D | pinctrl-spmi-mpp.c | 158 static int pmic_mpp_read(struct pmic_mpp_state *state, in pmic_mpp_read() argument 164 ret = regmap_read(state->map, pad->base + addr, &val); in pmic_mpp_read() 166 dev_err(state->dev, "read 0x%x failed\n", addr); in pmic_mpp_read() 173 static int pmic_mpp_write(struct pmic_mpp_state *state, in pmic_mpp_write() argument 179 ret = regmap_write(state->map, pad->base + addr, val); in pmic_mpp_write() 181 dev_err(state->dev, "write 0x%x failed\n", addr); in pmic_mpp_write() 346 struct pmic_mpp_state *state = pinctrl_dev_get_drvdata(pctldev); in pmic_mpp_set_mux() local 377 ret = pmic_mpp_write(state, pad, PMIC_MPP_REG_MODE_CTL, val); in pmic_mpp_set_mux() 383 return pmic_mpp_write(state, pad, PMIC_MPP_REG_EN_CTL, val); in pmic_mpp_set_mux() 454 struct pmic_mpp_state *state = pinctrl_dev_get_drvdata(pctldev); in pmic_mpp_config_set() local [all …]
|
/linux-4.1.27/drivers/net/ethernet/qualcomm/ |
D | qca_framing.c | 78 switch (handle->state) { in qcafrm_fsm_decode() 82 handle->state--; in qcafrm_fsm_decode() 86 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode() 91 handle->state--; in qcafrm_fsm_decode() 100 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode() 102 handle->state--; in qcafrm_fsm_decode() 109 handle->state = QCAFRM_WAIT_LEN_BYTE1; in qcafrm_fsm_decode() 113 handle->state = QCAFRM_WAIT_RSVD_BYTE1; in qcafrm_fsm_decode() 116 handle->state = QCAFRM_WAIT_RSVD_BYTE2; in qcafrm_fsm_decode() 122 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode() [all …]
|
/linux-4.1.27/arch/x86/crypto/sha-mb/ |
D | sha1_mb_mgr_flush_avx2.S | 65 #define state arg1 macro 113 # JOB* sha1_mb_mgr_flush_avx2(MB_MGR *state) 114 # arg 1 : rcx : state 128 mov _unused_lanes(state), unused_lanes 135 cmpq $0, offset(state) 138 cmpq $0, offset(state) 141 cmpq $0, offset(state) 144 cmpq $0, offset(state) 147 cmpq $0, offset(state) 150 cmpq $0, offset(state) [all …]
|
D | sha1_mb_mgr_submit_avx2.S | 69 #define state arg1 macro 100 # JOB* submit_mb_mgr_submit_avx2(MB_MGR *state, job_sha1 *job) 101 # arg 1 : rcx : state 117 mov _unused_lanes(state), unused_lanes 123 lea _ldata(state, lane_data), lane_data 124 mov unused_lanes, _unused_lanes(state) 131 movl DWORD_len, _lens(state , lane, 4) 136 vmovd %xmm0, _args_digest(state, lane, 4) 137 vpextrd $1, %xmm0, _args_digest+1*32(state , lane, 4) 138 vpextrd $2, %xmm0, _args_digest+2*32(state , lane, 4) [all …]
|
/linux-4.1.27/drivers/pinctrl/ |
D | pinctrl-tb10x.c | 504 static inline void tb10x_pinctrl_set_config(struct tb10x_pinctrl *state, in tb10x_pinctrl_set_config() argument 509 if (state->ports[port].count) in tb10x_pinctrl_set_config() 512 state->ports[port].mode = mode; in tb10x_pinctrl_set_config() 514 pcfg = ioread32(state->base) & ~(PCFG_PORT_MASK(port)); in tb10x_pinctrl_set_config() 516 iowrite32(pcfg, state->base); in tb10x_pinctrl_set_config() 520 struct tb10x_pinctrl *state, in tb10x_pinctrl_get_config() argument 523 return (ioread32(state->base) & PCFG_PORT_MASK(port)) in tb10x_pinctrl_get_config() 529 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_groups_count() local 530 return state->pinfuncgrpcnt; in tb10x_get_groups_count() 535 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_group_name() local [all …]
|
/linux-4.1.27/drivers/leds/trigger/ |
D | ledtrig-transient.c | 32 int state; member 61 unsigned long state; in transient_activate_store() local 64 ret = kstrtoul(buf, 10, &state); in transient_activate_store() 68 if (state != 1 && state != 0) in transient_activate_store() 72 if (state == 0 && transient_data->activate == 1) { in transient_activate_store() 74 transient_data->activate = state; in transient_activate_store() 81 if (state == 1 && transient_data->activate == 0 && in transient_activate_store() 83 transient_data->activate = state; in transient_activate_store() 84 led_set_brightness_async(led_cdev, transient_data->state); in transient_activate_store() 86 (transient_data->state == LED_FULL) ? LED_OFF : LED_FULL; in transient_activate_store() [all …]
|
/linux-4.1.27/fs/nfs/ |
D | nfs4state.c | 637 struct nfs4_state *state; in nfs4_alloc_open_state() local 639 state = kzalloc(sizeof(*state), GFP_NOFS); in nfs4_alloc_open_state() 640 if (!state) in nfs4_alloc_open_state() 642 atomic_set(&state->count, 1); in nfs4_alloc_open_state() 643 INIT_LIST_HEAD(&state->lock_states); in nfs4_alloc_open_state() 644 spin_lock_init(&state->state_lock); in nfs4_alloc_open_state() 645 seqlock_init(&state->seqlock); in nfs4_alloc_open_state() 646 return state; in nfs4_alloc_open_state() 650 nfs4_state_set_mode_locked(struct nfs4_state *state, fmode_t fmode) in nfs4_state_set_mode_locked() argument 652 if (state->state == fmode) in nfs4_state_set_mode_locked() [all …]
|
/linux-4.1.27/drivers/media/pci/cx18/ |
D | cx18-av-core.c | 129 struct cx18_av_state *state = to_cx18_av_state(sd); in cx18_av_initialize() local 265 state->volume->cur.val = state->volume->default_value = default_volume; in cx18_av_initialize() 266 v4l2_ctrl_handler_setup(&state->hdl); in cx18_av_initialize() 277 struct cx18_av_state *state = to_cx18_av_state(sd); in cx18_av_load_fw() local 279 if (!state->is_initialized) { in cx18_av_load_fw() 281 state->is_initialized = 1; in cx18_av_load_fw() 289 struct cx18_av_state *state = &cx->av_state; in cx18_av_std_setup() local 290 struct v4l2_subdev *sd = &state->sd; in cx18_av_std_setup() 291 v4l2_std_id std = state->std; in cx18_av_std_setup() 523 state->slicer_line_delay = 1; in cx18_av_std_setup() [all …]
|
/linux-4.1.27/drivers/char/ipmi/ |
D | ipmi_kcs_sm.c | 127 enum kcs_states state; member 146 kcs->state = KCS_IDLE; in init_kcs_data() 212 kcs->state = KCS_HOSED; in start_error_recovery() 215 kcs->state = KCS_ERROR0; in start_error_recovery() 275 kcs->state = KCS_WAIT_WRITE_START; in restart_kcs_transaction() 291 if ((kcs->state != KCS_IDLE) && (kcs->state != KCS_HOSED)) in start_kcs_transaction() 306 kcs->state = KCS_START_OP; in start_kcs_transaction() 349 unsigned char state; in kcs_event() local 354 printk(KERN_DEBUG "KCS: State = %d, %x\n", kcs->state, status); in kcs_event() 361 state = GET_STATUS_STATE(status); in kcs_event() [all …]
|
/linux-4.1.27/Documentation/leds/ |
D | ledtrig-transient.txt | 6 specifying how long a state to be on, and the second for how long the state 8 in on state, followed by a delay_off value that specifies how long the LED 9 should stay in off state. The on and off cycle repeats until the trigger 11 features that require an on or off state to be held just once and then stay in 12 the original state forever. 15 set a timer to hold a state, however when user space application crashes or 17 state permanently. 32 class device, the LED state does not change. 35 trigger will be called, and LED state is changed to LED_OFF. 37 Driver suspend changes the LED state to LED_OFF and resume doesn't change [all …]
|
/linux-4.1.27/arch/x86/boot/ |
D | cmdline.c | 42 } state = st_wordstart; in __cmdline_find_option() local 51 switch (state) { in __cmdline_find_option() 57 state = st_wordcmp; in __cmdline_find_option() 65 state = st_bufcpy; in __cmdline_find_option() 67 state = st_wordstart; in __cmdline_find_option() 69 state = st_wordskip; in __cmdline_find_option() 75 state = st_wordstart; in __cmdline_find_option() 80 state = st_wordstart; in __cmdline_find_option() 112 } state = st_wordstart; in __cmdline_find_option_bool() local 124 switch (state) { in __cmdline_find_option_bool() [all …]
|
/linux-4.1.27/drivers/block/drbd/ |
D | drbd_proc.c | 64 union drbd_dev_state state, unsigned long *rs_total, in drbd_get_syncer_progress() argument 76 if (state.conn == C_VERIFY_S || state.conn == C_VERIFY_T) in drbd_get_syncer_progress() 114 union drbd_dev_state state) in drbd_syncer_progress() argument 121 drbd_get_syncer_progress(device, state, &rs_total, &rs_left, &res); in drbd_syncer_progress() 133 if (state.conn == C_VERIFY_S || state.conn == C_VERIFY_T) in drbd_syncer_progress() 205 if (state.conn == C_SYNC_TARGET || in drbd_syncer_progress() 206 state.conn == C_VERIFY_S) { in drbd_syncer_progress() 218 if (state.conn == C_VERIFY_S || in drbd_syncer_progress() 219 state.conn == C_VERIFY_T) { in drbd_syncer_progress() 244 union drbd_dev_state state; in drbd_seq_show() local [all …]
|