Home
last modified time | relevance | path

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

/drivers/block/
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_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.h86 SGDescriptor_struct **cmd_sg_list; member
/drivers/scsi/
Dhpsa.h142 struct SGDescriptor **cmd_sg_list; member
Dhpsa.c1464 if (!h->cmd_sg_list) in hpsa_free_sg_chain_blocks()
1467 kfree(h->cmd_sg_list[i]); in hpsa_free_sg_chain_blocks()
1468 h->cmd_sg_list[i] = NULL; in hpsa_free_sg_chain_blocks()
1470 kfree(h->cmd_sg_list); in hpsa_free_sg_chain_blocks()
1471 h->cmd_sg_list = NULL; in hpsa_free_sg_chain_blocks()
1481 h->cmd_sg_list = kzalloc(sizeof(*h->cmd_sg_list) * h->nr_cmds, in hpsa_allocate_sg_chain_blocks()
1483 if (!h->cmd_sg_list) in hpsa_allocate_sg_chain_blocks()
1486 h->cmd_sg_list[i] = kmalloc(sizeof(*h->cmd_sg_list[i]) * in hpsa_allocate_sg_chain_blocks()
1488 if (!h->cmd_sg_list[i]) in hpsa_allocate_sg_chain_blocks()
1505 chain_block = h->cmd_sg_list[c->cmdindex]; in hpsa_map_sg_chain_block()
[all …]