Home
last modified time | relevance | path

Searched +full:client +full:- +full:id (Results 1 – 25 of 1038) sorted by relevance

12345678910>>...42

/linux-5.10/drivers/gpu/vga/
Dvga_switcheroo.c2 * 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 …]
/linux-5.10/drivers/input/keyboard/
Dqt2160.c1 // 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 …]
Dqt1070.c1 // 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 …]
/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.c1 // 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
28 void hnae3_set_client_init_flag(struct hnae3_client *client, in hnae3_set_client_init_flag() argument
32 if (!client || !ae_dev) in hnae3_set_client_init_flag()
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_ROCE_CLIENT_INITED_B, inited); in hnae3_set_client_init_flag()
48 static int hnae3_get_client_init_flag(struct hnae3_client *client, in hnae3_get_client_init_flag() argument
53 switch (client->type) { in hnae3_get_client_init_flag()
[all …]
/linux-5.10/drivers/leds/
Dleds-bd2802.c1 // 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 …]
Dleds-lp3944.c1 // 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 …]
Dleds-pca9532.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * pca9532.c - 16-bit Led dimmer
18 #include <linux/leds-pca9532.h>
40 struct i2c_client *client; member
53 static int pca9532_probe(struct i2c_client *client,
54 const struct i2c_device_id *id);
55 static int pca9532_remove(struct i2c_client *client);
103 .name = "leds-pca953x",
116 static int pca9532_calcpwm(struct i2c_client *client, int pwm, int blink, in pca9532_calcpwm() argument
120 struct pca9532_data *data = i2c_get_clientdata(client); in pca9532_calcpwm()
[all …]
/linux-5.10/drivers/video/backlight/
Dadp8860_bl.c1 // 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 …]
Dadp8870_bl.c1 // 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 …]
/linux-5.10/drivers/i2c/muxes/
Di2c-mux-pca954x.c1 // 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 …]
/linux-5.10/drivers/input/touchscreen/
Dsilead.c1 // 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 * -------------------------------------------------------------------------
66 struct i2c_client *client; member
76 int id[SILEAD_MAX_FINGERS]; member
86 struct device *dev = &data->client->dev; in silead_ts_request_input_dev()
89 data->input = devm_input_allocate_device(dev); in silead_ts_request_input_dev()
90 if (!data->input) { in silead_ts_request_input_dev()
[all …]
Dmms114.c1 // 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 …]
Dsis_i2c.c1 // 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 …]
Dgoodix.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * 2010 - 2012 Goodix Technology.
88 const char *id; member
95 struct i2c_client *client; member
107 char id[GOODIX_ID_MAX_LEN + 1]; member
156 { .id = "1151", .data = &gt1x_chip_data },
157 { .id = "5663", .data = &gt1x_chip_data },
158 { .id = "5688", .data = &gt1x_chip_data },
159 { .id = "917S", .data = &gt1x_chip_data },
161 { .id = "911", .data = &gt911_chip_data },
[all …]
Degalax_ts.c1 // SPDX-License-Identifier: GPL-2.0
14 - auto idle mode support
60 struct i2c_client *client; member
67 struct input_dev *input_dev = ts->input_dev; in egalax_ts_interrupt()
68 struct i2c_client *client = ts->client; in egalax_ts_interrupt() local
70 int id, ret, x, y, z; in egalax_ts_interrupt() local
76 ret = i2c_master_recv(client, buf, MAX_I2C_DATA_LEN); in egalax_ts_interrupt()
77 } while (ret == -EAGAIN && tries++ < EGALAX_MAX_TRIES); in egalax_ts_interrupt()
93 id = (state & EVENT_ID_MASK) >> EVENT_ID_OFFSET; in egalax_ts_interrupt()
96 if (!valid || id > MAX_SUPPORT_POINTS) { in egalax_ts_interrupt()
[all …]
/linux-5.10/drivers/regulator/
Dmax1586.c1 // 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 …]
/linux-5.10/drivers/hwmon/pmbus/
Dltc2978.c1 // 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 …]
Dmax34440.c1 // SPDX-License-Identifier: GPL-2.0-or-later
45 int id; member
53 static int max34440_read_word_data(struct i2c_client *client, int page, in max34440_read_word_data() argument
57 const struct pmbus_driver_info *info = pmbus_get_driver_info(client); in max34440_read_word_data()
62 ret = pmbus_read_word_data(client, page, phase, in max34440_read_word_data()
66 ret = pmbus_read_word_data(client, page, phase, in max34440_read_word_data()
70 ret = pmbus_read_word_data(client, page, phase, in max34440_read_word_data()
74 ret = pmbus_read_word_data(client, page, phase, in max34440_read_word_data()
78 if (data->id != max34446 && data->id != max34451) in max34440_read_word_data()
79 return -ENXIO; in max34440_read_word_data()
[all …]
/linux-5.10/drivers/mfd/
Dadp5520.c1 // 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 …]
D88pm80x.c1 // SPDX-License-Identifier: GPL-2.0-only
18 /* 88pm80x chips have same definition for chip id register. */
24 unsigned int id; member
29 /* 88PM800 chip id number */
31 /* 88PM805 chip id number */
33 /* 88PM860 chip id number */
51 int pm80x_init(struct i2c_client *client) in pm80x_init() argument
59 devm_kzalloc(&client->dev, sizeof(struct pm80x_chip), GFP_KERNEL); in pm80x_init()
61 return -ENOMEM; in pm80x_init()
63 map = devm_regmap_init_i2c(client, &pm80x_regmap_config); in pm80x_init()
[all …]
/linux-5.10/drivers/power/supply/
Dltc2941-battery-gauge.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * I2C client/driver for the Linear Technology LTC2941, LTC2942, LTC2943
71 struct i2c_client *client; /* I2C Client pointer */ member
75 enum ltc294x_id id; /* Chip type */ member
84 return ((Q * (info->Qlsb / 10))) / 100; in convert_bin_to_uAh()
92 Q = (uAh * 100) / (info->Qlsb/10); in convert_uAh_to_bin()
96 static int ltc294x_read_regs(struct i2c_client *client, in ltc294x_read_regs() argument
103 msgs[0].addr = client->addr; in ltc294x_read_regs()
107 msgs[1].addr = client->addr; in ltc294x_read_regs()
112 ret = i2c_transfer(client->adapter, &msgs[0], 2); in ltc294x_read_regs()
[all …]
/linux-5.10/drivers/iio/accel/
Dda280.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * IIO driver for the MiraMEMS DA280 3-axis accelerometer and
4 * IIO driver for the MiraMEMS DA226 2-axis accelerometer
29 * a value of + or -4096 corresponds to + or - 1G
51 struct i2c_client *client; member
54 static int da280_enable(struct i2c_client *client, bool enable) in da280_enable() argument
58 return i2c_smbus_write_byte_data(client, DA280_REG_MODE_BW, data); in da280_enable()
70 ret = i2c_smbus_read_word_data(data->client, chan->address); in da280_read_raw()
84 return -EINVAL; in da280_read_raw()
94 const struct acpi_device_id *id; in da280_match_acpi_device() local
[all …]
Dmma9551_core.c1 // SPDX-License-Identifier: GPL-2.0-only
23 /* Error-Status codes returned in mailbox read command */
50 #define MMA9551_RSC_OFFSET(mask) (3 - (ffs(mask) - 1) / 8)
51 #define MMA9551_RSC_VAL(mask) (mask >> (((ffs(mask) - 1) / 8) * 8))
55 * - control registers: MB0-3
56 * - data registers: MB4-31
59 * - mbox to write to (always 0)
60 * - control registers: MB1-4
61 * - data registers: MB5-31
77 * Bits 6-4: command
[all …]
/linux-5.10/drivers/iio/light/
Dvcnl4000.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * vcnl4000.c - Support for Vishay VCNL4000/4010/4020/4040/4200 combined ambient
11 * VCNL4000/10/20 (7-bit I2C slave address 0x13)
12 * VCNL4040 (7-bit I2C slave address 0x60)
13 * VCNL4200 (7-bit I2C slave address 0x51)
42 #define VCNL4000_PROD_REV 0x81 /* Product ID and Revision ID */
64 #define VCNL4200_DEV_ID 0x0e /* Device ID, slave address and version */
66 #define VCNL4040_DEV_ID 0x0c /* Device ID and version */
71 #define VCNL4000_AL_OD BIT(4) /* start on-demand ALS measurement */
72 #define VCNL4000_PS_OD BIT(3) /* start on-demand proximity measurement */
[all …]
/linux-5.10/drivers/media/usb/em28xx/
Dem28xx-camera.c1 // SPDX-License-Identifier: GPL-2.0+
3 // em28xx-camera.c - driver for Empia EM25xx/27xx/28xx USB video capture devices
23 #include <media/v4l2-common.h>
52 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], in em28xx_initialize_mt9m111()
81 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], in em28xx_initialize_mt9m001()
96 u16 id; in em28xx_probe_sensor_micron() local
98 struct i2c_client *client = &dev->i2c_client[dev->def_i2c_bus]; in em28xx_probe_sensor_micron() local
100 dev->em28xx_sensor = EM28XX_NOSENSOR; in em28xx_probe_sensor_micron()
102 client->addr = micron_sensor_addrs[i]; in em28xx_probe_sensor_micron()
103 /* Read chip ID from register 0x00 */ in em28xx_probe_sensor_micron()
[all …]

12345678910>>...42