Searched refs:cmd_pool (Results 1 - 17 of 17) sorted by relevance

/linux-4.1.27/drivers/scsi/
H A Dscsi.c183 struct scsi_host_cmd_pool *pool = shost->cmd_pool; scsi_host_free_command()
202 struct scsi_host_cmd_pool *pool = shost->cmd_pool; scsi_host_alloc_command()
344 return shost->hostt->cmd_pool; scsi_find_host_cmd_pool()
382 hostt->cmd_pool = pool; scsi_alloc_host_cmd_pool()
430 hostt->cmd_pool = NULL; scsi_get_host_cmd_pool()
455 hostt->cmd_pool = NULL; scsi_put_host_cmd_pool()
479 shost->cmd_pool = scsi_get_host_cmd_pool(shost); scsi_setup_command_freelist()
480 if (!shost->cmd_pool) scsi_setup_command_freelist()
489 shost->cmd_pool = NULL; scsi_setup_command_freelist()
503 * If cmd_pool is NULL the free list was not initialized, so scsi_destroy_command_freelist()
506 if (!shost->cmd_pool) scsi_destroy_command_freelist()
516 shost->cmd_pool = NULL; scsi_destroy_command_freelist()
H A Dmvumi.c346 if (likely(!list_empty(&mhba->cmd_pool))) { mvumi_get_cmd()
347 cmd = list_entry((&mhba->cmd_pool)->next, mvumi_get_cmd()
365 list_add_tail(&cmd->queue_pointer, &mhba->cmd_pool); mvumi_return_cmd()
376 while (!list_empty(&mhba->cmd_pool)) { mvumi_free_cmds()
377 cmd = list_first_entry(&mhba->cmd_pool, struct mvumi_cmd, mvumi_free_cmds()
402 list_add_tail(&cmd->queue_pointer, &mhba->cmd_pool); mvumi_alloc_cmds()
417 while (!list_empty(&mhba->cmd_pool)) { mvumi_alloc_cmds()
418 cmd = list_first_entry(&mhba->cmd_pool, struct mvumi_cmd, mvumi_alloc_cmds()
2543 INIT_LIST_HEAD(&mhba->cmd_pool); mvumi_probe_one()
H A Dvmw_pvscsi.c102 struct list_head cmd_pool; member in struct:pvscsi_adapter
177 if (list_empty(&adapter->cmd_pool)) pvscsi_acquire_context()
180 ctx = list_first_entry(&adapter->cmd_pool, struct pvscsi_ctx, list); pvscsi_acquire_context()
192 list_add(&ctx->list, &adapter->cmd_pool); pvscsi_release_context()
1469 INIT_LIST_HEAD(&adapter->cmd_pool); pvscsi_probe()
1472 list_add(&ctx->list, &adapter->cmd_pool); pvscsi_probe()
H A Dmvumi.h494 struct list_head cmd_pool; member in struct:mvumi_hba
H A Dhpsa.h159 struct CommandList *cmd_pool; member in struct:ctlr_info
H A Dhpsa.c4693 c = h->cmd_pool + i; cmd_alloc()
4731 i = c - h->cmd_pool; cmd_free()
5425 c = h->cmd_pool + tag_index; process_indexed_cmd()
6416 h->cmd_pool = pci_alloc_consistent(h->pdev, hpsa_allocate_cmd_pool()
6417 h->nr_cmds * sizeof(*h->cmd_pool), hpsa_allocate_cmd_pool()
6423 || (h->cmd_pool == NULL) hpsa_allocate_cmd_pool()
6437 if (h->cmd_pool) hpsa_free_cmd_pool()
6440 h->cmd_pool, h->cmd_pool_dhandle); hpsa_free_cmd_pool()
6623 c = h->cmd_pool + i; fail_all_outstanding_cmds()
7120 h->cmd_pool, h->cmd_pool_dhandle); hpsa_remove_one()
7522 c = h->cmd_pool + i; hpsa_drain_accel_commands()
/linux-4.1.27/drivers/block/
H A Dcpqarray.h106 cmdlist_t *cmd_pool; member in struct:ctlr_info
H A Dcpqarray.c342 NR_CMDS * sizeof(cmdlist_t), (hba[i]->cmd_pool), cpqarray_remove_one()
422 hba[i]->cmd_pool = pci_alloc_consistent( cpqarray_register_ctlr()
429 if (!hba[i]->cmd_pool_bits || !hba[i]->cmd_pool) cpqarray_register_ctlr()
432 memset(hba[i]->cmd_pool, 0, NR_CMDS * sizeof(cmdlist_t)); cpqarray_register_ctlr()
486 if (hba[i]->cmd_pool) cpqarray_register_ctlr()
488 hba[i]->cmd_pool, hba[i]->cmd_pool_dhandle); cpqarray_register_ctlr()
1377 c = h->cmd_pool + i; cmd_alloc()
1395 i = c - h->cmd_pool; cmd_free()
H A Dcciss.h115 CommandList_struct *cmd_pool; member in struct:ctlr_info
H A Dcciss.c986 c = h->cmd_pool + i; cmd_alloc()
1048 i = c - h->cmd_pool; cmd_free()
3516 c = h->cmd_pool + tag_index; process_indexed_cmd()
4818 h->cmd_pool = pci_alloc_consistent(h->pdev, cciss_allocate_cmd_pool()
4825 || (h->cmd_pool == NULL) cciss_allocate_cmd_pool()
4869 if (h->cmd_pool) cciss_free_cmd_pool()
4872 h->cmd_pool, h->cmd_pool_dhandle); cciss_free_cmd_pool()
/linux-4.1.27/drivers/net/wireless/mwifiex/
H A Dcmdevt.c359 adapter->cmd_pool = cmd_array; mwifiex_alloc_cmd_buffer()
388 if (!adapter->cmd_pool) { mwifiex_free_cmd_buffer()
389 dev_dbg(adapter->dev, "info: FREE_CMD_BUF: cmd_pool is null\n"); mwifiex_free_cmd_buffer()
393 cmd_array = adapter->cmd_pool; mwifiex_free_cmd_buffer()
411 if (adapter->cmd_pool) { mwifiex_free_cmd_buffer()
413 kfree(adapter->cmd_pool); mwifiex_free_cmd_buffer()
414 adapter->cmd_pool = NULL; mwifiex_free_cmd_buffer()
H A Dmain.h810 struct cmd_ctrl_node *cmd_pool; member in struct:mwifiex_adapter
/linux-4.1.27/drivers/scsi/megaraid/
H A Dmegaraid_sas_fusion.c171 if (!list_empty(&fusion->cmd_pool)) { megasas_get_cmd_fusion()
172 cmd = list_entry((&fusion->cmd_pool)->next, megasas_get_cmd_fusion()
200 list_add(&cmd->list, (&fusion->cmd_pool)->next); megasas_return_cmd_fusion()
329 INIT_LIST_HEAD(&fusion->cmd_pool); megasas_free_cmds_fusion()
410 * The free commands themselves are maintained in a linked list called cmd_pool.
528 * Add all the commands to command pool (fusion->cmd_pool) megasas_alloc_cmds_fusion()
547 list_add_tail(&cmd->list, &fusion->cmd_pool); megasas_alloc_cmds_fusion()
H A Dmegaraid_sas_fusion.h795 struct list_head cmd_pool; member in struct:fusion_context
H A Dmegaraid_sas_base.c214 if (!list_empty(&instance->cmd_pool)) { megasas_get_cmd()
215 cmd = list_entry((&instance->cmd_pool)->next, megasas_get_cmd()
256 list_add(&cmd->list, (&instance->cmd_pool)->next); __megasas_return_cmd()
3703 INIT_LIST_HEAD(&instance->cmd_pool); megasas_free_cmds()
3722 * free commands themselves are maintained in a linked list called cmd_pool.
3773 list_add_tail(&cmd->list, &instance->cmd_pool); megasas_alloc_cmds()
5186 INIT_LIST_HEAD(&fusion->cmd_pool); megasas_probe_one()
5248 INIT_LIST_HEAD(&instance->cmd_pool); megasas_probe_one()
H A Dmegaraid_sas.h1698 struct list_head cmd_pool; member in struct:megasas_instance
/linux-4.1.27/include/scsi/
H A Dscsi_host.h502 struct scsi_host_cmd_pool *cmd_pool; member in struct:scsi_host_template
554 struct scsi_host_cmd_pool *cmd_pool; member in struct:Scsi_Host

Completed in 522 milliseconds