Home
last modified time | relevance | path

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

12

/linux-5.19.10/drivers/gpio/
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()
Dgpiolib.c4239 for (descs->ndescs = 0; descs->ndescs < count; ) { in gpiod_get_array()
4240 desc = gpiod_get_index(dev, con_id, descs->ndescs, flags); in gpiod_get_array()
4246 descs->desc[descs->ndescs] = desc; in gpiod_get_array()
4253 if (descs->ndescs == 0 && gpio_chip_hwgpio(desc) == 0) { in gpiod_get_array()
4268 struct_size(descs, desc, descs->ndescs + 1)); in gpiod_get_array()
4281 bitmap_set(array_info->get_mask, descs->ndescs, in gpiod_get_array()
4282 count - descs->ndescs); in gpiod_get_array()
4283 bitmap_set(array_info->set_mask, descs->ndescs, in gpiod_get_array()
4284 count - descs->ndescs); in gpiod_get_array()
4289 __clear_bit(descs->ndescs, array_info->get_mask); in gpiod_get_array()
[all …]
/linux-5.19.10/drivers/input/misc/
Drotary_encoder.c61 for (i = 0; i < encoder->gpios->ndescs; ++i) { in rotary_encoder_get_state()
245 if (encoder->gpios->ndescs < 2) { in rotary_encoder_probe()
266 switch (steps_per_period >> (encoder->gpios->ndescs - 2)) { in rotary_encoder_probe()
286 encoder->gpios->ndescs, sizeof(*encoder->irq), in rotary_encoder_probe()
291 for (i = 0; i < encoder->gpios->ndescs; ++i) { in rotary_encoder_probe()
326 for (i = 0; i < encoder->gpios->ndescs; ++i) in rotary_encoder_suspend()
339 for (i = 0; i < encoder->gpios->ndescs; ++i) in rotary_encoder_resume()
Dgpio_decoder.c38 for (i = 0; i < gpios->ndescs; i++) { in gpio_decoder_get_gpios_state()
88 if (decoder->input_gpios->ndescs < 2) { in gpio_decoder_probe()
94 max = (1U << decoder->input_gpios->ndescs) - 1; in gpio_decoder_probe()
/linux-5.19.10/drivers/infiniband/hw/mlx5/
Dmr.c181 static int get_mkc_octo_size(unsigned int access_mode, unsigned int ndescs) in get_mkc_octo_size() argument
187 ret = DIV_ROUND_UP(ndescs, MLX5_IB_UMR_OCTOWORD / in get_mkc_octo_size()
191 ret = DIV_ROUND_UP(ndescs, MLX5_IB_UMR_OCTOWORD / in get_mkc_octo_size()
216 get_mkc_octo_size(ent->access_mode, ent->ndescs)); in alloc_cache_mr()
729 ent->ndescs = 1 << ent->order; in mlx5_mr_cache_init()
1482 int ndescs, in mlx5_alloc_priv_descs() argument
1487 int size = ndescs * desc_size; in mlx5_alloc_priv_descs()
1606 static void mlx5_set_umr_free_mkey(struct ib_pd *pd, u32 *in, int ndescs, in mlx5_set_umr_free_mkey() argument
1616 MLX5_SET(mkc, mkc, translations_octword_size, ndescs); in mlx5_set_umr_free_mkey()
1624 int ndescs, int desc_size, int page_shift, in _mlx5_alloc_mkey_descs() argument
[all …]
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()
Dodp.c882 sizeof(*pklm) * (mmkey->ndescs - 2); in pagefault_single_data_segment()
904 for (i = 0; bcnt && i < mmkey->ndescs; i++, pklm++) { in pagefault_single_data_segment()
1599 ent->ndescs = MLX5_IMR_MTT_ENTRIES; in mlx5_odp_init_mr_cache_entry()
1606 ent->ndescs = mlx5_imr_ksm_entries; in mlx5_odp_init_mr_cache_entry()
Dmlx5_ib.h613 unsigned int ndescs; member
751 unsigned int ndescs; member
/linux-5.19.10/drivers/clk/mvebu/
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-5.19.10/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c1137 int ndescs; in ionic_tx_descs_needed() local
1142 ndescs = skb_shinfo(skb)->gso_segs; in ionic_tx_descs_needed()
1144 ndescs = 1; in ionic_tx_descs_needed()
1148 return ndescs; in ionic_tx_descs_needed()
1157 return ndescs; in ionic_tx_descs_needed()
1160 static int ionic_maybe_stop_tx(struct ionic_queue *q, int ndescs) in ionic_maybe_stop_tx() argument
1164 if (unlikely(!ionic_q_has_space(q, ndescs))) { in ionic_maybe_stop_tx()
1170 if (ionic_q_has_space(q, ndescs)) { in ionic_maybe_stop_tx()
1184 int err, ndescs; in ionic_start_hwstamp_xmit() local
1191 ndescs = ionic_tx_descs_needed(q, skb); in ionic_start_hwstamp_xmit()
[all …]
/linux-5.19.10/drivers/mux/
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-5.19.10/drivers/power/supply/
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-5.19.10/drivers/mtd/nand/raw/
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-5.19.10/sound/soc/codecs/
Dmax9759.c168 if (priv->gpiod_gain->ndescs != 2) { in max9759_probe()
170 priv->gpiod_gain->ndescs); in max9759_probe()
/linux-5.19.10/drivers/iio/amplifiers/
Dhmc425a.c52 gpiod_set_array_value_cansleep(st->gpios->ndescs, st->gpios->desc, in hmc425a_write()
208 if (st->gpios->ndescs != st->chip_info->num_gpios) { in hmc425a_probe()
/linux-5.19.10/drivers/pinctrl/aspeed/
Dpinmux-aspeed.c92 for (i = 0; i < expr->ndescs; i++) { in aspeed_sig_expr_eval()
Dpinmux-aspeed.h466 int ndescs; member
524 .ndescs = ARRAY_SIZE(SIG_DESC_LIST_SYM(sig, group)), \
/linux-5.19.10/drivers/net/mdio/
Dmdio-mux-gpio.c33 gpiod_set_array_value_cansleep(s->gpios->ndescs, s->gpios->desc, in mdio_mux_gpio_switch_fn()
/linux-5.19.10/drivers/phy/motorola/
Dphy-mapphone-mdm6600.c341 if (ddata->mode_gpios->ndescs != PHY_MDM6600_NR_MODE_LINES) in phy_mdm6600_init_lines()
350 if (ddata->status_gpios->ndescs != PHY_MDM6600_NR_STATUS_LINES) in phy_mdm6600_init_lines()
359 if (ddata->cmd_gpios->ndescs != PHY_MDM6600_NR_CMD_LINES) in phy_mdm6600_init_lines()
/linux-5.19.10/drivers/dma/
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-5.19.10/drivers/mmc/core/
Dpwrseq_simple.c43 int nvalues = reset_gpios->ndescs; in mmc_pwrseq_simple_set_gpios_value()
/linux-5.19.10/drivers/mfd/
Dene-kb3930.c165 if (ddata->off_gpios->ndescs < 2) { in kb3930_probe()
/linux-5.19.10/drivers/mtd/maps/
Dphysmap-core.c137 for (i = 0; i < info->gpios->ndescs; i++) { in physmap_set_addr_gpios()
534 info->gpios->ndescs : 0)); in physmap_flash_probe()
/linux-5.19.10/samples/bpf/
Dxdpsock_user.c1358 size_t ndescs; in complete_tx_l2fwd() local
1373 ndescs = (xsk->outstanding_tx > opt_batch_size) ? opt_batch_size : in complete_tx_l2fwd()
1377 rcvd = xsk_ring_cons__peek(&umem->cq, ndescs, &idx_cq); in complete_tx_l2fwd()
/linux-5.19.10/include/linux/gpio/
Dconsumer.h24 unsigned int ndescs; member

12