Home
last modified time | relevance | path

Searched refs:ndescs (Results 1 – 25 of 43) sorted by relevance

12

/linux/drivers/gpio/
H A Dgpio-max3191x.c171 (max3191x->fault_pins->ndescs == 1) in max3191x_readout_locked()
300 if (max3191x->db0_pins->ndescs == 1) in max3191x_set_config()
312 static void gpiod_set_array_single_value_cansleep(unsigned int ndescs, in gpiod_set_array_single_value_cansleep() argument
319 values = bitmap_alloc(ndescs, GFP_KERNEL); in gpiod_set_array_single_value_cansleep()
324 bitmap_fill(values, ndescs); in gpiod_set_array_single_value_cansleep()
326 bitmap_zero(values, ndescs); in gpiod_set_array_single_value_cansleep()
328 gpiod_set_array_value_cansleep(ndescs, desc, info, values); in gpiod_set_array_single_value_cansleep()
400 max3191x->modesel_pins->ndescs, in max3191x_probe()
408 max3191x->db0_pins->ndescs != max3191x->db1_pins->ndescs) { in max3191x_probe()
H A Dgpio-sloppy-logic-analyzer.c61 ret = gpiod_get_array_value(d->ndescs, d->desc, d->info, sptr); in gpio_la_get_array()
248 if (priv->descs->ndescs > GPIO_LA_MAX_PROBES) in gpio_la_poll_probe()
252 priv->descs->ndescs); in gpio_la_poll_probe()
253 if (ret >= 0 && ret != priv->descs->ndescs) in gpio_la_poll_probe()
258 for (i = 0; i < priv->descs->ndescs; i++) { in gpio_la_poll_probe()
H A Dgpio-latch.c157 n_latches = priv->clk_gpios->ndescs; in gpio_latch_probe()
158 priv->n_latched_gpios = priv->latched_gpios->ndescs; in gpio_latch_probe()
H A Dgpio-virtuser.c126 ctx->ret = gpiod_get_array_value(descs->ndescs, descs->desc, in gpio_virtuser_get_value_array_atomic()
137 return gpiod_get_array_value_cansleep(descs->ndescs, in gpio_virtuser_get_array_value()
161 unsigned long *values __free(bitmap) = bitmap_zalloc(descs->ndescs, in gpio_virtuser_value_array_do_read()
170 bufsize = descs->ndescs + 2; in gpio_virtuser_value_array_do_read()
176 gpio_virtuser_dbgfs_emit_value_array(buf, values, descs->ndescs); in gpio_virtuser_value_array_do_read()
179 descs->ndescs + 1); in gpio_virtuser_value_array_do_read()
206 ctx->ret = gpiod_set_array_value(descs->ndescs, descs->desc, in gpio_virtuser_set_value_array_atomic()
217 return gpiod_set_array_value_cansleep(descs->ndescs, in gpio_virtuser_set_array_value()
240 if (count - 1 != descs->ndescs) in gpio_virtuser_value_array_do_write()
251 unsigned long *values __free(bitmap) = bitmap_zalloc(descs->ndescs, in gpio_virtuser_value_array_do_write()
[all …]
H A Dgpiolib.c4660 for (descs->ndescs = 0; descs->ndescs < count; descs->ndescs++) { in gpiod_get_array()
4667 descs->desc[descs->ndescs] = desc; in gpiod_get_array()
4699 bitmap_set(array_info->get_mask, descs->ndescs, in gpiod_get_array()
4700 count - descs->ndescs); in gpiod_get_array()
4701 bitmap_set(array_info->set_mask, descs->ndescs, in gpiod_get_array()
4702 count - descs->ndescs); in gpiod_get_array()
4728 __clear_bit(descs->ndescs, in gpiod_get_array()
4730 __clear_bit(descs->ndescs, in gpiod_get_array()
4737 __clear_bit(descs->ndescs, in gpiod_get_array()
4741 __set_bit(descs->ndescs, in gpiod_get_array()
[all …]
/linux/drivers/input/misc/
H A Drotary_encoder.c61 for (i = 0; i < encoder->gpios->ndescs; ++i) { in rotary_encoder_get_state()
241 if (encoder->gpios->ndescs < 2) { in rotary_encoder_probe()
261 switch (steps_per_period >> (encoder->gpios->ndescs - 2)) { in rotary_encoder_probe()
281 encoder->gpios->ndescs, sizeof(*encoder->irq), in rotary_encoder_probe()
286 for (i = 0; i < encoder->gpios->ndescs; ++i) { in rotary_encoder_probe()
321 for (i = 0; i < encoder->gpios->ndescs; ++i) in rotary_encoder_suspend()
334 for (i = 0; i < encoder->gpios->ndescs; ++i) in rotary_encoder_resume()
H A Dgpio_decoder.c30 for (i = 0; i < gpios->ndescs; i++) { in gpio_decoder_get_gpios_state()
80 if (decoder->input_gpios->ndescs < 2) { in gpio_decoder_probe()
86 max = (1U << decoder->input_gpios->ndescs) - 1; in gpio_decoder_probe()
/linux/drivers/infiniband/hw/mlx5/
H A Dmr.c649 return key1.ndescs - key2.ndescs; in cache_ent_key_cmp()
785 int ndescs) in mlx5_mr_cache_alloc() argument
788 .ndescs = ndescs, in mlx5_mr_cache_alloc()
1900 int ndescs, in mlx5_alloc_priv_descs() argument
1966 if (ent->rb_key.ndescs == mr->mmkey.rb_key.ndescs) { in cache_ent_find_and_store()
2406 unsigned int ndescs; in mlx5_ib_alloc_mw() local
2451 mw->mmkey.ndescs = ndescs; in mlx5_ib_alloc_mw()
2547 mr->mmkey.ndescs = 1; in mlx5_ib_map_pa_mr_sg_pi()
2600 mr->mmkey.ndescs = i; in mlx5_ib_sg_to_klms()
2767 mr->mmkey.ndescs = 0; in mlx5_ib_map_mr_sg_pi()
[all …]
H A Dwr.c164 int size = (mr->mmkey.ndescs + mr->meta_ndescs) * mr->desc_size; in set_reg_umr_seg()
193 int ndescs = ALIGN(mr->mmkey.ndescs + mr->meta_ndescs, 8) >> 1; in set_reg_mkey_seg() local
201 ndescs *= 2; in set_reg_mkey_seg()
208 seg->xlt_oct_size = cpu_to_be32(ndescs); in set_reg_mkey_seg()
221 int bcount = mr->desc_size * (mr->mmkey.ndescs + mr->meta_ndescs); in set_reg_data_seg()
643 int mr_list_size = (mr->mmkey.ndescs + mr->meta_ndescs) * mr->desc_size; in set_reg_wr()
890 pa_pi_mr.mmkey.ndescs = mr->mmkey.ndescs; in handle_reg_mr_integrity()
/linux/drivers/clk/mvebu/
H A Dclk-corediv.c42 unsigned int ndescs; member
196 .ndescs = ARRAY_SIZE(mvebu_corediv_desc),
212 .ndescs = ARRAY_SIZE(mvebu_corediv_desc),
228 .ndescs = ARRAY_SIZE(mvebu_corediv_desc),
240 .ndescs = ARRAY_SIZE(mv98dx3236_corediv_desc),
268 clk_data.clk_num = soc_desc->ndescs; in mvebu_corediv_clk_init()
/linux/drivers/auxdisplay/
H A Dseg-led-gpio.c39 gpiod_set_array_value_cansleep(priv->segment_gpios->ndescs, priv->segment_gpios->desc, in seg_led_update()
78 if (priv->segment_gpios->ndescs < 7 || priv->segment_gpios->ndescs > 8) in seg_led_probe()
/linux/drivers/regulator/
H A Dsun20i-regulator.c18 unsigned int ndescs; member
81 .ndescs = ARRAY_SIZE(sun20i_d1_system_ldo_descs),
125 for (unsigned int i = 0; i < data->ndescs; ++i) { in sun20i_regulator_probe()
/linux/drivers/mux/
H A Dgpio.c31 gpiod_set_array_value_cansleep(mux_gpio->gpios->ndescs, in mux_gpio_set()
72 WARN_ON(pins != mux_gpio->gpios->ndescs); in mux_gpio_probe()
/linux/drivers/power/supply/
H A Dgpio-charger.c59 int ndescs = gpio_charger->current_limit_gpios->ndescs; in set_charge_current_limit() local
72 for (i = 0; i < ndescs; i++) { in set_charge_current_limit()
74 gpiod_set_value_cansleep(gpios[ndescs-i-1], val); in set_charge_current_limit()
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_txrx.c1690 int ndescs; in ionic_tx_descs_needed() local
1697 return ndescs; in ionic_tx_descs_needed()
1699 ndescs = 1; in ionic_tx_descs_needed()
1701 return ndescs; in ionic_tx_descs_needed()
1708 return ndescs; in ionic_tx_descs_needed()
1763 return ndescs; in ionic_tx_descs_needed()
1771 int err, ndescs; in ionic_start_hwstamp_xmit() local
1780 if (unlikely(ndescs < 0)) in ionic_start_hwstamp_xmit()
1808 int ndescs; in ionic_start_xmit() local
1825 if (ndescs < 0) in ionic_start_xmit()
[all …]
/linux/drivers/mtd/nand/raw/
H A Dams-delta.c62 gpiod_set_raw_array_value(data_gpiods->ndescs, data_gpiods->desc, in gpio_nand_io_write()
74 for (i = 0; i < data_gpiods->ndescs; i++) in gpio_nand_dir_output()
92 gpiod_get_raw_array_value(data_gpiods->ndescs, data_gpiods->desc, in gpio_nand_io_read()
106 for (i = 0; i < data_gpiods->ndescs; i++) in gpio_nand_dir_input()
/linux/sound/soc/codecs/
H A Dmax9759.c168 if (priv->gpiod_gain->ndescs != 2) { in max9759_probe()
170 priv->gpiod_gain->ndescs); in max9759_probe()
/linux/drivers/pinctrl/aspeed/
H A Dpinmux-aspeed.c92 for (i = 0; i < expr->ndescs; i++) { in aspeed_sig_expr_eval()
H A Dpinmux-aspeed.h466 int ndescs; member
524 .ndescs = ARRAY_SIZE(SIG_DESC_LIST_SYM(sig, group)), \
/linux/drivers/net/mdio/
H A Dmdio-mux-gpio.c33 gpiod_set_array_value_cansleep(s->gpios->ndescs, s->gpios->desc, in mdio_mux_gpio_switch_fn()
/linux/drivers/phy/motorola/
H A Dphy-mapphone-mdm6600.c330 if (ddata->mode_gpios->ndescs != PHY_MDM6600_NR_MODE_LINES) in phy_mdm6600_init_lines()
339 if (ddata->status_gpios->ndescs != PHY_MDM6600_NR_STATUS_LINES) in phy_mdm6600_init_lines()
348 if (ddata->cmd_gpios->ndescs != PHY_MDM6600_NR_CMD_LINES) in phy_mdm6600_init_lines()
/linux/drivers/iio/amplifiers/
H A Dhmc425a.c164 gpiod_set_array_value_cansleep(st->gpios->ndescs, st->gpios->desc, in hmc425a_write()
376 if (st->gpios->ndescs != st->chip_info->num_gpios) { in hmc425a_probe()
/linux/drivers/dma/
H A Dmv_xor_v2.c281 unsigned int ndescs; in mv_xor_v2_interrupt_handler() local
286 ndescs = ((reg >> MV_XOR_V2_DMA_DESQ_DONE_PENDING_SHIFT) & in mv_xor_v2_interrupt_handler()
290 if (!ndescs) in mv_xor_v2_interrupt_handler()
/linux/drivers/mfd/
H A Dene-kb3930.c165 if (ddata->off_gpios->ndescs < 2) { in kb3930_probe()
/linux/drivers/mmc/core/
H A Dpwrseq_simple.c43 int nvalues = reset_gpios->ndescs; in mmc_pwrseq_simple_set_gpios_value()

12