Lines Matching refs:report
387 allocreport(struct Sreport *report, report_desc_t rd, int repindex)
393 errx(1, "Negative report size");
394 report->size = reptsize;
396 if (report->size > 0) {
397 report->buffer = malloc(sizeof(*report->buffer));
398 if (report->buffer == NULL)
401 report->buffer = NULL;
403 report->status = srs_clean;
407 freereport(struct Sreport *report)
409 free(report->buffer);
410 report->status = srs_uninit;
414 getreport(struct Sreport *report, int hidfd, report_desc_t rd, int repindex)
416 if (report->status == srs_uninit) {
417 allocreport(report, rd, repindex);
418 if (report->size == 0)
421 report->buffer->ucr_report = reptoparam[repindex].uhid_report;
422 if (ioctl(hidfd, USB_GET_REPORT, report->buffer) == -1)
429 setreport(struct Sreport *report, int hidfd, int repindex)
431 if (report->status == srs_dirty) {
432 report->buffer->ucr_report = reptoparam[repindex].uhid_report;
434 if (ioctl(hidfd, USB_SET_REPORT, report->buffer) == -1)
438 report->status = srs_clean;
580 errx(1, "Input report descriptor invalid length");
815 * or dump report at the same time
882 * Dump report descriptor. Do dump collection
947 printf("report ID=%d\n", reportid);