Changeset 625 for GPL/branches/uniaud32-next/include/linux
- Timestamp:
- Jan 3, 2021, 7:20:20 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next/include/linux
- Files:
-
- 4 added
- 25 edited
-
clocksource.h (modified) (1 diff)
-
completion.h (modified) (1 diff)
-
device.h (modified) (2 diffs)
-
fs.h (modified) (4 diffs)
-
genalloc.h (modified) (1 diff)
-
init.h (modified) (1 diff)
-
major.h (modified) (1 diff)
-
mm.h (modified) (1 diff)
-
module.h (modified) (1 diff)
-
moduleparam.h (modified) (1 diff)
-
mutex.h (modified) (1 diff)
-
overflow.h (added)
-
pci.h (modified) (1 diff)
-
pm_runtime.h (modified) (1 diff)
-
proc_fs.h (modified) (1 diff)
-
rbtree.h (modified) (3 diffs)
-
rbtree_augmented.h (modified) (14 diffs)
-
regmap.h (modified) (23 diffs)
-
slab.h (modified) (1 diff)
-
time.h (modified) (1 diff)
-
time64.h (modified) (1 diff)
-
timecounter.h (modified) (1 diff)
-
unaligned (added)
-
unaligned/be_byteshift.h (added)
-
unaligned/le_byteshift.h (added)
-
vga_switcheroo.h (modified) (1 diff)
-
vgaarb.h (modified) (1 diff)
-
vmalloc.h (modified) (1 diff)
-
wait.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/clocksource.h
r615 r625 1 1 #ifndef _LINUX_CLOCKSOURCE_H 2 2 #define _LINUX_CLOCKSOURCE_H 3 4 #include <linux/types.h> 5 3 6 /* clocksource cycle base type */ 4 7 typedef u64 cycle_t; -
GPL/branches/uniaud32-next/include/linux/completion.h
r615 r625 35 35 36 36 extern void complete(struct completion *); 37 37 extern void complete_all(struct completion *); 38 extern void wait_for_completion(struct completion *x); 39 extern bool try_wait_for_completion(struct completion *x); 38 40 #endif /* _LINUX_COMPLETION_H */ -
GPL/branches/uniaud32-next/include/linux/device.h
r622 r625 6 6 #include <linux/sysfs.h> 7 7 #include <linux/lockdep.h> 8 #include <linux/overflow.h> 8 9 9 10 struct device; … … 291 292 extern void *devres_find(struct device *dev, dr_release_t release, 292 293 dr_match_t match, void *match_data); 294 295 /* debugging and troubleshooting/diagnostic helpers. */ 296 extern const char *dev_driver_string(const struct device *dev); 297 293 298 #endif /* _LINUX_DEVICE_H */ 294 299 -
GPL/branches/uniaud32-next/include/linux/fs.h
r615 r625 165 165 struct dentry *f_dentry; 166 166 const struct file_operations *f_op; 167 struct inode *f_inode; /* cached value */ 167 168 spinlock_t f_lock; 168 169 atomic_t f_count; … … 182 183 183 184 struct inode { 184 #ifdef TARGET_OS2185 kdev_t i_rdev;186 struct semaphore i_sem;187 union {188 void *generic_ip;189 } u;190 191 #else192 185 void * i_hash; 193 186 void * i_list; … … 225 218 void *generic_ip; 226 219 } u; 227 #endif228 220 }; 229 221 … … 335 327 #define FMODE_STREAM (( fmode_t)0x200000) 336 328 329 static inline struct inode *file_inode(const struct file *f) 330 { 331 return f->f_inode; 332 } 333 337 334 #endif /* _LINUX_FS_H */ -
GPL/branches/uniaud32-next/include/linux/genalloc.h
r615 r625 1 1 #ifndef _LINUX_GENALLOC_H 2 2 #define _LINUX_GENALLOC_H 3 #include <linux/module.h> 4 #include <linux/types.h> 5 #include <linux/printk.h> 3 6 4 7 #endif /* _LINUX_GENALLOC_H */ -
GPL/branches/uniaud32-next/include/linux/init.h
r615 r625 1 1 #ifndef _LINUX_INIT_H 2 2 #define _LINUX_INIT_H 3 4 #include <asm/errno.h> 5 3 6 4 7 /* These macros are used to mark some functions or -
GPL/branches/uniaud32-next/include/linux/major.h
r32 r625 1 1 #ifndef _LINUX_MAJOR_H 2 2 #define _LINUX_MAJOR_H 3 4 #include <linux/types.h> 3 5 4 6 /* -
GPL/branches/uniaud32-next/include/linux/mm.h
r615 r625 7 7 #include <asm/page.h> 8 8 #include <asm/atomic.h> 9 #include <linux/overflow.h> 9 10 10 11 /* -
GPL/branches/uniaud32-next/include/linux/module.h
r615 r625 7 7 #ifndef _LINUX_MODULE_H 8 8 #define _LINUX_MODULE_H 9 9 10 #include <linux/moduleparam.h> 11 10 12 /* Poke the use count of a module. */ 11 13 -
GPL/branches/uniaud32-next/include/linux/moduleparam.h
r615 r625 138 138 &__param_arr_##name, perm) 139 139 140 #ifndef TARGET_OS2 141 #define module_param_array(name, type, nump, perm) \ 142 module_param_array_named(name, name, type, nump, perm) 143 #endif 140 #define module_param_array(name, type, nump, perm) 141 #define module_param(name, type, perm) 144 142 extern int param_array_set(const char *val, struct kernel_param *kp); 145 143 extern int param_array_get(char *buffer, struct kernel_param *kp); -
GPL/branches/uniaud32-next/include/linux/mutex.h
r615 r625 3 3 4 4 #include <asm/semaphore.h> 5 #include <linux/list.h> 6 7 struct mutex { 8 atomic_long_t owner; 9 spinlock_t wait_lock; 10 #ifdef CONFIG_MUTEX_SPIN_ON_OWNER 11 struct optimistic_spin_queue osq; /* Spinner MCS lock */ 12 #endif 13 struct list_head wait_list; 14 #ifdef CONFIG_DEBUG_MUTEXES 15 void *magic; 16 #endif 17 #ifdef CONFIG_DEBUG_LOCK_ALLOC 18 struct lockdep_map dep_map; 19 #endif 20 }; 5 21 6 22 #define mutex semaphore -
GPL/branches/uniaud32-next/include/linux/pci.h
r615 r625 338 338 unsigned short subsystem_vendor; 339 339 unsigned short subsystem_device; 340 unsigned int _class; /* 3 bytes: (base,sub,prog-if) */341 340 u8 hdr_type; /* PCI header type (`multi' flag masked out) */ 342 341 u8 rom_base_reg; /* Which config register controls the ROM */ -
GPL/branches/uniaud32-next/include/linux/pm_runtime.h
r615 r625 3 3 4 4 #include <asm/errno.h> 5 #include <linux/pm.h> 6 5 7 /* Runtime PM flag argument bits */ 6 8 #define RPM_ASYNC 0x01 /* Request is asynchronous */ -
GPL/branches/uniaud32-next/include/linux/proc_fs.h
r615 r625 241 241 } 242 242 static inline void *PDE_DATA(const struct inode *inode) {return NULL;} 243 244 extern struct proc_dir_entry *proc_symlink(const char *, 245 struct proc_dir_entry *, const char *); 246 extern struct proc_dir_entry *proc_mkdir(const char *, struct proc_dir_entry *); 243 247 #endif /* _LINUX_PROC_FS_H */ -
GPL/branches/uniaud32-next/include/linux/rbtree.h
r615 r625 26 26 See Documentation/rbtree.txt for documentation and samples. 27 27 */ 28 /* from 4.1 4.202*/28 /* from 4.19.163 */ 29 29 30 30 #ifndef _LINUX_RBTREE_H … … 35 35 //#include <linux/rcupdate.h> 36 36 37 #ifdef TARGET_OS238 #pragma pack(4)39 #endif40 37 struct rb_node { 41 38 unsigned long __rb_parent_color; 42 39 struct rb_node *rb_right; 43 40 struct rb_node *rb_left; 44 #ifndef TARGET_OS2 45 } __attribute__((aligned(sizeof(long)))); 46 #else 47 }; 48 #pragma pack() 49 #endif 41 } /*__attribute__((aligned(sizeof(long))))*/; 50 42 /* The alignment might seem pointless, but allegedly CRIS needs it */ 51 43 … … 109 101 extern void rb_replace_node_rcu(struct rb_node *victim, struct rb_node *new, 110 102 struct rb_root *root); 103 extern void rb_replace_node_cached(struct rb_node *victim, struct rb_node *new, 104 struct rb_root_cached *root); 111 105 112 106 static inline void rb_link_node(struct rb_node *node, struct rb_node *parent, -
GPL/branches/uniaud32-next/include/linux/rbtree_augmented.h
r615 r625 21 21 linux/include/linux/rbtree_augmented.h 22 22 */ 23 /* from 4.14.202 */ 23 /* from 4.19.163 */ 24 24 25 #ifndef _LINUX_RBTREE_AUGMENTED_H 25 26 #define _LINUX_RBTREE_AUGMENTED_H … … 27 28 #include <linux/compiler.h> 28 29 #include <linux/rbtree.h> 30 //#include <linux/rcupdate.h> 29 31 30 32 /* … … 56 58 * affected subtrees. 57 59 */ 58 static inlinevoid60 /*static inline*/ void 59 61 rb_insert_augmented(struct rb_node *node, struct rb_root *root, 60 62 const struct rb_augment_callbacks *augment) … … 63 65 } 64 66 65 static inlinevoid67 /*static inline*/ void 66 68 rb_insert_augmented_cached(struct rb_node *node, 67 69 struct rb_root_cached *root, bool newleft, … … 72 74 } 73 75 74 #define RB_DECLARE_CALLBACKS(rb static, rbname, rbstruct, rbfield, \76 #define RB_DECLARE_CALLBACKS(rb/*static*/, rbname, rbstruct, rbfield, \ 75 77 rbtype, rbaugmented, rbcompute) \ 76 static inlinevoid \78 /*static inline*/ void \ 77 79 rbname ## _propagate(struct rb_node *rb, struct rb_node *stop) \ 78 80 { \ … … 86 88 } \ 87 89 } \ 88 static inlinevoid \90 /*static inline*/ void \ 89 91 rbname ## _copy(struct rb_node *rb_old, struct rb_node *rb_new) \ 90 92 { \ … … 93 95 new->rbaugmented = old->rbaugmented; \ 94 96 } \ 95 staticvoid \97 /*static*/ void \ 96 98 rbname ## _rotate(struct rb_node *rb_old, struct rb_node *rb_new) \ 97 99 { \ … … 101 103 old->rbaugmented = rbcompute(old); \ 102 104 } \ 103 rb staticconst struct rb_augment_callbacks rbname = { \105 rb/*static*/ const struct rb_augment_callbacks rbname = { \ 104 106 .propagate = rbname ## _propagate, \ 105 107 .copy = rbname ## _copy, \ … … 120 122 #define rb_is_black(rb) __rb_is_black((rb)->__rb_parent_color) 121 123 122 static inlinevoid rb_set_parent(struct rb_node *rb, struct rb_node *p)124 /*static inline*/ void rb_set_parent(struct rb_node *rb, struct rb_node *p) 123 125 { 124 126 rb->__rb_parent_color = rb_color(rb) | (unsigned long)p; 125 127 } 126 128 127 static inlinevoid rb_set_parent_color(struct rb_node *rb,129 /*static inline*/ void rb_set_parent_color(struct rb_node *rb, 128 130 struct rb_node *p, int color) 129 131 { … … 131 133 } 132 134 133 static inlinevoid135 /*static inline*/ void 134 136 __rb_change_child(struct rb_node *old, struct rb_node *new, 135 137 struct rb_node *parent, struct rb_root *root) … … 145 147 146 148 #ifndef TARGET_OS2 147 static inlinevoid149 /*static inline*/ void 148 150 __rb_change_child_rcu(struct rb_node *old, struct rb_node *new, 149 151 struct rb_node *parent, struct rb_root *root) … … 162 164 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)); 163 165 164 static inlinestruct rb_node *166 /*static inline*/ struct rb_node * 165 167 __rb_erase_augmented(struct rb_node *node, struct rb_root *root, 166 168 struct rb_node **leftmost, … … 270 272 } 271 273 272 static inlinevoid274 /*static inline*/ void 273 275 rb_erase_augmented(struct rb_node *node, struct rb_root *root, 274 276 const struct rb_augment_callbacks *augment) … … 280 282 } 281 283 282 static inlinevoid284 /*static inline*/ void 283 285 rb_erase_augmented_cached(struct rb_node *node, struct rb_root_cached *root, 284 286 const struct rb_augment_callbacks *augment) -
GPL/branches/uniaud32-next/include/linux/regmap.h
r615 r625 13 13 * published by the Free Software Foundation. 14 14 */ 15 /* from 4.1 4.202*/15 /* from 4.19.163 */ 16 16 17 17 #include <linux/list.h> 18 18 #include <linux/rbtree.h> 19 #include <linux/ktime.h> 19 20 #include <linux/delay.h> 20 21 #include <linux/err.h> … … 22 23 #include <linux/lockdep.h> 23 24 24 #define CONFIG_REGMAP25 26 25 struct module; 26 struct clk; 27 27 struct device; 28 28 struct i2c_client; 29 29 struct irq_domain; 30 struct slim_device; 30 31 struct spi_device; 31 32 struct spmi_device; … … 34 35 struct regmap_field; 35 36 struct snd_ac97; 37 struct sdw_slave; 36 38 37 39 /* An enum of all the supported cache types */ … … 124 126 #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_us) \ 125 127 ({ \ 126 ktime_t timeout = ktime_add_us(ktime_get(), timeout_us); \ 128 u64 __timeout_us = (timeout_us); \ 129 unsigned long __sleep_us = (sleep_us); \ 130 ktime_t __timeout = ktime_add_us(ktime_get(), __timeout_us); \ 131 int __ret; \ 132 might_sleep_if(__sleep_us); \ 133 for (;;) { \ 134 __ret = regmap_read((map), (addr), &(val)); \ 135 if (__ret) \ 136 break; \ 137 if (cond) \ 138 break; \ 139 if ((__timeout_us) && \ 140 ktime_compare(ktime_get(), __timeout) > 0) { \ 141 __ret = regmap_read((map), (addr), &(val)); \ 142 break; \ 143 } \ 144 if (__sleep_us) \ 145 usleep_range((__sleep_us >> 2) + 1, __sleep_us); \ 146 } \ 147 __ret ?: ((cond) ? 0 : -ETIMEDOUT); \ 148 }) 149 150 /** 151 * regmap_field_read_poll_timeout - Poll until a condition is met or timeout 152 * 153 * @field: Regmap field to read from 154 * @val: Unsigned integer variable to read the value into 155 * @cond: Break condition (usually involving @val) 156 * @sleep_us: Maximum time to sleep between reads in us (0 157 * tight-loops). Should be less than ~20ms since usleep_range 158 * is used (see Documentation/timers/timers-howto.txt). 159 * @timeout_us: Timeout in us, 0 means never timeout 160 * 161 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_field_read 162 * error return value in case of a error read. In the two former cases, 163 * the last read value at @addr is stored in @val. Must not be called 164 * from atomic context if sleep_us or timeout_us are used. 165 * 166 * This is modelled after the readx_poll_timeout macros in linux/iopoll.h. 167 */ 168 #define regmap_field_read_poll_timeout(field, val, cond, sleep_us, timeout_us) \ 169 ({ \ 170 u64 __timeout_us = (timeout_us); \ 171 unsigned long __sleep_us = (sleep_us); \ 172 ktime_t timeout = ktime_add_us(ktime_get(), __timeout_us); \ 127 173 int pollret; \ 128 might_sleep_if( sleep_us); \174 might_sleep_if(__sleep_us); \ 129 175 for (;;) { \ 130 pollret = regmap_ read((map), (addr), &(val)); \176 pollret = regmap_field_read((field), &(val)); \ 131 177 if (pollret) \ 132 178 break; \ 133 179 if (cond) \ 134 180 break; \ 135 if ( timeout_us && ktime_compare(ktime_get(), timeout) > 0) { \136 pollret = regmap_ read((map), (addr), &(val)); \181 if (__timeout_us && ktime_compare(ktime_get(), timeout) > 0) { \ 182 pollret = regmap_field_read((field), &(val)); \ 137 183 break; \ 138 184 } \ 139 if ( sleep_us) \140 usleep_range(( sleep_us >> 2) + 1,sleep_us); \185 if (__sleep_us) \ 186 usleep_range((__sleep_us >> 2) + 1, __sleep_us); \ 141 187 } \ 142 188 pollret ?: ((cond) ? 0 : -ETIMEDOUT); \ 143 189 }) 144 190 191 #define CONFIG_REGMAP 145 192 #ifdef CONFIG_REGMAP 146 193 … … 224 271 * check is performed on such table (a register is precious if 225 272 * it belongs to one of the ranges specified by precious_table). 273 * @readable_noinc_reg: Optional callback returning true if the register 274 * supports multiple read operations without incrementing 275 * the register number. If this field is NULL but 276 * rd_noinc_table (see below) is not, the check is 277 * performed on such table (a register is no increment 278 * readable if it belongs to one of the ranges specified 279 * by rd_noinc_table). 280 * @disable_locking: This regmap is either protected by external means or 281 * is guaranteed not be be accessed from multiple threads. 282 * Don't use any locking mechanisms. 226 283 * @lock: Optional lock callback (overrides regmap's default lock 227 284 * function, based on spinlock or mutex). … … 248 305 * @volatile_table: As above, for volatile registers. 249 306 * @precious_table: As above, for precious registers. 307 * @rd_noinc_table: As above, for no increment readable registers. 250 308 * @reg_defaults: Power on reset values for registers (for use with 251 309 * register cache support). … … 256 314 * @write_flag_mask: Mask to be set in the top bytes of the register when doing 257 315 * a write. If both read_flag_mask and write_flag_mask are 258 * empty the regmap_bus default masks are used. 316 * empty and zero_flag_mask is not set the regmap_bus default 317 * masks are used. 318 * @zero_flag_mask: If set, read_flag_mask and write_flag_mask are used even 319 * if they are both empty. 259 320 * @use_single_rw: If set, converts the bulk read and write operations into 260 321 * a series of single read and write operations. This is useful … … 277 338 * @ranges: Array of configuration entries for virtual address ranges. 278 339 * @num_ranges: Number of range configuration entries. 340 * @use_hwlock: Indicate if a hardware spinlock should be used. 341 * @hwlock_id: Specify the hardware spinlock id. 342 * @hwlock_mode: The hardware spinlock mode, should be HWLOCK_IRQSTATE, 343 * HWLOCK_IRQ or 0. 279 344 */ 280 345 struct regmap_config { … … 290 355 bool (*volatile_reg)(struct device *dev, unsigned int reg); 291 356 bool (*precious_reg)(struct device *dev, unsigned int reg); 357 bool (*readable_noinc_reg)(struct device *dev, unsigned int reg); 358 359 bool disable_locking; 292 360 regmap_lock lock; 293 361 regmap_unlock unlock; … … 304 372 const struct regmap_access_table *volatile_table; 305 373 const struct regmap_access_table *precious_table; 374 const struct regmap_access_table *rd_noinc_table; 306 375 const struct reg_default *reg_defaults; 307 376 unsigned int num_reg_defaults; … … 312 381 unsigned long read_flag_mask; 313 382 unsigned long write_flag_mask; 383 bool zero_flag_mask; 314 384 315 385 bool use_single_read; … … 322 392 const struct regmap_range_cfg *ranges; 323 393 unsigned int num_ranges; 394 395 bool use_hwlock; 396 unsigned int hwlock_id; 397 unsigned int hwlock_mode; 324 398 }; 325 399 … … 454 528 struct lock_class_key *lock_key, 455 529 const char *lock_name); 530 struct regmap *__regmap_init_sccb(struct i2c_client *i2c, 531 const struct regmap_config *config, 532 struct lock_class_key *lock_key, 533 const char *lock_name); 534 struct regmap *__regmap_init_slimbus(struct slim_device *slimbus, 535 const struct regmap_config *config, 536 struct lock_class_key *lock_key, 537 const char *lock_name); 456 538 struct regmap *__regmap_init_spi(struct spi_device *dev, 457 539 const struct regmap_config *config, … … 479 561 struct lock_class_key *lock_key, 480 562 const char *lock_name); 563 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw, 564 const struct regmap_config *config, 565 struct lock_class_key *lock_key, 566 const char *lock_name); 481 567 482 568 struct regmap *__devm_regmap_init(struct device *dev, … … 490 576 struct lock_class_key *lock_key, 491 577 const char *lock_name); 578 struct regmap *__devm_regmap_init_sccb(struct i2c_client *i2c, 579 const struct regmap_config *config, 580 struct lock_class_key *lock_key, 581 const char *lock_name); 492 582 struct regmap *__devm_regmap_init_spi(struct spi_device *dev, 493 583 const struct regmap_config *config, … … 516 606 struct lock_class_key *lock_key, 517 607 const char *lock_name); 518 608 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw, 609 const struct regmap_config *config, 610 struct lock_class_key *lock_key, 611 const char *lock_name); 612 struct regmap *__devm_regmap_init_slimbus(struct slim_device *slimbus, 613 const struct regmap_config *config, 614 struct lock_class_key *lock_key, 615 const char *lock_name); 519 616 /* 520 617 * Wrapper for regmap_init macros to include a unique lockdep key and name … … 571 668 572 669 /** 670 * regmap_init_sccb() - Initialise register map 671 * 672 * @i2c: Device that will be interacted with 673 * @config: Configuration for register map 674 * 675 * The return value will be an ERR_PTR() on error or a valid pointer to 676 * a struct regmap. 677 */ 678 #define regmap_init_sccb(i2c, config) \ 679 __regmap_lockdep_wrapper(__regmap_init_sccb, #config, \ 680 i2c, config) 681 682 /** 683 * regmap_init_slimbus() - Initialise register map 684 * 685 * @slimbus: Device that will be interacted with 686 * @config: Configuration for register map 687 * 688 * The return value will be an ERR_PTR() on error or a valid pointer to 689 * a struct regmap. 690 */ 691 #define regmap_init_slimbus(slimbus, config) \ 692 __regmap_lockdep_wrapper(__regmap_init_slimbus, #config, \ 693 slimbus, config) 694 695 /** 573 696 * regmap_init_spi() - Initialise register map 574 697 * … … 665 788 666 789 /** 790 * regmap_init_sdw() - Initialise register map 791 * 792 * @sdw: Device that will be interacted with 793 * @config: Configuration for register map 794 * 795 * The return value will be an ERR_PTR() on error or a valid pointer to 796 * a struct regmap. 797 */ 798 #define regmap_init_sdw(sdw, config) \ 799 __regmap_lockdep_wrapper(__regmap_init_sdw, #config, \ 800 sdw, config) 801 802 803 /** 667 804 * devm_regmap_init() - Initialise managed register map 668 805 * … … 696 833 697 834 /** 835 * devm_regmap_init_sccb() - Initialise managed register map 836 * 837 * @i2c: Device that will be interacted with 838 * @config: Configuration for register map 839 * 840 * The return value will be an ERR_PTR() on error or a valid pointer 841 * to a struct regmap. The regmap will be automatically freed by the 842 * device management code. 843 */ 844 #define devm_regmap_init_sccb(i2c, config) \ 845 __regmap_lockdep_wrapper(__devm_regmap_init_sccb, #config, \ 846 i2c, config) 847 848 /** 698 849 * devm_regmap_init_spi() - Initialise register map 699 850 * … … 794 945 ac97, config) 795 946 947 /** 948 * devm_regmap_init_sdw() - Initialise managed register map 949 * 950 * @sdw: Device that will be interacted with 951 * @config: Configuration for register map 952 * 953 * The return value will be an ERR_PTR() on error or a valid pointer 954 * to a struct regmap. The regmap will be automatically freed by the 955 * device management code. 956 */ 957 #define devm_regmap_init_sdw(sdw, config) \ 958 __regmap_lockdep_wrapper(__devm_regmap_init_sdw, #config, \ 959 sdw, config) 960 961 /** 962 * devm_regmap_init_slimbus() - Initialise managed register map 963 * 964 * @slimbus: Device that will be interacted with 965 * @config: Configuration for register map 966 * 967 * The return value will be an ERR_PTR() on error or a valid pointer 968 * to a struct regmap. The regmap will be automatically freed by the 969 * device management code. 970 */ 971 #define devm_regmap_init_slimbus(slimbus, config) \ 972 __regmap_lockdep_wrapper(__devm_regmap_init_slimbus, #config, \ 973 slimbus, config) 974 int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk); 975 void regmap_mmio_detach_clk(struct regmap *map); 796 976 void regmap_exit(struct regmap *map); 797 977 int regmap_reinit_cache(struct regmap *map, … … 815 995 int regmap_raw_read(struct regmap *map, unsigned int reg, 816 996 void *val, size_t val_len); 997 int regmap_noinc_read(struct regmap *map, unsigned int reg, 998 void *val, size_t val_len); 817 999 int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val, 818 1000 size_t val_count); … … 1019 1201 unsigned int val) 1020 1202 { 1021 WARN_ONCE(1, "regmap API is disabled");1203 // WARN_ONCE(1, "regmap API is disabled"); 1022 1204 return -EINVAL; 1023 1205 } … … 1060 1242 static inline int regmap_raw_read(struct regmap *map, unsigned int reg, 1061 1243 void *val, size_t val_len) 1244 { 1245 WARN_ONCE(1, "regmap API is disabled"); 1246 return -EINVAL; 1247 } 1248 1249 static inline int regmap_noinc_read(struct regmap *map, unsigned int reg, 1250 void *val, size_t val_len) 1062 1251 { 1063 1252 WARN_ONCE(1, "regmap API is disabled"); -
GPL/branches/uniaud32-next/include/linux/slab.h
r623 r625 7 7 #include <linux/types.h> 8 8 #include <linux/list.h> 9 #include <linux/overflow.h> 9 10 10 11 #if !defined(_LINUX_SLAB_H) -
GPL/branches/uniaud32-next/include/linux/time.h
r615 r625 6 6 #include <linux/ktime.h> 7 7 #include <linux/time64.h> 8 #include <linux/math64.h> 8 9 9 10 #define NSEC_PER_SEC 1000000000L -
GPL/branches/uniaud32-next/include/linux/time64.h
r615 r625 1 1 #ifndef _LINUX_TIME64_H 2 2 #define _LINUX_TIME64_H 3 4 #include <linux/math64.h> 3 5 4 6 typedef __s64 time64_t; -
GPL/branches/uniaud32-next/include/linux/timecounter.h
r615 r625 1 1 #ifndef _LINUX_TIMECOUNTER_H 2 2 #define _LINUX_TIMECOUNTER_H 3 3 #include <linux/clocksource.h> 4 4 #endif /* _LINUX_TIMECOUNTER_H */ -
GPL/branches/uniaud32-next/include/linux/vga_switcheroo.h
r615 r625 1 #ifndef _LINUX_ EXPORT_H2 #define _LINUX_ EXPORT_H1 #ifndef _LINUX_VGA_SWITCHEROO_H 2 #define _LINUX_VGA_SWITCHEROO_H 3 3 4 #endif /* _LINUX_ EXPORT_H */4 #endif /* _LINUX_VGA_SWITCHEROO_H */ -
GPL/branches/uniaud32-next/include/linux/vgaarb.h
r615 r625 1 #ifndef _LINUX_ EXPORT_H2 #define _LINUX_ EXPORT_H1 #ifndef _LINUX_VGAARB_H 2 #define _LINUX_VGAARB_H 3 3 4 #endif /* _LINUX_ EXPORT_H */4 #endif /* _LINUX_VGAARB_H */ -
GPL/branches/uniaud32-next/include/linux/vmalloc.h
r615 r625 4 4 //#include <linux/sched.h> 5 5 //#include <linux/mm.h> 6 #include <linux/overflow.h> 6 7 7 8 #include <asm/page.h> -
GPL/branches/uniaud32-next/include/linux/wait.h
r615 r625 130 130 void __wake_up_locked(wait_queue_head_t *q, unsigned int mode, int nr); 131 131 #endif /* __KERNEL__ */ 132 132 #define wait_event_lock_irq(wq_head, condition, lock) 133 #define wake_up_all(x) 133 134 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
