/drivers/media/pci/tw5864/ |
D | tw5864-video.c | 180 static void tw5864_frame_interval_set(struct tw5864_input *input); 208 static int tw5864_input_std_get(struct tw5864_input *input, in tw5864_input_std_get() argument 211 struct tw5864_dev *dev = input->root; in tw5864_input_std_get() 212 u8 std_reg = tw_indir_readb(TW5864_INDIR_VIN_E(input->nr)); in tw5864_input_std_get() 225 static int tw5864_enable_input(struct tw5864_input *input) in tw5864_enable_input() argument 227 struct tw5864_dev *dev = input->root; in tw5864_enable_input() 228 int nr = input->nr; in tw5864_enable_input() 240 input->frame_seqno = 0; in tw5864_enable_input() 241 input->frame_gop_seqno = 0; in tw5864_enable_input() 242 input->h264_idr_pic_id = 0; in tw5864_enable_input() [all …]
|
/drivers/hid/ |
D | hid-magicmouse.c | 115 struct input_dev *input; member 157 int last_state = test_bit(BTN_LEFT, msc->input->key) << 0 | in magicmouse_emit_buttons() 158 test_bit(BTN_RIGHT, msc->input->key) << 1 | in magicmouse_emit_buttons() 159 test_bit(BTN_MIDDLE, msc->input->key) << 2; in magicmouse_emit_buttons() 182 input_report_key(msc->input, BTN_MIDDLE, state & 4); in magicmouse_emit_buttons() 185 input_report_key(msc->input, BTN_LEFT, state & 1); in magicmouse_emit_buttons() 186 input_report_key(msc->input, BTN_RIGHT, state & 2); in magicmouse_emit_buttons() 194 struct input_dev *input = msc->input; in magicmouse_emit_touch() local 198 if (input->id.product == USB_DEVICE_ID_APPLE_MAGICMOUSE) { in magicmouse_emit_touch() 208 } else if (input->id.product == USB_DEVICE_ID_APPLE_MAGICTRACKPAD2) { in magicmouse_emit_touch() [all …]
|
D | hid-wiimote-modules.c | 64 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 …]
|
D | hid-steam.c | 118 struct input_dev __rcu *input; member 396 struct input_dev *input; in steam_input_register() local 400 input = rcu_dereference(steam->input); in steam_input_register() 402 if (input) { in steam_input_register() 407 input = input_allocate_device(); in steam_input_register() 408 if (!input) in steam_input_register() 411 input_set_drvdata(input, steam); in steam_input_register() 412 input->dev.parent = &hdev->dev; in steam_input_register() 413 input->open = steam_input_open; in steam_input_register() 414 input->close = steam_input_close; in steam_input_register() [all …]
|
D | wacom_wac.c | 48 struct input_dev *input = wacom_wac->pen_input; in wacom_force_proxout() local 52 input_report_key(input, BTN_TOUCH, 0); in wacom_force_proxout() 53 input_report_key(input, BTN_STYLUS, 0); in wacom_force_proxout() 54 input_report_key(input, BTN_STYLUS2, 0); in wacom_force_proxout() 55 input_report_key(input, BTN_STYLUS3, 0); in wacom_force_proxout() 56 input_report_key(input, wacom_wac->tool[0], 0); in wacom_force_proxout() 58 input_report_abs(input, ABS_MISC, 0); in wacom_force_proxout() 60 input_report_abs(input, ABS_PRESSURE, 0); in wacom_force_proxout() 66 input_sync(input); in wacom_force_proxout() 129 struct input_dev *input = wacom->pen_input; in wacom_penpartner_irq() local [all …]
|
/drivers/gpu/drm/amd/display/modules/hdcp/ |
D | hdcp2_transition.c | 30 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 …]
|
D | hdcp1_transition.c | 30 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 …]
|
D | hdcp2_execution.c | 218 struct mod_hdcp_transition_input_hdcp2 *input, in process_rxstatus() argument 222 &input->rxstatus_read, status, in process_rxstatus() 226 &input->reauth_request_check, status, in process_rxstatus() 231 &input->link_integrity_check_dp, status, in process_rxstatus() 254 struct mod_hdcp_transition_input_hdcp2 *input) in known_hdcp2_capable_rx() argument 264 &input->hdcp2version_read, &status, in known_hdcp2_capable_rx() 268 &input->hdcp2_capable_check, &status, in known_hdcp2_capable_rx() 277 struct mod_hdcp_transition_input_hdcp2 *input) in send_ake_init() argument 287 &input->create_session, &status, in send_ake_init() 291 &input->ake_init_prepare, &status, in send_ake_init() [all …]
|
D | hdcp1_execution.c | 141 struct mod_hdcp_transition_input_hdcp1 *input) in wait_for_active_rx() argument 151 &input->bksv_read, &status, in wait_for_active_rx() 155 &input->bcaps_read, &status, in wait_for_active_rx() 164 struct mod_hdcp_transition_input_hdcp1 *input) in exchange_ksvs() argument 174 &input->create_session, &status, in exchange_ksvs() 178 &input->an_write, &status, in exchange_ksvs() 182 &input->aksv_write, &status, in exchange_ksvs() 186 &input->bksv_read, &status, in exchange_ksvs() 190 &input->bksv_validation, &status, in exchange_ksvs() 195 &input->ainfo_write, &status, in exchange_ksvs() [all …]
|
/drivers/input/touchscreen/ |
D | ipaq-micro-ts.c | 23 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 …]
|
D | chipone_icn8318.c | 50 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() 156 mutex_lock(&data->input->mutex); in icn8318_suspend() 157 if (data->input->users) in icn8318_suspend() 158 icn8318_stop(data->input); in icn8318_suspend() 159 mutex_unlock(&data->input->mutex); in icn8318_suspend() [all …]
|
D | wacom_i2c.c | 34 struct input_dev *input; member 91 struct input_dev *input = wac_i2c->input; in wacom_i2c_irq() local 116 input_report_key(input, BTN_TOUCH, tsw || ers); in wacom_i2c_irq() 117 input_report_key(input, wac_i2c->tool, wac_i2c->prox); in wacom_i2c_irq() 118 input_report_key(input, BTN_STYLUS, f1); in wacom_i2c_irq() 119 input_report_key(input, BTN_STYLUS2, f2); in wacom_i2c_irq() 120 input_report_abs(input, ABS_X, x); in wacom_i2c_irq() 121 input_report_abs(input, ABS_Y, y); in wacom_i2c_irq() 122 input_report_abs(input, ABS_PRESSURE, pressure); in wacom_i2c_irq() 123 input_sync(input); in wacom_i2c_irq() [all …]
|
/drivers/input/misc/ |
D | pcf50633-input.c | 33 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 …]
|
D | sgi_btns.c | 52 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 …]
|
D | cobalt_btns.c | 35 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 …]
|
D | hisi_powerkey.c | 31 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 …]
|
D | mma8450.c | 86 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 …]
|
/drivers/media/pci/ddbridge/ |
D | ddbridge-max.c | 79 struct ddb_input *input = fe->sec_priv; in max_send_master_cmd() local 80 struct ddb_port *port = input->port; in max_send_master_cmd() 82 struct ddb_dvb *dvb = &port->dvb[input->nr & 1]; in max_send_master_cmd() 93 ddbwritel(dev, 0, tag | LNB_BUF_LEVEL(dvb->input)); in max_send_master_cmd() 95 ddbwritel(dev, cmd->msg[i], tag | LNB_BUF_WRITE(dvb->input)); in max_send_master_cmd() 96 lnb_command(dev, port->lnr, dvb->input, LNB_CMD_DISEQC); in max_send_master_cmd() 101 static int lnb_send_diseqc(struct ddb *dev, u32 link, u32 input, in lnb_send_diseqc() argument 107 ddbwritel(dev, 0, tag | LNB_BUF_LEVEL(input)); in lnb_send_diseqc() 109 ddbwritel(dev, cmd->msg[i], tag | LNB_BUF_WRITE(input)); in lnb_send_diseqc() 110 lnb_command(dev, link, input, LNB_CMD_DISEQC); in lnb_send_diseqc() [all …]
|
D | ddbridge-core.c | 156 if (dev->port[i].input[0]) in ddb_set_dma_tables() 157 ddb_set_dma_table(dev->port[i].input[0]); in ddb_set_dma_tables() 158 if (dev->port[i].input[1]) in ddb_set_dma_tables() 159 ddb_set_dma_table(dev->port[i].input[1]); in ddb_set_dma_tables() 201 if (port->input[0]) { in ddb_unredirect() 202 iredi = port->input[0]->redi; in ddb_unredirect() 203 iredo = port->input[0]->redo; in ddb_unredirect() 207 if (iredo->port->input[0]) { in ddb_unredirect() 208 iredo->port->input[0]->redi = iredi; in ddb_unredirect() 212 port->input[0]->redo = NULL; in ddb_unredirect() [all …]
|
/drivers/input/keyboard/ |
D | gpio_keys_polled.c | 36 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 …]
|
D | opencores-kbd.c | 19 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 60 input = devm_input_allocate_device(&pdev->dev); in opencores_kbd_probe() 61 if (!input) { in opencores_kbd_probe() 66 opencores_kbd->input = input; in opencores_kbd_probe() 72 input->name = pdev->name; in opencores_kbd_probe() 73 input->phys = "opencores-kbd/input0"; in opencores_kbd_probe() [all …]
|
D | ipaq-micro-keys.c | 25 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 …]
|
D | gpio_keys.c | 35 struct input_dev *input; member 56 struct input_dev *input; member 236 const unsigned long *bitmap = get_bm_events_by_type(ddata->input, type); in gpio_keys_attr_store_helper() 360 struct input_dev *input = bdata->input; in gpio_keys_gpio_report_event() local 366 dev_err(input->dev.parent, in gpio_keys_gpio_report_event() 373 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event() 375 input_event(input, type, *bdata->code, state); in gpio_keys_gpio_report_event() 377 input_sync(input); in gpio_keys_gpio_report_event() 388 pm_relax(bdata->input->dev.parent); in gpio_keys_gpio_work_func() 400 pm_stay_awake(bdata->input->dev.parent); in gpio_keys_gpio_isr() [all …]
|
/drivers/input/mouse/ |
D | navpoint.c | 33 struct input_dev *input; member 96 input_report_key(navpoint->input, BTN_TOUCH, finger); in navpoint_packet() 97 input_report_abs(navpoint->input, ABS_X, x); in navpoint_packet() 98 input_report_abs(navpoint->input, ABS_Y, y); in navpoint_packet() 99 input_report_abs(navpoint->input, ABS_PRESSURE, z); in navpoint_packet() 100 input_report_key(navpoint->input, BTN_TOOL_FINGER, finger); in navpoint_packet() 101 input_report_key(navpoint->input, BTN_LEFT, gesture); in navpoint_packet() 102 input_sync(navpoint->input); in navpoint_packet() 189 static int navpoint_open(struct input_dev *input) in navpoint_open() argument 191 struct navpoint *navpoint = input_get_drvdata(input); in navpoint_open() [all …]
|
/drivers/input/joystick/ |
D | psxpad-spi.c | 189 static int psxpad_spi_poll_open(struct input_dev *input) in psxpad_spi_poll_open() argument 191 struct psxpad *pad = input_get_drvdata(input); in psxpad_spi_poll_open() 198 static void psxpad_spi_poll_close(struct input_dev *input) in psxpad_spi_poll_close() argument 200 struct psxpad *pad = input_get_drvdata(input); in psxpad_spi_poll_close() 205 static void psxpad_spi_poll(struct input_dev *input) in psxpad_spi_poll() argument 207 struct psxpad *pad = input_get_drvdata(input); in psxpad_spi_poll() 229 input_report_abs(input, ABS_X, REVERSE_BIT(pad->response[7])); in psxpad_spi_poll() 230 input_report_abs(input, ABS_Y, REVERSE_BIT(pad->response[8])); in psxpad_spi_poll() 231 input_report_abs(input, ABS_RX, REVERSE_BIT(pad->response[5])); in psxpad_spi_poll() 232 input_report_abs(input, ABS_RY, REVERSE_BIT(pad->response[6])); in psxpad_spi_poll() [all …]
|