Lines Matching defs:nr_cmds
307 int nr_cmds)
313 for (i = 0; i < nr_cmds; i++) {
321 ctlr_info_t *h, int chainsize, int nr_cmds)
329 cmd_sg_list = kmalloc(sizeof(*cmd_sg_list) * nr_cmds, GFP_KERNEL);
334 for (j = 0; j < nr_cmds; j++) {
346 cciss_free_sg_chain_blocks(cmd_sg_list, nr_cmds);
922 i = find_first_zero_bit(h->cmd_pool_bits, h->nr_cmds);
923 if (i == h->nr_cmds)
1733 if ((find_first_zero_bit(h->cmd_pool_bits, h->nr_cmds)) == h->nr_cmds)
1755 if ((find_first_zero_bit(h->cmd_pool_bits, h->nr_cmds)) == h->nr_cmds) {
3383 if (unlikely(tag_index >= h->nr_cmds)) {
3457 bad_tag(h, h->nr_cmds + 1, raw_tag);
4096 h->nr_cmds = h->max_commands - 4; /* Allow room for some ioctls */
4697 kmalloc(DIV_ROUND_UP(h->nr_cmds, BITS_PER_LONG)
4701 h->nr_cmds * sizeof(CommandList_struct),
4705 h->nr_cmds * sizeof(ErrorInfo_struct),
4721 for (k = 0; k < h->nr_cmds; k++) {
4732 h->chainsize, h->nr_cmds);
4744 DIV_ROUND_UP(h->nr_cmds, BITS_PER_LONG)
4793 cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds);
4796 h->nr_cmds * sizeof(CommandList_struct),
4800 h->nr_cmds * sizeof(ErrorInfo_struct),
4900 pci_free_consistent(h->pdev, h->nr_cmds * sizeof(CommandList_struct),
4902 pci_free_consistent(h->pdev, h->nr_cmds * sizeof(ErrorInfo_struct),
4906 for (j = 0; j < h->nr_cmds; j++)
4909 cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds);