Lines Matching full:wd
2456 struct hidpp_ff_work_data *wd = container_of(w, struct hidpp_ff_work_data, work); in hidpp_ff_work_handler() local
2457 struct hidpp_ff_private_data *data = wd->data; in hidpp_ff_work_handler()
2463 switch (wd->effect_id) { in hidpp_ff_work_handler()
2465 wd->params[0] = data->slot_autocenter; in hidpp_ff_work_handler()
2472 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler()
2478 wd->command, wd->params, wd->size, &response); in hidpp_ff_work_handler()
2486 switch (wd->command) { in hidpp_ff_work_handler()
2490 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
2492 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler()
2493 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
2499 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
2501 data->effect_ids[wd->params[0]-1] = -1; in hidpp_ff_work_handler()
2502 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
2507 data->gain = (wd->params[0] << 8) + wd->params[1]; in hidpp_ff_work_handler()
2510 data->range = (wd->params[0] << 8) + wd->params[1]; in hidpp_ff_work_handler()
2519 kfree(wd); in hidpp_ff_work_handler()
2524 struct hidpp_ff_work_data *wd = kzalloc(sizeof(*wd), GFP_KERNEL); in hidpp_ff_queue_work() local
2527 if (!wd) in hidpp_ff_queue_work()
2530 INIT_WORK(&wd->work, hidpp_ff_work_handler); in hidpp_ff_queue_work()
2532 wd->data = data; in hidpp_ff_queue_work()
2533 wd->effect_id = effect_id; in hidpp_ff_queue_work()
2534 wd->command = command; in hidpp_ff_queue_work()
2535 wd->size = size; in hidpp_ff_queue_work()
2536 memcpy(wd->params, params, size); in hidpp_ff_queue_work()
2539 queue_work(data->wq, &wd->work); in hidpp_ff_queue_work()
2923 struct wtp_data *wd = hidpp->private_data; in wtp_populate_input() local
2930 input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0, wd->x_size, 0, 0); in wtp_populate_input()
2931 input_abs_set_res(input_dev, ABS_MT_POSITION_X, wd->resolution); in wtp_populate_input()
2932 input_set_abs_params(input_dev, ABS_MT_POSITION_Y, 0, wd->y_size, 0, 0); in wtp_populate_input()
2933 input_abs_set_res(input_dev, ABS_MT_POSITION_Y, wd->resolution); in wtp_populate_input()
2945 input_mt_init_slots(input_dev, wd->maxcontacts, INPUT_MT_POINTER | in wtp_populate_input()
2952 struct wtp_data *wd = hidpp->private_data; in wtp_touch_event() local
2968 wd->flip_y ? wd->y_size - touch_report->y : in wtp_touch_event()
2995 struct wtp_data *wd = hidpp->private_data; in wtp_mouse_raw_xy_event() local
3021 .finger_count = wd->maxcontacts, in wtp_mouse_raw_xy_event()
3035 struct wtp_data *wd = hidpp->private_data; in wtp_raw_event() local
3039 if (!wd || !hidpp->input) in wtp_raw_event()
3063 if ((report->fap.feature_index != wd->mt_feature_index) || in wtp_raw_event()
3077 struct wtp_data *wd = hidpp->private_data; in wtp_get_config() local
3082 &wd->mt_feature_index); in wtp_get_config()
3087 ret = hidpp_touchpad_get_raw_info(hidpp, wd->mt_feature_index, in wtp_get_config()
3092 wd->x_size = raw_info.x_size; in wtp_get_config()
3093 wd->y_size = raw_info.y_size; in wtp_get_config()
3094 wd->maxcontacts = raw_info.maxcontacts; in wtp_get_config()
3095 wd->flip_y = raw_info.origin == TOUCHPAD_RAW_XY_ORIGIN_LOWER_LEFT; in wtp_get_config()
3096 wd->resolution = raw_info.res; in wtp_get_config()
3097 if (!wd->resolution) in wtp_get_config()
3098 wd->resolution = WTP_MANUAL_RESOLUTION; in wtp_get_config()
3106 struct wtp_data *wd; in wtp_allocate() local
3108 wd = devm_kzalloc(&hdev->dev, sizeof(struct wtp_data), in wtp_allocate()
3110 if (!wd) in wtp_allocate()
3113 hidpp->private_data = wd; in wtp_allocate()
3121 struct wtp_data *wd = hidpp->private_data; in wtp_connect() local
3124 if (!wd->x_size) { in wtp_connect()
3132 return hidpp_touchpad_set_raw_report_state(hidpp, wd->mt_feature_index, in wtp_connect()