Home
last modified time | relevance | path

Searched refs:iforce (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/input/joystick/iforce/
H A Diforce.h75 struct iforce;
78 void (*xmit)(struct iforce *iforce);
79 int (*get_id)(struct iforce *iforce, u8 id,
81 int (*start_io)(struct iforce *iforce);
82 void (*stop_io)(struct iforce *iforce);
85 struct iforce { struct
115 static inline int iforce_get_id_packet(struct iforce *iforce, u8 id, in iforce_get_id_packet() argument
118 return iforce->xport_ops->get_id(iforce, id, in iforce_get_id_packet()
122 static inline void iforce_clear_xmit_and_wake(struct iforce *iforce) in iforce_clear_xmit_and_wake() argument
124 clear_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags); in iforce_clear_xmit_and_wake()
[all …]
H A Diforce-serio.c13 struct iforce iforce; member
24 static void iforce_serio_xmit(struct iforce *iforce) in iforce_serio_xmit() argument
26 struct iforce_serio *iforce_serio = container_of(iforce, in iforce_serio_xmit()
28 iforce); in iforce_serio_xmit()
32 if (test_and_set_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags)) { in iforce_serio_xmit()
33 set_bit(IFORCE_XMIT_AGAIN, iforce->xmit_flags); in iforce_serio_xmit()
37 guard(spinlock_irqsave)(&iforce->xmit_lock); in iforce_serio_xmit()
40 if (iforce->xmit.head == iforce->xmit.tail) in iforce_serio_xmit()
48 iforce->xmit.buf[iforce->xmit.tail]); in iforce_serio_xmit()
49 cs ^= iforce->xmit.buf[iforce->xmit.tail]; in iforce_serio_xmit()
[all …]
H A Diforce-usb.c13 struct iforce iforce; member
23 static void __iforce_usb_xmit(struct iforce *iforce) in __iforce_usb_xmit() argument
25 struct iforce_usb *iforce_usb = container_of(iforce, struct iforce_usb, in __iforce_usb_xmit()
26 iforce); in __iforce_usb_xmit()
29 guard(spinlock_irqsave)(&iforce->xmit_lock); in __iforce_usb_xmit()
31 if (iforce->xmit.head == iforce->xmit.tail) { in __iforce_usb_xmit()
32 iforce_clear_xmit_and_wake(iforce); in __iforce_usb_xmit()
36 ((char *)iforce_usb->out->transfer_buffer)[0] = iforce->xmit.buf[iforce->xmit.tail]; in __iforce_usb_xmit()
37 XMIT_INC(iforce->xmit.tail, 1); in __iforce_usb_xmit()
38 n = iforce->xmit.buf[iforce->xmit.tail]; in __iforce_usb_xmit()
[all …]
H A Diforce-ff.c18 static int make_magnitude_modifier(struct iforce* iforce, in make_magnitude_modifier() argument
24 guard(mutex)(&iforce->mem_mutex); in make_magnitude_modifier()
26 if (allocate_resource(&iforce->device_memory, mod_chunk, 2, in make_magnitude_modifier()
27 iforce->device_memory.start, in make_magnitude_modifier()
28 iforce->device_memory.end, in make_magnitude_modifier()
37 iforce_send_packet(iforce, FF_CMD_MAGNITUDE, data); in make_magnitude_modifier()
39 iforce_dump_packet(iforce, "magnitude", FF_CMD_MAGNITUDE, data); in make_magnitude_modifier()
47 static int make_period_modifier(struct iforce* iforce, in make_period_modifier() argument
56 guard(mutex)(&iforce->mem_mutex); in make_period_modifier()
58 if (allocate_resource(&iforce->device_memory, mod_chunk, 0x0c, in make_period_modifier()
[all …]
H A DMakefile8 obj-$(CONFIG_JOYSTICK_IFORCE) += iforce.o
9 iforce-y := iforce-ff.o iforce-main.o iforce-packets.o
10 obj-$(CONFIG_JOYSTICK_IFORCE_232) += iforce-serio.o
11 obj-$(CONFIG_JOYSTICK_IFORCE_USB) += iforce-usb.o
H A DKconfig14 module will be called iforce.
/linux/drivers/input/joystick/
H A DMakefile22 obj-$(CONFIG_JOYSTICK_IFORCE) += iforce/
H A DKconfig147 source "drivers/input/joystick/iforce/Kconfig"
/linux/Documentation/input/
H A Dff.rst38 If you have a serial iforce device, you need to start inputattach. See
231 the direction of an effect cannot be updated with iforce devices. In this
262 - Status feedback is only supported by iforce driver. If you have
/linux/Documentation/input/devices/
H A Dxpad.rst209 His useful info and both the usb-skeleton as well as the iforce input driver
/linux/Documentation/input/joydev/
H A Djoystick.rst515 All I-Force devices are supported by the iforce module. This includes:
529 inputattach --iforce /dev/tts/x &
/linux/Documentation/
H A D.renames.txt269 input/iforce-protocol input/devices/iforce-protocol