Home
last modified time | relevance | path

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

12345678910>>...42

/linux/lib/
H A 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 …]
/linux/drivers/media/dvb-frontends/
H A 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 …]
H A 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 …]
H A 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 …]
H A Ds5h1420.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Copyright (C) 2005-8 Patrick Boettcher <pb@linuxtv.org>
44 /* FIXME: ugly workaround for flexcop's incapable i2c-controller
45 * it does not support repeated-start, workaround: write addr-1
51 static u32 s5h1420_getsymbolrate(struct s5h1420_state* state);
65 static u8 s5h1420_readreg(struct s5h1420_state *state, u8 reg) in s5h1420_readreg() argument
70 { .addr = state->config->demod_address, .flags = 0, .buf = b, .len = 2 }, in s5h1420_readreg()
71 { .addr = state->config->demod_address, .flags = 0, .buf = &reg, .len = 1 }, in s5h1420_readreg()
72 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b, .len = 1 }, in s5h1420_readreg()
75 b[0] = (reg - 1) & 0xff; in s5h1420_readreg()
[all …]
H A Dmxl5xx.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2014-2015 Ralph Metzler <rjkm@metzlerbros.de>
10 * Copyright (c) 2011-2013 MaxLinear, Inc. All rights reserved
126 return (i2c_transfer(adap, &msg, 1) == 1) ? 0 : -1; in i2c_write()
135 return (i2c_transfer(adap, &msg, 1) == 1) ? 0 : -1; in i2c_read()
138 static int i2cread(struct mxl *state, u8 *data, int len) in i2cread() argument
140 return i2c_read(state->base->i2c, state->base->adr, data, len); in i2cread()
143 static int i2cwrite(struct mxl *state, u8 *data, int len) in i2cwrite() argument
145 return i2c_write(state->base->i2c, state->base->adr, data, len); in i2cwrite()
148 static int read_register_unlocked(struct mxl *state, u32 reg, u32 *val) in read_register_unlocked() argument
[all …]
H A Dlgdt330x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Support for LGDT3302 and LGDT3303 - VSB/QAM
12 * DViCO FusionHDTV 3 Gold-Q
13 * DViCO FusionHDTV 3 Gold-T
42 #define dprintk(state, fmt, arg...) do { \ argument
44 dev_printk(KERN_DEBUG, &state->client->dev, fmt, ##arg);\
65 static int i2c_write_demod_bytes(struct lgdt330x_state *state, in i2c_write_demod_bytes() argument
72 for (i = 0; i < len - 1; i += 2) { in i2c_write_demod_bytes()
73 err = i2c_master_send(state->client, buf, 2); in i2c_write_demod_bytes()
75 dev_warn(&state->client->dev, in i2c_write_demod_bytes()
[all …]
H A Dlgdt3305.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Support for LG Electronics LGDT3304 and LGDT3305 - VSB/QAM
18 MODULE_PARM_DESC(debug, "set debug level (info=1, reg=2 (or-able))");
54 /* ------------------------------------------------------------------------ */
101 static int lgdt3305_write_reg(struct lgdt3305_state *state, u16 reg, u8 val) in lgdt3305_write_reg() argument
106 .addr = state->cfg->i2c_addr, .flags = 0, in lgdt3305_write_reg()
112 ret = i2c_transfer(state->i2c_adap, &msg, 1); in lgdt3305_write_reg()
115 lg_err("error (addr %02x %02x <- %02x, err = %i)\n", in lgdt3305_write_reg()
120 return -EREMOTEIO; in lgdt3305_write_reg()
125 static int lgdt3305_read_reg(struct lgdt3305_state *state, u16 reg, u8 *val) in lgdt3305_read_reg() argument
[all …]
H A Dstv0367.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Driver for ST STV0367 DVB-T & DVB-C demodulator IC.
39 /* DVB-C */
44 enum stv0367_cab_signal_type state; member
58 /* DVB-T */
59 enum stv0367_ter_signal_type state; member
84 /* DVB-C */
86 /* DVB-T */
98 /* RF Level (for RF AGC->AGC1) Lookup Table, depends on the board and tuner.*/
110 /* RF Level (for IF AGC->AGC2) Lookup Table, depends on the board and tuner.*/
[all …]
H A Dtc90522.c1 // SPDX-License-Identifier: GPL-2.0
46 reg_write(struct tc90522_state *state, const struct reg_val *regs, int num) in reg_write() argument
52 msg.addr = state->i2c_client->addr; in reg_write()
57 ret = i2c_transfer(state->i2c_client->adapter, &msg, 1); in reg_write()
59 ret = -EIO; in reg_write()
66 static int reg_read(struct tc90522_state *state, u8 reg, u8 *val, u8 len) in reg_read() argument
70 .addr = state->i2c_client->addr, in reg_read()
76 .addr = state->i2c_client->addr, in reg_read()
84 ret = i2c_transfer(state->i2c_client->adapter, msgs, ARRAY_SIZE(msgs)); in reg_read()
88 ret = -EIO; in reg_read()
[all …]
/linux/block/partitions/
H A 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 …]
H A 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 …]
/linux/drivers/target/iscsi/
H A 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 …]
/linux/Documentation/admin-guide/pm/
H A 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 …]
/linux/kernel/
H A 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 …]
/linux/drivers/gpu/drm/
H A Ddrm_atomic.c4 * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
59 * drm_crtc_commit_wait - Waits for a commit to complete
76 ret = wait_for_completion_timeout(&commit->hw_done, timeout); in drm_crtc_commit_wait()
78 drm_err(commit->crtc->dev, "hw_done timed out\n"); in drm_crtc_commit_wait()
79 return -ETIMEDOUT; in drm_crtc_commit_wait()
86 ret = wait_for_completion_timeout(&commit->flip_done, timeout); in drm_crtc_commit_wait()
88 drm_err(commit->crtc->dev, "flip_done timed out\n"); in drm_crtc_commit_wait()
89 return -ETIMEDOUT; in drm_crtc_commit_wait()
97 * drm_atomic_state_default_release -
99 * @state: atomic state
[all …]
/linux/drivers/media/pci/ddbridge/
H A 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 …]
/linux/arch/mips/kernel/
H A 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>
22 #include <asm/smp-cps.h>
26 * cps_nc_entry_fn - type of a generated non-coherent state entry function
28 * @nc_ready_count: pointer to a non-coherent mapping of the core ready_count
30 * The code entering & exiting non-coherent states is generated at runtime
33 * core-specific code particularly for cache routines. If coupled_coherence
34 * is non-zero and this is the entry function for the CPS_PM_NC_WAIT state,
[all …]
/linux/net/bridge/
H A 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 …]
H A Dbr_mrp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 static int br_mrp_process(struct net_bridge_port *p, struct sk_buff *skb);
42 list_for_each_entry(port, &br->port_list, list) { in br_mrp_get_port()
43 if (port->dev->ifindex == ifindex) { in br_mrp_get_port()
57 hlist_for_each_entry_rcu(mrp, &br->mrp_list, list, in br_mrp_find_id()
59 if (mrp->ring_id == ring_id) { in br_mrp_find_id()
73 hlist_for_each_entry_rcu(mrp, &br->mrp_list, list, in br_mrp_find_in_id()
75 if (mrp->in_id == in_id) { in br_mrp_find_in_id()
88 hlist_for_each_entry_rcu(mrp, &br->mrp_list, list, in br_mrp_unique_ifindex()
90 struct net_bridge_port *p; in br_mrp_unique_ifindex() local
[all …]
H A Dbr_mst.c1 // SPDX-License-Identifier: GPL-2.0-or-later
34 return -EINVAL; in br_mst_get_info()
38 return -EINVAL; in br_mst_get_info()
42 list_for_each_entry(v, &vg->vlan_list, vlist) { in br_mst_get_info()
43 if (v->msti == msti) in br_mst_get_info()
44 __set_bit(v->vi in br_mst_get_info()
51 br_mst_get_state(const struct net_device * dev,u16 msti,u8 * state) br_mst_get_state() argument
53 const struct net_bridge_port *p = NULL; br_mst_get_state() local
76 br_mst_vlan_set_state(struct net_bridge_port * p,struct net_bridge_vlan * v,u8 state) br_mst_vlan_set_state() argument
77 br_mst_vlan_set_state(struct net_bridge_port * p,struct net_bridge_vlan * v,u8 state) br_mst_vlan_set_state() argument
90 br_mst_set_state(struct net_bridge_port * p,u16 msti,u8 state,struct netlink_ext_ack * extack) br_mst_set_state() argument
164 struct net_bridge_port *p; br_mst_vlan_set_msti() local
207 struct net_bridge_port *p; br_mst_set_enabled() local
299 br_mst_process_one(struct net_bridge_port * p,const struct nlattr * attr,struct netlink_ext_ack * extack) br_mst_process_one() argument
305 u8 state; br_mst_process_one() local
329 br_mst_process(struct net_bridge_port * p,const struct nlattr * mst_attr,struct netlink_ext_ack * extack) br_mst_process() argument
[all...]
/linux/drivers/media/pci/cx23885/
H A Dcx23888-ir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include "cx23888-ir.h"
16 #include <media/v4l2-device.h>
17 #include <media/rc-core.h>
174 d--; in count_to_clock_divider()
306 count--; in pulse_clocks_to_clock_divider()
384 if (*carrier_range_high > DIV_ROUND_CLOSEST(c16, 16 - 3)) { in control_rx_s_carrier_window()
386 *carrier_range_high = DIV_ROUND_CLOSEST(c16, 16 - 4); in control_rx_s_carrier_window()
389 *carrier_range_high = DIV_ROUND_CLOSEST(c16, 16 - 3); in control_rx_s_carrier_window()
464 n--; in cduty_tx_s_duty_cycle()
[all …]
/linux/drivers/media/pci/cx18/
H A Dcx18-av-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Derived from cx25840-core.c
11 #include "cx18-driver.h"
12 #include "cx18-io.h"
13 #include "cx18-cards.h"
106 /* xtal * 0xe.2913d68/0x16 = 48000 * 384: 406 MHz pre post-div*/ in cx18_av_init()
115 struct cx18_av_state *state = to_cx18_av_state(sd); in cx18_av_initialize() local
127 /* enable sleep mode - register appears to be read only... */ in cx18_av_initialize()
167 * Disable Video Auto-config of the Analog Front End and Video PLL. in cx18_av_initialize()
171 * 0x102 (CXADEC_CHIP_CTRL), 0x104-0x106 (CXADEC_AFE_CTRL), in cx18_av_initialize()
[all …]
/linux/drivers/usb/cdns3/
H A Dcdns3-gadget.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2018-2019 Cadence.
6 * Copyright (C) 2017-2018 NXP
15 #include <linux/dma-direction.h>
18 * USBSS-DEV register interface.
23 * struct cdns3_usb_regs - device controller registers.
53 * @buf_addr: Address for On-chip Buffer operations.
54 * @buf_data: Data for On-chip Buffer operations.
55 * @buf_ctrl: On-chip Buffer Access Control.
123 /* USB_CONF - bitmasks */
[all …]
/linux/net/lapb/
H A Dlapb_in.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * 2000-10-29 Henner Eisen lapb_data_indication() return status.
36 * State machine for state 0, Disconnected State.
42 switch (frame->type) { in lapb_state0_machine()
44 lapb_dbg(1, "(%p) S0 RX SABM(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine()
45 if (lapb->mode & LAPB_EXTENDED) { in lapb_state0_machine()
46 lapb_dbg(1, "(%p) S0 TX DM(%d)\n", in lapb_state0_machine()
47 lapb->dev, frame->pf); in lapb_state0_machine()
48 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine()
51 lapb_dbg(1, "(%p) S0 TX UA(%d)\n", in lapb_state0_machine()
[all …]

12345678910>>...42