Home
last modified time | relevance | path

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

12345678910>>...49

/kernel/linux/linux-5.10/lib/
Dxxhash.c2 * xxHash - Extremely Fast Hash algorithm
3 * Copyright (C) 2012-2016, Yann Collet.
5 * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
32 * Free Software Foundation. This program is dual-licensed; you may select
37 * - xxHash homepage: https://cyan4973.github.io/xxHash/
38 * - xxHash source repository: https://github.com/Cyan4973/xxHash
49 /*-*************************************
52 #define xxh_rotl32(x, r) ((x << r) | (x >> (32 - r)))
53 #define xxh_rotl64(x, r) ((x << r) | (x >> (64 - r)))
61 /*-*************************************
[all …]
/kernel/linux/linux-6.6/lib/
Dxxhash.c2 * xxHash - Extremely Fast Hash algorithm
3 * Copyright (C) 2012-2016, Yann Collet.
5 * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
32 * Free Software Foundation. This program is dual-licensed; you may select
37 * - xxHash homepage: https://cyan4973.github.io/xxHash/
38 * - xxHash source repository: https://github.com/Cyan4973/xxHash
49 /*-*************************************
52 #define xxh_rotl32(x, r) ((x << r) | (x >> (32 - r)))
53 #define xxh_rotl64(x, r) ((x << r) | (x >> (64 - r)))
61 /*-*************************************
[all …]
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/
Dl64781.c1 // SPDX-License-Identifier: GPL-2.0-or-later
40 static int l64781_writereg (struct l64781_state* state, u8 reg, u8 data) in l64781_writereg() argument
44 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in l64781_writereg()
46 if ((ret = i2c_transfer(state->i2c, &msg, 1)) != 1) in l64781_writereg()
50 return (ret != 1) ? -1 : 0; in l64781_writereg()
53 static int l64781_readreg (struct l64781_state* state, u8 reg) in l64781_readreg() argument
58 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in l64781_readreg()
59 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in l64781_readreg()
61 ret = i2c_transfer(state->i2c, msg, 2); in l64781_readreg()
68 static void apply_tps (struct l64781_state* state) in apply_tps() argument
[all …]
Dcx22700.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 Copyright (C) 2001-2002 Convergence Integrated Media GmbH
58 static int cx22700_writereg (struct cx22700_state* state, u8 reg, u8 data) in cx22700_writereg() argument
62 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in cx22700_writereg()
66 ret = i2c_transfer (state->i2c, &msg, 1); in cx22700_writereg()
72 return (ret != 1) ? -1 : 0; in cx22700_writereg()
75 static int cx22700_readreg (struct cx22700_state* state, u8 reg) in cx22700_readreg() argument
80 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in cx22700_readreg()
81 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in cx22700_readreg()
85 ret = i2c_transfer (state->i2c, msg, 2); in cx22700_readreg()
[all …]
Dcx22702.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 Copyright (C) 2001-2002 Convergence Integrated Media GmbH
73 static int cx22702_writereg(struct cx22702_state *state, u8 reg, u8 data) in cx22702_writereg() argument
78 .addr = state->config->demod_address, .flags = 0, in cx22702_writereg()
81 ret = i2c_transfer(state->i2c, &msg, 1); in cx22702_writereg()
87 return -1; in cx22702_writereg()
93 static u8 cx22702_readreg(struct cx22702_state *state, u8 reg) in cx22702_readreg() argument
99 { .addr = state->config->demod_address, .flags = 0, in cx22702_readreg()
101 { .addr = state->config->demod_address, .flags = I2C_M_RD, in cx22702_readreg()
104 ret = i2c_transfer(state->i2c, msg, 2); in cx22702_readreg()
[all …]
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Dl64781.c1 // SPDX-License-Identifier: GPL-2.0-or-later
40 static int l64781_writereg (struct l64781_state* state, u8 reg, u8 data) in l64781_writereg() argument
44 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in l64781_writereg()
46 if ((ret = i2c_transfer(state->i2c, &msg, 1)) != 1) in l64781_writereg()
50 return (ret != 1) ? -1 : 0; in l64781_writereg()
53 static int l64781_readreg (struct l64781_state* state, u8 reg) in l64781_readreg() argument
58 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in l64781_readreg()
59 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in l64781_readreg()
61 ret = i2c_transfer(state->i2c, msg, 2); in l64781_readreg()
68 static void apply_tps (struct l64781_state* state) in apply_tps() argument
[all …]
Dcx22700.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 Copyright (C) 2001-2002 Convergence Integrated Media GmbH
58 static int cx22700_writereg (struct cx22700_state* state, u8 reg, u8 data) in cx22700_writereg() argument
62 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in cx22700_writereg()
66 ret = i2c_transfer (state->i2c, &msg, 1); in cx22700_writereg()
72 return (ret != 1) ? -1 : 0; in cx22700_writereg()
75 static int cx22700_readreg (struct cx22700_state* state, u8 reg) in cx22700_readreg() argument
80 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in cx22700_readreg()
81 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; in cx22700_readreg()
85 ret = i2c_transfer (state->i2c, msg, 2); in cx22700_readreg()
[all …]
Dcx22702.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 Copyright (C) 2001-2002 Convergence Integrated Media GmbH
73 static int cx22702_writereg(struct cx22702_state *state, u8 reg, u8 data) in cx22702_writereg() argument
78 .addr = state->config->demod_address, .flags = 0, in cx22702_writereg()
81 ret = i2c_transfer(state->i2c, &msg, 1); in cx22702_writereg()
87 return -1; in cx22702_writereg()
93 static u8 cx22702_readreg(struct cx22702_state *state, u8 reg) in cx22702_readreg() argument
99 { .addr = state->config->demod_address, .flags = 0, in cx22702_readreg()
101 { .addr = state->config->demod_address, .flags = I2C_M_RD, in cx22702_readreg()
104 ret = i2c_transfer(state->i2c, msg, 2); in cx22702_readreg()
[all …]
/kernel/linux/linux-6.6/kernel/
Dfreezer.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * kernel/freezer.c - Function to freeze a process
30 * freezing_slow_path - slow path for testing whether a task needs to be frozen
31 * @p: task to be tested
34 * and tests whether @p needs to enter and stay in frozen state. Can be
36 * target tasks see the updated state.
38 bool freezing_slow_path(struct task_struct *p) in freezing_slow_path() argument
40 if (p->flags & (PF_NOFREEZE | PF_SUSPEND_TASK)) in freezing_slow_path()
43 if (test_tsk_thread_flag(p, TIF_MEMDIE)) in freezing_slow_path()
46 if (pm_nosig_freezing || cgroup_freezing(p)) in freezing_slow_path()
[all …]
/kernel/linux/linux-6.6/block/partitions/
Dmsdos.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 1991-1998 Linus Torvalds
9 * in the early extended-partition checks and added DM partitions
16 * More flexible handling of extended partitions - aeb, 950831
20 * Re-organised Feb 1998 Russell King
41 static inline sector_t nr_sects(struct msdos_partition *p) in nr_sects() argument
43 return (sector_t)get_unaligned_le32(&p->nr_sects); in nr_sects()
46 static inline sector_t start_sect(struct msdos_partition *p) in start_sect() argument
48 return (sector_t)get_unaligned_le32(&p->start_sect); in start_sect()
51 static inline int is_extended_partition(struct msdos_partition *p) in is_extended_partition() argument
[all …]
Daix.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2012-2013 Philippe De Muyter <phdm@macqel.be>
71 * @state
76 * Description: Reads @count bytes from @state->disk into @buffer.
79 static size_t read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer, in read_lba() argument
84 if (!buffer || lba + count / 512 > get_capacity(state->disk) - 1ULL) in read_lba()
90 unsigned char *data = read_part_sector(state, lba++, &sect); in read_lba()
99 count -= copied; in read_lba()
106 * @state
113 static struct pvd *alloc_pvd(struct parsed_partitions *state, u32 lba) in alloc_pvd() argument
[all …]
/kernel/linux/linux-5.10/block/partitions/
Dmsdos.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 1991-1998 Linus Torvalds
9 * in the early extended-partition checks and added DM partitions
16 * More flexible handling of extended partitions - aeb, 950831
20 * Re-organised Feb 1998 Russell King
41 static inline sector_t nr_sects(struct msdos_partition *p) in nr_sects() argument
43 return (sector_t)get_unaligned_le32(&p->nr_sects); in nr_sects()
46 static inline sector_t start_sect(struct msdos_partition *p) in start_sect() argument
48 return (sector_t)get_unaligned_le32(&p->start_sect); in start_sect()
51 static inline int is_extended_partition(struct msdos_partition *p) in is_extended_partition() argument
[all …]
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 1991-1998 Linus Torvalds
4 * Re-organised Feb 1998 Russell King
90 struct parsed_partitions *state; in allocate_partitions() local
93 state = kzalloc(sizeof(*state), GFP_KERNEL); in allocate_partitions()
94 if (!state) in allocate_partitions()
98 state->parts = vzalloc(array_size(nr, sizeof(state->parts[0]))); in allocate_partitions()
99 if (!state->parts) { in allocate_partitions()
100 kfree(state); in allocate_partitions()
104 state->limit = nr; in allocate_partitions()
[all …]
Daix.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2012-2013 Philippe De Muyter <phdm@macqel.be>
74 * This is stored (by sd and ide-geometry) in
80 if (!bdev || !bdev->bd_inode) in last_lba()
82 return (bdev->bd_inode->i_size >> 9) - 1ULL; in last_lba()
87 * @state
92 * Description: Reads @count bytes from @state->bdev into @buffer.
95 static size_t read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer, in read_lba() argument
100 if (!buffer || lba + count / 512 > last_lba(state->bdev)) in read_lba()
106 unsigned char *data = read_part_sector(state, lba++, &sect); in read_lba()
[all …]
/kernel/linux/linux-6.6/drivers/target/iscsi/
Discsi_target_parameters.h1 /* SPDX-License-Identifier: GPL-2.0 */
24 u32 state; member
98 * Parameter names of iSCSI Extentions for RDMA (iSER). See RFC-5046
131 * Match outgoing MXDSL default to incoming Open-iSCSI default
149 * Initial values for iSER parameters following RFC-5046 Section 6
167 * struct iscsi_param->use
173 #define IS_USE_LEADING_ONLY(p) ((p)->use & USE_LEADING_ONLY) argument
174 #define IS_USE_INITIAL_ONLY(p) ((p)->use & USE_INITIAL_ONLY) argument
175 #define IS_USE_ALL(p) ((p)->use & USE_ALL) argument
177 #define SET_USE_INITIAL_ONLY(p) ((p)->use |= USE_INITIAL_ONLY) argument
[all …]
/kernel/linux/linux-5.10/drivers/target/iscsi/
Discsi_target_parameters.h1 /* SPDX-License-Identifier: GPL-2.0 */
24 u32 state; member
98 * Parameter names of iSCSI Extentions for RDMA (iSER). See RFC-5046
131 * Match outgoing MXDSL default to incoming Open-iSCSI default
149 * Initial values for iSER parameters following RFC-5046 Section 6
167 * struct iscsi_param->use
173 #define IS_USE_LEADING_ONLY(p) ((p)->use & USE_LEADING_ONLY) argument
174 #define IS_USE_INITIAL_ONLY(p) ((p)->use & USE_INITIAL_ONLY) argument
175 #define IS_USE_ALL(p) ((p)->use & USE_ALL) argument
177 #define SET_USE_INITIAL_ONLY(p) ((p)->use |= USE_INITIAL_ONLY) argument
[all …]
/kernel/linux/linux-6.6/Documentation/admin-guide/pm/
Dintel_pstate.rst1 .. SPDX-License-Identifier: GPL-2.0
22 Documentation/admin-guide/pm/cpufreq.rst if you have not done that yet.]
24 For the processors supported by ``intel_pstate``, the P-state concept is broader
27 information about that). For this reason, the representation of P-states used
32 ``intel_pstate`` maps its internal representation of P-states to frequencies too
38 Since the hardware P-state selection interface used by ``intel_pstate`` is
43 time the corresponding CPU is taken offline and need to be re-initialized when
47 only way to pass early-configuration-time parameters to it is via the kernel
66 -----------
69 hardware-managed P-states (HWP) support. If it works in this mode, the
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/pm/
Dintel_pstate.rst1 .. SPDX-License-Identifier: GPL-2.0
24 For the processors supported by ``intel_pstate``, the P-state concept is broader
27 information about that). For this reason, the representation of P-states used
32 ``intel_pstate`` maps its internal representation of P-states to frequencies too
38 Since the hardware P-state selection interface used by ``intel_pstate`` is
43 time the corresponding CPU is taken offline and need to be re-initialized when
47 only way to pass early-configuration-time parameters to it is via the kernel
66 -----------
69 hardware-managed P-states (HWP) support. If it works in this mode, the
74 provides its own scaling algorithms for P-state selection. Those algorithms
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/ddbridge/
Dddbridge-sx8.c1 // SPDX-License-Identifier: GPL-2.0
3 * ddbridge-sx8.c: Digital Devices MAX SX8 driver
20 #include "ddbridge-io.h"
21 #include "ddbridge-mci.h"
57 struct sx8 *state = fe->demodulator_priv; in release() local
58 struct mci_base *mci_base = state->mci.base; in release()
60 mci_base->count--; in release()
61 if (mci_base->count == 0) { in release()
62 list_del(&mci_base->mci_list); in release()
65 kfree(state); in release()
[all …]
/kernel/linux/linux-6.6/drivers/media/pci/ddbridge/
Dddbridge-sx8.c1 // SPDX-License-Identifier: GPL-2.0
3 * ddbridge-sx8.c: Digital Devices MAX SX8 driver
11 #include "ddbridge-io.h"
12 #include "ddbridge-mci.h"
48 struct sx8 *state = fe->demodulator_priv; in release() local
49 struct mci_base *mci_base = state->mci.base; in release()
51 mci_base->count--; in release()
52 if (mci_base->count == 0) { in release()
53 list_del(&mci_base->mci_list); in release()
56 kfree(state); in release()
[all …]
/kernel/linux/linux-5.10/arch/mips/kernel/
Dpm-cps.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 #include <asm/asm-offsets.h>
17 #include <asm/mips-cps.h>
20 #include <asm/pm-cps.h>
21 #include <asm/smp-cps.h>
25 * cps_nc_entry_fn - type of a generated non-coherent state entry function
27 * @nc_ready_count: pointer to a non-coherent mapping of the core ready_count
29 * The code entering & exiting non-coherent states is generated at runtime
32 * core-specific code particularly for cache routines. If coupled_coherence
33 * is non-zero and this is the entry function for the CPS_PM_NC_WAIT state,
[all …]
/kernel/linux/linux-6.6/arch/mips/kernel/
Dpm-cps.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 #include <asm/asm-offsets.h>
17 #include <asm/mips-cps.h>
20 #include <asm/pm-cps.h>
21 #include <asm/smp-cps.h>
25 * cps_nc_entry_fn - type of a generated non-coherent state entry function
27 * @nc_ready_count: pointer to a non-coherent mapping of the core ready_count
29 * The code entering & exiting non-coherent states is generated at runtime
32 * core-specific code particularly for cache routines. If coupled_coherence
33 * is non-zero and this is the entry function for the CPS_PM_NC_WAIT state,
[all …]
/kernel/linux/linux-6.6/net/bridge/
Dbr_stp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
29 void br_set_state(struct net_bridge_port *p, unsigned int state) in br_set_state() argument
32 .orig_dev = p->dev, in br_set_state()
35 .u.stp_state = state, in br_set_state()
39 /* Don't change the state of the ports if they are driven by a different in br_set_state()
42 if (p->flags & BR_MRP_AWARE) in br_set_state()
45 p->state = state; in br_set_state()
46 if (br_opt_get(p->br, BROPT_MST_ENABLED)) { in br_set_state()
47 err = br_mst_set_state(p, 0, state, NULL); in br_set_state()
49 br_warn(p->br, "error setting MST state on port %u(%s)\n", in br_set_state()
[all …]
/kernel/linux/linux-5.10/net/bridge/
Dbr_mrp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
35 list_for_each_entry(port, &br->port_list, list) { in br_mrp_get_port()
36 if (port->dev->ifindex == ifindex) { in br_mrp_get_port()
50 list_for_each_entry_rcu(mrp, &br->mrp_list, list, in br_mrp_find_id()
52 if (mrp->ring_id == ring_id) { in br_mrp_find_id()
66 list_for_each_entry_rcu(mrp, &br->mrp_list, list, in br_mrp_find_in_id()
68 if (mrp->in_id == in_id) { in br_mrp_find_in_id()
81 list_for_each_entry_rcu(mrp, &br->mrp_list, list, in br_mrp_unique_ifindex()
83 struct net_bridge_port *p; in br_mrp_unique_ifindex() local
85 p = rtnl_dereference(mrp->p_port); in br_mrp_unique_ifindex()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/
Ddrm_atomic.c4 * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
59 * drm_crtc_commit_wait - Waits for a commit to complete
77 ret = wait_for_completion_timeout(&commit->hw_done, timeout); in drm_crtc_commit_wait()
79 drm_err(commit->crtc->dev, "hw_done timed out\n"); in drm_crtc_commit_wait()
80 return -ETIMEDOUT; in drm_crtc_commit_wait()
87 ret = wait_for_completion_timeout(&commit->flip_done, timeout); in drm_crtc_commit_wait()
89 drm_err(commit->crtc->dev, "flip_done timed out\n"); in drm_crtc_commit_wait()
90 return -ETIMEDOUT; in drm_crtc_commit_wait()
98 * drm_atomic_state_default_release -
100 * @state: atomic state
[all …]

12345678910>>...49