chost 175 drivers/i2c/busses/i2c-cbus-gpio.c struct cbus_host *chost = i2c_get_adapdata(adapter); chost 181 drivers/i2c/busses/i2c-cbus-gpio.c ret = cbus_transfer(chost, read_write == I2C_SMBUS_READ, addr, chost 214 drivers/i2c/busses/i2c-cbus-gpio.c struct cbus_host *chost; chost 221 drivers/i2c/busses/i2c-cbus-gpio.c chost = devm_kzalloc(&pdev->dev, sizeof(*chost), GFP_KERNEL); chost 222 drivers/i2c/busses/i2c-cbus-gpio.c if (!chost) chost 227 drivers/i2c/busses/i2c-cbus-gpio.c chost->clk = devm_gpiod_get_index(&pdev->dev, NULL, 0, GPIOD_OUT_LOW); chost 228 drivers/i2c/busses/i2c-cbus-gpio.c if (IS_ERR(chost->clk)) chost 229 drivers/i2c/busses/i2c-cbus-gpio.c return PTR_ERR(chost->clk); chost 230 drivers/i2c/busses/i2c-cbus-gpio.c chost->dat = devm_gpiod_get_index(&pdev->dev, NULL, 1, GPIOD_IN); chost 231 drivers/i2c/busses/i2c-cbus-gpio.c if (IS_ERR(chost->dat)) chost 232 drivers/i2c/busses/i2c-cbus-gpio.c return PTR_ERR(chost->dat); chost 233 drivers/i2c/busses/i2c-cbus-gpio.c chost->sel = devm_gpiod_get_index(&pdev->dev, NULL, 2, GPIOD_OUT_HIGH); chost 234 drivers/i2c/busses/i2c-cbus-gpio.c if (IS_ERR(chost->sel)) chost 235 drivers/i2c/busses/i2c-cbus-gpio.c return PTR_ERR(chost->sel); chost 236 drivers/i2c/busses/i2c-cbus-gpio.c gpiod_set_consumer_name(chost->clk, "CBUS clk"); chost 237 drivers/i2c/busses/i2c-cbus-gpio.c gpiod_set_consumer_name(chost->dat, "CBUS dat"); chost 238 drivers/i2c/busses/i2c-cbus-gpio.c gpiod_set_consumer_name(chost->sel, "CBUS sel"); chost 249 drivers/i2c/busses/i2c-cbus-gpio.c spin_lock_init(&chost->lock); chost 250 drivers/i2c/busses/i2c-cbus-gpio.c chost->dev = &pdev->dev; chost 252 drivers/i2c/busses/i2c-cbus-gpio.c i2c_set_adapdata(adapter, chost);