Lines Matching refs:keywest_ctx
20 static struct pmac_keywest *keywest_ctx; variable
29 if (!keywest_ctx->client) in keywest_probe()
30 keywest_ctx->client = client; in keywest_probe()
31 i2c_set_clientdata(client, keywest_ctx); in keywest_probe()
45 if (! keywest_ctx) in keywest_attach_adapter()
53 info.addr = keywest_ctx->addr; in keywest_attach_adapter()
57 keywest_ctx->client = client; in keywest_attach_adapter()
64 if (!keywest_ctx->client->dev.driver) { in keywest_attach_adapter()
65 i2c_unregister_device(keywest_ctx->client); in keywest_attach_adapter()
66 keywest_ctx->client = NULL; in keywest_attach_adapter()
74 list_add_tail(&keywest_ctx->client->detected, in keywest_attach_adapter()
75 &to_i2c_driver(keywest_ctx->client->dev.driver)->clients); in keywest_attach_adapter()
81 if (! keywest_ctx) in keywest_remove()
83 if (client == keywest_ctx->client) in keywest_remove()
84 keywest_ctx->client = NULL; in keywest_remove()
109 if (keywest_ctx && keywest_ctx == i2c) { in snd_pmac_keywest_cleanup()
111 keywest_ctx = NULL; in snd_pmac_keywest_cleanup()
119 if (!keywest_ctx || !keywest_ctx->client) in snd_pmac_tumbler_post_init()
122 if ((err = keywest_ctx->init_client(keywest_ctx)) < 0) { in snd_pmac_tumbler_post_init()
135 if (keywest_ctx) in snd_pmac_keywest_init()
142 keywest_ctx = i2c; in snd_pmac_keywest_init()