/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 | 73 static int reg_write(struct qm1d1c0042_state *state, u8 reg, u8 val) in reg_write() argument 78 ret = i2c_master_send(state->i2c, wbuf, sizeof(wbuf)); in reg_write() 84 static int reg_read(struct qm1d1c0042_state *state, u8 reg, u8 *val) in reg_read() argument 88 .addr = state->i2c->addr, in reg_read() 94 .addr = state->i2c->addr, in reg_read() 102 ret = i2c_transfer(state->i2c->adapter, msgs, ARRAY_SIZE(msgs)); in reg_read() 109 static int qm1d1c0042_set_srch_mode(struct qm1d1c0042_state *state, bool fast) in qm1d1c0042_set_srch_mode() argument 112 state->regs[0x03] |= 0x01; /* set fast search mode */ in qm1d1c0042_set_srch_mode() 114 state->regs[0x03] &= ~0x01 & 0xff; in qm1d1c0042_set_srch_mode() 116 return reg_write(state, 0x03, state->regs[0x03]); in qm1d1c0042_set_srch_mode() [all …]
|
/drivers/staging/android/fiq_debugger/ |
D | fiq_debugger.c | 135 void fiq_debugger_enable_wakeup_irq(struct fiq_debugger_state *state) {} in fiq_debugger_enable_wakeup_irq() argument 137 void fiq_debugger_disable_wakeup_irq(struct fiq_debugger_state *state) {} in fiq_debugger_disable_wakeup_irq() argument 140 void fiq_debugger_enable_wakeup_irq(struct fiq_debugger_state *state) in fiq_debugger_enable_wakeup_irq() argument 142 if (state->wakeup_irq < 0) in fiq_debugger_enable_wakeup_irq() 144 enable_irq(state->wakeup_irq); in fiq_debugger_enable_wakeup_irq() 145 if (!state->wakeup_irq_no_set_wake) in fiq_debugger_enable_wakeup_irq() 146 enable_irq_wake(state->wakeup_irq); in fiq_debugger_enable_wakeup_irq() 149 void fiq_debugger_disable_wakeup_irq(struct fiq_debugger_state *state) in fiq_debugger_disable_wakeup_irq() argument 151 if (state->wakeup_irq < 0) in fiq_debugger_disable_wakeup_irq() 153 disable_irq_nosync(state->wakeup_irq); in fiq_debugger_disable_wakeup_irq() [all …]
|
/drivers/media/dvb-frontends/ |
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 766 return stv090x_write_regs(state, reg, &tmp, 1); in stv090x_write_reg() [all …]
|
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 | 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 | 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 | 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 | 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 | 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 | 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, in cx24110_set_inversion() argument 153 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x1); in cx24110_set_inversion() 155 cx24110_writereg(state,0x5,cx24110_readreg(state,0x5)&0xf7); in cx24110_set_inversion() [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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 int 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 …]
|
/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 …]
|
/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 …]
|
/drivers/net/ppp/ |
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 …]
|
D | ppp_mppe.c | 137 static void get_new_key_from_sha(struct ppp_mppe_state * state) in get_new_key_from_sha() argument 139 AHASH_REQUEST_ON_STACK(req, state->sha1); in get_new_key_from_sha() 145 nbytes = setup_sg(&sg[0], state->master_key, state->keylen); in get_new_key_from_sha() 148 nbytes += setup_sg(&sg[2], state->session_key, state->keylen); in get_new_key_from_sha() 152 ahash_request_set_tfm(req, state->sha1); in get_new_key_from_sha() 154 ahash_request_set_crypt(req, sg, state->sha1_digest, nbytes); in get_new_key_from_sha() 164 static void mppe_rekey(struct ppp_mppe_state * state, int initial_key) in mppe_rekey() argument 167 SKCIPHER_REQUEST_ON_STACK(req, state->arc4); in mppe_rekey() 169 skcipher_request_set_tfm(req, state->arc4); in mppe_rekey() 172 get_new_key_from_sha(state); in mppe_rekey() [all …]
|