Lines Matching refs:zpff
29 struct zpff_device *zpff = data; in zpff_play() local
45 zpff->report->field[2]->value[0] = left; in zpff_play()
46 zpff->report->field[3]->value[0] = right; in zpff_play()
48 hid_hw_request(hid, zpff->report, HID_REQ_SET_REPORT); in zpff_play()
55 struct zpff_device *zpff; in zpff_init() local
74 zpff = kzalloc(sizeof(struct zpff_device), GFP_KERNEL); in zpff_init()
75 if (!zpff) in zpff_init()
80 error = input_ff_create_memless(dev, zpff, zpff_play); in zpff_init()
82 kfree(zpff); in zpff_init()
86 zpff->report = report; in zpff_init()
87 zpff->report->field[0]->value[0] = 0x00; in zpff_init()
88 zpff->report->field[1]->value[0] = 0x02; in zpff_init()
89 zpff->report->field[2]->value[0] = 0x00; in zpff_init()
90 zpff->report->field[3]->value[0] = 0x00; in zpff_init()
91 hid_hw_request(hid, zpff->report, HID_REQ_SET_REPORT); in zpff_init()