HomeSort by relevance Sort by last modified time
    Searched refs:pin (Results 1 - 25 of 266) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/u-boot/arch/arm/mach-kirkwood/include/mach/
gpio.h 18 #define GPIO_OFF(pin) (((pin) >> 5) ? 0x0040 : 0x0000)
19 #define GPIO_OUT(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x00)
20 #define GPIO_IO_CONF(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x04)
21 #define GPIO_BLINK_EN(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x08)
22 #define GPIO_IN_POL(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x0c
    [all...]
  /external/u-boot/board/sunxi/
gmac.c 11 int pin; local
35 /* Configure pin mux settings for GMAC */
37 for (pin = SUNXI_GPA(0); pin <= SUNXI_GPA(17); pin++) {
39 for (pin = SUNXI_GPA(0); pin <= SUNXI_GPA(16); pin++) {
43 if (pin == SUNXI_GPA(9) || pin == SUNXI_GPA(14)
    [all...]
board.c 41 /* So that we can use pin names in Kconfig and sunxi_name_to_gpio() */
51 printf("Error invalid soft i2c sda pin: '%s', err %d\n",
57 printf("Error requesting soft i2c sda pin: '%s', err %d\n",
64 printf("Error invalid soft i2c scl pin: '%s', err %d\n",
70 printf("Error requesting soft i2c scl pin: '%s', err %d\n",
268 unsigned int pin; local
270 for (pin = SUNXI_GPC(0); pin <= SUNXI_GPC(19); pin++)
271 sunxi_gpio_set_cfgpin(pin, SUNXI_GPC_NAND)
310 unsigned int pin; local
    [all...]
  /external/u-boot/drivers/gpio/
kw_gpio.c 24 void __set_direction(unsigned pin, int input)
28 u = readl(GPIO_IO_CONF(pin));
30 u |= 1 << (pin & 31);
32 u &= ~(1 << (pin & 31));
33 writel(u, GPIO_IO_CONF(pin));
35 u = readl(GPIO_IO_CONF(pin));
38 static void __set_level(unsigned pin, int high)
42 u = readl(GPIO_OUT(pin));
44 u |= 1 << (pin & 31);
46 u &= ~(1 << (pin & 31))
    [all...]
axp_gpio.c 19 static int axp_gpio_set_value(struct udevice *dev, unsigned pin, int val);
21 static u8 axp_get_gpio_ctrl_reg(unsigned pin)
23 switch (pin) {
36 static int axp_gpio_direction_input(struct udevice *dev, unsigned pin)
40 switch (pin) {
46 reg = axp_get_gpio_ctrl_reg(pin);
54 static int axp_gpio_direction_output(struct udevice *dev, unsigned pin,
60 switch (pin) {
69 return axp_gpio_set_value(dev, pin, val);
72 reg = axp_get_gpio_ctrl_reg(pin);
    [all...]
at91_gpio.c 58 int at91_set_pio_pullup(unsigned port, unsigned pin, int use_pullup)
62 if (at91_port && (pin < GPIO_PER_BANK))
63 at91_set_port_pullup(at91_port, pin, use_pullup);
69 * mux the pin to the "GPIO" peripheral role.
71 int at91_set_pio_periph(unsigned port, unsigned pin, int use_pullup)
76 if (at91_port && (pin < GPIO_PER_BANK)) {
77 mask = 1 << pin;
79 at91_set_pio_pullup(port, pin, use_pullup);
87 * mux the pin to the "A" internal peripheral role.
89 int at91_set_a_periph(unsigned port, unsigned pin, int use_pullup
    [all...]
altera_pio.c 28 static int altera_pio_direction_input(struct udevice *dev, unsigned pin)
33 clrbits_le32(&regs->direction, 1 << pin);
38 static int altera_pio_direction_output(struct udevice *dev, unsigned pin,
45 setbits_le32(&regs->data, 1 << pin);
47 clrbits_le32(&regs->data, 1 << pin);
49 setbits_le32(&regs->direction, 1 << pin);
54 static int altera_pio_get_value(struct udevice *dev, unsigned pin)
59 return readl(&regs->data) & (1 << pin);
63 static int altera_pio_set_value(struct udevice *dev, unsigned pin, int val)
69 setbits_le32(&regs->data, 1 << pin);
    [all...]
  /external/u-boot/board/LaCie/common/
cpld-gpio-bus.c 19 int pin; local
21 for (pin = 0; pin < bus->num_addr; pin++)
22 kw_gpio_set_value(bus->addr[pin], (addr >> pin) & 1);
27 int pin; local
29 for (pin = 0; pin < bus->num_data; pin++
    [all...]
  /external/u-boot/arch/arm/cpu/arm920t/imx/
generic.c 20 unsigned int pin = gpio_mode & GPIO_PIN_MASK; local
27 PUEN(port) |= (1<<pin);
29 PUEN(port) &= ~(1<<pin);
33 DDIR(port) |= 1<<pin;
35 DDIR(port) &= ~(1<<pin);
39 GPR(port) |= (1<<pin);
41 GPR(port) &= ~(1<<pin);
45 GIUS(port) |= (1<<pin);
47 GIUS(port) &= ~(1<<pin);
53 if(pin<16)
    [all...]
  /external/u-boot/board/micronas/vct/
gpio.c 11 * Find out to which of the 2 gpio modules the pin specified in the
16 #define GPIO_MODULE(pin) ((pin) >> 5)
22 #define MASK(pin) (1 << ((pin) & 0x1F))
39 int vct_gpio_dir(int pin, int dir)
43 gpio_base = BASE_ADDR(GPIO_MODULE(pin));
46 clrsetbits(GPIO_SWPORTA_DDR(gpio_base), MASK(pin), 0);
48 clrsetbits(GPIO_SWPORTA_DDR(gpio_base), 0, MASK(pin));
53 void vct_gpio_set(int pin, int val
    [all...]
top.c 20 u32 funsel : 2; /* Pin function */
26 static TOP_PINMUX_t top_read_pin(int pin)
30 switch (pin) {
57 ((pin - 10) * 4));
60 reg.reg = reg_read(TOP_BASE + (pin * 4));
67 static void top_write_pin(int pin, TOP_PINMUX_t reg)
70 switch (pin) {
91 ((pin - 10) * 4), reg.reg);
94 reg_write(TOP_BASE + (pin * 4), reg.reg);
99 int top_set_pin(int pin, int func
    [all...]
  /external/u-boot/arch/arm/mach-sunxi/
pinmux.c 20 void sunxi_gpio_set_cfgpin(u32 pin, u32 val)
22 u32 bank = GPIO_BANK(pin);
25 sunxi_gpio_set_cfgbank(pio, pin, val);
40 int sunxi_gpio_get_cfgpin(u32 pin)
42 u32 bank = GPIO_BANK(pin);
45 return sunxi_gpio_get_cfgbank(pio, pin);
48 int sunxi_gpio_set_drv(u32 pin, u32 val)
50 u32 bank = GPIO_BANK(pin);
51 u32 index = GPIO_DRV_INDEX(pin);
52 u32 offset = GPIO_DRV_OFFSET(pin);
    [all...]
  /external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/extension/views/
PinView.java 15 private Bitmap pin; field in class:PinView
34 pin = BitmapFactory.decodeResource(this.getResources(), drawable.pushpin_blue);
35 float w = (density/420f) * pin.getWidth();
36 float h = (density/420f) * pin.getHeight();
37 pin = Bitmap.createScaledBitmap(pin, (int)w, (int)h, true);
44 // Don't draw pin before image is ready so it doesn't move around during setup.
51 if (sPin != null && pin != null) {
53 float vX = vPin.x - (pin.getWidth()/2);
54 float vY = vPin.y - pin.getHeight()
    [all...]
  /external/webrtc/webrtc/modules/video_capture/windows/
help_functions_ds.cc 38 IPin* pin = NULL; local
46 // get first unconnected pin
47 hr = pPinEnum->Reset(); // set to first pin
49 while (S_OK == pPinEnum->Next(1, &pin, NULL))
52 pin->QueryDirection(&pPinDir);
53 if (PINDIR_INPUT == pPinDir) // This is an input pin
56 if (S_OK != pin->ConnectedTo(&tempPin)) // The pint is not connected
59 return pin;
62 pin->Release();
71 IPin* pin = NULL local
    [all...]
  /external/wpa_supplicant_8/wpa_supplicant/examples/
wps-ap-cli 16 echo "Enter a PIN from a station to be enrolled to the network."
17 printf "Enrollee PIN: "
18 read pin
19 cpin=`$CLI wps_check_pin "$pin" | tail -1`
22 printf "Do you want to use this PIN (y/n)? "
26 cpin=`echo "$pin" | sed "s/[^1234567890]//g"`
34 echo "Invalid PIN: $pin"
37 echo "Enabling Enrollee PIN: $cpin"
51 echo "2: Enter Enrollee PIN"
    [all...]
  /external/u-boot/arch/arm/include/asm/arch-sunxi/
gpio.h 80 #define GPIO_BANK(pin) ((pin) >> 5)
81 #define GPIO_NUM(pin) ((pin) & 0x1f)
83 #define GPIO_CFG_INDEX(pin) (((pin) & 0x1f) >> 3)
84 #define GPIO_CFG_OFFSET(pin) ((((pin) & 0x1f) & 0x7) << 2)
86 #define GPIO_DRV_INDEX(pin) (((pin) & 0x1f) >> 4
    [all...]
  /external/u-boot/arch/arm/mach-at91/include/mach/
at91_pio.h 54 u32 pdsr; /* 0x3C Pin Data Status Register */
130 int at91_set_a_periph(unsigned port, unsigned pin, int use_pullup);
131 int at91_set_b_periph(unsigned port, unsigned pin, int use_pullup);
132 int at91_set_pio_input(unsigned port, unsigned pin, int use_pullup);
133 int at91_set_pio_multi_drive(unsigned port, unsigned pin, int is_on);
134 int at91_set_pio_output(unsigned port, unsigned pin, int value);
135 int at91_set_pio_periph(unsigned port, unsigned pin, int use_pullup);
136 int at91_set_pio_pullup(unsigned port, unsigned pin, int use_pullup);
137 int at91_set_pio_deglitch(unsigned port, unsigned pin, int is_on);
138 int at91_set_pio_value(unsigned port, unsigned pin, int value)
    [all...]
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
intrinsic_colormatrix.rs 31 float4 pin = 0.f;
36 pin.xyzw = rsGetElementAt_float4(in, x, y);
39 pin.xyz = rsGetElementAt_float3(in, x, y);
42 pin.xy = rsGetElementAt_float2(in, x, y);
45 pin.x = rsGetElementAt_float(in, x, y);
66 pin = rsUnpackColor8888(u);
69 pin = rsMatrixMultiply(&m, pin);
70 pin += add;
75 rsSetElementAt_float4(out, pin, x, y)
    [all...]
  /external/u-boot/arch/powerpc/cpu/mpc83xx/
qe_io.c 15 void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign)
25 /* Calculate pin location and 2bit mask and dir */
26 pin_2bit_mask = (u32)(0x3 << (NUM_OF_PINS-(pin%(NUM_OF_PINS/2)+1)*2));
27 pin_2bit_dir = (u32)(dir << (NUM_OF_PINS-(pin%(NUM_OF_PINS/2)+1)*2));
30 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ? \
34 if (pin > (NUM_OF_PINS/2) -1) {
42 /* Calculate pin location for 1bit mask */
43 pin_1bit_mask = (u32)(1 << (NUM_OF_PINS - (pin+1)));
54 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ?
58 << (NUM_OF_PINS - (pin%(NUM_OF_PINS/2)+1)*2))
    [all...]
  /external/u-boot/arch/powerpc/cpu/mpc85xx/
qe_io.c 16 void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign)
27 /* Caculate pin location and 2bit mask and dir */
28 pin_2bit_mask = (u32)(0x3 << (NUM_OF_PINS-(pin%(NUM_OF_PINS/2)+1)*2));
29 pin_2bit_dir = (u32)(dir << (NUM_OF_PINS-(pin%(NUM_OF_PINS/2)+1)*2));
32 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ? \
36 if (pin > (NUM_OF_PINS/2) -1) {
44 /* Calculate pin location for 1bit mask */
45 pin_1bit_mask = (u32)(1 << (NUM_OF_PINS - (pin+1)));
55 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ?
59 << (NUM_OF_PINS - (pin%(NUM_OF_PINS/2)+1)*2))
    [all...]
  /device/google/contexthub/firmware/os/drivers/vsync/
vsync.c 72 struct Gpio *pin; member in struct:SensorTask
113 if (!extiIsPendingGpio(data->pin)) {
125 extiClearPendingGpio(data->pin);
129 static bool enableInterrupt(struct Gpio *pin, struct ChainedIsr *isr)
131 gpioConfigInput(pin, GPIO_SPEED_LOW, GPIO_PULL_NONE);
132 syscfgSetExtiPort(pin);
133 extiEnableIntGpio(pin, EXTI_TRIGGER_FALLING);
138 static bool disableInterrupt(struct Gpio *pin, struct ChainedIsr *isr)
141 extiDisableIntGpio(pin);
159 extiClearPendingGpio(mTask.pin);
    [all...]
  /external/u-boot/arch/arm/mach-tegra/
pinmux-common.c 12 #define pmux_pingrp_isvalid(pin) (((pin) >= 0) && ((pin) < PMUX_PINGRP_COUNT))
95 #define REG(pin) _R(0x3000 + ((pin) * 4))
97 #define MUX_REG(pin) REG(pin)
98 #define MUX_SHIFT(pin) 0
100 #define PULL_REG(pin) REG(pin)
431 enum pmux_pingrp pin = config->pingrp; local
    [all...]
  /external/u-boot/arch/powerpc/include/asm/
iopin_8xx.h 4 * MPC8xx I/O port pin manipulation functions
19 u_char pin:5; /* port pin (0-31) */ member in struct:__anon46999
35 setbits_be16(datp, 1 << (15 - iopin->pin));
39 setbits_be32(datp, 1 << (31 - iopin->pin));
43 setbits_be16(datp, 1 << (15 - iopin->pin));
47 setbits_be16(datp, 1 << (15 - iopin->pin));
58 clrbits_be16(datp, 1 << (15 - iopin->pin));
62 clrbits_be32(datp, 1 << (31 - iopin->pin));
66 clrbits_be16(datp, 1 << (15 - iopin->pin));
    [all...]
  /external/u-boot/arch/x86/cpu/
pci.c 62 u8 pin, line; local
70 pci_read_config8(bdf, PCI_INTERRUPT_PIN, &pin);
73 if ((pin < 1) || (pin > 4))
76 line = irq[pin - 1];
81 line, bus, device, func, 'A' + pin - 1);
  /external/u-boot/drivers/pinctrl/mvebu/
pinctrl-mvebu.c 36 * If pin function is set to eMMC/SD, then configure the eMMC/SD PHY
39 void mvebu_pinctl_emmc_set_mux(struct udevice *dev, u32 pin, u32 func)
46 if ((pin == AP806_EMMC_CLK_PIN_ID) &&
53 if ((pin == CP110_EMMC_CLK_PIN_ID) &&
62 * mvebu_pinctrl_set_state: configure pin functions.
92 * Only the first pin id in array is tested, all the rest use the same
93 * pin function.
100 int pin = pin_arr[i]; local
110 (pin >> (PIN_REG_SHIFT));
111 field_offset = (BITS_PER_PIN) * (pin & PIN_FIELD_MASK)
134 int pin, err; local
    [all...]

Completed in 889 milliseconds

1 2 3 4 5 6 7 8 91011