| /linux/drivers/greybus/ |
| H A D | operation.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 2014-2015 Google Inc. 6 * Copyright 2014-2015 Linaro Ltd. 29 * Protects updates to operation->errno. 37 * Increment operation active count and add to connection list unless the 38 * connection is going away. 44 struct gb_connection *connection = operation->connection; in gb_operation_get_active() local 47 spin_lock_irqsave(&connection->lock, flags); in gb_operation_get_active() 48 switch (connection->state) { in gb_operation_get_active() 63 if (operation->active++ == 0) in gb_operation_get_active() [all …]
|
| H A D | greybus_trace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 31 __field(u8, type) 36 __entry->size = le16_to_cpu(message->header->size); 37 __entry->operation_id = 38 le16_to_cpu(message->header->operation_id); 39 __entry->type = message->header->type; 40 __entry->result = message->header->result; 43 TP_printk("size=%u operation_id=0x%04x type=0x%02x result=0x%02x", 44 __entry->size, __entry->operation_id, 45 __entry->type, __entry->result) [all …]
|
| /linux/drivers/staging/greybus/ |
| H A D | audio_apbridgea.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 2015-2016 Google Inc. 12 int gb_audio_apbridgea_set_config(struct gb_connection *connection, in gb_audio_apbridgea_set_config() argument 18 req.hdr.type = AUDIO_APBRIDGEA_TYPE_SET_CONFIG; in gb_audio_apbridgea_set_config() 24 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_config() 29 int gb_audio_apbridgea_register_cport(struct gb_connection *connection, in gb_audio_apbridgea_register_cport() argument 36 req.hdr.type = AUDIO_APBRIDGEA_TYPE_REGISTER_CPORT; in gb_audio_apbridgea_register_cport() 41 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_audio_apbridgea_register_cport() 45 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_register_cport() 50 int gb_audio_apbridgea_unregister_cport(struct gb_connection *connection, in gb_audio_apbridgea_unregister_cport() argument [all …]
|
| H A D | gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 22 /* --> make them just a flags field */ 36 struct gb_connection *connection; member 47 return d->domain->host_data; in irq_data_to_gpio_chip() 55 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_LINE_COUNT, in gb_gpio_line_count_operation() 58 ggc->line_max = response.count; in gb_gpio_line_count_operation() 65 struct gbphy_device *gbphy_dev = ggc->gbphy_dev; in gb_gpio_activate_operation() 73 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_ACTIVATE, in gb_gpio_activate_operation() 80 ggc->lines[which].active = true; in gb_gpio_activate_operation() 88 struct gbphy_device *gbphy_dev = ggc->gbphy_dev; in gb_gpio_deactivate_operation() [all …]
|
| H A D | loopback.c | 1 // SPDX-License-Identifier: GPL-2.0 60 struct gb_connection *connection; member 71 /* Per connection stats */ 79 int type; member 128 return sprintf(buf, "%u\n", gb->field); \ 132 #define gb_loopback_ro_stats_attr(name, field, type) \ argument 139 if (!gb->requests_completed) \ 141 return sprintf(buf, "%" #type "\n", gb->name.field); \ 155 stats = &gb->name; \ 156 count = stats->count ? stats->count : 1; \ [all …]
|
| H A D | hid.c | 1 // SPDX-License-Identifier: GPL-2.0 20 struct gb_connection *connection; member 38 return gb_operation_sync(ghid->connection, GB_HID_TYPE_GET_DESC, NULL, in gb_hid_get_desc() 39 0, &ghid->hdesc, sizeof(ghid->hdesc)); in gb_hid_get_desc() 46 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_get_report_desc() 50 ret = gb_operation_sync(ghid->connection, GB_HID_TYPE_GET_REPORT_DESC, in gb_hid_get_report_desc() 52 le16_to_cpu(ghid->hdesc.wReportDescLength)); in gb_hid_get_report_desc() 54 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_get_report_desc() 59 static int gb_hid_set_power(struct gb_hid *ghid, int type) in gb_hid_set_power() argument 63 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_set_power() [all …]
|
| H A D | log.c | 1 // SPDX-License-Identifier: GPL-2.0 15 struct gb_connection *connection; member 20 struct gb_connection *connection = op->connection; in gb_log_request_handler() local 21 struct device *dev = &connection->bundle->dev; in gb_log_request_handler() 25 if (op->type != GB_LOG_TYPE_SEND_LOG) { in gb_log_request_handler() 26 dev_err(dev, "unknown request type 0x%02x\n", op->type); in gb_log_request_handler() 27 return -EINVAL; in gb_log_request_handler() 31 if (op->request->payload_size < sizeof(*receive)) { in gb_log_request_handler() 33 op->request->payload_size, sizeof(*receive)); in gb_log_request_handler() 34 return -EINVAL; in gb_log_request_handler() [all …]
|
| H A D | audio_module.c | 1 // SPDX-License-Identifier: GPL-2.0 24 struct snd_jack *jack = module->headset.jack.jack; in gbaudio_request_jack() 25 struct snd_jack *btn_jack = module->button.jack.jack; in gbaudio_request_jack() 28 dev_err_ratelimited(module->dev, in gbaudio_request_jack() 29 "Invalid jack event received:type: %u, event: %u\n", in gbaudio_request_jack() 30 req->jack_attribute, req->event); in gbaudio_request_jack() 31 return -EINVAL; in gbaudio_request_jack() 34 dev_warn_ratelimited(module->dev, in gbaudio_request_jack() 35 "Jack Event received: type: %u, event: %u\n", in gbaudio_request_jack() 36 req->jack_attribute, req->event); in gbaudio_request_jack() [all …]
|
| H A D | power_supply.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 2014-2015 Google Inc. 6 * Copyright 2014-2015 Linaro Ltd. 36 u8 type; member 50 struct gb_connection *connection; member 63 #define POWER_SUPPLY_PROP_VOLTAGE_BOOT -1 66 #define POWER_SUPPLY_PROP_CURRENT_BOOT -1 69 #define POWER_SUPPLY_PROP_CALIBRATE -1 76 * back-off exponential 298 prop = -1; in get_psp_from_gb_prop() [all …]
|
| /linux/include/linux/greybus/ |
| H A D | operation.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * The top bit of the type in an operation message header indicates 49 * host-controller drivers may use the hcpriv field. All other fields are 74 * connection between two UniPro interfaces. 77 * end of the connection coupled with a reply message returned to 78 * the sender. Every operation has a type, whose interpretation is 79 * dependent on the protocol associated with the connection. 82 * directly usable by protocol handlers: the operation's connection 83 * pointer; the operation type; the request message payload (and 85 * message with a 0-byte payload has a null message payload pointer. [all …]
|
| /linux/include/media/ |
| H A D | v4l2-async.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2012-2013, Guennadi Liakhovetski <g.liakhovetski@gmx.de> 22 * enum v4l2_async_match_type - type of asynchronous subdevice logic to be used 28 * This enum is used by the asynchronous connection logic to define the 37 * struct v4l2_async_match_desc - async connection match information 39 * @type: type of match that will be used 54 enum v4l2_async_match_type type; member 65 * struct v4l2_async_connection - sub-device connection descriptor, as known to 68 * @match: struct of match type and per-bus type matching data sets 69 * @notifier: the async notifier the connection is related to [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-ls2088a-rdb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 12 /dts-v1/; 14 #include "fsl-ls2088a.dtsi" 15 #include "fsl-ls208xa-rdb.dtsi" 19 compatible = "fsl,ls2088a-rdb", "fsl,ls2088a"; 22 stdout-path = "serial1:115200n8"; 27 phy-handle = <&mdio1_phy1>; 28 phy-connection-type = "10gbase-r"; 32 phy-handle = <&mdio1_phy2>; 33 phy-connection-type = "10gbase-r"; [all …]
|
| H A D | fsl-ls1088a-rdb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Copyright 2017-2020 NXP 11 /dts-v1/; 13 #include "fsl-ls1088a.dtsi" 17 compatible = "fsl,ls1088a-rdb", "fsl,ls1088a"; 21 phy-handle = <&mdio2_aquantia_phy>; 22 phy-connection-type = "10gbase-r"; 23 pcs-handle = <&pcs2>; 27 phy-handle = <&mdio1_phy5>; 28 phy-connection-type = "qsgmii"; [all …]
|
| H A D | fsl-lx2162a-clearfog.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 // Copyright 2023 Josua Mayer <josua@solid-run.com> 7 /dts-v1/; 9 #include "fsl-lx2160a.dtsi" 10 #include "fsl-lx2162a-sr-som.dtsi" 14 compatible = "solidrun,lx2162a-clearfog", "solidrun,lx2162a-som", "fsl,lx2160a"; 35 stdout-path = "serial0:115200n8"; 39 compatible = "gpio-leds"; 41 led_sfp_at: led-sfp-at { 43 default-state = "off"; [all …]
|
| H A D | fsl-ls1088a-ten64.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 4 * Based on fsl-ls1088a-rdb.dts 5 * Copyright 2017-2020 NXP 6 * Copyright 2019-2021 Traverse Technologies 11 /dts-v1/; 13 #include "fsl-ls1088a.dtsi" 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/input.h> 28 stdout-path = "serial0:115200n8"; 32 compatible = "gpio-keys"; [all …]
|
| H A D | fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright (c) 2020-2023 TQ-Systems GmbH <linux@ew.tq-group.com>, 4 * D-82229 Seefeld, Germany. 8 /dts-v1/; 12 phy-handle = <&dp83867_1_1>; 13 phy-connection-type = "sgmii"; 14 managed = "in-band-status"; 18 phy-handle = <&dp83867_1_5>; 19 phy-connection-type = "sgmii"; 20 managed = "in-band-status"; [all …]
|
| H A D | fsl-ls1046a-rdb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for Freescale Layerscape-1046A family SoC. 6 * Copyright 2019-2020 NXP 11 /dts-v1/; 13 #include "fsl-ls1046a.dtsi" 17 compatible = "fsl,ls1046a-rdb", "fsl,ls1046a"; 27 stdout-path = "serial0:115200n8"; 40 mmc-hs200-1_8v; 41 sd-uhs-sdr104; 42 sd-uhs-sdr50; [all …]
|
| /linux/arch/powerpc/boot/dts/fsl/ |
| H A D | t4240rdb.dts | 4 * Copyright 2014 - 2015 Freescale Semiconductor Inc. 35 /include/ "t4240si-pre.dtsi" 40 #address-cells = <2>; 41 #size-cells = <2>; 42 interrupt-parent = <&mpic>; 62 #address-cells = <1>; 63 #size-cells = <1>; 64 compatible = "cfi-flash"; 67 bank-width = <2>; 68 device-width = <1>; [all …]
|
| H A D | t2080qds.dts | 4 * Copyright 2013 - 2015 Freescale Semiconductor Inc. 35 /include/ "t208xsi-pre.dtsi" 41 #address-cells = <2>; 42 #size-cells = <2>; 43 interrupt-parent = <&mpic>; 66 phy-handle = <&phy_sgmii_s3_1e>; 67 phy-connection-type = "xgmii"; 71 phy-handle = <&phy_sgmii_s3_1f>; 72 phy-connection-type = "xgmii"; 76 phy-handle = <&rgmii_phy1>; [all …]
|
| H A D | t4240qds.dts | 4 * Copyright 2012 - 2015 Freescale Semiconductor Inc. 35 /include/ "t4240si-pre.dtsi" 40 #address-cells = <2>; 41 #size-cells = <2>; 42 interrupt-parent = <&mpic>; 89 #address-cells = <1>; 90 #size-cells = <1>; 91 compatible = "cfi-flash"; 94 bank-width = <2>; 95 device-width = <1>; [all …]
|
| H A D | t2080rdb.dts | 2 * T2080PCIe-RDB Board Device Tree Source 4 * Copyright 2014 - 2015 Freescale Semiconductor Inc. 35 /include/ "t208xsi-pre.dtsi" 41 #address-cells = <2>; 42 #size-cells = <2>; 43 interrupt-parent = <&mpic>; 60 phy-handle = <&xg_aq1202_phy3>; 61 phy-connection-type = "xgmii"; 65 phy-handle = <&xg_aq1202_phy4>; 66 phy-connection-type = "xgmii"; [all …]
|
| H A D | p5040ds.dts | 4 * Copyright 2012 - 2015 Freescale Semiconductor Inc. 35 /include/ "p5040si-pre.dtsi" 40 #address-cells = <2>; 41 #size-cells = <2>; 42 interrupt-parent = <&mpic>; 74 reserved-memory { 75 #address-cells = <2>; 76 #size-cells = <2>; 79 bman_fbpr: bman-fbpr { 83 qman_fqd: qman-fqd { [all …]
|
| H A D | t2081qds.dts | 4 * Copyright 2013 - 2015 Freescale Semiconductor Inc. 35 /include/ "t208xsi-pre.dtsi" 41 #address-cells = <2>; 42 #size-cells = <2>; 43 interrupt-parent = <&mpic>; 58 phy-handle = <&phy_sgmii_s7_1c>; 59 phy-connection-type = "sgmii"; 63 phy-handle = <&phy_sgmii_s7_1d>; 64 phy-connection-type = "sgmii"; 68 phy-handle = <&rgmii_phy1>; [all …]
|
| /linux/include/uapi/linux/caif/ |
| H A D | caif_socket.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 4 * Copyright (C) ST-Ericsson AB 2010 16 * enum caif_link_selector - Physical Link Selection. 17 * @CAIF_LINK_HIGH_BANDW: Physical interface for high-bandwidth 19 * @CAIF_LINK_LOW_LATENCY: Physical interface for low-latency 32 * enum caif_channel_priority - CAIF channel priorities. 35 * @CAIF_PRIO_LOW: Low-priority channel. 55 * enum caif_protocol_type - CAIF Channel type. 63 * This enum defines the CAIF Channel type to be used. This defines 78 * enum caif_at_type - AT Service Endpoint [all …]
|
| /linux/net/llc/ |
| H A D | llc_if.c | 2 * llc_if.c - Defines LLC interface to upper layer 5 * 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> 30 * llc_build_and_send_pkt - Connection data sending for upper layers. 31 * @sk: connection 35 * connection oriented communication mode. During sending data, connection 37 * Returns 0 for success, -ECONNABORTED when the connection already 38 * closed and -EBUSY when sending data is not permitted in this state or 47 int rc = -ECONNABORTED; in llc_build_and_send_pkt() 50 if (unlikely(llc->state == LLC_CONN_STATE_ADM)) in llc_build_and_send_pkt() 52 rc = -EBUSY; in llc_build_and_send_pkt() [all …]
|