Lines Matching +full:device +full:- +full:level

10  *	http://www.anime.net/~goemon/linux-ecc/
15 * Refactored for multi-source files:
18 * Please look at Documentation/driver-api/edac.rst for more info about
41 #define PAGES_TO_MiB(pages) ((pages) >> (20 - PAGE_SHIFT))
42 #define MiB_TO_PAGES(mb) ((mb) << (20 - PAGE_SHIFT))
44 #define PAGES_TO_MiB(pages) ((pages) << (PAGE_SHIFT - 20))
45 #define MiB_TO_PAGES(mb) ((mb) >> (PAGE_SHIFT - 20))
48 #define edac_printk(level, prefix, fmt, arg...) \ argument
49 printk(level "EDAC " prefix ": " fmt, ##arg)
51 #define edac_mc_printk(mci, level, fmt, arg...) \ argument
52 printk(level "EDAC MC%d: " fmt, mci->mc_idx, ##arg)
54 #define edac_mc_chipset_printk(mci, level, prefix, fmt, arg...) \ argument
55 printk(level "EDAC " prefix " MC%d: " fmt, mci->mc_idx, ##arg)
57 #define edac_device_printk(ctl, level, fmt, arg...) \ argument
58 printk(level "EDAC DEVICE%d: " fmt, ctl->dev_idx, ##arg)
60 #define edac_pci_printk(ctl, level, fmt, arg...) \ argument
61 printk(level "EDAC PCI%d: " fmt, ctl->pci_idx, ##arg)
73 #define edac_dbg(level, fmt, ...) \ argument
75 if (level <= edac_debug_level) \
82 #define edac_dbg(level, fmt, ...) \ argument
94 #define edac_dev_name(dev) (dev)->dev_name
99 * edac_mc_alloc() - Allocate and partially fill a struct &mem_ctl_info.
107 * Everything is kmalloc'ed as one big chunk - more efficient.
108 * Only can be used if all structures have the same lifetime - otherwise
115 * drivers handle multi-rank memories in different ways: in some
116 * drivers, one multi-rank memory stick is mapped as one entry, while, in
117 * others, a single multi-rank memory stick would be mapped into several
131 * edac_get_owner - Return the owner's mod_name of EDAC MC
139 * edac_mc_add_mc_with_groups() - Insert the @mci structure into the mci
143 * @groups: optional attribute groups for the driver-specific sysfs entries
153 * edac_mc_free() - Frees a previously allocated @mci structure
160 * edac_has_mcs() - Check if any MCs have been allocated.
169 * edac_mc_find() - Search for a mem_ctl_info structure whose index is @idx.
179 * find_mci_by_dev() - Scan list of controllers looking for the one that
180 * manages the @dev device.
182 * @dev: pointer to a struct device related with the MCI
187 extern struct mem_ctl_info *find_mci_by_dev(struct device *dev);
190 * edac_mc_del_mc() - Remove sysfs entries for mci structure associated with
193 * @dev: Pointer to struct &device representing mci structure to remove.
195 * Returns: pointer to removed mci structure, or %NULL if device not found.
197 extern struct mem_ctl_info *edac_mc_del_mc(struct device *dev);
200 * edac_mc_find_csrow_by_page() - Ancillary routine to identify what csrow
206 * Returns: on success, returns the csrow. -1 if not found.
212 * edac_raw_mc_handle_error() - Reports a memory event to userspace without
224 * edac_mc_handle_error() - Reports a memory event to userspace.