Home
last modified time | relevance | path

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

123

/drivers/s390/net/
Dctcm_mpc.c329 struct mpc_group *grp; in ctc_mpc_alloc_channel() local
336 grp = priv->mpcg; in ctc_mpc_alloc_channel()
338 grp->allochanfunc = callback; in ctc_mpc_alloc_channel()
339 grp->port_num = port_num; in ctc_mpc_alloc_channel()
340 grp->port_persist = 1; in ctc_mpc_alloc_channel()
344 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel()
346 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel()
349 grp->alloc_called = 1; in ctc_mpc_alloc_channel()
358 grp->send_qllc_disc = 1; in ctc_mpc_alloc_channel()
360 fsm_deltimer(&grp->timer); in ctc_mpc_alloc_channel()
[all …]
Dctcm_main.c601 struct mpc_group *grp; in ctcmpc_send_sweep_req() local
608 grp = priv->mpcg; in ctcmpc_send_sweep_req()
613 if (grp->in_sweep == 0) { in ctcmpc_send_sweep_req()
614 grp->in_sweep = 1; in ctcmpc_send_sweep_req()
615 grp->sweep_rsp_pend_num = grp->active_channels[CTCM_READ]; in ctcmpc_send_sweep_req()
616 grp->sweep_req_pend_num = grp->active_channels[CTCM_READ]; in ctcmpc_send_sweep_req()
653 grp->in_sweep = 0; in ctcmpc_send_sweep_req()
655 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_send_sweep_req()
668 struct mpc_group *grp = priv->mpcg; in ctcmpc_transmit_skb() local
680 if ((fsm_getstate(ch->fsm) != CTC_STATE_TXIDLE) || grp->in_sweep) { in ctcmpc_transmit_skb()
[all …]
Dctcm_fsms.c1220 struct mpc_group *grp = priv->mpcg; in ctcmpc_chx_txdone() local
1256 if ((ch->collect_len <= 0) || (grp->in_sweep != 0)) { in ctcmpc_chx_txdone()
1275 data_space = grp->group_max_buflen - TH_HEADER_LENGTH; in ctcmpc_chx_txdone()
1390 struct mpc_group *grp = priv->mpcg; in ctcmpc_chx_rx() local
1427 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_rx()
1448 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_rx()
1547 struct mpc_group *grp = priv->mpcg; in ctcmpc_chx_rxidle() local
1554 fsm_getstate(fi), fsm_getstate(grp->fsm)); in ctcmpc_chx_rxidle()
1559 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_rxidle()
1602 struct mpc_group *grp = priv->mpcg; in ctcmpc_chx_attn() local
[all …]
/drivers/infiniband/sw/rxe/
Drxe_mcast.c41 struct rxe_mc_grp *grp; in rxe_mcast_get_grp() local
48 grp = rxe_pool_get_key(&rxe->mc_grp_pool, mgid); in rxe_mcast_get_grp()
49 if (grp) in rxe_mcast_get_grp()
52 grp = rxe_alloc(&rxe->mc_grp_pool); in rxe_mcast_get_grp()
53 if (!grp) { in rxe_mcast_get_grp()
58 INIT_LIST_HEAD(&grp->qp_list); in rxe_mcast_get_grp()
59 spin_lock_init(&grp->mcg_lock); in rxe_mcast_get_grp()
60 grp->rxe = rxe; in rxe_mcast_get_grp()
62 rxe_add_key(grp, mgid); in rxe_mcast_get_grp()
69 *grp_p = grp; in rxe_mcast_get_grp()
[all …]
/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.c85 struct mvebu_pinctrl *pctl, struct mvebu_pinctrl_group *grp, in mvebu_pinctrl_find_setting_by_val() argument
89 for (n = 0; n < grp->num_settings; n++) { in mvebu_pinctrl_find_setting_by_val()
90 if (config == grp->settings[n].val) { in mvebu_pinctrl_find_setting_by_val()
92 grp->settings[n].variant)) in mvebu_pinctrl_find_setting_by_val()
93 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_val()
100 struct mvebu_pinctrl *pctl, struct mvebu_pinctrl_group *grp, in mvebu_pinctrl_find_setting_by_name() argument
104 for (n = 0; n < grp->num_settings; n++) { in mvebu_pinctrl_find_setting_by_name()
105 if (strcmp(name, grp->settings[n].name) == 0) { in mvebu_pinctrl_find_setting_by_name()
107 grp->settings[n].variant)) in mvebu_pinctrl_find_setting_by_name()
108 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_name()
[all …]
/drivers/staging/lustre/lnet/selftest/
Dconsole.c197 struct lstcon_group *grp; in lstcon_group_alloc() local
200 LIBCFS_ALLOC(grp, offsetof(struct lstcon_group, in lstcon_group_alloc()
202 if (!grp) in lstcon_group_alloc()
205 grp->grp_ref = 1; in lstcon_group_alloc()
207 if (strlen(name) > sizeof(grp->grp_name) - 1) { in lstcon_group_alloc()
208 LIBCFS_FREE(grp, offsetof(struct lstcon_group, in lstcon_group_alloc()
212 strncpy(grp->grp_name, name, sizeof(grp->grp_name)); in lstcon_group_alloc()
215 INIT_LIST_HEAD(&grp->grp_link); in lstcon_group_alloc()
216 INIT_LIST_HEAD(&grp->grp_ndl_list); in lstcon_group_alloc()
217 INIT_LIST_HEAD(&grp->grp_trans_list); in lstcon_group_alloc()
[all …]
/drivers/base/
Ddevres.c421 struct devres_group *grp; in remove_nodes() local
426 grp = node_to_group(node); in remove_nodes()
427 if (grp) { in remove_nodes()
429 grp->color = 0; in remove_nodes()
452 struct devres_group *grp; in remove_nodes() local
457 grp = node_to_group(node); in remove_nodes()
458 BUG_ON(!grp || list_empty(&grp->node[0].entry)); in remove_nodes()
460 grp->color++; in remove_nodes()
461 if (list_empty(&grp->node[1].entry)) in remove_nodes()
462 grp->color++; in remove_nodes()
[all …]
Dattribute_container.c322 BUG_ON(attrs && cont->grp); in attribute_container_add_attrs()
324 if (!attrs && !cont->grp) in attribute_container_add_attrs()
327 if (cont->grp) in attribute_container_add_attrs()
328 return sysfs_create_group(&classdev->kobj, cont->grp); in attribute_container_add_attrs()
387 if (!attrs && !cont->grp) in attribute_container_remove_attrs()
390 if (cont->grp) { in attribute_container_remove_attrs()
391 sysfs_remove_group(&classdev->kobj, cont->grp); in attribute_container_remove_attrs()
/drivers/infiniband/hw/hfi1/
Duser_exp_rcv.c64 struct tid_group *grp; member
120 static inline void tid_group_remove(struct tid_group *grp, in tid_group_remove() argument
123 list_del_init(&grp->list); in tid_group_remove()
127 static inline void tid_group_add_tail(struct tid_group *grp, in tid_group_add_tail() argument
130 list_add_tail(&grp->list, &set->list); in tid_group_add_tail()
136 struct tid_group *grp = in tid_group_pop() local
138 list_del_init(&grp->list); in tid_group_pop()
140 return grp; in tid_group_pop()
175 struct tid_group *grp; in hfi1_user_exp_rcv_init() local
177 grp = kzalloc(sizeof(*grp), GFP_KERNEL); in hfi1_user_exp_rcv_init()
[all …]
/drivers/pinctrl/uniphier/
Dpinctrl-uniphier.h180 #define __UNIPHIER_PINCTRL_GROUP(grp, type) \ argument
182 .name = #grp, \
183 .pins = grp##_pins, \
184 .num_pins = ARRAY_SIZE(grp##_pins), \
185 .muxvals = grp##_muxvals + \
186 BUILD_BUG_ON_ZERO(ARRAY_SIZE(grp##_pins) != \
187 ARRAY_SIZE(grp##_muxvals)), \
191 #define UNIPHIER_PINCTRL_GROUP(grp) \ argument
192 __UNIPHIER_PINCTRL_GROUP(grp, UNIPHIER_PINMUX_GPIO_RANGE_NONE)
194 #define UNIPHIER_PINCTRL_GROUP_GPIO_RANGE_PORT(grp) \ argument
[all …]
/drivers/net/wireless/marvell/libertas_tf/
Ddeb_defs.h48 #define LBTF_DEB_LL(grp, grpnam, fmt, args...) \ argument
49 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/platform/vivid/
Dvivid-rds-gen.c27 static u8 vivid_get_di(const struct vivid_rds_gen *rds, unsigned grp) in vivid_get_di() argument
29 switch (grp) { in vivid_get_di()
31 return (rds->dyn_pty << 2) | (grp & 3); in vivid_get_di()
33 return (rds->compressed << 2) | (grp & 3); in vivid_get_di()
35 return (rds->art_head << 2) | (grp & 3); in vivid_get_di()
37 return (rds->mono_stereo << 2) | (grp & 3); in vivid_get_di()
57 unsigned grp; in vivid_rds_generate() local
64 for (grp = 0; grp < VIVID_RDS_GEN_GROUPS; grp++, data += VIVID_RDS_GEN_BLKS_PER_GRP) { in vivid_rds_generate()
73 switch (grp) { in vivid_rds_generate()
77 idx = (grp % 22) % 4; in vivid_rds_generate()
[all …]
/drivers/lightnvm/
Dsysfs.c14 struct nvm_id_group *grp = &id->groups[0]; in nvm_dev_attr_show() local
39 return scnprintf(page, PAGE_SIZE, "%u\n", grp->mtype); in nvm_dev_attr_show()
41 return scnprintf(page, PAGE_SIZE, "%u\n", grp->fmtype); in nvm_dev_attr_show()
43 return scnprintf(page, PAGE_SIZE, "%u\n", grp->num_ch); in nvm_dev_attr_show()
45 return scnprintf(page, PAGE_SIZE, "%u\n", grp->num_lun); in nvm_dev_attr_show()
47 return scnprintf(page, PAGE_SIZE, "%u\n", grp->num_pln); in nvm_dev_attr_show()
49 return scnprintf(page, PAGE_SIZE, "%u\n", grp->num_blk); in nvm_dev_attr_show()
51 return scnprintf(page, PAGE_SIZE, "%u\n", grp->num_pg); in nvm_dev_attr_show()
53 return scnprintf(page, PAGE_SIZE, "%u\n", grp->fpg_sz); in nvm_dev_attr_show()
55 return scnprintf(page, PAGE_SIZE, "%u\n", grp->csecs); in nvm_dev_attr_show()
[all …]
Dcore.c473 static int nvm_init_slc_tbl(struct nvm_dev *dev, struct nvm_id_group *grp) in nvm_init_slc_tbl() argument
489 static int nvm_init_mlc_tbl(struct nvm_dev *dev, struct nvm_id_group *grp) in nvm_init_mlc_tbl() argument
492 struct nvm_id_lp_mlc *mlc = &grp->lptbl.mlc; in nvm_init_mlc_tbl()
522 struct nvm_id_group *grp = &id->groups[0]; in nvm_core_init() local
526 dev->nr_chnls = grp->num_ch; in nvm_core_init()
527 dev->luns_per_chnl = grp->num_lun; in nvm_core_init()
528 dev->pgs_per_blk = grp->num_pg; in nvm_core_init()
529 dev->blks_per_lun = grp->num_blk; in nvm_core_init()
530 dev->nr_planes = grp->num_pln; in nvm_core_init()
531 dev->fpg_size = grp->fpg_sz; in nvm_core_init()
[all …]
/drivers/pinctrl/freescale/
Dpinctrl-imx.c52 const struct imx_pin_group *grp = NULL; in imx_pinctrl_find_group_by_name() local
57 grp = &info->groups[i]; in imx_pinctrl_find_group_by_name()
62 return grp; in imx_pinctrl_find_group_by_name()
110 const struct imx_pin_group *grp; in imx_dt_node_to_map() local
120 grp = imx_pinctrl_find_group_by_name(info, np->name); in imx_dt_node_to_map()
121 if (!grp) { in imx_dt_node_to_map()
127 for (i = 0; i < grp->npins; i++) { in imx_dt_node_to_map()
128 if (!(grp->pins[i].config & IMX_NO_PAD_CTL)) in imx_dt_node_to_map()
152 for (i = j = 0; i < grp->npins; i++) { in imx_dt_node_to_map()
153 if (!(grp->pins[i].config & IMX_NO_PAD_CTL)) { in imx_dt_node_to_map()
[all …]
Dpinctrl-imx1-core.c163 const struct imx1_pin_group *grp = NULL; in imx1_pinctrl_find_group_by_name() local
168 grp = &info->groups[i]; in imx1_pinctrl_find_group_by_name()
173 return grp; in imx1_pinctrl_find_group_by_name()
229 const struct imx1_pin_group *grp; in imx1_dt_node_to_map() local
239 grp = imx1_pinctrl_find_group_by_name(info, np->name); in imx1_dt_node_to_map()
240 if (!grp) { in imx1_dt_node_to_map()
246 for (i = 0; i < grp->npins; i++) in imx1_dt_node_to_map()
269 for (i = j = 0; i < grp->npins; i++) { in imx1_dt_node_to_map()
272 pin_get_name(pctldev, grp->pins[i].pin_id); in imx1_dt_node_to_map()
273 new_map[j].data.configs.configs = &grp->pins[i].config; in imx1_dt_node_to_map()
[all …]
/drivers/net/wireless/marvell/libertas/
Ddefs.h50 #define LBS_DEB_LL(grp, grpnam, fmt, args...) \ argument
51 do { if ((lbs_debug & (grp)) == (grp)) \
55 #define LBS_DEB_LL(grp, grpnam, fmt, args...) do {} while (0) argument
58 #define lbs_deb_enter(grp) \ argument
59 LBS_DEB_LL(grp | LBS_DEB_ENTER, " enter", "%s()\n", __func__);
60 #define lbs_deb_enter_args(grp, fmt, args...) \ argument
61 LBS_DEB_LL(grp | LBS_DEB_ENTER, " enter", "%s(" fmt ")\n", __func__, ## args);
62 #define lbs_deb_leave(grp) \ argument
63 LBS_DEB_LL(grp | LBS_DEB_LEAVE, " leave", "%s()\n", __func__);
64 #define lbs_deb_leave_args(grp, fmt, args...) \ argument
[all …]
/drivers/dma/
Dacpi-dma.c43 static int acpi_dma_parse_resource_group(const struct acpi_csrt_group *grp, in acpi_dma_parse_resource_group() argument
52 if (grp->shared_info_length != sizeof(struct acpi_csrt_shared_info)) in acpi_dma_parse_resource_group()
73 si = (const struct acpi_csrt_shared_info *)&grp[1]; in acpi_dma_parse_resource_group()
82 (char *)&grp->vendor_id, grp->device_id, grp->revision); in acpi_dma_parse_resource_group()
113 struct acpi_csrt_group *grp, *end; in acpi_dma_parse_csrt() local
126 grp = (struct acpi_csrt_group *)(csrt + 1); in acpi_dma_parse_csrt()
129 while (grp < end) { in acpi_dma_parse_csrt()
130 ret = acpi_dma_parse_resource_group(grp, adev, adma); in acpi_dma_parse_csrt()
137 grp = (struct acpi_csrt_group *)((void *)grp + grp->length); in acpi_dma_parse_csrt()
/drivers/regulator/
Dtwl-regulator.c174 int grp = 0, val; in twl6030reg_is_enabled() local
177 grp = twlreg_grp(rdev); in twl6030reg_is_enabled()
178 if (grp < 0) in twl6030reg_is_enabled()
179 return grp; in twl6030reg_is_enabled()
180 grp &= P1_GRP_6030; in twl6030reg_is_enabled()
182 grp = 1; in twl6030reg_is_enabled()
188 return grp && (val == TWL6030_CFG_STATE_ON); in twl6030reg_is_enabled()
262 int grp; in twl4030reg_enable() local
265 grp = twlreg_grp(rdev); in twl4030reg_enable()
266 if (grp < 0) in twl4030reg_enable()
[all …]
/drivers/net/ethernet/freescale/
Dgianfar.c630 struct gfar_priv_grp *grp = &priv->gfargrp[priv->num_grps]; in gfar_parse_group() local
634 grp->irqinfo[i] = kzalloc(sizeof(struct gfar_irqinfo), in gfar_parse_group()
636 if (!grp->irqinfo[i]) in gfar_parse_group()
640 grp->regs = of_iomap(np, 0); in gfar_parse_group()
641 if (!grp->regs) in gfar_parse_group()
644 gfar_irq(grp, TX)->irq = irq_of_parse_and_map(np, 0); in gfar_parse_group()
648 gfar_irq(grp, RX)->irq = irq_of_parse_and_map(np, 1); in gfar_parse_group()
649 gfar_irq(grp, ER)->irq = irq_of_parse_and_map(np, 2); in gfar_parse_group()
650 if (!gfar_irq(grp, TX)->irq || in gfar_parse_group()
651 !gfar_irq(grp, RX)->irq || in gfar_parse_group()
[all …]
/drivers/pinctrl/
Dpinctrl-tz1090-pdc.c532 const struct tz1090_pdc_pingroup *grp) in tz1090_pdc_pinctrl_mux() argument
535 unsigned int pin_shift = grp->pins[0]; in tz1090_pdc_pinctrl_mux()
543 reg = pmx_read(pmx, grp->reg); in tz1090_pdc_pinctrl_mux()
544 reg &= ~BIT(grp->bit); in tz1090_pdc_pinctrl_mux()
545 reg |= select << grp->bit; in tz1090_pdc_pinctrl_mux()
546 pmx_write(pmx, reg, grp->reg); in tz1090_pdc_pinctrl_mux()
555 const struct tz1090_pdc_pingroup *grp = &tz1090_pdc_groups[group]; in tz1090_pdc_pinctrl_set_mux() local
563 if (grp->drv) in tz1090_pdc_pinctrl_set_mux()
567 if (function != grp->func) in tz1090_pdc_pinctrl_set_mux()
572 pmx->mux_en |= BIT(grp->pins[0]); in tz1090_pdc_pinctrl_set_mux()
[all …]
/drivers/isdn/i4l/
Disdn_audio.c504 int grp[2]; in isdn_audio_eval_dtmf() local
512 grp[LOGRP] = grp[HIGRP] = -1; in isdn_audio_eval_dtmf()
534 if (grp[LOGRP] >= 0) { in isdn_audio_eval_dtmf()
536 grp[LOGRP] = -1; in isdn_audio_eval_dtmf()
540 grp[LOGRP] = i; in isdn_audio_eval_dtmf()
543 if (grp[HIGRP] >= 0) { // Bad. Another tone found. */ in isdn_audio_eval_dtmf()
544 grp[HIGRP] = -1; in isdn_audio_eval_dtmf()
548 grp[HIGRP] = i - NCOEFF/2; in isdn_audio_eval_dtmf()
551 if ((grp[LOGRP] >= 0) && (grp[HIGRP] >= 0)) { in isdn_audio_eval_dtmf()
552 what = dtmf_matrix[grp[LOGRP]][grp[HIGRP]]; in isdn_audio_eval_dtmf()
/drivers/block/
Dnull_blk.c459 struct nvm_id_group *grp; in null_lnvm_id() local
482 grp = &id->groups[0]; in null_lnvm_id()
483 grp->mtype = 0; in null_lnvm_id()
484 grp->fmtype = 0; in null_lnvm_id()
485 grp->num_ch = 1; in null_lnvm_id()
486 grp->num_pg = 256; in null_lnvm_id()
489 grp->num_lun = size + 1; in null_lnvm_id()
490 sector_div(blksize, grp->num_lun); in null_lnvm_id()
491 grp->num_blk = blksize; in null_lnvm_id()
492 grp->num_pln = 1; in null_lnvm_id()
[all …]
/drivers/pinctrl/bcm/
Dpinctrl-nsp-mux.c390 const struct nsp_pin_group *grp, in nsp_pinmux_set() argument
393 const struct nsp_mux *mux = &grp->mux; in nsp_pinmux_set()
416 func->name, grp->name); in nsp_pinmux_set()
448 val &= ~(mask << grp->mux.shift); in nsp_pinmux_set()
449 val |= grp->mux.alt << grp->mux.shift; in nsp_pinmux_set()
461 const struct nsp_pin_group *grp; in nsp_pinmux_enable() local
468 grp = &pinctrl->groups[grp_select]; in nsp_pinmux_enable()
471 func_select, func->name, grp_select, grp->name); in nsp_pinmux_enable()
473 dev_dbg(pctrl_dev->dev, "shift:%u alt:%u\n", grp->mux.shift, in nsp_pinmux_enable()
474 grp->mux.alt); in nsp_pinmux_enable()
[all …]
/drivers/net/wireless/intel/iwlwifi/
Diwl-trans.c170 u8 grp, cmd; in iwl_get_cmd_string() local
175 grp = iwl_cmd_groupid(id); in iwl_get_cmd_string()
178 if (!trans->command_groups || grp >= trans->command_groups_size || in iwl_get_cmd_string()
179 !trans->command_groups[grp].arr) in iwl_get_cmd_string()
182 arr = &trans->command_groups[grp]; in iwl_get_cmd_string()

123