s390/cio: introduce pathmask_to_pos
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 21 Sep 2015 16:40:33 +0000 (18:40 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:04 +0000 (14:32 +0200)
commit9d49f86daba3ed22cadf01beff1b130ad25fe0bf
tree54d07327930ab0976c5aa1ee36281f07cd32c661
parentab97d211ef1863942a90d7c93dfd563f0381ca87
s390/cio: introduce pathmask_to_pos

We often need to correlate an 8 bit path mask with the position
in a channel path array. Introduce and use pathmask_to_pos for
that task.

Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/cio.h
drivers/s390/block/dasd_eckd.c
drivers/s390/cio/device_pgid.c