Lines Matching refs:nr_blocks
58 char *blk_name, unsigned nr_blocks, unsigned off_val, in edac_device_alloc_ctl_info() argument
70 edac_dbg(4, "instances=%d blocks=%d\n", nr_instances, nr_blocks); in edac_device_alloc_ctl_info()
82 dev_blk = kcalloc(nr_instances * nr_blocks, sizeof(struct edac_device_block), GFP_KERNEL); in edac_device_alloc_ctl_info()
119 inst->nr_blocks = nr_blocks; in edac_device_alloc_ctl_info()
120 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info()
127 for (block = 0; block < nr_blocks; block++) { in edac_device_alloc_ctl_info()
546 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce_count()
551 instance->nr_blocks); in edac_device_handle_ce_count()
555 if (instance->nr_blocks > 0) { in edac_device_handle_ce_count()
592 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue_count()
597 instance->nr_blocks); in edac_device_handle_ue_count()
601 if (instance->nr_blocks > 0) { in edac_device_handle_ue_count()