Home
last modified time | relevance | path

Searched +full:- +full:state (Results 1 – 25 of 1178) sorted by relevance

12345678910>>...48

/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_atomic_state_helper.c39 #include <linux/dma-fence.h>
42 * 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.
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/
Ddrm_atomic_state_helper.c41 #include <linux/dma-fence.h>
44 * 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.
[all …]
/kernel/linux/linux-6.6/arch/arc/kernel/
Ddisasm.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
19 * 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()
[all …]
/kernel/linux/linux-5.10/arch/arc/kernel/
Ddisasm.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
19 * 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()
[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/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.c1 // SPDX-License-Identifier: GPL-2.0-only
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()
42 TEST_ASSERT(rv == -1 && errno == expected_errno, 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()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/
Dvmx_set_nested_state_test.c1 // SPDX-License-Identifier: GPL-2.0-only
29 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()
41 TEST_ASSERT(rv == -1 && errno == expected_errno, 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()
[all …]
/kernel/linux/linux-5.10/drivers/media/tuners/
Dmxl5005s.c88 /* Enumeration of Master Control Register State */
201 * MaxLinear source code - Common_MXL.h (?)
254 u8 CAPSELECT; /* 0: disable On-Chip pulling cap; 1: enable */
258 /* 0 - Default; 1 - DVB-T; 2 - ATSC; 3 - QAM; 4 - Analog Cable */
262 /* 0 - Default; 1 - Off; 2 - Type C; 3 - Type C-H */
298 static u16 MXL_GetMasterControl(u8 *MasterReg, int state);
325 /* ----------------------------------------------------------------
334 * Revision: 080314 - original version
339 struct mxl5005s_state *state = fe->tuner_priv; in mxl5005s_SetRfFreqHz() local
354 ByteTable[0] |= state->config->AgcMasterByte; in mxl5005s_SetRfFreqHz()
[all …]
/kernel/linux/linux-6.6/drivers/media/tuners/
Dmxl5005s.c88 /* Enumeration of Master Control Register State */
201 * MaxLinear source code - Common_MXL.h (?)
254 u8 CAPSELECT; /* 0: disable On-Chip pulling cap; 1: enable */
258 /* 0 - Default; 1 - DVB-T; 2 - ATSC; 3 - QAM; 4 - Analog Cable */
262 /* 0 - Default; 1 - Off; 2 - Type C; 3 - Type C-H */
298 static u16 MXL_GetMasterControl(u8 *MasterReg, int state);
325 /* ----------------------------------------------------------------
334 * Revision: 080314 - original version
339 struct mxl5005s_state *state = fe->tuner_priv; in mxl5005s_SetRfFreqHz() local
354 ByteTable[0] |= state->config->AgcMasterByte; in mxl5005s_SetRfFreqHz()
[all …]
/kernel/linux/linux-6.6/lib/zlib_inflate/
Dinflate.c1 /* inflate.c -- zlib decompression
2 * Copyright (C) 1995-2005 Mark Adler
18 /* architecture-specific bits */
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()
40 strm->msg = NULL; in zlib_inflateReset()
41 strm->adler = 1; /* to support ill-conceived Java test suite */ in zlib_inflateReset()
42 state->mode = HEAD; in zlib_inflateReset()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dfifo_monitor.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2010-2015, Intel Corporation.
56 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()
[all …]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dfifo_monitor.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2010-2015, Intel Corporation.
56 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()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/
Ddst.c1 // SPDX-License-Identifier: GPL-2.0-or-later
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()
70 return -EREMOTEIO; in dst_gpio_outb()
80 if ((err = bt878_device_control(state->bt, DST_IG_WRITE, &bits)) < 0) { in dst_gpio_outb()
83 return -EREMOTEIO; in dst_gpio_outb()
89 static int dst_gpio_inb(struct dst_state *state, u8 *result) in dst_gpio_inb() argument
[all …]
/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/
Ddst.c1 // SPDX-License-Identifier: GPL-2.0-or-later
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()
70 return -EREMOTEIO; in dst_gpio_outb()
80 if ((err = bt878_device_control(state->bt, DST_IG_WRITE, &bits)) < 0) { in dst_gpio_outb()
83 return -EREMOTEIO; in dst_gpio_outb()
89 static int dst_gpio_inb(struct dst_state *state, u8 *result) in dst_gpio_inb() argument
[all …]
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Dtda18271c2dd.c1 // SPDX-License-Identifier: GPL-2.0-only
101 static int PowerScan(struct tda_state *state,
109 return (i2c_transfer(adapter, msgs, 1) == 1) ? 0 : -1; in i2c_readn()
119 return -1; in i2c_write()
124 static int WriteRegs(struct tda_state *state, in WriteRegs() argument
133 return -EINVAL; in WriteRegs()
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
[all …]
Ddrxd_hard.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drxd_hard.c: DVB-T Demodulator Micronas DRX3975D-A2,DRX397xD-B1
5 * Copyright (C) 2003-2007 Micronas
21 #define DRX_FW_FILENAME_A2 "drxd-a2-1.1.fw"
22 #define DRX_FW_FILENAME_B1 "drxd-b1-1.1.fw"
194 return -1; in i2c_write()
211 return -1; in i2c_read()
225 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()
[all …]
Ddib0070.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux-DVB Driver for DiBcom's DiB0070 base-band RF Tuner.
5 * Copyright (C) 2005-9 DiBcom (http://www.dibcom.fr/)
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()
[all …]
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/
Dtda18271c2dd.c1 // SPDX-License-Identifier: GPL-2.0-only
101 static int PowerScan(struct tda_state *state,
109 return (i2c_transfer(adapter, msgs, 1) == 1) ? 0 : -1; in i2c_readn()
119 return -1; in i2c_write()
124 static int WriteRegs(struct tda_state *state, in WriteRegs() argument
133 return -EINVAL; in WriteRegs()
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
[all …]
Ddrxd_hard.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drxd_hard.c: DVB-T Demodulator Micronas DRX3975D-A2,DRX397xD-B1
5 * Copyright (C) 2003-2007 Micronas
21 #define DRX_FW_FILENAME_A2 "drxd-a2-1.1.fw"
22 #define DRX_FW_FILENAME_B1 "drxd-b1-1.1.fw"
194 return -1; in i2c_write()
211 return -1; in i2c_read()
225 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()
[all …]
Ddrxk_hard.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drxk_hard: DRX-K DVB-C/T demodulator driver
5 * Copyright (C) 2010-2011 Digital Devices GmbH
25 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);
[all …]
Ddib0070.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux-DVB Driver for DiBcom's DiB0070 base-band RF Tuner.
5 * Copyright (C) 2005-9 DiBcom (http://www.dibcom.fr/)
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()
[all …]
Dstv090x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
52 ((temp_dev->internal->i2c_adap != i2c_adap) || in find_dev()
53 (temp_dev->internal->i2c_addr != i2c_addr))) { in find_dev()
55 temp_dev = temp_dev->next_dev; in find_dev()
65 struct stv090x_dev *del_dev = find_dev(internal->i2c_adap, in remove_dev()
66 internal->i2c_addr); in remove_dev()
70 stv090x_first_dev = del_dev->next_dev; in remove_dev()
72 while (prev_dev->next_dev != del_dev) in remove_dev()
73 prev_dev = prev_dev->next_dev; in remove_dev()
75 prev_dev->next_dev = del_dev->next_dev; in remove_dev()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_drm_plane.c1 // SPDX-License-Identifier: GPL-2.0-only
36 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()
[all …]
/kernel/linux/linux-5.10/lib/zlib_inflate/
Dinflate.c1 /* inflate.c -- zlib decompression
2 * Copyright (C) 1995-2005 Mark Adler
18 /* architecture-specific bits */
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()
40 strm->msg = NULL; in zlib_inflateReset()
41 strm->adler = 1; /* to support ill-conceived Java test suite */ in zlib_inflateReset()
42 state->mode = HEAD; in zlib_inflateReset()
[all …]

12345678910>>...48