Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 2663) sorted by relevance

12345678910>>...107

/linux/net/wireless/tests/
H A Dfragmentation.c14 static const u8 input[] = { in defragment_0() local
24 u8 *data = kunit_kzalloc(test, sizeof(input), GFP_KERNEL); in defragment_0()
28 ret = cfg80211_defragment_element((void *)input, in defragment_0()
29 input, sizeof(input), in defragment_0()
33 ret = cfg80211_defragment_element((void *)input, in defragment_0()
34 input, sizeof(input), in defragment_0()
38 KUNIT_EXPECT_MEMEQ(test, data, input + 3, 253); in defragment_0()
44 static const u8 input[] = { in defragment_1() local
57 u8 *data = kunit_kzalloc(test, sizeof(input), GFP_KERNEL); in defragment_1()
63 for_each_element(elem, input, sizeof(input)) in defragment_1()
[all …]
/linux/drivers/gpu/drm/amd/display/modules/hdcp/
H A Dhdcp2_transition.c30 struct mod_hdcp_transition_input_hdcp2 *input, in mod_hdcp_hdcp2_transition() argument
39 if (input->hdcp2version_read != PASS || in mod_hdcp_hdcp2_transition()
40 input->hdcp2_capable_check != PASS) { in mod_hdcp_hdcp2_transition()
50 if (input->create_session != PASS || in mod_hdcp_hdcp2_transition()
51 input->ake_init_prepare != PASS) { in mod_hdcp_hdcp2_transition()
56 } else if (input->ake_init_write != PASS) { in mod_hdcp_hdcp2_transition()
65 if (input->ake_cert_available != PASS) { in mod_hdcp_hdcp2_transition()
81 } else if (input->ake_cert_read != PASS || in mod_hdcp_hdcp2_transition()
82 input->ake_cert_validation != PASS) { in mod_hdcp_hdcp2_transition()
100 if (input->no_stored_km_write != PASS) { in mod_hdcp_hdcp2_transition()
[all …]
H A Dhdcp1_transition.c30 struct mod_hdcp_transition_input_hdcp1 *input, in mod_hdcp_hdcp1_transition() argument
39 if (input->bksv_read != PASS || input->bcaps_read != PASS) { in mod_hdcp_hdcp1_transition()
49 if (input->create_session != PASS) { in mod_hdcp_hdcp1_transition()
54 } else if (input->an_write != PASS || in mod_hdcp_hdcp1_transition()
55 input->aksv_write != PASS || in mod_hdcp_hdcp1_transition()
56 input->bksv_read != PASS || in mod_hdcp_hdcp1_transition()
57 input->bksv_validation != PASS || in mod_hdcp_hdcp1_transition()
58 input->ainfo_write == FAIL) { in mod_hdcp_hdcp1_transition()
68 if (input->bcaps_read != PASS || in mod_hdcp_hdcp1_transition()
69 input->r0p_read != PASS) { in mod_hdcp_hdcp1_transition()
[all …]
H A Dhdcp1_execution.c150 struct mod_hdcp_transition_input_hdcp1 *input) in wait_for_active_rx() argument
160 &input->bksv_read, &status, in wait_for_active_rx()
164 &input->bcaps_read, &status, in wait_for_active_rx()
173 struct mod_hdcp_transition_input_hdcp1 *input) in exchange_ksvs() argument
183 &input->create_session, &status, in exchange_ksvs()
187 &input->an_write, &status, in exchange_ksvs()
191 &input->aksv_write, &status, in exchange_ksvs()
195 &input->bksv_read, &status, in exchange_ksvs()
199 &input->bksv_validation, &status, in exchange_ksvs()
204 &input->ainfo_write, &status, in exchange_ksvs()
[all …]
/linux/drivers/hid/
H A Dhid-letsketch.c83 struct input_dev *input; in letsketch_alloc_input_dev() local
85 input = devm_input_allocate_device(&data->hdev->dev); in letsketch_alloc_input_dev()
86 if (!input) in letsketch_alloc_input_dev()
89 input->id.bustype = data->hdev->bus; in letsketch_alloc_input_dev()
90 input->id.vendor = data->hdev->vendor; in letsketch_alloc_input_dev()
91 input->id.product = data->hdev->product; in letsketch_alloc_input_dev()
92 input->id.version = data->hdev->bus; in letsketch_alloc_input_dev()
93 input->phys = data->hdev->phys; in letsketch_alloc_input_dev()
94 input->uniq = data->hdev->uniq; in letsketch_alloc_input_dev()
95 input->open = letsketch_open; in letsketch_alloc_input_dev()
[all …]
H A Dhid-magicmouse.c128 struct input_dev *input; member
178 int last_state = test_bit(BTN_LEFT, msc->input->key) << 0 | in magicmouse_emit_buttons()
179 test_bit(BTN_RIGHT, msc->input->key) << 1 | in magicmouse_emit_buttons()
180 test_bit(BTN_MIDDLE, msc->input->key) << 2; in magicmouse_emit_buttons()
203 input_report_key(msc->input, BTN_MIDDLE, state & 4); in magicmouse_emit_buttons()
206 input_report_key(msc->input, BTN_LEFT, state & 1); in magicmouse_emit_buttons()
207 input_report_key(msc->input, BTN_RIGHT, state & 2); in magicmouse_emit_buttons()
215 struct input_dev *input = msc->input; in magicmouse_emit_touch() local
219 if (input->id.product == USB_DEVICE_ID_APPLE_MAGICMOUSE || in magicmouse_emit_touch()
220 input->id.product == USB_DEVICE_ID_APPLE_MAGICMOUSE2) { in magicmouse_emit_touch()
[all …]
H A Dhid-wiimote-modules.c64 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_LEFT], in wiimod_keys_in_keys()
66 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_RIGHT], in wiimod_keys_in_keys()
68 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_DOWN], in wiimod_keys_in_keys()
70 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_UP], in wiimod_keys_in_keys()
72 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_PLUS], in wiimod_keys_in_keys()
74 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_TWO], in wiimod_keys_in_keys()
76 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_ONE], in wiimod_keys_in_keys()
78 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_B], in wiimod_keys_in_keys()
80 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_A], in wiimod_keys_in_keys()
82 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_MINUS], in wiimod_keys_in_keys()
[all …]
/linux/lib/kunit/
H A Dattributes.c40 int (*filter)(void *attr, const char *input, int *err);
90 static int int_filter(long val, const char *op, int input, int *err) in int_filter() argument
93 return (val <= input); in int_filter()
95 return (val >= input); in int_filter()
97 return (val != input); in int_filter()
99 return (val > input); in int_filter()
101 return (val < input); in int_filter()
103 return (val == input); in int_filter()
114 static int attr_enum_filter(void *attr, const char *input, int *err, in attr_enum_filter() argument
121 for (i = 0; input[i]; i++) { in attr_enum_filter()
[all …]
/linux/arch/x86/hyperv/
H A Dhv_vtl.c72 struct hv_enable_vp_vtl *input; in hv_vtl_bringup_vcpu() local
96 input = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_vtl_bringup_vcpu()
97 memset(input, 0, sizeof(*input)); in hv_vtl_bringup_vcpu()
99 input->partition_id = HV_PARTITION_ID_SELF; in hv_vtl_bringup_vcpu()
100 input->vp_index = target_vp_index; in hv_vtl_bringup_vcpu()
101 input->target_vtl.target_vtl = HV_VTL_MGMT; in hv_vtl_bringup_vcpu()
117 input->vp_context.rip = rip; in hv_vtl_bringup_vcpu()
118 input->vp_context.rsp = rsp; in hv_vtl_bringup_vcpu()
119 input->vp_context.rflags = 0x0000000000000002; in hv_vtl_bringup_vcpu()
120 input->vp_context.efer = __rdmsr(MSR_EFER); in hv_vtl_bringup_vcpu()
[all …]
/linux/drivers/input/touchscreen/
H A Dipaq-micro-ts.c23 struct input_dev *input; member
32 input_report_abs(ts->input, ABS_X, in micro_ts_receive()
34 input_report_abs(ts->input, ABS_Y, in micro_ts_receive()
36 input_report_key(ts->input, BTN_TOUCH, 1); in micro_ts_receive()
37 input_sync(ts->input); in micro_ts_receive()
39 input_report_abs(ts->input, ABS_X, 0); in micro_ts_receive()
40 input_report_abs(ts->input, ABS_Y, 0); in micro_ts_receive()
41 input_report_key(ts->input, BTN_TOUCH, 0); in micro_ts_receive()
42 input_sync(ts->input); in micro_ts_receive()
63 static int micro_ts_open(struct input_dev *input) in micro_ts_open() argument
[all …]
H A Dchipone_icn8318.c50 struct input_dev *input; member
115 input_mt_slot(data->input, touch->slot); in icn8318_irq()
116 input_mt_report_slot_state(data->input, MT_TOOL_FINGER, act); in icn8318_irq()
120 touchscreen_report_pos(data->input, &data->prop, in icn8318_irq()
125 input_mt_sync_frame(data->input); in icn8318_irq()
126 input_sync(data->input); in icn8318_irq()
155 mutex_lock(&data->input->mutex); in icn8318_suspend()
156 if (input_device_enabled(data->input)) in icn8318_suspend()
157 icn8318_stop(data->input); in icn8318_suspend()
158 mutex_unlock(&data->input->mutex); in icn8318_suspend()
[all …]
H A Dwacom_i2c.c51 struct input_dev *input; member
109 struct input_dev *input = wac_i2c->input; in wacom_i2c_irq() local
134 input_report_key(input, BTN_TOUCH, tsw || ers); in wacom_i2c_irq()
135 input_report_key(input, wac_i2c->tool, wac_i2c->prox); in wacom_i2c_irq()
136 input_report_key(input, BTN_STYLUS, f1); in wacom_i2c_irq()
137 input_report_key(input, BTN_STYLUS2, f2); in wacom_i2c_irq()
138 input_report_abs(input, ABS_X, x); in wacom_i2c_irq()
139 input_report_abs(input, ABS_Y, y); in wacom_i2c_irq()
140 input_report_abs(input, ABS_PRESSURE, pressure); in wacom_i2c_irq()
141 input_sync(input); in wacom_i2c_irq()
[all …]
/linux/drivers/input/misc/
H A Dpcf50633-input.c33 struct pcf50633_input *input; in pcf50633_input_irq() local
36 input = data; in pcf50633_input_irq()
39 onkey_released = pcf50633_reg_read(input->pcf, PCF50633_REG_OOCSTAT) in pcf50633_input_irq()
43 input_report_key(input->input_dev, KEY_POWER, 1); in pcf50633_input_irq()
45 input_report_key(input->input_dev, KEY_POWER, 0); in pcf50633_input_irq()
47 input_sync(input->input_dev); in pcf50633_input_irq()
52 struct pcf50633_input *input; in pcf50633_input_probe() local
57 input = kzalloc(sizeof(*input), GFP_KERNEL); in pcf50633_input_probe()
58 if (!input) in pcf50633_input_probe()
63 kfree(input); in pcf50633_input_probe()
[all …]
H A Dcobalt_btns.c35 static void handle_buttons(struct input_dev *input) in handle_buttons() argument
37 struct buttons_dev *bdev = input_get_drvdata(input); in handle_buttons()
46 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
47 input_report_key(input, bdev->keymap[i], 1); in handle_buttons()
48 input_sync(input); in handle_buttons()
52 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
53 input_report_key(input, bdev->keymap[i], 0); in handle_buttons()
54 input_sync(input); in handle_buttons()
64 struct input_dev *input; in cobalt_buttons_probe() local
82 input = devm_input_allocate_device(&pdev->dev); in cobalt_buttons_probe()
[all …]
H A Dsgi_btns.c52 static void handle_buttons(struct input_dev *input) in handle_buttons() argument
54 struct buttons_dev *bdev = input_get_drvdata(input); in handle_buttons()
63 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
64 input_report_key(input, bdev->keymap[i], 1); in handle_buttons()
65 input_sync(input); in handle_buttons()
69 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
70 input_report_key(input, bdev->keymap[i], 0); in handle_buttons()
71 input_sync(input); in handle_buttons()
81 struct input_dev *input; in sgi_buttons_probe() local
88 input = devm_input_allocate_device(&pdev->dev); in sgi_buttons_probe()
[all …]
H A Dhisi_powerkey.c31 struct input_dev *input = q; in hi65xx_power_press_isr() local
33 pm_wakeup_event(input->dev.parent, MAX_HELD_TIME); in hi65xx_power_press_isr()
34 input_report_key(input, KEY_POWER, 1); in hi65xx_power_press_isr()
35 input_sync(input); in hi65xx_power_press_isr()
42 struct input_dev *input = q; in hi65xx_power_release_isr() local
44 pm_wakeup_event(input->dev.parent, MAX_HELD_TIME); in hi65xx_power_release_isr()
45 input_report_key(input, KEY_POWER, 0); in hi65xx_power_release_isr()
46 input_sync(input); in hi65xx_power_release_isr()
53 struct input_dev *input = q; in hi65xx_restart_toggle_isr() local
54 int value = test_bit(KEY_RESTART, input->key); in hi65xx_restart_toggle_isr()
[all …]
H A Dmma8450.c86 static void mma8450_poll(struct input_dev *input) in mma8450_poll() argument
88 struct i2c_client *c = input_get_drvdata(input); in mma8450_poll()
108 input_report_abs(input, ABS_X, x); in mma8450_poll()
109 input_report_abs(input, ABS_Y, y); in mma8450_poll()
110 input_report_abs(input, ABS_Z, z); in mma8450_poll()
111 input_sync(input); in mma8450_poll()
115 static int mma8450_open(struct input_dev *input) in mma8450_open() argument
117 struct i2c_client *c = input_get_drvdata(input); in mma8450_open()
138 static void mma8450_close(struct input_dev *input) in mma8450_close() argument
140 struct i2c_client *c = input_get_drvdata(input); in mma8450_close()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_fdir.c651 ice_fdir_get_prgm_desc(struct ice_hw *hw, struct ice_fdir_fltr *input, in ice_fdir_get_prgm_desc() argument
660 fdir_fltr_ctx.fdid = input->fltr_id; in ice_fdir_get_prgm_desc()
661 if (input->dest_ctl == ICE_FLTR_PRGM_DESC_DEST_DROP_PKT) { in ice_fdir_get_prgm_desc()
664 } else if (input->dest_ctl == in ice_fdir_get_prgm_desc()
669 if (input->dest_ctl == in ice_fdir_get_prgm_desc()
671 fdir_fltr_ctx.toq = input->q_region; in ice_fdir_get_prgm_desc()
673 fdir_fltr_ctx.qindex = input->q_index; in ice_fdir_get_prgm_desc()
675 fdir_fltr_ctx.cnt_ena = input->cnt_ena; in ice_fdir_get_prgm_desc()
676 fdir_fltr_ctx.cnt_index = input->cnt_index; in ice_fdir_get_prgm_desc()
677 fdir_fltr_ctx.fd_vsi = ice_get_hw_vsi_num(hw, input->dest_vsi); in ice_fdir_get_prgm_desc()
[all …]
/linux/drivers/media/pci/ddbridge/
H A Dddbridge-max.c70 struct ddb_input *input = fe->sec_priv; in max_send_master_cmd() local
71 struct ddb_port *port = input->port; in max_send_master_cmd()
73 struct ddb_dvb *dvb = &port->dvb[input->nr & 1]; in max_send_master_cmd()
84 ddbwritel(dev, 0, tag | LNB_BUF_LEVEL(dvb->input)); in max_send_master_cmd()
86 ddbwritel(dev, cmd->msg[i], tag | LNB_BUF_WRITE(dvb->input)); in max_send_master_cmd()
87 lnb_command(dev, port->lnr, dvb->input, LNB_CMD_DISEQC); in max_send_master_cmd()
92 static int lnb_send_diseqc(struct ddb *dev, u32 link, u32 input, in lnb_send_diseqc() argument
98 ddbwritel(dev, 0, tag | LNB_BUF_LEVEL(input)); in lnb_send_diseqc()
100 ddbwritel(dev, cmd->msg[i], tag | LNB_BUF_WRITE(input)); in lnb_send_diseqc()
101 lnb_command(dev, link, input, LNB_CMD_DISEQC); in lnb_send_diseqc()
[all …]
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra124-nyan-blaze.dts39 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
46 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
53 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
60 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
67 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
74 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
81 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
88 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
95 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
102 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
[all …]
H A Dtegra124-nyan-big.dts37 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
44 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
51 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
58 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
65 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
72 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
79 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
86 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
93 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
100 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
[all …]
/linux/drivers/input/keyboard/
H A Dgpio_keys_polled.c36 struct input_dev *input; member
44 static void gpio_keys_button_event(struct input_dev *input, in gpio_keys_button_event() argument
48 struct gpio_keys_polled_dev *bdev = input_get_drvdata(input); in gpio_keys_button_event()
53 input_event(input, type, button->code, button->value); in gpio_keys_button_event()
58 input_event(input, type, button->code, button->value); in gpio_keys_button_event()
62 input_event(input, type, button->code, state); in gpio_keys_button_event()
63 input_sync(input); in gpio_keys_button_event()
67 static void gpio_keys_polled_check_state(struct input_dev *input, in gpio_keys_polled_check_state() argument
75 dev_err(input->dev.parent, in gpio_keys_polled_check_state()
78 gpio_keys_button_event(input, button, state); in gpio_keys_polled_check_state()
[all …]
H A Dopencores-kbd.c19 struct input_dev *input; member
28 struct input_dev *input = opencores_kbd->input; in opencores_kbd_isr() local
32 input_report_key(input, c & 0x7f, c & 0x80 ? 0 : 1); in opencores_kbd_isr()
33 input_sync(input); in opencores_kbd_isr()
40 struct input_dev *input; in opencores_kbd_probe() local
53 input = devm_input_allocate_device(&pdev->dev); in opencores_kbd_probe()
54 if (!input) { in opencores_kbd_probe()
59 opencores_kbd->input = input; in opencores_kbd_probe()
65 input->name = pdev->name; in opencores_kbd_probe()
66 input->phys = "opencores-kbd/input0"; in opencores_kbd_probe()
[all …]
H A Dipaq-micro-keys.c25 struct input_dev *input; member
50 input_report_key(keys->input, keys->codes[key], down); in micro_key_receive()
51 input_sync(keys->input); in micro_key_receive()
71 static int micro_key_open(struct input_dev *input) in micro_key_open() argument
73 struct ipaq_micro_keys *keys = input_get_drvdata(input); in micro_key_open()
80 static void micro_key_close(struct input_dev *input) in micro_key_close() argument
82 struct ipaq_micro_keys *keys = input_get_drvdata(input); in micro_key_close()
99 keys->input = devm_input_allocate_device(&pdev->dev); in micro_key_probe()
100 if (!keys->input) in micro_key_probe()
103 keys->input->keycodesize = sizeof(micro_keycodes[0]); in micro_key_probe()
[all …]
/linux/drivers/input/joystick/
H A Dpsxpad-spi.c192 static int psxpad_spi_poll_open(struct input_dev *input) in psxpad_spi_poll_open() argument
194 struct psxpad *pad = input_get_drvdata(input); in psxpad_spi_poll_open()
201 static void psxpad_spi_poll_close(struct input_dev *input) in psxpad_spi_poll_close() argument
203 struct psxpad *pad = input_get_drvdata(input); in psxpad_spi_poll_close()
208 static void psxpad_spi_poll(struct input_dev *input) in psxpad_spi_poll() argument
210 struct psxpad *pad = input_get_drvdata(input); in psxpad_spi_poll()
232 input_report_abs(input, ABS_X, REVERSE_BIT(pad->response[7])); in psxpad_spi_poll()
233 input_report_abs(input, ABS_Y, REVERSE_BIT(pad->response[8])); in psxpad_spi_poll()
234 input_report_abs(input, ABS_RX, REVERSE_BIT(pad->response[5])); in psxpad_spi_poll()
235 input_report_abs(input, ABS_RY, REVERSE_BIT(pad->response[6])); in psxpad_spi_poll()
[all …]

12345678910>>...107