Home
last modified time | relevance | path

Searched refs:mux_state (Results 1 – 12 of 12) sorted by relevance

/linux-6.15/drivers/phy/
H A Dphy-can-transceiver.c26 struct mux_state *mux_state; member
35 if (can_transceiver_phy->mux_state) { in can_transceiver_phy_power_on()
36 ret = mux_state_select(can_transceiver_phy->mux_state); in can_transceiver_phy_power_on()
59 if (can_transceiver_phy->mux_state) in can_transceiver_phy_power_off()
60 mux_state_deselect(can_transceiver_phy->mux_state); in can_transceiver_phy_power_off()
97 static inline struct mux_state *
116 struct mux_state *mux_state; in can_transceiver_phy_probe() local
127 mux_state = devm_mux_state_get_optional(dev, NULL); in can_transceiver_phy_probe()
128 if (IS_ERR(mux_state)) in can_transceiver_phy_probe()
129 return PTR_ERR(mux_state); in can_transceiver_phy_probe()
[all …]
/linux-6.15/include/linux/mux/
H A Dconsumer.h17 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-6.15/drivers/mux/
H A Dcore.c40 struct mux_state { struct
404 int mux_state_select_delay(struct mux_state *mstate, unsigned int delay_us) in mux_state_select_delay()
460 int mux_state_try_select_delay(struct mux_state *mstate, unsigned int delay_us) in mux_state_try_select_delay()
504 int mux_state_deselect(struct mux_state *mstate) in mux_state_deselect()
681 static struct mux_state *mux_state_get(struct device *dev, const char *mux_name) in mux_state_get()
683 struct mux_state *mstate; in mux_state_get()
706 static void mux_state_put(struct mux_state *mstate) in mux_state_put()
714 struct mux_state *mstate = *(struct mux_state **)res; in devm_mux_state_release()
727 struct mux_state *devm_mux_state_get(struct device *dev, in devm_mux_state_get()
730 struct mux_state **ptr, *mstate; in devm_mux_state_get()
/linux-6.15/net/kcm/
H A Dkcmproc.c222 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-6.15/drivers/usb/typec/mux/
H A Dptn36502.c239 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 Dps883x.c164 struct typec_mux_state mux_state; in ps883x_retimer_set() local
185 mux_state.alt = state->alt; in ps883x_retimer_set()
186 mux_state.data = state->data; in ps883x_retimer_set()
187 mux_state.mode = state->mode; in ps883x_retimer_set()
189 return typec_mux_set(retimer->typec_mux, &mux_state); in ps883x_retimer_set()
H A Dnb7vpq904m.c279 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()
/linux-6.15/drivers/platform/chrome/
H A Dcros_typec_switch.c113 u8 mux_state; in cros_typec_configure_mux() local
119 mux_state = (u8)ret; in cros_typec_configure_mux()
132 ret = cros_typec_cmd_mux_set(sdata, port_num, index, mux_state); in cros_typec_configure_mux()
146 index, mux_state); in cros_typec_configure_mux()
/linux-6.15/drivers/i2c/busses/
H A Di2c-omap.c215 struct mux_state *mux_state; member
1458 struct mux_state *mux_state; in omap_i2c_probe() local
1460 mux_state = devm_mux_state_get(&pdev->dev, NULL); in omap_i2c_probe()
1461 if (IS_ERR(mux_state)) { in omap_i2c_probe()
1462 r = PTR_ERR(mux_state); in omap_i2c_probe()
1466 omap->mux_state = mux_state; in omap_i2c_probe()
1467 r = mux_state_select(omap->mux_state); in omap_i2c_probe()
1533 if (omap->mux_state) in omap_i2c_remove()
1534 mux_state_deselect(omap->mux_state); in omap_i2c_remove()
/linux-6.15/drivers/net/wwan/iosm/
H A Diosm_ipc_mux.h164 enum mux_state { enum
359 enum mux_state state;
/linux-6.15/drivers/media/usb/ttusb-budget/
H A Ddvb-ttusb-budget.c123 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-6.15/include/linux/platform_data/
H A Dcros_ec_commands.h6057 uint8_t mux_state; /* USB_PD_MUX* - encoded mux state */ member