/linux/drivers/gpio/ |
H A D | gpio-max3191x.c | 171 (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 D | gpio-sloppy-logic-analyzer.c | 61 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 D | gpio-latch.c | 157 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 D | gpio-virtuser.c | 126 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 D | gpiolib.c | 4660 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 D | rotary_encoder.c | 61 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 D | gpio_decoder.c | 30 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 D | mr.c | 649 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 D | wr.c | 164 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 D | clk-corediv.c | 42 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 D | seg-led-gpio.c | 39 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 D | sun20i-regulator.c | 18 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 D | gpio.c | 31 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 D | gpio-charger.c | 59 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 D | ionic_txrx.c | 1690 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 D | ams-delta.c | 62 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 D | max9759.c | 168 if (priv->gpiod_gain->ndescs != 2) { in max9759_probe() 170 priv->gpiod_gain->ndescs); in max9759_probe()
|
/linux/drivers/pinctrl/aspeed/ |
H A D | pinmux-aspeed.c | 92 for (i = 0; i < expr->ndescs; i++) { in aspeed_sig_expr_eval()
|
H A D | pinmux-aspeed.h | 466 int ndescs; member 524 .ndescs = ARRAY_SIZE(SIG_DESC_LIST_SYM(sig, group)), \
|
/linux/drivers/net/mdio/ |
H A D | mdio-mux-gpio.c | 33 gpiod_set_array_value_cansleep(s->gpios->ndescs, s->gpios->desc, in mdio_mux_gpio_switch_fn()
|
/linux/drivers/phy/motorola/ |
H A D | phy-mapphone-mdm6600.c | 330 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 D | hmc425a.c | 164 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 D | mv_xor_v2.c | 281 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 D | ene-kb3930.c | 165 if (ddata->off_gpios->ndescs < 2) { in kb3930_probe()
|
/linux/drivers/mmc/core/ |
H A D | pwrseq_simple.c | 43 int nvalues = reset_gpios->ndescs; in mmc_pwrseq_simple_set_gpios_value()
|