]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
isci: cleanup tag macros
authorDan Williams <dan.j.williams@intel.com>
Thu, 9 Jun 2011 18:06:58 +0000 (11:06 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:51 +0000 (04:04 -0700)
commitdd047c8e2bca22856050dbe0378a37cf44eecc97
tree5dab5c46acd144024f8cc961a34ae8374343a5d9
parentac668c69709c7d927015c5cf3d9e87bf4eaaf57d
isci: cleanup tag macros

A tag is a 16 bit number where the upper four bits is a sequence number
and the remainder is the task context index (tci).  Sanitize the macro
names and shave 256-bytes out of scic_sds_controller by reducing the size of
io_request_sequence.

scic_sds_io_tag_construct --> ISCI_TAG
scic_sds_io_tag_get_sequence --> ISCI_TAG_SEQ
scic_sds_io_tag_get_index() --> ISCI_TAG_TCI
scic_sds_io_sequence_increment() [delete / open code]

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/host.c
drivers/scsi/isci/host.h
drivers/scsi/isci/isci.h
drivers/scsi/isci/port.c
drivers/scsi/isci/request.c