Lines Matching full:controllers
79 * @controllers: The number of mux controllers to allocate for this chip.
82 * After allocating the mux-chip with the desired number of mux controllers
93 unsigned int controllers, size_t sizeof_priv) in mux_chip_alloc() argument
98 if (WARN_ON(!dev || !controllers)) in mux_chip_alloc()
101 mux_chip = kzalloc(size_add(struct_size(mux_chip, mux, controllers), in mux_chip_alloc()
123 mux_chip->controllers = controllers; in mux_chip_alloc()
124 for (i = 0; i < controllers; ++i) { in mux_chip_alloc()
152 * mux_chip_register() - Register a mux-chip, thus readying the controllers
167 for (i = 0; i < mux_chip->controllers; ++i) { in mux_chip_register()
227 * @controllers: The number of mux controllers to allocate for this chip.
235 unsigned int controllers, in devm_mux_chip_alloc() argument
244 mux_chip = mux_chip_alloc(dev, controllers, sizeof_priv); in devm_mux_chip_alloc()
574 (args.args_count < 2 && mux_chip->controllers > 1)) { in mux_get()
590 (!args.args_count && mux_chip->controllers > 1)) { in mux_get()
601 if (controller >= mux_chip->controllers) { in mux_get()
751 * and mux controllers start to use it.