Searched refs:cobra (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/input/joystick/
H A Dcobra.c47 struct cobra { struct
112 struct cobra *cobra = gameport_get_drvdata(gameport); cobra_poll() local
117 cobra->reads++; cobra_poll()
119 if ((r = cobra_read_packet(gameport, data)) != cobra->exists) { cobra_poll()
120 cobra->bads++; cobra_poll()
125 if (cobra->exists & r & (1 << i)) { cobra_poll()
127 dev = cobra->dev[i]; cobra_poll()
142 struct cobra *cobra = input_get_drvdata(dev); cobra_open() local
144 gameport_start_polling(cobra->gameport); cobra_open()
150 struct cobra *cobra = input_get_drvdata(dev); cobra_close() local
152 gameport_stop_polling(cobra->gameport); cobra_close()
157 struct cobra *cobra; cobra_connect() local
163 cobra = kzalloc(sizeof(struct cobra), GFP_KERNEL); cobra_connect()
164 if (!cobra) cobra_connect()
167 cobra->gameport = gameport; cobra_connect()
169 gameport_set_drvdata(gameport, cobra); cobra_connect()
175 cobra->exists = cobra_read_packet(gameport, data); cobra_connect()
178 if ((cobra->exists >> i) & data[i] & 1) { cobra_connect()
179 printk(KERN_WARNING "cobra.c: Device %d on %s has the Ext bit set. ID is: %d" cobra_connect()
181 cobra->exists &= ~(1 << i); cobra_connect()
184 if (!cobra->exists) { cobra_connect()
193 if (~(cobra->exists >> i) & 1) cobra_connect()
196 cobra->dev[i] = input_dev = input_allocate_device(); cobra_connect()
202 snprintf(cobra->phys[i], sizeof(cobra->phys[i]), cobra_connect()
206 input_dev->phys = cobra->phys[i]; cobra_connect()
213 input_set_drvdata(input_dev, cobra); cobra_connect()
224 err = input_register_device(cobra->dev[i]); cobra_connect()
231 fail4: input_free_device(cobra->dev[i]); cobra_connect()
233 if (cobra->dev[i]) cobra_connect()
234 input_unregister_device(cobra->dev[i]); cobra_connect()
237 kfree(cobra); cobra_connect()
243 struct cobra *cobra = gameport_get_drvdata(gameport); cobra_disconnect() local
247 if ((cobra->exists >> i) & 1) cobra_disconnect()
248 input_unregister_device(cobra->dev[i]); cobra_disconnect()
251 kfree(cobra); cobra_disconnect()
256 .name = "cobra",
/linux-4.4.14/arch/powerpc/include/asm/
H A Dprocessor.h60 #define _CHRP_Motorola 0x04 /* motorola chrp, the cobra */
/linux-4.4.14/arch/arm/boot/dts/
H A DMakefile750 armada-385-linksys-cobra.dtb \

Completed in 87 milliseconds