Lines Matching refs:creative_sb0540

117 struct creative_sb0540 {  struct
136 static int get_key(struct creative_sb0540 *creative_sb0540, u64 keycode) in get_key() argument
142 return creative_sb0540->keymap[i]; in get_key()
152 struct creative_sb0540 *creative_sb0540 = hid_get_drvdata(hid); in creative_sb0540_raw_event() local
170 key = get_key(creative_sb0540, main_code); in creative_sb0540_raw_event()
177 input_report_key(creative_sb0540->input_dev, key, 1); in creative_sb0540_raw_event()
178 input_report_key(creative_sb0540->input_dev, key, 0); in creative_sb0540_raw_event()
179 input_sync(creative_sb0540->input_dev); in creative_sb0540_raw_event()
189 struct creative_sb0540 *creative_sb0540 = hid_get_drvdata(hid); in creative_sb0540_input_configured() local
192 creative_sb0540->input_dev = input_dev; in creative_sb0540_input_configured()
194 input_dev->keycode = creative_sb0540->keymap; in creative_sb0540_input_configured()
196 input_dev->keycodemax = ARRAY_SIZE(creative_sb0540->keymap); in creative_sb0540_input_configured()
200 memcpy(creative_sb0540->keymap, creative_sb0540_key_table, in creative_sb0540_input_configured()
201 sizeof(creative_sb0540->keymap)); in creative_sb0540_input_configured()
203 set_bit(creative_sb0540->keymap[i], input_dev->keybit); in creative_sb0540_input_configured()
224 struct creative_sb0540 *creative_sb0540; in creative_sb0540_probe() local
226 creative_sb0540 = devm_kzalloc(&hid->dev, in creative_sb0540_probe()
227 sizeof(struct creative_sb0540), GFP_KERNEL); in creative_sb0540_probe()
229 if (!creative_sb0540) in creative_sb0540_probe()
232 creative_sb0540->hid = hid; in creative_sb0540_probe()
237 hid_set_drvdata(hid, creative_sb0540); in creative_sb0540_probe()