Lines Matching refs:keywest_ctx
16 static struct pmac_keywest *keywest_ctx; variable
24 if (!keywest_ctx->client) in keywest_probe()
25 keywest_ctx->client = client; in keywest_probe()
26 i2c_set_clientdata(client, keywest_ctx); in keywest_probe()
40 if (! keywest_ctx) in keywest_attach_adapter()
48 info.addr = keywest_ctx->addr; in keywest_attach_adapter()
52 keywest_ctx->client = client; in keywest_attach_adapter()
59 if (!keywest_ctx->client->dev.driver) { in keywest_attach_adapter()
60 i2c_unregister_device(keywest_ctx->client); in keywest_attach_adapter()
61 keywest_ctx->client = NULL; in keywest_attach_adapter()
69 list_add_tail(&keywest_ctx->client->detected, in keywest_attach_adapter()
70 &to_i2c_driver(keywest_ctx->client->dev.driver)->clients); in keywest_attach_adapter()
76 if (! keywest_ctx) in keywest_remove()
78 if (client == keywest_ctx->client) in keywest_remove()
79 keywest_ctx->client = NULL; in keywest_remove()
102 if (keywest_ctx && keywest_ctx == i2c) { in snd_pmac_keywest_cleanup()
104 keywest_ctx = NULL; in snd_pmac_keywest_cleanup()
112 if (!keywest_ctx || !keywest_ctx->client) in snd_pmac_tumbler_post_init()
115 err = keywest_ctx->init_client(keywest_ctx); in snd_pmac_tumbler_post_init()
129 if (keywest_ctx) in snd_pmac_keywest_init()
136 keywest_ctx = i2c; in snd_pmac_keywest_init()