Searched refs:polarity (Results 76 - 100 of 202) sorted by relevance

123456789

/linux-master/arch/x86/include/asm/
H A Dacpi.h47 int trigger, int polarity);
H A Dio_apic.h155 int node, int trigger, int polarity);
/linux-master/drivers/pwm/
H A Dpwm-clps711x.c48 if (state->polarity != PWM_POLARITY_NORMAL)
H A Dpwm-clk.c74 if (state->polarity == PWM_POLARITY_INVERSED)
H A Dpwm-ntxec.c15 * - The hardware can only generate normal polarity output.
89 if (state->polarity != PWM_POLARITY_NORMAL)
H A Dpwm-sun4i.c133 state->polarity = PWM_POLARITY_NORMAL;
148 state->polarity = PWM_POLARITY_NORMAL;
150 state->polarity = PWM_POLARITY_INVERSED;
288 if (state->polarity != PWM_POLARITY_NORMAL)
H A Dpwm-cros-ec.c146 if (state->polarity != PWM_POLARITY_NORMAL)
179 state->polarity = PWM_POLARITY_NORMAL;
H A Dpwm-xilinx.c103 if (state->polarity != PWM_POLARITY_NORMAL)
181 state->polarity = PWM_POLARITY_NORMAL;
261 * The polarity of the Generate Out signals must be active high for PWM
H A Dpwm-sprd.c114 state->polarity = PWM_POLARITY_NORMAL;
171 if (state->polarity != PWM_POLARITY_NORMAL)
H A Dpwm-iqs620a.c75 if (state->polarity != PWM_POLARITY_NORMAL)
134 state->polarity = PWM_POLARITY_NORMAL;
H A Dpwm-keembay.c114 state->polarity = PWM_POLARITY_NORMAL;
129 if (state->polarity != PWM_POLARITY_NORMAL)
H A Dpwm-intel-lgm.c7 * - Supports normal polarity. Does not support changing polarity.
70 /* The hardware only supports normal polarity and fixed period. */
71 if (state->polarity != PWM_POLARITY_NORMAL || state->period < pc->period)
96 state->polarity = PWM_POLARITY_NORMAL;
H A Dpwm-samsung.c412 enum pwm_polarity polarity)
415 bool invert = (polarity == PWM_POLARITY_NORMAL);
428 if (state->polarity != pwm->state.polarity) {
434 err = pwm_samsung_set_polarity(chip, pwm, state->polarity);
410 pwm_samsung_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument
/linux-master/drivers/usb/typec/tcpm/
H A Dtcpci.c74 enum typec_cc_polarity polarity = TYPEC_POLARITY_CC1; local
89 polarity = TYPEC_POLARITY_CC2;
127 if (polarity == TYPEC_POLARITY_CC2) {
144 enum typec_cc_polarity polarity)
164 return regmap_update_bits(tcpci->regmap, TCPC_ROLE_CTRL, polarity == TYPEC_POLARITY_CC1 ?
245 enum typec_cc_polarity polarity)
272 if (polarity == TYPEC_POLARITY_CC2) {
291 if (polarity == TYPEC_POLARITY_CC2)
300 (polarity == TYPEC_POLARITY_CC2) ?
143 tcpci_apply_rc(struct tcpc_dev *tcpc, enum typec_cc_status cc, enum typec_cc_polarity polarity) argument
244 tcpci_set_polarity(struct tcpc_dev *tcpc, enum typec_cc_polarity polarity) argument
/linux-master/arch/arm/mach-at91/
H A Dpm.c126 int (*config_shdwc_ws)(void __iomem *shdwc, u32 *mode, u32 *polarity);
127 int (*config_pmc_ws)(void __iomem *pmc, u32 mode, u32 polarity);
242 unsigned int mode = 0, polarity = 0, val = 0; local
256 soc_pm.config_shdwc_ws(soc_pm.data.shdwc, &mode, &polarity);
276 polarity |= wsi->pmc_fsmr_bit;
285 soc_pm.config_pmc_ws(soc_pm.data.pmc, mode, polarity);
294 u32 *polarity)
301 *polarity |= ((val >> 16) & 0x3ff);
306 static int at91_sama5d2_config_pmc_ws(void __iomem *pmc, u32 mode, u32 polarity) argument
309 writel(polarity, pm
293 at91_sama5d2_config_shdwc_ws(void __iomem *shdwc, u32 *mode, u32 *polarity) argument
314 at91_sam9x60_config_pmc_ws(void __iomem *pmc, u32 mode, u32 polarity) argument
[all...]
/linux-master/drivers/infiniband/hw/irdma/
H A Duda.c69 FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_WQEVALID, cqp->polarity) |
157 FIELD_PREP(IRDMA_UDA_CQPSQ_MG_WQEVALID, cqp->polarity) |
/linux-master/sound/soc/samsung/
H A Dspeyside.c123 int polarity)
125 speyside_jack_polarity = !polarity;
122 speyside_set_polarity(struct snd_soc_component *component, int polarity) argument
/linux-master/drivers/iio/adc/
H A Dpalmas_gpadc.c1021 int polarity; local
1028 polarity = 0;
1032 polarity = PALMAS_GPADC_THRES_CONV0_MSB_THRES_CONV0_POL;
1048 ((thres >> 8) & 0xF) | polarity);
1058 int polarity; local
1065 polarity = 0;
1069 polarity = PALMAS_GPADC_THRES_CONV1_MSB_THRES_CONV1_POL;
1085 ((thres >> 8) & 0xF) | polarity);
/linux-master/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7110.c776 u32 irq_type, edge_both, polarity; local
783 polarity = mask; /* 1: rising edge */
788 polarity = 0; /* 0: falling edge */
793 polarity = 0; /* 0: ignored */
798 polarity = mask; /* 1: high level */
803 polarity = 0; /* 0: low level */
821 polarity |= readl_relaxed(base + irq_reg->iev_reg_base) & ~mask;
822 writel_relaxed(polarity, base + irq_reg->iev_reg_base);
/linux-master/drivers/extcon/
H A Dextcon-usbc-tusb320.c255 int state, polarity; local
258 polarity = !!(reg & TUSB320_REG9_CABLE_DIRECTION);
260 dev_dbg(priv->dev, "attached state: %s, polarity: %d\n",
261 tusb_attached_states[state], polarity);
269 (union extcon_property_value)polarity);
272 (union extcon_property_value)polarity);
569 * State and polarity might change after a reset, so update
/linux-master/drivers/gpio/
H A Dgpio-rtd.c38 * @dp_offset: Offset for GPIO detection polarity registers
479 bool polarity; local
486 polarity = 1;
490 polarity = 0;
494 polarity = 1;
503 if (polarity)
H A Dgpio-dwapb.c318 unsigned long level, polarity, flags; local
322 polarity = dwapb_read(gpio, GPIO_INT_POLARITY);
331 polarity |= BIT(bit);
335 polarity &= ~BIT(bit);
339 polarity |= BIT(bit);
343 polarity &= ~BIT(bit);
354 dwapb_write(gpio, GPIO_INT_POLARITY, polarity);
H A Dgpio-pl061.c155 bool polarity = trigger & IRQ_TYPE_LEVEL_HIGH; local
161 /* Select polarity */
162 if (polarity)
169 polarity ? "HIGH" : "LOW");
/linux-master/drivers/hwmon/
H A Daspeed-g6-pwm-tach.c155 bool polarity, pin_en, clk_en; local
160 polarity = FIELD_GET(PWM_ASPEED_CTRL_INVERSE, val);
183 state->polarity = polarity ? PWM_POLARITY_INVERSED : PWM_POLARITY_NORMAL;
262 FIELD_PREP(PWM_ASPEED_CTRL_INVERSE, state->polarity);
/linux-master/drivers/gpu/drm/panel/
H A Dpanel-sitronix-st7789v.c377 u8 mode, pixel_fmt, polarity; local
400 polarity = 0;
402 polarity |= ST7789V_RGBCTRL_VSYNC_HIGH;
404 polarity |= ST7789V_RGBCTRL_HSYNC_HIGH;
406 polarity |= ST7789V_RGBCTRL_PCLK_FALLING;
408 polarity |= ST7789V_RGBCTRL_DE_LOW;
564 polarity));

Completed in 597 milliseconds

123456789