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>
21 * struct mux_control_ops - Mux controller operations for a mux chip.
29 * struct mux_control - Represents a mux controller.
32 * @cached_state: The current mux controller state, or -1 if none.
53 * struct mux_chip - Represents a chip holding mux controllers.
54 * @controllers: Number of mux controllers handled by the chip.
55 * @mux: Array of mux controllers that are handled.
61 unsigned int controllers; member
72 * mux_chip_priv() - Get the extra memory reserved by mux_chip_alloc().
73 * @mux_chip: The mux-chip to get the private memory from.
75 * Return: Pointer to the private memory reserved by the allocator.
79 return &mux_chip->mux[mux_chip->controllers]; in mux_chip_priv()
83 unsigned int controllers, size_t sizeof_priv);
89 unsigned int controllers,
94 * mux_control_get_index() - Get the index of the given mux controller
95 * @mux: The mux-control to get the index for.
102 return mux - mux->chip->mux; in mux_control_get_index()