Searched refs:iforce (Results 1 – 10 of 10) sorted by relevance
/drivers/input/joystick/iforce/ |
D | iforce-usb.c | 30 void iforce_usb_xmit(struct iforce *iforce) in iforce_usb_xmit() argument 35 spin_lock_irqsave(&iforce->xmit_lock, flags); in iforce_usb_xmit() 37 if (iforce->xmit.head == iforce->xmit.tail) { in iforce_usb_xmit() 38 clear_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags); in iforce_usb_xmit() 39 spin_unlock_irqrestore(&iforce->xmit_lock, flags); in iforce_usb_xmit() 43 ((char *)iforce->out->transfer_buffer)[0] = iforce->xmit.buf[iforce->xmit.tail]; in iforce_usb_xmit() 44 XMIT_INC(iforce->xmit.tail, 1); in iforce_usb_xmit() 45 n = iforce->xmit.buf[iforce->xmit.tail]; in iforce_usb_xmit() 46 XMIT_INC(iforce->xmit.tail, 1); in iforce_usb_xmit() 48 iforce->out->transfer_buffer_length = n + 1; in iforce_usb_xmit() [all …]
|
D | iforce-serio.c | 30 void iforce_serial_xmit(struct iforce *iforce) in iforce_serial_xmit() argument 36 if (test_and_set_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags)) { in iforce_serial_xmit() 37 set_bit(IFORCE_XMIT_AGAIN, iforce->xmit_flags); in iforce_serial_xmit() 41 spin_lock_irqsave(&iforce->xmit_lock, flags); in iforce_serial_xmit() 44 if (iforce->xmit.head == iforce->xmit.tail) { in iforce_serial_xmit() 45 clear_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags); in iforce_serial_xmit() 46 spin_unlock_irqrestore(&iforce->xmit_lock, flags); in iforce_serial_xmit() 52 serio_write(iforce->serio, 0x2b); in iforce_serial_xmit() 54 serio_write(iforce->serio, iforce->xmit.buf[iforce->xmit.tail]); in iforce_serial_xmit() 55 cs ^= iforce->xmit.buf[iforce->xmit.tail]; in iforce_serial_xmit() [all …]
|
D | iforce-main.c | 86 struct iforce *iforce = input_get_drvdata(dev); in iforce_playback() local 87 struct iforce_core_effect *core_effect = &iforce->core_effects[effect_id]; in iforce_playback() 94 iforce_control_playback(iforce, effect_id, value); in iforce_playback() 100 struct iforce *iforce = input_get_drvdata(dev); in iforce_set_gain() local 104 iforce_send_packet(iforce, FF_CMD_GAIN, data); in iforce_set_gain() 109 struct iforce *iforce = input_get_drvdata(dev); in iforce_set_autocenter() local 114 iforce_send_packet(iforce, FF_CMD_AUTOCENTER, data); in iforce_set_autocenter() 118 iforce_send_packet(iforce, FF_CMD_AUTOCENTER, data); in iforce_set_autocenter() 127 struct iforce *iforce = input_get_drvdata(dev); in iforce_upload_effect() local 128 struct iforce_core_effect *core_effect = &iforce->core_effects[effect->id]; in iforce_upload_effect() [all …]
|
D | iforce-packets.c | 49 int iforce_send_packet(struct iforce *iforce, u16 cmd, unsigned char* data) in iforce_send_packet() argument 61 spin_lock_irqsave(&iforce->xmit_lock, flags); in iforce_send_packet() 63 head = iforce->xmit.head; in iforce_send_packet() 64 tail = iforce->xmit.tail; in iforce_send_packet() 68 dev_warn(&iforce->dev->dev, in iforce_send_packet() 70 spin_unlock_irqrestore(&iforce->xmit_lock, flags); in iforce_send_packet() 75 XMIT_INC(iforce->xmit.head, n+2); in iforce_send_packet() 80 iforce->xmit.buf[head] = HI(cmd); in iforce_send_packet() 82 iforce->xmit.buf[head] = LO(cmd); in iforce_send_packet() 88 memcpy(&iforce->xmit.buf[head], in iforce_send_packet() [all …]
|
D | iforce-ff.c | 37 static int make_magnitude_modifier(struct iforce* iforce, in make_magnitude_modifier() argument 43 mutex_lock(&iforce->mem_mutex); in make_magnitude_modifier() 44 if (allocate_resource(&(iforce->device_memory), mod_chunk, 2, in make_magnitude_modifier() 45 iforce->device_memory.start, iforce->device_memory.end, 2L, in make_magnitude_modifier() 47 mutex_unlock(&iforce->mem_mutex); in make_magnitude_modifier() 50 mutex_unlock(&iforce->mem_mutex); in make_magnitude_modifier() 57 iforce_send_packet(iforce, FF_CMD_MAGNITUDE, data); in make_magnitude_modifier() 67 static int make_period_modifier(struct iforce* iforce, in make_period_modifier() argument 76 mutex_lock(&iforce->mem_mutex); in make_period_modifier() 77 if (allocate_resource(&(iforce->device_memory), mod_chunk, 0x0c, in make_period_modifier() [all …]
|
D | iforce.h | 101 struct iforce { struct 149 void iforce_serial_xmit(struct iforce *iforce); 152 void iforce_usb_xmit(struct iforce *iforce); 153 void iforce_usb_delete(struct iforce *iforce); 156 int iforce_init_device(struct iforce *iforce); 157 void iforce_delete_device(struct iforce *iforce); 160 int iforce_control_playback(struct iforce*, u16 id, unsigned int); 161 void iforce_process_packet(struct iforce *iforce, u16 cmd, unsigned char *data); 162 int iforce_send_packet(struct iforce *iforce, u16 cmd, unsigned char* data); 164 int iforce_get_id_packet(struct iforce *iforce, char *packet); [all …]
|
D | Makefile | 8 iforce-objs := iforce-ff.o iforce-main.o iforce-packets.o 10 obj-$(CONFIG_JOYSTICK_IFORCE) += iforce.o 13 iforce-objs += iforce-serio.o 17 iforce-objs += iforce-usb.o
|
D | Kconfig | 13 module will be called iforce.
|
/drivers/input/joystick/ |
D | Makefile | 18 obj-$(CONFIG_JOYSTICK_IFORCE) += iforce/
|
D | Kconfig | 133 source "drivers/input/joystick/iforce/Kconfig"
|