Lines Matching +full:memory +full:- +full:controllers
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * mux/driver.h - definitions for the multiplexer driver interface
13 #include <dt-bindings/mux/mux.h>
22 * struct mux_control_ops - Mux controller operations for a mux chip.
30 * struct mux_control - Represents a mux controller.
33 * @cached_state: The current mux controller state, or -1 if none.
57 * struct mux_chip - Represents a chip holding mux controllers.
58 * @controllers: Number of mux controllers handled by the chip.
59 * @mux: Array of mux controllers that are handled.
65 unsigned int controllers; member
76 * mux_chip_priv() - Get the extra memory reserved by mux_chip_alloc().
77 * @mux_chip: The mux-chip to get the private memory from.
79 * Return: Pointer to the private memory reserved by the allocator.
83 return &mux_chip->mux[mux_chip->controllers]; in mux_chip_priv()
87 unsigned int controllers, size_t sizeof_priv);
93 unsigned int controllers,
98 * mux_control_get_index() - Get the index of the given mux controller
99 * @mux: The mux-control to get the index for.
106 return mux - mux->chip->mux; in mux_control_get_index()