Lines Matching refs:keywest_ctx
33 static struct pmac_keywest *keywest_ctx; variable
42 if (!keywest_ctx->client) in keywest_probe()
43 keywest_ctx->client = client; in keywest_probe()
44 i2c_set_clientdata(client, keywest_ctx); in keywest_probe()
57 if (! keywest_ctx) in keywest_attach_adapter()
65 info.addr = keywest_ctx->addr; in keywest_attach_adapter()
66 keywest_ctx->client = i2c_new_device(adapter, &info); in keywest_attach_adapter()
67 if (!keywest_ctx->client) in keywest_attach_adapter()
74 if (!keywest_ctx->client->dev.driver) { in keywest_attach_adapter()
75 i2c_unregister_device(keywest_ctx->client); in keywest_attach_adapter()
76 keywest_ctx->client = NULL; in keywest_attach_adapter()
84 list_add_tail(&keywest_ctx->client->detected, in keywest_attach_adapter()
85 &to_i2c_driver(keywest_ctx->client->dev.driver)->clients); in keywest_attach_adapter()
91 if (! keywest_ctx) in keywest_remove()
93 if (client == keywest_ctx->client) in keywest_remove()
94 keywest_ctx->client = NULL; in keywest_remove()
119 if (keywest_ctx && keywest_ctx == i2c) { in snd_pmac_keywest_cleanup()
121 keywest_ctx = NULL; in snd_pmac_keywest_cleanup()
129 if (!keywest_ctx || !keywest_ctx->client) in snd_pmac_tumbler_post_init()
132 if ((err = keywest_ctx->init_client(keywest_ctx)) < 0) { in snd_pmac_tumbler_post_init()
145 if (keywest_ctx) in snd_pmac_keywest_init()
152 keywest_ctx = i2c; in snd_pmac_keywest_init()