Lines Matching refs:keywest_ctx
32 static struct pmac_keywest *keywest_ctx; variable
38 i2c_set_clientdata(client, keywest_ctx); in keywest_probe()
51 if (! keywest_ctx) in keywest_attach_adapter()
59 info.addr = keywest_ctx->addr; in keywest_attach_adapter()
60 keywest_ctx->client = i2c_new_device(adapter, &info); in keywest_attach_adapter()
61 if (!keywest_ctx->client) in keywest_attach_adapter()
68 if (!keywest_ctx->client->driver) { in keywest_attach_adapter()
69 i2c_unregister_device(keywest_ctx->client); in keywest_attach_adapter()
70 keywest_ctx->client = NULL; in keywest_attach_adapter()
78 list_add_tail(&keywest_ctx->client->detected, in keywest_attach_adapter()
79 &keywest_ctx->client->driver->clients); in keywest_attach_adapter()
85 if (! keywest_ctx) in keywest_remove()
87 if (client == keywest_ctx->client) in keywest_remove()
88 keywest_ctx->client = NULL; in keywest_remove()
112 if (keywest_ctx && keywest_ctx == i2c) { in snd_pmac_keywest_cleanup()
114 keywest_ctx = NULL; in snd_pmac_keywest_cleanup()
122 if (!keywest_ctx || !keywest_ctx->client) in snd_pmac_tumbler_post_init()
125 if ((err = keywest_ctx->init_client(keywest_ctx)) < 0) { in snd_pmac_tumbler_post_init()
137 if (keywest_ctx) in snd_pmac_keywest_init()
140 keywest_ctx = i2c; in snd_pmac_keywest_init()