Searched refs:mux_state (Results 1 – 11 of 11) sorted by relevance
| /linux/drivers/phy/ |
| H A D | phy-can-transceiver.c | 33 struct mux_state *mux_state; member 45 if (priv->mux_state) { in can_transceiver_phy_power_on() 46 ret = mux_state_select(priv->mux_state); in can_transceiver_phy_power_on() 68 if (priv->mux_state) in can_transceiver_phy_power_off() 69 mux_state_deselect(priv->mux_state); in can_transceiver_phy_power_off() 130 static inline struct mux_state * 170 struct mux_state *mux_state; in can_transceiver_phy_probe() local 186 mux_state = devm_mux_state_get_optional(dev, NULL); in can_transceiver_phy_probe() 187 if (IS_ERR(mux_state)) in can_transceiver_phy_probe() 188 return PTR_ERR(mux_state); in can_transceiver_phy_probe() [all …]
|
| /linux/include/linux/mux/ |
| H A D | consumer.h | 17 struct mux_state; 23 int __must_check mux_state_select_delay(struct mux_state *mstate, 28 int __must_check mux_state_try_select_delay(struct mux_state *mstate, 37 static inline int __must_check mux_state_select(struct mux_state *mstate) in mux_state_select() 48 static inline int __must_check mux_state_try_select(struct mux_state *mstate) in mux_state_try_select() 54 int mux_state_deselect(struct mux_state *mstate); 61 struct mux_state *devm_mux_state_get(struct device *dev,
|
| /linux/drivers/mux/ |
| H A D | core.c | 40 struct mux_state { struct 403 int mux_state_select_delay(struct mux_state *mstate, unsigned int delay_us) in mux_state_select_delay() 459 int mux_state_try_select_delay(struct mux_state *mstate, unsigned int delay_us) in mux_state_try_select_delay() 503 int mux_state_deselect(struct mux_state *mstate) in mux_state_deselect() 680 static struct mux_state *mux_state_get(struct device *dev, const char *mux_name) in mux_state_get() 682 struct mux_state *mstate; in mux_state_get() 705 static void mux_state_put(struct mux_state *mstate) in mux_state_put() 713 struct mux_state *mstate = *(struct mux_state **)res; in devm_mux_state_release() 726 struct mux_state *devm_mux_state_get(struct device *dev, in devm_mux_state_get() 729 struct mux_state **ptr, *mstate; in devm_mux_state_get()
|
| /linux/net/kcm/ |
| H A D | kcmproc.c | 222 struct kcm_proc_mux_state *mux_state; in kcm_seq_show() local 224 mux_state = seq->private; in kcm_seq_show() 226 mux_state->idx = 0; in kcm_seq_show() 229 kcm_format_mux(v, mux_state->idx, seq); in kcm_seq_show() 230 mux_state->idx++; in kcm_seq_show()
|
| /linux/drivers/usb/typec/mux/ |
| H A D | ptn36502.c | 239 struct typec_mux_state mux_state; in ptn36502_retimer_set() local 260 mux_state.alt = state->alt; in ptn36502_retimer_set() 261 mux_state.data = state->data; in ptn36502_retimer_set() 262 mux_state.mode = state->mode; in ptn36502_retimer_set() 264 return typec_mux_set(ptn->typec_mux, &mux_state); in ptn36502_retimer_set()
|
| H A D | nb7vpq904m.c | 279 struct typec_mux_state mux_state; in nb7vpq904m_retimer_set() local 300 mux_state.alt = state->alt; in nb7vpq904m_retimer_set() 301 mux_state.data = state->data; in nb7vpq904m_retimer_set() 302 mux_state.mode = state->mode; in nb7vpq904m_retimer_set() 304 return typec_mux_set(nb7->typec_mux, &mux_state); in nb7vpq904m_retimer_set()
|
| H A D | ps883x.c | 208 struct typec_mux_state mux_state; in ps883x_retimer_set() local 218 mux_state.alt = state->alt; in ps883x_retimer_set() 219 mux_state.data = state->data; in ps883x_retimer_set() 220 mux_state.mode = state->mode; in ps883x_retimer_set() 222 return typec_mux_set(retimer->typec_mux, &mux_state); in ps883x_retimer_set()
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-omap.c | 215 struct mux_state *mux_state; member 1457 struct mux_state *mux_state; in omap_i2c_probe() local 1459 mux_state = devm_mux_state_get(&pdev->dev, NULL); in omap_i2c_probe() 1460 if (IS_ERR(mux_state)) { in omap_i2c_probe() 1461 r = PTR_ERR(mux_state); in omap_i2c_probe() 1465 omap->mux_state = mux_state; in omap_i2c_probe() 1466 r = mux_state_select(omap->mux_state); in omap_i2c_probe() 1519 if (omap->mux_state) in omap_i2c_probe() 1520 mux_state_deselect(omap->mux_state); in omap_i2c_probe() 1537 if (omap->mux_state) in omap_i2c_remove() [all …]
|
| /linux/drivers/net/wwan/iosm/ |
| H A D | iosm_ipc_mux.h | 164 enum mux_state { enum 359 enum mux_state state;
|
| /linux/drivers/media/usb/ttusb-budget/ |
| H A D | dvb-ttusb-budget.c | 123 int mux_state; // 0..2 - MuxSyncWord, 3 - nMuxPacks, 4 - muxpack member 609 switch (ttusb->mux_state) { in ttusb_process_frame() 615 ++ttusb->mux_state; in ttusb_process_frame() 617 ttusb->mux_state = 0; in ttusb_process_frame() 628 ++ttusb->mux_state; in ttusb_process_frame() 677 ttusb->mux_state = 0; in ttusb_process_frame() 702 ttusb->mux_state = 0; in ttusb_process_frame() 803 ttusb->mux_state = 0; in ttusb_start_iso_xfer() 1614 ttusb->mux_state = 0; in ttusb_probe()
|
| /linux/sound/soc/codecs/ |
| H A D | wcd938x.c | 173 unsigned int mux_state; member 3189 ret = mux_control_try_select(wcd938x->us_euro_mux, !wcd938x->mux_state); in wcd938x_swap_gnd_mic() 3197 gpiod_set_value(wcd938x->us_euro_gpio, !wcd938x->mux_state); in wcd938x_swap_gnd_mic() 3200 wcd938x->mux_state = !wcd938x->mux_state; in wcd938x_swap_gnd_mic() 3223 ret = mux_control_try_select(wcd938x->us_euro_mux, wcd938x->mux_state); in wcd938x_populate_dt_data()
|