Home
last modified time | relevance | path

Searched refs:edge (Results 1 – 25 of 27) sorted by relevance

12

/drivers/gpio/
Dgpio-mxc.c175 int edge; in gpio_set_irq_type() local
181 edge = GPIO_INT_RISE_EDGE; in gpio_set_irq_type()
184 edge = GPIO_INT_FALL_EDGE; in gpio_set_irq_type()
188 edge = GPIO_INT_BOTH_EDGES; in gpio_set_irq_type()
192 edge = GPIO_INT_LOW_LEV; in gpio_set_irq_type()
195 edge = GPIO_INT_HIGH_LEV; in gpio_set_irq_type()
202 edge = GPIO_INT_LOW_LEV; in gpio_set_irq_type()
205 edge = GPIO_INT_HIGH_LEV; in gpio_set_irq_type()
213 if (edge == GPIO_INT_BOTH_EDGES) in gpio_set_irq_type()
221 if (edge != GPIO_INT_BOTH_EDGES) { in gpio_set_irq_type()
[all …]
Dgpio-mxs.c91 int edge; in mxs_gpio_set_irq_type() local
98 edge = GPIO_INT_FALL_EDGE; in mxs_gpio_set_irq_type()
100 edge = GPIO_INT_RISE_EDGE; in mxs_gpio_set_irq_type()
104 edge = GPIO_INT_RISE_EDGE; in mxs_gpio_set_irq_type()
107 edge = GPIO_INT_FALL_EDGE; in mxs_gpio_set_irq_type()
110 edge = GPIO_INT_LOW_LEV; in mxs_gpio_set_irq_type()
113 edge = GPIO_INT_HIGH_LEV; in mxs_gpio_set_irq_type()
121 if (edge & GPIO_INT_LEV_MASK) in mxs_gpio_set_irq_type()
128 if (edge & GPIO_INT_POL_MASK) in mxs_gpio_set_irq_type()
141 u32 bit, val, edge; in mxs_flip_edge() local
[all …]
Dgpio-grgpio.c143 u32 edge; in grgpio_irq_set_type() local
148 edge = 0; in grgpio_irq_set_type()
152 edge = 0; in grgpio_irq_set_type()
156 edge = mask; in grgpio_irq_set_type()
160 edge = mask; in grgpio_irq_set_type()
172 priv->bgc.write_reg(priv->regs + GRGPIO_IEDGE, iedge | edge); in grgpio_irq_set_type()
Dgpio-stp-xway.c84 u32 edge; /* rising or falling edge triggered shift register */ member
164 chip->edge, XWAY_STP_CON0); in xway_stp_hw_init()
261 chip->edge = XWAY_STP_FALLING; in xway_stp_probe()
Dgpiolib.c514 static DEVICE_ATTR(edge, 0644, gpio_edge_show, gpio_edge_store);
/drivers/clk/
Dclk-axi-clkgen.c135 unsigned int *high, unsigned int *edge, unsigned int *nocount) in axi_clkgen_calc_clk_params() argument
143 *edge = divider % 2; in axi_clkgen_calc_clk_params()
171 unsigned int edge; in axi_clkgen_set_rate() local
189 axi_clkgen_calc_clk_params(dout, &low, &high, &edge, &nocount); in axi_clkgen_set_rate()
193 (edge << 7) | (nocount << 6)); in axi_clkgen_set_rate()
195 axi_clkgen_calc_clk_params(d, &low, &high, &edge, &nocount); in axi_clkgen_set_rate()
197 (edge << 13) | (nocount << 12) | (high << 6) | low); in axi_clkgen_set_rate()
199 axi_clkgen_calc_clk_params(m, &low, &high, &edge, &nocount); in axi_clkgen_set_rate()
203 (edge << 7) | (nocount << 6)); in axi_clkgen_set_rate()
/drivers/pps/
Dkc.c54 if (bind_args->edge == 0) in pps_kc_bind()
70 pps_kc_hardpps_mode = bind_args->edge; in pps_kc_bind()
74 "edge=0x%x\n", bind_args->edge); in pps_kc_bind()
Dpps.c217 if ((bind_args.edge & ~pps->info.mode) != 0) { in pps_cdev_ioctl()
219 bind_args.edge); in pps_cdev_ioctl()
225 (bind_args.edge & ~PPS_CAPTUREBOTH) != 0 || in pps_cdev_ioctl()
228 " parameters (%x)\n", bind_args.edge); in pps_cdev_ioctl()
/drivers/staging/speakup/
DDefaultKeyAssignments18 InsKeyPad-4 say from left edge of line to reading cursor.
20 InsKeyPad-6 Say from reading cursor to right edge of line.
33 InsKeyPad-7 Move reading cursor to left edge of screen (insert home)
34 InsKeyPad-1 Move reading cursor to right edge of screen (insert end)
/drivers/video/msm/
Dmdp_ppp.c46 uint32_t edge; member
350 regs->edge = 0; in get_edge_cond()
424 regs->edge |= (chroma_repeat[IMG_LEFT] & 3) << MDP_LEFT_CHROMA; in get_edge_cond()
425 regs->edge |= (chroma_repeat[IMG_RIGHT] & 3) << MDP_RIGHT_CHROMA; in get_edge_cond()
426 regs->edge |= (chroma_repeat[IMG_TOP] & 3) << MDP_TOP_CHROMA; in get_edge_cond()
427 regs->edge |= (chroma_repeat[IMG_BOTTOM] & 3) << MDP_BOTTOM_CHROMA; in get_edge_cond()
428 regs->edge |= (luma_repeat[IMG_LEFT] & 3) << MDP_LEFT_LUMA; in get_edge_cond()
429 regs->edge |= (luma_repeat[IMG_RIGHT] & 3) << MDP_RIGHT_LUMA; in get_edge_cond()
430 regs->edge |= (luma_repeat[IMG_TOP] & 3) << MDP_TOP_LUMA; in get_edge_cond()
431 regs->edge |= (luma_repeat[IMG_BOTTOM] & 3) << MDP_BOTTOM_LUMA; in get_edge_cond()
[all …]
/drivers/mfd/
Dasic3.c129 u16 edge; in asic3_irq_flip_edge() local
133 edge = asic3_read_register(asic, in asic3_irq_flip_edge()
135 edge ^= bit; in asic3_irq_flip_edge()
137 base + ASIC3_GPIO_EDGE_TRIGGER, edge); in asic3_irq_flip_edge()
303 u16 trigger, level, edge, bit; in asic3_gpio_irq_type() local
313 edge = asic3_read_register(asic, in asic3_gpio_irq_type()
321 edge |= bit; in asic3_gpio_irq_type()
324 edge &= ~bit; in asic3_gpio_irq_type()
328 edge &= ~bit; in asic3_gpio_irq_type()
330 edge |= bit; in asic3_gpio_irq_type()
[all …]
/drivers/irqchip/
Dirq-vt8500.c89 u8 edge, dctr; in vt8500_irq_mask() local
92 edge = readb(base + VT8500_ICDC + d->hwirq) & VT8500_EDGE; in vt8500_irq_mask()
93 if (edge) { in vt8500_irq_mask()
/drivers/spi/
Dspi-nuc900.c241 static void nuc900_tx_edge(struct nuc900_spi *hw, unsigned int edge) in nuc900_tx_edge() argument
250 if (edge) in nuc900_tx_edge()
259 static void nuc900_rx_edge(struct nuc900_spi *hw, unsigned int edge) in nuc900_rx_edge() argument
268 if (edge) in nuc900_rx_edge()
Dspi-sh-msiof.c175 int edge; in sh_msiof_spi_set_pin_regs() local
192 edge = cpol ^ !cpha; in sh_msiof_spi_set_pin_regs()
194 tmp |= edge << 27; /* TEDG */ in sh_msiof_spi_set_pin_regs()
195 tmp |= edge << 26; /* REDG */ in sh_msiof_spi_set_pin_regs()
/drivers/net/wireless/ath/ath5k/
Deeprom.c1652 rep[j].edge = (val >> 8) & pmask; in ath5k_eeprom_read_ctl_info()
1654 rep[j + 1].edge = val & pmask; in ath5k_eeprom_read_ctl_info()
1677 rep[0].edge = (val >> 2) & pmask; in ath5k_eeprom_read_ctl_info()
1678 rep[1].edge = (val << 4) & pmask; in ath5k_eeprom_read_ctl_info()
1681 rep[1].edge |= (val >> 12) & 0xf; in ath5k_eeprom_read_ctl_info()
1682 rep[2].edge = (val >> 6) & pmask; in ath5k_eeprom_read_ctl_info()
1683 rep[3].edge = val & pmask; in ath5k_eeprom_read_ctl_info()
1686 rep[4].edge = (val >> 10) & pmask; in ath5k_eeprom_read_ctl_info()
1687 rep[5].edge = (val >> 4) & pmask; in ath5k_eeprom_read_ctl_info()
1688 rep[6].edge = (val << 2) & pmask; in ath5k_eeprom_read_ctl_info()
[all …]
Deeprom.h363 u16 edge; /* in half dBm */ member
/drivers/gpu/drm/omapdrm/
Dtcm-sita.c620 me.neighs = me.n.edge + me.n.busy; in update_candidate()
681 stat->edge++; in get_neighbor_stats()
686 stat->edge++; in get_neighbor_stats()
694 stat->edge++; in get_neighbor_stats()
699 stat->edge++; in get_neighbor_stats()
Dtcm-sita.h67 u16 edge; member
/drivers/net/wireless/ath/ath9k/
Dar9003_eeprom.c4890 int edge, in ar9003_hw_get_direct_edge_power() argument
4897 return CTL_EDGE_TPOWER(ctl_2g[idx].ctlEdges[edge]); in ar9003_hw_get_direct_edge_power()
4899 return CTL_EDGE_TPOWER(ctl_5g[idx].ctlEdges[edge]); in ar9003_hw_get_direct_edge_power()
4904 unsigned int edge, in ar9003_hw_get_indirect_edge_power() argument
4916 if (ath9k_hw_fbin2freq(ctl_freqbin[edge - 1], 1) < freq && in ar9003_hw_get_indirect_edge_power()
4917 CTL_EDGE_FLAGS(ctl_2g[idx].ctlEdges[edge - 1])) in ar9003_hw_get_indirect_edge_power()
4918 return CTL_EDGE_TPOWER(ctl_2g[idx].ctlEdges[edge - 1]); in ar9003_hw_get_indirect_edge_power()
4920 if (ath9k_hw_fbin2freq(ctl_freqbin[edge - 1], 0) < freq && in ar9003_hw_get_indirect_edge_power()
4921 CTL_EDGE_FLAGS(ctl_5g[idx].ctlEdges[edge - 1])) in ar9003_hw_get_indirect_edge_power()
4922 return CTL_EDGE_TPOWER(ctl_5g[idx].ctlEdges[edge - 1]); in ar9003_hw_get_indirect_edge_power()
[all …]
/drivers/media/i2c/
Dov9650.c733 u8 com14, edge; in ov965x_set_sharpness() local
739 ret = ov965x_read(ov965x->client, REG_EDGE, &edge); in ov965x_set_sharpness()
754 edge &= ~EDGE_FACTOR_MASK; in ov965x_set_sharpness()
755 edge |= ((u8)value & 0x0f); in ov965x_set_sharpness()
757 return ov965x_write(ov965x->client, REG_EDGE, edge); in ov965x_set_sharpness()
/drivers/media/dvb-frontends/
Dlgdt3305.c240 enum lgdt3305_tp_clock_edge edge, in lgdt3305_mpeg_mode_polarity() argument
246 lg_dbg("edge = %d, valid = %d\n", edge, valid); in lgdt3305_mpeg_mode_polarity()
254 if (edge) in lgdt3305_mpeg_mode_polarity()
/drivers/hwmon/
Ddme1737.c377 int edge = (reg >> 1) & 0x03; in FAN_TYPE_FROM_REG() local
379 return (edge > 0) ? 1 << (edge - 1) : 0; in FAN_TYPE_FROM_REG()
384 int edge = (val == 4) ? 3 : val; in FAN_TYPE_TO_REG() local
386 return (reg & 0xf9) | (edge << 1); in FAN_TYPE_TO_REG()
/drivers/gpu/drm/nouveau/core/engine/graph/fuc/
Dhubnvc0.fuc241 // fifo level triggered, rest edge
Dhubnve0.fuc191 // fifo level triggered, rest edge
/drivers/staging/wlags49_h2/
DREADME.wlags49445 * Transmit/Receive LED (closer to the edge of the adapter)

12