regmap_bus原型 /*** struct regmap_bus - Description of a hardware bus for the register map* infrastructure.** @fast_io: Register IO is fast. Use a spinlock instead of a mutex* to perform locking. This field is ignored if custom lock/unlock* functions are used (see fields lock/unlock ...
int mask = (1 << (field_cfg.msb - field_cfg.lsb + 1)) - 1; int shift = field_cfg.lsb;ut_assertok(regmap_write(regmap, field_cfg.reg, 0)); ut_assertok(regmap_read(regmap, field_cfg.reg, &val)); ut_asserteq(0, val);for...
staticintraydium_i2c_pda2_write(structi2c_client *client,unsignedcharaddr,unsignedchar*w_data,unsignedshortlength){intretval =-1;unsignedcharretry;unsignedcharbuf[MAX_WRITE_PACKET_SIZE +1];structraydium_ts_data*data=i2c_get_clientdata(client);structi2c_msgmsg[] ={ { .addr = RAYDIUM_I2C_NID,...
* @max_raw_write: Max raw write size that can be used on the device. * @fast_io: Register IO is fast. Use a spinlock instead of a mutex * to perform locking. This field is ignored if custom lock/unlock * functions are used (see fields lock/unlock of struct regmap_config). * Th...
struct regmap_field *field_vid_hsa_time = devm_regmap_field_alloc(dev, regmap, &dw_mipi_dsi_v101_layout.cfg_vid_hsa_time); regmap_field_write(field_vid_hsa_time, 1000); One advantage of using register fields like this is that the code is cleaner because field ranges are explicitly def...
* @reg: Initial register to write to @@ -1750,9 +1753,8 @@ int regmap_raw_write(struct regmap *map, unsigned int reg, EXPORT_SYMBOL_GPL(regmap_raw_write); /** * regmap_field_update_bits_base(): * Perform a read/modify/write cycle on the register field * with change, async, ...
/ include / linux / regmap.h v6 v5 v4 v4.20 v4.19 v4.18 v4.17 v4.16 v4.15 v4.14 v4.13 v4.12 v4.11 v4.10 v4.9 v4.9.337 v4.9.336 v4.9.335 v4.9.334 v4.9.333 v4.9.332 v4.9.331 v4.9.330 v4.9.329 v4.9.328 v4.9.327 v4.9.326 v4.9.325 v4.9...
This field is ignored if custom lock/unlock * functions are used (see fields lock/unlock of * struct regmap_config). * @free_on_exit: kfree this on exit of regmap * @write: Write operation. * @gather_write: Write operation with split register/value, return -ENOTSUPP * if not ...
+ regmap_field_init(rm_field, regmap, reg_field); + + return rm_field; +} +EXPORT_SYMBOL_GPL(regmap_field_alloc); + /** * regmap_reinit_cache(): Reinitialise the current register cache * @@ -1249,6 +1310,23 @@ int regmap_raw_write(struct regmap *map, unsigned int ...
GitHub Copilot Write better code with AI Code review Manage code changes Issues Plan and track work Discussions Collaborate outside of code Explore All features Documentation GitHub Skills Blog Solutions By size Enterprise Teams Startups By industry Healthcare Financial services Manufacturing ...