Lines Matching +full:slave +full:- +full:addr
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright(c) 2015-17 Intel Corporation.
15 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_write() local
17 u32 addr = le32_to_cpu(*(const __le32 *)val_buf); in regmap_sdw_write() local
20 return sdw_nwrite_no_pm(slave, addr, val_size - sizeof(addr), val + sizeof(addr)); in regmap_sdw_write()
28 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_gather_write() local
29 u32 addr = le32_to_cpu(*(const __le32 *)reg_buf); in regmap_sdw_gather_write() local
31 return sdw_nwrite_no_pm(slave, addr, val_size, val_buf); in regmap_sdw_gather_write()
39 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_read() local
40 u32 addr = le32_to_cpu(*(const __le32 *)reg_buf); in regmap_sdw_read() local
42 return sdw_nread_no_pm(slave, addr, val_size, val_buf); in regmap_sdw_read()
56 if (config->reg_bits != 32) in regmap_sdw_config_check()
57 return -ENOTSUPP; in regmap_sdw_config_check()
59 if (config->pad_bits != 0) in regmap_sdw_config_check()
60 return -ENOTSUPP; in regmap_sdw_config_check()
62 /* Only bulk writes are supported not multi-register writes */ in regmap_sdw_config_check()
63 if (config->can_multi_write) in regmap_sdw_config_check()
64 return -ENOTSUPP; in regmap_sdw_config_check()
80 return __regmap_init(&sdw->dev, ®map_sdw, in __regmap_init_sdw()
81 &sdw->dev, config, lock_key, lock_name); in __regmap_init_sdw()
96 return __devm_regmap_init(&sdw->dev, ®map_sdw, in __devm_regmap_init_sdw()
97 &sdw->dev, config, lock_key, lock_name); in __devm_regmap_init_sdw()