Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/phy/
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()
117 struct mux_state *mux_state; in can_transceiver_phy_probe() local
119 mux_state = devm_mux_state_get(dev, NULL); in can_transceiver_phy_probe()
120 if (IS_ERR(mux_state)) in can_transceiver_phy_probe()
121 return dev_err_probe(&pdev->dev, PTR_ERR(mux_state), in can_transceiver_phy_probe()
123 can_transceiver_phy->mux_state = mux_state; in can_transceiver_phy_probe()
/linux-6.12.1/include/linux/mux/
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.12.1/drivers/mux/
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.12.1/net/kcm/
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.12.1/drivers/usb/typec/mux/
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()
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.12.1/drivers/platform/chrome/
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.12.1/drivers/net/wwan/iosm/
Diosm_ipc_mux.h164 enum mux_state { enum
359 enum mux_state state;
/linux-6.12.1/drivers/media/usb/ttusb-budget/
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.12.1/include/linux/platform_data/
Dcros_ec_commands.h6021 uint8_t mux_state; /* USB_PD_MUX* - encoded mux state */ member