Searched refs:pins (Results 1 - 25 of 517) sorted by relevance

1234567891011>>

/linux-master/drivers/base/
H A Dpinctrl.c28 dev->pins = devm_kzalloc(dev, sizeof(*(dev->pins)), GFP_KERNEL);
29 if (!dev->pins)
32 dev->pins->p = devm_pinctrl_get(dev);
33 if (IS_ERR(dev->pins->p)) {
35 ret = PTR_ERR(dev->pins->p);
39 dev->pins->default_state = pinctrl_lookup_state(dev->pins->p,
41 if (IS_ERR(dev->pins->default_state)) {
47 dev->pins
[all...]
/linux-master/drivers/pinctrl/samsung/
H A Dpinctrl-exynos.h55 #define EXYNOS_PIN_BANK_EINTN(pins, reg, id) \
59 .nr_pins = pins, \
64 #define EXYNOS_PIN_BANK_EINTG(pins, reg, id, offs) \
68 .nr_pins = pins, \
74 #define EXYNOS_PIN_BANK_EINTW(pins, reg, id, offs) \
78 .nr_pins = pins, \
84 #define EXYNOS5433_PIN_BANK_EINTG(pins, reg, id, offs) \
88 .nr_pins = pins, \
94 #define EXYNOS5433_PIN_BANK_EINTW(pins, reg, id, offs) \
98 .nr_pins = pins, \
[all...]
/linux-master/drivers/pinctrl/freescale/
H A Dpinctrl-imx1.h31 * @pins: an array of imx1_pin structs used in this group
32 * @npins: the number of pins in this group array, i.e. the number of
33 * elements in .pins so we can iterate over that array
38 struct imx1_pin *pins; member in struct:imx1_pin_group
56 const struct pinctrl_pin_desc *pins; member in struct:imx1_pinctrl_soc_info
/linux-master/drivers/auxdisplay/
H A Dhd44780.c38 struct gpio_desc *pins[PIN_NUM]; member in struct:hd44780
46 if (hd->pins[PIN_CTRL_BL])
47 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_BL], on);
55 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 1);
60 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 0);
71 n = hd->pins[PIN_CTRL_RW] ? 10 : 9;
74 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA0], NULL, values);
88 n = hd->pins[PIN_CTRL_RW] ? 6 : 5;
91 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values);
100 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA
[all...]
H A Dpanel.c11 * serial module compatible with Samsung's KS0074. The pins may be connected in
14 * The keypad consists in a matrix of push buttons connecting input pins to
15 * data output pins or to the ground. The combinations have to be hard-coded
215 } pins; member in struct:__anon62
455 * These are the parallel port pins the LCD control signals are connected to.
712 if (lcd.pins.bl == PIN_NONE)
861 lcd.pins.e = PIN_STROBE;
862 lcd.pins.rs = PIN_AUTOLF;
873 lcd.pins.bl = PIN_AUTOLF;
874 lcd.pins
[all...]
/linux-master/drivers/pinctrl/intel/
H A Dpinctrl-intel-platform.c21 struct pinctrl_pin_desc *pins; member in struct:intel_platform_pins
27 struct intel_platform_pins *pins)
37 descs = devm_krealloc_array(dev, pins->pins, base + size, sizeof(*descs), GFP_KERNEL);
54 pins->pins = descs;
55 pins->npins = base + size;
63 struct intel_platform_pins *pins)
65 size_t base = pins->npins;
78 ret = intel_platform_pinctrl_prepare_pins(dev, base, name, size, pins);
25 intel_platform_pinctrl_prepare_pins(struct device *dev, size_t base, const char *name, u32 size, struct intel_platform_pins *pins) argument
60 intel_platform_pinctrl_prepare_group(struct device *dev, struct fwnode_handle *child, struct intel_padgroup *gpp, struct intel_platform_pins *pins) argument
89 intel_platform_pinctrl_prepare_community(struct device *dev, struct intel_community *community, struct intel_platform_pins *pins) argument
155 struct intel_platform_pins pins = {}; local
[all...]
/linux-master/drivers/video/fbdev/matrox/
H A Dmatroxfb_misc.c391 static void get_pins(unsigned char __iomem* pins, struct matrox_bios* bd) { argument
392 unsigned int b0 = readb(pins);
394 if (b0 == 0x2E && readb(pins+1) == 0x41) {
395 unsigned int pins_len = readb(pins+2);
398 unsigned char* dst = bd->pins;
408 cksum += *dst++ = readb(pins+i);
414 } else if (b0 == 0x40 && readb(pins+1) == 0x00) {
416 unsigned char* dst = bd->pins;
421 *dst++ = readb(pins+i);
535 switch (bd->pins[2
[all...]
/linux-master/drivers/pinctrl/meson/
H A Dpinctrl-meson8-pmx.h25 .pins = grp ## _pins, \
35 .pins = (const unsigned int[]){ gpio }, \
H A Dpinctrl-meson-axg-pmx.h45 .pins = grp ## _pins, \
55 .pins = (const unsigned int[]){ gpio }, \
/linux-master/include/linux/pinctrl/
H A Ddevinfo.h9 * This interface is used in the core to keep track of pins.
51 if (!dev->pins)
54 return dev->pins->p;
H A Dpinctrl.h7 * This interface is used in the core to keep track of pins.
32 * @pins: an array of pins in the pingroup
33 * @npins: number of pins in the pingroup
37 const unsigned int *pins; member in struct:pingroup
45 .pins = _pins, \
51 * pins, pads or other muxable units in this struct
73 * @pin_base: base pin number of the GPIO range if pins == NULL
74 * @npins: number of pins in the GPIO range, including the base number
75 * @pins
85 unsigned int const *pins; member in struct:pinctrl_gpio_range
152 const struct pinctrl_pin_desc *pins; member in struct:pinctrl_desc
[all...]
/linux-master/drivers/pinctrl/
H A Dpinctrl-artpec6.c26 #define ARTPEC6_LAST_PIN 97 /* 97 pins in pinmux */
59 struct pinctrl_pin_desc *pins; member in struct:artpec6_pmx
69 const unsigned int *pins; member in struct:artpec6_pin_group
80 /* pins */
215 .pins = cpuclkout_pins0,
221 .pins = udlclkout_pins0,
227 .pins = i2c1_pins0,
233 .pins = i2c2_pins0,
239 .pins = i2c3_pins0,
245 .pins
435 artpec6_get_group_pins(struct pinctrl_dev *pctldev, unsigned int group, const unsigned int **pins, unsigned int *num_pins) argument
[all...]
H A Dpinctrl-gemini.c47 * @flash_pin: whether the flash pin (extended pins for parallel
66 * @pins: an array of discrete physical pins used in this group, taken
68 * @num_pins: the number of pins in this group array, i.e. the number of
69 * elements in .pins so we can iterate over that array
78 const unsigned int *pins; member in struct:gemini_pin_group
534 /* GMII, ethernet pins */
606 /* NAND flash pins */
612 /* Parallel (NOR) flash pins, D[0-15], A[16-25], CE0, CE1, RB, WE, OE, ALE */
622 * side effect of stealing pins fro
1981 gemini_get_group_pins(struct pinctrl_dev *pctldev, unsigned int selector, const unsigned int **pins, unsigned int *num_pins) argument
[all...]
/linux-master/drivers/pinctrl/cirrus/
H A Dpinctrl-madera.h13 const unsigned int *pins; member in struct:madera_pin_groups
/linux-master/drivers/pinctrl/qcom/
H A Dpinctrl-qdf2xxx.c34 struct pinctrl_pin_desc *pins; local
78 pins = devm_kcalloc(&pdev->dev, num_gpios,
84 if (!pinctrl || !pins || !groups || !names)
92 pins[i].number = i;
93 groups[i].grp.pins = &pins[i].number;
102 pins[gpio].name = names[i];
127 pinctrl->pins = pins;
/linux-master/drivers/mux/
H A Dgpio.c53 int pins; local
57 pins = gpiod_count(dev, "mux");
58 if (pins < 0)
59 return pins;
72 WARN_ON(pins != mux_gpio->gpios->ndescs);
73 mux_chip->mux->states = BIT(pins);
/linux-master/drivers/gpu/drm/mgag200/
H A Dmgag200_g200.c282 const unsigned char *pins; local
302 pins = bios + offset;
303 if (pins[0] == 0x2e && pins[1] == 0x41) {
304 version = pins[5];
305 pins_len = pins[2];
308 pins_len = pins[0] + (pins[1] << 8);
329 tmp = pins[24] + (pins[2
[all...]
/linux-master/drivers/pinctrl/spear/
H A Dpinctrl-spear3xx.c16 /* pins */
41 .pins = firda_pins,
74 .pins = i2c_pins,
107 .pins = ssp_cs_pins,
140 .pins = ssp_pins,
174 .pins = mii_pins,
207 .pins = gpio0_pin0_pins,
233 .pins = gpio0_pin1_pins,
259 .pins = gpio0_pin2_pins,
285 .pins
[all...]
/linux-master/drivers/pinctrl/visconti/
H A Dpinctrl-common.c42 const struct visconti_desc_pin *pin = &priv->devdata->pins[_pin];
128 const unsigned int *pins; local
132 pins = priv->devdata->groups[selector].pins;
139 ret = visconti_pin_config_set(pctldev, pins[i],
172 const unsigned int **pins,
177 *pins = priv->devdata->groups[selector].pins;
284 struct pinctrl_pin_desc *pins; local
301 pins
170 visconti_get_group_pins(struct pinctrl_dev *pctldev, unsigned int selector, const unsigned int **pins, unsigned int *num_pins) argument
[all...]
H A Dpinctrl-common.h48 const unsigned int *pins; member in struct:visconti_pin_group
56 .pins = group_name ## _pins, \
81 const struct visconti_desc_pin *pins; member in struct:visconti_pinctrl_devdata
/linux-master/include/linux/platform_data/
H A Dusb-omap1.h33 /* signaling pins used to talk to transceiver on usbN:
40 u8 pins[3]; member in struct:omap_usb_config
/linux-master/drivers/pinctrl/vt8500/
H A Dpinctrl-wmt.h31 .pins = __data, \
47 const unsigned int *pins; member in struct:wmt_pinctrl_group
58 const struct pinctrl_pin_desc *pins; member in struct:wmt_pinctrl_data
/linux-master/drivers/pinctrl/renesas/
H A Dpinctrl-rza2.c46 struct pinctrl_pin_desc *pins; member in struct:rza2_pinctrl_priv
283 struct pinctrl_pin_desc *pins; local
287 pins = devm_kcalloc(priv->dev, priv->npins, sizeof(*pins), GFP_KERNEL);
288 if (!pins)
291 priv->pins = pins;
292 priv->desc.pins = pins;
296 pins[
333 unsigned int *pins, *psel_val; local
[all...]
/linux-master/arch/arm/mach-omap1/
H A Dusb.c66 if (config->pins[0] > 2) /* alt pingroup 2 */
68 syscon |= config->usb0_init(config->pins[0], is_usb0_device(config));
69 syscon |= config->usb1_init(config->pins[1]);
70 syscon |= config->usb2_init(config->pins[2], alt_pingroup);
87 pr_cont(", usb2 alt %d wires", config->pins[2]);
88 else if (config->pins[0])
89 pr_cont(", usb0 %d wires%s", config->pins[0],
91 if (config->pins[1])
92 pr_cont(", usb1 %d wires", config->pins[1]);
93 if (!alt_pingroup && config->pins[
[all...]
/linux-master/drivers/pinctrl/mediatek/
H A Dpinctrl-moore.c64 int pin = grp->grp.pins[i];
66 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];
87 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];
102 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];
118 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];
257 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];
404 const unsigned int *pins; local
408 ret = pinctrl_generic_get_group_pins(pctldev, group, &pins, &npins);
413 if (mtk_pinconf_get(pctldev, pins[i], config))
416 /* configs do not match between two pins */
430 const unsigned int *pins; local
643 struct pinctrl_pin_desc *pins; local
[all...]

Completed in 255 milliseconds

1234567891011>>