/openbmc/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-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 | gpiolib.c | 4388 for (descs->ndescs = 0; descs->ndescs < count; descs->ndescs++) { in gpiod_get_array() 4395 descs->desc[descs->ndescs] = desc; in gpiod_get_array() 4427 bitmap_set(array_info->get_mask, descs->ndescs, in gpiod_get_array() 4428 count - descs->ndescs); in gpiod_get_array() 4429 bitmap_set(array_info->set_mask, descs->ndescs, in gpiod_get_array() 4430 count - descs->ndescs); in gpiod_get_array() 4456 __clear_bit(descs->ndescs, in gpiod_get_array() 4458 __clear_bit(descs->ndescs, in gpiod_get_array() 4465 __clear_bit(descs->ndescs, in gpiod_get_array() 4469 __set_bit(descs->ndescs, in gpiod_get_array() [all …]
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | mr.c | 683 return key1.ndescs - key2.ndescs; in cache_ent_key_cmp() 817 int ndescs) in mlx5_mr_cache_alloc() argument 820 .ndescs = ndescs, in mlx5_mr_cache_alloc() 1780 int ndescs, in mlx5_alloc_priv_descs() argument 1846 if (ent->rb_key.ndescs == mr->mmkey.rb_key.ndescs) { in cache_ent_find_and_store() 2205 unsigned int ndescs; in mlx5_ib_alloc_mw() local 2250 mw->mmkey.ndescs = ndescs; in mlx5_ib_alloc_mw() 2346 mr->mmkey.ndescs = 1; in mlx5_ib_map_pa_mr_sg_pi() 2399 mr->mmkey.ndescs = i; in mlx5_ib_sg_to_klms() 2566 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()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-shadow-virtqueue.c | 254 unsigned ndescs = in_num + out_num; in vhost_svq_add() local 257 if (unlikely(ndescs > vhost_svq_available_slots(svq))) { in vhost_svq_add() 266 svq->num_free -= ndescs; in vhost_svq_add() 268 svq->desc_state[qemu_head].ndescs = ndescs; in vhost_svq_add() 441 if (unlikely(!svq->desc_state[used_elem.id].ndescs)) { in vhost_svq_get_buf() 448 num = svq->desc_state[used_elem.id].ndescs; in vhost_svq_get_buf() 449 svq->desc_state[used_elem.id].ndescs = 0; in vhost_svq_get_buf()
|
H A D | virtio.c | 926 vq->used_elems[idx].ndescs = elem->ndescs; in virtqueue_packed_fill() 1064 ndescs += vq->used_elems[0].ndescs; in virtqueue_packed_flush() 1067 ndescs += vq->used_elems[i].ndescs; in virtqueue_packed_flush() 1071 vq->inuse -= ndescs; in virtqueue_packed_flush() 1119 ndescs += vq->used_elems[i].ndescs; in virtqueue_ordered_flush() 1144 vq->inuse -= ndescs; in virtqueue_ordered_flush() 1789 elem->ndescs = 1; in virtqueue_split_pop() 1803 vq->used_elems[idx].ndescs = elem->ndescs; in virtqueue_split_pop() 1943 vq->used_elems[vq->last_avail_idx].ndescs = elem->ndescs; in virtqueue_packed_pop() 4332 ndescs = 0; in qmp_x_query_virtio_queue_element() [all …]
|
H A D | vhost-shadow-virtqueue.h | 25 unsigned int ndescs; member
|
/openbmc/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()
|
/openbmc/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_txrx.c | 1246 int ndescs; in ionic_tx_descs_needed() local 1251 ndescs = skb_shinfo(skb)->gso_segs; in ionic_tx_descs_needed() 1253 ndescs = 1; in ionic_tx_descs_needed() 1257 return ndescs; in ionic_tx_descs_needed() 1266 return ndescs; in ionic_tx_descs_needed() 1279 if (ionic_q_has_space(q, ndescs)) { in ionic_maybe_stop_tx() 1293 int err, ndescs; in ionic_start_hwstamp_xmit() local 1300 ndescs = ionic_tx_descs_needed(q, skb); in ionic_start_hwstamp_xmit() 1301 if (unlikely(ndescs < 0)) in ionic_start_hwstamp_xmit() 1329 int ndescs; in ionic_start_xmit() local [all …]
|
/openbmc/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()
|
/openbmc/u-boot/drivers/pinctrl/aspeed/ |
H A D | pinctrl-aspeed.h | 9 int ndescs; member
|
H A D | pinctrl_ast2500.c | 196 for( i = 0; i < config->ndescs; i++) { in ast2500_pinctrl_group_set()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/drivers/iio/amplifiers/ |
H A D | hmc425a.c | 51 gpiod_set_array_value_cansleep(st->gpios->ndescs, st->gpios->desc, in hmc425a_write() 200 if (st->gpios->ndescs != st->chip_info->num_gpios) { in hmc425a_probe()
|
/openbmc/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)), \
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/drivers/mmc/core/ |
H A D | pwrseq_simple.c | 43 int nvalues = reset_gpios->ndescs; in mmc_pwrseq_simple_set_gpios_value()
|
/openbmc/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()
|