| /kernel/linux/linux-4.19/drivers/gpu/vga/ |
| 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> 70 * handler to control the power state of the discrete GPU, its ->switchto 71 * callback is a no-op for obvious reasons. The discrete GPU is often equipped 73 * register as a client so that vga_switcheroo can take care of the correct 76 * client (on the discrete GPU). The code is mostly prepared to support 80 * active client in vga_switcheroo parlance. The GPU not in use is the 81 * inactive client. When the inactive client's DRM driver is loaded, 85 * a client may alternatively request that the DDC lines are temporarily 92 * struct vga_switcheroo_client - registered client [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/vga/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/input/keyboard/ |
| D | qt2160.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * qt2160.c - Atmel AT42QT2160 Touch Sense Controller 49 int id; member 55 struct i2c_client *client; member 65 static int qt2160_read(struct i2c_client *client, u8 reg); 66 static int qt2160_write(struct i2c_client *client, u8 reg, u8 data); 74 struct qt2160_data *qt2160 = led->qt2160; in qt2160_led_set() 75 struct i2c_client *client = qt2160->client; in qt2160_led_set() local 78 if (value != led->brightness) { in qt2160_led_set() 79 drive = qt2160_read(client, QT2160_CMD_DRIVE_X); in qt2160_led_set() [all …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/leds/ |
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/leds/ |
| D | leds-bd2802.c | 2 * leds-bd2802.c - RGB LED Driver 11 * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf 20 #include <linux/leds-bd2802.h> 73 struct i2c_client *client; member 107 /*--------------------------------------------------------------*/ 109 /*--------------------------------------------------------------*/ 111 static inline int bd2802_is_rgb_off(struct bd2802_led *led, enum led_ids id, in bd2802_is_rgb_off() argument 116 return !led->led[id].r; in bd2802_is_rgb_off() 118 return !led->led[id].g; in bd2802_is_rgb_off() 120 return !led->led[id].b; in bd2802_is_rgb_off() [all …]
|
| /kernel/linux/linux-4.19/drivers/input/keyboard/ |
| D | qt2160.c | 2 * qt2160.c - Atmel AT42QT2160 Touch Sense Controller 63 int id; member 69 struct i2c_client *client; member 81 static int qt2160_read(struct i2c_client *client, u8 reg); 82 static int qt2160_write(struct i2c_client *client, u8 reg, u8 data); 89 struct qt2160_data *qt2160 = led->qt2160; in qt2160_led_work() 90 struct i2c_client *client = qt2160->client; in qt2160_led_work() local 91 int value = led->new_brightness; in qt2160_led_work() 94 mutex_lock(&qt2160->led_lock); in qt2160_led_work() 96 drive = qt2160_read(client, QT2160_CMD_DRIVE_X); in qt2160_led_work() [all …]
|
| D | qt1070.c | 62 struct i2c_client *client; member 69 static int qt1070_read(struct i2c_client *client, u8 reg) in qt1070_read() argument 73 ret = i2c_smbus_read_byte_data(client, reg); in qt1070_read() 75 dev_err(&client->dev, in qt1070_read() 81 static int qt1070_write(struct i2c_client *client, u8 reg, u8 data) in qt1070_write() argument 85 ret = i2c_smbus_write_byte_data(client, reg, data); in qt1070_write() 87 dev_err(&client->dev, in qt1070_write() 93 static bool qt1070_identify(struct i2c_client *client) in qt1070_identify() argument 95 int id, ver; in qt1070_identify() local 97 /* Read Chip ID */ in qt1070_identify() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/ |
| 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 pci_disable_sriov(ae_dev->pdev); in hnae3_unregister_ae_algo_prepare() 35 * list. This is a non-critical code so other updations, if happen 49 void hnae3_set_client_init_flag(struct hnae3_client *client, in hnae3_set_client_init_flag() argument 53 if (!client || !ae_dev) in hnae3_set_client_init_flag() 56 switch (client->type) { in hnae3_set_client_init_flag() 58 hnae3_set_bit(ae_dev->flag, HNAE3_KNIC_CLIENT_INITED_B, inited); in hnae3_set_client_init_flag() [all …]
|
| /kernel/linux/linux-5.10/drivers/video/backlight/ |
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/video/backlight/ |
| D | adp8860_bl.c | 4 * Copyright 2009-2010 Analog Devices Inc. 6 * Licensed under the GPL-2 or later. 25 #define ADP8860_MFDVID 0x00 /* Manufacturer and device ID */ 34 #define ADP8860_BLMX1 0x09 /* Backlight (Brightness Level 1-daylight) maximum current */ 35 #define ADP8860_BLDM1 0x0A /* Backlight (Brightness Level 1-daylight) dim current */ 36 #define ADP8860_BLMX2 0x0B /* Backlight (Brightness Level 2-office) maximum current */ 37 #define ADP8860_BLDM2 0x0C /* Backlight (Brightness Level 2-office) dim current */ 38 #define ADP8860_BLMX3 0x0D /* Backlight (Brightness Level 3-dark) maximum current */ 39 #define ADP8860_BLDM3 0x0E /* Backlight (Brightness Level 3-dark) dim current */ 58 #define ADP8860_PH1LEVL 0x21 /* First phototransistor ambient light level-low byte register */ [all …]
|
| D | adp8870_bl.c | 4 * Copyright 2009-2011 Analog Devices Inc. 6 * Licensed under the GPL-2 or later. 26 #define ADP8870_MFDVID 0x00 /* Manufacturer and device ID */ 36 #define ADP8870_BLMX1 0x0A /* Backlight (Brightness Level 1-daylight) maximum current */ 37 #define ADP8870_BLDM1 0x0B /* Backlight (Brightness Level 1-daylight) dim current */ 38 #define ADP8870_BLMX2 0x0C /* Backlight (Brightness Level 2-bright) maximum current */ 39 #define ADP8870_BLDM2 0x0D /* Backlight (Brightness Level 2-bright) dim current */ 40 #define ADP8870_BLMX3 0x0E /* Backlight (Brightness Level 3-office) maximum current */ 41 #define ADP8870_BLDM3 0x0F /* Backlight (Brightness Level 3-office) dim current */ 42 #define ADP8870_BLMX4 0x10 /* Backlight (Brightness Level 4-indoor) maximum current */ [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/hisilicon/hns3/ |
| D | hnae3.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 14 * list. This is a non-critical code so other updations, if happen 32 void hnae3_set_client_init_flag(struct hnae3_client *client, in hnae3_set_client_init_flag() argument 35 switch (client->type) { in hnae3_set_client_init_flag() 37 hnae3_set_bit(ae_dev->flag, HNAE3_KNIC_CLIENT_INITED_B, inited); in hnae3_set_client_init_flag() 40 hnae3_set_bit(ae_dev->flag, HNAE3_UNIC_CLIENT_INITED_B, inited); in hnae3_set_client_init_flag() 43 hnae3_set_bit(ae_dev->flag, HNAE3_ROCE_CLIENT_INITED_B, inited); in hnae3_set_client_init_flag() 51 static int hnae3_get_client_init_flag(struct hnae3_client *client, in hnae3_get_client_init_flag() argument 56 switch (client->type) { in hnae3_get_client_init_flag() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/msm/disp/dpu1/ |
| D | dpu_power_handle.c | 1 /* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved. 28 [DPU_POWER_HANDLE_DBUS_ID_MNOC] = "qcom,dpu-data-bus", 29 [DPU_POWER_HANDLE_DBUS_ID_LLCC] = "qcom,dpu-llcc-bus", 30 [DPU_POWER_HANDLE_DBUS_ID_EBI] = "qcom,dpu-ebi-bus", 46 list_for_each_entry(event, &phandle->event_list, list) { in dpu_power_event_trigger_locked() 47 if (event->event_type & event_type) in dpu_power_event_trigger_locked() 48 event->cb_fnc(event_type, event->usr); in dpu_power_event_trigger_locked() 55 struct dpu_power_client *client; in dpu_power_client_create() local 56 static u32 id; in dpu_power_client_create() local 59 pr_err("client name is null or invalid power data\n"); in dpu_power_client_create() [all …]
|
| /kernel/linux/linux-4.19/drivers/i2c/muxes/ |
| D | i2c-mux-pca954x.c | 4 * Copyright (c) 2008-2009 Rodolfo Giometti <giometti@linux.it> 5 * Copyright (c) 2008-2009 Eurotech S.p.A. <info@eurotech.it> 14 * single 8-bit register. The upstream "parent" bus fans out to two, 17 * mux can select only one sub-bus at a time; a switch can select any 29 * i2c-virtual_cb.c from Brian Kuschak <bkuschak@yahoo.com> 42 #include <linux/i2c-mux.h> 81 struct i2c_device_identity id; member 89 struct i2c_client *client; member 102 .id = { .manufacturer_id = I2C_DEVICE_ID_NONE }, 109 .id = { .manufacturer_id = I2C_DEVICE_ID_NONE }, [all …]
|
| /kernel/linux/linux-5.10/drivers/i2c/muxes/ |
| 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> 15 * single 8-bit register. The upstream "parent" bus fans out to two, 18 * mux can select only one sub-bus at a time; a switch can select any 30 * i2c-virtual_cb.c from Brian Kuschak <bkuschak@yahoo.com> 39 #include <linux/i2c-mux.h> 47 #include <dt-bindings/mux/mux.h> 76 struct i2c_device_identity id; member 86 struct i2c_client *client; member [all …]
|
| /kernel/linux/linux-4.19/drivers/input/touchscreen/ |
| D | silead.c | 1 /* ------------------------------------------------------------------------- 2 * Copyright (C) 2014-2015, Intel Corporation 6 * Copyright (C) 2010-2015, Shanghai Sileadinc Co.Ltd 17 * ------------------------------------------------------------------------- 74 struct i2c_client *client; member 84 int id[SILEAD_MAX_FINGERS]; member 94 struct device *dev = &data->client->dev; in silead_ts_request_input_dev() 97 data->input = devm_input_allocate_device(dev); in silead_ts_request_input_dev() 98 if (!data->input) { in silead_ts_request_input_dev() 101 return -ENOMEM; in silead_ts_request_input_dev() [all …]
|
| D | mms114.c | 1 // SPDX-License-Identifier: GPL-2.0 61 struct i2c_client *client; member 75 u8 id:4, reserved_bit4:1, type:2, pressed:1; member 87 struct i2c_client *client = data->client; in __mms114_read_reg() local 96 xfer[0].addr = client->addr; in __mms114_read_reg() 97 xfer[0].flags = client->flags & I2C_M_TEN; in __mms114_read_reg() 102 xfer[1].addr = client->addr; in __mms114_read_reg() 103 xfer[1].flags = (client->flags & I2C_M_TEN) | I2C_M_RD; in __mms114_read_reg() 107 error = i2c_transfer(client->adapter, xfer, 2); in __mms114_read_reg() 109 dev_err(&client->dev, in __mms114_read_reg() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/i915/ |
| D | intel_guc_submission.c | 38 * DOC: GuC-based command submission 40 * GuC client: 52 * guc_stage_desc (via the client's stage_id), so effectively only one 55 * know about our HW contexts (context ID, etc...), but we actually 57 * item instead (the single guc_stage_desc associated to execbuf client 62 * There are 16 MMIO-based registers start from 0xC180. The kernel driver writes 78 * represents in-order queue. The kernel driver packs ring tail pointer and an 89 static inline bool is_high_priority(struct intel_guc_client *client) in is_high_priority() argument 91 return (client->priority == GUC_CLIENT_PRIORITY_KMD_HIGH || in is_high_priority() 92 client->priority == GUC_CLIENT_PRIORITY_HIGH); in is_high_priority() [all …]
|
| /kernel/linux/linux-5.10/drivers/input/touchscreen/ |
| 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 87 struct device *dev = &data->client->dev; in silead_ts_request_input_dev() 90 data->input = devm_input_allocate_device(dev); in silead_ts_request_input_dev() 91 if (!data->input) { in silead_ts_request_input_dev() [all …]
|
| D | mms114.c | 1 // SPDX-License-Identifier: GPL-2.0 61 struct i2c_client *client; member 75 u8 id:4, reserved_bit4:1, type:2, pressed:1; member 87 struct i2c_client *client = data->client; in __mms114_read_reg() local 96 xfer[0].addr = client->addr; in __mms114_read_reg() 97 xfer[0].flags = client->flags & I2C_M_TEN; in __mms114_read_reg() 102 xfer[1].addr = client->addr; in __mms114_read_reg() 103 xfer[1].flags = (client->flags & I2C_M_TEN) | I2C_M_RD; in __mms114_read_reg() 107 error = i2c_transfer(client->adapter, xfer, 2); in __mms114_read_reg() 109 dev_err(&client->dev, in __mms114_read_reg() [all …]
|
| /kernel/linux/linux-4.19/drivers/hwmon/pmbus/ |
| D | ltc2978.c | 90 #define LTC_POLL_TIMEOUT 100 /* in milli-seconds */ 104 enum chips id; member 120 #define has_clear_peaks(d) ((d)->features & FEAT_CLEAR_PEAKS) 121 #define needs_polling(d) ((d)->features & FEAT_NEEDS_POLLING) 123 static int ltc_wait_ready(struct i2c_client *client) in ltc_wait_ready() argument 126 const struct pmbus_driver_info *info = pmbus_get_driver_info(client); in ltc_wait_ready() 139 if (data->id != ltc3883) in ltc_wait_ready() 143 status = pmbus_read_byte_data(client, 0, LTC2978_MFR_COMMON); in ltc_wait_ready() 144 if (status == -EBADMSG || status == -ENXIO) { in ltc_wait_ready() 158 return -ETIMEDOUT; in ltc_wait_ready() [all …]
|
| /kernel/linux/linux-5.10/drivers/regulator/ |
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/iio/imu/inv_mpu6050/ |
| D | inv_mpu_i2c.c | 34 mutex_lock(&st->lock); in inv_mpu6050_select_bypass() 40 ret = regmap_write(st->map, st->reg->int_pin_cfg, in inv_mpu6050_select_bypass() 41 st->irq_mask | INV_MPU6050_BIT_BYPASS_EN); in inv_mpu6050_select_bypass() 44 mutex_unlock(&st->lock); in inv_mpu6050_select_bypass() 54 mutex_lock(&st->lock); in inv_mpu6050_deselect_bypass() 57 regmap_write(st->map, st->reg->int_pin_cfg, st->irq_mask); in inv_mpu6050_deselect_bypass() 60 mutex_unlock(&st->lock); in inv_mpu6050_deselect_bypass() 68 const struct acpi_device_id *id; in inv_mpu_match_acpi_device() local 70 id = acpi_match_device(dev->driver->acpi_match_table, dev); in inv_mpu_match_acpi_device() 71 if (!id) in inv_mpu_match_acpi_device() [all …]
|