Home
last modified time | relevance | path

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

12

/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.c4167 for (descs->ndescs = 0; descs->ndescs < count; ) { in gpiod_get_array()
4168 desc = gpiod_get_index(dev, con_id, descs->ndescs, flags); in gpiod_get_array()
4174 descs->desc[descs->ndescs] = desc; in gpiod_get_array()
4181 if (descs->ndescs == 0 && gpio_chip_hwgpio(desc) == 0) { in gpiod_get_array()
4196 struct_size(descs, desc, descs->ndescs + 1)); in gpiod_get_array()
4209 bitmap_set(array_info->get_mask, descs->ndescs, in gpiod_get_array()
4210 count - descs->ndescs); in gpiod_get_array()
4211 bitmap_set(array_info->set_mask, descs->ndescs, in gpiod_get_array()
4212 count - descs->ndescs); in gpiod_get_array()
4217 __clear_bit(descs->ndescs, array_info->get_mask); in gpiod_get_array()
[all …]
/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()
/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()
/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c1153 int ndescs; in ionic_tx_descs_needed() local
1158 ndescs = skb_shinfo(skb)->gso_segs; in ionic_tx_descs_needed()
1160 ndescs = 1; in ionic_tx_descs_needed()
1164 return ndescs; in ionic_tx_descs_needed()
1173 return ndescs; in ionic_tx_descs_needed()
1176 static int ionic_maybe_stop_tx(struct ionic_queue *q, int ndescs) in ionic_maybe_stop_tx() argument
1180 if (unlikely(!ionic_q_has_space(q, ndescs))) { in ionic_maybe_stop_tx()
1187 if (ionic_q_has_space(q, ndescs)) { in ionic_maybe_stop_tx()
1201 int err, ndescs; in ionic_start_hwstamp_xmit() local
1208 ndescs = ionic_tx_descs_needed(q, skb); in ionic_start_hwstamp_xmit()
[all …]
/drivers/infiniband/hw/mlx5/
Dmr.c1889 int ndescs, in mlx5_alloc_priv_descs() argument
1894 int size = ndescs * desc_size; in mlx5_alloc_priv_descs()
2013 static void mlx5_set_umr_free_mkey(struct ib_pd *pd, u32 *in, int ndescs, in mlx5_set_umr_free_mkey() argument
2023 MLX5_SET(mkc, mkc, translations_octword_size, ndescs); in mlx5_set_umr_free_mkey()
2031 int ndescs, int desc_size, int page_shift, in _mlx5_alloc_mkey_descs() argument
2039 mr->max_descs = ndescs; in _mlx5_alloc_mkey_descs()
2041 err = mlx5_alloc_priv_descs(pd->device, mr, ndescs, desc_size); in _mlx5_alloc_mkey_descs()
2045 mlx5_set_umr_free_mkey(pd, in, ndescs, access_mode, page_shift); in _mlx5_alloc_mkey_descs()
2067 int ndescs = ALIGN(max_num_sg + max_num_meta_sg, 4); in mlx5_ib_alloc_pi_mr() local
2089 err = _mlx5_alloc_mkey_descs(pd, mr, ndescs, desc_size, page_shift, in mlx5_ib_alloc_pi_mr()
[all …]
Dwr.c220 int size = (mr->ndescs + mr->meta_ndescs) * mr->desc_size; in set_reg_umr_seg()
377 int ndescs = ALIGN(mr->ndescs + mr->meta_ndescs, 8) >> 1; in set_reg_mkey_seg() local
385 ndescs *= 2; in set_reg_mkey_seg()
392 seg->xlt_oct_size = cpu_to_be32(ndescs); in set_reg_mkey_seg()
442 int bcount = mr->desc_size * (mr->ndescs + mr->meta_ndescs); in set_reg_data_seg()
864 int mr_list_size = (mr->ndescs + mr->meta_ndescs) * mr->desc_size; in set_reg_wr()
1114 pa_pi_mr.ndescs = mr->ndescs; in handle_reg_mr_integrity()
Dodp.c808 return mw->ndescs; in get_indirect_num_descs()
813 return devx_mr->ndescs; in get_indirect_num_descs()
840 int ndescs; in pagefault_single_data_segment() local
889 ndescs = get_indirect_num_descs(mmkey); in pagefault_single_data_segment()
898 sizeof(*pklm) * (ndescs - 2); in pagefault_single_data_segment()
920 for (i = 0; bcnt && i < ndescs; i++, pklm++) { in pagefault_single_data_segment()
Dmlx5_ib.h662 int ndescs; member
717 int ndescs; member
722 int ndescs; member
/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()
/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()
/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()
Dnand_base.c5333 int ndescs, i; in rawnand_dt_parse_gpio_cs() local
5335 ndescs = of_gpio_named_count(np, "cs-gpios"); in rawnand_dt_parse_gpio_cs()
5336 if (ndescs < 0) { in rawnand_dt_parse_gpio_cs()
5341 descs = devm_kcalloc(dev, ndescs, sizeof(*descs), GFP_KERNEL); in rawnand_dt_parse_gpio_cs()
5345 for (i = 0; i < ndescs; i++) { in rawnand_dt_parse_gpio_cs()
5352 *ncs_array = ndescs; in rawnand_dt_parse_gpio_cs()
/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()
/drivers/regulator/
Drt4801-regulator.c69 if (!gpios || gpios->ndescs <= id) { in rt4801_enable()
91 if (!gpios || gpios->ndescs <= id) { in rt4801_disable()
/drivers/phy/motorola/
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()
/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)), \
/drivers/net/mdio/
Dmdio-mux-gpio.c33 gpiod_set_array_value_cansleep(s->gpios->ndescs, s->gpios->desc, in mdio_mux_gpio_switch_fn()
/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()
/drivers/mmc/core/
Dpwrseq_simple.c43 int nvalues = reset_gpios->ndescs; in mmc_pwrseq_simple_set_gpios_value()
/drivers/mfd/
Dene-kb3930.c165 if (ddata->off_gpios->ndescs < 2) { in kb3930_probe()
/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()
/drivers/net/ethernet/marvell/
Dmvneta.c821 int ndescs) in mvneta_rxq_non_occup_desc_add() argument
826 while (ndescs > MVNETA_RXQ_ADD_NON_OCCUPIED_MAX) { in mvneta_rxq_non_occup_desc_add()
830 ndescs -= MVNETA_RXQ_ADD_NON_OCCUPIED_MAX; in mvneta_rxq_non_occup_desc_add()
834 (ndescs << MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT)); in mvneta_rxq_non_occup_desc_add()

12