[go: nahoru, domu]

Searched defs:pins (Results 1 - 25 of 69) sorted by relevance

123

/drivers/media/radio/
H A Dlm7000.h21 void (*set_pins)(void *handle, u8 pins))
20 lm7000_set_freq(u32 freq, void *handle, void (*set_pins)(void *handle, u8 pins)) argument
H A Dradio-aimslab.c85 static void rtrack_set_pins(void *handle, u8 pins) argument
94 if (pins & LM7000_DATA)
96 if (pins & LM7000_CLK)
98 if (pins & LM7000_CE)
H A Dradio-aztech.c67 static void aztech_set_pins(void *handle, u8 pins) argument
73 if (pins & LM7000_DATA)
75 if (pins & LM7000_CLK)
77 if (pins & LM7000_CE)
H A Dradio-maxiradio.c83 static void maxiradio_tea575x_set_pins(struct snd_tea575x *tea, u8 pins) argument
88 bits |= (pins & TEA575X_DATA) ? data : 0;
89 bits |= (pins & TEA575X_CLK) ? clk : 0;
90 bits |= (pins & TEA575X_WREN) ? wren : 0;
H A Dradio-sf16fmi.c70 static void fmi_set_pins(void *handle, u8 pins) argument
78 if (pins & LM7000_DATA)
80 if (pins & LM7000_CLK)
82 if (pins & LM7000_CE)
H A Dradio-sf16fmr2.c47 /* TEA575x tuner pins */
52 /* PT2254A/TC9154A volume control pins */
59 static void fmr2_tea575x_set_pins(struct snd_tea575x *tea, u8 pins) argument
64 bits |= (pins & TEA575X_DATA) ? STR_DATA : 0;
65 bits |= (pins & TEA575X_CLK) ? STR_CLK : 0;
67 bits |= (pins & TEA575X_WREN) ? 0 : STR_WREN | STR_DATA;
115 static void tc9154a_set_pins(struct fmr2 *fmr2, u8 pins) argument
118 pins |= STR_WREN;
120 outb(pins, fmr2->io);
/drivers/pinctrl/
H A Dpinctrl-adi2.h17 * @pins: an array of pins
18 * @num: the number of pins in this array
22 const unsigned *pins; member in struct:adi_pin_group
30 .pins = p, \
61 * @pins: An array describing all pins the pin controller affects.
62 * @npins: The number of entries in @pins.
69 const struct pinctrl_pin_desc *pins; member in struct:adi_pinctrl_soc_data
H A Dpinctrl-lantiq.c38 const unsigned **pins,
44 *pins = info->grps[selector].pins;
73 struct property *pins = of_find_property(np, "lantiq,pins", NULL); local
82 if (!pins && !groups) {
83 dev_err(pctldev->dev, "%s defines neither pins nor groups\n",
88 if (pins && groups) {
89 dev_err(pctldev->dev, "%s defines both pins and groups\n",
118 of_property_for_each_string(np, "lantiq,pins", pro
36 ltq_get_group_pins(struct pinctrl_dev *pctrldev, unsigned selector, const unsigned **pins, unsigned *num_pins) argument
[all...]
H A Dpinmux.c395 const unsigned *pins = NULL; local
402 &pins, &num_pins);
411 "could not get pins for group %s\n",
416 /* Try to allocate all pins in this group, one by one */
418 ret = pin_request(pctldev, pins[i], setting->dev_name, NULL);
423 desc = pin_desc_get(pctldev, pins[i]);
430 pins[i], pname, gname,
436 /* Now that we have acquired the pins, encode the mux setting */
438 desc = pin_desc_get(pctldev, pins[i]);
442 pins[
475 const unsigned *pins = NULL; local
[all...]
/drivers/pinctrl/freescale/
H A Dpinctrl-imx1.h35 * @pins: an array of imx1_pin structs used in this group
36 * @npins: the number of pins in this group array, i.e. the number of
37 * elements in .pins so we can iterate over that array
42 struct imx1_pin *pins; member in struct:imx1_pin_group
60 const struct pinctrl_pin_desc *pins; member in struct:imx1_pinctrl_soc_info
H A Dpinctrl-imx.h40 * @npins: the number of pins in this group array, i.e. the number of
41 * elements in .pins so we can iterate over that array
43 * @pins: array of pins
49 struct imx_pin *pins; member in struct:imx_pin_group
76 const struct pinctrl_pin_desc *pins; member in struct:imx_pinctrl_soc_info
H A Dpinctrl-mxs.h65 unsigned int *pins; member in struct:mxs_group
79 const struct pinctrl_pin_desc *pins; member in struct:mxs_pinctrl_soc_data
/drivers/pinctrl/vt8500/
H A Dpinctrl-wmt.h39 .pins = __data, \
55 const unsigned int *pins; member in struct:wmt_pinctrl_group
66 const struct pinctrl_pin_desc *pins; member in struct:wmt_pinctrl_data
/drivers/staging/iio/resolver/
H A Dad2s1200.c108 unsigned short *pins = spi->dev.platform_data; local
111 ret = devm_gpio_request_one(&spi->dev, pins[pn], GPIOF_DIR_OUT,
115 pins[pn]);
126 st->sample = pins[0];
127 st->rdvel = pins[1];
/drivers/pinctrl/qcom/
H A Dpinctrl-msm.h33 * @pins: A list of pins assigned to this pingroup.
34 * @npins: Number of entries in @pins.
67 const unsigned *pins; member in struct:msm_pingroup
102 * @pins: An array describing all pins the pin controller affects.
103 * @npins: The number of entries in @pins.
111 const struct pinctrl_pin_desc *pins; member in struct:msm_pinctrl_soc_data
/drivers/infiniband/hw/qib/
H A Dqib_twsi.c266 u32 pins, mask; local
274 * Force pins to desired innocuous state.
303 pins = dd->f_gpio_mod(dd, 0, 0, 0);
304 if ((pins & mask) != mask)
305 qib_dev_err(dd, "GPIO pins not at rest: %d\n",
306 pins & mask);
/drivers/pinctrl/mvebu/
H A Dpinctrl-mvebu.h20 * @npins: number of pins controlled by this control
26 * A mpp_ctrl describes a muxable unit, e.g. pin, group of pins, or
33 * to allow pin settings with varying gpio pins.
39 unsigned *pins; member in struct:mvebu_mpp_ctrl
121 .pins = (unsigned[_idh - _idl + 1]) { }, \
133 .pins = (unsigned[_idh - _idl + 1]) { }, \
/drivers/pinctrl/nomadik/
H A Dpinctrl-abx500.h10 /* pins alternate function */
45 * @pins: an array of discrete physical pins used in this group, taken
47 * @num_pins: the number of pins in this group array, i.e. the number of
48 * elements in .pins so we can iterate over that array
49 * @altsetting: the altsetting to apply to all pins in this group to
54 const unsigned int *pins; member in struct:abx500_pingroup
100 * @first_pin: The pin number of the first pins which support
102 * @last_pin: The pin number of the last pins
137 * @npins: number of pins t
179 const struct pinctrl_pin_desc *pins; member in struct:abx500_pinctrl_soc_data
[all...]
H A Dpinctrl-nomadik.h108 * @pins: an array of discrete physical pins used in this group, taken
110 * @num_pins: the number of pins in this group array, i.e. the number of
111 * elements in .pins so we can iterate over that array
112 * @altsetting: the altsetting to apply to all pins in this group to
117 const unsigned int *pins; member in struct:nmk_pingroup
126 * @pins: An array describing all pins the pin controller affects.
127 * All pins which are also GPIOs must be listed first within the
130 * @npins: The number of entries in @pins
142 const struct pinctrl_pin_desc *pins; member in struct:nmk_pinctrl_soc_data
[all...]
/drivers/pinctrl/sh-pfc/
H A Dgpio.c38 struct sh_pfc_gpio_pin *pins; member in struct:sh_pfc_chip
56 struct sh_pfc_gpio_pin *gpio_pin = &chip->pins[idx];
82 struct sh_pfc_gpio_pin *gpio_pin = &chip->pins[idx];
83 const struct sh_pfc_pin *pin = &pfc->info->pins[idx];
124 if (pfc->info->pins[i].enum_id == 0)
142 if (idx < 0 || pfc->info->pins[idx].enum_id == 0)
233 chip->pins = devm_kzalloc(pfc->dev, pfc->info->nr_pins *
234 sizeof(*chip->pins), GFP_KERNEL);
235 if (chip->pins == NULL)
379 /* Register the GPIO to pin mappings. As pins wit
[all...]
/drivers/pinctrl/sirf/
H A Dpinctrl-sirf.h73 * @pins: an array of discrete physical pins used in this group, taken
75 * @num_pins: the number of pins in this group array, i.e. the number of
76 * elements in .pins so we can iterate over that array
80 const unsigned int *pins; member in struct:sirfsoc_pin_group
87 .pins = p, \
/drivers/pinctrl/spear/
H A Dpinctrl-spear.c130 unsigned group, const unsigned **pins, unsigned *num_pins)
134 *pins = pmx->machdata->groups[group]->pins;
163 ret = of_property_count_strings(np, "st,pins");
181 of_property_for_each_string(np, "st,pins", prop, group) {
291 if (gpio_pingroup->pins[j] == pin)
307 * Some SoC have configuration options applicable to group of pins,
395 spear_pinctrl_desc.pins = machdata->pins;
129 spear_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, unsigned group, const unsigned **pins, unsigned *num_pins) argument
H A Dpinctrl-spear.h53 const unsigned *pins; member in struct:spear_gpio_pingroup
84 .pins = __pins, \
105 * @pins: array containing pin numbers
106 * @npins: size of pins array
110 * A representation of a group of pins in the SPEAr pin controller. Each group
115 const unsigned *pins; member in struct:spear_pingroup
136 * @pins: An array describing all pins the pin controller affects.
137 * All pins which are also GPIOs must be listed first within the *array,
139 * @npins: The numbmer of entries in @pins
153 const struct pinctrl_pin_desc *pins; member in struct:spear_pinctrl_machdata
[all...]
/drivers/staging/iio/adc/
H A Dad7816.c349 unsigned short *pins = spi_dev->dev.platform_data; local
353 if (!pins) {
368 chip->rdwr_pin = pins[0];
369 chip->convert_pin = pins[1];
370 chip->busy_pin = pins[2];
/drivers/input/keyboard/
H A Dstmpe-keypad.c174 unsigned int pins = 0; local
178 * Figure out which pins need to be set to the keypad alternate
181 * {cols,rows}_gpios are bitmasks of which pins on the chip can be used
184 * keypad->{cols,rows} are a bitmask of which pins (of the ones useable
192 pins |= 1 << num;
201 pins |= 1 << num;
206 return stmpe_set_altfunc(stmpe, pins, STMPE_BLOCK_KEYPAD);

Completed in 192 milliseconds

123