Release 4.14 arch/s390/include/asm/chpid.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright IBM Corp. 2007, 2012
* Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
*/
#ifndef _ASM_S390_CHPID_H
#define _ASM_S390_CHPID_H
#include <uapi/asm/chpid.h>
#include <asm/cio.h>
struct channel_path_desc {
u8 flags;
u8 lsn;
u8 desc;
u8 chpid;
u8 swla;
u8 zeroes;
u8 chla;
u8 chpp;
} __packed;
static inline void chp_id_init(struct chp_id *chpid)
{
memset(chpid, 0, sizeof(struct chp_id));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Oberparleiter | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
static inline int chp_id_is_equal(struct chp_id *a, struct chp_id *b)
{
return (a->id == b->id) && (a->cssid == b->cssid);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Oberparleiter | 38 | 100.00% | 1 | 100.00% |
Total | 38 | 100.00% | 1 | 100.00% |
static inline void chp_id_next(struct chp_id *chpid)
{
if (chpid->id < __MAX_CHPID)
chpid->id++;
else {
chpid->id = 0;
chpid->cssid++;
}
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Oberparleiter | 39 | 100.00% | 1 | 100.00% |
Total | 39 | 100.00% | 1 | 100.00% |
static inline int chp_id_is_valid(struct chp_id *chpid)
{
return (chpid->cssid <= __MAX_CSSID);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Oberparleiter | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
#define chp_id_for_each(c) \
for (chp_id_init(c); chp_id_is_valid(c); chp_id_next(c))
#endif /* _ASM_S390_CHPID_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Oberparleiter | 144 | 80.90% | 2 | 28.57% |
Sebastian Ott | 31 | 17.42% | 2 | 28.57% |
Adrian Bunk | 1 | 0.56% | 1 | 14.29% |
David Howells | 1 | 0.56% | 1 | 14.29% |
Greg Kroah-Hartman | 1 | 0.56% | 1 | 14.29% |
Total | 178 | 100.00% | 7 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.