/openbmc/openbmc-test-automation/openpower/ext_interfaces/ |
H A D | test_client_identifier.robot | 3 Documentation Test client identifier feature on BMC. 25 [Documentation] Create a session with client id and verify client id is same. 32 EXTERNAL-CLIENT-01 False 33 EXTERNAL-CLIENT-02 False 37 [Documentation] Create a session with client id and verify client id is same after the reboot. 43 EXTERNAL-CLIENT-01 True 47 [Documentation] Create a multiple session with client id and verify client id is same. 53 EXTERNAL-CLIENT-01,EXTERNAL-CLIENT-02 False 57 …[Documentation] Create a multiple session with client id and verify client id is same after the r… 63 EXTERNAL-CLIENT-01,EXTERNAL-CLIENT-02 True [all …]
|
/openbmc/qemu/contrib/ivshmem-client/ |
H A D | ivshmem-client.c | 6 * top-level directory. 15 #include "ivshmem-client.h" 18 #define IVSHMEM_CLIENT_DEBUG(client, fmt, ...) do { \ argument 19 if ((client)->verbose) { \ 26 ivshmem_client_read_one_msg(IvshmemClient *client, int64_t *index, int *fd) in ivshmem_client_read_one_msg() argument 46 ret = recvmsg(client->sock_fd, &msg, 0); in ivshmem_client_read_one_msg() 48 IVSHMEM_CLIENT_DEBUG(client, "cannot read message: %s\n", in ivshmem_client_read_one_msg() 50 return -1; in ivshmem_client_read_one_msg() 53 IVSHMEM_CLIENT_DEBUG(client, "lost connection to server\n"); in ivshmem_client_read_one_msg() 54 return -1; in ivshmem_client_read_one_msg() [all …]
|
/openbmc/linux/drivers/gpu/vga/ |
H A D | vga_switcheroo.c | 2 * vga_switcheroo.c - Support for laptop with dual GPU using one set of outputs 33 #include <linux/apple-gmux.h> 71 * handler to control the power state of the discrete GPU, its ->switchto 72 * callback is a no-op for obvious reasons. The discrete GPU is often equipped 74 * register as a client so that vga_switcheroo can take care of the correct 77 * client (on the discrete GPU). The code is mostly prepared to support 81 * active client in vga_switcheroo parlance. The GPU not in use is the 82 * inactive client. When the inactive client's DRM driver is loaded, 86 * a client may alternatively request that the DDC lines are temporarily 93 * struct vga_switcheroo_client - registered client [all …]
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | userspace_pm.sh | 2 # SPDX-License-Identifier: GPL-2.0 21 if ! ip -Version &> /dev/null; then 58 rndh=$(printf %x "$sec")-$(mktemp -u XXXXXX) 59 ns1="ns1-$rndh" 60 ns2="ns2-$rndh" 65 stdbuf -o0 -e0 printf "${@}" 78 _printf "%-68s" "${test_name}" 104 if [ -n "${1}" ]; then 130 rm -rf $file $client_evts $server_evts 140 ip -net "$i" link set lo up [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | qt2160.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * qt2160.c - Atmel AT42QT2160 Touch Sense Controller 35 #define QT2160_CYCLE_INTERVAL 2000 /* msec - 2 sec */ 49 int id; member 55 struct i2c_client *client; member 64 static int qt2160_read(struct i2c_client *client, u8 reg); 65 static int qt2160_write(struct i2c_client *client, u8 reg, u8 data); 73 struct qt2160_data *qt2160 = led->qt2160; in qt2160_led_set() 74 struct i2c_client *client = qt2160->client; in qt2160_led_set() local 77 if (value != led->brightness) { in qt2160_led_set() [all …]
|
H A D | qt1070.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 49 struct i2c_client *client; member 56 static int qt1070_read(struct i2c_client *client, u8 reg) in qt1070_read() argument 60 ret = i2c_smbus_read_byte_data(client, reg); in qt1070_read() 62 dev_err(&client->dev, in qt1070_read() 68 static int qt1070_write(struct i2c_client *client, u8 reg, u8 data) in qt1070_write() argument 72 ret = i2c_smbus_write_byte_data(client, reg, data); in qt1070_write() 74 dev_err(&client->dev, in qt1070_write() 80 static bool qt1070_identify(struct i2c_client *client) in qt1070_identify() argument 82 int id, ver; in qt1070_identify() local [all …]
|
/openbmc/qemu/docs/interop/ |
H A D | barrier.rst | 1 Barrier client protocol 4 QEMU's ``input-barrier`` device implements the client end of 5 the KVM (Keyboard-Video-Mouse) software 11 -------------- 13 Message format between the server and client is in two parts: 19 command. The first command between the server and the client 24 -------------------- 32 server -> client 36 Say hello to client 46 client ->server [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-bd2802.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-bd2802.c - RGB LED Driver 8 * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf 16 #include <linux/leds-bd2802.h> 69 struct i2c_client *client; member 104 /*--------------------------------------------------------------*/ 106 /*--------------------------------------------------------------*/ 108 static inline int bd2802_is_rgb_off(struct bd2802_led *led, enum led_ids id, in bd2802_is_rgb_off() argument 113 return !led->led[id].r; in bd2802_is_rgb_off() 115 return !led->led[id].g; in bd2802_is_rgb_off() [all …]
|
H A D | leds-lp3944.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-lp3944.c - driver for National Semiconductor LP3944 Funlight Chip 18 * - period: from 0s to 1.6s 19 * - duty cycle: percentage of the period the led is on, from 0 to 100 30 #include <linux/leds-lp3944.h> 33 #define LP3944_REG_INPUT1 0x00 /* LEDs 0-7 InputRegister (Read Only) */ 40 #define LP3944_REG_LS0 0x06 /* LEDs 0-3 Selector (R/W) */ 41 #define LP3944_REG_LS1 0x07 /* LEDs 4-7 Selector (R/W) */ 64 u8 id; member 67 struct i2c_client *client; member [all …]
|
H A D | leds-pca9532.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * pca9532.c - 16-bit Led dimmer 18 #include <linux/leds-pca9532.h> 39 struct i2c_client *client; member 52 static int pca9532_probe(struct i2c_client *client); 53 static void pca9532_remove(struct i2c_client *client); 101 .name = "leds-pca953x", 114 static int pca9532_calcpwm(struct i2c_client *client, int pwm, int blink, in pca9532_calcpwm() argument 118 struct pca9532_data *data = i2c_get_clientdata(client); in pca9532_calcpwm() 119 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_calcpwm() [all …]
|
/openbmc/linux/drivers/video/backlight/ |
H A D | adp8860_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2009-2010 Analog Devices Inc. 24 #define ADP8860_MFDVID 0x00 /* Manufacturer and device ID */ 33 #define ADP8860_BLMX1 0x09 /* Backlight (Brightness Level 1-daylight) maximum current */ 34 #define ADP8860_BLDM1 0x0A /* Backlight (Brightness Level 1-daylight) dim current */ 35 #define ADP8860_BLMX2 0x0B /* Backlight (Brightness Level 2-office) maximum current */ 36 #define ADP8860_BLDM2 0x0C /* Backlight (Brightness Level 2-office) dim current */ 37 #define ADP8860_BLMX3 0x0D /* Backlight (Brightness Level 3-dark) maximum current */ 38 #define ADP8860_BLDM3 0x0E /* Backlight (Brightness Level 3-dark) dim current */ 57 #define ADP8860_PH1LEVL 0x21 /* First phototransistor ambient light level-low byte register */ [all …]
|
H A D | adp8870_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2009-2011 Analog Devices Inc. 25 #define ADP8870_MFDVID 0x00 /* Manufacturer and device ID */ 35 #define ADP8870_BLMX1 0x0A /* Backlight (Brightness Level 1-daylight) maximum current */ 36 #define ADP8870_BLDM1 0x0B /* Backlight (Brightness Level 1-daylight) dim current */ 37 #define ADP8870_BLMX2 0x0C /* Backlight (Brightness Level 2-bright) maximum current */ 38 #define ADP8870_BLDM2 0x0D /* Backlight (Brightness Level 2-bright) dim current */ 39 #define ADP8870_BLMX3 0x0E /* Backlight (Brightness Level 3-office) maximum current */ 40 #define ADP8870_BLDM3 0x0F /* Backlight (Brightness Level 3-office) dim current */ 41 #define ADP8870_BLMX4 0x10 /* Backlight (Brightness Level 4-indoor) maximum current */ [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hnae3.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 22 if (!hnae3_get_bit(ae_dev->flag, HNAE3_DEV_INITED_B)) in hnae3_unregister_ae_algo_prepare() 25 pci_id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_unregister_ae_algo_prepare() 29 device_lock(&ae_dev->pdev->dev); in hnae3_unregister_ae_algo_prepare() 30 pci_disable_sriov(ae_dev->pdev); in hnae3_unregister_ae_algo_prepare() 31 device_unlock(&ae_dev->pdev->dev); in hnae3_unregister_ae_algo_prepare() 38 * list. This is a non-critical code so other updations, if happen 67 void hnae3_set_client_init_flag(struct hnae3_client *client, in hnae3_set_client_init_flag() argument 71 if (!client || !ae_dev) in hnae3_set_client_init_flag() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | mms114.c | 1 // SPDX-License-Identifier: GPL-2.0 64 struct i2c_client *client; member 81 u8 id:4, reserved_bit4:1, type:2, pressed:1; member 93 struct i2c_client *client = data->client; in __mms114_read_reg() local 102 xfer[0].addr = client->addr; in __mms114_read_reg() 103 xfer[0].flags = client->flags & I2C_M_TEN; in __mms114_read_reg() 108 xfer[1].addr = client->addr; in __mms114_read_reg() 109 xfer[1].flags = (client->flags & I2C_M_TEN) | I2C_M_RD; in __mms114_read_reg() 113 error = i2c_transfer(client->adapter, xfer, 2); in __mms114_read_reg() 115 dev_err(&client->dev, in __mms114_read_reg() [all …]
|
H A D | silead.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* ------------------------------------------------------------------------- 3 * Copyright (C) 2014-2015, Intel Corporation 7 * Copyright (C) 2010-2015, Shanghai Sileadinc Co.Ltd 9 * ------------------------------------------------------------------------- 67 struct i2c_client *client; member 77 int id[SILEAD_MAX_FINGERS]; member 94 struct input_absinfo *absinfo_x = &data->input->absinfo[ABS_MT_POSITION_X]; in silead_apply_efi_fw_min_max() 95 struct input_absinfo *absinfo_y = &data->input->absinfo[ABS_MT_POSITION_Y]; in silead_apply_efi_fw_min_max() 97 if (!data->efi_fw_min_max_set) in silead_apply_efi_fw_min_max() [all …]
|
H A D | sis_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/crc-itu-t.h> 25 * u8 Report ID 26 * <contact data - variable length> 33 * u8 finger id 49 #define SIS_PKT_REPORT_OFFSET 2 /* Report ID/type */ 71 #define SIS_CONTACT_ID_OFFSET 1 /* Contact ID */ 76 #define SIS_CONTACT_PRESSURE_OFFSET(id) (SIS_PKT_HAS_AREA(id) ? 8 : 6) argument 95 struct i2c_client *client; member 104 static int sis_read_packet(struct i2c_client *client, u8 *buf, in sis_read_packet() argument [all …]
|
H A D | goodix.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * 2010 - 2012 Goodix Technology. 57 const char *id; member 97 { .id = "1151", .data = >1x_chip_data }, 98 { .id = "1158", .data = >1x_chip_data }, 99 { .id = "5663", .data = >1x_chip_data }, 100 { .id = "5688", .data = >1x_chip_data }, 101 { .id = "917S", .data = >1x_chip_data }, 102 { .id = "9286", .data = >1x_chip_data }, 104 { .id = "911", .data = >911_chip_data }, [all …]
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | max16601.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * instantiates a dummy I2C client at the second I2C address to report 19 * The chip supports reading per-phase temperatures and per-phase input/output 22 * register values and reports per-phase information in PMBus page 0. 50 enum chips id; member 58 static int max16601_read_byte(struct i2c_client *client, int page, int reg) in max16601_read_byte() argument 60 const struct pmbus_driver_info *info = pmbus_get_driver_info(client); in max16601_read_byte() 65 return i2c_smbus_read_byte_data(data->vsa, reg); in max16601_read_byte() 66 return -EOPNOTSUPP; in max16601_read_byte() 68 return -ENODATA; in max16601_read_byte() [all …]
|
H A D | ltc2978.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 105 #define LTC_POLL_TIMEOUT 100 /* in milli-seconds */ 119 enum chips id; member 135 #define has_clear_peaks(d) ((d)->features & FEAT_CLEAR_PEAKS) 136 #define needs_polling(d) ((d)->features & FEAT_NEEDS_POLLING) 138 static int ltc_wait_ready(struct i2c_client *client) in ltc_wait_ready() argument 141 const struct pmbus_driver_info *info = pmbus_get_driver_info(client); in ltc_wait_ready() 154 if (data->id != ltc3883) in ltc_wait_ready() 158 status = pmbus_read_byte_data(client, 0, LTC2978_MFR_COMMON); in ltc_wait_ready() 159 if (status == -EBADMSG || status == -ENXIO) { in ltc_wait_ready() [all …]
|
/openbmc/linux/drivers/i2c/muxes/ |
H A D | i2c-mux-pca954x.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2008-2009 Rodolfo Giometti <giometti@linux.it> 6 * Copyright (c) 2008-2009 Eurotech S.p.A. <info@eurotech.it> 21 * single 8-bit register. The upstream "parent" bus fans out to two, 24 * mux can select only one sub-bus at a time; a switch can select any 36 * i2c-virtual_cb.c from Brian Kuschak <bkuschak@yahoo.com> 45 #include <linux/i2c-mux.h> 54 #include <dt-bindings/mux/mux.h> 89 struct i2c_device_identity id; member 99 struct i2c_client *client; member [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | max1586.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * max1586.c -- Voltage and current regulation for the Maxim 1586 30 struct i2c_client *client; member 60 return max1586->v3_curr_sel; in max1586_v3_get_voltage_sel() 67 struct i2c_client *client = max1586->client; in max1586_v3_set_voltage_sel() local 71 dev_dbg(&client->dev, "changing voltage v3 to %dmv\n", in max1586_v3_set_voltage_sel() 75 ret = i2c_smbus_write_byte(client, v3_prog); in max1586_v3_set_voltage_sel() 79 max1586->v3_curr_sel = selector; in max1586_v3_set_voltage_sel() 88 return max1586->v6_curr_sel; in max1586_v6_get_voltage_sel() 95 struct i2c_client *client = max1586->client; in max1586_v6_set_voltage_sel() local [all …]
|
/openbmc/phosphor-snmp/ |
H A D | snmp_client.hpp | 2 #include "xyz/openbmc_project/Network/Client/server.hpp" 21 sdbusplus::xyz::openbmc_project::Network::server::Client, 24 using Id = size_t; typedef 26 /** @class Client 27 * @brief represents the snmp client configuration 29 * xyz.openbmc_project.Network.Client Dbus interface. 31 class Client : public Ifaces class 34 Client() = delete; 35 Client(const Client&) = delete; 36 Client& operator=(const Client&) = delete; [all …]
|
/openbmc/u-boot/arch/sandbox/include/asm/ |
H A D | clk.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 * enum sandbox_clk_id - Identity of clocks implemented by the sandbox clock 17 * These IDs are within/relative-to the clock provider. 27 * enum sandbox_clk_test_id - Identity of the clocks consumed by the sandbox 41 * sandbox_clk_query_rate - Query the current rate of a sandbox clock. 44 * @id: The clock to query. 47 ulong sandbox_clk_query_rate(struct udevice *dev, int id); 49 * sandbox_clk_query_enable - Query the enable state of a sandbox clock. 52 * @id: The clock to query. 55 int sandbox_clk_query_enable(struct udevice *dev, int id); [all …]
|
/openbmc/qemu/docs/specs/ |
H A D | ivshmem-spec.rst | 2 Device Specification for Inter-VM shared memory device 5 The Inter-VM shared memory device (ivshmem) is designed to share a 23 The device has vendor ID 1af4, device ID 1110, revision 1. Before 27 -------- 31 - BAR0 holds device registers (256 Byte MMIO) 32 - BAR1 holds MSI-X table and PBA (only ivshmem-doorbell) 33 - BAR2 maps the shared memory object 37 - If you only need the shared memory part, BAR2 suffices. This way, 41 - If you additionally need the capability for peers to interrupt each 50 IVPosition register (described below) to become non-negative before [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | adp5520.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * LEDs : drivers/led/leds-adp5520 6 * GPIO : drivers/gpio/adp5520-gpio (ADP5520 only) 7 * Keys : drivers/input/keyboard/adp5520-keys (ADP5520 only) 17 * Copyright (C) 2006-2008 Marvell International Ltd. 33 struct i2c_client *client; member 38 unsigned long id; member 42 static int __adp5520_read(struct i2c_client *client, in __adp5520_read() argument 47 ret = i2c_smbus_read_byte_data(client, reg); in __adp5520_read() 49 dev_err(&client->dev, "failed reading at 0x%02x\n", reg); in __adp5520_read() [all …]
|