/kernel/linux/linux-5.10/arch/arc/kernel/ |
D | disasm.c | 21 void __kprobes disasm_instr(unsigned long addr, struct disasm_state *state, in disasm_instr() argument 32 memset(state, 0, sizeof(struct disasm_state)); in disasm_instr() 48 state->major_opcode = (word1 >> 11) & 0x1F; in disasm_instr() 51 if (state->major_opcode < 0x0B) { in disasm_instr() 54 state->instr_len = 4; in disasm_instr() 56 state->words[0] = (word1 << 16) | word0; in disasm_instr() 58 state->instr_len = 2; in disasm_instr() 59 state->words[0] = word1; in disasm_instr() 63 word1 = *((uint16_t *)(addr + state->instr_len)); in disasm_instr() 64 word0 = *((uint16_t *)(addr + state->instr_len + 2)); in disasm_instr() [all …]
|
/kernel/linux/linux-4.19/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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/ |
D | vmx_set_nested_state_test.c | 30 void test_nested_state(struct kvm_vm *vm, struct kvm_nested_state *state) in test_nested_state() argument 32 vcpu_nested_state_set(vm, VCPU_ID, state, false); in test_nested_state() 36 struct kvm_nested_state *state, in test_nested_state_expect_errno() argument 41 rv = vcpu_nested_state_set(vm, VCPU_ID, state, true); in test_nested_state_expect_errno() 49 struct kvm_nested_state *state) in test_nested_state_expect_einval() argument 51 test_nested_state_expect_errno(vm, state, EINVAL); in test_nested_state_expect_einval() 55 struct kvm_nested_state *state) in test_nested_state_expect_efault() argument 57 test_nested_state_expect_errno(vm, state, EFAULT); in test_nested_state_expect_efault() 60 void set_revision_id_for_vmcs12(struct kvm_nested_state *state, in set_revision_id_for_vmcs12() argument 64 memcpy(&state->data, &vmcs12_revision, sizeof(u32)); in set_revision_id_for_vmcs12() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-4.19/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 …]
|
/kernel/linux/linux-4.19/drivers/media/dvb-frontends/ |
D | stv0910.c | 140 static int write_reg(struct stv *state, u16 reg, u8 val) in write_reg() argument 142 struct i2c_adapter *adap = state->base->i2c; in write_reg() 144 struct i2c_msg msg = {.addr = state->base->adr, .flags = 0, in write_reg() 149 state->base->adr, reg, val); in write_reg() 172 static int read_reg(struct stv *state, u16 reg, u8 *val) in read_reg() argument 174 return i2c_read_regs16(state->base->i2c, state->base->adr, in read_reg() 178 static int read_regs(struct stv *state, u16 reg, u8 *val, int len) in read_regs() argument 180 return i2c_read_regs16(state->base->i2c, state->base->adr, in read_regs() 184 static int write_shared_reg(struct stv *state, u16 reg, u8 mask, u8 val) in write_shared_reg() argument 189 mutex_lock(&state->base->reg_lock); in write_shared_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() 745 ret = i2c_transfer(state->i2c, &i2c_msg, 1); in stv090x_write_regs() 756 static int stv090x_write_reg(struct stv090x_state *state, unsigned int reg, u8 data) in stv090x_write_reg() argument 760 return stv090x_write_regs(state, reg, &tmp, 1); in stv090x_write_reg() 763 static int stv090x_i2c_gate_ctrl(struct stv090x_state *state, int enable) in stv090x_i2c_gate_ctrl() argument [all …]
|
D | dib0090.c | 212 static u16 dib0090_read_reg(struct dib0090_state *state, u8 reg) in dib0090_read_reg() argument 216 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib0090_read_reg() 221 state->i2c_write_buffer[0] = reg; in dib0090_read_reg() 223 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib0090_read_reg() 224 state->msg[0].addr = state->config->i2c_address; in dib0090_read_reg() 225 state->msg[0].flags = 0; in dib0090_read_reg() 226 state->msg[0].buf = state->i2c_write_buffer; in dib0090_read_reg() 227 state->msg[0].len = 1; in dib0090_read_reg() 228 state->msg[1].addr = state->config->i2c_address; in dib0090_read_reg() 229 state->msg[1].flags = I2C_M_RD; in dib0090_read_reg() [all …]
|
D | dib8000.c | 174 static u16 __dib8000_read_word(struct dib8000_state *state, u16 reg) in __dib8000_read_word() argument 178 state->i2c_write_buffer[0] = reg >> 8; in __dib8000_read_word() 179 state->i2c_write_buffer[1] = reg & 0xff; in __dib8000_read_word() 181 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in __dib8000_read_word() 182 state->msg[0].addr = state->i2c.addr >> 1; in __dib8000_read_word() 183 state->msg[0].flags = 0; in __dib8000_read_word() 184 state->msg[0].buf = state->i2c_write_buffer; in __dib8000_read_word() 185 state->msg[0].len = 2; in __dib8000_read_word() 186 state->msg[1].addr = state->i2c.addr >> 1; in __dib8000_read_word() 187 state->msg[1].flags = I2C_M_RD; in __dib8000_read_word() [all …]
|
D | dib0070.c | 81 static u16 dib0070_read_reg(struct dib0070_state *state, u8 reg) in dib0070_read_reg() argument 85 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib0070_read_reg() 90 state->i2c_write_buffer[0] = reg; in dib0070_read_reg() 92 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib0070_read_reg() 93 state->msg[0].addr = state->cfg->i2c_address; in dib0070_read_reg() 94 state->msg[0].flags = 0; in dib0070_read_reg() 95 state->msg[0].buf = state->i2c_write_buffer; in dib0070_read_reg() 96 state->msg[0].len = 1; in dib0070_read_reg() 97 state->msg[1].addr = state->cfg->i2c_address; in dib0070_read_reg() 98 state->msg[1].flags = I2C_M_RD; in dib0070_read_reg() [all …]
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
D | stv0910.c | 141 static int write_reg(struct stv *state, u16 reg, u8 val) in write_reg() argument 143 struct i2c_adapter *adap = state->base->i2c; in write_reg() 145 struct i2c_msg msg = {.addr = state->base->adr, .flags = 0, in write_reg() 150 state->base->adr, reg, val); in write_reg() 173 static int read_reg(struct stv *state, u16 reg, u8 *val) in read_reg() argument 175 return i2c_read_regs16(state->base->i2c, state->base->adr, in read_reg() 179 static int read_regs(struct stv *state, u16 reg, u8 *val, int len) in read_regs() argument 181 return i2c_read_regs16(state->base->i2c, state->base->adr, in read_regs() 185 static int write_shared_reg(struct stv *state, u16 reg, u8 mask, u8 val) in write_shared_reg() argument 190 mutex_lock(&state->base->reg_lock); in write_shared_reg() [all …]
|
D | dib0090.c | 200 static u16 dib0090_read_reg(struct dib0090_state *state, u8 reg) in dib0090_read_reg() argument 204 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib0090_read_reg() 209 state->i2c_write_buffer[0] = reg; in dib0090_read_reg() 211 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib0090_read_reg() 212 state->msg[0].addr = state->config->i2c_address; in dib0090_read_reg() 213 state->msg[0].flags = 0; in dib0090_read_reg() 214 state->msg[0].buf = state->i2c_write_buffer; in dib0090_read_reg() 215 state->msg[0].len = 1; in dib0090_read_reg() 216 state->msg[1].addr = state->config->i2c_address; in dib0090_read_reg() 217 state->msg[1].flags = I2C_M_RD; in dib0090_read_reg() [all …]
|
D | dib0070.c | 69 static u16 dib0070_read_reg(struct dib0070_state *state, u8 reg) in dib0070_read_reg() argument 73 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib0070_read_reg() 78 state->i2c_write_buffer[0] = reg; in dib0070_read_reg() 80 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib0070_read_reg() 81 state->msg[0].addr = state->cfg->i2c_address; in dib0070_read_reg() 82 state->msg[0].flags = 0; in dib0070_read_reg() 83 state->msg[0].buf = state->i2c_write_buffer; in dib0070_read_reg() 84 state->msg[0].len = 1; in dib0070_read_reg() 85 state->msg[1].addr = state->cfg->i2c_address; in dib0070_read_reg() 86 state->msg[1].flags = I2C_M_RD; in dib0070_read_reg() [all …]
|
D | dib8000.c | 171 static u16 __dib8000_read_word(struct dib8000_state *state, u16 reg) in __dib8000_read_word() argument 175 state->i2c_write_buffer[0] = reg >> 8; in __dib8000_read_word() 176 state->i2c_write_buffer[1] = reg & 0xff; in __dib8000_read_word() 178 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in __dib8000_read_word() 179 state->msg[0].addr = state->i2c.addr >> 1; in __dib8000_read_word() 180 state->msg[0].flags = 0; in __dib8000_read_word() 181 state->msg[0].buf = state->i2c_write_buffer; in __dib8000_read_word() 182 state->msg[0].len = 2; in __dib8000_read_word() 183 state->msg[1].addr = state->i2c.addr >> 1; in __dib8000_read_word() 184 state->msg[1].flags = I2C_M_RD; in __dib8000_read_word() [all …]
|
D | stv090x.c | 683 static int stv090x_read_reg(struct stv090x_state *state, unsigned int reg) in stv090x_read_reg() argument 685 const struct stv090x_config *config = state->config; in stv090x_read_reg() 696 ret = i2c_transfer(state->i2c, msg, 2); in stv090x_read_reg() 705 if (unlikely(*state->verbose >= FE_DEBUGREG)) in stv090x_read_reg() 712 static int stv090x_write_regs(struct stv090x_state *state, unsigned int reg, u8 *data, u32 count) in stv090x_write_regs() argument 714 const struct stv090x_config *config = state->config; in stv090x_write_regs() 733 ret = i2c_transfer(state->i2c, &i2c_msg, 1); in stv090x_write_regs() 744 static int stv090x_write_reg(struct stv090x_state *state, unsigned int reg, u8 data) in stv090x_write_reg() argument 748 return stv090x_write_regs(state, reg, &tmp, 1); in stv090x_write_reg() 751 static int stv090x_i2c_gate_ctrl(struct stv090x_state *state, int enable) in stv090x_i2c_gate_ctrl() argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_atomic_state_helper.c | 100 crtc->state = crtc_state; in __drm_atomic_helper_crtc_reset() 114 kzalloc(sizeof(*crtc->state), GFP_KERNEL); in drm_atomic_helper_crtc_reset() 116 if (crtc->state) in drm_atomic_helper_crtc_reset() 117 crtc->funcs->atomic_destroy_state(crtc, crtc->state); in drm_atomic_helper_crtc_reset() 132 struct drm_crtc_state *state) in __drm_atomic_helper_crtc_duplicate_state() argument 134 memcpy(state, crtc->state, sizeof(*state)); in __drm_atomic_helper_crtc_duplicate_state() 136 if (state->mode_blob) in __drm_atomic_helper_crtc_duplicate_state() 137 drm_property_blob_get(state->mode_blob); in __drm_atomic_helper_crtc_duplicate_state() 138 if (state->degamma_lut) in __drm_atomic_helper_crtc_duplicate_state() 139 drm_property_blob_get(state->degamma_lut); in __drm_atomic_helper_crtc_duplicate_state() [all …]
|
/kernel/linux/linux-5.10/lib/zlib_inflate/ |
D | inflate.c | 35 struct inflate_state *state; in zlib_inflateReset() local 37 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; in zlib_inflateReset() 38 state = (struct inflate_state *)strm->state; in zlib_inflateReset() 39 strm->total_in = strm->total_out = state->total = 0; in zlib_inflateReset() 42 state->mode = HEAD; in zlib_inflateReset() 43 state->last = 0; in zlib_inflateReset() 44 state->havedict = 0; in zlib_inflateReset() 45 state->dmax = 32768U; in zlib_inflateReset() 46 state->hold = 0; in zlib_inflateReset() 47 state->bits = 0; in zlib_inflateReset() [all …]
|
/kernel/linux/linux-4.19/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 …]
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | unwind_frame.c | 14 unsigned long unwind_get_return_address(struct unwind_state *state) in unwind_get_return_address() argument 16 if (unwind_done(state)) in unwind_get_return_address() 19 return __kernel_text_address(state->ip) ? state->ip : 0; in unwind_get_return_address() 23 unsigned long *unwind_get_return_address_ptr(struct unwind_state *state) in unwind_get_return_address_ptr() argument 25 if (unwind_done(state)) in unwind_get_return_address_ptr() 28 return state->regs ? &state->regs->ip : state->bp + 1; in unwind_get_return_address_ptr() 31 static void unwind_dump(struct unwind_state *state) in unwind_dump() argument 45 state->stack_info.type, state->stack_info.next_sp, in unwind_dump() 46 state->stack_mask, state->graph_idx); in unwind_dump() 48 for (sp = PTR_ALIGN(state->orig_sp, sizeof(long)); sp; in unwind_dump() [all …]
|
/kernel/linux/linux-4.19/arch/x86/kernel/ |
D | unwind_frame.c | 13 unsigned long unwind_get_return_address(struct unwind_state *state) in unwind_get_return_address() argument 15 if (unwind_done(state)) in unwind_get_return_address() 18 return __kernel_text_address(state->ip) ? state->ip : 0; in unwind_get_return_address() 22 unsigned long *unwind_get_return_address_ptr(struct unwind_state *state) in unwind_get_return_address_ptr() argument 24 if (unwind_done(state)) in unwind_get_return_address_ptr() 27 return state->regs ? &state->regs->ip : state->bp + 1; in unwind_get_return_address_ptr() 30 static void unwind_dump(struct unwind_state *state) in unwind_dump() argument 44 state->stack_info.type, state->stack_info.next_sp, in unwind_dump() 45 state->stack_mask, state->graph_idx); in unwind_dump() 47 for (sp = PTR_ALIGN(state->orig_sp, sizeof(long)); sp; in unwind_dump() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/ |
D | dst.c | 45 static int dst_command(struct dst_state *state, u8 *data, u8 len); 47 static void dst_packsize(struct dst_state *state, int psize) in dst_packsize() argument 52 bt878_device_control(state->bt, DST_IG_TS, &bits); in dst_packsize() 55 static int dst_gpio_outb(struct dst_state *state, u32 mask, u32 enbb, in dst_gpio_outb() argument 67 if ((err = bt878_device_control(state->bt, DST_IG_ENABLE, &enb)) < 0) { in dst_gpio_outb() 80 if ((err = bt878_device_control(state->bt, DST_IG_WRITE, &bits)) < 0) { in dst_gpio_outb() 89 static int dst_gpio_inb(struct dst_state *state, u8 *result) in dst_gpio_inb() argument 95 if ((err = bt878_device_control(state->bt, DST_IG_READ, &rd_packet)) < 0) { in dst_gpio_inb() 104 int rdc_reset_state(struct dst_state *state) in rdc_reset_state() argument 107 if (dst_gpio_outb(state, RDC_8820_INT, RDC_8820_INT, 0, NO_DELAY) < 0) { in rdc_reset_state() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-4.19/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 …]
|
/kernel/linux/linux-4.19/drivers/media/pci/bt8xx/ |
D | dst.c | 57 static int dst_command(struct dst_state *state, u8 *data, u8 len); 59 static void dst_packsize(struct dst_state *state, int psize) in dst_packsize() argument 64 bt878_device_control(state->bt, DST_IG_TS, &bits); in dst_packsize() 67 static int dst_gpio_outb(struct dst_state *state, u32 mask, u32 enbb, in dst_gpio_outb() argument 79 if ((err = bt878_device_control(state->bt, DST_IG_ENABLE, &enb)) < 0) { in dst_gpio_outb() 92 if ((err = bt878_device_control(state->bt, DST_IG_WRITE, &bits)) < 0) { in dst_gpio_outb() 101 static int dst_gpio_inb(struct dst_state *state, u8 *result) in dst_gpio_inb() argument 107 if ((err = bt878_device_control(state->bt, DST_IG_READ, &rd_packet)) < 0) { in dst_gpio_inb() 116 int rdc_reset_state(struct dst_state *state) in rdc_reset_state() argument 119 if (dst_gpio_outb(state, RDC_8820_INT, RDC_8820_INT, 0, NO_DELAY) < 0) { in rdc_reset_state() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ppp/ |
D | ppp_mppe.c | 131 static void get_new_key_from_sha(struct ppp_mppe_state * state) in get_new_key_from_sha() argument 133 crypto_shash_init(state->sha1); in get_new_key_from_sha() 134 crypto_shash_update(state->sha1, state->master_key, in get_new_key_from_sha() 135 state->keylen); in get_new_key_from_sha() 136 crypto_shash_update(state->sha1, sha_pad->sha_pad1, in get_new_key_from_sha() 138 crypto_shash_update(state->sha1, state->session_key, in get_new_key_from_sha() 139 state->keylen); in get_new_key_from_sha() 140 crypto_shash_update(state->sha1, sha_pad->sha_pad2, in get_new_key_from_sha() 142 crypto_shash_final(state->sha1, state->sha1_digest); in get_new_key_from_sha() 149 static void mppe_rekey(struct ppp_mppe_state * state, int initial_key) in mppe_rekey() argument [all …]
|