Lines Matching refs:lua
31 struct lua_device *lua = hid_get_drvdata(dev_get_drvdata(dev)); in lua_sysfs_read() local
41 mutex_lock(&lua->lua_lock); in lua_sysfs_read()
43 mutex_unlock(&lua->lua_lock); in lua_sysfs_read()
53 struct lua_device *lua = hid_get_drvdata(dev_get_drvdata(dev)); in lua_sysfs_write() local
60 mutex_lock(&lua->lua_lock); in lua_sysfs_write()
62 mutex_unlock(&lua->lua_lock); in lua_sysfs_write()
108 struct lua_device *lua) in lua_init_lua_device_struct() argument
110 mutex_init(&lua->lua_lock); in lua_init_lua_device_struct()
119 struct lua_device *lua; in lua_init_specials() local
122 lua = kzalloc(sizeof(*lua), GFP_KERNEL); in lua_init_specials()
123 if (!lua) { in lua_init_specials()
127 hid_set_drvdata(hdev, lua); in lua_init_specials()
129 retval = lua_init_lua_device_struct(usb_dev, lua); in lua_init_specials()
143 kfree(lua); in lua_init_specials()
150 struct lua_device *lua; in lua_remove_specials() local
154 lua = hid_get_drvdata(hdev); in lua_remove_specials()
155 kfree(lua); in lua_remove_specials()