Home
last modified time | relevance | path

Searched refs:pull (Results 1 – 25 of 63) sorted by relevance

123

/drivers/gpio/
Dgpio-wm831x.c163 const char *label, *pull, *powerdomain; in wm831x_gpio_dbg_show() local
187 pull = "nopull"; in wm831x_gpio_dbg_show()
190 pull = "pulldown"; in wm831x_gpio_dbg_show()
193 pull = "pullup"; in wm831x_gpio_dbg_show()
196 pull = "INVALID PULL"; in wm831x_gpio_dbg_show()
234 pull, in wm831x_gpio_dbg_show()
Dgpio-sim.c258 int pull; in gpio_sim_sysfs_pull_show() local
261 pull = !!test_bit(line_attr->offset, chip->pull_map); in gpio_sim_sysfs_pull_show()
264 return sysfs_emit(buf, "%s\n", gpio_sim_sysfs_pull_strings[pull]); in gpio_sim_sysfs_pull_show()
273 int ret, pull; in gpio_sim_sysfs_pull_store() local
275 pull = sysfs_match_string(gpio_sim_sysfs_pull_strings, buf); in gpio_sim_sysfs_pull_store()
276 if (pull < 0) in gpio_sim_sysfs_pull_store()
277 return pull; in gpio_sim_sysfs_pull_store()
279 ret = gpio_sim_apply_pull(chip, line_attr->offset, pull); in gpio_sim_sysfs_pull_store()
Dgpio-mockup.c45 int pull; member
187 chip->lines[offset].pull = value; in gpio_mockup_apply_pull()
255 __gpio_mockup_set(chip, offset, chip->lines[offset].pull); in gpio_mockup_free()
/drivers/pinctrl/qcom/
Dpinctrl-lpass-lpi.c121 int pull; in lpi_config_get() local
126 pull = FIELD_GET(LPI_GPIO_PULL_MASK, ctl_reg); in lpi_config_get()
130 if (pull == LPI_GPIO_BIAS_DISABLE) in lpi_config_get()
134 if (pull == LPI_GPIO_PULL_DOWN) in lpi_config_get()
138 if (pull == LPI_GPIO_KEEPER) in lpi_config_get()
142 if (pull == LPI_GPIO_PULL_UP) in lpi_config_get()
309 int pull; in lpi_gpio_dbg_show_one() local
326 pull = FIELD_GET(LPI_GPIO_PULL_MASK, ctl_reg); in lpi_gpio_dbg_show_one()
330 seq_printf(s, " %s", pulls[pull]); in lpi_gpio_dbg_show_one()
Dpinctrl-msm.c635 int pull; in msm_gpio_dbg_show_one() local
663 pull = (ctl_reg >> g->pull_bit) & 3; in msm_gpio_dbg_show_one()
682 seq_printf(s, " %s", pulls_no_keeper[pull]); in msm_gpio_dbg_show_one()
684 seq_printf(s, " %s", pulls_keeper[pull]); in msm_gpio_dbg_show_one()
Dpinctrl-ipq8064.c212 #define SDC_PINGROUP(pg_name, ctl, pull, drv) \ argument
223 .pull_bit = pull, \
/drivers/mfd/
Dwm8350-gpio.c184 int pol, int pull, int invert, int debounce) in wm8350_gpio_config() argument
187 if (pull == WM8350_GPIO_PULL_NONE) { in wm8350_gpio_config()
192 } else if (pull == WM8350_GPIO_PULL_UP) { in wm8350_gpio_config()
197 } else if (pull == WM8350_GPIO_PULL_DOWN) { in wm8350_gpio_config()
/drivers/pinctrl/vt8500/
Dpinctrl-wmt.c236 u32 pin, u32 pull, in wmt_pctl_dt_node_to_map_pull() argument
243 if (pull > 2) { in wmt_pctl_dt_node_to_map_pull()
244 dev_err(data->dev, "invalid wm,pull %d\n", pull); in wmt_pctl_dt_node_to_map_pull()
258 switch (pull) { in wmt_pctl_dt_node_to_map_pull()
270 dev_err(data->dev, "invalid pull state %d - disabling\n", pull); in wmt_pctl_dt_node_to_map_pull()
302 u32 pin, func, pull; in wmt_pctl_dt_node_to_map() local
377 (num_pulls > 1 ? i : 0), &pull); in wmt_pctl_dt_node_to_map()
381 err = wmt_pctl_dt_node_to_map_pull(data, np, pin, pull, in wmt_pctl_dt_node_to_map()
/drivers/soc/pxa/
Dmfp.c171 int pin, af, drv, lpm, edge, pull; in mfp_config() local
181 pull = MFP_PULL(c); in mfp_config()
189 if (likely(pull == MFP_PULL_NONE)) { in mfp_config()
194 p->mfpr_run = tmp | mfpr_pull[pull]; in mfp_config()
/drivers/pinctrl/
DKconfig86 functionality. This driver supports the pinmux, push-pull and
153 tristate "TI DA850/OMAP-L138/AM18XX pull-up and pull-down groups"
159 pull-up and pull-down pin groups.
245 It provides pin config functions such as pull-up, pull-down,
283 function in alternate mode. This driver also configure push-pull,
365 functionality. This driver supports the pinmux, push-pull and
448 and configuring push-pull, open-drain, and can also be used as
486 It provides pin config functions such as pull-up, pull-down,
511 such as pull-up, slew rate, etc.
Dpinctrl-rockchip.c2461 int pin_num, int pull) in rockchip_set_pull() argument
2471 dev_dbg(dev, "setting pull of GPIO%d-%d to %d\n", bank->bank_num, pin_num, pull); in rockchip_set_pull()
2475 return pull ? -EINVAL : 0; in rockchip_set_pull()
2485 if (pull == PIN_CONFIG_BIAS_DISABLE) in rockchip_set_pull()
2503 if (rockchip_pull_list[pull_type][i] == pull) { in rockchip_set_pull()
2518 dev_err(dev, "unsupported pull setting %d\n", pull); in rockchip_set_pull()
2742 enum pin_config_param pull) in rockchip_pinconf_pull_valid() argument
2747 return (pull == PIN_CONFIG_BIAS_PULL_PIN_DEFAULT || in rockchip_pinconf_pull_valid()
2748 pull == PIN_CONFIG_BIAS_DISABLE); in rockchip_pinconf_pull_valid()
2750 return pull ? false : true; in rockchip_pinconf_pull_valid()
[all …]
/drivers/pinctrl/starfive/
DKconfig17 peripherals supporting inputs, outputs, configuring pull-up/pull-down
/drivers/pinctrl/nomadik/
Dpinctrl-nomadik.c188 #define PIN_CFG_INPUT(num, alt, pull) \ argument
190 (PIN_NUM(num) | PIN_##alt | PIN_INPUT_##pull))
314 unsigned offset, enum nmk_gpio_pull pull) in __nmk_gpio_set_pull() argument
319 if (pull == NMK_GPIO_PULL_NONE) { in __nmk_gpio_set_pull()
328 if (pull == NMK_GPIO_PULL_UP) { in __nmk_gpio_set_pull()
331 } else if (pull == NMK_GPIO_PULL_DOWN) { in __nmk_gpio_set_pull()
921 bool pull; in nmk_gpio_dbg_show_one() local
935 pull = !(readl(nmk_chip->addr + NMK_GPIO_PDIS) & BIT(offset)); in nmk_gpio_dbg_show_one()
949 const int pullidx = pull ? 1 : 0; in nmk_gpio_dbg_show_one()
1707 int pull, slpm, output, val, i; in nmk_pin_config_set() local
[all …]
/drivers/staging/r8188eu/hal/
Drtl8188eu_xmit.c152 int pull = 0; in update_txdesc() local
298 return pull; in update_txdesc()
306 int t, sz, w_sz, pull = 0; in rtw_dump_xframe() local
333 pull = update_txdesc(pxmitframe, mem_addr, sz, false); in rtw_dump_xframe()
335 if (pull) { in rtw_dump_xframe()
/drivers/pinctrl/bcm/
DKconfig137 as bias pull up, pull down, and drive strength configurations, when
188 as bias pull up, pull down, and drive strength configurations, when
Dpinctrl-bcm2835.c787 struct device_node *np, u32 pin, u32 pull, in bcm2835_pctl_dt_node_to_map_pull() argument
793 if (pull > 2) { in bcm2835_pctl_dt_node_to_map_pull()
794 dev_err(pc->dev, "%pOF: invalid brcm,pull %d\n", np, pull); in bcm2835_pctl_dt_node_to_map_pull()
801 configs[0] = pinconf_to_config_packed(BCM2835_PINCONF_PARAM_PULL, pull); in bcm2835_pctl_dt_node_to_map_pull()
821 u32 pin, func, pull; in bcm2835_pctl_dt_node_to_map() local
896 (num_pulls > 1) ? i : 0, &pull); in bcm2835_pctl_dt_node_to_map()
900 pull, &cur_map); in bcm2835_pctl_dt_node_to_map()
/drivers/pinctrl/intel/
Dpinctrl-baytrail.c916 u32 conf, pull, val, debounce; in byt_pin_config_get() local
921 pull = conf & BYT_PULL_ASSIGN_MASK; in byt_pin_config_get()
927 if (pull) in byt_pin_config_get()
932 if ((val & BYT_INPUT_EN) || pull != BYT_PULL_ASSIGN_DOWN) in byt_pin_config_get()
940 if ((val & BYT_INPUT_EN) || pull != BYT_PULL_ASSIGN_UP) in byt_pin_config_get()
1249 const char *pull = NULL; in byt_gpio_dbg_show() local
1289 pull = "up"; in byt_gpio_dbg_show()
1292 pull = "down"; in byt_gpio_dbg_show()
1324 if (pull && pull_str) in byt_gpio_dbg_show()
1325 seq_printf(s, " %-4s %-3s", pull, pull_str); in byt_gpio_dbg_show()
Dpinctrl-lynxpoint.c498 u32 value, pull; in lp_pin_config_get() local
505 pull = value & GPIWP_MASK; in lp_pin_config_get()
509 if (pull != GPIWP_NONE) in lp_pin_config_get()
514 if (pull != GPIWP_DOWN) in lp_pin_config_get()
520 if (pull != GPIWP_UP) in lp_pin_config_get()
Dpinctrl-cherryview.c983 u32 ctrl0, pull; in chv_config_set_pull() local
999 pull = CHV_PADCTRL0_TERM_1K << CHV_PADCTRL0_TERM_SHIFT; in chv_config_set_pull()
1002 pull = CHV_PADCTRL0_TERM_5K << CHV_PADCTRL0_TERM_SHIFT; in chv_config_set_pull()
1005 pull = CHV_PADCTRL0_TERM_20K << CHV_PADCTRL0_TERM_SHIFT; in chv_config_set_pull()
1012 ctrl0 |= CHV_PADCTRL0_TERM_UP | pull; in chv_config_set_pull()
1020 pull = CHV_PADCTRL0_TERM_5K << CHV_PADCTRL0_TERM_SHIFT; in chv_config_set_pull()
1023 pull = CHV_PADCTRL0_TERM_20K << CHV_PADCTRL0_TERM_SHIFT; in chv_config_set_pull()
1030 ctrl0 |= pull; in chv_config_set_pull()
/drivers/pinctrl/freescale/
Dpinctrl-mxs.c260 u8 ma, vol, pull, bank, shift; in mxs_pinconf_group_set() local
271 pull = CONFIG_TO_PULL(config); in mxs_pinconf_group_set()
298 reg = d->base + d->soc->regs->pull; in mxs_pinconf_group_set()
301 if (pull) in mxs_pinconf_group_set()
Dpinctrl-mxs.h68 u16 pull; member
Dpinctrl-imx23.c256 .pull = 0x400,
/drivers/pinctrl/renesas/
Dpinctrl-rzn1.c491 u32 pull, drive, l1mux; in rzn1_pinconf_get() local
500 pull = (l1 >> RZN1_L1_PIN_PULL) & 0x3; in rzn1_pinconf_get()
505 if (pull != RZN1_L1_PIN_PULL_UP) in rzn1_pinconf_get()
509 if (pull != RZN1_L1_PIN_PULL_DOWN) in rzn1_pinconf_get()
513 if (pull != RZN1_L1_PIN_PULL_NONE) in rzn1_pinconf_get()
/drivers/gpu/drm/nouveau/nvkm/engine/sec/fuc/
Dg98.fuc0s359 // ok, will need to pull a QUERY object, prepare offsets
369 // pull the first one
385 // ok, we'll need to pull second one too
502 // pull updated IV
/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c366 int pull = sunxi_pctrl_parse_bias_prop(node); in sunxi_pctrl_build_pin_config() local
368 if (pull < 0) { in sunxi_pctrl_build_pin_config()
369 ret = pull; in sunxi_pctrl_build_pin_config()
373 if (pull != PIN_CONFIG_BIAS_DISABLE) in sunxi_pctrl_build_pin_config()
376 pinconfig[idx++] = pinconf_to_config_packed(pull, arg); in sunxi_pctrl_build_pin_config()

123