Home
last modified time | relevance | path

Searched refs:role (Results 1 – 25 of 83) sorted by relevance

1234

/drivers/s390/net/
Dqeth_l2_sys.c31 &card->options.sbp.role, &state); in qeth_bridge_port_role_state_show()
45 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show()
57 card->options.sbp.role, state); in qeth_bridge_port_role_state_show()
78 enum qeth_sbp_roles role; in qeth_bridge_port_role_store() local
83 role = QETH_SBP_ROLE_PRIMARY; in qeth_bridge_port_role_store()
85 role = QETH_SBP_ROLE_SECONDARY; in qeth_bridge_port_role_store()
87 role = QETH_SBP_ROLE_NONE; in qeth_bridge_port_role_store()
94 rc = qeth_bridgeport_setrole(card, role); in qeth_bridge_port_role_store()
96 card->options.sbp.role = role; in qeth_bridge_port_role_store()
98 card->options.sbp.role = role; in qeth_bridge_port_role_store()
[all …]
Dqeth_l2_main.c1501 data->card->options.sbp.role = entry->role; in qeth_bridge_state_change_worker()
1506 (entry->role == QETH_SBP_ROLE_NONE) ? "none" : in qeth_bridge_state_change_worker()
1507 (entry->role == QETH_SBP_ROLE_PRIMARY) ? "primary" : in qeth_bridge_state_change_worker()
1508 (entry->role == QETH_SBP_ROLE_SECONDARY) ? "secondary" : in qeth_bridge_state_change_worker()
1627 enum qeth_sbp_roles *role; member
1761 card->options.sbp.role = QETH_SBP_ROLE_NONE; in qeth_bridgeport_query_support()
1786 if (cbctl->data.qports.role) in qeth_bridgeport_query_ports_cb()
1787 *cbctl->data.qports.role = qports->entry[0].role; in qeth_bridgeport_query_ports_cb()
1805 enum qeth_sbp_roles *role, enum qeth_sbp_states *state) in qeth_bridgeport_query_ports() argument
1813 .role = role, in qeth_bridgeport_query_ports()
[all …]
/drivers/usb/chipidea/
Dci.h178 enum ci_role role; member
214 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
215 return ci->roles[ci->role]; in ci_role()
218 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument
222 if (role >= CI_ROLE_END) in ci_role_start()
225 if (!ci->roles[role]) in ci_role_start()
228 ret = ci->roles[role]->start(ci); in ci_role_start()
230 ci->role = role; in ci_role_start()
236 enum ci_role role = ci->role; in ci_role_stop() local
238 if (role == CI_ROLE_END) in ci_role_stop()
[all …]
Dotg.c52 enum ci_role role = hw_read_otgsc(ci, OTGSC_ID) in ci_otg_role() local
56 return role; in ci_otg_role()
73 enum ci_role role = ci_otg_role(ci); in ci_handle_id_switch() local
75 if (role != ci->role) { in ci_handle_id_switch()
77 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch()
83 ci_role_start(ci, role); in ci_handle_id_switch()
Ddebug.c130 if (ci->role != CI_ROLE_GADGET) { in ci_qheads_show()
176 if (ci->role != CI_ROLE_GADGET) { in ci_requests_show()
293 if (ci->role != CI_ROLE_END) in ci_role_show()
304 enum ci_role role; in ci_role_write() local
311 for (role = CI_ROLE_HOST; role < CI_ROLE_END; role++) in ci_role_write()
312 if (ci->roles[role] && in ci_role_write()
313 !strncmp(buf, ci->roles[role]->name, in ci_role_write()
314 strlen(ci->roles[role]->name))) in ci_role_write()
317 if (role == CI_ROLE_END || role == ci->role) in ci_role_write()
322 ret = ci_role_start(ci, role); in ci_role_write()
Dcore.c451 if (ci->role != CI_ROLE_END) in ci_irq()
685 ci->role = ci_otg_role(ci); in ci_hdrc_probe()
694 ci->role = CI_ROLE_GADGET; in ci_hdrc_probe()
697 ci->role = ci->roles[CI_ROLE_HOST] in ci_hdrc_probe()
703 if (ci->role == CI_ROLE_GADGET) in ci_hdrc_probe()
707 ret = ci_role_start(ci, ci->role); in ci_hdrc_probe()
/drivers/block/drbd/
Ddrbd_state.c76 device->state.role != R_SECONDARY) { in conn_all_vols_unconf()
107 enum drbd_role role = R_UNKNOWN; in conn_highest_role() local
114 role = max_role(role, device->state.role); in conn_highest_role()
118 return role; in conn_highest_role()
229 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg()
418 drbd_role_str(ns.role), in print_st()
448 if (ns.role != os.role && flags & CS_DC_ROLE) in print_state_change()
450 drbd_role_str(os.role), in print_state_change()
451 drbd_role_str(ns.role)); in print_state_change()
538 if (!nc->two_primaries && ns.role == R_PRIMARY) { in is_valid_state()
[all …]
Ddrbd_state.h82 unsigned role:2 ; /* 3/4 primary/secondary/unknown */ member
102 unsigned role:2 ; /* 3/4 primary/secondary/unknown */
Ddrbd_proc.c287 state.role == R_SECONDARY) { in drbd_seq_show()
300 drbd_role_str(state.role), in drbd_seq_show()
/drivers/media/tuners/
Dit913x.c31 u8 role:2; member
48 dev_dbg(&dev->client->dev, "role %u\n", dev->role); in it913x_init()
164 dev_dbg(&dev->client->dev, "role %u\n", dev->role); in it913x_sleep()
176 if (dev->role == IT913X_ROLE_DUAL_MASTER) in it913x_sleep()
181 dev_dbg(&dev->client->dev, "role %u, len %d\n", dev->role, len); in it913x_sleep()
228 dev->role, c->frequency, c->bandwidth_hz); in it913x_set_params()
411 dev->role = cfg->role; in it913x_probe()
433 dev->chip_ver, dev->role); in it913x_probe()
Dtda18271-fe.c65 (priv->role == TDA18271_SLAVE) ? in charge_pump_source()
145 switch (priv->role) { in tda18271_channel_configuration()
168 switch (priv->role) { in tda18271_channel_configuration()
1206 priv->role = (cfg) ? cfg->role : TDA18271_MASTER; in tda18271_setup_configuration()
1318 if (cfg->role) in tda18271_attach()
1319 priv->role = cfg->role; in tda18271_attach()
Dit913x.h51 unsigned int role:2; member
Dtda18271.h94 enum tda18271_role role; member
/drivers/staging/wlan-ng/
Dprism2sta.c680 hw->cap_sup_mfi.role = le16_to_cpu(hw->cap_sup_mfi.role); in prism2sta_getcardinfo()
688 hw->cap_sup_mfi.role, hw->cap_sup_mfi.id, in prism2sta_getcardinfo()
703 hw->cap_sup_cfi.role = le16_to_cpu(hw->cap_sup_cfi.role); in prism2sta_getcardinfo()
711 hw->cap_sup_cfi.role, hw->cap_sup_cfi.id, in prism2sta_getcardinfo()
726 hw->cap_sup_pri.role = le16_to_cpu(hw->cap_sup_pri.role); in prism2sta_getcardinfo()
734 hw->cap_sup_pri.role, hw->cap_sup_pri.id, in prism2sta_getcardinfo()
749 hw->cap_sup_sta.role = le16_to_cpu(hw->cap_sup_sta.role); in prism2sta_getcardinfo()
758 hw->cap_sup_sta.role, hw->cap_sup_sta.id, in prism2sta_getcardinfo()
764 hw->cap_sup_sta.role, hw->cap_sup_sta.id, in prism2sta_getcardinfo()
780 hw->cap_act_pri_cfi.role = le16_to_cpu(hw->cap_act_pri_cfi.role); in prism2sta_getcardinfo()
[all …]
Dprism2fw.c306 priid.role = *data++; in prism2_fwapply()
1151 s3info[i].info.compat.role, in validate_identity()
1158 if ((s3info[i].info.compat.role == 1) && in validate_identity()
1167 if ((s3info[i].info.compat.role == 1) && in validate_identity()
1176 if ((s3info[i].info.compat.role == 1) && in validate_identity()
/drivers/scsi/csiostor/
Dcsio_rnode.c457 rn->role = CSIO_RNFR_FABRIC; in csio_rn_verify_rparams()
470 rn->role = CSIO_RNFR_NS; in csio_rn_verify_rparams()
480 rn->role = CSIO_RNFR_NPORT; in csio_rn_verify_rparams()
494 rn->role |= CSIO_RNFR_TARGET; in csio_rn_verify_rparams()
497 rn->role |= CSIO_RNFR_INITIATOR; in csio_rn_verify_rparams()
504 rn->role = 0; in csio_rn_verify_rparams()
557 if (rn->role & CSIO_RNFR_TARGET) in __csio_reg_rnode()
578 if (rn->role & CSIO_RNFR_TARGET) { in __csio_unreg_rnode()
Dcsio_attr.c72 if (rn->role & CSIO_RNFR_INITIATOR || rn->role & CSIO_RNFR_TARGET) { in csio_reg_rnode()
98 if (rn->role & CSIO_RNFR_INITIATOR) in csio_reg_rnode()
100 if (rn->role & CSIO_RNFR_TARGET) in csio_reg_rnode()
126 rn->role &= ~(CSIO_RNFR_INITIATOR | CSIO_RNFR_TARGET); in csio_unreg_rnode()
/drivers/media/usb/em28xx/
Dem28xx-input.c507 while (dev->board.buttons[j].role >= 0 && in em28xx_query_buttons()
508 dev->board.buttons[j].role < EM28XX_NUM_BUTTON_ROLES) { in em28xx_query_buttons()
533 switch (button->role) { in em28xx_query_buttons()
609 while (dev->board.buttons[i].role >= 0 && in em28xx_init_buttons()
610 dev->board.buttons[i].role < EM28XX_NUM_BUTTON_ROLES) { in em28xx_init_buttons()
627 if (button->role == EM28XX_BUTTON_SNAPSHOT) { in em28xx_init_buttons()
631 } else if (button->role == EM28XX_BUTTON_ILLUMINATION) { in em28xx_init_buttons()
Dem28xx.h417 enum em28xx_led_role role; member
430 enum em28xx_button_role role; member
758 enum em28xx_led_role role);
Dem28xx-core.c613 enum em28xx_led_role role) in em28xx_find_led() argument
617 while (dev->board.leds[k].role >= 0 && in em28xx_find_led()
618 dev->board.leds[k].role < EM28XX_NUM_LED_ROLES) { in em28xx_find_led()
619 if (dev->board.leds[k].role == role) in em28xx_find_led()
/drivers/scsi/aic7xxx/
Daic7xxx_core.c155 role_t role);
270 role_t role, uint32_t status);
1274 if (devinfo.role == ROLE_INITIATOR) { in ahc_handle_seqint()
2218 u_int *period, u_int *ppr_options, role_t role) in ahc_devlimited_syncrate() argument
2247 if (role == ROLE_TARGET) in ahc_devlimited_syncrate()
2391 u_int *offset, int wide, role_t role) in ahc_validate_offset() argument
2408 if (role == ROLE_TARGET) in ahc_validate_offset()
2421 u_int *bus_width, role_t role) in ahc_validate_width() argument
2436 if (role == ROLE_TARGET) in ahc_validate_width()
2773 role_t role; in ahc_fetch_devinfo() local
[all …]
Daic79xx_core.c127 role_t role);
198 role_t role, uint32_t status,
242 role_t role, uint32_t status);
267 u_int tag, role_t role);
2099 if (devinfo.role == ROLE_INITIATOR) { in ahd_handle_seqint()
3699 u_int *period, u_int *ppr_options, role_t role) in ahd_devlimited_syncrate() argument
3722 if (role == ROLE_TARGET) in ahd_devlimited_syncrate()
3788 role_t role) in ahd_validate_offset() argument
3804 if (role == ROLE_TARGET) in ahd_validate_offset()
3817 u_int *bus_width, role_t role) in ahd_validate_width() argument
[all …]
Daic7xxx.h1105 role_t role; /* member
1158 u_int tag, role_t role);
1185 role_t role, uint32_t status,
1203 role_t role);
/drivers/usb/musb/
DKconfig11 Say Y here if your system has a dual role high speed USB
14 it's being used with, including the USB peripheral role,
15 or the USB host role, or both.
/drivers/usb/core/
DKconfig51 or a host. The initial role is decided by the type of
53 role devices talk to each other.

1234