Searched refs:input (Results 1 - 25 of 808) sorted by relevance

1234567891011>>

/drivers/media/usb/pvrusb2/
H A Dpvrusb2-wm8775.c41 u32 input; local
45 input = 1;
48 /* All other cases just use the second input */
49 input = 2;
54 hdw->input_val, input);
56 sd->ops->audio->s_routing(sd, input, 0, 0);
/drivers/input/keyboard/
H A Dopencores-kbd.c10 #include <linux/input.h>
20 struct input_dev *input; member in struct:opencores_kbd
29 struct input_dev *input = opencores_kbd->input; local
33 input_report_key(input, c & 0x7f, c & 0x80 ? 0 : 1);
34 input_sync(input);
41 struct input_dev *input; local
63 input = devm_input_allocate_device(&pdev->dev);
64 if (!input) {
65 dev_err(&pdev->dev, "failed to allocate input devic
[all...]
H A Dbf54x-keys.c2 * File: drivers/input/keyboard/bf54x-keys.c
43 #include <linux/input.h>
78 struct input_dev *input; member in struct:bf54x_kpad
90 struct input_dev *input, u16 keyident)
94 for (i = 0; i < input->keycodemax; i++)
95 if (bf54x_kpad->keycode[i + input->keycodemax] == keyident)
142 input_report_key(bf54x_kpad->input, bf54x_kpad->lastkey, 0);
143 input_sync(bf54x_kpad->input);
155 struct input_dev *input = bf54x_kpad->input; local
89 bfin_kpad_find_key(struct bf54x_kpad *bf54x_kpad, struct input_dev *input, u16 keyident) argument
183 struct input_dev *input; local
[all...]
/drivers/input/misc/
H A Dpcf50633-input.c21 #include <linux/input.h>
38 struct pcf50633_input *input; local
41 input = data;
44 onkey_released = pcf50633_reg_read(input->pcf, PCF50633_REG_OOCSTAT)
48 input_report_key(input->input_dev, KEY_POWER, 1);
50 input_report_key(input->input_dev, KEY_POWER, 0);
52 input_sync(input->input_dev);
57 struct pcf50633_input *input; local
62 input = kzalloc(sizeof(*input), GFP_KERNE
97 struct pcf50633_input *input = platform_get_drvdata(pdev); local
[all...]
H A Dsirfsoc-onkey.c14 #include <linux/input.h>
21 struct input_dev *input; member in struct:sirfsoc_pwrc_drvdata
48 input_event(pwrcdrv->input, EV_KEY, KEY_POWER, 0);
49 input_sync(pwrcdrv->input);
63 input_event(pwrcdrv->input, EV_KEY, KEY_POWER, 1);
64 input_sync(pwrcdrv->input);
84 static int sirfsoc_pwrc_open(struct input_dev *input) argument
86 struct sirfsoc_pwrc_drvdata *pwrcdrv = input_get_drvdata(input);
93 static void sirfsoc_pwrc_close(struct input_dev *input) argument
95 struct sirfsoc_pwrc_drvdata *pwrcdrv = input_get_drvdata(input);
186 struct input_dev *input = pwrcdrv->input; local
[all...]
H A Dbfin_rotary.c13 #include <linux/input.h>
27 struct input_dev *input; member in struct:bfin_rot
38 static void report_key_event(struct input_dev *input, int keycode) argument
41 input_report_key(input, keycode, 1);
42 input_sync(input);
43 input_report_key(input, keycode, 0);
44 input_sync(input);
49 struct input_dev *input = rotary->input; local
52 report_key_event(input,
96 struct input_dev *input; local
[all...]
H A Dgpio-beeper.c12 #include <linux/input.h>
57 static void gpio_beeper_close(struct input_dev *input) argument
59 struct gpio_beeper *beep = input_get_drvdata(input);
68 struct input_dev *input; local
79 input = devm_input_allocate_device(&pdev->dev);
80 if (!input)
85 input->name = pdev->name;
86 input->id.bustype = BUS_HOST;
87 input->id.vendor = 0x0001;
88 input
[all...]
H A Dcobalt_btns.c20 #include <linux/input-polldev.h>
51 struct input_dev *input = dev->input; local
60 input_event(input, EV_MSC, MSC_SCAN, i);
61 input_report_key(input, bdev->keymap[i], 1);
62 input_sync(input);
66 input_event(input, EV_MSC, MSC_SCAN, i);
67 input_report_key(input, bdev->keymap[i], 0);
68 input_sync(input);
79 struct input_dev *input; local
[all...]
H A Dsgi_btns.c20 #include <linux/input-polldev.h>
69 struct input_dev *input = dev->input; local
78 input_event(input, EV_MSC, MSC_SCAN, i);
79 input_report_key(input, bdev->keymap[i], 1);
80 input_sync(input);
84 input_event(input, EV_MSC, MSC_SCAN, i);
85 input_report_key(input, bdev->keymap[i], 0);
86 input_sync(input);
97 struct input_dev *input; local
[all...]
H A Drb532_button.c7 #include <linux/input-polldev.h>
20 * pin is also used for uart input as alternate function, the
49 input_report_key(poll_dev->input, RB532_BTN_KSYM,
51 input_sync(poll_dev->input);
66 poll_dev->input->name = "rb532 button";
67 poll_dev->input->phys = "rb532/button0";
68 poll_dev->input->id.bustype = BUS_HOST;
69 poll_dev->input->dev.parent = &pdev->dev;
73 input_set_capability(poll_dev->input, EV_KEY, RB532_BTN_KSYM);
H A Dpwm-beeper.c16 #include <linux/input.h>
25 struct input_dev *input; member in struct:pwm_beeper
32 static int pwm_beeper_event(struct input_dev *input, argument
36 struct pwm_beeper *beeper = input_get_drvdata(input);
91 beeper->input = input_allocate_device();
92 if (!beeper->input) {
93 dev_err(&pdev->dev, "Failed to allocate input device\n");
97 beeper->input->dev.parent = &pdev->dev;
99 beeper->input->name = "pwm-beeper";
100 beeper->input
[all...]
/drivers/media/pci/ivtv/
H A Divtv-routing.c32 /* Selects the audio input and output according to the current
37 u32 input, output = 0; local
39 /* Determine which input to use */
46 input = in->muxer_input;
50 input, output, 0);
52 input = in->audio_input;
57 input, output, 0);
60 /* Selects the video input and output according to the current
65 u32 input; local
74 input
[all...]
/drivers/platform/x86/
H A Dintel_mid_powerbtn.c25 #include <linux/input.h>
40 struct input_dev *input = dev_id; local
45 dev_dbg(input->dev.parent, "PB_INT status= %d\n", pbstat);
48 dev_err(input->dev.parent, "Read error %d while reading"
51 input_event(input, EV_KEY, KEY_POWER,
53 input_sync(input);
61 struct input_dev *input; local
68 input = input_allocate_device();
69 if (!input)
72 input
124 struct input_dev *input = platform_get_drvdata(pdev); local
[all...]
/drivers/input/touchscreen/
H A Dipaq-micro-ts.c20 #include <linux/input.h>
26 struct input_dev *input; member in struct:touchscreen_data
35 input_report_abs(ts->input, ABS_X,
37 input_report_abs(ts->input, ABS_Y,
39 input_report_key(ts->input, BTN_TOUCH, 1);
40 input_sync(ts->input);
42 input_report_abs(ts->input, ABS_X, 0);
43 input_report_abs(ts->input, ABS_Y, 0);
44 input_report_key(ts->input, BTN_TOUCH, 0);
45 input_sync(ts->input);
66 micro_ts_open(struct input_dev *input) argument
75 micro_ts_close(struct input_dev *input) argument
138 struct input_dev *input = ts->input; local
[all...]
H A Dwacom_i2c.c15 #include <linux/input.h>
40 struct input_dev *input; member in struct:wacom_i2c
97 struct input_dev *input = wac_i2c->input; local
122 input_report_key(input, BTN_TOUCH, tsw || ers);
123 input_report_key(input, wac_i2c->tool, wac_i2c->prox);
124 input_report_key(input, BTN_STYLUS, f1);
125 input_report_key(input, BTN_STYLUS2, f2);
126 input_report_abs(input, ABS_X, x);
127 input_report_abs(input, ABS_
157 struct input_dev *input; local
[all...]
H A Dar1021_i2c.c10 #include <linux/input.h>
23 struct input_dev *input; member in struct:ar1021_i2c
30 struct input_dev *input = ar1021->input; local
48 input_report_abs(input, ABS_X, x);
49 input_report_abs(input, ABS_Y, y);
50 input_report_key(input, BTN_TOUCH, button);
51 input_sync(input);
79 struct input_dev *input; local
91 input
[all...]
H A Deeti_ts.c30 #include <linux/input.h>
35 #include <linux/input/eeti_ts.h>
48 struct input_dev *input; member in struct:eeti_ts_priv
106 input_report_abs(priv->input, ABS_PRESSURE, buf[5]);
108 input_report_abs(priv->input, ABS_X, x);
109 input_report_abs(priv->input, ABS_Y, y);
110 input_report_key(priv->input, BTN_TOUCH, !!pressed);
111 input_sync(priv->input);
162 struct input_dev *input; local
180 input
[all...]
/drivers/hid/
H A Dhid-magicmouse.c19 #include <linux/input/mt.h>
95 * @input: Input device through which we report events.
101 * @tracking_ids: Mapping of current touch input data to @touches.
104 struct input_dev *input; member in struct:magicmouse_sc
146 int last_state = test_bit(BTN_LEFT, msc->input->key) << 0 |
147 test_bit(BTN_RIGHT, msc->input->key) << 1 |
148 test_bit(BTN_MIDDLE, msc->input->key) << 2;
171 input_report_key(msc->input, BTN_MIDDLE, state & 4);
174 input_report_key(msc->input, BTN_LEFT, state & 1);
175 input_report_key(msc->input, BTN_RIGH
183 struct input_dev *input = msc->input; local
284 struct input_dev *input = msc->input; local
363 magicmouse_setup_input(struct input_dev *input, struct hid_device *hdev) argument
[all...]
/drivers/input/mouse/
H A Dgpio_mouse.c13 #include <linux/input-polldev.h>
20 * The dev input variable is set to the the input_dev pointer.
25 struct input_dev *input = dev->input; local
29 input_report_key(input, BTN_LEFT,
32 input_report_key(input, BTN_MIDDLE,
35 input_report_key(input, BTN_RIGHT,
43 input_report_rel(input, REL_X, x);
44 input_report_rel(input, REL_Y, y);
45 input_sync(input);
52 struct input_dev *input; local
153 struct input_polled_dev *input = platform_get_drvdata(pdev); local
[all...]
H A Dnavpoint.c17 #include <linux/input.h>
18 #include <linux/input/navpoint.h>
36 struct input_dev *input; member in struct:navpoint
99 input_report_key(navpoint->input, BTN_TOUCH, finger);
100 input_report_abs(navpoint->input, ABS_X, x);
101 input_report_abs(navpoint->input, ABS_Y, y);
102 input_report_abs(navpoint->input, ABS_PRESSURE, z);
103 input_report_key(navpoint->input, BTN_TOOL_FINGER, finger);
104 input_report_key(navpoint->input, BTN_LEFT, gesture);
105 input_sync(navpoint->input);
192 navpoint_open(struct input_dev *input) argument
201 navpoint_close(struct input_dev *input) argument
213 struct input_dev *input; local
326 struct input_dev *input = navpoint->input; local
340 struct input_dev *input = navpoint->input; local
[all...]
/drivers/input/
H A Dinput-polldev.c2 * Generic implementation of a polled input device
18 #include <linux/input-polldev.h>
21 MODULE_DESCRIPTION("Generic implementation of a polled input device");
45 static int input_open_polled_device(struct input_dev *input) argument
47 struct input_polled_dev *dev = input_get_drvdata(input);
61 static void input_close_polled_device(struct input_dev *input) argument
63 struct input_polled_dev *dev = input_get_drvdata(input);
86 struct input_dev *input = polldev->input; local
100 mutex_lock(&input
298 struct input_dev *input = dev->input; local
[all...]
/drivers/media/pci/ddbridge/
H A Dddbridge-core.c243 pbuf = dev->input[i].pbuf;
244 for (j = 0; j < dev->input[i].dma_buf_num; j++) {
296 if (io_alloc(dev->pdev, port->input[0]->vbuf,
297 port->input[0]->pbuf,
298 port->input[0]->dma_buf_size,
299 port->input[0]->dma_buf_num) < 0)
301 if (io_alloc(dev->pdev, port->input[1]->vbuf,
302 port->input[1]->pbuf,
303 port->input[1]->dma_buf_size,
304 port->input[
349 ddb_input_start(struct ddb_input *input) argument
375 ddb_input_stop(struct ddb_input *input) argument
490 ddb_input_avail(struct ddb_input *input) argument
509 ddb_input_read(struct ddb_input *input, __user u8 *buf, size_t count) argument
559 struct ddb_input *input = fe->sec_priv; local
573 demod_attach_drxk(struct ddb_input *input) argument
595 tuner_attach_tda18271(struct ddb_input *input) argument
666 demod_attach_stv0900(struct ddb_input *input, int type) argument
687 tuner_attach_stv6110(struct ddb_input *input, int type) argument
761 struct ddb_input *input = dvbdmx->priv; local
772 struct ddb_input *input = dvbdmx->priv; local
782 dvb_input_detach(struct ddb_input *input) argument
816 dvb_input_attach(struct ddb_input *input) argument
928 struct ddb_input *input = output->port->input[0]; local
993 struct ddb_input *input = (struct ddb_input *) data; local
1205 struct ddb_input *input = &dev->input[nr]; local
[all...]
/drivers/media/usb/uvc/
H A Duvc_status.c15 #include <linux/input.h>
18 #include <linux/usb/input.h>
28 struct input_dev *input; local
31 input = input_allocate_device();
32 if (input == NULL)
38 input->name = dev->name;
39 input->phys = dev->input_phys;
40 usb_to_input_id(dev->udev, &input->id);
41 input->dev.parent = &dev->intf->dev;
43 __set_bit(EV_KEY, input
[all...]
/drivers/net/ethernet/ibm/emac/
H A Drgmii.h61 int rgmii_attach(struct platform_device *ofdev, int input, int mode);
62 void rgmii_detach(struct platform_device *ofdev, int input);
63 void rgmii_get_mdio(struct platform_device *ofdev, int input);
64 void rgmii_put_mdio(struct platform_device *ofdev, int input);
65 void rgmii_set_speed(struct platform_device *ofdev, int input, int speed);
H A Dzmii.h58 int zmii_attach(struct platform_device *ofdev, int input, int *mode);
59 void zmii_detach(struct platform_device *ofdev, int input);
60 void zmii_get_mdio(struct platform_device *ofdev, int input);
61 void zmii_put_mdio(struct platform_device *ofdev, int input);
62 void zmii_set_speed(struct platform_device *ofdev, int input, int speed);

Completed in 430 milliseconds

1234567891011>>