| /OK3568_Linux_fs/kernel/drivers/hid/ |
| H A D | hid-picolcd_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2010-2012 by Bruno Prémont <bonbons@linux-vserver.org> * 11 #include <linux/hid-debug.h> 13 #include "hid-ids.h" 23 #include "hid-picolcd.h" 28 * The PicoLCD has an IR receiver header, a built-in keypad with 5 keys 29 * and header for 4x4 key matrix. The built-in keys are part of the matrix. 52 /* Find a given report */ 55 struct list_head *feature_report_list = &hdev->report_enum[dir].report_list; in picolcd_report() 56 struct hid_report *report = NULL; in picolcd_report() local [all …]
|
| H A D | hid-axff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * - tested with an EXEQ EQ-PCU-02090 game controller. 12 * Copyright (c) 2010 Sergei Kolzun <x0r@dv-life.ru> 23 #include "hid-ids.h" 28 struct hid_report *report; member 35 struct hid_report *report = axff->report; in axff_play() local 40 left = effect->u.rumble.strong_magnitude; in axff_play() 41 right = effect->u.rumble.weak_magnitude; in axff_play() 48 for (i = 0; i < report->maxfield; i++) { in axff_play() 49 for (j = 0; j < report->field[i]->report_count; j++) { in axff_play() [all …]
|
| H A D | hid-mf.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 * Copyright (c) 2016-2017 Marcel Hasler <mahasler@gmail.com> 28 #include "hid-ids.h" 31 struct hid_report *report; member 40 strong = effect->u.rumble.strong_magnitude; in mf_play() 41 weak = effect->u.rumble.weak_magnitude; in mf_play() 50 mf->report->field[0]->value[0] = weak; in mf_play() 51 mf->report->field[0]->value[1] = strong; in mf_play() 52 hid_hw_request(hid, mf->report, HID_REQ_SET_REPORT); in mf_play() 62 &hid->report_enum[HID_OUTPUT_REPORT].report_list; in mf_init() [all …]
|
| H A D | hid-cp2112.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * hid-cp2112.c - Silicon Labs HID USB to SMBus master bridge 16 …* https://www.silabs.com/documents/public/application-notes/an495-cp2112-interface-specification… 28 #include "hid-ids.h" 73 u8 report; /* CP2112_SMBUS_CONFIG */ member 84 u8 report; /* CP2112_USB_CONFIG */ member 97 u8 report; /* CP2112_DATA_READ_REQUEST */ member 103 u8 report; /* CP2112_DATA_WRITE_READ_REQUEST */ member 111 u8 report; /* CP2112_DATA_WRITE_REQUEST */ member 118 u8 report; /* CP2112_DATA_READ_FORCE_SEND */ member [all …]
|
| H A D | hid-lg2ff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include "hid-lg.h" 19 struct hid_report *report; member 29 strong = effect->u.rumble.strong_magnitude; in play_effect() 30 weak = effect->u.rumble.weak_magnitude; in play_effect() 36 lg2ff->report->field[0]->value[0] = 0x51; in play_effect() 37 lg2ff->report->field[0]->value[2] = weak; in play_effect() 38 lg2ff->report->field[0]->value[4] = strong; in play_effect() 40 lg2ff->report->field[0]->value[0] = 0xf3; in play_effect() 41 lg2ff->report->field[0]->value[2] = 0x00; in play_effect() [all …]
|
| H A D | hid-gaff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * - tested with MANTA Warior MM816 and SpeedLink Strike2 SL-6635. 21 #include "hid-ids.h" 26 struct hid_report *report; member 36 left = effect->u.rumble.strong_magnitude; in hid_gaff_play() 37 right = effect->u.rumble.weak_magnitude; in hid_gaff_play() 44 gaff->report->field[0]->value[0] = 0x51; in hid_gaff_play() 45 gaff->report->field[0]->value[1] = 0x0; in hid_gaff_play() 46 gaff->report->field[0]->value[2] = right; in hid_gaff_play() 47 gaff->report->field[0]->value[3] = 0; in hid_gaff_play() [all …]
|
| H A D | hid-emsff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include "hid-ids.h" 19 struct hid_report *report; member 29 weak = effect->u.rumble.weak_magnitude; in emsff_play() 30 strong = effect->u.rumble.strong_magnitude; in emsff_play() 37 emsff->report->field[0]->value[1] = weak; in emsff_play() 38 emsff->report->field[0]->value[2] = strong; in emsff_play() 41 hid_hw_request(hid, emsff->report, HID_REQ_SET_REPORT); in emsff_play() 49 struct hid_report *report; in emsff_init() local 52 &hid->report_enum[HID_OUTPUT_REPORT].report_list; in emsff_init() [all …]
|
| H A D | hid-bigbenff.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * "Kid-friendly Wired Controller" PS3OFMINIPAD SONY 19 #include "hid-ids.h" 32 * 0x75, 0x01, // Report Size (1) 33 * 0x95, 0x0D, // Report Count (13) 38 * 0x95, 0x03, // Report Count (3) 43 * 0x75, 0x04, // Report Size (4) 44 * 0x95, 0x01, // Report Count (1) 49 * 0x95, 0x01, // Report Count (1) 57 * 0x75, 0x08, // Report Size (8) [all …]
|
| H A D | hid-lg3ff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 #include "hid-lg.h" 21 * 0 - seems to be command field 22 * 1 - 30 deal with the x axis 23 * 31 -60 deal with the y axis 36 * -127 0 -127 -127 makes the joystick loose on the left, 39 * 0 0 -127 -127 makes the joystick rattle very hard 45 struct hid_report *report; member 52 struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list; in hid_lg3ff_play() 53 struct hid_report *report = list_entry(report_list->next, struct hid_report, list); in hid_lg3ff_play() local [all …]
|
| H A D | hid-zpff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include "hid-ids.h" 22 struct hid_report *report; member 38 left = effect->u.rumble.strong_magnitude; in zpff_play() 39 right = effect->u.rumble.weak_magnitude; in zpff_play() 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() 56 struct hid_report *report; in zpff_init() local 59 int i, error; in zpff_init() local [all …]
|
| H A D | hid-pl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * - tested with PantherLord USB/PS2 2in1 Adapter 10 * - contains two reports, one for each port (HID_QUIRK_MULTI_INPUT) 13 * - tested with König Gaming gamepad 16 * - another version of the König gamepad 29 #define debug(format, arg...) pr_debug("hid-plff: " format "\n" , ## arg) 36 #include "hid-ids.h" 41 struct hid_report *report; member 54 left = effect->u.rumble.strong_magnitude; in hid_plff_play() 55 right = effect->u.rumble.weak_magnitude; in hid_plff_play() [all …]
|
| H A D | hid-sjoy.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Force feedback support for SmartJoy PLUS PS2->USB adapter 7 * Based of hid-pl.c and hid-gaff.c 21 #include "hid-ids.h" 26 struct hid_report *report; member 36 left = effect->u.rumble.strong_magnitude; in hid_sjoyff_play() 37 right = effect->u.rumble.weak_magnitude; in hid_sjoyff_play() 38 dev_dbg(&dev->dev, "called with 0x%08x 0x%08x\n", left, right); in hid_sjoyff_play() 43 sjoyff->report->field[0]->value[1] = right; in hid_sjoyff_play() 44 sjoyff->report->field[0]->value[2] = left; in hid_sjoyff_play() [all …]
|
| H A D | hid-lgff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Force feedback support for hid-compliant for some of the devices from 5 * - WingMan Cordless RumblePad 6 * - WingMan Force 3D 8 * Copyright (c) 2002-2004 Johann Deneux 15 * e-mail - mail your message to <johann.deneux@it.uu.se> 23 #include "hid-lg.h" 33 -1 38 -1 44 -1 [all …]
|
| H A D | hid-betopff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * - tested with BTP2185 BFM Mode. 12 * - tested with BTP2185 PC Mode. 15 * - tested with BTP2185 PC Mode with another version. 18 * - tested with BTP2171s. 31 #include "hid-ids.h" 34 struct hid_report *report; member 44 left = effect->u.rumble.strong_magnitude; in hid_betopff_play() 45 right = effect->u.rumble.weak_magnitude; in hid_betopff_play() 47 betopff->report->field[2]->value[0] = left / 256; in hid_betopff_play() [all …]
|
| H A D | hid-tmff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * on 2003-01-25 from the Logitech force feedback driver, 23 #include "hid-ids.h" 29 -1 34 -1 43 struct hid_report *report; member 52 ret = (in * (maximum - minimum) / 0xffff) + minimum; in tmff_scale_u16() 60 /* Changes values from -0x80 to 0x7f into values from minimum to maximum */ 65 ret = (((in + 0x80) * (maximum - minimum)) / 0xff) + minimum; in tmff_scale_s8() 78 struct hid_field *ff_field = tmff->ff_field; in tmff_play() [all …]
|
| H A D | hid-uclogic-params.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * HID driver for UC-Logic devices not fully compliant with HID standard 4 * - tablet initialization and parameter retrieval 16 #include "hid-uclogic-params.h" 17 #include "hid-uclogic-rdesc.h" 19 #include "hid-ids.h" 24 * Convert a pen in-range reporting type to a string. 26 * @inrange: The in-range reporting type to convert. 47 * uclogic_params_get_str_desc - retrieve a string descriptor from a HID 48 * device interface, putting it into a kmalloc-allocated buffer as is, without [all …]
|
| H A D | hid-dr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * - tested with a Tesun USB-703 game controller. 23 #include "hid-ids.h" 28 struct hid_report *report; member 38 strong = effect->u.rumble.strong_magnitude; in drff_play() 39 weak = effect->u.rumble.weak_magnitude; in drff_play() 53 drff->report->field[0]->value[0] = 0x51; in drff_play() 54 drff->report->field[0]->value[1] = 0x00; in drff_play() 55 drff->report->field[0]->value[2] = weak; in drff_play() 56 drff->report->field[0]->value[4] = strong; in drff_play() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/ |
| H A D | pixcir_i2c_ts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2010-2011 Pixcir, Inc. 65 * struct pixcir_i2c_chip_data - chip related data 94 struct pixcir_report_data *report) in pixcir_ts_parse() argument 102 const struct pixcir_i2c_chip_data *chip = tsdata->chip; in pixcir_ts_parse() 104 memset(report, 0, sizeof(struct pixcir_report_data)); in pixcir_ts_parse() 106 i = chip->has_hw_ids ? 1 : 0; in pixcir_ts_parse() 107 readsize = 2 + tsdata->chip->max_fingers * (4 + i); in pixcir_ts_parse() 111 ret = i2c_master_send(tsdata->client, wrbuf, sizeof(wrbuf)); in pixcir_ts_parse() 113 dev_err(&tsdata->client->dev, in pixcir_ts_parse() [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/ |
| H A D | send-error-report | 3 # Sends an error report (if the report-error class was enabled) to a 10 # SPDX-License-Identifier: GPL-2.0-only 13 import urllib.request, urllib.error 27 log = logging.getLogger("send-error-report") 34 except urllib.error.URLError as e: 36 log.error("Could not contact server: " + url) 37 log.error(e.reason) 51 email = input("E-mail (not required): ") 61 log.error("Please set your EDITOR value") 71 log.error("No data file found.") [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mfd/ |
| H A D | si476x-cmd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/mfd/si476x-cmd.c -- Subroutines implementing command 21 #include <linux/mfd/si476x-core.h> 177 if (core->revision != SI476X_REVISION_A10) { in si476x_core_parse_and_nag_about_error() 184 err = -EINVAL; in si476x_core_parse_and_nag_about_error() 188 err = -EINVAL; in si476x_core_parse_and_nag_about_error() 192 err = -EINVAL; in si476x_core_parse_and_nag_about_error() 196 err = -EINVAL; in si476x_core_parse_and_nag_about_error() 200 err = -EINVAL; in si476x_core_parse_and_nag_about_error() 204 err = -EBUSY; in si476x_core_parse_and_nag_about_error() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/hid/usbhid/ |
| H A D | hid-pidff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 25 /* Report usage table used to put reports into an array */ 49 the only field in that report */ 163 usage<->value pairs that pidff_usage values are */ 194 return i * (field->logical_maximum - field->logical_minimum) / max + in pidff_rescale() 195 field->logical_minimum; in pidff_rescale() 199 * Scale a signed value in range -0x8000..0x7fff for the given field 204 0 ? i * field->logical_maximum / 0x7fff : i * in pidff_rescale_signed() 205 field->logical_minimum / -0x8000; in pidff_rescale_signed() 210 usage->value[0] = pidff_rescale(value, 0xffff, usage->field); in pidff_set() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-python/classes/ |
| H A D | bandit.bbclass | 3 # $ bitbake python-foo -c bandit 5 # Writes the report to $DEPLOY_DIR/bandit/python-foo.html. 13 # The report format to use. 22 # recipe, including non-Python recipes, causing circular loops. 25 # Whether Bandit finding issues results in a warning (0) or an error (1). 28 do_bandit[depends] = "python3-bandit-native:do_populate_sysroot" 32 report = d.expand("${DEPLOY_DIR}/bandit/${PN}-${PV}.${BANDIT_FORMAT}") 33 os.makedirs(os.path.dirname(report), exist_ok=True) 36 "--format", d.getVar("BANDIT_FORMAT"), 37 "--output", report, [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/ |
| H A D | builtin-report.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * builtin-report.c 5 * Builtin report command: Analyze the perf.data input file, 23 #include "util/mem-events.h" 38 #include <subcmd/parse-options.h> 39 #include <subcmd/exec-cmd.h> 40 #include "util/parse-events.h" 47 #include "util/time-utils.h" 53 #include "util/block-info.h" 70 struct report { struct [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/rmi4/ |
| H A D | rmi_f54.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2015 Synaptics Incorporated 13 #include <media/v4l2-device.h> 14 #include <media/v4l2-ioctl.h> 15 #include <media/videobuf2-v4l2.h> 16 #include <media/videobuf2-vmalloc.h> 43 * enum rmi_f54_report_type - RMI4 F54 report types 45 * @F54_8BIT_IMAGE: Normalized 8-Bit Image Report. The capacitance variance 48 * @F54_16BIT_IMAGE: Normalized 16-Bit Image Report. The capacitance variance 52 * Raw 16-Bit Image Report. The raw capacitance for each [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/tablet/ |
| H A D | gtco.c | 1 /* -*- linux-c -*- 5 TO CHECK: Is pressure done right on report 5? 21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 27 documentation, and that the name of GTCO-CalComp not be used in advertising 29 written prior permission. GTCO-CalComp makes no representations about the 33 GTCO-CALCOMP DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 35 EVENT SHALL GTCO-CALCOMP BE LIABLE FOR ANY SPECIAL, INDIRECT OR 79 /* Max size of a single report */ 116 /* Information pulled from Report Descriptor */ 132 /* Code for parsing the HID REPORT DESCRIPTOR */ [all …]
|