Lines Matching refs:sel
273 struct dmi_system_event_log sel; \
274 if (sizeof(sel) > dmi_entry_length(dh)) \
276 memcpy(&sel, dh, sizeof(sel)); \
277 return sprintf(buf, "%u\n", sel._field); \
279 static DMI_SYSFS_MAPPED_ATTR(sel, _field)
313 typedef u8 (*sel_io_reader)(const struct dmi_system_event_log *sel,
318 static u8 read_sel_8bit_indexed_io(const struct dmi_system_event_log *sel,
324 outb((u8)offset, sel->io.index_addr);
325 ret = inb(sel->io.data_addr);
330 static u8 read_sel_2x8bit_indexed_io(const struct dmi_system_event_log *sel,
336 outb((u8)offset, sel->io.index_addr);
337 outb((u8)(offset >> 8), sel->io.index_addr + 1);
338 ret = inb(sel->io.data_addr);
343 static u8 read_sel_16bit_indexed_io(const struct dmi_system_event_log *sel,
349 outw((u16)offset, sel->io.index_addr);
350 ret = inb(sel->io.data_addr);
362 const struct dmi_system_event_log *sel,
367 sel_io_reader io_reader = sel_io_readers[sel->access_method];
369 while (count && pos < sel->area_length) {
371 *(buf++) = io_reader(sel, pos++);
379 const struct dmi_system_event_log *sel,
385 mapped = dmi_remap(sel->access_method_address, sel->area_length);
389 while (count && pos < sel->area_length) {
404 struct dmi_system_event_log sel;
406 if (sizeof(sel) > dmi_entry_length(dh))
409 memcpy(&sel, dh, sizeof(sel));
411 switch (sel.access_method) {
415 return dmi_sel_raw_read_io(entry, &sel, state->buf,
418 return dmi_sel_raw_read_phys32(entry, &sel, state->buf,
425 sel.access_method);