Home
last modified time | relevance | path

Searched full:state (Results 1 – 25 of 13269) sorted by relevance

12345678910>>...531

/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_atomic_state_helper.c42 * DOC: atomic state reset and initialization
45 * and correct atomic software state for all connectors, CRTCs and planes
47 * suspend. One way to solve this is to have a hardware state read-out
48 * infrastructure which reconstructs the full software state (e.g. the i915
51 * The simpler solution is to just reset the software state to everything off,
55 * On the upside the precise state tracking of atomic simplifies system suspend
63 * __drm_atomic_helper_crtc_state_reset - reset the CRTC state
64 * @crtc_state: atomic CRTC state, must not be NULL
68 * values. This is useful for drivers that subclass the CRTC state.
79 * __drm_atomic_helper_crtc_reset - reset state on CRTC
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/
Ddrm_atomic_state_helper.c44 * DOC: atomic state reset and initialization
47 * and correct atomic software state for all connectors, CRTCs and planes
49 * suspend. One way to solve this is to have a hardware state read-out
50 * infrastructure which reconstructs the full software state (e.g. the i915
53 * The simpler solution is to just reset the software state to everything off,
57 * On the upside the precise state tracking of atomic simplifies system suspend
65 * __drm_atomic_helper_crtc_state_reset - reset the CRTC state
66 * @crtc_state: atomic CRTC state, must not be NULL
70 * values. This is useful for drivers that subclass the CRTC state.
81 * __drm_atomic_helper_crtc_reset - reset state on CRTC
[all …]
/kernel/linux/linux-6.6/arch/arc/kernel/
Ddisasm.c19 * findings in *state
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()
[all …]
/kernel/linux/linux-5.10/arch/arc/kernel/
Ddisasm.c19 * findings in *state
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()
[all …]
/kernel/linux/linux-5.10/drivers/video/
Dvgastate.c2 * linux/drivers/video/vgastate.c -- VGA state save/restore
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()
[all …]
/kernel/linux/linux-6.6/drivers/video/
Dvgastate.c2 * linux/drivers/video/vgastate.c -- VGA state save/restore
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()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/
Dvmx_set_nested_state_test.c30 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-6.6/tools/testing/selftests/kvm/x86_64/
Dvmx_set_nested_state_test.c29 void test_nested_state(struct kvm_vcpu *vcpu, struct kvm_nested_state *state) in test_nested_state() argument
31 vcpu_nested_state_set(vcpu, state); in test_nested_state()
35 struct kvm_nested_state *state, in test_nested_state_expect_errno() argument
40 rv = __vcpu_nested_state_set(vcpu, state); in test_nested_state_expect_errno()
48 struct kvm_nested_state *state) in test_nested_state_expect_einval() argument
50 test_nested_state_expect_errno(vcpu, state, EINVAL); in test_nested_state_expect_einval()
54 struct kvm_nested_state *state) in test_nested_state_expect_efault() argument
56 test_nested_state_expect_errno(vcpu, state, EFAULT); in test_nested_state_expect_efault()
59 void set_revision_id_for_vmcs12(struct kvm_nested_state *state, in set_revision_id_for_vmcs12() argument
63 memcpy(&state->data, &vmcs12_revision, sizeof(u32)); in set_revision_id_for_vmcs12()
[all …]
/kernel/linux/linux-5.10/drivers/media/tuners/
Dmxl5005s.c88 /* Enumeration of Master Control Register State */
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()
[all …]
/kernel/linux/linux-6.6/drivers/media/tuners/
Dmxl5005s.c88 /* Enumeration of Master Control Register State */
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()
[all …]
/kernel/linux/linux-6.6/lib/zlib_inflate/
Dinflate.c35 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-5.10/arch/loongarch/kernel/
Dunwind_prologue.c12 unsigned long unwind_get_return_address(struct unwind_state *state) in unwind_get_return_address() argument
14 if (unwind_done(state)) in unwind_get_return_address()
17 return state->pc; in unwind_get_return_address()
43 static inline void unwind_state_fixup(struct unwind_state *state) in unwind_state_fixup() argument
48 if (state->pc == ftrace_case) in unwind_state_fixup()
49 state->is_ftrace = true; in unwind_state_fixup()
53 static bool unwind_by_prologue(struct unwind_state *state) in unwind_by_prologue() argument
55 struct stack_info *info = &state->stack_info; in unwind_by_prologue()
61 if (state->sp >= info->end || state->sp < info->begin) in unwind_by_prologue()
64 if (state->is_ftrace) { in unwind_by_prologue()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dfifo_monitor.c56 fifo_channel_state_t *state) in fifo_channel_get_state() argument
59 assert(state); in fifo_channel_get_state()
63 state->src_valid = fifo_monitor_status_valid(ID, in fifo_channel_get_state()
66 state->fifo_accept = fifo_monitor_status_accept(ID, in fifo_channel_get_state()
69 state->fifo_valid = fifo_monitor_status_valid(ID, in fifo_channel_get_state()
72 state->sink_accept = fifo_monitor_status_accept(ID, in fifo_channel_get_state()
77 state->src_valid = fifo_monitor_status_valid(ID, in fifo_channel_get_state()
80 state->fifo_accept = fifo_monitor_status_accept(ID, in fifo_channel_get_state()
83 state->fifo_valid = fifo_monitor_status_valid(ID, in fifo_channel_get_state()
86 state->sink_accept = fifo_monitor_status_accept(ID, in fifo_channel_get_state()
[all …]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dfifo_monitor.c56 fifo_channel_state_t *state) in fifo_channel_get_state() argument
59 assert(state); in fifo_channel_get_state()
63 state->src_valid = fifo_monitor_status_valid(ID, in fifo_channel_get_state()
66 state->fifo_accept = fifo_monitor_status_accept(ID, in fifo_channel_get_state()
69 state->fifo_valid = fifo_monitor_status_valid(ID, in fifo_channel_get_state()
72 state->sink_accept = fifo_monitor_status_accept(ID, in fifo_channel_get_state()
77 state->src_valid = fifo_monitor_status_valid(ID, in fifo_channel_get_state()
80 state->fifo_accept = fifo_monitor_status_accept(ID, in fifo_channel_get_state()
83 state->fifo_valid = fifo_monitor_status_valid(ID, in fifo_channel_get_state()
86 state->sink_accept = fifo_monitor_status_accept(ID, in fifo_channel_get_state()
[all …]
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Dtda18271c2dd.c101 static int PowerScan(struct tda_state *state,
124 static int WriteRegs(struct tda_state *state, in WriteRegs() argument
138 return i2c_write(state->i2c, state->adr, data, nRegs + 1); in WriteRegs()
141 static int WriteReg(struct tda_state *state, u8 SubAddr, u8 Reg) in WriteReg() argument
145 return i2c_write(state->i2c, state->adr, msg, 2); in WriteReg()
148 static int Read(struct tda_state *state, u8 * Regs) in Read() argument
150 return i2c_readn(state->i2c, state->adr, Regs, 16); in Read()
153 static int ReadExtented(struct tda_state *state, u8 * Regs) in ReadExtented() argument
155 return i2c_readn(state->i2c, state->adr, Regs, NUM_REGS); in ReadExtented()
158 static int UpdateRegs(struct tda_state *state, u8 RegFrom, u8 RegTo) in UpdateRegs() argument
[all …]
Ddrxd_hard.c225 static int Read16(struct drxd_state *state, u32 reg, u16 *data, u8 flags) in Read16() argument
227 u8 adr = state->config.demod_address; in Read16()
232 if (i2c_read(state->i2c, adr, mm1, 4, mm2, 2) < 0) in Read16()
239 static int Read32(struct drxd_state *state, u32 reg, u32 *data, u8 flags) in Read32() argument
241 u8 adr = state->config.demod_address; in Read32()
247 if (i2c_read(state->i2c, adr, mm1, 4, mm2, 4) < 0) in Read32()
255 static int Write16(struct drxd_state *state, u32 reg, u16 data, u8 flags) in Write16() argument
257 u8 adr = state->config.demod_address; in Write16()
263 if (i2c_write(state->i2c, adr, mm, 6) < 0) in Write16()
268 static int Write32(struct drxd_state *state, u32 reg, u32 data, u8 flags) in Write32() argument
[all …]
Dstv090x.c683 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-6.6/drivers/media/dvb-frontends/
Dtda18271c2dd.c101 static int PowerScan(struct tda_state *state,
124 static int WriteRegs(struct tda_state *state, in WriteRegs() argument
138 return i2c_write(state->i2c, state->adr, data, nRegs + 1); in WriteRegs()
141 static int WriteReg(struct tda_state *state, u8 SubAddr, u8 Reg) in WriteReg() argument
145 return i2c_write(state->i2c, state->adr, msg, 2); in WriteReg()
148 static int Read(struct tda_state *state, u8 * Regs) in Read() argument
150 return i2c_readn(state->i2c, state->adr, Regs, 16); in Read()
153 static int ReadExtented(struct tda_state *state, u8 * Regs) in ReadExtented() argument
155 return i2c_readn(state->i2c, state->adr, Regs, NUM_REGS); in ReadExtented()
158 static int UpdateRegs(struct tda_state *state, u8 RegFrom, u8 RegTo) in UpdateRegs() argument
[all …]
Ddrxd_hard.c225 static int Read16(struct drxd_state *state, u32 reg, u16 *data, u8 flags) in Read16() argument
227 u8 adr = state->config.demod_address; in Read16()
232 if (i2c_read(state->i2c, adr, mm1, 4, mm2, 2) < 0) in Read16()
239 static int Read32(struct drxd_state *state, u32 reg, u32 *data, u8 flags) in Read32() argument
241 u8 adr = state->config.demod_address; in Read32()
247 if (i2c_read(state->i2c, adr, mm1, 4, mm2, 4) < 0) in Read32()
255 static int Write16(struct drxd_state *state, u32 reg, u16 data, u8 flags) in Write16() argument
257 u8 adr = state->config.demod_address; in Write16()
263 if (i2c_write(state->i2c, adr, mm, 6) < 0) in Write16()
268 static int Write32(struct drxd_state *state, u32 reg, u32 data, u8 flags) in Write32() argument
[all …]
Ddrxk_hard.c25 static int power_down_dvbt(struct drxk_state *state, bool set_power_mode);
26 static int power_down_qam(struct drxk_state *state);
27 static int set_dvbt_standard(struct drxk_state *state,
29 static int set_qam_standard(struct drxk_state *state,
31 static int set_qam(struct drxk_state *state, u16 intermediate_freqk_hz,
33 static int set_dvbt_standard(struct drxk_state *state,
35 static int dvbt_start(struct drxk_state *state);
36 static int set_dvbt(struct drxk_state *state, u16 intermediate_freqk_hz,
38 static int get_qam_lock_status(struct drxk_state *state, u32 *p_lock_status);
39 static int get_dvbt_lock_status(struct drxk_state *state, u32 *p_lock_status);
[all …]
Dstv090x.c683 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-6.6/drivers/media/pci/bt8xx/
Ddst.c45 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
106 dprintk(2, "Resetting state machine\n"); in rdc_reset_state()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/
Ddst.c45 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
106 dprintk(2, "Resetting state machine\n"); in rdc_reset_state()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_drm_plane.c36 struct mtk_plane_state *state; in mtk_plane_reset() local
38 if (plane->state) { in mtk_plane_reset()
39 __drm_atomic_helper_plane_destroy_state(plane->state); in mtk_plane_reset()
41 state = to_mtk_plane_state(plane->state); in mtk_plane_reset()
42 memset(state, 0, sizeof(*state)); in mtk_plane_reset()
44 state = kzalloc(sizeof(*state), GFP_KERNEL); in mtk_plane_reset()
45 if (!state) in mtk_plane_reset()
47 plane->state = &state->base; in mtk_plane_reset()
50 state->base.plane = plane; in mtk_plane_reset()
51 state->pending.format = DRM_FORMAT_RGB565; in mtk_plane_reset()
[all …]
/kernel/linux/linux-5.10/lib/zlib_inflate/
Dinflate.c35 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 …]

12345678910>>...531