Home
last modified time | relevance | path

Searched refs:grp (Results 1 – 25 of 134) sorted by relevance

123456

/drivers/s390/net/
Dctcm_mpc.c330 struct mpc_group *grp; in ctc_mpc_alloc_channel() local
337 grp = priv->mpcg; in ctc_mpc_alloc_channel()
339 grp->allochanfunc = callback; in ctc_mpc_alloc_channel()
340 grp->port_num = port_num; in ctc_mpc_alloc_channel()
341 grp->port_persist = 1; in ctc_mpc_alloc_channel()
345 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel()
347 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel()
350 grp->alloc_called = 1; in ctc_mpc_alloc_channel()
359 grp->send_qllc_disc = 1; in ctc_mpc_alloc_channel()
362 fsm_deltimer(&grp->timer); in ctc_mpc_alloc_channel()
[all …]
/drivers/infiniband/sw/rxe/
Drxe_mcast.c16 struct rxe_mc_grp *grp; in create_grp() local
18 grp = rxe_alloc_locked(&rxe->mc_grp_pool); in create_grp()
19 if (!grp) in create_grp()
22 INIT_LIST_HEAD(&grp->qp_list); in create_grp()
23 spin_lock_init(&grp->mcg_lock); in create_grp()
24 grp->rxe = rxe; in create_grp()
25 rxe_add_key_locked(grp, mgid); in create_grp()
29 rxe_drop_key_locked(grp); in create_grp()
30 rxe_drop_ref(grp); in create_grp()
34 return grp; in create_grp()
[all …]
/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.c107 struct mvebu_pinctrl *pctl, struct mvebu_pinctrl_group *grp, in mvebu_pinctrl_find_setting_by_val() argument
111 for (n = 0; n < grp->num_settings; n++) { in mvebu_pinctrl_find_setting_by_val()
112 if (config == grp->settings[n].val) { in mvebu_pinctrl_find_setting_by_val()
114 grp->settings[n].variant)) in mvebu_pinctrl_find_setting_by_val()
115 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_val()
122 struct mvebu_pinctrl *pctl, struct mvebu_pinctrl_group *grp, in mvebu_pinctrl_find_setting_by_name() argument
126 for (n = 0; n < grp->num_settings; n++) { in mvebu_pinctrl_find_setting_by_name()
127 if (strcmp(name, grp->settings[n].name) == 0) { in mvebu_pinctrl_find_setting_by_name()
129 grp->settings[n].variant)) in mvebu_pinctrl_find_setting_by_name()
130 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_name()
[all …]
Dpinctrl-armada-37xx.c234 struct armada_37xx_pinctrl *info, int pin, int *grp) in armada_37xx_find_next_grp_by_pin() argument
236 while (*grp < info->ngroups) { in armada_37xx_find_next_grp_by_pin()
237 struct armada_37xx_pin_group *group = &info->groups[*grp]; in armada_37xx_find_next_grp_by_pin()
240 *grp = *grp + 1; in armada_37xx_find_next_grp_by_pin()
341 struct armada_37xx_pin_group *grp) in armada_37xx_pmx_set_by_name() argument
346 unsigned int mask = grp->reg_mask; in armada_37xx_pmx_set_by_name()
349 dev_dbg(dev, "enable function %s group %s\n", name, grp->name); in armada_37xx_pmx_set_by_name()
351 func = match_string(grp->funcs, NB_FUNCS, name); in armada_37xx_pmx_set_by_name()
355 val = grp->val[func]; in armada_37xx_pmx_set_by_name()
368 struct armada_37xx_pin_group *grp = &info->groups[group]; in armada_37xx_pmx_set() local
[all …]
/drivers/base/
Ddevres.c442 struct devres_group *grp; in remove_nodes() local
444 grp = node_to_group(node); in remove_nodes()
445 if (grp) { in remove_nodes()
447 grp->color = 0; in remove_nodes()
469 struct devres_group *grp; in remove_nodes() local
471 grp = node_to_group(node); in remove_nodes()
472 BUG_ON(!grp || list_empty(&grp->node[0].entry)); in remove_nodes()
474 grp->color++; in remove_nodes()
475 if (list_empty(&grp->node[1].entry)) in remove_nodes()
476 grp->color++; in remove_nodes()
[all …]
/drivers/infiniband/hw/hfi1/
Duser_exp_rcv.c19 u32 rcventry, struct tid_group *grp,
30 struct tid_group *grp,
331 struct tid_group *grp = in hfi1_user_exp_rcv_setup() local
334 ret = program_rcvarray(fd, tidbuf, grp, in hfi1_user_exp_rcv_setup()
343 tid_group_add_tail(grp, &uctxt->tid_group_list); in hfi1_user_exp_rcv_setup()
349 tid_group_add_tail(grp, &uctxt->tid_full_list); in hfi1_user_exp_rcv_setup()
356 struct tid_group *grp, *ptr; in hfi1_user_exp_rcv_setup() local
366 grp = tid_group_pop(&uctxt->tid_group_list); in hfi1_user_exp_rcv_setup()
367 tid_group_add_tail(grp, &uctxt->tid_used_list); in hfi1_user_exp_rcv_setup()
375 list_for_each_entry_safe(grp, ptr, &uctxt->tid_used_list.list, in hfi1_user_exp_rcv_setup()
[all …]
Dexp_rcv.h105 static inline void tid_group_add_tail(struct tid_group *grp, in tid_group_add_tail() argument
108 list_add_tail(&grp->list, &set->list); in tid_group_add_tail()
112 static inline void tid_group_remove(struct tid_group *grp, in tid_group_remove() argument
115 list_del_init(&grp->list); in tid_group_remove()
129 struct tid_group *grp = in tid_group_pop() local
131 list_del_init(&grp->list); in tid_group_pop()
133 return grp; in tid_group_pop()
150 hfi1_tid_group_to_idx(struct hfi1_ctxtdata *rcd, struct tid_group *grp) in hfi1_tid_group_to_idx() argument
152 return grp - &rcd->groups[0]; in hfi1_tid_group_to_idx()
Dexp_rcv.c38 struct tid_group *grp; in hfi1_alloc_ctxt_rcv_groups() local
50 grp = &rcd->groups[i]; in hfi1_alloc_ctxt_rcv_groups()
51 grp->size = dd->rcv_entries.group_size; in hfi1_alloc_ctxt_rcv_groups()
52 grp->base = tidbase; in hfi1_alloc_ctxt_rcv_groups()
53 tid_group_add_tail(grp, &rcd->tid_group_list); in hfi1_alloc_ctxt_rcv_groups()
/drivers/net/wireless/marvell/libertas_tf/
Ddeb_defs.h49 #define LBTF_DEB_LL(grp, grpnam, fmt, args...) \ argument
50 do { if ((lbtf_debug & (grp)) == (grp)) \
53 #define LBTF_DEB_LL(grp, grpnam, fmt, args...) do {} while (0) argument
56 #define lbtf_deb_enter(grp) \ argument
57 LBTF_DEB_LL(grp | LBTF_DEB_ENTER, " enter", "%s()\n", __func__);
58 #define lbtf_deb_enter_args(grp, fmt, args...) \ argument
59 LBTF_DEB_LL(grp | LBTF_DEB_ENTER, " enter", "%s(" fmt ")\n", __func__, ## args);
60 #define lbtf_deb_leave(grp) \ argument
61 LBTF_DEB_LL(grp | LBTF_DEB_LEAVE, " leave", "%s()\n", __func__);
62 #define lbtf_deb_leave_args(grp, fmt, args...) \ argument
[all …]
/drivers/media/test-drivers/vivid/
Dvivid-rds-gen.c15 static u8 vivid_get_di(const struct vivid_rds_gen *rds, unsigned grp) in vivid_get_di() argument
17 switch (grp) { in vivid_get_di()
19 return (rds->dyn_pty << 2) | (grp & 3); in vivid_get_di()
21 return (rds->compressed << 2) | (grp & 3); in vivid_get_di()
23 return (rds->art_head << 2) | (grp & 3); in vivid_get_di()
25 return (rds->mono_stereo << 2) | (grp & 3); in vivid_get_di()
45 unsigned grp; in vivid_rds_generate() local
52 for (grp = 0; grp < VIVID_RDS_GEN_GROUPS; grp++, data += VIVID_RDS_GEN_BLKS_PER_GRP) { in vivid_rds_generate()
61 switch (grp) { in vivid_rds_generate()
65 idx = (grp % 22) % 4; in vivid_rds_generate()
[all …]
/drivers/crypto/marvell/octeontx/
Dotx_cptpf_ucode.c188 eng_grp->g->grp[eng_grp->mirror.idx].ucode[0].align_dma; in cpt_set_ucode_base()
525 eng_grp->g->grp[eng_grp->mirror.idx].ucode[0].ver_str, in print_ucode_info()
549 &eng_grp->g->grp[eng_grp->mirror.idx], in print_engs_info()
605 struct otx_cpt_eng_grp_info *grp; in print_dbg_info() local
617 grp = &eng_grps->grp[i]; in print_dbg_info()
618 pr_debug("engine_group%d, state %s\n", i, grp->is_enabled ? in print_dbg_info()
620 if (grp->is_enabled) { in print_dbg_info()
621 mirrored_grp = &eng_grps->grp[grp->mirror.idx]; in print_dbg_info()
623 grp->mirror.is_ena ? in print_dbg_info()
625 grp->ucode[0].filename, in print_dbg_info()
[all …]
Dotx_cptpf_mbox.c135 static int otx_cpt_bind_vq_to_grp(struct otx_cpt_device *cpt, u8 q, u8 grp) in otx_cpt_bind_vq_to_grp() argument
148 if (grp >= OTX_CPT_MAX_ENGINE_GROUPS) { in otx_cpt_bind_vq_to_grp()
150 grp, OTX_CPT_MAX_ENGINE_GROUPS); in otx_cpt_bind_vq_to_grp()
154 eng_grp = &cpt->eng_grps.grp[grp]; in otx_cpt_bind_vq_to_grp()
156 dev_err(dev, "Requested engine group %d is disabled\n", grp); in otx_cpt_bind_vq_to_grp()
161 pf_qx_ctl.s.grp = grp; in otx_cpt_bind_vq_to_grp()
165 ucode = &eng_grp->g->grp[eng_grp->mirror.idx].ucode[0]; in otx_cpt_bind_vq_to_grp()
/drivers/pinctrl/renesas/
Dpinctrl-rzn1.c339 const struct rzn1_pin_group *grp; in rzn1_dt_node_to_map_one() local
348 grp = rzn1_pinctrl_find_group_by_name(ipctl, np->name); in rzn1_dt_node_to_map_one()
349 if (!grp) { in rzn1_dt_node_to_map_one()
375 grp->name, grp->func); in rzn1_dt_node_to_map_one()
382 &reserved_maps, num_maps, grp->name, in rzn1_dt_node_to_map_one()
390 grp->func, grp->name, grp->npins); in rzn1_dt_node_to_map_one()
464 struct rzn1_pin_group *grp = &ipctl->groups[group]; in rzn1_set_mux() local
465 unsigned int i, grp_pins = grp->npins; in rzn1_set_mux()
468 ipctl->functions[selector].name, selector, grp->name, group); in rzn1_set_mux()
472 rzn1_set_hw_pin_func(ipctl, grp->pins[i], grp->pin_ids[i], 0); in rzn1_set_mux()
[all …]
/drivers/pinctrl/freescale/
Dpinctrl-imx1-core.c158 const struct imx1_pin_group *grp = NULL; in imx1_pinctrl_find_group_by_name() local
163 grp = &info->groups[i]; in imx1_pinctrl_find_group_by_name()
168 return grp; in imx1_pinctrl_find_group_by_name()
224 const struct imx1_pin_group *grp; in imx1_dt_node_to_map() local
234 grp = imx1_pinctrl_find_group_by_name(info, np->name); in imx1_dt_node_to_map()
235 if (!grp) { in imx1_dt_node_to_map()
241 for (i = 0; i < grp->npins; i++) in imx1_dt_node_to_map()
265 for (i = j = 0; i < grp->npins; i++) { in imx1_dt_node_to_map()
268 pin_get_name(pctldev, grp->pins[i].pin_id); in imx1_dt_node_to_map()
269 new_map[j].data.configs.configs = &grp->pins[i].config; in imx1_dt_node_to_map()
[all …]
Dpinctrl-imx.c38 const struct group_desc *grp = NULL; in imx_pinctrl_find_group_by_name() local
42 grp = pinctrl_generic_get_group(pctldev, i); in imx_pinctrl_find_group_by_name()
43 if (grp && !strcmp(grp->name, name)) in imx_pinctrl_find_group_by_name()
47 return grp; in imx_pinctrl_find_group_by_name()
62 const struct group_desc *grp; in imx_dt_node_to_map() local
73 grp = imx_pinctrl_find_group_by_name(pctldev, np->name); in imx_dt_node_to_map()
74 if (!grp) { in imx_dt_node_to_map()
80 map_num += grp->num_pins; in imx_dt_node_to_map()
82 for (i = 0; i < grp->num_pins; i++) { in imx_dt_node_to_map()
83 pin = &((struct imx_pin *)(grp->data))[i]; in imx_dt_node_to_map()
[all …]
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_packet.c23 void sparx5_xtr_flush(struct sparx5 *sparx5, u8 grp) in sparx5_xtr_flush() argument
26 spx5_wr(QS_XTR_FLUSH_FLUSH_SET(BIT(grp)), sparx5, QS_XTR_FLUSH); in sparx5_xtr_flush()
49 static void sparx5_xtr_grp(struct sparx5 *sparx5, u8 grp, bool byte_swap) in sparx5_xtr_grp() argument
62 ifh[i] = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp()
72 sparx5_xtr_flush(sparx5, grp); in sparx5_xtr_grp()
80 sparx5_xtr_flush(sparx5, grp); in sparx5_xtr_grp()
89 u32 val = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp()
121 *rxbuf = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp()
160 int grp = INJ_QUEUE; in sparx5_inject() local
165 if (!(QS_INJ_STATUS_FIFO_RDY_GET(val) & BIT(grp))) { in sparx5_inject()
[all …]
/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_ucode.c554 struct otx2_cpt_eng_grp_info *grp) in release_engines() argument
559 if (!grp->engs[i].type) in release_engines()
562 if (grp->engs[i].count > 0) { in release_engines()
563 ret = update_engines_avail_count(dev, &grp->g->avail, in release_engines()
564 &grp->engs[i], in release_engines()
565 grp->engs[i].count); in release_engines()
570 grp->engs[i].type = 0; in release_engines()
571 grp->engs[i].count = 0; in release_engines()
572 grp->engs[i].offset = 0; in release_engines()
573 grp->engs[i].ucode = NULL; in release_engines()
[all …]
/drivers/pinctrl/sprd/
Dpinctrl-sprd.c195 const struct sprd_pin_group *grp = NULL; in sprd_pinctrl_find_group_by_name() local
200 grp = &info->groups[i]; in sprd_pinctrl_find_group_by_name()
205 return grp; in sprd_pinctrl_find_group_by_name()
248 const struct sprd_pin_group *grp; in sprd_dt_node_to_map() local
257 grp = sprd_pinctrl_find_group_by_name(pctl, np->name); in sprd_dt_node_to_map()
258 if (!grp) { in sprd_dt_node_to_map()
306 grp->name, function); in sprd_dt_node_to_map()
316 pin_id = grp->pins[0]; in sprd_dt_node_to_map()
319 group_or_pin = grp->name; in sprd_dt_node_to_map()
390 struct sprd_pin_group *grp = &info->groups[group_selector]; in sprd_pmx_set_mux() local
[all …]
/drivers/pinctrl/uniphier/
Dpinctrl-uniphier.h159 #define __UNIPHIER_PINCTRL_GROUP(grp, mux) \ argument
161 .name = #grp, \
162 .pins = grp##_pins, \
163 .num_pins = ARRAY_SIZE(grp##_pins), \
167 #define UNIPHIER_PINCTRL_GROUP(grp) \ argument
168 __UNIPHIER_PINCTRL_GROUP(grp, \
169 grp##_muxvals + \
170 BUILD_BUG_ON_ZERO(ARRAY_SIZE(grp##_pins) != \
171 ARRAY_SIZE(grp##_muxvals)))
173 #define UNIPHIER_PINCTRL_GROUP_GPIO(grp) \ argument
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_stats.h81 #define MLX5E_STATS_GRP_OP(grp, name) mlx5e_stats_grp_ ## grp ## _ ## name argument
83 #define MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS(grp) \ argument
84 int MLX5E_STATS_GRP_OP(grp, num_stats)(struct mlx5e_priv *priv)
86 #define MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS(grp) \ argument
87 void MLX5E_STATS_GRP_OP(grp, update_stats)(struct mlx5e_priv *priv)
89 #define MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS(grp) \ argument
90 int MLX5E_STATS_GRP_OP(grp, fill_strings)(struct mlx5e_priv *priv, u8 *data, int idx)
92 #define MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS(grp) \ argument
93 int MLX5E_STATS_GRP_OP(grp, fill_stats)(struct mlx5e_priv *priv, u64 *data, int idx)
95 #define MLX5E_STATS_GRP(grp) mlx5e_stats_grp_ ## grp argument
[all …]
/drivers/crypto/cavium/cpt/
Dcptpf_main.c27 u8 type, u8 grp) in cpt_disable_cores() argument
38 grpmask = cpt_read_csr64(cpt->reg_base, CPTX_PF_GX_EN(0, grp)); in cpt_disable_cores()
39 cpt_write_csr64(cpt->reg_base, CPTX_PF_GX_EN(0, grp), in cpt_disable_cores()
42 grp = cpt_read_csr64(cpt->reg_base, CPTX_PF_EXEC_BUSY(0)); in cpt_disable_cores()
43 while (grp & coremask) { in cpt_disable_cores()
45 grp = cpt_read_csr64(cpt->reg_base, in cpt_disable_cores()
77 static void cpt_configure_group(struct cpt_device *cpt, u8 grp, in cpt_configure_group() argument
85 pf_gx_en = cpt_read_csr64(cpt->reg_base, CPTX_PF_GX_EN(0, grp)); in cpt_configure_group()
86 cpt_write_csr64(cpt->reg_base, CPTX_PF_GX_EN(0, grp), in cpt_configure_group()
383 u32 grp, timeout = 100; in cpt_disable_all_cores() local
[all …]
/drivers/dma/
Dacpi-dma.c41 static int acpi_dma_parse_resource_group(const struct acpi_csrt_group *grp, in acpi_dma_parse_resource_group() argument
50 if (grp->shared_info_length != sizeof(struct acpi_csrt_shared_info)) in acpi_dma_parse_resource_group()
71 si = (const struct acpi_csrt_shared_info *)&grp[1]; in acpi_dma_parse_resource_group()
92 (char *)&grp->vendor_id, grp->device_id, grp->revision); in acpi_dma_parse_resource_group()
129 struct acpi_csrt_group *grp, *end; in acpi_dma_parse_csrt() local
142 grp = (struct acpi_csrt_group *)(csrt + 1); in acpi_dma_parse_csrt()
145 while (grp < end) { in acpi_dma_parse_csrt()
146 ret = acpi_dma_parse_resource_group(grp, adev, adma); in acpi_dma_parse_csrt()
153 grp = (struct acpi_csrt_group *)((void *)grp + grp->length); in acpi_dma_parse_csrt()
/drivers/net/ethernet/freescale/
Dgianfar.c505 struct gfar_priv_grp *grp = &priv->gfargrp[priv->num_grps]; in gfar_parse_group() local
509 grp->irqinfo[i] = kzalloc(sizeof(struct gfar_irqinfo), in gfar_parse_group()
511 if (!grp->irqinfo[i]) in gfar_parse_group()
515 grp->regs = of_iomap(np, 0); in gfar_parse_group()
516 if (!grp->regs) in gfar_parse_group()
519 gfar_irq(grp, TX)->irq = irq_of_parse_and_map(np, 0); in gfar_parse_group()
523 gfar_irq(grp, RX)->irq = irq_of_parse_and_map(np, 1); in gfar_parse_group()
524 gfar_irq(grp, ER)->irq = irq_of_parse_and_map(np, 2); in gfar_parse_group()
525 if (!gfar_irq(grp, TX)->irq || in gfar_parse_group()
526 !gfar_irq(grp, RX)->irq || in gfar_parse_group()
[all …]
/drivers/regulator/
Dtwl6030-regulator.c125 int grp = 0, val; in twl6030reg_is_enabled() local
128 grp = twlreg_grp(rdev); in twl6030reg_is_enabled()
129 if (grp < 0) in twl6030reg_is_enabled()
130 return grp; in twl6030reg_is_enabled()
131 grp &= P1_GRP_6030; in twl6030reg_is_enabled()
137 grp = 1; in twl6030reg_is_enabled()
140 return grp && (val == TWL6030_CFG_STATE_ON); in twl6030reg_is_enabled()
150 int grp = 0; in twl6030reg_enable() local
154 grp = twlreg_grp(rdev); in twl6030reg_enable()
155 if (grp < 0) in twl6030reg_enable()
[all …]
/drivers/pinctrl/meson/
Dpinctrl-meson8-pmx.h22 #define GROUP(grp, r, b) \ argument
24 .name = #grp, \
25 .pins = grp ## _pins, \
26 .num_pins = ARRAY_SIZE(grp ## _pins), \

123456