Lines Matching full:shared

78 	struct cougar_shared *shared;  member
121 struct cougar_shared *shared; in cougar_get_shared_data() local
124 list_for_each_entry(shared, &cougar_udev_list, list) { in cougar_get_shared_data()
125 if (hid_compare_device_paths(hdev, shared->dev, '/')) { in cougar_get_shared_data()
126 kref_get(&shared->kref); in cougar_get_shared_data()
127 return shared; in cougar_get_shared_data()
135 struct cougar_shared *shared = container_of(kref, in cougar_release_shared_data() local
139 list_del(&shared->list); in cougar_release_shared_data()
142 kfree(shared); in cougar_release_shared_data()
149 if (cougar->shared) { in cougar_remove_shared_data()
150 kref_put(&cougar->shared->kref, cougar_release_shared_data); in cougar_remove_shared_data()
151 cougar->shared = NULL; in cougar_remove_shared_data()
156 * Bind the device group's shared data to this cougar struct.
157 * If no shared data exists for this group, create and initialize it.
162 struct cougar_shared *shared; in cougar_bind_shared_data() local
167 shared = cougar_get_shared_data(hdev); in cougar_bind_shared_data()
168 if (!shared) { in cougar_bind_shared_data()
169 shared = kzalloc(sizeof(*shared), GFP_KERNEL); in cougar_bind_shared_data()
170 if (!shared) { in cougar_bind_shared_data()
175 kref_init(&shared->kref); in cougar_bind_shared_data()
176 shared->dev = hdev; in cougar_bind_shared_data()
177 list_add_tail(&shared->list, &cougar_udev_list); in cougar_bind_shared_data()
180 cougar->shared = shared; in cougar_bind_shared_data()
236 cougar->shared->input = hidinput->input; in cougar_probe()
237 cougar->shared->enabled = true; in cougar_probe()
262 struct cougar_shared *shared; in cougar_raw_event() local
267 shared = cougar->shared; in cougar_raw_event()
268 if (!cougar->special_intf || !shared) in cougar_raw_event()
271 if (!shared->enabled || !shared->input) in cougar_raw_event()
278 input_event(shared->input, EV_KEY, in cougar_raw_event()
280 input_sync(shared->input); in cougar_raw_event()
296 if (cougar->shared) in cougar_remove()
297 cougar->shared->enabled = false; in cougar_remove()