/linux-3.3/drivers/scsi/ |
D | scsi.c | 221 cmd = scsi_pool_alloc_command(shost->cmd_pool, gfp_mask); in scsi_host_alloc_command() 229 scsi_pool_free_command(shost->cmd_pool, cmd); in scsi_host_alloc_command() 330 scsi_pool_free_command(shost->cmd_pool, cmd); in __scsi_put_command() 487 shost->cmd_pool = scsi_get_host_cmd_pool(gfp_mask); in scsi_setup_command_freelist() 489 if (!shost->cmd_pool) in scsi_setup_command_freelist() 498 shost->cmd_pool = NULL; in scsi_setup_command_freelist() 515 if (!shost->cmd_pool) in scsi_destroy_command_freelist() 523 scsi_pool_free_command(shost->cmd_pool, cmd); in scsi_destroy_command_freelist() 525 shost->cmd_pool = NULL; in scsi_destroy_command_freelist()
|
D | vmw_pvscsi.c | 99 struct list_head cmd_pool; member 166 if (list_empty(&adapter->cmd_pool)) in pvscsi_acquire_context() 169 ctx = list_first_entry(&adapter->cmd_pool, struct pvscsi_ctx, list); in pvscsi_acquire_context() 180 list_add(&ctx->list, &adapter->cmd_pool); in pvscsi_release_context() 1288 INIT_LIST_HEAD(&adapter->cmd_pool); in pvscsi_probe() 1291 list_add(&ctx->list, &adapter->cmd_pool); in pvscsi_probe()
|
D | mvumi.c | 343 if (likely(!list_empty(&mhba->cmd_pool))) { in mvumi_get_cmd() 344 cmd = list_entry((&mhba->cmd_pool)->next, in mvumi_get_cmd() 362 list_add_tail(&cmd->queue_pointer, &mhba->cmd_pool); in mvumi_return_cmd() 373 while (!list_empty(&mhba->cmd_pool)) { in mvumi_free_cmds() 374 cmd = list_first_entry(&mhba->cmd_pool, struct mvumi_cmd, in mvumi_free_cmds() 398 list_add_tail(&cmd->queue_pointer, &mhba->cmd_pool); in mvumi_alloc_cmds() 408 while (!list_empty(&mhba->cmd_pool)) { in mvumi_alloc_cmds() 409 cmd = list_first_entry(&mhba->cmd_pool, struct mvumi_cmd, in mvumi_alloc_cmds() 1826 INIT_LIST_HEAD(&mhba->cmd_pool); in mvumi_probe_one()
|
D | hpsa.h | 91 struct CommandList *cmd_pool; member
|
D | mvumi.h | 441 struct list_head cmd_pool; member
|
D | hpsa.c | 2346 c = h->cmd_pool + i; in cmd_alloc() 2411 i = c - h->cmd_pool; in cmd_free() 3076 c = h->cmd_pool + tag_index; in process_indexed_cmd() 4040 h->cmd_pool = pci_alloc_consistent(h->pdev, in hpsa_allocate_cmd_pool() 4041 h->nr_cmds * sizeof(*h->cmd_pool), in hpsa_allocate_cmd_pool() 4047 || (h->cmd_pool == NULL) in hpsa_allocate_cmd_pool() 4058 if (h->cmd_pool) in hpsa_free_cmd_pool() 4061 h->cmd_pool, h->cmd_pool_dhandle); in hpsa_free_cmd_pool() 4503 h->cmd_pool, h->cmd_pool_dhandle); in hpsa_remove_one()
|
/linux-3.3/drivers/block/ |
D | cpqarray.h | 106 cmdlist_t *cmd_pool; member
|
D | cpqarray.c | 342 NR_CMDS * sizeof(cmdlist_t), (hba[i]->cmd_pool), in cpqarray_remove_one() 422 hba[i]->cmd_pool = pci_alloc_consistent( in cpqarray_register_ctlr() 429 if (!hba[i]->cmd_pool_bits || !hba[i]->cmd_pool) in cpqarray_register_ctlr() 432 memset(hba[i]->cmd_pool, 0, NR_CMDS * sizeof(cmdlist_t)); in cpqarray_register_ctlr() 486 if (hba[i]->cmd_pool) in cpqarray_register_ctlr() 488 hba[i]->cmd_pool, hba[i]->cmd_pool_dhandle); in cpqarray_register_ctlr() 1378 c = h->cmd_pool + i; in cmd_alloc() 1396 i = c - h->cmd_pool; in cmd_free()
|
D | cciss.h | 115 CommandList_struct *cmd_pool; member
|
D | cciss.c | 983 c = h->cmd_pool + i; in cmd_alloc() 1048 i = c - h->cmd_pool; in cmd_free() 3515 c = h->cmd_pool + tag_index; in process_indexed_cmd() 4818 h->cmd_pool = pci_alloc_consistent(h->pdev, in cciss_allocate_cmd_pool() 4825 || (h->cmd_pool == NULL) in cciss_allocate_cmd_pool() 4869 if (h->cmd_pool) in cciss_free_cmd_pool() 4872 h->cmd_pool, h->cmd_pool_dhandle); in cciss_free_cmd_pool()
|
/linux-3.3/drivers/net/wireless/mwifiex/ |
D | cmdevt.c | 300 adapter->cmd_pool = cmd_array; in mwifiex_alloc_cmd_buffer() 301 memset(adapter->cmd_pool, 0, buf_size); in mwifiex_alloc_cmd_buffer() 330 if (!adapter->cmd_pool) { in mwifiex_free_cmd_buffer() 335 cmd_array = adapter->cmd_pool; in mwifiex_free_cmd_buffer() 348 if (adapter->cmd_pool) { in mwifiex_free_cmd_buffer() 350 kfree(adapter->cmd_pool); in mwifiex_free_cmd_buffer() 351 adapter->cmd_pool = NULL; in mwifiex_free_cmd_buffer()
|
D | main.h | 585 struct cmd_ctrl_node *cmd_pool; member
|
/linux-3.3/include/scsi/ |
D | scsi_host.h | 565 struct scsi_host_cmd_pool *cmd_pool; member
|
/linux-3.3/drivers/scsi/megaraid/ |
D | megaraid_sas_fusion.c | 166 if (!list_empty(&fusion->cmd_pool)) { in megasas_get_cmd_fusion() 167 cmd = list_entry((&fusion->cmd_pool)->next, in megasas_get_cmd_fusion() 195 list_add_tail(&cmd->list, &fusion->cmd_pool); in megasas_return_cmd_fusion() 297 INIT_LIST_HEAD(&fusion->cmd_pool); in megasas_free_cmds_fusion() 518 list_add_tail(&cmd->list, &fusion->cmd_pool); in megasas_alloc_cmds_fusion()
|
D | megaraid_sas_fusion.h | 659 struct list_head cmd_pool; member
|
D | megaraid_sas_base.c | 184 if (!list_empty(&instance->cmd_pool)) { in megasas_get_cmd() 185 cmd = list_entry((&instance->cmd_pool)->next, in megasas_get_cmd() 214 list_add_tail(&cmd->list, &instance->cmd_pool); in megasas_return_cmd() 2964 INIT_LIST_HEAD(&instance->cmd_pool); in megasas_free_cmds() 3034 list_add_tail(&cmd->list, &instance->cmd_pool); in megasas_alloc_cmds() 4013 INIT_LIST_HEAD(&fusion->cmd_pool); in megasas_probe_one() 4058 INIT_LIST_HEAD(&instance->cmd_pool); in megasas_probe_one()
|
D | megaraid_sas.h | 1313 struct list_head cmd_pool; member
|