• Home
  • Raw
  • Download

Lines Matching refs:cmd_sg_list

294 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()
326 if (!cmd_sg_list[j]) { in cciss_allocate_sg_chain_blocks()
332 return cmd_sg_list; in cciss_allocate_sg_chain_blocks()
334 cciss_free_sg_chain_blocks(cmd_sg_list, nr_cmds); in cciss_allocate_sg_chain_blocks()
1833 curr_sg = h->cmd_sg_list[c->cmdindex]; in cciss_softirq_done()
3356 curr_sg = h->cmd_sg_list[c->cmdindex]; in do_cciss_request()
3370 cciss_map_sg_chain_block(h, c, h->cmd_sg_list[c->cmdindex], in do_cciss_request()
4935 cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds); in cciss_undo_allocations_after_kdump_soft_reset()
5068 h->cmd_sg_list = cciss_allocate_sg_chain_blocks(h, in cciss_init_one()
5070 if (!h->cmd_sg_list && h->chainsize > 0) in cciss_init_one()
5182 cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds); in cciss_init_one()
5306 cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds); in cciss_remove_one()