Lines Matching refs:hdev
118 static int lua_init_specials(struct hid_device *hdev) in lua_init_specials() argument
120 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in lua_init_specials()
127 hid_err(hdev, "can't alloc device descriptor\n"); in lua_init_specials()
130 hid_set_drvdata(hdev, lua); in lua_init_specials()
134 hid_err(hdev, "couldn't init struct lua_device\n"); in lua_init_specials()
140 hid_err(hdev, "cannot create sysfs files\n"); in lua_init_specials()
150 static void lua_remove_specials(struct hid_device *hdev) in lua_remove_specials() argument
152 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in lua_remove_specials()
157 lua = hid_get_drvdata(hdev); in lua_remove_specials()
161 static int lua_probe(struct hid_device *hdev, in lua_probe() argument
166 retval = hid_parse(hdev); in lua_probe()
168 hid_err(hdev, "parse failed\n"); in lua_probe()
172 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in lua_probe()
174 hid_err(hdev, "hw start failed\n"); in lua_probe()
178 retval = lua_init_specials(hdev); in lua_probe()
180 hid_err(hdev, "couldn't install mouse\n"); in lua_probe()
187 hid_hw_stop(hdev); in lua_probe()
192 static void lua_remove(struct hid_device *hdev) in lua_remove() argument
194 lua_remove_specials(hdev); in lua_remove()
195 hid_hw_stop(hdev); in lua_remove()