diff options
Diffstat (limited to 'include')
90 files changed, 1326 insertions, 279 deletions
diff --git a/include/acpi/acconfig.h b/include/acpi/acconfig.h index d98c67001840..3ea214cff349 100644 --- a/include/acpi/acconfig.h +++ b/include/acpi/acconfig.h | |||
| @@ -83,7 +83,9 @@ | |||
| 83 | * Should the subsystem abort the loading of an ACPI table if the | 83 | * Should the subsystem abort the loading of an ACPI table if the |
| 84 | * table checksum is incorrect? | 84 | * table checksum is incorrect? |
| 85 | */ | 85 | */ |
| 86 | #ifndef ACPI_CHECKSUM_ABORT | ||
| 86 | #define ACPI_CHECKSUM_ABORT FALSE | 87 | #define ACPI_CHECKSUM_ABORT FALSE |
| 88 | #endif | ||
| 87 | 89 | ||
| 88 | /* | 90 | /* |
| 89 | * Generate a version of ACPICA that only supports "reduced hardware" | 91 | * Generate a version of ACPICA that only supports "reduced hardware" |
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 7b2de026a4f3..c602c7718421 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
| @@ -100,6 +100,7 @@ enum acpi_hotplug_mode { | |||
| 100 | struct acpi_hotplug_profile { | 100 | struct acpi_hotplug_profile { |
| 101 | struct kobject kobj; | 101 | struct kobject kobj; |
| 102 | bool enabled:1; | 102 | bool enabled:1; |
| 103 | bool ignore:1; | ||
| 103 | enum acpi_hotplug_mode mode; | 104 | enum acpi_hotplug_mode mode; |
| 104 | }; | 105 | }; |
| 105 | 106 | ||
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index d8f9457755b4..4278aba96503 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | 46 | ||
| 47 | /* Current ACPICA subsystem version in YYYYMMDD format */ | 47 | /* Current ACPICA subsystem version in YYYYMMDD format */ |
| 48 | 48 | ||
| 49 | #define ACPI_CA_VERSION 0x20130927 | 49 | #define ACPI_CA_VERSION 0x20131115 |
| 50 | 50 | ||
| 51 | #include <acpi/acconfig.h> | 51 | #include <acpi/acconfig.h> |
| 52 | #include <acpi/actypes.h> | 52 | #include <acpi/actypes.h> |
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index f330d28e4d0e..db0923458940 100644 --- a/include/asm-generic/pgtable.h +++ b/include/asm-generic/pgtable.h | |||
| @@ -217,7 +217,7 @@ static inline int pmd_same(pmd_t pmd_a, pmd_t pmd_b) | |||
| 217 | #endif | 217 | #endif |
| 218 | 218 | ||
| 219 | #ifndef pte_accessible | 219 | #ifndef pte_accessible |
| 220 | # define pte_accessible(pte) ((void)(pte),1) | 220 | # define pte_accessible(mm, pte) ((void)(pte), 1) |
| 221 | #endif | 221 | #endif |
| 222 | 222 | ||
| 223 | #ifndef flush_tlb_fix_spurious_fault | 223 | #ifndef flush_tlb_fix_spurious_fault |
| @@ -599,11 +599,10 @@ static inline int pmd_none_or_trans_huge_or_clear_bad(pmd_t *pmd) | |||
| 599 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE | 599 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE |
| 600 | barrier(); | 600 | barrier(); |
| 601 | #endif | 601 | #endif |
| 602 | if (pmd_none(pmdval)) | 602 | if (pmd_none(pmdval) || pmd_trans_huge(pmdval)) |
| 603 | return 1; | 603 | return 1; |
| 604 | if (unlikely(pmd_bad(pmdval))) { | 604 | if (unlikely(pmd_bad(pmdval))) { |
| 605 | if (!pmd_trans_huge(pmdval)) | 605 | pmd_clear_bad(pmd); |
| 606 | pmd_clear_bad(pmd); | ||
| 607 | return 1; | 606 | return 1; |
| 608 | } | 607 | } |
| 609 | return 0; | 608 | return 0; |
diff --git a/include/asm-generic/preempt.h b/include/asm-generic/preempt.h index ddf2b420ac8f..1cd3f5d767a8 100644 --- a/include/asm-generic/preempt.h +++ b/include/asm-generic/preempt.h | |||
| @@ -3,13 +3,11 @@ | |||
| 3 | 3 | ||
| 4 | #include <linux/thread_info.h> | 4 | #include <linux/thread_info.h> |
| 5 | 5 | ||
| 6 | /* | 6 | #define PREEMPT_ENABLED (0) |
| 7 | * We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users | 7 | |
| 8 | * that think a non-zero value indicates we cannot preempt. | ||
| 9 | */ | ||
| 10 | static __always_inline int preempt_count(void) | 8 | static __always_inline int preempt_count(void) |
| 11 | { | 9 | { |
| 12 | return current_thread_info()->preempt_count & ~PREEMPT_NEED_RESCHED; | 10 | return current_thread_info()->preempt_count; |
| 13 | } | 11 | } |
| 14 | 12 | ||
| 15 | static __always_inline int *preempt_count_ptr(void) | 13 | static __always_inline int *preempt_count_ptr(void) |
| @@ -17,11 +15,6 @@ static __always_inline int *preempt_count_ptr(void) | |||
| 17 | return ¤t_thread_info()->preempt_count; | 15 | return ¤t_thread_info()->preempt_count; |
| 18 | } | 16 | } |
| 19 | 17 | ||
| 20 | /* | ||
| 21 | * We now loose PREEMPT_NEED_RESCHED and cause an extra reschedule; however the | ||
| 22 | * alternative is loosing a reschedule. Better schedule too often -- also this | ||
| 23 | * should be a very rare operation. | ||
| 24 | */ | ||
| 25 | static __always_inline void preempt_count_set(int pc) | 18 | static __always_inline void preempt_count_set(int pc) |
| 26 | { | 19 | { |
| 27 | *preempt_count_ptr() = pc; | 20 | *preempt_count_ptr() = pc; |
| @@ -41,28 +34,17 @@ static __always_inline void preempt_count_set(int pc) | |||
| 41 | task_thread_info(p)->preempt_count = PREEMPT_ENABLED; \ | 34 | task_thread_info(p)->preempt_count = PREEMPT_ENABLED; \ |
| 42 | } while (0) | 35 | } while (0) |
| 43 | 36 | ||
| 44 | /* | ||
| 45 | * We fold the NEED_RESCHED bit into the preempt count such that | ||
| 46 | * preempt_enable() can decrement and test for needing to reschedule with a | ||
| 47 | * single instruction. | ||
| 48 | * | ||
| 49 | * We invert the actual bit, so that when the decrement hits 0 we know we both | ||
| 50 | * need to resched (the bit is cleared) and can resched (no preempt count). | ||
| 51 | */ | ||
| 52 | |||
| 53 | static __always_inline void set_preempt_need_resched(void) | 37 | static __always_inline void set_preempt_need_resched(void) |
| 54 | { | 38 | { |
| 55 | *preempt_count_ptr() &= ~PREEMPT_NEED_RESCHED; | ||
| 56 | } | 39 | } |
| 57 | 40 | ||
| 58 | static __always_inline void clear_preempt_need_resched(void) | 41 | static __always_inline void clear_preempt_need_resched(void) |
| 59 | { | 42 | { |
| 60 | *preempt_count_ptr() |= PREEMPT_NEED_RESCHED; | ||
| 61 | } | 43 | } |
| 62 | 44 | ||
| 63 | static __always_inline bool test_preempt_need_resched(void) | 45 | static __always_inline bool test_preempt_need_resched(void) |
| 64 | { | 46 | { |
| 65 | return !(*preempt_count_ptr() & PREEMPT_NEED_RESCHED); | 47 | return false; |
| 66 | } | 48 | } |
| 67 | 49 | ||
| 68 | /* | 50 | /* |
| @@ -81,7 +63,12 @@ static __always_inline void __preempt_count_sub(int val) | |||
| 81 | 63 | ||
| 82 | static __always_inline bool __preempt_count_dec_and_test(void) | 64 | static __always_inline bool __preempt_count_dec_and_test(void) |
| 83 | { | 65 | { |
| 84 | return !--*preempt_count_ptr(); | 66 | /* |
| 67 | * Because of load-store architectures cannot do per-cpu atomic | ||
| 68 | * operations; we cannot use PREEMPT_NEED_RESCHED because it might get | ||
| 69 | * lost. | ||
| 70 | */ | ||
| 71 | return !--*preempt_count_ptr() && tif_need_resched(); | ||
| 85 | } | 72 | } |
| 86 | 73 | ||
| 87 | /* | 74 | /* |
| @@ -89,7 +76,7 @@ static __always_inline bool __preempt_count_dec_and_test(void) | |||
| 89 | */ | 76 | */ |
| 90 | static __always_inline bool should_resched(void) | 77 | static __always_inline bool should_resched(void) |
| 91 | { | 78 | { |
| 92 | return unlikely(!*preempt_count_ptr()); | 79 | return unlikely(!preempt_count() && tif_need_resched()); |
| 93 | } | 80 | } |
| 94 | 81 | ||
| 95 | #ifdef CONFIG_PREEMPT | 82 | #ifdef CONFIG_PREEMPT |
diff --git a/include/asm-generic/simd.h b/include/asm-generic/simd.h new file mode 100644 index 000000000000..f57eb7b5c23b --- /dev/null +++ b/include/asm-generic/simd.h | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | |||
| 2 | #include <linux/hardirq.h> | ||
| 3 | |||
| 4 | /* | ||
| 5 | * may_use_simd - whether it is allowable at this time to issue SIMD | ||
| 6 | * instructions or access the SIMD register file | ||
| 7 | * | ||
| 8 | * As architectures typically don't preserve the SIMD register file when | ||
| 9 | * taking an interrupt, !in_interrupt() should be a reasonable default. | ||
| 10 | */ | ||
| 11 | static __must_check inline bool may_use_simd(void) | ||
| 12 | { | ||
| 13 | return !in_interrupt(); | ||
| 14 | } | ||
diff --git a/include/asm-generic/word-at-a-time.h b/include/asm-generic/word-at-a-time.h index 3f21f1b72e45..d3909effd725 100644 --- a/include/asm-generic/word-at-a-time.h +++ b/include/asm-generic/word-at-a-time.h | |||
| @@ -49,4 +49,12 @@ static inline bool has_zero(unsigned long val, unsigned long *data, const struct | |||
| 49 | return (val + c->high_bits) & ~rhs; | 49 | return (val + c->high_bits) & ~rhs; |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | #ifndef zero_bytemask | ||
| 53 | #ifdef CONFIG_64BIT | ||
| 54 | #define zero_bytemask(mask) (~0ul << fls64(mask)) | ||
| 55 | #else | ||
| 56 | #define zero_bytemask(mask) (~0ul << fls(mask)) | ||
| 57 | #endif /* CONFIG_64BIT */ | ||
| 58 | #endif /* zero_bytemask */ | ||
| 59 | |||
| 52 | #endif /* _ASM_WORD_AT_A_TIME_H */ | 60 | #endif /* _ASM_WORD_AT_A_TIME_H */ |
diff --git a/include/crypto/ablk_helper.h b/include/crypto/ablk_helper.h new file mode 100644 index 000000000000..4f93df50c23e --- /dev/null +++ b/include/crypto/ablk_helper.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* | ||
| 2 | * Shared async block cipher helpers | ||
| 3 | */ | ||
| 4 | |||
| 5 | #ifndef _CRYPTO_ABLK_HELPER_H | ||
| 6 | #define _CRYPTO_ABLK_HELPER_H | ||
| 7 | |||
| 8 | #include <linux/crypto.h> | ||
| 9 | #include <linux/kernel.h> | ||
| 10 | #include <crypto/cryptd.h> | ||
| 11 | |||
| 12 | struct async_helper_ctx { | ||
| 13 | struct cryptd_ablkcipher *cryptd_tfm; | ||
| 14 | }; | ||
| 15 | |||
| 16 | extern int ablk_set_key(struct crypto_ablkcipher *tfm, const u8 *key, | ||
| 17 | unsigned int key_len); | ||
| 18 | |||
| 19 | extern int __ablk_encrypt(struct ablkcipher_request *req); | ||
| 20 | |||
| 21 | extern int ablk_encrypt(struct ablkcipher_request *req); | ||
| 22 | |||
| 23 | extern int ablk_decrypt(struct ablkcipher_request *req); | ||
| 24 | |||
| 25 | extern void ablk_exit(struct crypto_tfm *tfm); | ||
| 26 | |||
| 27 | extern int ablk_init_common(struct crypto_tfm *tfm, const char *drv_name); | ||
| 28 | |||
| 29 | extern int ablk_init(struct crypto_tfm *tfm); | ||
| 30 | |||
| 31 | #endif /* _CRYPTO_ABLK_HELPER_H */ | ||
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h index 418d270e1806..e73c19e90e38 100644 --- a/include/crypto/algapi.h +++ b/include/crypto/algapi.h | |||
| @@ -386,5 +386,21 @@ static inline int crypto_requires_sync(u32 type, u32 mask) | |||
| 386 | return (type ^ CRYPTO_ALG_ASYNC) & mask & CRYPTO_ALG_ASYNC; | 386 | return (type ^ CRYPTO_ALG_ASYNC) & mask & CRYPTO_ALG_ASYNC; |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | #endif /* _CRYPTO_ALGAPI_H */ | 389 | noinline unsigned long __crypto_memneq(const void *a, const void *b, size_t size); |
| 390 | |||
| 391 | /** | ||
| 392 | * crypto_memneq - Compare two areas of memory without leaking | ||
| 393 | * timing information. | ||
| 394 | * | ||
| 395 | * @a: One area of memory | ||
| 396 | * @b: Another area of memory | ||
| 397 | * @size: The size of the area. | ||
| 398 | * | ||
| 399 | * Returns 0 when data is equal, 1 otherwise. | ||
| 400 | */ | ||
| 401 | static inline int crypto_memneq(const void *a, const void *b, size_t size) | ||
| 402 | { | ||
| 403 | return __crypto_memneq(a, b, size) != 0UL ? 1 : 0; | ||
| 404 | } | ||
| 390 | 405 | ||
| 406 | #endif /* _CRYPTO_ALGAPI_H */ | ||
diff --git a/include/crypto/authenc.h b/include/crypto/authenc.h index e47b044929a8..6775059539b5 100644 --- a/include/crypto/authenc.h +++ b/include/crypto/authenc.h | |||
| @@ -23,5 +23,15 @@ struct crypto_authenc_key_param { | |||
| 23 | __be32 enckeylen; | 23 | __be32 enckeylen; |
| 24 | }; | 24 | }; |
| 25 | 25 | ||
| 26 | #endif /* _CRYPTO_AUTHENC_H */ | 26 | struct crypto_authenc_keys { |
| 27 | const u8 *authkey; | ||
| 28 | const u8 *enckey; | ||
| 29 | |||
| 30 | unsigned int authkeylen; | ||
| 31 | unsigned int enckeylen; | ||
| 32 | }; | ||
| 27 | 33 | ||
| 34 | int crypto_authenc_extractkeys(struct crypto_authenc_keys *keys, const u8 *key, | ||
| 35 | unsigned int keylen); | ||
| 36 | |||
| 37 | #endif /* _CRYPTO_AUTHENC_H */ | ||
diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h index 13621cc8cf4c..6a626a507b8c 100644 --- a/include/crypto/scatterwalk.h +++ b/include/crypto/scatterwalk.h | |||
| @@ -36,6 +36,7 @@ static inline void scatterwalk_sg_chain(struct scatterlist *sg1, int num, | |||
| 36 | { | 36 | { |
| 37 | sg_set_page(&sg1[num - 1], (void *)sg2, 0, 0); | 37 | sg_set_page(&sg1[num - 1], (void *)sg2, 0, 0); |
| 38 | sg1[num - 1].page_link &= ~0x02; | 38 | sg1[num - 1].page_link &= ~0x02; |
| 39 | sg1[num - 1].page_link |= 0x01; | ||
| 39 | } | 40 | } |
| 40 | 41 | ||
| 41 | static inline struct scatterlist *scatterwalk_sg_next(struct scatterlist *sg) | 42 | static inline struct scatterlist *scatterwalk_sg_next(struct scatterlist *sg) |
| @@ -43,7 +44,7 @@ static inline struct scatterlist *scatterwalk_sg_next(struct scatterlist *sg) | |||
| 43 | if (sg_is_last(sg)) | 44 | if (sg_is_last(sg)) |
| 44 | return NULL; | 45 | return NULL; |
| 45 | 46 | ||
| 46 | return (++sg)->length ? sg : (void *)sg_page(sg); | 47 | return (++sg)->length ? sg : sg_chain_ptr(sg); |
| 47 | } | 48 | } |
| 48 | 49 | ||
| 49 | static inline void scatterwalk_crypto_chain(struct scatterlist *head, | 50 | static inline void scatterwalk_crypto_chain(struct scatterlist *head, |
diff --git a/include/linux/assoc_array.h b/include/linux/assoc_array.h index 9a193b84238a..a89df3be1686 100644 --- a/include/linux/assoc_array.h +++ b/include/linux/assoc_array.h | |||
| @@ -41,10 +41,10 @@ struct assoc_array_ops { | |||
| 41 | /* Is this the object we're looking for? */ | 41 | /* Is this the object we're looking for? */ |
| 42 | bool (*compare_object)(const void *object, const void *index_key); | 42 | bool (*compare_object)(const void *object, const void *index_key); |
| 43 | 43 | ||
| 44 | /* How different are two objects, to a bit position in their keys? (or | 44 | /* How different is an object from an index key, to a bit position in |
| 45 | * -1 if they're the same) | 45 | * their keys? (or -1 if they're the same) |
| 46 | */ | 46 | */ |
| 47 | int (*diff_objects)(const void *a, const void *b); | 47 | int (*diff_objects)(const void *object, const void *index_key); |
| 48 | 48 | ||
| 49 | /* Method to free an object. */ | 49 | /* Method to free an object. */ |
| 50 | void (*free_object)(void *object); | 50 | void (*free_object)(void *object); |
diff --git a/include/linux/auxvec.h b/include/linux/auxvec.h index 669fef5c745a..3e0fbe441763 100644 --- a/include/linux/auxvec.h +++ b/include/linux/auxvec.h | |||
| @@ -3,6 +3,6 @@ | |||
| 3 | 3 | ||
| 4 | #include <uapi/linux/auxvec.h> | 4 | #include <uapi/linux/auxvec.h> |
| 5 | 5 | ||
| 6 | #define AT_VECTOR_SIZE_BASE 19 /* NEW_AUX_ENT entries in auxiliary table */ | 6 | #define AT_VECTOR_SIZE_BASE 20 /* NEW_AUX_ENT entries in auxiliary table */ |
| 7 | /* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF} */ | 7 | /* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF} */ |
| 8 | #endif /* _LINUX_AUXVEC_H */ | 8 | #endif /* _LINUX_AUXVEC_H */ |
diff --git a/include/linux/compiler-intel.h b/include/linux/compiler-intel.h index 973ce10c40b6..dc1bd3dcf11f 100644 --- a/include/linux/compiler-intel.h +++ b/include/linux/compiler-intel.h | |||
| @@ -28,8 +28,6 @@ | |||
| 28 | 28 | ||
| 29 | #endif | 29 | #endif |
| 30 | 30 | ||
| 31 | #define uninitialized_var(x) x | ||
| 32 | |||
| 33 | #ifndef __HAVE_BUILTIN_BSWAP16__ | 31 | #ifndef __HAVE_BUILTIN_BSWAP16__ |
| 34 | /* icc has this, but it's called _bswap16 */ | 32 | /* icc has this, but it's called _bswap16 */ |
| 35 | #define __HAVE_BUILTIN_BSWAP16__ | 33 | #define __HAVE_BUILTIN_BSWAP16__ |
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 57e87e749a48..bf72e9ac6de0 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h | |||
| @@ -29,8 +29,10 @@ struct vfsmount; | |||
| 29 | /* The hash is always the low bits of hash_len */ | 29 | /* The hash is always the low bits of hash_len */ |
| 30 | #ifdef __LITTLE_ENDIAN | 30 | #ifdef __LITTLE_ENDIAN |
| 31 | #define HASH_LEN_DECLARE u32 hash; u32 len; | 31 | #define HASH_LEN_DECLARE u32 hash; u32 len; |
| 32 | #define bytemask_from_count(cnt) (~(~0ul << (cnt)*8)) | ||
| 32 | #else | 33 | #else |
| 33 | #define HASH_LEN_DECLARE u32 len; u32 hash; | 34 | #define HASH_LEN_DECLARE u32 len; u32 hash; |
| 35 | #define bytemask_from_count(cnt) (~(~0ul >> (cnt)*8)) | ||
| 34 | #endif | 36 | #endif |
| 35 | 37 | ||
| 36 | /* | 38 | /* |
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 41cf0c399288..ba5f96db0754 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | #define LINUX_DMAENGINE_H | 22 | #define LINUX_DMAENGINE_H |
| 23 | 23 | ||
| 24 | #include <linux/device.h> | 24 | #include <linux/device.h> |
| 25 | #include <linux/err.h> | ||
| 25 | #include <linux/uio.h> | 26 | #include <linux/uio.h> |
| 26 | #include <linux/bug.h> | 27 | #include <linux/bug.h> |
| 27 | #include <linux/scatterlist.h> | 28 | #include <linux/scatterlist.h> |
| @@ -363,6 +364,32 @@ struct dma_slave_config { | |||
| 363 | unsigned int slave_id; | 364 | unsigned int slave_id; |
| 364 | }; | 365 | }; |
| 365 | 366 | ||
| 367 | /** | ||
| 368 | * enum dma_residue_granularity - Granularity of the reported transfer residue | ||
| 369 | * @DMA_RESIDUE_GRANULARITY_DESCRIPTOR: Residue reporting is not support. The | ||
| 370 | * DMA channel is only able to tell whether a descriptor has been completed or | ||
| 371 | * not, which means residue reporting is not supported by this channel. The | ||
| 372 | * residue field of the dma_tx_state field will always be 0. | ||
| 373 | * @DMA_RESIDUE_GRANULARITY_SEGMENT: Residue is updated after each successfully | ||
| 374 | * completed segment of the transfer (For cyclic transfers this is after each | ||
| 375 | * period). This is typically implemented by having the hardware generate an | ||
| 376 | * interrupt after each transferred segment and then the drivers updates the | ||
| 377 | * outstanding residue by the size of the segment. Another possibility is if | ||
| 378 | * the hardware supports scatter-gather and the segment descriptor has a field | ||
| 379 | * which gets set after the segment has been completed. The driver then counts | ||
| 380 | * the number of segments without the flag set to compute the residue. | ||
| 381 | * @DMA_RESIDUE_GRANULARITY_BURST: Residue is updated after each transferred | ||
| 382 | * burst. This is typically only supported if the hardware has a progress | ||
| 383 | * register of some sort (E.g. a register with the current read/write address | ||
| 384 | * or a register with the amount of bursts/beats/bytes that have been | ||
| 385 | * transferred or still need to be transferred). | ||
| 386 | */ | ||
| 387 | enum dma_residue_granularity { | ||
| 388 | DMA_RESIDUE_GRANULARITY_DESCRIPTOR = 0, | ||
| 389 | DMA_RESIDUE_GRANULARITY_SEGMENT = 1, | ||
| 390 | DMA_RESIDUE_GRANULARITY_BURST = 2, | ||
| 391 | }; | ||
| 392 | |||
| 366 | /* struct dma_slave_caps - expose capabilities of a slave channel only | 393 | /* struct dma_slave_caps - expose capabilities of a slave channel only |
| 367 | * | 394 | * |
| 368 | * @src_addr_widths: bit mask of src addr widths the channel supports | 395 | * @src_addr_widths: bit mask of src addr widths the channel supports |
| @@ -373,6 +400,7 @@ struct dma_slave_config { | |||
| 373 | * should be checked by controller as well | 400 | * should be checked by controller as well |
| 374 | * @cmd_pause: true, if pause and thereby resume is supported | 401 | * @cmd_pause: true, if pause and thereby resume is supported |
| 375 | * @cmd_terminate: true, if terminate cmd is supported | 402 | * @cmd_terminate: true, if terminate cmd is supported |
| 403 | * @residue_granularity: granularity of the reported transfer residue | ||
| 376 | */ | 404 | */ |
| 377 | struct dma_slave_caps { | 405 | struct dma_slave_caps { |
| 378 | u32 src_addr_widths; | 406 | u32 src_addr_widths; |
| @@ -380,6 +408,7 @@ struct dma_slave_caps { | |||
| 380 | u32 directions; | 408 | u32 directions; |
| 381 | bool cmd_pause; | 409 | bool cmd_pause; |
| 382 | bool cmd_terminate; | 410 | bool cmd_terminate; |
| 411 | enum dma_residue_granularity residue_granularity; | ||
| 383 | }; | 412 | }; |
| 384 | 413 | ||
| 385 | static inline const char *dma_chan_name(struct dma_chan *chan) | 414 | static inline const char *dma_chan_name(struct dma_chan *chan) |
| @@ -1040,6 +1069,8 @@ enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx); | |||
| 1040 | void dma_issue_pending_all(void); | 1069 | void dma_issue_pending_all(void); |
| 1041 | struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask, | 1070 | struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask, |
| 1042 | dma_filter_fn fn, void *fn_param); | 1071 | dma_filter_fn fn, void *fn_param); |
| 1072 | struct dma_chan *dma_request_slave_channel_reason(struct device *dev, | ||
| 1073 | const char *name); | ||
| 1043 | struct dma_chan *dma_request_slave_channel(struct device *dev, const char *name); | 1074 | struct dma_chan *dma_request_slave_channel(struct device *dev, const char *name); |
| 1044 | void dma_release_channel(struct dma_chan *chan); | 1075 | void dma_release_channel(struct dma_chan *chan); |
| 1045 | #else | 1076 | #else |
| @@ -1063,6 +1094,11 @@ static inline struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask, | |||
| 1063 | { | 1094 | { |
| 1064 | return NULL; | 1095 | return NULL; |
| 1065 | } | 1096 | } |
| 1097 | static inline struct dma_chan *dma_request_slave_channel_reason( | ||
| 1098 | struct device *dev, const char *name) | ||
| 1099 | { | ||
| 1100 | return ERR_PTR(-ENODEV); | ||
| 1101 | } | ||
| 1066 | static inline struct dma_chan *dma_request_slave_channel(struct device *dev, | 1102 | static inline struct dma_chan *dma_request_slave_channel(struct device *dev, |
| 1067 | const char *name) | 1103 | const char *name) |
| 1068 | { | 1104 | { |
diff --git a/include/linux/efi.h b/include/linux/efi.h index bc5687d0f315..11ce6784a196 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
| @@ -801,6 +801,8 @@ struct efivar_entry { | |||
| 801 | struct efi_variable var; | 801 | struct efi_variable var; |
| 802 | struct list_head list; | 802 | struct list_head list; |
| 803 | struct kobject kobj; | 803 | struct kobject kobj; |
| 804 | bool scanning; | ||
| 805 | bool deleting; | ||
| 804 | }; | 806 | }; |
| 805 | 807 | ||
| 806 | 808 | ||
| @@ -866,6 +868,8 @@ void efivar_run_worker(void); | |||
| 866 | #if defined(CONFIG_EFI_VARS) || defined(CONFIG_EFI_VARS_MODULE) | 868 | #if defined(CONFIG_EFI_VARS) || defined(CONFIG_EFI_VARS_MODULE) |
| 867 | int efivars_sysfs_init(void); | 869 | int efivars_sysfs_init(void); |
| 868 | 870 | ||
| 871 | #define EFIVARS_DATA_SIZE_MAX 1024 | ||
| 872 | |||
| 869 | #endif /* CONFIG_EFI_VARS */ | 873 | #endif /* CONFIG_EFI_VARS */ |
| 870 | 874 | ||
| 871 | #endif /* _LINUX_EFI_H */ | 875 | #endif /* _LINUX_EFI_H */ |
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 9abbe630c456..8c9b7a1c4138 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
| @@ -248,6 +248,9 @@ struct ftrace_event_call { | |||
| 248 | #ifdef CONFIG_PERF_EVENTS | 248 | #ifdef CONFIG_PERF_EVENTS |
| 249 | int perf_refcount; | 249 | int perf_refcount; |
| 250 | struct hlist_head __percpu *perf_events; | 250 | struct hlist_head __percpu *perf_events; |
| 251 | |||
| 252 | int (*perf_perm)(struct ftrace_event_call *, | ||
| 253 | struct perf_event *); | ||
| 251 | #endif | 254 | #endif |
| 252 | }; | 255 | }; |
| 253 | 256 | ||
| @@ -317,6 +320,19 @@ struct ftrace_event_file { | |||
| 317 | } \ | 320 | } \ |
| 318 | early_initcall(trace_init_flags_##name); | 321 | early_initcall(trace_init_flags_##name); |
| 319 | 322 | ||
| 323 | #define __TRACE_EVENT_PERF_PERM(name, expr...) \ | ||
| 324 | static int perf_perm_##name(struct ftrace_event_call *tp_event, \ | ||
| 325 | struct perf_event *p_event) \ | ||
| 326 | { \ | ||
| 327 | return ({ expr; }); \ | ||
| 328 | } \ | ||
| 329 | static int __init trace_init_perf_perm_##name(void) \ | ||
| 330 | { \ | ||
| 331 | event_##name.perf_perm = &perf_perm_##name; \ | ||
| 332 | return 0; \ | ||
| 333 | } \ | ||
| 334 | early_initcall(trace_init_perf_perm_##name); | ||
| 335 | |||
| 320 | #define PERF_MAX_TRACE_SIZE 2048 | 336 | #define PERF_MAX_TRACE_SIZE 2048 |
| 321 | 337 | ||
| 322 | #define MAX_FILTER_STR_VAL 256 /* Should handle KSYM_SYMBOL_LEN */ | 338 | #define MAX_FILTER_STR_VAL 256 /* Should handle KSYM_SYMBOL_LEN */ |
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 656a27efb2c8..3ea2cf6b0e6c 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h | |||
| @@ -2,9 +2,12 @@ | |||
| 2 | #define __LINUX_GPIO_DRIVER_H | 2 | #define __LINUX_GPIO_DRIVER_H |
| 3 | 3 | ||
| 4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
| 5 | #include <linux/module.h> | ||
| 5 | 6 | ||
| 6 | struct device; | 7 | struct device; |
| 7 | struct gpio_desc; | 8 | struct gpio_desc; |
| 9 | struct of_phandle_args; | ||
| 10 | struct device_node; | ||
| 8 | struct seq_file; | 11 | struct seq_file; |
| 9 | 12 | ||
| 10 | /** | 13 | /** |
| @@ -125,6 +128,13 @@ extern struct gpio_chip *gpiochip_find(void *data, | |||
| 125 | int gpiod_lock_as_irq(struct gpio_desc *desc); | 128 | int gpiod_lock_as_irq(struct gpio_desc *desc); |
| 126 | void gpiod_unlock_as_irq(struct gpio_desc *desc); | 129 | void gpiod_unlock_as_irq(struct gpio_desc *desc); |
| 127 | 130 | ||
| 131 | enum gpio_lookup_flags { | ||
| 132 | GPIO_ACTIVE_HIGH = (0 << 0), | ||
| 133 | GPIO_ACTIVE_LOW = (1 << 0), | ||
| 134 | GPIO_OPEN_DRAIN = (1 << 1), | ||
| 135 | GPIO_OPEN_SOURCE = (1 << 2), | ||
| 136 | }; | ||
| 137 | |||
| 128 | /** | 138 | /** |
| 129 | * Lookup table for associating GPIOs to specific devices and functions using | 139 | * Lookup table for associating GPIOs to specific devices and functions using |
| 130 | * platform data. | 140 | * platform data. |
| @@ -152,9 +162,9 @@ struct gpiod_lookup { | |||
| 152 | */ | 162 | */ |
| 153 | unsigned int idx; | 163 | unsigned int idx; |
| 154 | /* | 164 | /* |
| 155 | * mask of GPIOF_* values | 165 | * mask of GPIO_* values |
| 156 | */ | 166 | */ |
| 157 | unsigned long flags; | 167 | enum gpio_lookup_flags flags; |
| 158 | }; | 168 | }; |
| 159 | 169 | ||
| 160 | /* | 170 | /* |
diff --git a/include/linux/hid-sensor-hub.h b/include/linux/hid-sensor-hub.h index a265af294ea4..b914ca3f57ba 100644 --- a/include/linux/hid-sensor-hub.h +++ b/include/linux/hid-sensor-hub.h | |||
| @@ -21,6 +21,8 @@ | |||
| 21 | 21 | ||
| 22 | #include <linux/hid.h> | 22 | #include <linux/hid.h> |
| 23 | #include <linux/hid-sensor-ids.h> | 23 | #include <linux/hid-sensor-ids.h> |
| 24 | #include <linux/iio/iio.h> | ||
| 25 | #include <linux/iio/trigger.h> | ||
| 24 | 26 | ||
| 25 | /** | 27 | /** |
| 26 | * struct hid_sensor_hub_attribute_info - Attribute info | 28 | * struct hid_sensor_hub_attribute_info - Attribute info |
| @@ -40,6 +42,8 @@ struct hid_sensor_hub_attribute_info { | |||
| 40 | s32 units; | 42 | s32 units; |
| 41 | s32 unit_expo; | 43 | s32 unit_expo; |
| 42 | s32 size; | 44 | s32 size; |
| 45 | s32 logical_minimum; | ||
| 46 | s32 logical_maximum; | ||
| 43 | }; | 47 | }; |
| 44 | 48 | ||
| 45 | /** | 49 | /** |
| @@ -184,6 +188,7 @@ struct hid_sensor_common { | |||
| 184 | struct platform_device *pdev; | 188 | struct platform_device *pdev; |
| 185 | unsigned usage_id; | 189 | unsigned usage_id; |
| 186 | bool data_ready; | 190 | bool data_ready; |
| 191 | struct iio_trigger *trigger; | ||
| 187 | struct hid_sensor_hub_attribute_info poll; | 192 | struct hid_sensor_hub_attribute_info poll; |
| 188 | struct hid_sensor_hub_attribute_info report_state; | 193 | struct hid_sensor_hub_attribute_info report_state; |
| 189 | struct hid_sensor_hub_attribute_info power_state; | 194 | struct hid_sensor_hub_attribute_info power_state; |
diff --git a/include/linux/hid-sensor-ids.h b/include/linux/hid-sensor-ids.h index 4f945d3ed49f..8323775ac21d 100644 --- a/include/linux/hid-sensor-ids.h +++ b/include/linux/hid-sensor-ids.h | |||
| @@ -117,4 +117,16 @@ | |||
| 117 | #define HID_USAGE_SENSOR_PROP_REPORT_STATE 0x200316 | 117 | #define HID_USAGE_SENSOR_PROP_REPORT_STATE 0x200316 |
| 118 | #define HID_USAGE_SENSOR_PROY_POWER_STATE 0x200319 | 118 | #define HID_USAGE_SENSOR_PROY_POWER_STATE 0x200319 |
| 119 | 119 | ||
| 120 | /* Power state enumerations */ | ||
| 121 | #define HID_USAGE_SENSOR_PROP_POWER_STATE_UNDEFINED_ENUM 0x00 | ||
| 122 | #define HID_USAGE_SENSOR_PROP_POWER_STATE_D0_FULL_POWER_ENUM 0x01 | ||
| 123 | #define HID_USAGE_SENSOR_PROP_POWER_STATE_D1_LOW_POWER_ENUM 0x02 | ||
| 124 | #define HID_USAGE_SENSOR_PROP_POWER_STATE_D2_STANDBY_WITH_WAKE_ENUM 0x03 | ||
| 125 | #define HID_USAGE_SENSOR_PROP_POWER_STATE_D3_SLEEP_WITH_WAKE_ENUM 0x04 | ||
| 126 | #define HID_USAGE_SENSOR_PROP_POWER_STATE_D4_POWER_OFF_ENUM 0x05 | ||
| 127 | |||
| 128 | /* Report State enumerations */ | ||
| 129 | #define HID_USAGE_SENSOR_PROP_REPORTING_STATE_NO_EVENTS_ENUM 0x00 | ||
| 130 | #define HID_USAGE_SENSOR_PROP_REPORTING_STATE_ALL_EVENTS_ENUM 0x01 | ||
| 131 | |||
| 120 | #endif | 132 | #endif |
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 9649ff0c63f8..bd7e98752222 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
| @@ -142,7 +142,10 @@ static inline int dequeue_hwpoisoned_huge_page(struct page *page) | |||
| 142 | return 0; | 142 | return 0; |
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | #define isolate_huge_page(p, l) false | 145 | static inline bool isolate_huge_page(struct page *page, struct list_head *list) |
| 146 | { | ||
| 147 | return false; | ||
| 148 | } | ||
| 146 | #define putback_active_hugepage(p) do {} while (0) | 149 | #define putback_active_hugepage(p) do {} while (0) |
| 147 | #define is_hugepage_active(x) false | 150 | #define is_hugepage_active(x) false |
| 148 | 151 | ||
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 673a3ce67f31..ade1c06d4ceb 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h | |||
| @@ -175,6 +175,9 @@ static inline int twl_class_is_ ##class(void) \ | |||
| 175 | TWL_CLASS_IS(4030, TWL4030_CLASS_ID) | 175 | TWL_CLASS_IS(4030, TWL4030_CLASS_ID) |
| 176 | TWL_CLASS_IS(6030, TWL6030_CLASS_ID) | 176 | TWL_CLASS_IS(6030, TWL6030_CLASS_ID) |
| 177 | 177 | ||
| 178 | /* Set the regcache bypass for the regmap associated with the nodule */ | ||
| 179 | int twl_set_regcache_bypass(u8 mod_no, bool enable); | ||
| 180 | |||
| 178 | /* | 181 | /* |
| 179 | * Read and write several 8-bit registers at once. | 182 | * Read and write several 8-bit registers at once. |
| 180 | */ | 183 | */ |
| @@ -667,8 +670,6 @@ struct twl4030_codec_data { | |||
| 667 | unsigned int digimic_delay; /* in ms */ | 670 | unsigned int digimic_delay; /* in ms */ |
| 668 | unsigned int ramp_delay_value; | 671 | unsigned int ramp_delay_value; |
| 669 | unsigned int offset_cncl_path; | 672 | unsigned int offset_cncl_path; |
| 670 | unsigned int check_defaults:1; | ||
| 671 | unsigned int reset_registers:1; | ||
| 672 | unsigned int hs_extmute:1; | 673 | unsigned int hs_extmute:1; |
| 673 | int hs_extmute_gpio; | 674 | int hs_extmute_gpio; |
| 674 | }; | 675 | }; |
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 5d89d1b808a6..c56c350324e4 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | #include <uapi/linux/ipv6.h> | 4 | #include <uapi/linux/ipv6.h> |
| 5 | 5 | ||
| 6 | #define ipv6_optlen(p) (((p)->hdrlen+1) << 3) | 6 | #define ipv6_optlen(p) (((p)->hdrlen+1) << 3) |
| 7 | #define ipv6_authlen(p) (((p)->hdrlen+2) << 2) | ||
| 7 | /* | 8 | /* |
| 8 | * This structure contains configuration options per IPv6 link. | 9 | * This structure contains configuration options per IPv6 link. |
| 9 | */ | 10 | */ |
diff --git a/include/linux/irqreturn.h b/include/linux/irqreturn.h index 714ba08dc092..e374e369fb2f 100644 --- a/include/linux/irqreturn.h +++ b/include/linux/irqreturn.h | |||
| @@ -14,6 +14,6 @@ enum irqreturn { | |||
| 14 | }; | 14 | }; |
| 15 | 15 | ||
| 16 | typedef enum irqreturn irqreturn_t; | 16 | typedef enum irqreturn irqreturn_t; |
| 17 | #define IRQ_RETVAL(x) ((x) != IRQ_NONE) | 17 | #define IRQ_RETVAL(x) ((x) ? IRQ_HANDLED : IRQ_NONE) |
| 18 | 18 | ||
| 19 | #endif | 19 | #endif |
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index d4e98d13eff4..ecb87544cc5d 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -193,7 +193,8 @@ extern int _cond_resched(void); | |||
| 193 | (__x < 0) ? -__x : __x; \ | 193 | (__x < 0) ? -__x : __x; \ |
| 194 | }) | 194 | }) |
| 195 | 195 | ||
| 196 | #if defined(CONFIG_PROVE_LOCKING) || defined(CONFIG_DEBUG_ATOMIC_SLEEP) | 196 | #if defined(CONFIG_MMU) && \ |
| 197 | (defined(CONFIG_PROVE_LOCKING) || defined(CONFIG_DEBUG_ATOMIC_SLEEP)) | ||
| 197 | void might_fault(void); | 198 | void might_fault(void); |
| 198 | #else | 199 | #else |
| 199 | static inline void might_fault(void) { } | 200 | static inline void might_fault(void) { } |
diff --git a/include/linux/kexec.h b/include/linux/kexec.h index d78d28a733b1..5fd33dc1fe3a 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h | |||
| @@ -198,6 +198,9 @@ extern u32 vmcoreinfo_note[VMCOREINFO_NOTE_SIZE/4]; | |||
| 198 | extern size_t vmcoreinfo_size; | 198 | extern size_t vmcoreinfo_size; |
| 199 | extern size_t vmcoreinfo_max_size; | 199 | extern size_t vmcoreinfo_max_size; |
| 200 | 200 | ||
| 201 | /* flag to track if kexec reboot is in progress */ | ||
| 202 | extern bool kexec_in_progress; | ||
| 203 | |||
| 201 | int __init parse_crashkernel(char *cmdline, unsigned long long system_ram, | 204 | int __init parse_crashkernel(char *cmdline, unsigned long long system_ram, |
| 202 | unsigned long long *crash_size, unsigned long long *crash_base); | 205 | unsigned long long *crash_size, unsigned long long *crash_base); |
| 203 | int parse_crashkernel_high(char *cmdline, unsigned long long system_ram, | 206 | int parse_crashkernel_high(char *cmdline, unsigned long long system_ram, |
diff --git a/include/linux/libata.h b/include/linux/libata.h index 0e23c26485f4..9b503376738f 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
| @@ -418,6 +418,7 @@ enum { | |||
| 418 | ATA_HORKAGE_DUMP_ID = (1 << 16), /* dump IDENTIFY data */ | 418 | ATA_HORKAGE_DUMP_ID = (1 << 16), /* dump IDENTIFY data */ |
| 419 | ATA_HORKAGE_MAX_SEC_LBA48 = (1 << 17), /* Set max sects to 65535 */ | 419 | ATA_HORKAGE_MAX_SEC_LBA48 = (1 << 17), /* Set max sects to 65535 */ |
| 420 | ATA_HORKAGE_ATAPI_DMADIR = (1 << 18), /* device requires dmadir */ | 420 | ATA_HORKAGE_ATAPI_DMADIR = (1 << 18), /* device requires dmadir */ |
| 421 | ATA_HORKAGE_NO_NCQ_TRIM = (1 << 19), /* don't use queued TRIM */ | ||
| 421 | 422 | ||
| 422 | /* DMA mask for user DMA control: User visible values; DO NOT | 423 | /* DMA mask for user DMA control: User visible values; DO NOT |
| 423 | renumber */ | 424 | renumber */ |
diff --git a/include/linux/lockref.h b/include/linux/lockref.h index c8929c3832db..4bfde0e99ed5 100644 --- a/include/linux/lockref.h +++ b/include/linux/lockref.h | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | #define USE_CMPXCHG_LOCKREF \ | 20 | #define USE_CMPXCHG_LOCKREF \ |
| 21 | (IS_ENABLED(CONFIG_ARCH_USE_CMPXCHG_LOCKREF) && \ | 21 | (IS_ENABLED(CONFIG_ARCH_USE_CMPXCHG_LOCKREF) && \ |
| 22 | IS_ENABLED(CONFIG_SMP) && !BLOATED_SPINLOCKS) | 22 | IS_ENABLED(CONFIG_SMP) && SPINLOCK_SIZE <= 4) |
| 23 | 23 | ||
| 24 | struct lockref { | 24 | struct lockref { |
| 25 | union { | 25 | union { |
diff --git a/include/linux/math64.h b/include/linux/math64.h index 69ed5f5e9f6e..c45c089bfdac 100644 --- a/include/linux/math64.h +++ b/include/linux/math64.h | |||
| @@ -133,4 +133,34 @@ __iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) | |||
| 133 | return ret; | 133 | return ret; |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | #if defined(CONFIG_ARCH_SUPPORTS_INT128) && defined(__SIZEOF_INT128__) | ||
| 137 | |||
| 138 | #ifndef mul_u64_u32_shr | ||
| 139 | static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) | ||
| 140 | { | ||
| 141 | return (u64)(((unsigned __int128)a * mul) >> shift); | ||
| 142 | } | ||
| 143 | #endif /* mul_u64_u32_shr */ | ||
| 144 | |||
| 145 | #else | ||
| 146 | |||
| 147 | #ifndef mul_u64_u32_shr | ||
| 148 | static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) | ||
| 149 | { | ||
| 150 | u32 ah, al; | ||
| 151 | u64 ret; | ||
| 152 | |||
| 153 | al = a; | ||
| 154 | ah = a >> 32; | ||
| 155 | |||
| 156 | ret = ((u64)al * mul) >> shift; | ||
| 157 | if (ah) | ||
| 158 | ret += ((u64)ah * mul) << (32 - shift); | ||
| 159 | |||
| 160 | return ret; | ||
| 161 | } | ||
| 162 | #endif /* mul_u64_u32_shr */ | ||
| 163 | |||
| 164 | #endif | ||
| 165 | |||
| 136 | #endif /* _LINUX_MATH64_H */ | 166 | #endif /* _LINUX_MATH64_H */ |
diff --git a/include/linux/mfd/arizona/registers.h b/include/linux/mfd/arizona/registers.h index cb49417f8ba9..19883aeb1ac8 100644 --- a/include/linux/mfd/arizona/registers.h +++ b/include/linux/mfd/arizona/registers.h | |||
| @@ -139,6 +139,7 @@ | |||
| 139 | #define ARIZONA_INPUT_ENABLES_STATUS 0x301 | 139 | #define ARIZONA_INPUT_ENABLES_STATUS 0x301 |
| 140 | #define ARIZONA_INPUT_RATE 0x308 | 140 | #define ARIZONA_INPUT_RATE 0x308 |
| 141 | #define ARIZONA_INPUT_VOLUME_RAMP 0x309 | 141 | #define ARIZONA_INPUT_VOLUME_RAMP 0x309 |
| 142 | #define ARIZONA_HPF_CONTROL 0x30C | ||
| 142 | #define ARIZONA_IN1L_CONTROL 0x310 | 143 | #define ARIZONA_IN1L_CONTROL 0x310 |
| 143 | #define ARIZONA_ADC_DIGITAL_VOLUME_1L 0x311 | 144 | #define ARIZONA_ADC_DIGITAL_VOLUME_1L 0x311 |
| 144 | #define ARIZONA_DMIC1L_CONTROL 0x312 | 145 | #define ARIZONA_DMIC1L_CONTROL 0x312 |
| @@ -160,6 +161,7 @@ | |||
| 160 | #define ARIZONA_IN4L_CONTROL 0x328 | 161 | #define ARIZONA_IN4L_CONTROL 0x328 |
| 161 | #define ARIZONA_ADC_DIGITAL_VOLUME_4L 0x329 | 162 | #define ARIZONA_ADC_DIGITAL_VOLUME_4L 0x329 |
| 162 | #define ARIZONA_DMIC4L_CONTROL 0x32A | 163 | #define ARIZONA_DMIC4L_CONTROL 0x32A |
| 164 | #define ARIZONA_IN4R_CONTROL 0x32C | ||
| 163 | #define ARIZONA_ADC_DIGITAL_VOLUME_4R 0x32D | 165 | #define ARIZONA_ADC_DIGITAL_VOLUME_4R 0x32D |
| 164 | #define ARIZONA_DMIC4R_CONTROL 0x32E | 166 | #define ARIZONA_DMIC4R_CONTROL 0x32E |
| 165 | #define ARIZONA_OUTPUT_ENABLES_1 0x400 | 167 | #define ARIZONA_OUTPUT_ENABLES_1 0x400 |
| @@ -224,6 +226,9 @@ | |||
| 224 | #define ARIZONA_PDM_SPK1_CTRL_2 0x491 | 226 | #define ARIZONA_PDM_SPK1_CTRL_2 0x491 |
| 225 | #define ARIZONA_PDM_SPK2_CTRL_1 0x492 | 227 | #define ARIZONA_PDM_SPK2_CTRL_1 0x492 |
| 226 | #define ARIZONA_PDM_SPK2_CTRL_2 0x493 | 228 | #define ARIZONA_PDM_SPK2_CTRL_2 0x493 |
| 229 | #define ARIZONA_HP1_SHORT_CIRCUIT_CTRL 0x4A0 | ||
| 230 | #define ARIZONA_HP2_SHORT_CIRCUIT_CTRL 0x4A1 | ||
| 231 | #define ARIZONA_HP3_SHORT_CIRCUIT_CTRL 0x4A2 | ||
| 227 | #define ARIZONA_SPK_CTRL_2 0x4B5 | 232 | #define ARIZONA_SPK_CTRL_2 0x4B5 |
| 228 | #define ARIZONA_SPK_CTRL_3 0x4B6 | 233 | #define ARIZONA_SPK_CTRL_3 0x4B6 |
| 229 | #define ARIZONA_DAC_COMP_1 0x4DC | 234 | #define ARIZONA_DAC_COMP_1 0x4DC |
| @@ -511,6 +516,38 @@ | |||
| 511 | #define ARIZONA_AIF2TX2MIX_INPUT_3_VOLUME 0x74D | 516 | #define ARIZONA_AIF2TX2MIX_INPUT_3_VOLUME 0x74D |
| 512 | #define ARIZONA_AIF2TX2MIX_INPUT_4_SOURCE 0x74E | 517 | #define ARIZONA_AIF2TX2MIX_INPUT_4_SOURCE 0x74E |
| 513 | #define ARIZONA_AIF2TX2MIX_INPUT_4_VOLUME 0x74F | 518 | #define ARIZONA_AIF2TX2MIX_INPUT_4_VOLUME 0x74F |
| 519 | #define ARIZONA_AIF2TX3MIX_INPUT_1_SOURCE 0x750 | ||
| 520 | #define ARIZONA_AIF2TX3MIX_INPUT_1_VOLUME 0x751 | ||
| 521 | #define ARIZONA_AIF2TX3MIX_INPUT_2_SOURCE 0x752 | ||
| 522 | #define ARIZONA_AIF2TX3MIX_INPUT_2_VOLUME 0x753 | ||
| 523 | #define ARIZONA_AIF2TX3MIX_INPUT_3_SOURCE 0x754 | ||
| 524 | #define ARIZONA_AIF2TX3MIX_INPUT_3_VOLUME 0x755 | ||
| 525 | #define ARIZONA_AIF2TX3MIX_INPUT_4_SOURCE 0x756 | ||
| 526 | #define ARIZONA_AIF2TX3MIX_INPUT_4_VOLUME 0x757 | ||
| 527 | #define ARIZONA_AIF2TX4MIX_INPUT_1_SOURCE 0x758 | ||
| 528 | #define ARIZONA_AIF2TX4MIX_INPUT_1_VOLUME 0x759 | ||
| 529 | #define ARIZONA_AIF2TX4MIX_INPUT_2_SOURCE 0x75A | ||
| 530 | #define ARIZONA_AIF2TX4MIX_INPUT_2_VOLUME 0x75B | ||
| 531 | #define ARIZONA_AIF2TX4MIX_INPUT_3_SOURCE 0x75C | ||
| 532 | #define ARIZONA_AIF2TX4MIX_INPUT_3_VOLUME 0x75D | ||
| 533 | #define ARIZONA_AIF2TX4MIX_INPUT_4_SOURCE 0x75E | ||
| 534 | #define ARIZONA_AIF2TX4MIX_INPUT_4_VOLUME 0x75F | ||
| 535 | #define ARIZONA_AIF2TX5MIX_INPUT_1_SOURCE 0x760 | ||
| 536 | #define ARIZONA_AIF2TX5MIX_INPUT_1_VOLUME 0x761 | ||
| 537 | #define ARIZONA_AIF2TX5MIX_INPUT_2_SOURCE 0x762 | ||
| 538 | #define ARIZONA_AIF2TX5MIX_INPUT_2_VOLUME 0x763 | ||
| 539 | #define ARIZONA_AIF2TX5MIX_INPUT_3_SOURCE 0x764 | ||
| 540 | #define ARIZONA_AIF2TX5MIX_INPUT_3_VOLUME 0x765 | ||
| 541 | #define ARIZONA_AIF2TX5MIX_INPUT_4_SOURCE 0x766 | ||
| 542 | #define ARIZONA_AIF2TX5MIX_INPUT_4_VOLUME 0x767 | ||
| 543 | #define ARIZONA_AIF2TX6MIX_INPUT_1_SOURCE 0x768 | ||
| 544 | #define ARIZONA_AIF2TX6MIX_INPUT_1_VOLUME 0x769 | ||
| 545 | #define ARIZONA_AIF2TX6MIX_INPUT_2_SOURCE 0x76A | ||
| 546 | #define ARIZONA_AIF2TX6MIX_INPUT_2_VOLUME 0x76B | ||
| 547 | #define ARIZONA_AIF2TX6MIX_INPUT_3_SOURCE 0x76C | ||
| 548 | #define ARIZONA_AIF2TX6MIX_INPUT_3_VOLUME 0x76D | ||
| 549 | #define ARIZONA_AIF2TX6MIX_INPUT_4_SOURCE 0x76E | ||
| 550 | #define ARIZONA_AIF2TX6MIX_INPUT_4_VOLUME 0x76F | ||
| 514 | #define ARIZONA_AIF3TX1MIX_INPUT_1_SOURCE 0x780 | 551 | #define ARIZONA_AIF3TX1MIX_INPUT_1_SOURCE 0x780 |
| 515 | #define ARIZONA_AIF3TX1MIX_INPUT_1_VOLUME 0x781 | 552 | #define ARIZONA_AIF3TX1MIX_INPUT_1_VOLUME 0x781 |
| 516 | #define ARIZONA_AIF3TX1MIX_INPUT_2_SOURCE 0x782 | 553 | #define ARIZONA_AIF3TX1MIX_INPUT_2_SOURCE 0x782 |
| @@ -2293,8 +2330,18 @@ | |||
| 2293 | #define ARIZONA_IN_VI_RAMP_WIDTH 3 /* IN_VI_RAMP - [2:0] */ | 2330 | #define ARIZONA_IN_VI_RAMP_WIDTH 3 /* IN_VI_RAMP - [2:0] */ |
| 2294 | 2331 | ||
| 2295 | /* | 2332 | /* |
| 2333 | * R780 (0x30C) - HPF Control | ||
| 2334 | */ | ||
| 2335 | #define ARIZONA_IN_HPF_CUT_MASK 0x0007 /* IN_HPF_CUT [2:0] */ | ||
| 2336 | #define ARIZONA_IN_HPF_CUT_SHIFT 0 /* IN_HPF_CUT [2:0] */ | ||
| 2337 | #define ARIZONA_IN_HPF_CUT_WIDTH 3 /* IN_HPF_CUT [2:0] */ | ||
| 2338 | |||
| 2339 | /* | ||
| 2296 | * R784 (0x310) - IN1L Control | 2340 | * R784 (0x310) - IN1L Control |
| 2297 | */ | 2341 | */ |
| 2342 | #define ARIZONA_IN1L_HPF_MASK 0x8000 /* IN1L_HPF - [15] */ | ||
| 2343 | #define ARIZONA_IN1L_HPF_SHIFT 15 /* IN1L_HPF - [15] */ | ||
| 2344 | #define ARIZONA_IN1L_HPF_WIDTH 1 /* IN1L_HPF - [15] */ | ||
| 2298 | #define ARIZONA_IN1_OSR_MASK 0x6000 /* IN1_OSR - [14:13] */ | 2345 | #define ARIZONA_IN1_OSR_MASK 0x6000 /* IN1_OSR - [14:13] */ |
| 2299 | #define ARIZONA_IN1_OSR_SHIFT 13 /* IN1_OSR - [14:13] */ | 2346 | #define ARIZONA_IN1_OSR_SHIFT 13 /* IN1_OSR - [14:13] */ |
| 2300 | #define ARIZONA_IN1_OSR_WIDTH 2 /* IN1_OSR - [14:13] */ | 2347 | #define ARIZONA_IN1_OSR_WIDTH 2 /* IN1_OSR - [14:13] */ |
| @@ -2333,6 +2380,9 @@ | |||
| 2333 | /* | 2380 | /* |
| 2334 | * R788 (0x314) - IN1R Control | 2381 | * R788 (0x314) - IN1R Control |
| 2335 | */ | 2382 | */ |
| 2383 | #define ARIZONA_IN1R_HPF_MASK 0x8000 /* IN1R_HPF - [15] */ | ||
| 2384 | #define ARIZONA_IN1R_HPF_SHIFT 15 /* IN1R_HPF - [15] */ | ||
| 2385 | #define ARIZONA_IN1R_HPF_WIDTH 1 /* IN1R_HPF - [15] */ | ||
| 2336 | #define ARIZONA_IN1R_PGA_VOL_MASK 0x00FE /* IN1R_PGA_VOL - [7:1] */ | 2386 | #define ARIZONA_IN1R_PGA_VOL_MASK 0x00FE /* IN1R_PGA_VOL - [7:1] */ |
| 2337 | #define ARIZONA_IN1R_PGA_VOL_SHIFT 1 /* IN1R_PGA_VOL - [7:1] */ | 2387 | #define ARIZONA_IN1R_PGA_VOL_SHIFT 1 /* IN1R_PGA_VOL - [7:1] */ |
| 2338 | #define ARIZONA_IN1R_PGA_VOL_WIDTH 7 /* IN1R_PGA_VOL - [7:1] */ | 2388 | #define ARIZONA_IN1R_PGA_VOL_WIDTH 7 /* IN1R_PGA_VOL - [7:1] */ |
| @@ -2362,6 +2412,9 @@ | |||
| 2362 | /* | 2412 | /* |
| 2363 | * R792 (0x318) - IN2L Control | 2413 | * R792 (0x318) - IN2L Control |
| 2364 | */ | 2414 | */ |
| 2415 | #define ARIZONA_IN2L_HPF_MASK 0x8000 /* IN2L_HPF - [15] */ | ||
| 2416 | #define ARIZONA_IN2L_HPF_SHIFT 15 /* IN2L_HPF - [15] */ | ||
| 2417 | #define ARIZONA_IN2L_HPF_WIDTH 1 /* IN2L_HPF - [15] */ | ||
| 2365 | #define ARIZONA_IN2_OSR_MASK 0x6000 /* IN2_OSR - [14:13] */ | 2418 | #define ARIZONA_IN2_OSR_MASK 0x6000 /* IN2_OSR - [14:13] */ |
| 2366 | #define ARIZONA_IN2_OSR_SHIFT 13 /* IN2_OSR - [14:13] */ | 2419 | #define ARIZONA_IN2_OSR_SHIFT 13 /* IN2_OSR - [14:13] */ |
| 2367 | #define ARIZONA_IN2_OSR_WIDTH 2 /* IN2_OSR - [14:13] */ | 2420 | #define ARIZONA_IN2_OSR_WIDTH 2 /* IN2_OSR - [14:13] */ |
| @@ -2400,6 +2453,9 @@ | |||
| 2400 | /* | 2453 | /* |
| 2401 | * R796 (0x31C) - IN2R Control | 2454 | * R796 (0x31C) - IN2R Control |
| 2402 | */ | 2455 | */ |
| 2456 | #define ARIZONA_IN2R_HPF_MASK 0x8000 /* IN2R_HPF - [15] */ | ||
| 2457 | #define ARIZONA_IN2R_HPF_SHIFT 15 /* IN2R_HPF - [15] */ | ||
| 2458 | #define ARIZONA_IN2R_HPF_WIDTH 1 /* IN2R_HPF - [15] */ | ||
| 2403 | #define ARIZONA_IN2R_PGA_VOL_MASK 0x00FE /* IN2R_PGA_VOL - [7:1] */ | 2459 | #define ARIZONA_IN2R_PGA_VOL_MASK 0x00FE /* IN2R_PGA_VOL - [7:1] */ |
| 2404 | #define ARIZONA_IN2R_PGA_VOL_SHIFT 1 /* IN2R_PGA_VOL - [7:1] */ | 2460 | #define ARIZONA_IN2R_PGA_VOL_SHIFT 1 /* IN2R_PGA_VOL - [7:1] */ |
| 2405 | #define ARIZONA_IN2R_PGA_VOL_WIDTH 7 /* IN2R_PGA_VOL - [7:1] */ | 2461 | #define ARIZONA_IN2R_PGA_VOL_WIDTH 7 /* IN2R_PGA_VOL - [7:1] */ |
| @@ -2429,6 +2485,9 @@ | |||
| 2429 | /* | 2485 | /* |
| 2430 | * R800 (0x320) - IN3L Control | 2486 | * R800 (0x320) - IN3L Control |
| 2431 | */ | 2487 | */ |
| 2488 | #define ARIZONA_IN3L_HPF_MASK 0x8000 /* IN3L_HPF - [15] */ | ||
| 2489 | #define ARIZONA_IN3L_HPF_SHIFT 15 /* IN3L_HPF - [15] */ | ||
| 2490 | #define ARIZONA_IN3L_HPF_WIDTH 1 /* IN3L_HPF - [15] */ | ||
| 2432 | #define ARIZONA_IN3_OSR_MASK 0x6000 /* IN3_OSR - [14:13] */ | 2491 | #define ARIZONA_IN3_OSR_MASK 0x6000 /* IN3_OSR - [14:13] */ |
| 2433 | #define ARIZONA_IN3_OSR_SHIFT 13 /* IN3_OSR - [14:13] */ | 2492 | #define ARIZONA_IN3_OSR_SHIFT 13 /* IN3_OSR - [14:13] */ |
| 2434 | #define ARIZONA_IN3_OSR_WIDTH 2 /* IN3_OSR - [14:13] */ | 2493 | #define ARIZONA_IN3_OSR_WIDTH 2 /* IN3_OSR - [14:13] */ |
| @@ -2467,6 +2526,9 @@ | |||
| 2467 | /* | 2526 | /* |
| 2468 | * R804 (0x324) - IN3R Control | 2527 | * R804 (0x324) - IN3R Control |
| 2469 | */ | 2528 | */ |
| 2529 | #define ARIZONA_IN3R_HPF_MASK 0x8000 /* IN3R_HPF - [15] */ | ||
| 2530 | #define ARIZONA_IN3R_HPF_SHIFT 15 /* IN3R_HPF - [15] */ | ||
| 2531 | #define ARIZONA_IN3R_HPF_WIDTH 1 /* IN3R_HPF - [15] */ | ||
| 2470 | #define ARIZONA_IN3R_PGA_VOL_MASK 0x00FE /* IN3R_PGA_VOL - [7:1] */ | 2532 | #define ARIZONA_IN3R_PGA_VOL_MASK 0x00FE /* IN3R_PGA_VOL - [7:1] */ |
| 2471 | #define ARIZONA_IN3R_PGA_VOL_SHIFT 1 /* IN3R_PGA_VOL - [7:1] */ | 2533 | #define ARIZONA_IN3R_PGA_VOL_SHIFT 1 /* IN3R_PGA_VOL - [7:1] */ |
| 2472 | #define ARIZONA_IN3R_PGA_VOL_WIDTH 7 /* IN3R_PGA_VOL - [7:1] */ | 2534 | #define ARIZONA_IN3R_PGA_VOL_WIDTH 7 /* IN3R_PGA_VOL - [7:1] */ |
| @@ -2496,6 +2558,9 @@ | |||
| 2496 | /* | 2558 | /* |
| 2497 | * R808 (0x328) - IN4 Control | 2559 | * R808 (0x328) - IN4 Control |
| 2498 | */ | 2560 | */ |
| 2561 | #define ARIZONA_IN4L_HPF_MASK 0x8000 /* IN4L_HPF - [15] */ | ||
| 2562 | #define ARIZONA_IN4L_HPF_SHIFT 15 /* IN4L_HPF - [15] */ | ||
| 2563 | #define ARIZONA_IN4L_HPF_WIDTH 1 /* IN4L_HPF - [15] */ | ||
| 2499 | #define ARIZONA_IN4_OSR_MASK 0x6000 /* IN4_OSR - [14:13] */ | 2564 | #define ARIZONA_IN4_OSR_MASK 0x6000 /* IN4_OSR - [14:13] */ |
| 2500 | #define ARIZONA_IN4_OSR_SHIFT 13 /* IN4_OSR - [14:13] */ | 2565 | #define ARIZONA_IN4_OSR_SHIFT 13 /* IN4_OSR - [14:13] */ |
| 2501 | #define ARIZONA_IN4_OSR_WIDTH 2 /* IN4_OSR - [14:13] */ | 2566 | #define ARIZONA_IN4_OSR_WIDTH 2 /* IN4_OSR - [14:13] */ |
| @@ -2526,6 +2591,13 @@ | |||
| 2526 | #define ARIZONA_IN4L_DMIC_DLY_WIDTH 6 /* IN4L_DMIC_DLY - [5:0] */ | 2591 | #define ARIZONA_IN4L_DMIC_DLY_WIDTH 6 /* IN4L_DMIC_DLY - [5:0] */ |
| 2527 | 2592 | ||
| 2528 | /* | 2593 | /* |
| 2594 | * R812 (0x32C) - IN4R Control | ||
| 2595 | */ | ||
| 2596 | #define ARIZONA_IN4R_HPF_MASK 0x8000 /* IN4R_HPF - [15] */ | ||
| 2597 | #define ARIZONA_IN4R_HPF_SHIFT 15 /* IN4R_HPF - [15] */ | ||
| 2598 | #define ARIZONA_IN4R_HPF_WIDTH 1 /* IN4R_HPF - [15] */ | ||
| 2599 | |||
| 2600 | /* | ||
| 2529 | * R813 (0x32D) - ADC Digital Volume 4R | 2601 | * R813 (0x32D) - ADC Digital Volume 4R |
| 2530 | */ | 2602 | */ |
| 2531 | #define ARIZONA_IN_VU 0x0200 /* IN_VU */ | 2603 | #define ARIZONA_IN_VU 0x0200 /* IN_VU */ |
| @@ -3138,6 +3210,10 @@ | |||
| 3138 | /* | 3210 | /* |
| 3139 | * R1088 (0x440) - DRE Enable | 3211 | * R1088 (0x440) - DRE Enable |
| 3140 | */ | 3212 | */ |
| 3213 | #define ARIZONA_DRE3R_ENA 0x0020 /* DRE3R_ENA */ | ||
| 3214 | #define ARIZONA_DRE3R_ENA_MASK 0x0020 /* DRE3R_ENA */ | ||
| 3215 | #define ARIZONA_DRE3R_ENA_SHIFT 5 /* DRE3R_ENA */ | ||
| 3216 | #define ARIZONA_DRE3R_ENA_WIDTH 1 /* DRE3R_ENA */ | ||
| 3141 | #define ARIZONA_DRE3L_ENA 0x0010 /* DRE3L_ENA */ | 3217 | #define ARIZONA_DRE3L_ENA 0x0010 /* DRE3L_ENA */ |
| 3142 | #define ARIZONA_DRE3L_ENA_MASK 0x0010 /* DRE3L_ENA */ | 3218 | #define ARIZONA_DRE3L_ENA_MASK 0x0010 /* DRE3L_ENA */ |
| 3143 | #define ARIZONA_DRE3L_ENA_SHIFT 4 /* DRE3L_ENA */ | 3219 | #define ARIZONA_DRE3L_ENA_SHIFT 4 /* DRE3L_ENA */ |
| @@ -3260,6 +3336,30 @@ | |||
| 3260 | #define ARIZONA_SPK2_FMT_WIDTH 1 /* SPK2_FMT */ | 3336 | #define ARIZONA_SPK2_FMT_WIDTH 1 /* SPK2_FMT */ |
| 3261 | 3337 | ||
| 3262 | /* | 3338 | /* |
| 3339 | * R1184 (0x4A0) - HP1 Short Circuit Ctrl | ||
| 3340 | */ | ||
| 3341 | #define ARIZONA_HP1_SC_ENA 0x1000 /* HP1_SC_ENA */ | ||
| 3342 | #define ARIZONA_HP1_SC_ENA_MASK 0x1000 /* HP1_SC_ENA */ | ||
| 3343 | #define ARIZONA_HP1_SC_ENA_SHIFT 12 /* HP1_SC_ENA */ | ||
| 3344 | #define ARIZONA_HP1_SC_ENA_WIDTH 1 /* HP1_SC_ENA */ | ||
| 3345 | |||
| 3346 | /* | ||
| 3347 | * R1185 (0x4A1) - HP2 Short Circuit Ctrl | ||
| 3348 | */ | ||
| 3349 | #define ARIZONA_HP2_SC_ENA 0x1000 /* HP2_SC_ENA */ | ||
| 3350 | #define ARIZONA_HP2_SC_ENA_MASK 0x1000 /* HP2_SC_ENA */ | ||
| 3351 | #define ARIZONA_HP2_SC_ENA_SHIFT 12 /* HP2_SC_ENA */ | ||
| 3352 | #define ARIZONA_HP2_SC_ENA_WIDTH 1 /* HP2_SC_ENA */ | ||
| 3353 | |||
| 3354 | /* | ||
| 3355 | * R1186 (0x4A2) - HP3 Short Circuit Ctrl | ||
| 3356 | */ | ||
| 3357 | #define ARIZONA_HP3_SC_ENA 0x1000 /* HP3_SC_ENA */ | ||
| 3358 | #define ARIZONA_HP3_SC_ENA_MASK 0x1000 /* HP3_SC_ENA */ | ||
| 3359 | #define ARIZONA_HP3_SC_ENA_SHIFT 12 /* HP3_SC_ENA */ | ||
| 3360 | #define ARIZONA_HP3_SC_ENA_WIDTH 1 /* HP3_SC_ENA */ | ||
| 3361 | |||
| 3362 | /* | ||
| 3263 | * R1244 (0x4DC) - DAC comp 1 | 3363 | * R1244 (0x4DC) - DAC comp 1 |
| 3264 | */ | 3364 | */ |
| 3265 | #define ARIZONA_OUT_COMP_COEFF_MASK 0xFFFF /* OUT_COMP_COEFF - [15:0] */ | 3365 | #define ARIZONA_OUT_COMP_COEFF_MASK 0xFFFF /* OUT_COMP_COEFF - [15:0] */ |
| @@ -3726,6 +3826,35 @@ | |||
| 3726 | #define ARIZONA_AIF2TX2_SLOT_WIDTH 6 /* AIF2TX2_SLOT - [5:0] */ | 3826 | #define ARIZONA_AIF2TX2_SLOT_WIDTH 6 /* AIF2TX2_SLOT - [5:0] */ |
| 3727 | 3827 | ||
| 3728 | /* | 3828 | /* |
| 3829 | * R1355 (0x54B) - AIF2 Frame Ctrl 5 | ||
| 3830 | */ | ||
| 3831 | #define ARIZONA_AIF2TX3_SLOT_MASK 0x003F /* AIF2TX3_SLOT - [5:0] */ | ||
| 3832 | #define ARIZONA_AIF2TX3_SLOT_SHIFT 0 /* AIF2TX3_SLOT - [5:0] */ | ||
| 3833 | #define ARIZONA_AIF2TX3_SLOT_WIDTH 6 /* AIF2TX3_SLOT - [5:0] */ | ||
| 3834 | |||
| 3835 | /* | ||
| 3836 | * R1356 (0x54C) - AIF2 Frame Ctrl 6 | ||
| 3837 | */ | ||
| 3838 | #define ARIZONA_AIF2TX4_SLOT_MASK 0x003F /* AIF2TX4_SLOT - [5:0] */ | ||
| 3839 | #define ARIZONA_AIF2TX4_SLOT_SHIFT 0 /* AIF2TX4_SLOT - [5:0] */ | ||
| 3840 | #define ARIZONA_AIF2TX4_SLOT_WIDTH 6 /* AIF2TX4_SLOT - [5:0] */ | ||
| 3841 | |||
| 3842 | |||
| 3843 | /* | ||
| 3844 | * R1357 (0x54D) - AIF2 Frame Ctrl 7 | ||
| 3845 | */ | ||
| 3846 | #define ARIZONA_AIF2TX5_SLOT_MASK 0x003F /* AIF2TX5_SLOT - [5:0] */ | ||
| 3847 | #define ARIZONA_AIF2TX5_SLOT_SHIFT 0 /* AIF2TX5_SLOT - [5:0] */ | ||
| 3848 | #define ARIZONA_AIF2TX5_SLOT_WIDTH 6 /* AIF2TX5_SLOT - [5:0] */ | ||
| 3849 | |||
| 3850 | /* | ||
| 3851 | * R1358 (0x54E) - AIF2 Frame Ctrl 8 | ||
| 3852 | */ | ||
| 3853 | #define ARIZONA_AIF2TX6_SLOT_MASK 0x003F /* AIF2TX6_SLOT - [5:0] */ | ||
| 3854 | #define ARIZONA_AIF2TX6_SLOT_SHIFT 0 /* AIF2TX6_SLOT - [5:0] */ | ||
| 3855 | #define ARIZONA_AIF2TX6_SLOT_WIDTH 6 /* AIF2TX6_SLOT - [5:0] */ | ||
| 3856 | |||
| 3857 | /* | ||
| 3729 | * R1361 (0x551) - AIF2 Frame Ctrl 11 | 3858 | * R1361 (0x551) - AIF2 Frame Ctrl 11 |
| 3730 | */ | 3859 | */ |
| 3731 | #define ARIZONA_AIF2RX1_SLOT_MASK 0x003F /* AIF2RX1_SLOT - [5:0] */ | 3860 | #define ARIZONA_AIF2RX1_SLOT_MASK 0x003F /* AIF2RX1_SLOT - [5:0] */ |
| @@ -3740,8 +3869,52 @@ | |||
| 3740 | #define ARIZONA_AIF2RX2_SLOT_WIDTH 6 /* AIF2RX2_SLOT - [5:0] */ | 3869 | #define ARIZONA_AIF2RX2_SLOT_WIDTH 6 /* AIF2RX2_SLOT - [5:0] */ |
| 3741 | 3870 | ||
| 3742 | /* | 3871 | /* |
| 3872 | * R1363 (0x553) - AIF2 Frame Ctrl 13 | ||
| 3873 | */ | ||
| 3874 | #define ARIZONA_AIF2RX3_SLOT_MASK 0x003F /* AIF2RX3_SLOT - [5:0] */ | ||
| 3875 | #define ARIZONA_AIF2RX3_SLOT_SHIFT 0 /* AIF2RX3_SLOT - [5:0] */ | ||
| 3876 | #define ARIZONA_AIF2RX3_SLOT_WIDTH 6 /* AIF2RX3_SLOT - [5:0] */ | ||
| 3877 | |||
| 3878 | /* | ||
| 3879 | * R1364 (0x554) - AIF2 Frame Ctrl 14 | ||
| 3880 | */ | ||
| 3881 | #define ARIZONA_AIF2RX4_SLOT_MASK 0x003F /* AIF2RX4_SLOT - [5:0] */ | ||
| 3882 | #define ARIZONA_AIF2RX4_SLOT_SHIFT 0 /* AIF2RX4_SLOT - [5:0] */ | ||
| 3883 | #define ARIZONA_AIF2RX4_SLOT_WIDTH 6 /* AIF2RX4_SLOT - [5:0] */ | ||
| 3884 | |||
| 3885 | /* | ||
| 3886 | * R1365 (0x555) - AIF2 Frame Ctrl 15 | ||
| 3887 | */ | ||
| 3888 | #define ARIZONA_AIF2RX5_SLOT_MASK 0x003F /* AIF2RX5_SLOT - [5:0] */ | ||
| 3889 | #define ARIZONA_AIF2RX5_SLOT_SHIFT 0 /* AIF2RX5_SLOT - [5:0] */ | ||
| 3890 | #define ARIZONA_AIF2RX5_SLOT_WIDTH 6 /* AIF2RX5_SLOT - [5:0] */ | ||
| 3891 | |||
| 3892 | /* | ||
| 3893 | * R1366 (0x556) - AIF2 Frame Ctrl 16 | ||
| 3894 | */ | ||
| 3895 | #define ARIZONA_AIF2RX6_SLOT_MASK 0x003F /* AIF2RX6_SLOT - [5:0] */ | ||
| 3896 | #define ARIZONA_AIF2RX6_SLOT_SHIFT 0 /* AIF2RX6_SLOT - [5:0] */ | ||
| 3897 | #define ARIZONA_AIF2RX6_SLOT_WIDTH 6 /* AIF2RX6_SLOT - [5:0] */ | ||
| 3898 | |||
| 3899 | /* | ||
| 3743 | * R1369 (0x559) - AIF2 Tx Enables | 3900 | * R1369 (0x559) - AIF2 Tx Enables |
| 3744 | */ | 3901 | */ |
| 3902 | #define ARIZONA_AIF2TX6_ENA 0x0020 /* AIF2TX6_ENA */ | ||
| 3903 | #define ARIZONA_AIF2TX6_ENA_MASK 0x0020 /* AIF2TX6_ENA */ | ||
| 3904 | #define ARIZONA_AIF2TX6_ENA_SHIFT 5 /* AIF2TX6_ENA */ | ||
| 3905 | #define ARIZONA_AIF2TX6_ENA_WIDTH 1 /* AIF2TX6_ENA */ | ||
| 3906 | #define ARIZONA_AIF2TX5_ENA 0x0010 /* AIF2TX5_ENA */ | ||
| 3907 | #define ARIZONA_AIF2TX5_ENA_MASK 0x0010 /* AIF2TX5_ENA */ | ||
| 3908 | #define ARIZONA_AIF2TX5_ENA_SHIFT 4 /* AIF2TX5_ENA */ | ||
| 3909 | #define ARIZONA_AIF2TX5_ENA_WIDTH 1 /* AIF2TX5_ENA */ | ||
| 3910 | #define ARIZONA_AIF2TX4_ENA 0x0008 /* AIF2TX4_ENA */ | ||
| 3911 | #define ARIZONA_AIF2TX4_ENA_MASK 0x0008 /* AIF2TX4_ENA */ | ||
| 3912 | #define ARIZONA_AIF2TX4_ENA_SHIFT 3 /* AIF2TX4_ENA */ | ||
| 3913 | #define ARIZONA_AIF2TX4_ENA_WIDTH 1 /* AIF2TX4_ENA */ | ||
| 3914 | #define ARIZONA_AIF2TX3_ENA 0x0004 /* AIF2TX3_ENA */ | ||
| 3915 | #define ARIZONA_AIF2TX3_ENA_MASK 0x0004 /* AIF2TX3_ENA */ | ||
| 3916 | #define ARIZONA_AIF2TX3_ENA_SHIFT 2 /* AIF2TX3_ENA */ | ||
| 3917 | #define ARIZONA_AIF2TX3_ENA_WIDTH 1 /* AIF2TX3_ENA */ | ||
| 3745 | #define ARIZONA_AIF2TX2_ENA 0x0002 /* AIF2TX2_ENA */ | 3918 | #define ARIZONA_AIF2TX2_ENA 0x0002 /* AIF2TX2_ENA */ |
| 3746 | #define ARIZONA_AIF2TX2_ENA_MASK 0x0002 /* AIF2TX2_ENA */ | 3919 | #define ARIZONA_AIF2TX2_ENA_MASK 0x0002 /* AIF2TX2_ENA */ |
| 3747 | #define ARIZONA_AIF2TX2_ENA_SHIFT 1 /* AIF2TX2_ENA */ | 3920 | #define ARIZONA_AIF2TX2_ENA_SHIFT 1 /* AIF2TX2_ENA */ |
| @@ -3754,6 +3927,22 @@ | |||
| 3754 | /* | 3927 | /* |
| 3755 | * R1370 (0x55A) - AIF2 Rx Enables | 3928 | * R1370 (0x55A) - AIF2 Rx Enables |
| 3756 | */ | 3929 | */ |
| 3930 | #define ARIZONA_AIF2RX6_ENA 0x0020 /* AIF2RX6_ENA */ | ||
| 3931 | #define ARIZONA_AIF2RX6_ENA_MASK 0x0020 /* AIF2RX6_ENA */ | ||
| 3932 | #define ARIZONA_AIF2RX6_ENA_SHIFT 5 /* AIF2RX6_ENA */ | ||
| 3933 | #define ARIZONA_AIF2RX6_ENA_WIDTH 1 /* AIF2RX6_ENA */ | ||
| 3934 | #define ARIZONA_AIF2RX5_ENA 0x0010 /* AIF2RX5_ENA */ | ||
| 3935 | #define ARIZONA_AIF2RX5_ENA_MASK 0x0010 /* AIF2RX5_ENA */ | ||
| 3936 | #define ARIZONA_AIF2RX5_ENA_SHIFT 4 /* AIF2RX5_ENA */ | ||
| 3937 | #define ARIZONA_AIF2RX5_ENA_WIDTH 1 /* AIF2RX5_ENA */ | ||
| 3938 | #define ARIZONA_AIF2RX4_ENA 0x0008 /* AIF2RX4_ENA */ | ||
| 3939 | #define ARIZONA_AIF2RX4_ENA_MASK 0x0008 /* AIF2RX4_ENA */ | ||
| 3940 | #define ARIZONA_AIF2RX4_ENA_SHIFT 3 /* AIF2RX4_ENA */ | ||
| 3941 | #define ARIZONA_AIF2RX4_ENA_WIDTH 1 /* AIF2RX4_ENA */ | ||
| 3942 | #define ARIZONA_AIF2RX3_ENA 0x0004 /* AIF2RX3_ENA */ | ||
| 3943 | #define ARIZONA_AIF2RX3_ENA_MASK 0x0004 /* AIF2RX3_ENA */ | ||
| 3944 | #define ARIZONA_AIF2RX3_ENA_SHIFT 2 /* AIF2RX3_ENA */ | ||
| 3945 | #define ARIZONA_AIF2RX3_ENA_WIDTH 1 /* AIF2RX3_ENA */ | ||
| 3757 | #define ARIZONA_AIF2RX2_ENA 0x0002 /* AIF2RX2_ENA */ | 3946 | #define ARIZONA_AIF2RX2_ENA 0x0002 /* AIF2RX2_ENA */ |
| 3758 | #define ARIZONA_AIF2RX2_ENA_MASK 0x0002 /* AIF2RX2_ENA */ | 3947 | #define ARIZONA_AIF2RX2_ENA_MASK 0x0002 /* AIF2RX2_ENA */ |
| 3759 | #define ARIZONA_AIF2RX2_ENA_SHIFT 1 /* AIF2RX2_ENA */ | 3948 | #define ARIZONA_AIF2RX2_ENA_SHIFT 1 /* AIF2RX2_ENA */ |
diff --git a/include/linux/mfd/samsung/core.h b/include/linux/mfd/samsung/core.h index 2d0c9071bcfb..cab2dd279076 100644 --- a/include/linux/mfd/samsung/core.h +++ b/include/linux/mfd/samsung/core.h | |||
| @@ -39,7 +39,8 @@ enum sec_device_type { | |||
| 39 | struct sec_pmic_dev { | 39 | struct sec_pmic_dev { |
| 40 | struct device *dev; | 40 | struct device *dev; |
| 41 | struct sec_platform_data *pdata; | 41 | struct sec_platform_data *pdata; |
| 42 | struct regmap *regmap; | 42 | struct regmap *regmap_pmic; |
| 43 | struct regmap *regmap_rtc; | ||
| 43 | struct i2c_client *i2c; | 44 | struct i2c_client *i2c; |
| 44 | struct i2c_client *rtc; | 45 | struct i2c_client *rtc; |
| 45 | 46 | ||
diff --git a/include/linux/micrel_phy.h b/include/linux/micrel_phy.h index ad05ce60c1c9..2e5b194b9b19 100644 --- a/include/linux/micrel_phy.h +++ b/include/linux/micrel_phy.h | |||
| @@ -22,6 +22,8 @@ | |||
| 22 | #define PHY_ID_KSZ8021 0x00221555 | 22 | #define PHY_ID_KSZ8021 0x00221555 |
| 23 | #define PHY_ID_KSZ8031 0x00221556 | 23 | #define PHY_ID_KSZ8031 0x00221556 |
| 24 | #define PHY_ID_KSZ8041 0x00221510 | 24 | #define PHY_ID_KSZ8041 0x00221510 |
| 25 | /* undocumented */ | ||
| 26 | #define PHY_ID_KSZ8041RNLI 0x00221537 | ||
| 25 | #define PHY_ID_KSZ8051 0x00221550 | 27 | #define PHY_ID_KSZ8051 0x00221550 |
| 26 | /* same id: ks8001 Rev. A/B, and ks8721 Rev 3. */ | 28 | /* same id: ks8001 Rev. A/B, and ks8721 Rev 3. */ |
| 27 | #define PHY_ID_KSZ8001 0x0022161A | 29 | #define PHY_ID_KSZ8001 0x0022161A |
diff --git a/include/linux/migrate.h b/include/linux/migrate.h index f5096b58b20d..f015c059e159 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h | |||
| @@ -55,7 +55,8 @@ extern int migrate_huge_page_move_mapping(struct address_space *mapping, | |||
| 55 | struct page *newpage, struct page *page); | 55 | struct page *newpage, struct page *page); |
| 56 | extern int migrate_page_move_mapping(struct address_space *mapping, | 56 | extern int migrate_page_move_mapping(struct address_space *mapping, |
| 57 | struct page *newpage, struct page *page, | 57 | struct page *newpage, struct page *page, |
| 58 | struct buffer_head *head, enum migrate_mode mode); | 58 | struct buffer_head *head, enum migrate_mode mode, |
| 59 | int extra_count); | ||
| 59 | #else | 60 | #else |
| 60 | 61 | ||
| 61 | static inline void putback_lru_pages(struct list_head *l) {} | 62 | static inline void putback_lru_pages(struct list_head *l) {} |
| @@ -90,10 +91,19 @@ static inline int migrate_huge_page_move_mapping(struct address_space *mapping, | |||
| 90 | #endif /* CONFIG_MIGRATION */ | 91 | #endif /* CONFIG_MIGRATION */ |
| 91 | 92 | ||
| 92 | #ifdef CONFIG_NUMA_BALANCING | 93 | #ifdef CONFIG_NUMA_BALANCING |
| 94 | extern bool pmd_trans_migrating(pmd_t pmd); | ||
| 95 | extern void wait_migrate_huge_page(struct anon_vma *anon_vma, pmd_t *pmd); | ||
| 93 | extern int migrate_misplaced_page(struct page *page, | 96 | extern int migrate_misplaced_page(struct page *page, |
| 94 | struct vm_area_struct *vma, int node); | 97 | struct vm_area_struct *vma, int node); |
| 95 | extern bool migrate_ratelimited(int node); | 98 | extern bool migrate_ratelimited(int node); |
| 96 | #else | 99 | #else |
| 100 | static inline bool pmd_trans_migrating(pmd_t pmd) | ||
| 101 | { | ||
| 102 | return false; | ||
| 103 | } | ||
| 104 | static inline void wait_migrate_huge_page(struct anon_vma *anon_vma, pmd_t *pmd) | ||
| 105 | { | ||
| 106 | } | ||
| 97 | static inline int migrate_misplaced_page(struct page *page, | 107 | static inline int migrate_misplaced_page(struct page *page, |
| 98 | struct vm_area_struct *vma, int node) | 108 | struct vm_area_struct *vma, int node) |
| 99 | { | 109 | { |
diff --git a/include/linux/mm.h b/include/linux/mm.h index 1cedd000cf29..35527173cf50 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
| @@ -1317,7 +1317,7 @@ static inline pmd_t *pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long a | |||
| 1317 | #endif /* CONFIG_MMU && !__ARCH_HAS_4LEVEL_HACK */ | 1317 | #endif /* CONFIG_MMU && !__ARCH_HAS_4LEVEL_HACK */ |
| 1318 | 1318 | ||
| 1319 | #if USE_SPLIT_PTE_PTLOCKS | 1319 | #if USE_SPLIT_PTE_PTLOCKS |
| 1320 | #if BLOATED_SPINLOCKS | 1320 | #if ALLOC_SPLIT_PTLOCKS |
| 1321 | extern bool ptlock_alloc(struct page *page); | 1321 | extern bool ptlock_alloc(struct page *page); |
| 1322 | extern void ptlock_free(struct page *page); | 1322 | extern void ptlock_free(struct page *page); |
| 1323 | 1323 | ||
| @@ -1325,7 +1325,7 @@ static inline spinlock_t *ptlock_ptr(struct page *page) | |||
| 1325 | { | 1325 | { |
| 1326 | return page->ptl; | 1326 | return page->ptl; |
| 1327 | } | 1327 | } |
| 1328 | #else /* BLOATED_SPINLOCKS */ | 1328 | #else /* ALLOC_SPLIT_PTLOCKS */ |
| 1329 | static inline bool ptlock_alloc(struct page *page) | 1329 | static inline bool ptlock_alloc(struct page *page) |
| 1330 | { | 1330 | { |
| 1331 | return true; | 1331 | return true; |
| @@ -1339,7 +1339,7 @@ static inline spinlock_t *ptlock_ptr(struct page *page) | |||
| 1339 | { | 1339 | { |
| 1340 | return &page->ptl; | 1340 | return &page->ptl; |
| 1341 | } | 1341 | } |
| 1342 | #endif /* BLOATED_SPINLOCKS */ | 1342 | #endif /* ALLOC_SPLIT_PTLOCKS */ |
| 1343 | 1343 | ||
| 1344 | static inline spinlock_t *pte_lockptr(struct mm_struct *mm, pmd_t *pmd) | 1344 | static inline spinlock_t *pte_lockptr(struct mm_struct *mm, pmd_t *pmd) |
| 1345 | { | 1345 | { |
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index bd299418a934..290901a8c1de 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h | |||
| @@ -26,6 +26,7 @@ struct address_space; | |||
| 26 | #define USE_SPLIT_PTE_PTLOCKS (NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS) | 26 | #define USE_SPLIT_PTE_PTLOCKS (NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS) |
| 27 | #define USE_SPLIT_PMD_PTLOCKS (USE_SPLIT_PTE_PTLOCKS && \ | 27 | #define USE_SPLIT_PMD_PTLOCKS (USE_SPLIT_PTE_PTLOCKS && \ |
| 28 | IS_ENABLED(CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK)) | 28 | IS_ENABLED(CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK)) |
| 29 | #define ALLOC_SPLIT_PTLOCKS (SPINLOCK_SIZE > BITS_PER_LONG/8) | ||
| 29 | 30 | ||
| 30 | /* | 31 | /* |
| 31 | * Each physical page in the system has a struct page associated with | 32 | * Each physical page in the system has a struct page associated with |
| @@ -155,7 +156,7 @@ struct page { | |||
| 155 | * system if PG_buddy is set. | 156 | * system if PG_buddy is set. |
| 156 | */ | 157 | */ |
| 157 | #if USE_SPLIT_PTE_PTLOCKS | 158 | #if USE_SPLIT_PTE_PTLOCKS |
| 158 | #if BLOATED_SPINLOCKS | 159 | #if ALLOC_SPLIT_PTLOCKS |
| 159 | spinlock_t *ptl; | 160 | spinlock_t *ptl; |
| 160 | #else | 161 | #else |
| 161 | spinlock_t ptl; | 162 | spinlock_t ptl; |
| @@ -443,6 +444,14 @@ struct mm_struct { | |||
| 443 | /* numa_scan_seq prevents two threads setting pte_numa */ | 444 | /* numa_scan_seq prevents two threads setting pte_numa */ |
| 444 | int numa_scan_seq; | 445 | int numa_scan_seq; |
| 445 | #endif | 446 | #endif |
| 447 | #if defined(CONFIG_NUMA_BALANCING) || defined(CONFIG_COMPACTION) | ||
| 448 | /* | ||
| 449 | * An operation with batched TLB flushing is going on. Anything that | ||
| 450 | * can move process memory needs to flush the TLB when moving a | ||
| 451 | * PROT_NONE or PROT_NUMA mapped page. | ||
| 452 | */ | ||
| 453 | bool tlb_flush_pending; | ||
| 454 | #endif | ||
| 446 | struct uprobes_state uprobes_state; | 455 | struct uprobes_state uprobes_state; |
| 447 | }; | 456 | }; |
| 448 | 457 | ||
| @@ -459,4 +468,45 @@ static inline cpumask_t *mm_cpumask(struct mm_struct *mm) | |||
| 459 | return mm->cpu_vm_mask_var; | 468 | return mm->cpu_vm_mask_var; |
| 460 | } | 469 | } |
| 461 | 470 | ||
| 471 | #if defined(CONFIG_NUMA_BALANCING) || defined(CONFIG_COMPACTION) | ||
| 472 | /* | ||
| 473 | * Memory barriers to keep this state in sync are graciously provided by | ||
| 474 | * the page table locks, outside of which no page table modifications happen. | ||
| 475 | * The barriers below prevent the compiler from re-ordering the instructions | ||
| 476 | * around the memory barriers that are already present in the code. | ||
| 477 | */ | ||
| 478 | static inline bool mm_tlb_flush_pending(struct mm_struct *mm) | ||
| 479 | { | ||
| 480 | barrier(); | ||
| 481 | return mm->tlb_flush_pending; | ||
| 482 | } | ||
| 483 | static inline void set_tlb_flush_pending(struct mm_struct *mm) | ||
| 484 | { | ||
| 485 | mm->tlb_flush_pending = true; | ||
| 486 | |||
| 487 | /* | ||
| 488 | * Guarantee that the tlb_flush_pending store does not leak into the | ||
| 489 | * critical section updating the page tables | ||
| 490 | */ | ||
| 491 | smp_mb__before_spinlock(); | ||
| 492 | } | ||
| 493 | /* Clearing is done after a TLB flush, which also provides a barrier. */ | ||
| 494 | static inline void clear_tlb_flush_pending(struct mm_struct *mm) | ||
| 495 | { | ||
| 496 | barrier(); | ||
| 497 | mm->tlb_flush_pending = false; | ||
| 498 | } | ||
| 499 | #else | ||
| 500 | static inline bool mm_tlb_flush_pending(struct mm_struct *mm) | ||
| 501 | { | ||
| 502 | return false; | ||
| 503 | } | ||
| 504 | static inline void set_tlb_flush_pending(struct mm_struct *mm) | ||
| 505 | { | ||
| 506 | } | ||
| 507 | static inline void clear_tlb_flush_pending(struct mm_struct *mm) | ||
| 508 | { | ||
| 509 | } | ||
| 510 | #endif | ||
| 511 | |||
| 462 | #endif /* _LINUX_MM_TYPES_H */ | 512 | #endif /* _LINUX_MM_TYPES_H */ |
diff --git a/include/linux/net.h b/include/linux/net.h index 4bcee94cef93..69be3e6079c8 100644 --- a/include/linux/net.h +++ b/include/linux/net.h | |||
| @@ -181,7 +181,7 @@ struct proto_ops { | |||
| 181 | int offset, size_t size, int flags); | 181 | int offset, size_t size, int flags); |
| 182 | ssize_t (*splice_read)(struct socket *sock, loff_t *ppos, | 182 | ssize_t (*splice_read)(struct socket *sock, loff_t *ppos, |
| 183 | struct pipe_inode_info *pipe, size_t len, unsigned int flags); | 183 | struct pipe_inode_info *pipe, size_t len, unsigned int flags); |
| 184 | void (*set_peek_off)(struct sock *sk, int val); | 184 | int (*set_peek_off)(struct sock *sk, int val); |
| 185 | }; | 185 | }; |
| 186 | 186 | ||
| 187 | #define DECLARE_SOCKADDR(type, dst, src) \ | 187 | #define DECLARE_SOCKADDR(type, dst, src) \ |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 7f0ed423a360..d9a550bf3e8e 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -1255,7 +1255,7 @@ struct net_device { | |||
| 1255 | unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */ | 1255 | unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */ |
| 1256 | unsigned char addr_assign_type; /* hw address assignment type */ | 1256 | unsigned char addr_assign_type; /* hw address assignment type */ |
| 1257 | unsigned char addr_len; /* hardware address length */ | 1257 | unsigned char addr_len; /* hardware address length */ |
| 1258 | unsigned char neigh_priv_len; | 1258 | unsigned short neigh_priv_len; |
| 1259 | unsigned short dev_id; /* Used to differentiate devices | 1259 | unsigned short dev_id; /* Used to differentiate devices |
| 1260 | * that share the same link | 1260 | * that share the same link |
| 1261 | * layer address | 1261 | * layer address |
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index c1637062c1ce..12c2cb947df5 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h | |||
| @@ -413,16 +413,6 @@ enum lock_type4 { | |||
| 413 | #define NFS4_VERSION 4 | 413 | #define NFS4_VERSION 4 |
| 414 | #define NFS4_MINOR_VERSION 0 | 414 | #define NFS4_MINOR_VERSION 0 |
| 415 | 415 | ||
| 416 | #if defined(CONFIG_NFS_V4_2) | ||
| 417 | #define NFS4_MAX_MINOR_VERSION 2 | ||
| 418 | #else | ||
| 419 | #if defined(CONFIG_NFS_V4_1) | ||
| 420 | #define NFS4_MAX_MINOR_VERSION 1 | ||
| 421 | #else | ||
| 422 | #define NFS4_MAX_MINOR_VERSION 0 | ||
| 423 | #endif /* CONFIG_NFS_V4_1 */ | ||
| 424 | #endif /* CONFIG_NFS_V4_2 */ | ||
| 425 | |||
| 426 | #define NFS4_DEBUG 1 | 416 | #define NFS4_DEBUG 1 |
| 427 | 417 | ||
| 428 | /* Index of predefined Linux client operations */ | 418 | /* Index of predefined Linux client operations */ |
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 14a48207a304..48997374eaf0 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
| @@ -507,24 +507,6 @@ extern int nfs_mountpoint_expiry_timeout; | |||
| 507 | extern void nfs_release_automount_timer(void); | 507 | extern void nfs_release_automount_timer(void); |
| 508 | 508 | ||
| 509 | /* | 509 | /* |
| 510 | * linux/fs/nfs/nfs4proc.c | ||
| 511 | */ | ||
| 512 | #ifdef CONFIG_NFS_V4_SECURITY_LABEL | ||
| 513 | extern struct nfs4_label *nfs4_label_alloc(struct nfs_server *server, gfp_t flags); | ||
| 514 | static inline void nfs4_label_free(struct nfs4_label *label) | ||
| 515 | { | ||
| 516 | if (label) { | ||
| 517 | kfree(label->label); | ||
| 518 | kfree(label); | ||
| 519 | } | ||
| 520 | return; | ||
| 521 | } | ||
| 522 | #else | ||
| 523 | static inline struct nfs4_label *nfs4_label_alloc(struct nfs_server *server, gfp_t flags) { return NULL; } | ||
| 524 | static inline void nfs4_label_free(void *label) {} | ||
| 525 | #endif | ||
| 526 | |||
| 527 | /* | ||
| 528 | * linux/fs/nfs/unlink.c | 510 | * linux/fs/nfs/unlink.c |
| 529 | */ | 511 | */ |
| 530 | extern void nfs_complete_unlink(struct dentry *dentry, struct inode *); | 512 | extern void nfs_complete_unlink(struct dentry *dentry, struct inode *); |
diff --git a/include/linux/padata.h b/include/linux/padata.h index 86292beebfe2..438694650471 100644 --- a/include/linux/padata.h +++ b/include/linux/padata.h | |||
| @@ -129,10 +129,9 @@ struct parallel_data { | |||
| 129 | struct padata_serial_queue __percpu *squeue; | 129 | struct padata_serial_queue __percpu *squeue; |
| 130 | atomic_t reorder_objects; | 130 | atomic_t reorder_objects; |
| 131 | atomic_t refcnt; | 131 | atomic_t refcnt; |
| 132 | atomic_t seq_nr; | ||
| 132 | struct padata_cpumask cpumask; | 133 | struct padata_cpumask cpumask; |
| 133 | spinlock_t lock ____cacheline_aligned; | 134 | spinlock_t lock ____cacheline_aligned; |
| 134 | spinlock_t seq_lock; | ||
| 135 | unsigned int seq_nr; | ||
| 136 | unsigned int processed; | 135 | unsigned int processed; |
| 137 | struct timer_list timer; | 136 | struct timer_list timer; |
| 138 | }; | 137 | }; |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 1084a15175e0..a13d6825e586 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -960,6 +960,7 @@ void pci_update_resource(struct pci_dev *dev, int resno); | |||
| 960 | int __must_check pci_assign_resource(struct pci_dev *dev, int i); | 960 | int __must_check pci_assign_resource(struct pci_dev *dev, int i); |
| 961 | int __must_check pci_reassign_resource(struct pci_dev *dev, int i, resource_size_t add_size, resource_size_t align); | 961 | int __must_check pci_reassign_resource(struct pci_dev *dev, int i, resource_size_t add_size, resource_size_t align); |
| 962 | int pci_select_bars(struct pci_dev *dev, unsigned long flags); | 962 | int pci_select_bars(struct pci_dev *dev, unsigned long flags); |
| 963 | bool pci_device_is_present(struct pci_dev *pdev); | ||
| 963 | 964 | ||
| 964 | /* ROM control related routines */ | 965 | /* ROM control related routines */ |
| 965 | int pci_enable_rom(struct pci_dev *pdev); | 966 | int pci_enable_rom(struct pci_dev *pdev); |
| @@ -1567,65 +1568,65 @@ enum pci_fixup_pass { | |||
| 1567 | /* Anonymous variables would be nice... */ | 1568 | /* Anonymous variables would be nice... */ |
| 1568 | #define DECLARE_PCI_FIXUP_SECTION(section, name, vendor, device, class, \ | 1569 | #define DECLARE_PCI_FIXUP_SECTION(section, name, vendor, device, class, \ |
| 1569 | class_shift, hook) \ | 1570 | class_shift, hook) \ |
| 1570 | static const struct pci_fixup __pci_fixup_##name __used \ | 1571 | static const struct pci_fixup __PASTE(__pci_fixup_##name,__LINE__) __used \ |
| 1571 | __attribute__((__section__(#section), aligned((sizeof(void *))))) \ | 1572 | __attribute__((__section__(#section), aligned((sizeof(void *))))) \ |
| 1572 | = { vendor, device, class, class_shift, hook }; | 1573 | = { vendor, device, class, class_shift, hook }; |
| 1573 | 1574 | ||
| 1574 | #define DECLARE_PCI_FIXUP_CLASS_EARLY(vendor, device, class, \ | 1575 | #define DECLARE_PCI_FIXUP_CLASS_EARLY(vendor, device, class, \ |
| 1575 | class_shift, hook) \ | 1576 | class_shift, hook) \ |
| 1576 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_early, \ | 1577 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_early, \ |
| 1577 | vendor##device##hook, vendor, device, class, class_shift, hook) | 1578 | hook, vendor, device, class, class_shift, hook) |
| 1578 | #define DECLARE_PCI_FIXUP_CLASS_HEADER(vendor, device, class, \ | 1579 | #define DECLARE_PCI_FIXUP_CLASS_HEADER(vendor, device, class, \ |
| 1579 | class_shift, hook) \ | 1580 | class_shift, hook) \ |
| 1580 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_header, \ | 1581 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_header, \ |
| 1581 | vendor##device##hook, vendor, device, class, class_shift, hook) | 1582 | hook, vendor, device, class, class_shift, hook) |
| 1582 | #define DECLARE_PCI_FIXUP_CLASS_FINAL(vendor, device, class, \ | 1583 | #define DECLARE_PCI_FIXUP_CLASS_FINAL(vendor, device, class, \ |
| 1583 | class_shift, hook) \ | 1584 | class_shift, hook) \ |
| 1584 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_final, \ | 1585 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_final, \ |
| 1585 | vendor##device##hook, vendor, device, class, class_shift, hook) | 1586 | hook, vendor, device, class, class_shift, hook) |
| 1586 | #define DECLARE_PCI_FIXUP_CLASS_ENABLE(vendor, device, class, \ | 1587 | #define DECLARE_PCI_FIXUP_CLASS_ENABLE(vendor, device, class, \ |
| 1587 | class_shift, hook) \ | 1588 | class_shift, hook) \ |
| 1588 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_enable, \ | 1589 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_enable, \ |
| 1589 | vendor##device##hook, vendor, device, class, class_shift, hook) | 1590 | hook, vendor, device, class, class_shift, hook) |
| 1590 | #define DECLARE_PCI_FIXUP_CLASS_RESUME(vendor, device, class, \ | 1591 | #define DECLARE_PCI_FIXUP_CLASS_RESUME(vendor, device, class, \ |
| 1591 | class_shift, hook) \ | 1592 | class_shift, hook) \ |
| 1592 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume, \ | 1593 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume, \ |
| 1593 | resume##vendor##device##hook, vendor, device, class, \ | 1594 | resume##hook, vendor, device, class, \ |
| 1594 | class_shift, hook) | 1595 | class_shift, hook) |
| 1595 | #define DECLARE_PCI_FIXUP_CLASS_RESUME_EARLY(vendor, device, class, \ | 1596 | #define DECLARE_PCI_FIXUP_CLASS_RESUME_EARLY(vendor, device, class, \ |
| 1596 | class_shift, hook) \ | 1597 | class_shift, hook) \ |
| 1597 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume_early, \ | 1598 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume_early, \ |
| 1598 | resume_early##vendor##device##hook, vendor, device, \ | 1599 | resume_early##hook, vendor, device, \ |
| 1599 | class, class_shift, hook) | 1600 | class, class_shift, hook) |
| 1600 | #define DECLARE_PCI_FIXUP_CLASS_SUSPEND(vendor, device, class, \ | 1601 | #define DECLARE_PCI_FIXUP_CLASS_SUSPEND(vendor, device, class, \ |
| 1601 | class_shift, hook) \ | 1602 | class_shift, hook) \ |
| 1602 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_suspend, \ | 1603 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_suspend, \ |
| 1603 | suspend##vendor##device##hook, vendor, device, class, \ | 1604 | suspend##hook, vendor, device, class, \ |
| 1604 | class_shift, hook) | 1605 | class_shift, hook) |
| 1605 | 1606 | ||
| 1606 | #define DECLARE_PCI_FIXUP_EARLY(vendor, device, hook) \ | 1607 | #define DECLARE_PCI_FIXUP_EARLY(vendor, device, hook) \ |
| 1607 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_early, \ | 1608 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_early, \ |
| 1608 | vendor##device##hook, vendor, device, PCI_ANY_ID, 0, hook) | 1609 | hook, vendor, device, PCI_ANY_ID, 0, hook) |
| 1609 | #define DECLARE_PCI_FIXUP_HEADER(vendor, device, hook) \ | 1610 | #define DECLARE_PCI_FIXUP_HEADER(vendor, device, hook) \ |
| 1610 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_header, \ | 1611 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_header, \ |
| 1611 | vendor##device##hook, vendor, device, PCI_ANY_ID, 0, hook) | 1612 | hook, vendor, device, PCI_ANY_ID, 0, hook) |
| 1612 | #define DECLARE_PCI_FIXUP_FINAL(vendor, device, hook) \ | 1613 | #define DECLARE_PCI_FIXUP_FINAL(vendor, device, hook) \ |
| 1613 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_final, \ | 1614 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_final, \ |
| 1614 | vendor##device##hook, vendor, device, PCI_ANY_ID, 0, hook) | 1615 | hook, vendor, device, PCI_ANY_ID, 0, hook) |
| 1615 | #define DECLARE_PCI_FIXUP_ENABLE(vendor, device, hook) \ | 1616 | #define DECLARE_PCI_FIXUP_ENABLE(vendor, device, hook) \ |
| 1616 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_enable, \ | 1617 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_enable, \ |
| 1617 | vendor##device##hook, vendor, device, PCI_ANY_ID, 0, hook) | 1618 | hook, vendor, device, PCI_ANY_ID, 0, hook) |
| 1618 | #define DECLARE_PCI_FIXUP_RESUME(vendor, device, hook) \ | 1619 | #define DECLARE_PCI_FIXUP_RESUME(vendor, device, hook) \ |
| 1619 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume, \ | 1620 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume, \ |
| 1620 | resume##vendor##device##hook, vendor, device, \ | 1621 | resume##hook, vendor, device, \ |
| 1621 | PCI_ANY_ID, 0, hook) | 1622 | PCI_ANY_ID, 0, hook) |
| 1622 | #define DECLARE_PCI_FIXUP_RESUME_EARLY(vendor, device, hook) \ | 1623 | #define DECLARE_PCI_FIXUP_RESUME_EARLY(vendor, device, hook) \ |
| 1623 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume_early, \ | 1624 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume_early, \ |
| 1624 | resume_early##vendor##device##hook, vendor, device, \ | 1625 | resume_early##hook, vendor, device, \ |
| 1625 | PCI_ANY_ID, 0, hook) | 1626 | PCI_ANY_ID, 0, hook) |
| 1626 | #define DECLARE_PCI_FIXUP_SUSPEND(vendor, device, hook) \ | 1627 | #define DECLARE_PCI_FIXUP_SUSPEND(vendor, device, hook) \ |
| 1627 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_suspend, \ | 1628 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_suspend, \ |
| 1628 | suspend##vendor##device##hook, vendor, device, \ | 1629 | suspend##hook, vendor, device, \ |
| 1629 | PCI_ANY_ID, 0, hook) | 1630 | PCI_ANY_ID, 0, hook) |
| 1630 | 1631 | ||
| 1631 | #ifdef CONFIG_PCI_QUIRKS | 1632 | #ifdef CONFIG_PCI_QUIRKS |
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h index 57e890abe1f0..a5fc7d01aad6 100644 --- a/include/linux/percpu-defs.h +++ b/include/linux/percpu-defs.h | |||
| @@ -69,6 +69,7 @@ | |||
| 69 | __PCPU_DUMMY_ATTRS char __pcpu_scope_##name; \ | 69 | __PCPU_DUMMY_ATTRS char __pcpu_scope_##name; \ |
| 70 | extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ | 70 | extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ |
| 71 | __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ | 71 | __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ |
| 72 | extern __PCPU_ATTRS(sec) __typeof__(type) name; \ | ||
| 72 | __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak \ | 73 | __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak \ |
| 73 | __typeof__(type) name | 74 | __typeof__(type) name |
| 74 | #else | 75 | #else |
diff --git a/include/linux/platform_data/asoc-ti-mcbsp.h b/include/linux/platform_data/asoc-ti-mcbsp.h index c78d90b28b19..3c73c045f8da 100644 --- a/include/linux/platform_data/asoc-ti-mcbsp.h +++ b/include/linux/platform_data/asoc-ti-mcbsp.h | |||
| @@ -1,6 +1,4 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * arch/arm/plat-omap/include/mach/mcbsp.h | ||
| 3 | * | ||
| 4 | * Defines for Multi-Channel Buffered Serial Port | 2 | * Defines for Multi-Channel Buffered Serial Port |
| 5 | * | 3 | * |
| 6 | * Copyright (C) 2002 RidgeRun, Inc. | 4 | * Copyright (C) 2002 RidgeRun, Inc. |
| @@ -21,8 +19,8 @@ | |||
| 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 | * | 20 | * |
| 23 | */ | 21 | */ |
| 24 | #ifndef __ASM_ARCH_OMAP_MCBSP_H | 22 | #ifndef __ASOC_TI_MCBSP_H |
| 25 | #define __ASM_ARCH_OMAP_MCBSP_H | 23 | #define __ASOC_TI_MCBSP_H |
| 26 | 24 | ||
| 27 | #include <linux/spinlock.h> | 25 | #include <linux/spinlock.h> |
| 28 | #include <linux/clk.h> | 26 | #include <linux/clk.h> |
diff --git a/include/linux/platform_data/asoc-ux500-msp.h b/include/linux/platform_data/asoc-ux500-msp.h index 9991aea3d577..2f34bb98fe2a 100644 --- a/include/linux/platform_data/asoc-ux500-msp.h +++ b/include/linux/platform_data/asoc-ux500-msp.h | |||
| @@ -10,16 +10,9 @@ | |||
| 10 | 10 | ||
| 11 | #include <linux/platform_data/dma-ste-dma40.h> | 11 | #include <linux/platform_data/dma-ste-dma40.h> |
| 12 | 12 | ||
| 13 | enum msp_i2s_id { | ||
| 14 | MSP_I2S_0 = 0, | ||
| 15 | MSP_I2S_1, | ||
| 16 | MSP_I2S_2, | ||
| 17 | MSP_I2S_3, | ||
| 18 | }; | ||
| 19 | |||
| 20 | /* Platform data structure for a MSP I2S-device */ | 13 | /* Platform data structure for a MSP I2S-device */ |
| 21 | struct msp_i2s_platform_data { | 14 | struct msp_i2s_platform_data { |
| 22 | enum msp_i2s_id id; | 15 | int id; |
| 23 | struct stedma40_chan_cfg *msp_i2s_dma_rx; | 16 | struct stedma40_chan_cfg *msp_i2s_dma_rx; |
| 24 | struct stedma40_chan_cfg *msp_i2s_dma_tx; | 17 | struct stedma40_chan_cfg *msp_i2s_dma_tx; |
| 25 | }; | 18 | }; |
diff --git a/include/linux/platform_data/davinci_asp.h b/include/linux/platform_data/davinci_asp.h index 689a856b86f9..5245992b0367 100644 --- a/include/linux/platform_data/davinci_asp.h +++ b/include/linux/platform_data/davinci_asp.h | |||
| @@ -92,6 +92,7 @@ enum { | |||
| 92 | MCASP_VERSION_1 = 0, /* DM646x */ | 92 | MCASP_VERSION_1 = 0, /* DM646x */ |
| 93 | MCASP_VERSION_2, /* DA8xx/OMAPL1x */ | 93 | MCASP_VERSION_2, /* DA8xx/OMAPL1x */ |
| 94 | MCASP_VERSION_3, /* TI81xx/AM33xx */ | 94 | MCASP_VERSION_3, /* TI81xx/AM33xx */ |
| 95 | MCASP_VERSION_4, /* DRA7xxx */ | ||
| 95 | }; | 96 | }; |
| 96 | 97 | ||
| 97 | enum mcbsp_clk_input_pin { | 98 | enum mcbsp_clk_input_pin { |
diff --git a/include/linux/pstore.h b/include/linux/pstore.h index abd437d0a8a7..ece0c6bbfcc5 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h | |||
| @@ -51,6 +51,7 @@ struct pstore_info { | |||
| 51 | char *buf; | 51 | char *buf; |
| 52 | size_t bufsize; | 52 | size_t bufsize; |
| 53 | struct mutex read_mutex; /* serialize open/read/close */ | 53 | struct mutex read_mutex; /* serialize open/read/close */ |
| 54 | int flags; | ||
| 54 | int (*open)(struct pstore_info *psi); | 55 | int (*open)(struct pstore_info *psi); |
| 55 | int (*close)(struct pstore_info *psi); | 56 | int (*close)(struct pstore_info *psi); |
| 56 | ssize_t (*read)(u64 *id, enum pstore_type_id *type, | 57 | ssize_t (*read)(u64 *id, enum pstore_type_id *type, |
| @@ -70,6 +71,8 @@ struct pstore_info { | |||
| 70 | void *data; | 71 | void *data; |
| 71 | }; | 72 | }; |
| 72 | 73 | ||
| 74 | #define PSTORE_FLAGS_FRAGILE 1 | ||
| 75 | |||
| 73 | #ifdef CONFIG_PSTORE | 76 | #ifdef CONFIG_PSTORE |
| 74 | extern int pstore_register(struct pstore_info *); | 77 | extern int pstore_register(struct pstore_info *); |
| 75 | extern bool pstore_cannot_block_path(enum kmsg_dump_reason reason); | 78 | extern bool pstore_cannot_block_path(enum kmsg_dump_reason reason); |
diff --git a/include/linux/reboot.h b/include/linux/reboot.h index 8e00f9f6f963..9e7db9e73cc1 100644 --- a/include/linux/reboot.h +++ b/include/linux/reboot.h | |||
| @@ -43,6 +43,7 @@ extern int unregister_reboot_notifier(struct notifier_block *); | |||
| 43 | * Architecture-specific implementations of sys_reboot commands. | 43 | * Architecture-specific implementations of sys_reboot commands. |
| 44 | */ | 44 | */ |
| 45 | 45 | ||
| 46 | extern void migrate_to_reboot_cpu(void); | ||
| 46 | extern void machine_restart(char *cmd); | 47 | extern void machine_restart(char *cmd); |
| 47 | extern void machine_halt(void); | 48 | extern void machine_halt(void); |
| 48 | extern void machine_power_off(void); | 49 | extern void machine_power_off(void); |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 7e35d4b9e14a..53f97eb8dbc7 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -440,8 +440,6 @@ struct task_cputime { | |||
| 440 | .sum_exec_runtime = 0, \ | 440 | .sum_exec_runtime = 0, \ |
| 441 | } | 441 | } |
| 442 | 442 | ||
| 443 | #define PREEMPT_ENABLED (PREEMPT_NEED_RESCHED) | ||
| 444 | |||
| 445 | #ifdef CONFIG_PREEMPT_COUNT | 443 | #ifdef CONFIG_PREEMPT_COUNT |
| 446 | #define PREEMPT_DISABLED (1 + PREEMPT_ENABLED) | 444 | #define PREEMPT_DISABLED (1 + PREEMPT_ENABLED) |
| 447 | #else | 445 | #else |
| @@ -831,8 +829,6 @@ struct sched_domain { | |||
| 831 | unsigned int balance_interval; /* initialise to 1. units in ms. */ | 829 | unsigned int balance_interval; /* initialise to 1. units in ms. */ |
| 832 | unsigned int nr_balance_failed; /* initialise to 0 */ | 830 | unsigned int nr_balance_failed; /* initialise to 0 */ |
| 833 | 831 | ||
| 834 | u64 last_update; | ||
| 835 | |||
| 836 | /* idle_balance() stats */ | 832 | /* idle_balance() stats */ |
| 837 | u64 max_newidle_lb_cost; | 833 | u64 max_newidle_lb_cost; |
| 838 | unsigned long next_decay_max_lb_cost; | 834 | unsigned long next_decay_max_lb_cost; |
| @@ -934,7 +930,8 @@ struct pipe_inode_info; | |||
| 934 | struct uts_namespace; | 930 | struct uts_namespace; |
| 935 | 931 | ||
| 936 | struct load_weight { | 932 | struct load_weight { |
| 937 | unsigned long weight, inv_weight; | 933 | unsigned long weight; |
| 934 | u32 inv_weight; | ||
| 938 | }; | 935 | }; |
| 939 | 936 | ||
| 940 | struct sched_avg { | 937 | struct sched_avg { |
diff --git a/include/linux/shmem_fs.h b/include/linux/shmem_fs.h index 30aa0dc60d75..9d55438bc4ad 100644 --- a/include/linux/shmem_fs.h +++ b/include/linux/shmem_fs.h | |||
| @@ -47,6 +47,8 @@ extern int shmem_init(void); | |||
| 47 | extern int shmem_fill_super(struct super_block *sb, void *data, int silent); | 47 | extern int shmem_fill_super(struct super_block *sb, void *data, int silent); |
| 48 | extern struct file *shmem_file_setup(const char *name, | 48 | extern struct file *shmem_file_setup(const char *name, |
| 49 | loff_t size, unsigned long flags); | 49 | loff_t size, unsigned long flags); |
| 50 | extern struct file *shmem_kernel_file_setup(const char *name, loff_t size, | ||
| 51 | unsigned long flags); | ||
| 50 | extern int shmem_zero_setup(struct vm_area_struct *); | 52 | extern int shmem_zero_setup(struct vm_area_struct *); |
| 51 | extern int shmem_lock(struct file *file, int lock, struct user_struct *user); | 53 | extern int shmem_lock(struct file *file, int lock, struct user_struct *user); |
| 52 | extern void shmem_unlock_mapping(struct address_space *mapping); | 54 | extern void shmem_unlock_mapping(struct address_space *mapping); |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index bec1cc7d5e3c..215b5ea1cb30 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -2263,6 +2263,24 @@ static inline void skb_postpull_rcsum(struct sk_buff *skb, | |||
| 2263 | 2263 | ||
| 2264 | unsigned char *skb_pull_rcsum(struct sk_buff *skb, unsigned int len); | 2264 | unsigned char *skb_pull_rcsum(struct sk_buff *skb, unsigned int len); |
| 2265 | 2265 | ||
| 2266 | /** | ||
| 2267 | * pskb_trim_rcsum - trim received skb and update checksum | ||
| 2268 | * @skb: buffer to trim | ||
| 2269 | * @len: new length | ||
| 2270 | * | ||
| 2271 | * This is exactly the same as pskb_trim except that it ensures the | ||
| 2272 | * checksum of received packets are still valid after the operation. | ||
| 2273 | */ | ||
| 2274 | |||
| 2275 | static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len) | ||
| 2276 | { | ||
| 2277 | if (likely(len >= skb->len)) | ||
| 2278 | return 0; | ||
| 2279 | if (skb->ip_summed == CHECKSUM_COMPLETE) | ||
| 2280 | skb->ip_summed = CHECKSUM_NONE; | ||
| 2281 | return __pskb_trim(skb, len); | ||
| 2282 | } | ||
| 2283 | |||
| 2266 | #define skb_queue_walk(queue, skb) \ | 2284 | #define skb_queue_walk(queue, skb) \ |
| 2267 | for (skb = (queue)->next; \ | 2285 | for (skb = (queue)->next; \ |
| 2268 | skb != (struct sk_buff *)(queue); \ | 2286 | skb != (struct sk_buff *)(queue); \ |
| @@ -2360,27 +2378,6 @@ __wsum __skb_checksum(const struct sk_buff *skb, int offset, int len, | |||
| 2360 | __wsum skb_checksum(const struct sk_buff *skb, int offset, int len, | 2378 | __wsum skb_checksum(const struct sk_buff *skb, int offset, int len, |
| 2361 | __wsum csum); | 2379 | __wsum csum); |
| 2362 | 2380 | ||
| 2363 | /** | ||
| 2364 | * pskb_trim_rcsum - trim received skb and update checksum | ||
| 2365 | * @skb: buffer to trim | ||
| 2366 | * @len: new length | ||
| 2367 | * | ||
| 2368 | * This is exactly the same as pskb_trim except that it ensures the | ||
| 2369 | * checksum of received packets are still valid after the operation. | ||
| 2370 | */ | ||
| 2371 | |||
| 2372 | static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len) | ||
| 2373 | { | ||
| 2374 | if (likely(len >= skb->len)) | ||
| 2375 | return 0; | ||
| 2376 | if (skb->ip_summed == CHECKSUM_COMPLETE) { | ||
| 2377 | __wsum adj = skb_checksum(skb, len, skb->len - len, 0); | ||
| 2378 | |||
| 2379 | skb->csum = csum_sub(skb->csum, adj); | ||
| 2380 | } | ||
| 2381 | return __pskb_trim(skb, len); | ||
| 2382 | } | ||
| 2383 | |||
| 2384 | static inline void *skb_header_pointer(const struct sk_buff *skb, int offset, | 2381 | static inline void *skb_header_pointer(const struct sk_buff *skb, int offset, |
| 2385 | int len, void *buffer) | 2382 | int len, void *buffer) |
| 2386 | { | 2383 | { |
diff --git a/include/linux/slab.h b/include/linux/slab.h index c2bba248fa63..1e2f4fe12773 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h | |||
| @@ -388,10 +388,55 @@ static __always_inline void *kmalloc_large(size_t size, gfp_t flags) | |||
| 388 | /** | 388 | /** |
| 389 | * kmalloc - allocate memory | 389 | * kmalloc - allocate memory |
| 390 | * @size: how many bytes of memory are required. | 390 | * @size: how many bytes of memory are required. |
| 391 | * @flags: the type of memory to allocate (see kcalloc). | 391 | * @flags: the type of memory to allocate. |
| 392 | * | 392 | * |
| 393 | * kmalloc is the normal method of allocating memory | 393 | * kmalloc is the normal method of allocating memory |
| 394 | * for objects smaller than page size in the kernel. | 394 | * for objects smaller than page size in the kernel. |
| 395 | * | ||
| 396 | * The @flags argument may be one of: | ||
| 397 | * | ||
| 398 | * %GFP_USER - Allocate memory on behalf of user. May sleep. | ||
| 399 | * | ||
| 400 | * %GFP_KERNEL - Allocate normal kernel ram. May sleep. | ||
| 401 | * | ||
| 402 | * %GFP_ATOMIC - Allocation will not sleep. May use emergency pools. | ||
| 403 | * For example, use this inside interrupt handlers. | ||
| 404 | * | ||
| 405 | * %GFP_HIGHUSER - Allocate pages from high memory. | ||
| 406 | * | ||
| 407 | * %GFP_NOIO - Do not do any I/O at all while trying to get memory. | ||
| 408 | * | ||
| 409 | * %GFP_NOFS - Do not make any fs calls while trying to get memory. | ||
| 410 | * | ||
| 411 | * %GFP_NOWAIT - Allocation will not sleep. | ||
| 412 | * | ||
| 413 | * %GFP_THISNODE - Allocate node-local memory only. | ||
| 414 | * | ||
| 415 | * %GFP_DMA - Allocation suitable for DMA. | ||
| 416 | * Should only be used for kmalloc() caches. Otherwise, use a | ||
| 417 | * slab created with SLAB_DMA. | ||
| 418 | * | ||
| 419 | * Also it is possible to set different flags by OR'ing | ||
| 420 | * in one or more of the following additional @flags: | ||
| 421 | * | ||
| 422 | * %__GFP_COLD - Request cache-cold pages instead of | ||
| 423 | * trying to return cache-warm pages. | ||
| 424 | * | ||
| 425 | * %__GFP_HIGH - This allocation has high priority and may use emergency pools. | ||
| 426 | * | ||
| 427 | * %__GFP_NOFAIL - Indicate that this allocation is in no way allowed to fail | ||
| 428 | * (think twice before using). | ||
| 429 | * | ||
| 430 | * %__GFP_NORETRY - If memory is not immediately available, | ||
| 431 | * then give up at once. | ||
| 432 | * | ||
| 433 | * %__GFP_NOWARN - If allocation fails, don't issue any warnings. | ||
| 434 | * | ||
| 435 | * %__GFP_REPEAT - If allocation fails initially, try once more before failing. | ||
| 436 | * | ||
| 437 | * There are other flags available as well, but these are not intended | ||
| 438 | * for general use, and so are not documented here. For a full list of | ||
| 439 | * potential flags, always refer to linux/gfp.h. | ||
| 395 | */ | 440 | */ |
| 396 | static __always_inline void *kmalloc(size_t size, gfp_t flags) | 441 | static __always_inline void *kmalloc(size_t size, gfp_t flags) |
| 397 | { | 442 | { |
| @@ -502,61 +547,6 @@ int cache_show(struct kmem_cache *s, struct seq_file *m); | |||
| 502 | void print_slabinfo_header(struct seq_file *m); | 547 | void print_slabinfo_header(struct seq_file *m); |
| 503 | 548 | ||
| 504 | /** | 549 | /** |
| 505 | * kmalloc - allocate memory | ||
| 506 | * @size: how many bytes of memory are required. | ||
| 507 | * @flags: the type of memory to allocate. | ||
| 508 | * | ||
| 509 | * The @flags argument may be one of: | ||
| 510 | * | ||
| 511 | * %GFP_USER - Allocate memory on behalf of user. May sleep. | ||
| 512 | * | ||
| 513 | * %GFP_KERNEL - Allocate normal kernel ram. May sleep. | ||
| 514 | * | ||
| 515 | * %GFP_ATOMIC - Allocation will not sleep. May use emergency pools. | ||
| 516 | * For example, use this inside interrupt handlers. | ||
| 517 | * | ||
| 518 | * %GFP_HIGHUSER - Allocate pages from high memory. | ||
| 519 | * | ||
| 520 | * %GFP_NOIO - Do not do any I/O at all while trying to get memory. | ||
| 521 | * | ||
| 522 | * %GFP_NOFS - Do not make any fs calls while trying to get memory. | ||
| 523 | * | ||
| 524 | * %GFP_NOWAIT - Allocation will not sleep. | ||
| 525 | * | ||
| 526 | * %GFP_THISNODE - Allocate node-local memory only. | ||
| 527 | * | ||
| 528 | * %GFP_DMA - Allocation suitable for DMA. | ||
| 529 | * Should only be used for kmalloc() caches. Otherwise, use a | ||
| 530 | * slab created with SLAB_DMA. | ||
| 531 | * | ||
| 532 | * Also it is possible to set different flags by OR'ing | ||
| 533 | * in one or more of the following additional @flags: | ||
| 534 | * | ||
| 535 | * %__GFP_COLD - Request cache-cold pages instead of | ||
| 536 | * trying to return cache-warm pages. | ||
| 537 | * | ||
| 538 | * %__GFP_HIGH - This allocation has high priority and may use emergency pools. | ||
| 539 | * | ||
| 540 | * %__GFP_NOFAIL - Indicate that this allocation is in no way allowed to fail | ||
| 541 | * (think twice before using). | ||
| 542 | * | ||
| 543 | * %__GFP_NORETRY - If memory is not immediately available, | ||
| 544 | * then give up at once. | ||
| 545 | * | ||
| 546 | * %__GFP_NOWARN - If allocation fails, don't issue any warnings. | ||
| 547 | * | ||
| 548 | * %__GFP_REPEAT - If allocation fails initially, try once more before failing. | ||
| 549 | * | ||
| 550 | * There are other flags available as well, but these are not intended | ||
| 551 | * for general use, and so are not documented here. For a full list of | ||
| 552 | * potential flags, always refer to linux/gfp.h. | ||
| 553 | * | ||
| 554 | * kmalloc is the normal method of allocating memory | ||
| 555 | * in the kernel. | ||
| 556 | */ | ||
| 557 | static __always_inline void *kmalloc(size_t size, gfp_t flags); | ||
| 558 | |||
| 559 | /** | ||
| 560 | * kmalloc_array - allocate memory for an array. | 550 | * kmalloc_array - allocate memory for an array. |
| 561 | * @n: number of elements. | 551 | * @n: number of elements. |
| 562 | * @size: element size. | 552 | * @size: element size. |
diff --git a/include/linux/tegra-powergate.h b/include/linux/tegra-powergate.h index c98cfa406952..fd4498329c7c 100644 --- a/include/linux/tegra-powergate.h +++ b/include/linux/tegra-powergate.h | |||
| @@ -45,6 +45,7 @@ struct clk; | |||
| 45 | 45 | ||
| 46 | #define TEGRA_POWERGATE_3D0 TEGRA_POWERGATE_3D | 46 | #define TEGRA_POWERGATE_3D0 TEGRA_POWERGATE_3D |
| 47 | 47 | ||
| 48 | #ifdef CONFIG_ARCH_TEGRA | ||
| 48 | int tegra_powergate_is_powered(int id); | 49 | int tegra_powergate_is_powered(int id); |
| 49 | int tegra_powergate_power_on(int id); | 50 | int tegra_powergate_power_on(int id); |
| 50 | int tegra_powergate_power_off(int id); | 51 | int tegra_powergate_power_off(int id); |
| @@ -52,5 +53,31 @@ int tegra_powergate_remove_clamping(int id); | |||
| 52 | 53 | ||
| 53 | /* Must be called with clk disabled, and returns with clk enabled */ | 54 | /* Must be called with clk disabled, and returns with clk enabled */ |
| 54 | int tegra_powergate_sequence_power_up(int id, struct clk *clk); | 55 | int tegra_powergate_sequence_power_up(int id, struct clk *clk); |
| 56 | #else | ||
| 57 | static inline int tegra_powergate_is_powered(int id) | ||
| 58 | { | ||
| 59 | return -ENOSYS; | ||
| 60 | } | ||
| 61 | |||
| 62 | static inline int tegra_powergate_power_on(int id) | ||
| 63 | { | ||
| 64 | return -ENOSYS; | ||
| 65 | } | ||
| 66 | |||
| 67 | static inline int tegra_powergate_power_off(int id) | ||
| 68 | { | ||
| 69 | return -ENOSYS; | ||
| 70 | } | ||
| 71 | |||
| 72 | static inline int tegra_powergate_remove_clamping(int id) | ||
| 73 | { | ||
| 74 | return -ENOSYS; | ||
| 75 | } | ||
| 76 | |||
| 77 | static inline int tegra_powergate_sequence_power_up(int id, struct clk *clk) | ||
| 78 | { | ||
| 79 | return -ENOSYS; | ||
| 80 | } | ||
| 81 | #endif | ||
| 55 | 82 | ||
| 56 | #endif /* _MACH_TEGRA_POWERGATE_H_ */ | 83 | #endif /* _MACH_TEGRA_POWERGATE_H_ */ |
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index ebeab360d851..f16dc0a40049 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h | |||
| @@ -267,6 +267,8 @@ static inline void tracepoint_synchronize_unregister(void) | |||
| 267 | 267 | ||
| 268 | #define TRACE_EVENT_FLAGS(event, flag) | 268 | #define TRACE_EVENT_FLAGS(event, flag) |
| 269 | 269 | ||
| 270 | #define TRACE_EVENT_PERF_PERM(event, expr...) | ||
| 271 | |||
| 270 | #endif /* DECLARE_TRACE */ | 272 | #endif /* DECLARE_TRACE */ |
| 271 | 273 | ||
| 272 | #ifndef TRACE_EVENT | 274 | #ifndef TRACE_EVENT |
| @@ -399,4 +401,6 @@ static inline void tracepoint_synchronize_unregister(void) | |||
| 399 | 401 | ||
| 400 | #define TRACE_EVENT_FLAGS(event, flag) | 402 | #define TRACE_EVENT_FLAGS(event, flag) |
| 401 | 403 | ||
| 404 | #define TRACE_EVENT_PERF_PERM(event, expr...) | ||
| 405 | |||
| 402 | #endif /* ifdef TRACE_EVENT (see note above) */ | 406 | #endif /* ifdef TRACE_EVENT (see note above) */ |
diff --git a/include/linux/usb.h b/include/linux/usb.h index 7454865ad148..512ab162832c 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
| @@ -1264,6 +1264,8 @@ typedef void (*usb_complete_t)(struct urb *); | |||
| 1264 | * @sg: scatter gather buffer list, the buffer size of each element in | 1264 | * @sg: scatter gather buffer list, the buffer size of each element in |
| 1265 | * the list (except the last) must be divisible by the endpoint's | 1265 | * the list (except the last) must be divisible by the endpoint's |
| 1266 | * max packet size if no_sg_constraint isn't set in 'struct usb_bus' | 1266 | * max packet size if no_sg_constraint isn't set in 'struct usb_bus' |
| 1267 | * (FIXME: scatter-gather under xHCI is broken for periodic transfers. | ||
| 1268 | * Do not use urb->sg for interrupt endpoints for now, only bulk.) | ||
| 1267 | * @num_mapped_sgs: (internal) number of mapped sg entries | 1269 | * @num_mapped_sgs: (internal) number of mapped sg entries |
| 1268 | * @num_sgs: number of entries in the sg list | 1270 | * @num_sgs: number of entries in the sg list |
| 1269 | * @transfer_buffer_length: How big is transfer_buffer. The transfer may | 1271 | * @transfer_buffer_length: How big is transfer_buffer. The transfer may |
diff --git a/include/linux/usb/wusb.h b/include/linux/usb/wusb.h index 0c4d4ca370ec..eeb28329fa3c 100644 --- a/include/linux/usb/wusb.h +++ b/include/linux/usb/wusb.h | |||
| @@ -271,6 +271,8 @@ static inline u8 wusb_key_index(int index, int type, int originator) | |||
| 271 | #define WUSB_KEY_INDEX_TYPE_GTK 2 | 271 | #define WUSB_KEY_INDEX_TYPE_GTK 2 |
| 272 | #define WUSB_KEY_INDEX_ORIGINATOR_HOST 0 | 272 | #define WUSB_KEY_INDEX_ORIGINATOR_HOST 0 |
| 273 | #define WUSB_KEY_INDEX_ORIGINATOR_DEVICE 1 | 273 | #define WUSB_KEY_INDEX_ORIGINATOR_DEVICE 1 |
| 274 | /* bits 0-3 used for the key index. */ | ||
| 275 | #define WUSB_KEY_INDEX_MAX 15 | ||
| 274 | 276 | ||
| 275 | /* A CCM Nonce, defined in WUSB1.0[6.4.1] */ | 277 | /* A CCM Nonce, defined in WUSB1.0[6.4.1] */ |
| 276 | struct aes_ccm_nonce { | 278 | struct aes_ccm_nonce { |
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index bd8218b15009..941055e9d125 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h | |||
| @@ -83,7 +83,7 @@ struct vb2_fileio_data; | |||
| 83 | struct vb2_mem_ops { | 83 | struct vb2_mem_ops { |
| 84 | void *(*alloc)(void *alloc_ctx, unsigned long size, gfp_t gfp_flags); | 84 | void *(*alloc)(void *alloc_ctx, unsigned long size, gfp_t gfp_flags); |
| 85 | void (*put)(void *buf_priv); | 85 | void (*put)(void *buf_priv); |
| 86 | struct dma_buf *(*get_dmabuf)(void *buf_priv); | 86 | struct dma_buf *(*get_dmabuf)(void *buf_priv, unsigned long flags); |
| 87 | 87 | ||
| 88 | void *(*get_userptr)(void *alloc_ctx, unsigned long vaddr, | 88 | void *(*get_userptr)(void *alloc_ctx, unsigned long vaddr, |
| 89 | unsigned long size, int write); | 89 | unsigned long size, int write); |
diff --git a/include/net/ip.h b/include/net/ip.h index 217bc5bfc6c6..5a25f36fe3a7 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -473,7 +473,7 @@ int compat_ip_getsockopt(struct sock *sk, int level, int optname, | |||
| 473 | int ip_ra_control(struct sock *sk, unsigned char on, | 473 | int ip_ra_control(struct sock *sk, unsigned char on, |
| 474 | void (*destructor)(struct sock *)); | 474 | void (*destructor)(struct sock *)); |
| 475 | 475 | ||
| 476 | int ip_recv_error(struct sock *sk, struct msghdr *msg, int len); | 476 | int ip_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len); |
| 477 | void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err, __be16 port, | 477 | void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err, __be16 port, |
| 478 | u32 info, u8 *payload); | 478 | u32 info, u8 *payload); |
| 479 | void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 dport, | 479 | void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 dport, |
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 2a5f668cd683..488316e339a1 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
| @@ -110,7 +110,8 @@ struct frag_hdr { | |||
| 110 | __be32 identification; | 110 | __be32 identification; |
| 111 | }; | 111 | }; |
| 112 | 112 | ||
| 113 | #define IP6_MF 0x0001 | 113 | #define IP6_MF 0x0001 |
| 114 | #define IP6_OFFSET 0xFFF8 | ||
| 114 | 115 | ||
| 115 | #include <net/sock.h> | 116 | #include <net/sock.h> |
| 116 | 117 | ||
| @@ -776,8 +777,10 @@ int compat_ipv6_getsockopt(struct sock *sk, int level, int optname, | |||
| 776 | 777 | ||
| 777 | int ip6_datagram_connect(struct sock *sk, struct sockaddr *addr, int addr_len); | 778 | int ip6_datagram_connect(struct sock *sk, struct sockaddr *addr, int addr_len); |
| 778 | 779 | ||
| 779 | int ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len); | 780 | int ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len, |
| 780 | int ipv6_recv_rxpmtu(struct sock *sk, struct msghdr *msg, int len); | 781 | int *addr_len); |
| 782 | int ipv6_recv_rxpmtu(struct sock *sk, struct msghdr *msg, int len, | ||
| 783 | int *addr_len); | ||
| 781 | void ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err, __be16 port, | 784 | void ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err, __be16 port, |
| 782 | u32 info, u8 *payload); | 785 | u32 info, u8 *payload); |
| 783 | void ipv6_local_error(struct sock *sk, int err, struct flowi6 *fl6, u32 info); | 786 | void ipv6_local_error(struct sock *sk, int err, struct flowi6 *fl6, u32 info); |
diff --git a/include/net/ping.h b/include/net/ping.h index 3f67704f3747..90f48417b03d 100644 --- a/include/net/ping.h +++ b/include/net/ping.h | |||
| @@ -31,7 +31,8 @@ | |||
| 31 | 31 | ||
| 32 | /* Compatibility glue so we can support IPv6 when it's compiled as a module */ | 32 | /* Compatibility glue so we can support IPv6 when it's compiled as a module */ |
| 33 | struct pingv6_ops { | 33 | struct pingv6_ops { |
| 34 | int (*ipv6_recv_error)(struct sock *sk, struct msghdr *msg, int len); | 34 | int (*ipv6_recv_error)(struct sock *sk, struct msghdr *msg, int len, |
| 35 | int *addr_len); | ||
| 35 | int (*ip6_datagram_recv_ctl)(struct sock *sk, struct msghdr *msg, | 36 | int (*ip6_datagram_recv_ctl)(struct sock *sk, struct msghdr *msg, |
| 36 | struct sk_buff *skb); | 37 | struct sk_buff *skb); |
| 37 | int (*icmpv6_err_convert)(u8 type, u8 code, int *err); | 38 | int (*icmpv6_err_convert)(u8 type, u8 code, int *err); |
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 2174d8da0770..67b5d0068273 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
| @@ -629,6 +629,7 @@ struct sctp_chunk { | |||
| 629 | #define SCTP_NEED_FRTX 0x1 | 629 | #define SCTP_NEED_FRTX 0x1 |
| 630 | #define SCTP_DONT_FRTX 0x2 | 630 | #define SCTP_DONT_FRTX 0x2 |
| 631 | __u16 rtt_in_progress:1, /* This chunk used for RTT calc? */ | 631 | __u16 rtt_in_progress:1, /* This chunk used for RTT calc? */ |
| 632 | resent:1, /* Has this chunk ever been resent. */ | ||
| 632 | has_tsn:1, /* Does this chunk have a TSN yet? */ | 633 | has_tsn:1, /* Does this chunk have a TSN yet? */ |
| 633 | has_ssn:1, /* Does this chunk have a SSN yet? */ | 634 | has_ssn:1, /* Does this chunk have a SSN yet? */ |
| 634 | singleton:1, /* Only chunk in the packet? */ | 635 | singleton:1, /* Only chunk in the packet? */ |
| @@ -1725,12 +1726,6 @@ struct sctp_association { | |||
| 1725 | /* How many duplicated TSNs have we seen? */ | 1726 | /* How many duplicated TSNs have we seen? */ |
| 1726 | int numduptsns; | 1727 | int numduptsns; |
| 1727 | 1728 | ||
| 1728 | /* Number of seconds of idle time before an association is closed. | ||
| 1729 | * In the association context, this is really used as a boolean | ||
| 1730 | * since the real timeout is stored in the timeouts array | ||
| 1731 | */ | ||
| 1732 | __u32 autoclose; | ||
| 1733 | |||
| 1734 | /* These are to support | 1729 | /* These are to support |
| 1735 | * "SCTP Extensions for Dynamic Reconfiguration of IP Addresses | 1730 | * "SCTP Extensions for Dynamic Reconfiguration of IP Addresses |
| 1736 | * and Enforcement of Flow and Message Limits" | 1731 | * and Enforcement of Flow and Message Limits" |
diff --git a/include/net/sock.h b/include/net/sock.h index e3a18ff0c38b..2ef3c3eca47a 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
| @@ -1035,7 +1035,6 @@ enum cg_proto_flags { | |||
| 1035 | }; | 1035 | }; |
| 1036 | 1036 | ||
| 1037 | struct cg_proto { | 1037 | struct cg_proto { |
| 1038 | void (*enter_memory_pressure)(struct sock *sk); | ||
| 1039 | struct res_counter memory_allocated; /* Current allocated memory. */ | 1038 | struct res_counter memory_allocated; /* Current allocated memory. */ |
| 1040 | struct percpu_counter sockets_allocated; /* Current number of sockets. */ | 1039 | struct percpu_counter sockets_allocated; /* Current number of sockets. */ |
| 1041 | int memory_pressure; | 1040 | int memory_pressure; |
| @@ -1155,8 +1154,7 @@ static inline void sk_leave_memory_pressure(struct sock *sk) | |||
| 1155 | struct proto *prot = sk->sk_prot; | 1154 | struct proto *prot = sk->sk_prot; |
| 1156 | 1155 | ||
| 1157 | for (; cg_proto; cg_proto = parent_cg_proto(prot, cg_proto)) | 1156 | for (; cg_proto; cg_proto = parent_cg_proto(prot, cg_proto)) |
| 1158 | if (cg_proto->memory_pressure) | 1157 | cg_proto->memory_pressure = 0; |
| 1159 | cg_proto->memory_pressure = 0; | ||
| 1160 | } | 1158 | } |
| 1161 | 1159 | ||
| 1162 | } | 1160 | } |
| @@ -1171,7 +1169,7 @@ static inline void sk_enter_memory_pressure(struct sock *sk) | |||
| 1171 | struct proto *prot = sk->sk_prot; | 1169 | struct proto *prot = sk->sk_prot; |
| 1172 | 1170 | ||
| 1173 | for (; cg_proto; cg_proto = parent_cg_proto(prot, cg_proto)) | 1171 | for (; cg_proto; cg_proto = parent_cg_proto(prot, cg_proto)) |
| 1174 | cg_proto->enter_memory_pressure(sk); | 1172 | cg_proto->memory_pressure = 1; |
| 1175 | } | 1173 | } |
| 1176 | 1174 | ||
| 1177 | sk->sk_prot->enter_memory_pressure(sk); | 1175 | sk->sk_prot->enter_memory_pressure(sk); |
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 979874c627ee..61e1935c91b1 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
| @@ -978,7 +978,7 @@ struct ib_uobject { | |||
| 978 | }; | 978 | }; |
| 979 | 979 | ||
| 980 | struct ib_udata { | 980 | struct ib_udata { |
| 981 | void __user *inbuf; | 981 | const void __user *inbuf; |
| 982 | void __user *outbuf; | 982 | void __user *outbuf; |
| 983 | size_t inlen; | 983 | size_t inlen; |
| 984 | size_t outlen; | 984 | size_t outlen; |
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 546084964d55..fe3b58e836c8 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
| @@ -475,6 +475,9 @@ struct scsi_host_template { | |||
| 475 | */ | 475 | */ |
| 476 | unsigned ordered_tag:1; | 476 | unsigned ordered_tag:1; |
| 477 | 477 | ||
| 478 | /* True if the controller does not support WRITE SAME */ | ||
| 479 | unsigned no_write_same:1; | ||
| 480 | |||
| 478 | /* | 481 | /* |
| 479 | * Countdown for host blocking with no commands outstanding. | 482 | * Countdown for host blocking with no commands outstanding. |
| 480 | */ | 483 | */ |
| @@ -677,6 +680,9 @@ struct Scsi_Host { | |||
| 677 | /* Don't resume host in EH */ | 680 | /* Don't resume host in EH */ |
| 678 | unsigned eh_noresume:1; | 681 | unsigned eh_noresume:1; |
| 679 | 682 | ||
| 683 | /* The controller does not support WRITE SAME */ | ||
| 684 | unsigned no_write_same:1; | ||
| 685 | |||
| 680 | /* | 686 | /* |
| 681 | * Optional work queue to be utilized by the transport | 687 | * Optional work queue to be utilized by the transport |
| 682 | */ | 688 | */ |
diff --git a/include/sound/cs42l52.h b/include/sound/cs42l52.h index 7c2be4a51894..bbabf84bdb44 100644 --- a/include/sound/cs42l52.h +++ b/include/sound/cs42l52.h | |||
| @@ -16,17 +16,11 @@ struct cs42l52_platform_data { | |||
| 16 | /* MICBIAS Level. Check datasheet Pg48 */ | 16 | /* MICBIAS Level. Check datasheet Pg48 */ |
| 17 | unsigned int micbias_lvl; | 17 | unsigned int micbias_lvl; |
| 18 | 18 | ||
| 19 | /* MICA mode selection 0=Single 1=Differential */ | 19 | /* MICA mode selection Differential or Single-ended */ |
| 20 | unsigned int mica_cfg; | 20 | bool mica_diff_cfg; |
| 21 | 21 | ||
| 22 | /* MICB mode selection 0=Single 1=Differential */ | 22 | /* MICB mode selection Differential or Single-ended */ |
| 23 | unsigned int micb_cfg; | 23 | bool micb_diff_cfg; |
| 24 | |||
| 25 | /* MICA Select 0=MIC1A 1=MIC2A */ | ||
| 26 | unsigned int mica_sel; | ||
| 27 | |||
| 28 | /* MICB Select 0=MIC2A 1=MIC2B */ | ||
| 29 | unsigned int micb_sel; | ||
| 30 | 24 | ||
| 31 | /* Charge Pump Freq. Check datasheet Pg73 */ | 25 | /* Charge Pump Freq. Check datasheet Pg73 */ |
| 32 | unsigned int chgfreq; | 26 | unsigned int chgfreq; |
diff --git a/include/sound/dmaengine_pcm.h b/include/sound/dmaengine_pcm.h index 15017311f2e9..eb73a3a39ec2 100644 --- a/include/sound/dmaengine_pcm.h +++ b/include/sound/dmaengine_pcm.h | |||
| @@ -114,6 +114,10 @@ void snd_dmaengine_pcm_set_config_from_dai_data( | |||
| 114 | * @compat_filter_fn: Will be used as the filter function when requesting a | 114 | * @compat_filter_fn: Will be used as the filter function when requesting a |
| 115 | * channel for platforms which do not use devicetree. The filter parameter | 115 | * channel for platforms which do not use devicetree. The filter parameter |
| 116 | * will be the DAI's DMA data. | 116 | * will be the DAI's DMA data. |
| 117 | * @dma_dev: If set, request DMA channel on this device rather than the DAI | ||
| 118 | * device. | ||
| 119 | * @chan_names: If set, these custom DMA channel names will be requested at | ||
| 120 | * registration time. | ||
| 117 | * @pcm_hardware: snd_pcm_hardware struct to be used for the PCM. | 121 | * @pcm_hardware: snd_pcm_hardware struct to be used for the PCM. |
| 118 | * @prealloc_buffer_size: Size of the preallocated audio buffer. | 122 | * @prealloc_buffer_size: Size of the preallocated audio buffer. |
| 119 | * | 123 | * |
| @@ -130,6 +134,8 @@ struct snd_dmaengine_pcm_config { | |||
| 130 | struct snd_soc_pcm_runtime *rtd, | 134 | struct snd_soc_pcm_runtime *rtd, |
| 131 | struct snd_pcm_substream *substream); | 135 | struct snd_pcm_substream *substream); |
| 132 | dma_filter_fn compat_filter_fn; | 136 | dma_filter_fn compat_filter_fn; |
| 137 | struct device *dma_dev; | ||
| 138 | const char *chan_names[SNDRV_PCM_STREAM_LAST + 1]; | ||
| 133 | 139 | ||
| 134 | const struct snd_pcm_hardware *pcm_hardware; | 140 | const struct snd_pcm_hardware *pcm_hardware; |
| 135 | unsigned int prealloc_buffer_size; | 141 | unsigned int prealloc_buffer_size; |
| @@ -140,6 +146,10 @@ int snd_dmaengine_pcm_register(struct device *dev, | |||
| 140 | unsigned int flags); | 146 | unsigned int flags); |
| 141 | void snd_dmaengine_pcm_unregister(struct device *dev); | 147 | void snd_dmaengine_pcm_unregister(struct device *dev); |
| 142 | 148 | ||
| 149 | int devm_snd_dmaengine_pcm_register(struct device *dev, | ||
| 150 | const struct snd_dmaengine_pcm_config *config, | ||
| 151 | unsigned int flags); | ||
| 152 | |||
| 143 | int snd_dmaengine_pcm_prepare_slave_config(struct snd_pcm_substream *substream, | 153 | int snd_dmaengine_pcm_prepare_slave_config(struct snd_pcm_substream *substream, |
| 144 | struct snd_pcm_hw_params *params, | 154 | struct snd_pcm_hw_params *params, |
| 145 | struct dma_slave_config *slave_config); | 155 | struct dma_slave_config *slave_config); |
diff --git a/include/sound/hda_verbs.h b/include/sound/hda_verbs.h new file mode 100644 index 000000000000..d0509db6d0ec --- /dev/null +++ b/include/sound/hda_verbs.h | |||
| @@ -0,0 +1,554 @@ | |||
| 1 | /* | ||
| 2 | * HD-audio codec verbs | ||
| 3 | */ | ||
| 4 | |||
| 5 | #ifndef __SOUND_HDA_VERBS_H | ||
| 6 | #define __SOUND_HDA_VERBS_H | ||
| 7 | |||
| 8 | /* | ||
| 9 | * nodes | ||
| 10 | */ | ||
| 11 | #define AC_NODE_ROOT 0x00 | ||
| 12 | |||
| 13 | /* | ||
| 14 | * function group types | ||
| 15 | */ | ||
| 16 | enum { | ||
| 17 | AC_GRP_AUDIO_FUNCTION = 0x01, | ||
| 18 | AC_GRP_MODEM_FUNCTION = 0x02, | ||
| 19 | }; | ||
| 20 | |||
| 21 | /* | ||
| 22 | * widget types | ||
| 23 | */ | ||
| 24 | enum { | ||
| 25 | AC_WID_AUD_OUT, /* Audio Out */ | ||
| 26 | AC_WID_AUD_IN, /* Audio In */ | ||
| 27 | AC_WID_AUD_MIX, /* Audio Mixer */ | ||
| 28 | AC_WID_AUD_SEL, /* Audio Selector */ | ||
| 29 | AC_WID_PIN, /* Pin Complex */ | ||
| 30 | AC_WID_POWER, /* Power */ | ||
| 31 | AC_WID_VOL_KNB, /* Volume Knob */ | ||
| 32 | AC_WID_BEEP, /* Beep Generator */ | ||
| 33 | AC_WID_VENDOR = 0x0f /* Vendor specific */ | ||
| 34 | }; | ||
| 35 | |||
| 36 | /* | ||
| 37 | * GET verbs | ||
| 38 | */ | ||
| 39 | #define AC_VERB_GET_STREAM_FORMAT 0x0a00 | ||
| 40 | #define AC_VERB_GET_AMP_GAIN_MUTE 0x0b00 | ||
| 41 | #define AC_VERB_GET_PROC_COEF 0x0c00 | ||
| 42 | #define AC_VERB_GET_COEF_INDEX 0x0d00 | ||
| 43 | #define AC_VERB_PARAMETERS 0x0f00 | ||
| 44 | #define AC_VERB_GET_CONNECT_SEL 0x0f01 | ||
| 45 | #define AC_VERB_GET_CONNECT_LIST 0x0f02 | ||
| 46 | #define AC_VERB_GET_PROC_STATE 0x0f03 | ||
| 47 | #define AC_VERB_GET_SDI_SELECT 0x0f04 | ||
| 48 | #define AC_VERB_GET_POWER_STATE 0x0f05 | ||
| 49 | #define AC_VERB_GET_CONV 0x0f06 | ||
| 50 | #define AC_VERB_GET_PIN_WIDGET_CONTROL 0x0f07 | ||
| 51 | #define AC_VERB_GET_UNSOLICITED_RESPONSE 0x0f08 | ||
| 52 | #define AC_VERB_GET_PIN_SENSE 0x0f09 | ||
| 53 | #define AC_VERB_GET_BEEP_CONTROL 0x0f0a | ||
| 54 | #define AC_VERB_GET_EAPD_BTLENABLE 0x0f0c | ||
| 55 | #define AC_VERB_GET_DIGI_CONVERT_1 0x0f0d | ||
| 56 | #define AC_VERB_GET_DIGI_CONVERT_2 0x0f0e /* unused */ | ||
| 57 | #define AC_VERB_GET_VOLUME_KNOB_CONTROL 0x0f0f | ||
| 58 | /* f10-f1a: GPIO */ | ||
| 59 | #define AC_VERB_GET_GPIO_DATA 0x0f15 | ||
| 60 | #define AC_VERB_GET_GPIO_MASK 0x0f16 | ||
| 61 | #define AC_VERB_GET_GPIO_DIRECTION 0x0f17 | ||
| 62 | #define AC_VERB_GET_GPIO_WAKE_MASK 0x0f18 | ||
| 63 | #define AC_VERB_GET_GPIO_UNSOLICITED_RSP_MASK 0x0f19 | ||
| 64 | #define AC_VERB_GET_GPIO_STICKY_MASK 0x0f1a | ||
| 65 | #define AC_VERB_GET_CONFIG_DEFAULT 0x0f1c | ||
| 66 | /* f20: AFG/MFG */ | ||
| 67 | #define AC_VERB_GET_SUBSYSTEM_ID 0x0f20 | ||
| 68 | #define AC_VERB_GET_CVT_CHAN_COUNT 0x0f2d | ||
| 69 | #define AC_VERB_GET_HDMI_DIP_SIZE 0x0f2e | ||
| 70 | #define AC_VERB_GET_HDMI_ELDD 0x0f2f | ||
| 71 | #define AC_VERB_GET_HDMI_DIP_INDEX 0x0f30 | ||
| 72 | #define AC_VERB_GET_HDMI_DIP_DATA 0x0f31 | ||
| 73 | #define AC_VERB_GET_HDMI_DIP_XMIT 0x0f32 | ||
| 74 | #define AC_VERB_GET_HDMI_CP_CTRL 0x0f33 | ||
| 75 | #define AC_VERB_GET_HDMI_CHAN_SLOT 0x0f34 | ||
| 76 | #define AC_VERB_GET_DEVICE_SEL 0xf35 | ||
| 77 | #define AC_VERB_GET_DEVICE_LIST 0xf36 | ||
| 78 | |||
| 79 | /* | ||
| 80 | * SET verbs | ||
| 81 | */ | ||
| 82 | #define AC_VERB_SET_STREAM_FORMAT 0x200 | ||
| 83 | #define AC_VERB_SET_AMP_GAIN_MUTE 0x300 | ||
| 84 | #define AC_VERB_SET_PROC_COEF 0x400 | ||
| 85 | #define AC_VERB_SET_COEF_INDEX 0x500 | ||
| 86 | #define AC_VERB_SET_CONNECT_SEL 0x701 | ||
| 87 | #define AC_VERB_SET_PROC_STATE 0x703 | ||
| 88 | #define AC_VERB_SET_SDI_SELECT 0x704 | ||
| 89 | #define AC_VERB_SET_POWER_STATE 0x705 | ||
| 90 | #define AC_VERB_SET_CHANNEL_STREAMID 0x706 | ||
| 91 | #define AC_VERB_SET_PIN_WIDGET_CONTROL 0x707 | ||
| 92 | #define AC_VERB_SET_UNSOLICITED_ENABLE 0x708 | ||
| 93 | #define AC_VERB_SET_PIN_SENSE 0x709 | ||
| 94 | #define AC_VERB_SET_BEEP_CONTROL 0x70a | ||
| 95 | #define AC_VERB_SET_EAPD_BTLENABLE 0x70c | ||
| 96 | #define AC_VERB_SET_DIGI_CONVERT_1 0x70d | ||
| 97 | #define AC_VERB_SET_DIGI_CONVERT_2 0x70e | ||
| 98 | #define AC_VERB_SET_VOLUME_KNOB_CONTROL 0x70f | ||
| 99 | #define AC_VERB_SET_GPIO_DATA 0x715 | ||
| 100 | #define AC_VERB_SET_GPIO_MASK 0x716 | ||
| 101 | #define AC_VERB_SET_GPIO_DIRECTION 0x717 | ||
| 102 | #define AC_VERB_SET_GPIO_WAKE_MASK 0x718 | ||
| 103 | #define AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK 0x719 | ||
| 104 | #define AC_VERB_SET_GPIO_STICKY_MASK 0x71a | ||
| 105 | #define AC_VERB_SET_CONFIG_DEFAULT_BYTES_0 0x71c | ||
| 106 | #define AC_VERB_SET_CONFIG_DEFAULT_BYTES_1 0x71d | ||
| 107 | #define AC_VERB_SET_CONFIG_DEFAULT_BYTES_2 0x71e | ||
| 108 | #define AC_VERB_SET_CONFIG_DEFAULT_BYTES_3 0x71f | ||
| 109 | #define AC_VERB_SET_EAPD 0x788 | ||
| 110 | #define AC_VERB_SET_CODEC_RESET 0x7ff | ||
| 111 | #define AC_VERB_SET_CVT_CHAN_COUNT 0x72d | ||
| 112 | #define AC_VERB_SET_HDMI_DIP_INDEX 0x730 | ||
| 113 | #define AC_VERB_SET_HDMI_DIP_DATA 0x731 | ||
| 114 | #define AC_VERB_SET_HDMI_DIP_XMIT 0x732 | ||
| 115 | #define AC_VERB_SET_HDMI_CP_CTRL 0x733 | ||
| 116 | #define AC_VERB_SET_HDMI_CHAN_SLOT 0x734 | ||
| 117 | #define AC_VERB_SET_DEVICE_SEL 0x735 | ||
| 118 | |||
| 119 | /* | ||
| 120 | * Parameter IDs | ||
| 121 | */ | ||
| 122 | #define AC_PAR_VENDOR_ID 0x00 | ||
| 123 | #define AC_PAR_SUBSYSTEM_ID 0x01 | ||
| 124 | #define AC_PAR_REV_ID 0x02 | ||
| 125 | #define AC_PAR_NODE_COUNT 0x04 | ||
| 126 | #define AC_PAR_FUNCTION_TYPE 0x05 | ||
| 127 | #define AC_PAR_AUDIO_FG_CAP 0x08 | ||
| 128 | #define AC_PAR_AUDIO_WIDGET_CAP 0x09 | ||
| 129 | #define AC_PAR_PCM 0x0a | ||
| 130 | #define AC_PAR_STREAM 0x0b | ||
| 131 | #define AC_PAR_PIN_CAP 0x0c | ||
| 132 | #define AC_PAR_AMP_IN_CAP 0x0d | ||
| 133 | #define AC_PAR_CONNLIST_LEN 0x0e | ||
| 134 | #define AC_PAR_POWER_STATE 0x0f | ||
| 135 | #define AC_PAR_PROC_CAP 0x10 | ||
| 136 | #define AC_PAR_GPIO_CAP 0x11 | ||
| 137 | #define AC_PAR_AMP_OUT_CAP 0x12 | ||
| 138 | #define AC_PAR_VOL_KNB_CAP 0x13 | ||
| 139 | #define AC_PAR_DEVLIST_LEN 0x15 | ||
| 140 | #define AC_PAR_HDMI_LPCM_CAP 0x20 | ||
| 141 | |||
| 142 | /* | ||
| 143 | * AC_VERB_PARAMETERS results (32bit) | ||
| 144 | */ | ||
| 145 | |||
| 146 | /* Function Group Type */ | ||
| 147 | #define AC_FGT_TYPE (0xff<<0) | ||
| 148 | #define AC_FGT_TYPE_SHIFT 0 | ||
| 149 | #define AC_FGT_UNSOL_CAP (1<<8) | ||
| 150 | |||
| 151 | /* Audio Function Group Capabilities */ | ||
| 152 | #define AC_AFG_OUT_DELAY (0xf<<0) | ||
| 153 | #define AC_AFG_IN_DELAY (0xf<<8) | ||
| 154 | #define AC_AFG_BEEP_GEN (1<<16) | ||
| 155 | |||
| 156 | /* Audio Widget Capabilities */ | ||
| 157 | #define AC_WCAP_STEREO (1<<0) /* stereo I/O */ | ||
| 158 | #define AC_WCAP_IN_AMP (1<<1) /* AMP-in present */ | ||
| 159 | #define AC_WCAP_OUT_AMP (1<<2) /* AMP-out present */ | ||
| 160 | #define AC_WCAP_AMP_OVRD (1<<3) /* AMP-parameter override */ | ||
| 161 | #define AC_WCAP_FORMAT_OVRD (1<<4) /* format override */ | ||
| 162 | #define AC_WCAP_STRIPE (1<<5) /* stripe */ | ||
| 163 | #define AC_WCAP_PROC_WID (1<<6) /* Proc Widget */ | ||
| 164 | #define AC_WCAP_UNSOL_CAP (1<<7) /* Unsol capable */ | ||
| 165 | #define AC_WCAP_CONN_LIST (1<<8) /* connection list */ | ||
| 166 | #define AC_WCAP_DIGITAL (1<<9) /* digital I/O */ | ||
| 167 | #define AC_WCAP_POWER (1<<10) /* power control */ | ||
| 168 | #define AC_WCAP_LR_SWAP (1<<11) /* L/R swap */ | ||
| 169 | #define AC_WCAP_CP_CAPS (1<<12) /* content protection */ | ||
| 170 | #define AC_WCAP_CHAN_CNT_EXT (7<<13) /* channel count ext */ | ||
| 171 | #define AC_WCAP_DELAY (0xf<<16) | ||
| 172 | #define AC_WCAP_DELAY_SHIFT 16 | ||
| 173 | #define AC_WCAP_TYPE (0xf<<20) | ||
| 174 | #define AC_WCAP_TYPE_SHIFT 20 | ||
| 175 | |||
| 176 | /* supported PCM rates and bits */ | ||
| 177 | #define AC_SUPPCM_RATES (0xfff << 0) | ||
| 178 | #define AC_SUPPCM_BITS_8 (1<<16) | ||
| 179 | #define AC_SUPPCM_BITS_16 (1<<17) | ||
| 180 | #define AC_SUPPCM_BITS_20 (1<<18) | ||
| 181 | #define AC_SUPPCM_BITS_24 (1<<19) | ||
| 182 | #define AC_SUPPCM_BITS_32 (1<<20) | ||
| 183 | |||
| 184 | /* supported PCM stream format */ | ||
| 185 | #define AC_SUPFMT_PCM (1<<0) | ||
| 186 | #define AC_SUPFMT_FLOAT32 (1<<1) | ||
| 187 | #define AC_SUPFMT_AC3 (1<<2) | ||
| 188 | |||
| 189 | /* GP I/O count */ | ||
| 190 | #define AC_GPIO_IO_COUNT (0xff<<0) | ||
| 191 | #define AC_GPIO_O_COUNT (0xff<<8) | ||
| 192 | #define AC_GPIO_O_COUNT_SHIFT 8 | ||
| 193 | #define AC_GPIO_I_COUNT (0xff<<16) | ||
| 194 | #define AC_GPIO_I_COUNT_SHIFT 16 | ||
| 195 | #define AC_GPIO_UNSOLICITED (1<<30) | ||
| 196 | #define AC_GPIO_WAKE (1<<31) | ||
| 197 | |||
| 198 | /* Converter stream, channel */ | ||
| 199 | #define AC_CONV_CHANNEL (0xf<<0) | ||
| 200 | #define AC_CONV_STREAM (0xf<<4) | ||
| 201 | #define AC_CONV_STREAM_SHIFT 4 | ||
| 202 | |||
| 203 | /* Input converter SDI select */ | ||
| 204 | #define AC_SDI_SELECT (0xf<<0) | ||
| 205 | |||
| 206 | /* stream format id */ | ||
| 207 | #define AC_FMT_CHAN_SHIFT 0 | ||
| 208 | #define AC_FMT_CHAN_MASK (0x0f << 0) | ||
| 209 | #define AC_FMT_BITS_SHIFT 4 | ||
| 210 | #define AC_FMT_BITS_MASK (7 << 4) | ||
| 211 | #define AC_FMT_BITS_8 (0 << 4) | ||
| 212 | #define AC_FMT_BITS_16 (1 << 4) | ||
| 213 | #define AC_FMT_BITS_20 (2 << 4) | ||
| 214 | #define AC_FMT_BITS_24 (3 << 4) | ||
| 215 | #define AC_FMT_BITS_32 (4 << 4) | ||
| 216 | #define AC_FMT_DIV_SHIFT 8 | ||
| 217 | #define AC_FMT_DIV_MASK (7 << 8) | ||
| 218 | #define AC_FMT_MULT_SHIFT 11 | ||
| 219 | #define AC_FMT_MULT_MASK (7 << 11) | ||
| 220 | #define AC_FMT_BASE_SHIFT 14 | ||
| 221 | #define AC_FMT_BASE_48K (0 << 14) | ||
| 222 | #define AC_FMT_BASE_44K (1 << 14) | ||
| 223 | #define AC_FMT_TYPE_SHIFT 15 | ||
| 224 | #define AC_FMT_TYPE_PCM (0 << 15) | ||
| 225 | #define AC_FMT_TYPE_NON_PCM (1 << 15) | ||
| 226 | |||
| 227 | /* Unsolicited response control */ | ||
| 228 | #define AC_UNSOL_TAG (0x3f<<0) | ||
| 229 | #define AC_UNSOL_ENABLED (1<<7) | ||
| 230 | #define AC_USRSP_EN AC_UNSOL_ENABLED | ||
| 231 | |||
| 232 | /* Unsolicited responses */ | ||
| 233 | #define AC_UNSOL_RES_TAG (0x3f<<26) | ||
| 234 | #define AC_UNSOL_RES_TAG_SHIFT 26 | ||
| 235 | #define AC_UNSOL_RES_SUBTAG (0x1f<<21) | ||
| 236 | #define AC_UNSOL_RES_SUBTAG_SHIFT 21 | ||
| 237 | #define AC_UNSOL_RES_DE (0x3f<<15) /* Device Entry | ||
| 238 | * (for DP1.2 MST) | ||
| 239 | */ | ||
| 240 | #define AC_UNSOL_RES_DE_SHIFT 15 | ||
| 241 | #define AC_UNSOL_RES_IA (1<<2) /* Inactive (for DP1.2 MST) */ | ||
| 242 | #define AC_UNSOL_RES_ELDV (1<<1) /* ELD Data valid (for HDMI) */ | ||
| 243 | #define AC_UNSOL_RES_PD (1<<0) /* pinsense detect */ | ||
| 244 | #define AC_UNSOL_RES_CP_STATE (1<<1) /* content protection */ | ||
| 245 | #define AC_UNSOL_RES_CP_READY (1<<0) /* content protection */ | ||
| 246 | |||
| 247 | /* Pin widget capabilies */ | ||
| 248 | #define AC_PINCAP_IMP_SENSE (1<<0) /* impedance sense capable */ | ||
| 249 | #define AC_PINCAP_TRIG_REQ (1<<1) /* trigger required */ | ||
| 250 | #define AC_PINCAP_PRES_DETECT (1<<2) /* presence detect capable */ | ||
| 251 | #define AC_PINCAP_HP_DRV (1<<3) /* headphone drive capable */ | ||
| 252 | #define AC_PINCAP_OUT (1<<4) /* output capable */ | ||
| 253 | #define AC_PINCAP_IN (1<<5) /* input capable */ | ||
| 254 | #define AC_PINCAP_BALANCE (1<<6) /* balanced I/O capable */ | ||
| 255 | /* Note: This LR_SWAP pincap is defined in the Realtek ALC883 specification, | ||
| 256 | * but is marked reserved in the Intel HDA specification. | ||
| 257 | */ | ||
| 258 | #define AC_PINCAP_LR_SWAP (1<<7) /* L/R swap */ | ||
| 259 | /* Note: The same bit as LR_SWAP is newly defined as HDMI capability | ||
| 260 | * in HD-audio specification | ||
| 261 | */ | ||
| 262 | #define AC_PINCAP_HDMI (1<<7) /* HDMI pin */ | ||
| 263 | #define AC_PINCAP_DP (1<<24) /* DisplayPort pin, can | ||
| 264 | * coexist with AC_PINCAP_HDMI | ||
| 265 | */ | ||
| 266 | #define AC_PINCAP_VREF (0x37<<8) | ||
| 267 | #define AC_PINCAP_VREF_SHIFT 8 | ||
| 268 | #define AC_PINCAP_EAPD (1<<16) /* EAPD capable */ | ||
| 269 | #define AC_PINCAP_HBR (1<<27) /* High Bit Rate */ | ||
| 270 | /* Vref status (used in pin cap) */ | ||
| 271 | #define AC_PINCAP_VREF_HIZ (1<<0) /* Hi-Z */ | ||
| 272 | #define AC_PINCAP_VREF_50 (1<<1) /* 50% */ | ||
| 273 | #define AC_PINCAP_VREF_GRD (1<<2) /* ground */ | ||
| 274 | #define AC_PINCAP_VREF_80 (1<<4) /* 80% */ | ||
| 275 | #define AC_PINCAP_VREF_100 (1<<5) /* 100% */ | ||
| 276 | |||
| 277 | /* Amplifier capabilities */ | ||
| 278 | #define AC_AMPCAP_OFFSET (0x7f<<0) /* 0dB offset */ | ||
| 279 | #define AC_AMPCAP_OFFSET_SHIFT 0 | ||
| 280 | #define AC_AMPCAP_NUM_STEPS (0x7f<<8) /* number of steps */ | ||
| 281 | #define AC_AMPCAP_NUM_STEPS_SHIFT 8 | ||
| 282 | #define AC_AMPCAP_STEP_SIZE (0x7f<<16) /* step size 0-32dB | ||
| 283 | * in 0.25dB | ||
| 284 | */ | ||
| 285 | #define AC_AMPCAP_STEP_SIZE_SHIFT 16 | ||
| 286 | #define AC_AMPCAP_MUTE (1<<31) /* mute capable */ | ||
| 287 | #define AC_AMPCAP_MUTE_SHIFT 31 | ||
| 288 | |||
| 289 | /* driver-specific amp-caps: using bits 24-30 */ | ||
| 290 | #define AC_AMPCAP_MIN_MUTE (1 << 30) /* min-volume = mute */ | ||
| 291 | |||
| 292 | /* Connection list */ | ||
| 293 | #define AC_CLIST_LENGTH (0x7f<<0) | ||
| 294 | #define AC_CLIST_LONG (1<<7) | ||
| 295 | |||
| 296 | /* Supported power status */ | ||
| 297 | #define AC_PWRST_D0SUP (1<<0) | ||
| 298 | #define AC_PWRST_D1SUP (1<<1) | ||
| 299 | #define AC_PWRST_D2SUP (1<<2) | ||
| 300 | #define AC_PWRST_D3SUP (1<<3) | ||
| 301 | #define AC_PWRST_D3COLDSUP (1<<4) | ||
| 302 | #define AC_PWRST_S3D3COLDSUP (1<<29) | ||
| 303 | #define AC_PWRST_CLKSTOP (1<<30) | ||
| 304 | #define AC_PWRST_EPSS (1U<<31) | ||
| 305 | |||
| 306 | /* Power state values */ | ||
| 307 | #define AC_PWRST_SETTING (0xf<<0) | ||
| 308 | #define AC_PWRST_ACTUAL (0xf<<4) | ||
| 309 | #define AC_PWRST_ACTUAL_SHIFT 4 | ||
| 310 | #define AC_PWRST_D0 0x00 | ||
| 311 | #define AC_PWRST_D1 0x01 | ||
| 312 | #define AC_PWRST_D2 0x02 | ||
| 313 | #define AC_PWRST_D3 0x03 | ||
| 314 | #define AC_PWRST_ERROR (1<<8) | ||
| 315 | #define AC_PWRST_CLK_STOP_OK (1<<9) | ||
| 316 | #define AC_PWRST_SETTING_RESET (1<<10) | ||
| 317 | |||
| 318 | /* Processing capabilies */ | ||
| 319 | #define AC_PCAP_BENIGN (1<<0) | ||
| 320 | #define AC_PCAP_NUM_COEF (0xff<<8) | ||
| 321 | #define AC_PCAP_NUM_COEF_SHIFT 8 | ||
| 322 | |||
| 323 | /* Volume knobs capabilities */ | ||
| 324 | #define AC_KNBCAP_NUM_STEPS (0x7f<<0) | ||
| 325 | #define AC_KNBCAP_DELTA (1<<7) | ||
| 326 | |||
| 327 | /* HDMI LPCM capabilities */ | ||
| 328 | #define AC_LPCMCAP_48K_CP_CHNS (0x0f<<0) /* max channels w/ CP-on */ | ||
| 329 | #define AC_LPCMCAP_48K_NO_CHNS (0x0f<<4) /* max channels w/o CP-on */ | ||
| 330 | #define AC_LPCMCAP_48K_20BIT (1<<8) /* 20b bitrate supported */ | ||
| 331 | #define AC_LPCMCAP_48K_24BIT (1<<9) /* 24b bitrate supported */ | ||
| 332 | #define AC_LPCMCAP_96K_CP_CHNS (0x0f<<10) /* max channels w/ CP-on */ | ||
| 333 | #define AC_LPCMCAP_96K_NO_CHNS (0x0f<<14) /* max channels w/o CP-on */ | ||
| 334 | #define AC_LPCMCAP_96K_20BIT (1<<18) /* 20b bitrate supported */ | ||
| 335 | #define AC_LPCMCAP_96K_24BIT (1<<19) /* 24b bitrate supported */ | ||
| 336 | #define AC_LPCMCAP_192K_CP_CHNS (0x0f<<20) /* max channels w/ CP-on */ | ||
| 337 | #define AC_LPCMCAP_192K_NO_CHNS (0x0f<<24) /* max channels w/o CP-on */ | ||
| 338 | #define AC_LPCMCAP_192K_20BIT (1<<28) /* 20b bitrate supported */ | ||
| 339 | #define AC_LPCMCAP_192K_24BIT (1<<29) /* 24b bitrate supported */ | ||
| 340 | #define AC_LPCMCAP_44K (1<<30) /* 44.1kHz support */ | ||
| 341 | #define AC_LPCMCAP_44K_MS (1<<31) /* 44.1kHz-multiplies support */ | ||
| 342 | |||
| 343 | /* Display pin's device list length */ | ||
| 344 | #define AC_DEV_LIST_LEN_MASK 0x3f | ||
| 345 | #define AC_MAX_DEV_LIST_LEN 64 | ||
| 346 | |||
| 347 | /* | ||
| 348 | * Control Parameters | ||
| 349 | */ | ||
| 350 | |||
| 351 | /* Amp gain/mute */ | ||
| 352 | #define AC_AMP_MUTE (1<<7) | ||
| 353 | #define AC_AMP_GAIN (0x7f) | ||
| 354 | #define AC_AMP_GET_INDEX (0xf<<0) | ||
| 355 | |||
| 356 | #define AC_AMP_GET_LEFT (1<<13) | ||
| 357 | #define AC_AMP_GET_RIGHT (0<<13) | ||
| 358 | #define AC_AMP_GET_OUTPUT (1<<15) | ||
| 359 | #define AC_AMP_GET_INPUT (0<<15) | ||
| 360 | |||
| 361 | #define AC_AMP_SET_INDEX (0xf<<8) | ||
| 362 | #define AC_AMP_SET_INDEX_SHIFT 8 | ||
| 363 | #define AC_AMP_SET_RIGHT (1<<12) | ||
| 364 | #define AC_AMP_SET_LEFT (1<<13) | ||
| 365 | #define AC_AMP_SET_INPUT (1<<14) | ||
| 366 | #define AC_AMP_SET_OUTPUT (1<<15) | ||
| 367 | |||
| 368 | /* DIGITAL1 bits */ | ||
| 369 | #define AC_DIG1_ENABLE (1<<0) | ||
| 370 | #define AC_DIG1_V (1<<1) | ||
| 371 | #define AC_DIG1_VCFG (1<<2) | ||
| 372 | #define AC_DIG1_EMPHASIS (1<<3) | ||
| 373 | #define AC_DIG1_COPYRIGHT (1<<4) | ||
| 374 | #define AC_DIG1_NONAUDIO (1<<5) | ||
| 375 | #define AC_DIG1_PROFESSIONAL (1<<6) | ||
| 376 | #define AC_DIG1_LEVEL (1<<7) | ||
| 377 | |||
| 378 | /* DIGITAL2 bits */ | ||
| 379 | #define AC_DIG2_CC (0x7f<<0) | ||
| 380 | |||
| 381 | /* DIGITAL3 bits */ | ||
| 382 | #define AC_DIG3_ICT (0xf<<0) | ||
| 383 | #define AC_DIG3_KAE (1<<7) | ||
| 384 | |||
| 385 | /* Pin widget control - 8bit */ | ||
| 386 | #define AC_PINCTL_EPT (0x3<<0) | ||
| 387 | #define AC_PINCTL_EPT_NATIVE 0 | ||
| 388 | #define AC_PINCTL_EPT_HBR 3 | ||
| 389 | #define AC_PINCTL_VREFEN (0x7<<0) | ||
| 390 | #define AC_PINCTL_VREF_HIZ 0 /* Hi-Z */ | ||
| 391 | #define AC_PINCTL_VREF_50 1 /* 50% */ | ||
| 392 | #define AC_PINCTL_VREF_GRD 2 /* ground */ | ||
| 393 | #define AC_PINCTL_VREF_80 4 /* 80% */ | ||
| 394 | #define AC_PINCTL_VREF_100 5 /* 100% */ | ||
| 395 | #define AC_PINCTL_IN_EN (1<<5) | ||
| 396 | #define AC_PINCTL_OUT_EN (1<<6) | ||
| 397 | #define AC_PINCTL_HP_EN (1<<7) | ||
| 398 | |||
| 399 | /* Pin sense - 32bit */ | ||
| 400 | #define AC_PINSENSE_IMPEDANCE_MASK (0x7fffffff) | ||
| 401 | #define AC_PINSENSE_PRESENCE (1<<31) | ||
| 402 | #define AC_PINSENSE_ELDV (1<<30) /* ELD valid (HDMI) */ | ||
| 403 | |||
| 404 | /* EAPD/BTL enable - 32bit */ | ||
| 405 | #define AC_EAPDBTL_BALANCED (1<<0) | ||
| 406 | #define AC_EAPDBTL_EAPD (1<<1) | ||
| 407 | #define AC_EAPDBTL_LR_SWAP (1<<2) | ||
| 408 | |||
| 409 | /* HDMI ELD data */ | ||
| 410 | #define AC_ELDD_ELD_VALID (1<<31) | ||
| 411 | #define AC_ELDD_ELD_DATA 0xff | ||
| 412 | |||
| 413 | /* HDMI DIP size */ | ||
| 414 | #define AC_DIPSIZE_ELD_BUF (1<<3) /* ELD buf size of packet size */ | ||
| 415 | #define AC_DIPSIZE_PACK_IDX (0x07<<0) /* packet index */ | ||
| 416 | |||
| 417 | /* HDMI DIP index */ | ||
| 418 | #define AC_DIPIDX_PACK_IDX (0x07<<5) /* packet idnex */ | ||
| 419 | #define AC_DIPIDX_BYTE_IDX (0x1f<<0) /* byte index */ | ||
| 420 | |||
| 421 | /* HDMI DIP xmit (transmit) control */ | ||
| 422 | #define AC_DIPXMIT_MASK (0x3<<6) | ||
| 423 | #define AC_DIPXMIT_DISABLE (0x0<<6) /* disable xmit */ | ||
| 424 | #define AC_DIPXMIT_ONCE (0x2<<6) /* xmit once then disable */ | ||
| 425 | #define AC_DIPXMIT_BEST (0x3<<6) /* best effort */ | ||
| 426 | |||
| 427 | /* HDMI content protection (CP) control */ | ||
| 428 | #define AC_CPCTRL_CES (1<<9) /* current encryption state */ | ||
| 429 | #define AC_CPCTRL_READY (1<<8) /* ready bit */ | ||
| 430 | #define AC_CPCTRL_SUBTAG (0x1f<<3) /* subtag for unsol-resp */ | ||
| 431 | #define AC_CPCTRL_STATE (3<<0) /* current CP request state */ | ||
| 432 | |||
| 433 | /* Converter channel <-> HDMI slot mapping */ | ||
| 434 | #define AC_CVTMAP_HDMI_SLOT (0xf<<0) /* HDMI slot number */ | ||
| 435 | #define AC_CVTMAP_CHAN (0xf<<4) /* converter channel number */ | ||
| 436 | |||
| 437 | /* configuration default - 32bit */ | ||
| 438 | #define AC_DEFCFG_SEQUENCE (0xf<<0) | ||
| 439 | #define AC_DEFCFG_DEF_ASSOC (0xf<<4) | ||
| 440 | #define AC_DEFCFG_ASSOC_SHIFT 4 | ||
| 441 | #define AC_DEFCFG_MISC (0xf<<8) | ||
| 442 | #define AC_DEFCFG_MISC_SHIFT 8 | ||
| 443 | #define AC_DEFCFG_MISC_NO_PRESENCE (1<<0) | ||
| 444 | #define AC_DEFCFG_COLOR (0xf<<12) | ||
| 445 | #define AC_DEFCFG_COLOR_SHIFT 12 | ||
| 446 | #define AC_DEFCFG_CONN_TYPE (0xf<<16) | ||
| 447 | #define AC_DEFCFG_CONN_TYPE_SHIFT 16 | ||
| 448 | #define AC_DEFCFG_DEVICE (0xf<<20) | ||
| 449 | #define AC_DEFCFG_DEVICE_SHIFT 20 | ||
| 450 | #define AC_DEFCFG_LOCATION (0x3f<<24) | ||
| 451 | #define AC_DEFCFG_LOCATION_SHIFT 24 | ||
| 452 | #define AC_DEFCFG_PORT_CONN (0x3<<30) | ||
| 453 | #define AC_DEFCFG_PORT_CONN_SHIFT 30 | ||
| 454 | |||
| 455 | /* Display pin's device list entry */ | ||
| 456 | #define AC_DE_PD (1<<0) | ||
| 457 | #define AC_DE_ELDV (1<<1) | ||
| 458 | #define AC_DE_IA (1<<2) | ||
| 459 | |||
| 460 | /* device device types (0x0-0xf) */ | ||
| 461 | enum { | ||
| 462 | AC_JACK_LINE_OUT, | ||
| 463 | AC_JACK_SPEAKER, | ||
| 464 | AC_JACK_HP_OUT, | ||
| 465 | AC_JACK_CD, | ||
| 466 | AC_JACK_SPDIF_OUT, | ||
| 467 | AC_JACK_DIG_OTHER_OUT, | ||
| 468 | AC_JACK_MODEM_LINE_SIDE, | ||
| 469 | AC_JACK_MODEM_HAND_SIDE, | ||
| 470 | AC_JACK_LINE_IN, | ||
| 471 | AC_JACK_AUX, | ||
| 472 | AC_JACK_MIC_IN, | ||
| 473 | AC_JACK_TELEPHONY, | ||
| 474 | AC_JACK_SPDIF_IN, | ||
| 475 | AC_JACK_DIG_OTHER_IN, | ||
| 476 | AC_JACK_OTHER = 0xf, | ||
| 477 | }; | ||
| 478 | |||
| 479 | /* jack connection types (0x0-0xf) */ | ||
| 480 | enum { | ||
| 481 | AC_JACK_CONN_UNKNOWN, | ||
| 482 | AC_JACK_CONN_1_8, | ||
| 483 | AC_JACK_CONN_1_4, | ||
| 484 | AC_JACK_CONN_ATAPI, | ||
| 485 | AC_JACK_CONN_RCA, | ||
| 486 | AC_JACK_CONN_OPTICAL, | ||
| 487 | AC_JACK_CONN_OTHER_DIGITAL, | ||
| 488 | AC_JACK_CONN_OTHER_ANALOG, | ||
| 489 | AC_JACK_CONN_DIN, | ||
| 490 | AC_JACK_CONN_XLR, | ||
| 491 | AC_JACK_CONN_RJ11, | ||
| 492 | AC_JACK_CONN_COMB, | ||
| 493 | AC_JACK_CONN_OTHER = 0xf, | ||
| 494 | }; | ||
| 495 | |||
| 496 | /* jack colors (0x0-0xf) */ | ||
| 497 | enum { | ||
| 498 | AC_JACK_COLOR_UNKNOWN, | ||
| 499 | AC_JACK_COLOR_BLACK, | ||
| 500 | AC_JACK_COLOR_GREY, | ||
| 501 | AC_JACK_COLOR_BLUE, | ||
| 502 | AC_JACK_COLOR_GREEN, | ||
| 503 | AC_JACK_COLOR_RED, | ||
| 504 | AC_JACK_COLOR_ORANGE, | ||
| 505 | AC_JACK_COLOR_YELLOW, | ||
| 506 | AC_JACK_COLOR_PURPLE, | ||
| 507 | AC_JACK_COLOR_PINK, | ||
| 508 | AC_JACK_COLOR_WHITE = 0xe, | ||
| 509 | AC_JACK_COLOR_OTHER, | ||
| 510 | }; | ||
| 511 | |||
| 512 | /* Jack location (0x0-0x3f) */ | ||
| 513 | /* common case */ | ||
| 514 | enum { | ||
| 515 | AC_JACK_LOC_NONE, | ||
| 516 | AC_JACK_LOC_REAR, | ||
| 517 | AC_JACK_LOC_FRONT, | ||
| 518 | AC_JACK_LOC_LEFT, | ||
| 519 | AC_JACK_LOC_RIGHT, | ||
| 520 | AC_JACK_LOC_TOP, | ||
| 521 | AC_JACK_LOC_BOTTOM, | ||
| 522 | }; | ||
| 523 | /* bits 4-5 */ | ||
| 524 | enum { | ||
| 525 | AC_JACK_LOC_EXTERNAL = 0x00, | ||
| 526 | AC_JACK_LOC_INTERNAL = 0x10, | ||
| 527 | AC_JACK_LOC_SEPARATE = 0x20, | ||
| 528 | AC_JACK_LOC_OTHER = 0x30, | ||
| 529 | }; | ||
| 530 | enum { | ||
| 531 | /* external on primary chasis */ | ||
| 532 | AC_JACK_LOC_REAR_PANEL = 0x07, | ||
| 533 | AC_JACK_LOC_DRIVE_BAY, | ||
| 534 | /* internal */ | ||
| 535 | AC_JACK_LOC_RISER = 0x17, | ||
| 536 | AC_JACK_LOC_HDMI, | ||
| 537 | AC_JACK_LOC_ATAPI, | ||
| 538 | /* others */ | ||
| 539 | AC_JACK_LOC_MOBILE_IN = 0x37, | ||
| 540 | AC_JACK_LOC_MOBILE_OUT, | ||
| 541 | }; | ||
| 542 | |||
| 543 | /* Port connectivity (0-3) */ | ||
| 544 | enum { | ||
| 545 | AC_JACK_PORT_COMPLEX, | ||
| 546 | AC_JACK_PORT_NONE, | ||
| 547 | AC_JACK_PORT_FIXED, | ||
| 548 | AC_JACK_PORT_BOTH, | ||
| 549 | }; | ||
| 550 | |||
| 551 | /* max. codec address */ | ||
| 552 | #define HDA_MAX_CODEC_ADDRESS 0x0f | ||
| 553 | |||
| 554 | #endif /* __SOUND_HDA_VERBS_H */ | ||
diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h index af9983970417..782d1df34208 100644 --- a/include/sound/memalloc.h +++ b/include/sound/memalloc.h | |||
| @@ -108,7 +108,7 @@ static inline dma_addr_t snd_sgbuf_get_addr(struct snd_dma_buffer *dmab, | |||
| 108 | { | 108 | { |
| 109 | struct snd_sg_buf *sgbuf = dmab->private_data; | 109 | struct snd_sg_buf *sgbuf = dmab->private_data; |
| 110 | dma_addr_t addr = sgbuf->table[offset >> PAGE_SHIFT].addr; | 110 | dma_addr_t addr = sgbuf->table[offset >> PAGE_SHIFT].addr; |
| 111 | addr &= PAGE_MASK; | 111 | addr &= ~((dma_addr_t)PAGE_SIZE - 1); |
| 112 | return addr + offset % PAGE_SIZE; | 112 | return addr + offset % PAGE_SIZE; |
| 113 | } | 113 | } |
| 114 | 114 | ||
| @@ -149,13 +149,6 @@ int snd_dma_alloc_pages_fallback(int type, struct device *dev, size_t size, | |||
| 149 | struct snd_dma_buffer *dmab); | 149 | struct snd_dma_buffer *dmab); |
| 150 | void snd_dma_free_pages(struct snd_dma_buffer *dmab); | 150 | void snd_dma_free_pages(struct snd_dma_buffer *dmab); |
| 151 | 151 | ||
| 152 | /* buffer-preservation managements */ | ||
| 153 | |||
| 154 | #define snd_dma_pci_buf_id(pci) (((unsigned int)(pci)->vendor << 16) | (pci)->device) | ||
| 155 | |||
| 156 | size_t snd_dma_get_reserved_buf(struct snd_dma_buffer *dmab, unsigned int id); | ||
| 157 | int snd_dma_reserve_buf(struct snd_dma_buffer *dmab, unsigned int id); | ||
| 158 | |||
| 159 | /* basic memory allocation functions */ | 152 | /* basic memory allocation functions */ |
| 160 | void *snd_malloc_pages(size_t size, gfp_t gfp_flags); | 153 | void *snd_malloc_pages(size_t size, gfp_t gfp_flags); |
| 161 | void snd_free_pages(void *ptr, size_t size); | 154 | void snd_free_pages(void *ptr, size_t size); |
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 84b10f9a2832..4883499ab38b 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
| @@ -381,7 +381,6 @@ struct snd_pcm_substream { | |||
| 381 | struct pm_qos_request latency_pm_qos_req; /* pm_qos request */ | 381 | struct pm_qos_request latency_pm_qos_req; /* pm_qos request */ |
| 382 | size_t buffer_bytes_max; /* limit ring buffer size */ | 382 | size_t buffer_bytes_max; /* limit ring buffer size */ |
| 383 | struct snd_dma_buffer dma_buffer; | 383 | struct snd_dma_buffer dma_buffer; |
| 384 | unsigned int dma_buf_id; | ||
| 385 | size_t dma_max; | 384 | size_t dma_max; |
| 386 | /* -- hardware operations -- */ | 385 | /* -- hardware operations -- */ |
| 387 | const struct snd_pcm_ops *ops; | 386 | const struct snd_pcm_ops *ops; |
| @@ -901,6 +900,8 @@ extern const struct snd_pcm_hw_constraint_list snd_pcm_known_rates; | |||
| 901 | int snd_pcm_limit_hw_rates(struct snd_pcm_runtime *runtime); | 900 | int snd_pcm_limit_hw_rates(struct snd_pcm_runtime *runtime); |
| 902 | unsigned int snd_pcm_rate_to_rate_bit(unsigned int rate); | 901 | unsigned int snd_pcm_rate_to_rate_bit(unsigned int rate); |
| 903 | unsigned int snd_pcm_rate_bit_to_rate(unsigned int rate_bit); | 902 | unsigned int snd_pcm_rate_bit_to_rate(unsigned int rate_bit); |
| 903 | unsigned int snd_pcm_rate_mask_intersect(unsigned int rates_a, | ||
| 904 | unsigned int rates_b); | ||
| 904 | 905 | ||
| 905 | static inline void snd_pcm_set_runtime_buffer(struct snd_pcm_substream *substream, | 906 | static inline void snd_pcm_set_runtime_buffer(struct snd_pcm_substream *substream, |
| 906 | struct snd_dma_buffer *bufp) | 907 | struct snd_dma_buffer *bufp) |
diff --git a/include/sound/pcm_params.h b/include/sound/pcm_params.h index 37ae12e0ab06..6b1c78f05fab 100644 --- a/include/sound/pcm_params.h +++ b/include/sound/pcm_params.h | |||
| @@ -354,4 +354,16 @@ params_period_bytes(const struct snd_pcm_hw_params *p) | |||
| 354 | params_channels(p)) / 8; | 354 | params_channels(p)) / 8; |
| 355 | } | 355 | } |
| 356 | 356 | ||
| 357 | static inline int | ||
| 358 | params_width(const struct snd_pcm_hw_params *p) | ||
| 359 | { | ||
| 360 | return snd_pcm_format_width(params_format(p)); | ||
| 361 | } | ||
| 362 | |||
| 363 | static inline int | ||
| 364 | params_physical_width(const struct snd_pcm_hw_params *p) | ||
| 365 | { | ||
| 366 | return snd_pcm_format_physical_width(params_format(p)); | ||
| 367 | } | ||
| 368 | |||
| 357 | #endif /* __SOUND_PCM_PARAMS_H */ | 369 | #endif /* __SOUND_PCM_PARAMS_H */ |
diff --git a/include/sound/rcar_snd.h b/include/sound/rcar_snd.h index 12afab18945d..e147498abe50 100644 --- a/include/sound/rcar_snd.h +++ b/include/sound/rcar_snd.h | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | #define RSND_GEN1_ADG 1 | 18 | #define RSND_GEN1_ADG 1 |
| 19 | #define RSND_GEN1_SSI 2 | 19 | #define RSND_GEN1_SSI 2 |
| 20 | 20 | ||
| 21 | #define RSND_GEN2_SRU 0 | 21 | #define RSND_GEN2_SCU 0 |
| 22 | #define RSND_GEN2_ADG 1 | 22 | #define RSND_GEN2_ADG 1 |
| 23 | #define RSND_GEN2_SSIU 2 | 23 | #define RSND_GEN2_SSIU 2 |
| 24 | #define RSND_GEN2_SSI 3 | 24 | #define RSND_GEN2_SSI 3 |
| @@ -58,6 +58,7 @@ struct rsnd_ssi_platform_info { | |||
| 58 | 58 | ||
| 59 | struct rsnd_scu_platform_info { | 59 | struct rsnd_scu_platform_info { |
| 60 | u32 flags; | 60 | u32 flags; |
| 61 | u32 convert_rate; /* sampling rate convert */ | ||
| 61 | }; | 62 | }; |
| 62 | 63 | ||
| 63 | /* | 64 | /* |
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 800c101bb096..71f27c403194 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h | |||
| @@ -123,6 +123,8 @@ int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate); | |||
| 123 | int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute, | 123 | int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute, |
| 124 | int direction); | 124 | int direction); |
| 125 | 125 | ||
| 126 | int snd_soc_dai_is_dummy(struct snd_soc_dai *dai); | ||
| 127 | |||
| 126 | struct snd_soc_dai_ops { | 128 | struct snd_soc_dai_ops { |
| 127 | /* | 129 | /* |
| 128 | * DAI clocking configuration, all optional. | 130 | * DAI clocking configuration, all optional. |
| @@ -220,6 +222,8 @@ struct snd_soc_dai_driver { | |||
| 220 | struct snd_soc_pcm_stream capture; | 222 | struct snd_soc_pcm_stream capture; |
| 221 | struct snd_soc_pcm_stream playback; | 223 | struct snd_soc_pcm_stream playback; |
| 222 | unsigned int symmetric_rates:1; | 224 | unsigned int symmetric_rates:1; |
| 225 | unsigned int symmetric_channels:1; | ||
| 226 | unsigned int symmetric_samplebits:1; | ||
| 223 | 227 | ||
| 224 | /* probe ordering - for components with runtime dependencies */ | 228 | /* probe ordering - for components with runtime dependencies */ |
| 225 | int probe_order; | 229 | int probe_order; |
| @@ -244,6 +248,8 @@ struct snd_soc_dai { | |||
| 244 | unsigned int capture_active:1; /* stream is in use */ | 248 | unsigned int capture_active:1; /* stream is in use */ |
| 245 | unsigned int playback_active:1; /* stream is in use */ | 249 | unsigned int playback_active:1; /* stream is in use */ |
| 246 | unsigned int symmetric_rates:1; | 250 | unsigned int symmetric_rates:1; |
| 251 | unsigned int symmetric_channels:1; | ||
| 252 | unsigned int symmetric_samplebits:1; | ||
| 247 | struct snd_pcm_runtime *runtime; | 253 | struct snd_pcm_runtime *runtime; |
| 248 | unsigned int active; | 254 | unsigned int active; |
| 249 | unsigned char probed:1; | 255 | unsigned char probed:1; |
| @@ -258,6 +264,8 @@ struct snd_soc_dai { | |||
| 258 | 264 | ||
| 259 | /* Symmetry data - only valid if symmetry is being enforced */ | 265 | /* Symmetry data - only valid if symmetry is being enforced */ |
| 260 | unsigned int rate; | 266 | unsigned int rate; |
| 267 | unsigned int channels; | ||
| 268 | unsigned int sample_bits; | ||
| 261 | 269 | ||
| 262 | /* parent platform/codec */ | 270 | /* parent platform/codec */ |
| 263 | struct snd_soc_platform *platform; | 271 | struct snd_soc_platform *platform; |
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 2037c45adfe6..68d92e36facd 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
| @@ -104,7 +104,8 @@ struct device; | |||
| 104 | SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \ | 104 | SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \ |
| 105 | .kcontrol_news = wcontrols, .num_kcontrols = 1} | 105 | .kcontrol_news = wcontrols, .num_kcontrols = 1} |
| 106 | #define SND_SOC_DAPM_MUX(wname, wreg, wshift, winvert, wcontrols) \ | 106 | #define SND_SOC_DAPM_MUX(wname, wreg, wshift, winvert, wcontrols) \ |
| 107 | { .id = snd_soc_dapm_mux, .name = wname, .reg = wreg, \ | 107 | { .id = snd_soc_dapm_mux, .name = wname, \ |
| 108 | SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \ | ||
| 108 | .kcontrol_news = wcontrols, .num_kcontrols = 1} | 109 | .kcontrol_news = wcontrols, .num_kcontrols = 1} |
| 109 | #define SND_SOC_DAPM_VIRT_MUX(wname, wreg, wshift, winvert, wcontrols) \ | 110 | #define SND_SOC_DAPM_VIRT_MUX(wname, wreg, wshift, winvert, wcontrols) \ |
| 110 | { .id = snd_soc_dapm_virt_mux, .name = wname, \ | 111 | { .id = snd_soc_dapm_virt_mux, .name = wname, \ |
| @@ -411,6 +412,7 @@ int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm, | |||
| 411 | int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, | 412 | int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, |
| 412 | struct snd_soc_dai *dai); | 413 | struct snd_soc_dai *dai); |
| 413 | int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card); | 414 | int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card); |
| 415 | void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card); | ||
| 414 | int snd_soc_dapm_new_pcm(struct snd_soc_card *card, | 416 | int snd_soc_dapm_new_pcm(struct snd_soc_card *card, |
| 415 | const struct snd_soc_pcm_stream *params, | 417 | const struct snd_soc_pcm_stream *params, |
| 416 | struct snd_soc_dapm_widget *source, | 418 | struct snd_soc_dapm_widget *source, |
diff --git a/include/sound/soc.h b/include/sound/soc.h index 1f741cb24f33..03ce45bf8ade 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
| @@ -334,9 +334,7 @@ struct snd_soc_jack_pin; | |||
| 334 | #include <sound/soc-dapm.h> | 334 | #include <sound/soc-dapm.h> |
| 335 | #include <sound/soc-dpcm.h> | 335 | #include <sound/soc-dpcm.h> |
| 336 | 336 | ||
| 337 | #ifdef CONFIG_GPIOLIB | ||
| 338 | struct snd_soc_jack_gpio; | 337 | struct snd_soc_jack_gpio; |
| 339 | #endif | ||
| 340 | 338 | ||
| 341 | typedef int (*hw_write_t)(void *,const char* ,int); | 339 | typedef int (*hw_write_t)(void *,const char* ,int); |
| 342 | 340 | ||
| @@ -446,6 +444,17 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, | |||
| 446 | struct snd_soc_jack_gpio *gpios); | 444 | struct snd_soc_jack_gpio *gpios); |
| 447 | void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, | 445 | void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, |
| 448 | struct snd_soc_jack_gpio *gpios); | 446 | struct snd_soc_jack_gpio *gpios); |
| 447 | #else | ||
| 448 | static inline int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, | ||
| 449 | struct snd_soc_jack_gpio *gpios) | ||
| 450 | { | ||
| 451 | return 0; | ||
| 452 | } | ||
| 453 | |||
| 454 | static inline void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, | ||
| 455 | struct snd_soc_jack_gpio *gpios) | ||
| 456 | { | ||
| 457 | } | ||
| 449 | #endif | 458 | #endif |
| 450 | 459 | ||
| 451 | /* codec register bit access */ | 460 | /* codec register bit access */ |
| @@ -580,7 +589,6 @@ struct snd_soc_jack_zone { | |||
| 580 | * to provide more complex checks (eg, reading an | 589 | * to provide more complex checks (eg, reading an |
| 581 | * ADC). | 590 | * ADC). |
| 582 | */ | 591 | */ |
| 583 | #ifdef CONFIG_GPIOLIB | ||
| 584 | struct snd_soc_jack_gpio { | 592 | struct snd_soc_jack_gpio { |
| 585 | unsigned int gpio; | 593 | unsigned int gpio; |
| 586 | const char *name; | 594 | const char *name; |
| @@ -594,7 +602,6 @@ struct snd_soc_jack_gpio { | |||
| 594 | 602 | ||
| 595 | int (*jack_status_check)(void); | 603 | int (*jack_status_check)(void); |
| 596 | }; | 604 | }; |
| 597 | #endif | ||
| 598 | 605 | ||
| 599 | struct snd_soc_jack { | 606 | struct snd_soc_jack { |
| 600 | struct mutex mutex; | 607 | struct mutex mutex; |
| @@ -879,6 +886,8 @@ struct snd_soc_dai_link { | |||
| 879 | 886 | ||
| 880 | /* Symmetry requirements */ | 887 | /* Symmetry requirements */ |
| 881 | unsigned int symmetric_rates:1; | 888 | unsigned int symmetric_rates:1; |
| 889 | unsigned int symmetric_channels:1; | ||
| 890 | unsigned int symmetric_samplebits:1; | ||
| 882 | 891 | ||
| 883 | /* Do not create a PCM for this DAI link (Backend link) */ | 892 | /* Do not create a PCM for this DAI link (Backend link) */ |
| 884 | unsigned int no_pcm:1; | 893 | unsigned int no_pcm:1; |
| @@ -886,6 +895,10 @@ struct snd_soc_dai_link { | |||
| 886 | /* This DAI link can route to other DAI links at runtime (Frontend)*/ | 895 | /* This DAI link can route to other DAI links at runtime (Frontend)*/ |
| 887 | unsigned int dynamic:1; | 896 | unsigned int dynamic:1; |
| 888 | 897 | ||
| 898 | /* DPCM capture and Playback support */ | ||
| 899 | unsigned int dpcm_capture:1; | ||
| 900 | unsigned int dpcm_playback:1; | ||
| 901 | |||
| 889 | /* pmdown_time is ignored at stop */ | 902 | /* pmdown_time is ignored at stop */ |
| 890 | unsigned int ignore_pmdown_time:1; | 903 | unsigned int ignore_pmdown_time:1; |
| 891 | 904 | ||
diff --git a/include/sound/spear_dma.h b/include/sound/spear_dma.h index 1b365bfdfb37..65aca51fe255 100644 --- a/include/sound/spear_dma.h +++ b/include/sound/spear_dma.h | |||
| @@ -29,7 +29,6 @@ struct spear_dma_data { | |||
| 29 | dma_addr_t addr; | 29 | dma_addr_t addr; |
| 30 | u32 max_burst; | 30 | u32 max_burst; |
| 31 | enum dma_slave_buswidth addr_width; | 31 | enum dma_slave_buswidth addr_width; |
| 32 | bool (*filter)(struct dma_chan *chan, void *slave); | ||
| 33 | }; | 32 | }; |
| 34 | 33 | ||
| 35 | #endif /* SPEAR_DMA_H */ | 34 | #endif /* SPEAR_DMA_H */ |
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 45412a6afa69..321301c0a643 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
| @@ -517,10 +517,6 @@ struct se_node_acl { | |||
| 517 | u32 acl_index; | 517 | u32 acl_index; |
| 518 | #define MAX_ACL_TAG_SIZE 64 | 518 | #define MAX_ACL_TAG_SIZE 64 |
| 519 | char acl_tag[MAX_ACL_TAG_SIZE]; | 519 | char acl_tag[MAX_ACL_TAG_SIZE]; |
| 520 | u64 num_cmds; | ||
| 521 | u64 read_bytes; | ||
| 522 | u64 write_bytes; | ||
| 523 | spinlock_t stats_lock; | ||
| 524 | /* Used for PR SPEC_I_PT=1 and REGISTER_AND_MOVE */ | 520 | /* Used for PR SPEC_I_PT=1 and REGISTER_AND_MOVE */ |
| 525 | atomic_t acl_pr_ref_count; | 521 | atomic_t acl_pr_ref_count; |
| 526 | struct se_dev_entry **device_list; | 522 | struct se_dev_entry **device_list; |
| @@ -624,6 +620,7 @@ struct se_dev_attrib { | |||
| 624 | u32 unmap_granularity; | 620 | u32 unmap_granularity; |
| 625 | u32 unmap_granularity_alignment; | 621 | u32 unmap_granularity_alignment; |
| 626 | u32 max_write_same_len; | 622 | u32 max_write_same_len; |
| 623 | u32 max_bytes_per_io; | ||
| 627 | struct se_device *da_dev; | 624 | struct se_device *da_dev; |
| 628 | struct config_group da_group; | 625 | struct config_group da_group; |
| 629 | }; | 626 | }; |
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 52594b20179e..5c38606613d8 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
| @@ -90,6 +90,10 @@ | |||
| 90 | #define TRACE_EVENT_FLAGS(name, value) \ | 90 | #define TRACE_EVENT_FLAGS(name, value) \ |
| 91 | __TRACE_EVENT_FLAGS(name, value) | 91 | __TRACE_EVENT_FLAGS(name, value) |
| 92 | 92 | ||
| 93 | #undef TRACE_EVENT_PERF_PERM | ||
| 94 | #define TRACE_EVENT_PERF_PERM(name, expr...) \ | ||
| 95 | __TRACE_EVENT_PERF_PERM(name, expr) | ||
| 96 | |||
| 93 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) | 97 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) |
| 94 | 98 | ||
| 95 | 99 | ||
| @@ -140,6 +144,9 @@ | |||
| 140 | #undef TRACE_EVENT_FLAGS | 144 | #undef TRACE_EVENT_FLAGS |
| 141 | #define TRACE_EVENT_FLAGS(event, flag) | 145 | #define TRACE_EVENT_FLAGS(event, flag) |
| 142 | 146 | ||
| 147 | #undef TRACE_EVENT_PERF_PERM | ||
| 148 | #define TRACE_EVENT_PERF_PERM(event, expr...) | ||
| 149 | |||
| 143 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) | 150 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) |
| 144 | 151 | ||
| 145 | /* | 152 | /* |
| @@ -372,7 +379,8 @@ ftrace_define_fields_##call(struct ftrace_event_call *event_call) \ | |||
| 372 | __data_size += (len) * sizeof(type); | 379 | __data_size += (len) * sizeof(type); |
| 373 | 380 | ||
| 374 | #undef __string | 381 | #undef __string |
| 375 | #define __string(item, src) __dynamic_array(char, item, strlen(src) + 1) | 382 | #define __string(item, src) __dynamic_array(char, item, \ |
| 383 | strlen((src) ? (const char *)(src) : "(null)") + 1) | ||
| 376 | 384 | ||
| 377 | #undef DECLARE_EVENT_CLASS | 385 | #undef DECLARE_EVENT_CLASS |
| 378 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ | 386 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ |
| @@ -501,7 +509,7 @@ static inline notrace int ftrace_get_offsets_##call( \ | |||
| 501 | 509 | ||
| 502 | #undef __assign_str | 510 | #undef __assign_str |
| 503 | #define __assign_str(dst, src) \ | 511 | #define __assign_str(dst, src) \ |
| 504 | strcpy(__get_str(dst), src); | 512 | strcpy(__get_str(dst), (src) ? (const char *)(src) : "(null)"); |
| 505 | 513 | ||
| 506 | #undef TP_fast_assign | 514 | #undef TP_fast_assign |
| 507 | #define TP_fast_assign(args...) args | 515 | #define TP_fast_assign(args...) args |
diff --git a/include/uapi/drm/vmwgfx_drm.h b/include/uapi/drm/vmwgfx_drm.h index bcb0912afe7a..f854ca4a1372 100644 --- a/include/uapi/drm/vmwgfx_drm.h +++ b/include/uapi/drm/vmwgfx_drm.h | |||
| @@ -75,6 +75,7 @@ | |||
| 75 | #define DRM_VMW_PARAM_FIFO_CAPS 4 | 75 | #define DRM_VMW_PARAM_FIFO_CAPS 4 |
| 76 | #define DRM_VMW_PARAM_MAX_FB_SIZE 5 | 76 | #define DRM_VMW_PARAM_MAX_FB_SIZE 5 |
| 77 | #define DRM_VMW_PARAM_FIFO_HW_VERSION 6 | 77 | #define DRM_VMW_PARAM_FIFO_HW_VERSION 6 |
| 78 | #define DRM_VMW_PARAM_MAX_SURF_MEMORY 7 | ||
| 78 | 79 | ||
| 79 | /** | 80 | /** |
| 80 | * struct drm_vmw_getparam_arg | 81 | * struct drm_vmw_getparam_arg |
diff --git a/include/uapi/linux/eventpoll.h b/include/uapi/linux/eventpoll.h index 2c267bcbb85c..bc81fb2e1f0e 100644 --- a/include/uapi/linux/eventpoll.h +++ b/include/uapi/linux/eventpoll.h | |||
| @@ -61,5 +61,16 @@ struct epoll_event { | |||
| 61 | __u64 data; | 61 | __u64 data; |
| 62 | } EPOLL_PACKED; | 62 | } EPOLL_PACKED; |
| 63 | 63 | ||
| 64 | 64 | #ifdef CONFIG_PM_SLEEP | |
| 65 | static inline void ep_take_care_of_epollwakeup(struct epoll_event *epev) | ||
| 66 | { | ||
| 67 | if ((epev->events & EPOLLWAKEUP) && !capable(CAP_BLOCK_SUSPEND)) | ||
| 68 | epev->events &= ~EPOLLWAKEUP; | ||
| 69 | } | ||
| 70 | #else | ||
| 71 | static inline void ep_take_care_of_epollwakeup(struct epoll_event *epev) | ||
| 72 | { | ||
| 73 | epev->events &= ~EPOLLWAKEUP; | ||
| 74 | } | ||
| 75 | #endif | ||
| 65 | #endif /* _UAPI_LINUX_EVENTPOLL_H */ | 76 | #endif /* _UAPI_LINUX_EVENTPOLL_H */ |
diff --git a/include/uapi/linux/genetlink.h b/include/uapi/linux/genetlink.h index 1af72d8228e0..c3363ba1ae05 100644 --- a/include/uapi/linux/genetlink.h +++ b/include/uapi/linux/genetlink.h | |||
| @@ -28,6 +28,7 @@ struct genlmsghdr { | |||
| 28 | #define GENL_ID_GENERATE 0 | 28 | #define GENL_ID_GENERATE 0 |
| 29 | #define GENL_ID_CTRL NLMSG_MIN_TYPE | 29 | #define GENL_ID_CTRL NLMSG_MIN_TYPE |
| 30 | #define GENL_ID_VFS_DQUOT (NLMSG_MIN_TYPE + 1) | 30 | #define GENL_ID_VFS_DQUOT (NLMSG_MIN_TYPE + 1) |
| 31 | #define GENL_ID_PMCRAID (NLMSG_MIN_TYPE + 2) | ||
| 31 | 32 | ||
| 32 | /************************************************************************** | 33 | /************************************************************************** |
| 33 | * Controller | 34 | * Controller |
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index b78566f59aba..6db460121f84 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h | |||
| @@ -488,7 +488,9 @@ enum { | |||
| 488 | IFLA_HSR_UNSPEC, | 488 | IFLA_HSR_UNSPEC, |
| 489 | IFLA_HSR_SLAVE1, | 489 | IFLA_HSR_SLAVE1, |
| 490 | IFLA_HSR_SLAVE2, | 490 | IFLA_HSR_SLAVE2, |
| 491 | IFLA_HSR_MULTICAST_SPEC, | 491 | IFLA_HSR_MULTICAST_SPEC, /* Last byte of supervision addr */ |
| 492 | IFLA_HSR_SUPERVISION_ADDR, /* Supervision frame multicast addr */ | ||
| 493 | IFLA_HSR_SEQ_NR, | ||
| 492 | __IFLA_HSR_MAX, | 494 | __IFLA_HSR_MAX, |
| 493 | }; | 495 | }; |
| 494 | 496 | ||
diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index a3726275876d..ecc88592ecbe 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h | |||
| @@ -719,6 +719,8 @@ struct input_keymap_entry { | |||
| 719 | #define BTN_DPAD_LEFT 0x222 | 719 | #define BTN_DPAD_LEFT 0x222 |
| 720 | #define BTN_DPAD_RIGHT 0x223 | 720 | #define BTN_DPAD_RIGHT 0x223 |
| 721 | 721 | ||
| 722 | #define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */ | ||
| 723 | |||
| 722 | #define BTN_TRIGGER_HAPPY 0x2c0 | 724 | #define BTN_TRIGGER_HAPPY 0x2c0 |
| 723 | #define BTN_TRIGGER_HAPPY1 0x2c0 | 725 | #define BTN_TRIGGER_HAPPY1 0x2c0 |
| 724 | #define BTN_TRIGGER_HAPPY2 0x2c1 | 726 | #define BTN_TRIGGER_HAPPY2 0x2c1 |
| @@ -856,6 +858,7 @@ struct input_keymap_entry { | |||
| 856 | #define SW_FRONT_PROXIMITY 0x0b /* set = front proximity sensor active */ | 858 | #define SW_FRONT_PROXIMITY 0x0b /* set = front proximity sensor active */ |
| 857 | #define SW_ROTATE_LOCK 0x0c /* set = rotate locked/disabled */ | 859 | #define SW_ROTATE_LOCK 0x0c /* set = rotate locked/disabled */ |
| 858 | #define SW_LINEIN_INSERT 0x0d /* set = inserted */ | 860 | #define SW_LINEIN_INSERT 0x0d /* set = inserted */ |
| 861 | #define SW_MUTE_DEVICE 0x0e /* set = device disabled */ | ||
| 859 | #define SW_MAX 0x0f | 862 | #define SW_MAX 0x0f |
| 860 | #define SW_CNT (SW_MAX+1) | 863 | #define SW_CNT (SW_MAX+1) |
| 861 | 864 | ||
diff --git a/include/uapi/linux/mic_common.h b/include/uapi/linux/mic_common.h index 17e7d95e4f53..6eb40244e019 100644 --- a/include/uapi/linux/mic_common.h +++ b/include/uapi/linux/mic_common.h | |||
| @@ -23,12 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | #include <linux/virtio_ring.h> | 24 | #include <linux/virtio_ring.h> |
| 25 | 25 | ||
| 26 | #ifndef __KERNEL__ | 26 | #define __mic_align(a, x) (((a) + (x) - 1) & ~((x) - 1)) |
| 27 | #define ALIGN(a, x) (((a) + (x) - 1) & ~((x) - 1)) | ||
| 28 | #define __aligned(x) __attribute__ ((aligned(x))) | ||
| 29 | #endif | ||
| 30 | |||
| 31 | #define mic_aligned_size(x) ALIGN(sizeof(x), 8) | ||
| 32 | 27 | ||
| 33 | /** | 28 | /** |
| 34 | * struct mic_device_desc: Virtio device information shared between the | 29 | * struct mic_device_desc: Virtio device information shared between the |
| @@ -48,8 +43,8 @@ struct mic_device_desc { | |||
| 48 | __u8 feature_len; | 43 | __u8 feature_len; |
| 49 | __u8 config_len; | 44 | __u8 config_len; |
| 50 | __u8 status; | 45 | __u8 status; |
| 51 | __u64 config[0]; | 46 | __le64 config[0]; |
| 52 | } __aligned(8); | 47 | } __attribute__ ((aligned(8))); |
| 53 | 48 | ||
| 54 | /** | 49 | /** |
| 55 | * struct mic_device_ctrl: Per virtio device information in the device page | 50 | * struct mic_device_ctrl: Per virtio device information in the device page |
| @@ -66,7 +61,7 @@ struct mic_device_desc { | |||
| 66 | * @h2c_vdev_db: The doorbell number to be used by host. Set by guest. | 61 | * @h2c_vdev_db: The doorbell number to be used by host. Set by guest. |
| 67 | */ | 62 | */ |
| 68 | struct mic_device_ctrl { | 63 | struct mic_device_ctrl { |
| 69 | __u64 vdev; | 64 | __le64 vdev; |
| 70 | __u8 config_change; | 65 | __u8 config_change; |
| 71 | __u8 vdev_reset; | 66 | __u8 vdev_reset; |
| 72 | __u8 guest_ack; | 67 | __u8 guest_ack; |
| @@ -74,7 +69,7 @@ struct mic_device_ctrl { | |||
| 74 | __u8 used_address_updated; | 69 | __u8 used_address_updated; |
| 75 | __s8 c2h_vdev_db; | 70 | __s8 c2h_vdev_db; |
| 76 | __s8 h2c_vdev_db; | 71 | __s8 h2c_vdev_db; |
| 77 | } __aligned(8); | 72 | } __attribute__ ((aligned(8))); |
| 78 | 73 | ||
| 79 | /** | 74 | /** |
| 80 | * struct mic_bootparam: Virtio device independent information in device page | 75 | * struct mic_bootparam: Virtio device independent information in device page |
| @@ -87,13 +82,13 @@ struct mic_device_ctrl { | |||
| 87 | * @shutdown_card: Set to 1 by the host when a card shutdown is initiated | 82 | * @shutdown_card: Set to 1 by the host when a card shutdown is initiated |
| 88 | */ | 83 | */ |
| 89 | struct mic_bootparam { | 84 | struct mic_bootparam { |
| 90 | __u32 magic; | 85 | __le32 magic; |
| 91 | __s8 c2h_shutdown_db; | 86 | __s8 c2h_shutdown_db; |
| 92 | __s8 h2c_shutdown_db; | 87 | __s8 h2c_shutdown_db; |
| 93 | __s8 h2c_config_db; | 88 | __s8 h2c_config_db; |
| 94 | __u8 shutdown_status; | 89 | __u8 shutdown_status; |
| 95 | __u8 shutdown_card; | 90 | __u8 shutdown_card; |
| 96 | } __aligned(8); | 91 | } __attribute__ ((aligned(8))); |
| 97 | 92 | ||
| 98 | /** | 93 | /** |
| 99 | * struct mic_device_page: High level representation of the device page | 94 | * struct mic_device_page: High level representation of the device page |
| @@ -116,10 +111,10 @@ struct mic_device_page { | |||
| 116 | * @num: The number of entries in the virtio_ring | 111 | * @num: The number of entries in the virtio_ring |
| 117 | */ | 112 | */ |
| 118 | struct mic_vqconfig { | 113 | struct mic_vqconfig { |
| 119 | __u64 address; | 114 | __le64 address; |
| 120 | __u64 used_address; | 115 | __le64 used_address; |
| 121 | __u16 num; | 116 | __le16 num; |
| 122 | } __aligned(8); | 117 | } __attribute__ ((aligned(8))); |
| 123 | 118 | ||
| 124 | /* | 119 | /* |
| 125 | * The alignment to use between consumer and producer parts of vring. | 120 | * The alignment to use between consumer and producer parts of vring. |
| @@ -154,7 +149,7 @@ struct mic_vqconfig { | |||
| 154 | */ | 149 | */ |
| 155 | struct _mic_vring_info { | 150 | struct _mic_vring_info { |
| 156 | __u16 avail_idx; | 151 | __u16 avail_idx; |
| 157 | int magic; | 152 | __le32 magic; |
| 158 | }; | 153 | }; |
| 159 | 154 | ||
| 160 | /** | 155 | /** |
| @@ -173,15 +168,13 @@ struct mic_vring { | |||
| 173 | int len; | 168 | int len; |
| 174 | }; | 169 | }; |
| 175 | 170 | ||
| 176 | #define mic_aligned_desc_size(d) ALIGN(mic_desc_size(d), 8) | 171 | #define mic_aligned_desc_size(d) __mic_align(mic_desc_size(d), 8) |
| 177 | 172 | ||
| 178 | #ifndef INTEL_MIC_CARD | 173 | #ifndef INTEL_MIC_CARD |
| 179 | static inline unsigned mic_desc_size(const struct mic_device_desc *desc) | 174 | static inline unsigned mic_desc_size(const struct mic_device_desc *desc) |
| 180 | { | 175 | { |
| 181 | return mic_aligned_size(*desc) | 176 | return sizeof(*desc) + desc->num_vq * sizeof(struct mic_vqconfig) |
| 182 | + desc->num_vq * mic_aligned_size(struct mic_vqconfig) | 177 | + desc->feature_len * 2 + desc->config_len; |
| 183 | + desc->feature_len * 2 | ||
| 184 | + desc->config_len; | ||
| 185 | } | 178 | } |
| 186 | 179 | ||
| 187 | static inline struct mic_vqconfig * | 180 | static inline struct mic_vqconfig * |
| @@ -201,8 +194,7 @@ static inline __u8 *mic_vq_configspace(const struct mic_device_desc *desc) | |||
| 201 | } | 194 | } |
| 202 | static inline unsigned mic_total_desc_size(struct mic_device_desc *desc) | 195 | static inline unsigned mic_total_desc_size(struct mic_device_desc *desc) |
| 203 | { | 196 | { |
| 204 | return mic_aligned_desc_size(desc) + | 197 | return mic_aligned_desc_size(desc) + sizeof(struct mic_device_ctrl); |
| 205 | mic_aligned_size(struct mic_device_ctrl); | ||
| 206 | } | 198 | } |
| 207 | #endif | 199 | #endif |
| 208 | 200 | ||
diff --git a/include/uapi/linux/netlink_diag.h b/include/uapi/linux/netlink_diag.h index 4e31db4eea41..f2159d30d1f5 100644 --- a/include/uapi/linux/netlink_diag.h +++ b/include/uapi/linux/netlink_diag.h | |||
| @@ -33,6 +33,7 @@ struct netlink_diag_ring { | |||
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | enum { | 35 | enum { |
| 36 | /* NETLINK_DIAG_NONE, standard nl API requires this attribute! */ | ||
| 36 | NETLINK_DIAG_MEMINFO, | 37 | NETLINK_DIAG_MEMINFO, |
| 37 | NETLINK_DIAG_GROUPS, | 38 | NETLINK_DIAG_GROUPS, |
| 38 | NETLINK_DIAG_RX_RING, | 39 | NETLINK_DIAG_RX_RING, |
diff --git a/include/uapi/linux/packet_diag.h b/include/uapi/linux/packet_diag.h index b2cc0cd9c4d9..d08c63f3dd6f 100644 --- a/include/uapi/linux/packet_diag.h +++ b/include/uapi/linux/packet_diag.h | |||
| @@ -29,6 +29,7 @@ struct packet_diag_msg { | |||
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | enum { | 31 | enum { |
| 32 | /* PACKET_DIAG_NONE, standard nl API requires this attribute! */ | ||
| 32 | PACKET_DIAG_INFO, | 33 | PACKET_DIAG_INFO, |
| 33 | PACKET_DIAG_MCLIST, | 34 | PACKET_DIAG_MCLIST, |
| 34 | PACKET_DIAG_RX_RING, | 35 | PACKET_DIAG_RX_RING, |
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index e1802d6153ae..959d454f76a1 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h | |||
| @@ -679,6 +679,7 @@ enum perf_event_type { | |||
| 679 | * | 679 | * |
| 680 | * { u64 weight; } && PERF_SAMPLE_WEIGHT | 680 | * { u64 weight; } && PERF_SAMPLE_WEIGHT |
| 681 | * { u64 data_src; } && PERF_SAMPLE_DATA_SRC | 681 | * { u64 data_src; } && PERF_SAMPLE_DATA_SRC |
| 682 | * { u64 transaction; } && PERF_SAMPLE_TRANSACTION | ||
| 682 | * }; | 683 | * }; |
| 683 | */ | 684 | */ |
| 684 | PERF_RECORD_SAMPLE = 9, | 685 | PERF_RECORD_SAMPLE = 9, |
diff --git a/include/uapi/linux/unix_diag.h b/include/uapi/linux/unix_diag.h index b9e2a6a7446f..1eb0b8dd1830 100644 --- a/include/uapi/linux/unix_diag.h +++ b/include/uapi/linux/unix_diag.h | |||
| @@ -31,6 +31,7 @@ struct unix_diag_msg { | |||
| 31 | }; | 31 | }; |
| 32 | 32 | ||
| 33 | enum { | 33 | enum { |
| 34 | /* UNIX_DIAG_NONE, standard nl API requires this attribute! */ | ||
| 34 | UNIX_DIAG_NAME, | 35 | UNIX_DIAG_NAME, |
| 35 | UNIX_DIAG_VFS, | 36 | UNIX_DIAG_VFS, |
| 36 | UNIX_DIAG_PEER, | 37 | UNIX_DIAG_PEER, |
diff --git a/include/uapi/sound/compress_offload.h b/include/uapi/sound/compress_offload.h index d630163b9a2e..5759810e1c1b 100644 --- a/include/uapi/sound/compress_offload.h +++ b/include/uapi/sound/compress_offload.h | |||
| @@ -30,7 +30,7 @@ | |||
| 30 | #include <sound/compress_params.h> | 30 | #include <sound/compress_params.h> |
| 31 | 31 | ||
| 32 | 32 | ||
| 33 | #define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 1, 1) | 33 | #define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 1, 2) |
| 34 | /** | 34 | /** |
| 35 | * struct snd_compressed_buffer: compressed buffer | 35 | * struct snd_compressed_buffer: compressed buffer |
| 36 | * @fragment_size: size of buffer fragment in bytes | 36 | * @fragment_size: size of buffer fragment in bytes |
| @@ -67,8 +67,8 @@ struct snd_compr_params { | |||
| 67 | struct snd_compr_tstamp { | 67 | struct snd_compr_tstamp { |
| 68 | __u32 byte_offset; | 68 | __u32 byte_offset; |
| 69 | __u32 copied_total; | 69 | __u32 copied_total; |
| 70 | snd_pcm_uframes_t pcm_frames; | 70 | __u32 pcm_frames; |
| 71 | snd_pcm_uframes_t pcm_io_frames; | 71 | __u32 pcm_io_frames; |
| 72 | __u32 sampling_rate; | 72 | __u32 sampling_rate; |
| 73 | }; | 73 | }; |
| 74 | 74 | ||
diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h index 602dc6c45d1a..165e7059de75 100644 --- a/include/uapi/sound/compress_params.h +++ b/include/uapi/sound/compress_params.h | |||
| @@ -57,6 +57,7 @@ | |||
| 57 | #define MAX_NUM_CODECS 32 | 57 | #define MAX_NUM_CODECS 32 |
| 58 | #define MAX_NUM_CODEC_DESCRIPTORS 32 | 58 | #define MAX_NUM_CODEC_DESCRIPTORS 32 |
| 59 | #define MAX_NUM_BITRATES 32 | 59 | #define MAX_NUM_BITRATES 32 |
| 60 | #define MAX_NUM_SAMPLE_RATES 32 | ||
| 60 | 61 | ||
| 61 | /* Codecs are listed linearly to allow for extensibility */ | 62 | /* Codecs are listed linearly to allow for extensibility */ |
| 62 | #define SND_AUDIOCODEC_PCM ((__u32) 0x00000001) | 63 | #define SND_AUDIOCODEC_PCM ((__u32) 0x00000001) |
| @@ -324,7 +325,8 @@ union snd_codec_options { | |||
| 324 | 325 | ||
| 325 | /** struct snd_codec_desc - description of codec capabilities | 326 | /** struct snd_codec_desc - description of codec capabilities |
| 326 | * @max_ch: Maximum number of audio channels | 327 | * @max_ch: Maximum number of audio channels |
| 327 | * @sample_rates: Sampling rates in Hz, use SNDRV_PCM_RATE_xxx for this | 328 | * @sample_rates: Sampling rates in Hz, use values like 48000 for this |
| 329 | * @num_sample_rates: Number of valid values in sample_rates array | ||
| 328 | * @bit_rate: Indexed array containing supported bit rates | 330 | * @bit_rate: Indexed array containing supported bit rates |
| 329 | * @num_bitrates: Number of valid values in bit_rate array | 331 | * @num_bitrates: Number of valid values in bit_rate array |
| 330 | * @rate_control: value is specified by SND_RATECONTROLMODE defines. | 332 | * @rate_control: value is specified by SND_RATECONTROLMODE defines. |
| @@ -346,7 +348,8 @@ union snd_codec_options { | |||
| 346 | 348 | ||
| 347 | struct snd_codec_desc { | 349 | struct snd_codec_desc { |
| 348 | __u32 max_ch; | 350 | __u32 max_ch; |
| 349 | __u32 sample_rates; | 351 | __u32 sample_rates[MAX_NUM_SAMPLE_RATES]; |
| 352 | __u32 num_sample_rates; | ||
| 350 | __u32 bit_rate[MAX_NUM_BITRATES]; | 353 | __u32 bit_rate[MAX_NUM_BITRATES]; |
| 351 | __u32 num_bitrates; | 354 | __u32 num_bitrates; |
| 352 | __u32 rate_control; | 355 | __u32 rate_control; |
| @@ -364,7 +367,8 @@ struct snd_codec_desc { | |||
| 364 | * @ch_out: Number of output channels. In case of contradiction between | 367 | * @ch_out: Number of output channels. In case of contradiction between |
| 365 | * this field and the channelMode field, the channelMode field | 368 | * this field and the channelMode field, the channelMode field |
| 366 | * overrides. | 369 | * overrides. |
| 367 | * @sample_rate: Audio sample rate of input data | 370 | * @sample_rate: Audio sample rate of input data in Hz, use values like 48000 |
| 371 | * for this. | ||
| 368 | * @bit_rate: Bitrate of encoded data. May be ignored by decoders | 372 | * @bit_rate: Bitrate of encoded data. May be ignored by decoders |
| 369 | * @rate_control: Encoding rate control. See SND_RATECONTROLMODE defines. | 373 | * @rate_control: Encoding rate control. See SND_RATECONTROLMODE defines. |
| 370 | * Encoders may rely on profiles for quality levels. | 374 | * Encoders may rely on profiles for quality levels. |
diff --git a/include/xen/interface/io/blkif.h b/include/xen/interface/io/blkif.h index 65e12099ef89..ae665ac59c36 100644 --- a/include/xen/interface/io/blkif.h +++ b/include/xen/interface/io/blkif.h | |||
| @@ -146,7 +146,7 @@ struct blkif_request_segment_aligned { | |||
| 146 | struct blkif_request_rw { | 146 | struct blkif_request_rw { |
| 147 | uint8_t nr_segments; /* number of segments */ | 147 | uint8_t nr_segments; /* number of segments */ |
| 148 | blkif_vdev_t handle; /* only for read/write requests */ | 148 | blkif_vdev_t handle; /* only for read/write requests */ |
| 149 | #ifdef CONFIG_X86_64 | 149 | #ifndef CONFIG_X86_32 |
| 150 | uint32_t _pad1; /* offsetof(blkif_request,u.rw.id) == 8 */ | 150 | uint32_t _pad1; /* offsetof(blkif_request,u.rw.id) == 8 */ |
| 151 | #endif | 151 | #endif |
| 152 | uint64_t id; /* private guest value, echoed in resp */ | 152 | uint64_t id; /* private guest value, echoed in resp */ |
| @@ -163,7 +163,7 @@ struct blkif_request_discard { | |||
| 163 | uint8_t flag; /* BLKIF_DISCARD_SECURE or zero. */ | 163 | uint8_t flag; /* BLKIF_DISCARD_SECURE or zero. */ |
| 164 | #define BLKIF_DISCARD_SECURE (1<<0) /* ignored if discard-secure=0 */ | 164 | #define BLKIF_DISCARD_SECURE (1<<0) /* ignored if discard-secure=0 */ |
| 165 | blkif_vdev_t _pad1; /* only for read/write requests */ | 165 | blkif_vdev_t _pad1; /* only for read/write requests */ |
| 166 | #ifdef CONFIG_X86_64 | 166 | #ifndef CONFIG_X86_32 |
| 167 | uint32_t _pad2; /* offsetof(blkif_req..,u.discard.id)==8*/ | 167 | uint32_t _pad2; /* offsetof(blkif_req..,u.discard.id)==8*/ |
| 168 | #endif | 168 | #endif |
| 169 | uint64_t id; /* private guest value, echoed in resp */ | 169 | uint64_t id; /* private guest value, echoed in resp */ |
| @@ -175,7 +175,7 @@ struct blkif_request_discard { | |||
| 175 | struct blkif_request_other { | 175 | struct blkif_request_other { |
| 176 | uint8_t _pad1; | 176 | uint8_t _pad1; |
| 177 | blkif_vdev_t _pad2; /* only for read/write requests */ | 177 | blkif_vdev_t _pad2; /* only for read/write requests */ |
| 178 | #ifdef CONFIG_X86_64 | 178 | #ifndef CONFIG_X86_32 |
| 179 | uint32_t _pad3; /* offsetof(blkif_req..,u.other.id)==8*/ | 179 | uint32_t _pad3; /* offsetof(blkif_req..,u.other.id)==8*/ |
| 180 | #endif | 180 | #endif |
| 181 | uint64_t id; /* private guest value, echoed in resp */ | 181 | uint64_t id; /* private guest value, echoed in resp */ |
| @@ -184,7 +184,7 @@ struct blkif_request_other { | |||
| 184 | struct blkif_request_indirect { | 184 | struct blkif_request_indirect { |
| 185 | uint8_t indirect_op; | 185 | uint8_t indirect_op; |
| 186 | uint16_t nr_segments; | 186 | uint16_t nr_segments; |
| 187 | #ifdef CONFIG_X86_64 | 187 | #ifndef CONFIG_X86_32 |
| 188 | uint32_t _pad1; /* offsetof(blkif_...,u.indirect.id) == 8 */ | 188 | uint32_t _pad1; /* offsetof(blkif_...,u.indirect.id) == 8 */ |
| 189 | #endif | 189 | #endif |
| 190 | uint64_t id; | 190 | uint64_t id; |
| @@ -192,7 +192,7 @@ struct blkif_request_indirect { | |||
| 192 | blkif_vdev_t handle; | 192 | blkif_vdev_t handle; |
| 193 | uint16_t _pad2; | 193 | uint16_t _pad2; |
| 194 | grant_ref_t indirect_grefs[BLKIF_MAX_INDIRECT_PAGES_PER_REQUEST]; | 194 | grant_ref_t indirect_grefs[BLKIF_MAX_INDIRECT_PAGES_PER_REQUEST]; |
| 195 | #ifdef CONFIG_X86_64 | 195 | #ifndef CONFIG_X86_32 |
| 196 | uint32_t _pad3; /* make it 64 byte aligned */ | 196 | uint32_t _pad3; /* make it 64 byte aligned */ |
| 197 | #else | 197 | #else |
| 198 | uint64_t _pad3; /* make it 64 byte aligned */ | 198 | uint64_t _pad3; /* make it 64 byte aligned */ |
