Searched refs:polarity (Results 101 - 125 of 201) sorted by relevance

123456789

/linux-master/drivers/infiniband/hw/irdma/
H A Dpuda.c225 u8 polarity; local
230 if (valid_bit != cq_uk->polarity)
243 polarity = (u8)FIELD_GET(IRDMA_CQ_VALID, qword7);
245 polarity ^= 1;
246 if (polarity != cq_uk->polarity)
254 cq_uk->polarity = !cq_uk->polarity;
411 cq_uk->polarity = !cq_uk->polarity;
[all...]
H A Duser.h279 u32 num_sges, u8 polarity);
359 u8 polarity; member in struct:irdma_cq_uk
/linux-master/arch/arm/xen/
H A Denlighten.c285 int interrupt, trigger, polarity; local
299 polarity = ((a.value >> 8) & 0x2) ? ACPI_ACTIVE_LOW
301 xen_events_irq = acpi_register_gsi(NULL, interrupt, trigger, polarity);
/linux-master/arch/arm/plat-orion/
H A Dgpio.c337 * the polarity to catch the next line transaction.
348 * polarity LEVEL mask
377 * Configure interrupt polarity.
393 * set initial polarity based on current input level
427 /* Swap polarity (race with GPIO line) */
428 u32 polarity; local
430 polarity = readl(GPIO_IN_POL(ochip));
431 polarity ^= 1 << i;
432 writel(polarity, GPIO_IN_POL(ochip));
/linux-master/arch/x86/platform/uv/
H A Duv_irq.c40 entry->polarity = 0;
/linux-master/drivers/pwm/
H A Dpwm-pxa.c109 if (state->polarity != PWM_POLARITY_NORMAL)
H A Dpwm-mxs.c97 pol_bits = state->polarity == PWM_POLARITY_NORMAL ?
H A Dpwm-lpc32xx.c97 if (state->polarity != PWM_POLARITY_NORMAL)
H A Dpwm-imx1.c129 if (state->polarity != PWM_POLARITY_NORMAL)
H A Dpwm-sifive.c126 state->polarity = PWM_POLARITY_INVERSED;
142 if (state->polarity != PWM_POLARITY_INVERSED)
H A Dpwm-mtk-disp.c77 if (state->polarity != PWM_POLARITY_NORMAL)
219 state->polarity = PWM_POLARITY_NORMAL;
H A Dpwm-microchip-core.c24 * time depending on polarity.
167 if (state->polarity == PWM_POLARITY_INVERSED) {
302 * If the only thing that has changed is the duty cycle or the polarity,
429 state->polarity = negedge < posedge ? PWM_POLARITY_INVERSED : PWM_POLARITY_NORMAL;
H A Dpwm-twl.c286 if (state->polarity != PWM_POLARITY_NORMAL)
311 if (state->polarity != PWM_POLARITY_NORMAL)
H A Dpwm-meson.c9 * The hardware has no "polarity" setting. This driver reverses the period
11 * PWM_POLARITY_INVERSED. This means that .get_state cannot read the polarity
163 if (state->polarity == PWM_POLARITY_INVERSED)
258 if (state->polarity == PWM_POLARITY_INVERSED) {
328 state->polarity = PWM_POLARITY_NORMAL;
/linux-master/drivers/media/i2c/adv748x/
H A Dadv748x-hdmi.c279 int polarity; local
326 polarity = hdmi_read(state, 0x05);
327 bt->polarities = (polarity & BIT(4) ? V4L2_DV_VSYNC_POS_POL : 0) |
328 (polarity & BIT(5) ? V4L2_DV_HSYNC_POS_POL : 0);
/linux-master/drivers/video/fbdev/via/
H A Dhw.c879 void via_set_sync_polarity(u32 devices, u8 polarity) argument
881 if (polarity & ~(VIA_HSYNC_NEGATIVE | VIA_VSYNC_NEGATIVE)) {
882 printk(KERN_WARNING "viafb: Unsupported polarity: %d\n",
883 polarity);
888 via_write_misc_reg_mask(polarity << 6, 0xC0);
890 via_write_reg_mask(VIACR, 0x9B, polarity << 5, 0x60);
892 via_write_reg_mask(VIACR, 0x99, polarity << 5, 0x60);
894 via_write_reg_mask(VIACR, 0x97, polarity << 5, 0x60);
1735 u8 polarity = 0; local
1738 polarity |
[all...]
/linux-master/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7100.c1118 u32 irq_type, edge_both, polarity; local
1125 polarity = mask; /* 1: rising edge */
1130 polarity = 0; /* 0: falling edge */
1135 polarity = 0; /* 0: ignored */
1140 polarity = mask; /* 1: high level */
1145 polarity = 0; /* 0: low level */
1161 polarity |= readl_relaxed(base + GPIOIEV) & ~mask;
1162 writel_relaxed(polarity, base + GPIOIEV);
/linux-master/drivers/nfc/pn544/
H A Di2c.c190 int polarity, retry, ret; local
194 nfc_info(&phy->i2c_dev->dev, "Detecting nfc_en polarity\n");
199 for (polarity = 0; polarity < 2; polarity++) {
200 phy->en_polarity = polarity;
216 "nfc_en polarity : active %s\n",
217 (polarity == 0 ? "low" : "high"));
224 "Could not detect nfc_en polarity, fallback to active high\n");
/linux-master/include/linux/
H A Dacpi.h328 int acpi_register_gsi (struct device *dev, u32 gsi, int triggering, int polarity);
343 extern int acpi_get_override_irq(u32 gsi, int *trigger, int *polarity);
345 static inline int acpi_get_override_irq(u32 gsi, int *trigger, int *polarity) argument
363 void acpi_penalize_sci_irq(int irq, int trigger, int polarity);
366 int polarity)
488 unsigned long acpi_dev_irq_flags(u8 triggering, u8 polarity, u8 shareable, u8 wake_capable);
489 unsigned int acpi_dev_get_irq_type(int triggering, int polarity);
365 acpi_penalize_sci_irq(int irq, int trigger, int polarity) argument
/linux-master/drivers/net/ethernet/chelsio/cxgb3/
H A Dcommon.h647 int polarity, int attempts, int delay, u32 *valp);
649 int polarity, int attempts, int delay)
651 return t3_wait_op_done_val(adapter, reg, mask, polarity, attempts,
648 t3_wait_op_done(struct adapter *adapter, int reg, u32 mask, int polarity, int attempts, int delay) argument
/linux-master/drivers/acpi/acpica/
H A Drsdumpinfo.c33 {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(irq.polarity), "Polarity",
223 {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(extended_irq.polarity), "Polarity",
264 {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(gpio.polarity), "Polarity",
/linux-master/drivers/media/dvb-frontends/
H A Dcxd2099.c293 if (ci->cfg.polarity) {
312 if (ci->cfg.polarity) {
331 if (ci->cfg.polarity) {
/linux-master/drivers/mailbox/
H A Dpcc.c223 int trigger, polarity; local
231 polarity = (flags & ACPI_PCCT_INTERRUPT_POLARITY) ? ACPI_ACTIVE_LOW
234 return acpi_register_gsi(NULL, interrupt, trigger, polarity);
/linux-master/drivers/acpi/
H A Dtables.c123 u16 polarity, trigger; local
127 polarity = p->inti_flags & ACPI_MADT_POLARITY_MASK;
132 mps_inti_flags_polarity[polarity],
/linux-master/drivers/staging/fbtft/
H A Dfbtft-core.c134 bool polarity = par->polarity; local
136 fbtft_par_dbg(DEBUG_BACKLIGHT, par, "%s: polarity=%d, power=%d\n", __func__,
137 polarity, bd->props.power);
140 gpiod_set_value(par->gpio.led[0], polarity);
142 gpiod_set_value(par->gpio.led[0], !polarity);
180 /* Assume backlight is off, get polarity from current state of pin */
183 par->polarity = true;

Completed in 246 milliseconds

123456789