Home
last modified time | relevance | path

Searched +full:if +full:- +full:mode +full:- +full:en (Results 1 – 25 of 680) sorted by relevance

12345678910>>...28

/Linux-v6.1/drivers/gpu/drm/amd/display/dc/gpio/
Dgpio_service.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
27 * Pre-requisites: headers required by header of this unit
43 * Post-requisites: headers required by this unit
63 if (!service) { in dal_gpio_service_create()
68 if (!dal_hw_translate_init(&service->translate, dce_version, in dal_gpio_service_create()
74 if (!dal_hw_factory_init(&service->factory, dce_version, in dal_gpio_service_create()
83 service->ctx = ctx; in dal_gpio_service_create()
87 service->factory.number_of_pins[index_of_id]; in dal_gpio_service_create()
90 if (number_of_bits) { in dal_gpio_service_create()
91 service->busyness[index_of_id] = in dal_gpio_service_create()
[all …]
Dgpio_base.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
27 * Pre-requisites: headers required by header of this unit
40 * Post-requisites: headers required by this unit
54 enum gpio_mode mode) in dal_gpio_open() argument
56 return dal_gpio_open_ex(gpio, mode); in dal_gpio_open()
61 enum gpio_mode mode) in dal_gpio_open_ex() argument
63 if (gpio->pin) { in dal_gpio_open_ex()
68 // No action if allocation failed during gpio construct in dal_gpio_open_ex()
69 if (!gpio->hw_container.ddc) { in dal_gpio_open_ex()
73 gpio->mode = mode; in dal_gpio_open_ex()
[all …]
Dhw_gpio.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
35 gpio->regs->field_name ## _shift, gpio->regs->field_name ## _mask
38 gpio->base.ctx
40 (gpio->regs->reg)
45 REG_GET(MASK_reg, MASK, &gpio->store.mask); in store_registers()
46 REG_GET(A_reg, A, &gpio->store.a); in store_registers()
47 REG_GET(EN_reg, EN, &gpio->store.en); in store_registers()
48 /* TODO store GPIO_MUX_CONTROL if we ever use it */ in store_registers()
54 REG_UPDATE(MASK_reg, MASK, gpio->store.mask); in restore_registers()
55 REG_UPDATE(A_reg, A, gpio->store.a); in restore_registers()
[all …]
Dhw_ddc.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
39 ddc->shifts->field_name, ddc->masks->field_name
42 ddc->base.base.ctx
44 (ddc->regs->reg)
51 dal_hw_gpio_destruct(&pin->base); in dal_hw_ddc_destruct()
77 hw_gpio = &ddc->base; in set_config()
79 if (hw_gpio == NULL) { in set_config()
89 switch (config_data->config.ddc.type) { in set_config()
91 /* On plug-in, there is a transient level on the pad in set_config()
92 * which must be discharged through the internal pull-down. in set_config()
[all …]
Dhw_hpd.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
38 hpd->shifts->field_name, hpd->masks->field_name
41 hpd->base.base.ctx
43 (hpd->regs->reg)
50 dal_hw_gpio_destruct(&pin->base); in dal_hw_hpd_destruct()
72 /* in Interrupt mode we ask for SENSE bit */ in get_value()
74 if (ptr->mode == GPIO_MODE_INTERRUPT) { in get_value()
94 if (!config_data) in set_config()
98 DC_HPD_CONNECT_INT_DELAY, config_data->config.hpd.delay_on_connect / 10, in set_config()
99 DC_HPD_DISCONNECT_INT_DELAY, config_data->config.hpd.delay_on_disconnect / 10); in set_config()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/iio/frequency/
Dadi,adrf6780.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Antoniu Miclaus <antoniu.miclaus@analog.com>
16 https://www.analog.com/en/products/adrf6780.html
21 - adi,adrf6780
26 spi-max-frequency:
34 clock-names:
36 - const: lo_in
38 clock-output-names:
[all …]
/Linux-v6.1/drivers/net/wireless/mediatek/mt76/mt7915/
Dtestmode.c1 // SPDX-License-Identifier: ISC
40 struct mt7915_dev *dev = phy->dev; in mt7915_tm_set_tx_power()
41 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_power()
42 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7915_tm_set_tx_power()
43 int freq = chandef->center_freq1; in mt7915_tm_set_tx_power()
54 .dbdc_idx = phy != &dev->phy, in mt7915_tm_set_tx_power()
59 if (phy->mt76->test.state != MT76_TM_STATE_OFF) in mt7915_tm_set_tx_power()
60 tx_power = phy->mt76->test.tx_power; in mt7915_tm_set_tx_power()
63 if (tx_power && tx_power[0]) in mt7915_tm_set_tx_power()
66 ret = mt76_mcu_send_msg(&dev->mt76, in mt7915_tm_set_tx_power()
[all …]
/Linux-v6.1/drivers/media/platform/qcom/venus/
Dhfi_cmds.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
16 pkt->hdr.size = sizeof(*pkt); in pkt_sys_init()
17 pkt->hdr.pkt_type = HFI_CMD_SYS_INIT; in pkt_sys_init()
18 pkt->arch_type = arch_type; in pkt_sys_init()
23 pkt->hdr.size = sizeof(*pkt); in pkt_sys_pc_prep()
24 pkt->hdr.pkt_type = HFI_CMD_SYS_PC_PREP; in pkt_sys_pc_prep()
29 struct hfi_enable *hfi = (struct hfi_enable *)&pkt->data[1]; in pkt_sys_idle_indicator()
31 pkt->hdr.size = struct_size(pkt, data, 1) + sizeof(*hfi); in pkt_sys_idle_indicator()
32 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_idle_indicator()
[all …]
/Linux-v6.1/tools/testing/selftests/arm64/mte/
Dmte_common_util.c1 // SPDX-License-Identifier: GPL-2.0
30 unsigned long addr = (unsigned long)si->si_addr; in mte_default_handler()
32 if (signum == SIGSEGV) { in mte_default_handler()
35 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler()
37 if (si->si_code == SEGV_MTEAERR) { in mte_default_handler()
38 if (cur_mte_cxt.trig_si_code == si->si_code) in mte_default_handler()
42 ((ucontext_t *)uc)->uc_mcontext.pc, in mte_default_handler()
47 else if (si->si_code == SEGV_MTESERR) { in mte_default_handler()
48 if (cur_mte_cxt.trig_si_code == si->si_code && in mte_default_handler()
57 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in mte_default_handler()
[all …]
/Linux-v6.1/arch/mips/cavium-octeon/executive/
Dcvmx-helper-rgmii.c7 * Copyright (C) 2003-2018 Cavium, Inc.
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
20 * along with this file; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
34 #include <asm/octeon/cvmx-config.h>
36 #include <asm/octeon/cvmx-pko.h>
37 #include <asm/octeon/cvmx-helper.h>
38 #include <asm/octeon/cvmx-helper-board.h>
40 #include <asm/octeon/cvmx-npi-defs.h>
41 #include <asm/octeon/cvmx-gmxx-defs.h>
[all …]
Dcvmx-helper-sgmii.c7 * Copyright (C) 2003-2018 Cavium, Inc.
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
20 * along with this file; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
35 #include <asm/octeon/cvmx-config.h>
37 #include <asm/octeon/cvmx-helper.h>
38 #include <asm/octeon/cvmx-helper-board.h>
40 #include <asm/octeon/cvmx-gmxx-defs.h>
41 #include <asm/octeon/cvmx-pcsx-defs.h>
42 #include <asm/octeon/cvmx-pcsxx-defs.h>
[all …]
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2014-2015 Hisilicon Limited.
69 #define HNS_DSAF_IS_DEBUG(dev) ((dev)->dsaf_mode == DSAF_MODE_DISABLE_SP)
93 ((DSAF_TOTAL_QUEUE_NUM + DSAF_SERVICE_NW_NUM - 1) / 32 + 1)
136 /* dsaf mode define */
138 DSAF_MODE_INVALID = 0, /**< Invalid dsaf mode */
139 DSAF_MODE_ENABLE_FIX, /**< en DSAF-mode, fixed to queue*/
140 DSAF_MODE_ENABLE_0VM, /**< en DSAF-mode, support 0 VM */
141 DSAF_MODE_ENABLE_8VM, /**< en DSAF-mode, support 8 VM */
142 DSAF_MODE_ENABLE_16VM, /**< en DSAF-mode, support 16 VM */
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/timer/
Dfsl,ftm-timer.txt5 - compatible : should be "fsl,ftm-timer"
6 - reg : Specifies base physical address and size of the register sets for the
8 - interrupts : Should be the clock event device interrupt.
9 - clocks : The clocks provided by the SoC to drive the timer, must contain an
10 entry for each entry in clock-names.
11 - clock-names : Must include the following entries:
12 o "ftm-evt"
13 o "ftm-src"
14 o "ftm-evt-counter-en"
15 o "ftm-src-counter-en"
[all …]
/Linux-v6.1/net/netfilter/ipvs/
Dip_vs_lblc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * IPVS: Locality-Based Least-Connection scheduling module
9 * *lock(tbl->lock) ==> *lock(&tbl->lock)
10 * Wensong Zhang : fixed the uninitialized tbl->lock bug
22 * if cachenode[dest_ip] is null then
23 * n, cachenode[dest_ip] <- {weighted least-conn node};
25 * n <- cachenode[dest_ip];
26 * if (n is dead) OR
29 * n, cachenode[dest_ip] <- {weighted least-conn node};
81 #define IP_VS_LBLC_TAB_MASK (IP_VS_LBLC_TAB_SIZE - 1)
[all …]
Dip_vs_lblcr.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * IPVS: Locality-Based Least-Connection with Replication scheduler
8 * Julian Anastasov : Added the missing (dest->weight>0)
15 * if serverSet[dest_ip] is null then
16 * n, serverSet[dest_ip] <- {weighted least-conn node};
18 * n <- {least-conn (alive) node in serverSet[dest_ip]};
19 * if (n is null) OR
22 * n <- {weighted least-conn node};
24 * if |serverSet[dest_ip]| > 1 AND
25 * now - serverSet[dest_ip].lastMod > T then
[all …]
/Linux-v6.1/drivers/media/dvb-frontends/
Dcxd2099.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2010-2013 Digital Devices GmbH
22 MODULE_PARM_DESC(buffermode, "Enable CXD2099AR buffer mode (default: disabled)");
27 struct dvb_ca_en50221 en; member
37 int mode; member
57 if (ci->lastaddress != adr) in read_block()
58 status = regmap_write(ci->regmap, 0, adr); in read_block()
59 if (!status) { in read_block()
60 ci->lastaddress = adr; in read_block()
65 if (ci->cfg.max_i2c && len > ci->cfg.max_i2c) in read_block()
[all …]
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Ddwmac4_dma.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * This is the driver for the GMAC on-chip Ethernet controller for ST SoCs.
25 if (axi->axi_lpi_en) in dwmac4_dma_axi()
27 if (axi->axi_xit_frm) in dwmac4_dma_axi()
31 value |= (axi->axi_wr_osr_lmt & DMA_AXI_OSR_MAX) << in dwmac4_dma_axi()
35 value |= (axi->axi_rd_osr_lmt & DMA_AXI_OSR_MAX) << in dwmac4_dma_axi()
43 switch (axi->axi_blen[i]) { in dwmac4_dma_axi()
76 u32 rxpbl = dma_cfg->rxpbl ?: dma_cfg->pbl; in dwmac4_dma_init_rx_chan()
82 if (IS_ENABLED(CONFIG_ARCH_DMA_ADDR_T_64BIT) && likely(dma_cfg->eame)) in dwmac4_dma_init_rx_chan()
94 u32 txpbl = dma_cfg->txpbl ?: dma_cfg->pbl; in dwmac4_dma_init_tx_chan()
[all …]
Ddwxgmac2_dma.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
27 if (dma_cfg->aal) in dwxgmac2_dma_init()
30 if (dma_cfg->eame) in dwxgmac2_dma_init()
41 if (dma_cfg->pblx8) in dwxgmac2_dma_init_chan()
52 u32 rxpbl = dma_cfg->rxpbl ?: dma_cfg->pbl; in dwxgmac2_dma_init_rx_chan()
68 u32 txpbl = dma_cfg->txpbl ?: dma_cfg->pbl; in dwxgmac2_dma_init_tx_chan()
86 if (axi->axi_lpi_en) in dwxgmac2_dma_axi()
88 if (axi->axi_xit_frm) in dwxgmac2_dma_axi()
92 value |= (axi->axi_wr_osr_lmt << XGMAC_WR_OSR_LMT_SHIFT) & in dwxgmac2_dma_axi()
96 value |= (axi->axi_rd_osr_lmt << XGMAC_RD_OSR_LMT_SHIFT) & in dwxgmac2_dma_axi()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/sound/
Dcs35l36.txt5 - compatible : "cirrus,cs35l36"
7 - reg : the I2C address of the device for I2C
9 - VA-supply, VP-supply : power supplies for the device,
13 - cirrus,boost-ctl-millivolt : Boost Voltage Value. Configures the boost
18 - cirrus,boost-peak-milliamp : Boost-converter peak current limit in mA.
24 - cirrus,boost-ind-nanohenry : Inductor estimation LBST reference value.
32 - cirrus,multi-amp-mode : Boolean to determine if there are more than
33 one amplifier in the system. If more than one it is best to Hi-Z the ASP
36 - cirrus,boost-ctl-select : Boost conerter control source selection.
39 0x00 - Control Port Value
[all …]
/Linux-v6.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_top.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
16 * @en : enable/disable traffic shaper
17 * @rd_client : true if read client; false if write client
23 bool en; member
31 * struct split_pipe_cfg - pipe configuration for dual display panels
32 * @en : Enable/disable dual pipe configuration
33 * @mode : Panel interface mode
39 bool en; member
40 enum dpu_intf_mode mode; member
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/iio/adc/
Dadi,ad7606.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Michael Hennerich <michael.hennerich@analog.com>
14 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf
15 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf
16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf
21 - adi,ad7605-4
22 - adi,ad7606-8
23 - adi,ad7606-6
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/mfd/
Drohm,bd9576-pmic.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/mfd/rohm,bd9576-pmic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
14 powering the R-Car series processors.
21 - rohm,bd9576
22 - rohm,bd9573
32 rohm,vout1-en-low:
35 controlled by a GPIO. This is dictated by state of vout1-en pin during
[all …]
/Linux-v6.1/drivers/staging/media/deprecated/vpfe_capture/
Disif.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2008-2009 Texas Instruments Inc
34 .en = 0,
41 .en = 0,
45 .en = 0,
48 .en = 0,
146 /* reg_modify() - read, modify and write register */
157 if (!i) in regw_lin_tbl()
176 static void isif_enable(int en) in isif_enable() argument
178 if (!en) { in isif_enable()
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/inc/hw/
Dgpio.h2 * Copyright 2012-16 Advanced Micro Devices, Inc.
42 uint32_t en; member
45 enum gpio_mode mode; member
51 #if 0
57 uint32_t en);
61 uint32_t en);
65 uint32_t en);
69 uint32_t en);
73 uint32_t en);
77 uint32_t en);
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/net/nfc/
Dsamsung,s3fwrn5.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Krzysztof Kozlowski <krzk@kernel.org>
15 - samsung,s3fwrn5-i2c
16 - samsung,s3fwrn82
18 en-gpios:
32 wake-gpios:
35 Output GPIO pin used to enter firmware mode and sleep/wakeup control
37 s3fwrn5,en-gpios:
[all …]

12345678910>>...28