libsas.h (f0eef25339f92f7cd4aeea23d9ae97987a5a1e82) | libsas.h (b218a0d8e250e0ae8fd4d4e45bd66a588b380752) |
---|---|
1/* 2 * SAS host prototypes and structures header file 3 * 4 * Copyright (C) 2005 Adaptec, Inc. All rights reserved. 5 * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com> 6 * 7 * This file is licensed under GPLv2. 8 * --- 540 unchanged lines hidden (view full) --- 549}; 550 551 552 553#define SAS_TASK_STATE_PENDING 1 554#define SAS_TASK_STATE_DONE 2 555#define SAS_TASK_STATE_ABORTED 4 556#define SAS_TASK_INITIATOR_ABORTED 8 | 1/* 2 * SAS host prototypes and structures header file 3 * 4 * Copyright (C) 2005 Adaptec, Inc. All rights reserved. 5 * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com> 6 * 7 * This file is licensed under GPLv2. 8 * --- 540 unchanged lines hidden (view full) --- 549}; 550 551 552 553#define SAS_TASK_STATE_PENDING 1 554#define SAS_TASK_STATE_DONE 2 555#define SAS_TASK_STATE_ABORTED 4 556#define SAS_TASK_INITIATOR_ABORTED 8 |
557#define SAS_TASK_AT_INITIATOR 16 |
|
557 558static inline struct sas_task *sas_alloc_task(gfp_t flags) 559{ 560 extern struct kmem_cache *sas_task_cache; 561 struct sas_task *task = kmem_cache_alloc(sas_task_cache, flags); 562 563 if (task) { 564 memset(task, 0, sizeof(*task)); --- 87 unchanged lines hidden --- | 558 559static inline struct sas_task *sas_alloc_task(gfp_t flags) 560{ 561 extern struct kmem_cache *sas_task_cache; 562 struct sas_task *task = kmem_cache_alloc(sas_task_cache, flags); 563 564 if (task) { 565 memset(task, 0, sizeof(*task)); --- 87 unchanged lines hidden --- |