| /linux-6.15/drivers/input/misc/ |
| H A D | rotary_encoder.c | 61 for (i = 0; i < encoder->gpios->ndescs; ++i) { in rotary_encoder_get_state() 234 if (encoder->gpios->ndescs < 2) { in rotary_encoder_probe() 254 switch (steps_per_period >> (encoder->gpios->ndescs - 2)) { in rotary_encoder_probe() 274 encoder->gpios->ndescs, sizeof(*encoder->irq), in rotary_encoder_probe() 279 for (i = 0; i < encoder->gpios->ndescs; ++i) { in rotary_encoder_probe() 314 for (i = 0; i < encoder->gpios->ndescs; ++i) in rotary_encoder_suspend() 327 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-6.15/drivers/infiniband/hw/mlx5/ |
| H A D | mr.c | 649 return key1.ndescs - key2.ndescs; in cache_ent_key_cmp() 784 int ndescs) in mlx5_mr_cache_alloc() argument 787 .ndescs = ndescs, in mlx5_mr_cache_alloc() 1910 int ndescs, in mlx5_alloc_priv_descs() argument 1976 if (ent->rb_key.ndescs == mr->mmkey.rb_key.ndescs) { in cache_ent_find_and_store() 2443 unsigned int ndescs; in mlx5_ib_alloc_mw() local 2488 mw->mmkey.ndescs = ndescs; in mlx5_ib_alloc_mw() 2584 mr->mmkey.ndescs = 1; in mlx5_ib_map_pa_mr_sg_pi() 2637 mr->mmkey.ndescs = i; in mlx5_ib_sg_to_klms() 2804 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-6.15/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-6.15/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-6.15/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() 317 values = bitmap_alloc(descs->ndescs, GFP_KERNEL); in max3191x_gpiod_multi_set_single_value() 322 bitmap_fill(values, descs->ndescs); in max3191x_gpiod_multi_set_single_value() 324 bitmap_zero(values, descs->ndescs); in max3191x_gpiod_multi_set_single_value() 404 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 | 159 n_latches = priv->clk_gpios->ndescs; in gpio_latch_probe() 160 priv->n_latched_gpios = priv->latched_gpios->ndescs; in gpio_latch_probe()
|
| H A D | gpio-virtuser.c | 127 ctx->ret = gpiod_get_array_value(descs->ndescs, descs->desc, in gpio_virtuser_get_value_array_atomic() 138 return gpiod_get_array_value_cansleep(descs->ndescs, in gpio_virtuser_get_array_value() 162 unsigned long *values __free(bitmap) = bitmap_zalloc(descs->ndescs, in gpio_virtuser_value_array_do_read() 171 bufsize = descs->ndescs + 2; in gpio_virtuser_value_array_do_read() 177 gpio_virtuser_dbgfs_emit_value_array(buf, values, descs->ndescs); in gpio_virtuser_value_array_do_read() 180 descs->ndescs + 1); in gpio_virtuser_value_array_do_read() 207 ctx->ret = gpiod_set_array_value(descs->ndescs, descs->desc, in gpio_virtuser_set_value_array_atomic() 218 return gpiod_set_array_value_cansleep(descs->ndescs, in gpio_virtuser_set_array_value() 241 if (count - 1 != descs->ndescs) in gpio_virtuser_value_array_do_write() 252 unsigned long *values __free(bitmap) = bitmap_zalloc(descs->ndescs, in gpio_virtuser_value_array_do_write() [all …]
|
| H A D | gpiolib.c | 4983 for (descs->ndescs = 0; descs->ndescs < count; descs->ndescs++) { in gpiod_get_array() 4990 descs->desc[descs->ndescs] = desc; in gpiod_get_array() 5022 bitmap_set(array_info->get_mask, descs->ndescs, in gpiod_get_array() 5023 count - descs->ndescs); in gpiod_get_array() 5024 bitmap_set(array_info->set_mask, descs->ndescs, in gpiod_get_array() 5025 count - descs->ndescs); in gpiod_get_array() 5051 __clear_bit(descs->ndescs, in gpiod_get_array() 5053 __clear_bit(descs->ndescs, in gpiod_get_array() 5061 __clear_bit(descs->ndescs, in gpiod_get_array() 5065 __set_bit(descs->ndescs, in gpiod_get_array() [all …]
|
| /linux-6.15/drivers/auxdisplay/ |
| H A D | seg-led-gpio.c | 77 if (priv->segment_gpios->ndescs < 7 || priv->segment_gpios->ndescs > 8) in seg_led_probe()
|
| /linux-6.15/drivers/power/supply/ |
| H A D | gpio-charger.c | 59 int ndescs = gpio_charger->current_limit_gpios->ndescs; in set_charge_current_limit() local 80 for (i = 0; i < ndescs; i++) { in set_charge_current_limit() 82 gpiod_set_value_cansleep(gpios[ndescs-i-1], val); in set_charge_current_limit()
|
| /linux-6.15/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-6.15/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-6.15/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-6.15/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-6.15/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-6.15/drivers/phy/motorola/ |
| H A D | phy-mapphone-mdm6600.c | 328 if (ddata->mode_gpios->ndescs != PHY_MDM6600_NR_MODE_LINES) in phy_mdm6600_init_lines() 337 if (ddata->status_gpios->ndescs != PHY_MDM6600_NR_STATUS_LINES) in phy_mdm6600_init_lines() 346 if (ddata->cmd_gpios->ndescs != PHY_MDM6600_NR_CMD_LINES) in phy_mdm6600_init_lines()
|
| /linux-6.15/drivers/mux/ |
| H A D | gpio.c | 70 WARN_ON(pins != mux_gpio->gpios->ndescs); in mux_gpio_probe()
|
| /linux-6.15/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-6.15/drivers/mfd/ |
| H A D | ene-kb3930.c | 165 if (ddata->off_gpios && ddata->off_gpios->ndescs < 2) { in kb3930_probe()
|
| /linux-6.15/drivers/mmc/core/ |
| H A D | pwrseq_simple.c | 46 int nvalues = reset_gpios->ndescs; in mmc_pwrseq_simple_set_gpios_value()
|
| /linux-6.15/drivers/iio/adc/ |
| H A D | ad7191.c | 172 if (st->odr_gpios->ndescs != 2) in ad7191_config_setup() 213 if (st->pga_gpios->ndescs != 2) in ad7191_config_setup()
|