mux_chip           64 drivers/mux/adg792a.c 	struct mux_chip *mux_chip;
mux_chip           79 drivers/mux/adg792a.c 	mux_chip = devm_mux_chip_alloc(dev, cells ? 3 : 1, 0);
mux_chip           80 drivers/mux/adg792a.c 	if (IS_ERR(mux_chip))
mux_chip           81 drivers/mux/adg792a.c 		return PTR_ERR(mux_chip);
mux_chip           83 drivers/mux/adg792a.c 	mux_chip->ops = &adg792a_ops;
mux_chip           91 drivers/mux/adg792a.c 					     mux_chip->controllers);
mux_chip           98 drivers/mux/adg792a.c 	for (i = 0; i < mux_chip->controllers; ++i) {
mux_chip           99 drivers/mux/adg792a.c 		struct mux_control *mux = &mux_chip->mux[i];
mux_chip          115 drivers/mux/adg792a.c 	ret = devm_mux_chip_register(dev, mux_chip);
mux_chip           57 drivers/mux/adgs1408.c 	struct mux_chip *mux_chip;
mux_chip           66 drivers/mux/adgs1408.c 	mux_chip = devm_mux_chip_alloc(dev, 1, 0);
mux_chip           67 drivers/mux/adgs1408.c 	if (IS_ERR(mux_chip))
mux_chip           68 drivers/mux/adgs1408.c 		return PTR_ERR(mux_chip);
mux_chip           70 drivers/mux/adgs1408.c 	mux_chip->ops = &adgs1408_ops;
mux_chip           80 drivers/mux/adgs1408.c 	mux = mux_chip->mux;
mux_chip          102 drivers/mux/adgs1408.c 	return devm_mux_chip_register(dev, mux_chip);
mux_chip           52 drivers/mux/core.c 	struct mux_chip *mux_chip = to_mux_chip(dev);
mux_chip           54 drivers/mux/core.c 	ida_simple_remove(&mux_ida, mux_chip->id);
mux_chip           55 drivers/mux/core.c 	kfree(mux_chip);
mux_chip           79 drivers/mux/core.c struct mux_chip *mux_chip_alloc(struct device *dev,
mux_chip           82 drivers/mux/core.c 	struct mux_chip *mux_chip;
mux_chip           88 drivers/mux/core.c 	mux_chip = kzalloc(sizeof(*mux_chip) +
mux_chip           89 drivers/mux/core.c 			   controllers * sizeof(*mux_chip->mux) +
mux_chip           91 drivers/mux/core.c 	if (!mux_chip)
mux_chip           94 drivers/mux/core.c 	mux_chip->mux = (struct mux_control *)(mux_chip + 1);
mux_chip           95 drivers/mux/core.c 	mux_chip->dev.class = &mux_class;
mux_chip           96 drivers/mux/core.c 	mux_chip->dev.type = &mux_type;
mux_chip           97 drivers/mux/core.c 	mux_chip->dev.parent = dev;
mux_chip           98 drivers/mux/core.c 	mux_chip->dev.of_node = dev->of_node;
mux_chip           99 drivers/mux/core.c 	dev_set_drvdata(&mux_chip->dev, mux_chip);
mux_chip          101 drivers/mux/core.c 	mux_chip->id = ida_simple_get(&mux_ida, 0, 0, GFP_KERNEL);
mux_chip          102 drivers/mux/core.c 	if (mux_chip->id < 0) {
mux_chip          103 drivers/mux/core.c 		int err = mux_chip->id;
mux_chip          106 drivers/mux/core.c 		kfree(mux_chip);
mux_chip          109 drivers/mux/core.c 	dev_set_name(&mux_chip->dev, "muxchip%d", mux_chip->id);
mux_chip          111 drivers/mux/core.c 	mux_chip->controllers = controllers;
mux_chip          113 drivers/mux/core.c 		struct mux_control *mux = &mux_chip->mux[i];
mux_chip          115 drivers/mux/core.c 		mux->chip = mux_chip;
mux_chip          121 drivers/mux/core.c 	device_initialize(&mux_chip->dev);
mux_chip          123 drivers/mux/core.c 	return mux_chip;
mux_chip          147 drivers/mux/core.c int mux_chip_register(struct mux_chip *mux_chip)
mux_chip          152 drivers/mux/core.c 	for (i = 0; i < mux_chip->controllers; ++i) {
mux_chip          153 drivers/mux/core.c 		struct mux_control *mux = &mux_chip->mux[i];
mux_chip          160 drivers/mux/core.c 			dev_err(&mux_chip->dev, "unable to set idle state\n");
mux_chip          165 drivers/mux/core.c 	ret = device_add(&mux_chip->dev);
mux_chip          167 drivers/mux/core.c 		dev_err(&mux_chip->dev,
mux_chip          181 drivers/mux/core.c void mux_chip_unregister(struct mux_chip *mux_chip)
mux_chip          183 drivers/mux/core.c 	device_del(&mux_chip->dev);
mux_chip          193 drivers/mux/core.c void mux_chip_free(struct mux_chip *mux_chip)
mux_chip          195 drivers/mux/core.c 	if (!mux_chip)
mux_chip          198 drivers/mux/core.c 	put_device(&mux_chip->dev);
mux_chip          204 drivers/mux/core.c 	struct mux_chip *mux_chip = *(struct mux_chip **)res;
mux_chip          206 drivers/mux/core.c 	mux_chip_free(mux_chip);
mux_chip          219 drivers/mux/core.c struct mux_chip *devm_mux_chip_alloc(struct device *dev,
mux_chip          223 drivers/mux/core.c 	struct mux_chip **ptr, *mux_chip;
mux_chip          229 drivers/mux/core.c 	mux_chip = mux_chip_alloc(dev, controllers, sizeof_priv);
mux_chip          230 drivers/mux/core.c 	if (IS_ERR(mux_chip)) {
mux_chip          232 drivers/mux/core.c 		return mux_chip;
mux_chip          235 drivers/mux/core.c 	*ptr = mux_chip;
mux_chip          238 drivers/mux/core.c 	return mux_chip;
mux_chip          244 drivers/mux/core.c 	struct mux_chip *mux_chip = *(struct mux_chip **)res;
mux_chip          246 drivers/mux/core.c 	mux_chip_unregister(mux_chip);
mux_chip          259 drivers/mux/core.c 			   struct mux_chip *mux_chip)
mux_chip          261 drivers/mux/core.c 	struct mux_chip **ptr;
mux_chip          268 drivers/mux/core.c 	res = mux_chip_register(mux_chip);
mux_chip          274 drivers/mux/core.c 	*ptr = mux_chip;
mux_chip          409 drivers/mux/core.c static struct mux_chip *of_find_mux_chip_by_node(struct device_node *np)
mux_chip          429 drivers/mux/core.c 	struct mux_chip *mux_chip;
mux_chip          453 drivers/mux/core.c 	mux_chip = of_find_mux_chip_by_node(args.np);
mux_chip          455 drivers/mux/core.c 	if (!mux_chip)
mux_chip          459 drivers/mux/core.c 	    (!args.args_count && (mux_chip->controllers > 1))) {
mux_chip          462 drivers/mux/core.c 		put_device(&mux_chip->dev);
mux_chip          470 drivers/mux/core.c 	if (controller >= mux_chip->controllers) {
mux_chip          473 drivers/mux/core.c 		put_device(&mux_chip->dev);
mux_chip          477 drivers/mux/core.c 	return &mux_chip->mux[controller];
mux_chip           49 drivers/mux/gpio.c 	struct mux_chip *mux_chip;
mux_chip           59 drivers/mux/gpio.c 	mux_chip = devm_mux_chip_alloc(dev, 1, sizeof(*mux_gpio));
mux_chip           60 drivers/mux/gpio.c 	if (IS_ERR(mux_chip))
mux_chip           61 drivers/mux/gpio.c 		return PTR_ERR(mux_chip);
mux_chip           63 drivers/mux/gpio.c 	mux_gpio = mux_chip_priv(mux_chip);
mux_chip           64 drivers/mux/gpio.c 	mux_chip->ops = &mux_gpio_ops;
mux_chip           74 drivers/mux/gpio.c 	mux_chip->mux->states = 1 << pins;
mux_chip           78 drivers/mux/gpio.c 		if (idle_state < 0 || idle_state >= mux_chip->mux->states) {
mux_chip           83 drivers/mux/gpio.c 		mux_chip->mux->idle_state = idle_state;
mux_chip           86 drivers/mux/gpio.c 	ret = devm_mux_chip_register(dev, mux_chip);
mux_chip           91 drivers/mux/gpio.c 		 mux_chip->mux->states);
mux_chip           41 drivers/mux/mmio.c 	struct mux_chip *mux_chip;
mux_chip           67 drivers/mux/mmio.c 	mux_chip = devm_mux_chip_alloc(dev, num_fields, num_fields *
mux_chip           69 drivers/mux/mmio.c 	if (IS_ERR(mux_chip))
mux_chip           70 drivers/mux/mmio.c 		return PTR_ERR(mux_chip);
mux_chip           72 drivers/mux/mmio.c 	fields = mux_chip_priv(mux_chip);
mux_chip           75 drivers/mux/mmio.c 		struct mux_control *mux = &mux_chip->mux[i];
mux_chip          126 drivers/mux/mmio.c 	mux_chip->ops = &mux_mmio_ops;
mux_chip          128 drivers/mux/mmio.c 	return devm_mux_chip_register(dev, mux_chip);
mux_chip           17 include/linux/mux/driver.h struct mux_chip;
mux_chip           45 include/linux/mux/driver.h 	struct mux_chip *chip;
mux_chip           69 include/linux/mux/driver.h #define to_mux_chip(x) container_of((x), struct mux_chip, dev)
mux_chip           77 include/linux/mux/driver.h static inline void *mux_chip_priv(struct mux_chip *mux_chip)
mux_chip           79 include/linux/mux/driver.h 	return &mux_chip->mux[mux_chip->controllers];
mux_chip           82 include/linux/mux/driver.h struct mux_chip *mux_chip_alloc(struct device *dev,
mux_chip           84 include/linux/mux/driver.h int mux_chip_register(struct mux_chip *mux_chip);
mux_chip           85 include/linux/mux/driver.h void mux_chip_unregister(struct mux_chip *mux_chip);
mux_chip           86 include/linux/mux/driver.h void mux_chip_free(struct mux_chip *mux_chip);
mux_chip           88 include/linux/mux/driver.h struct mux_chip *devm_mux_chip_alloc(struct device *dev,
mux_chip           91 include/linux/mux/driver.h int devm_mux_chip_register(struct device *dev, struct mux_chip *mux_chip);