Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef ASM_SCHID_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define ASM_SCHID_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/string.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <uapi/asm/schid.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) /* Helper function for sane state of pre-allocated subchannel_id. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) static inline void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) init_subchannel_id(struct subchannel_id *schid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	memset(schid, 0, sizeof(struct subchannel_id));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	schid->one = 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) schid_equal(struct subchannel_id *schid1, struct subchannel_id *schid2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	return !memcmp(schid1, schid2, sizeof(struct subchannel_id));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #endif /* ASM_SCHID_H */