Lines Matching refs:nr_blocks
58 char *blk_name, unsigned nr_blocks, unsigned off_val, in edac_device_alloc_ctl_info() argument
68 edac_dbg(4, "instances=%d blocks=%d\n", nr_instances, nr_blocks); in edac_device_alloc_ctl_info()
80 dev_blk = kcalloc(nr_instances * nr_blocks, sizeof(struct edac_device_block), GFP_KERNEL); in edac_device_alloc_ctl_info()
108 inst->nr_blocks = nr_blocks; in edac_device_alloc_ctl_info()
109 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info()
116 for (block = 0; block < nr_blocks; block++) { in edac_device_alloc_ctl_info()
497 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce_count()
502 instance->nr_blocks); in edac_device_handle_ce_count()
506 if (instance->nr_blocks > 0) { in edac_device_handle_ce_count()
543 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue_count()
548 instance->nr_blocks); in edac_device_handle_ue_count()
552 if (instance->nr_blocks > 0) { in edac_device_handle_ue_count()