Home
last modified time | relevance | path

Searched refs:cmd_sg_list (Results 1 – 5 of 5) sorted by relevance

/linux-4.4.14/drivers/block/
Dcciss_scsi.c121 SGDescriptor_struct **cmd_sg_list; member
205 sa->cmd_sg_list = cciss_allocate_sg_chain_blocks(h, in scsi_cmd_stack_setup()
207 if (!sa->cmd_sg_list && h->chainsize > 0) in scsi_cmd_stack_setup()
219 cciss_free_sg_chain_blocks(sa->cmd_sg_list, stk->nelems); in scsi_cmd_stack_setup()
220 sa->cmd_sg_list = NULL; in scsi_cmd_stack_setup()
257 cciss_free_sg_chain_blocks(sa->cmd_sg_list, stk->nelems); in scsi_cmd_stack_free()
1378 curr_sg = sa->cmd_sg_list[c->cmdindex]; in cciss_scatter_gather()
1392 sa->cmd_sg_list[c->cmdindex], in cciss_scatter_gather()
Dcciss.c292 static void cciss_free_sg_chain_blocks(SGDescriptor_struct **cmd_sg_list, in cciss_free_sg_chain_blocks() argument
297 if (!cmd_sg_list) in cciss_free_sg_chain_blocks()
300 kfree(cmd_sg_list[i]); in cciss_free_sg_chain_blocks()
301 cmd_sg_list[i] = NULL; in cciss_free_sg_chain_blocks()
303 kfree(cmd_sg_list); in cciss_free_sg_chain_blocks()
310 SGDescriptor_struct **cmd_sg_list; in cciss_allocate_sg_chain_blocks() local
315 cmd_sg_list = kmalloc(sizeof(*cmd_sg_list) * nr_cmds, GFP_KERNEL); in cciss_allocate_sg_chain_blocks()
316 if (!cmd_sg_list) in cciss_allocate_sg_chain_blocks()
322 cmd_sg_list[j] = kmalloc((chainsize * in cciss_allocate_sg_chain_blocks()
323 sizeof(*cmd_sg_list[j])), GFP_KERNEL); in cciss_allocate_sg_chain_blocks()
[all …]
Dcciss.h86 SGDescriptor_struct **cmd_sg_list; member
/linux-4.4.14/drivers/scsi/
Dhpsa.h189 struct SGDescriptor **cmd_sg_list; member
Dhpsa.c2030 if (!h->cmd_sg_list) in hpsa_free_sg_chain_blocks()
2033 kfree(h->cmd_sg_list[i]); in hpsa_free_sg_chain_blocks()
2034 h->cmd_sg_list[i] = NULL; in hpsa_free_sg_chain_blocks()
2036 kfree(h->cmd_sg_list); in hpsa_free_sg_chain_blocks()
2037 h->cmd_sg_list = NULL; in hpsa_free_sg_chain_blocks()
2047 h->cmd_sg_list = kzalloc(sizeof(*h->cmd_sg_list) * h->nr_cmds, in hpsa_alloc_sg_chain_blocks()
2049 if (!h->cmd_sg_list) { in hpsa_alloc_sg_chain_blocks()
2054 h->cmd_sg_list[i] = kmalloc(sizeof(*h->cmd_sg_list[i]) * in hpsa_alloc_sg_chain_blocks()
2056 if (!h->cmd_sg_list[i]) { in hpsa_alloc_sg_chain_blocks()
2109 chain_block = h->cmd_sg_list[c->cmdindex]; in hpsa_map_sg_chain_block()
[all …]