Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/block/
Dcciss_scsi.c122 SGDescriptor_struct **cmd_sg_list; member
206 sa->cmd_sg_list = cciss_allocate_sg_chain_blocks(h, in scsi_cmd_stack_setup()
208 if (!sa->cmd_sg_list && h->chainsize > 0) in scsi_cmd_stack_setup()
220 cciss_free_sg_chain_blocks(sa->cmd_sg_list, stk->nelems); in scsi_cmd_stack_setup()
221 sa->cmd_sg_list = NULL; in scsi_cmd_stack_setup()
258 cciss_free_sg_chain_blocks(sa->cmd_sg_list, stk->nelems); in scsi_cmd_stack_free()
1379 curr_sg = sa->cmd_sg_list[c->cmdindex]; in cciss_scatter_gather()
1393 sa->cmd_sg_list[c->cmdindex], in cciss_scatter_gather()
Dcciss.c294 static void cciss_free_sg_chain_blocks(SGDescriptor_struct **cmd_sg_list, in cciss_free_sg_chain_blocks() argument
299 if (!cmd_sg_list) in cciss_free_sg_chain_blocks()
302 kfree(cmd_sg_list[i]); in cciss_free_sg_chain_blocks()
303 cmd_sg_list[i] = NULL; in cciss_free_sg_chain_blocks()
305 kfree(cmd_sg_list); in cciss_free_sg_chain_blocks()
312 SGDescriptor_struct **cmd_sg_list; in cciss_allocate_sg_chain_blocks() local
317 cmd_sg_list = kmalloc(sizeof(*cmd_sg_list) * nr_cmds, GFP_KERNEL); in cciss_allocate_sg_chain_blocks()
318 if (!cmd_sg_list) in cciss_allocate_sg_chain_blocks()
324 cmd_sg_list[j] = kmalloc((chainsize * in cciss_allocate_sg_chain_blocks()
325 sizeof(*cmd_sg_list[j])), GFP_KERNEL); in cciss_allocate_sg_chain_blocks()
[all …]
Dcciss.h86 SGDescriptor_struct **cmd_sg_list; member
/linux-4.1.27/drivers/scsi/
Dhpsa.h156 struct SGDescriptor **cmd_sg_list; member
Dhpsa.c1545 if (!h->cmd_sg_list) in hpsa_free_sg_chain_blocks()
1548 kfree(h->cmd_sg_list[i]); in hpsa_free_sg_chain_blocks()
1549 h->cmd_sg_list[i] = NULL; in hpsa_free_sg_chain_blocks()
1551 kfree(h->cmd_sg_list); in hpsa_free_sg_chain_blocks()
1552 h->cmd_sg_list = NULL; in hpsa_free_sg_chain_blocks()
1562 h->cmd_sg_list = kzalloc(sizeof(*h->cmd_sg_list) * h->nr_cmds, in hpsa_allocate_sg_chain_blocks()
1564 if (!h->cmd_sg_list) { in hpsa_allocate_sg_chain_blocks()
1569 h->cmd_sg_list[i] = kmalloc(sizeof(*h->cmd_sg_list[i]) * in hpsa_allocate_sg_chain_blocks()
1571 if (!h->cmd_sg_list[i]) { in hpsa_allocate_sg_chain_blocks()
1591 chain_block = h->cmd_sg_list[c->cmdindex]; in hpsa_map_sg_chain_block()
[all …]