Lines Matching full: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)
314 typedef u8 (*sel_io_reader)(const struct dmi_system_event_log *sel,
319 static u8 read_sel_8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_8bit_indexed_io() argument
325 outb((u8)offset, sel->io.index_addr); in read_sel_8bit_indexed_io()
326 ret = inb(sel->io.data_addr); in read_sel_8bit_indexed_io()
331 static u8 read_sel_2x8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_2x8bit_indexed_io() argument
337 outb((u8)offset, sel->io.index_addr); in read_sel_2x8bit_indexed_io()
338 outb((u8)(offset >> 8), sel->io.index_addr + 1); in read_sel_2x8bit_indexed_io()
339 ret = inb(sel->io.data_addr); in read_sel_2x8bit_indexed_io()
344 static u8 read_sel_16bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_16bit_indexed_io() argument
350 outw((u16)offset, sel->io.index_addr); in read_sel_16bit_indexed_io()
351 ret = inb(sel->io.data_addr); in read_sel_16bit_indexed_io()
363 const struct dmi_system_event_log *sel, in dmi_sel_raw_read_io() argument
368 sel_io_reader io_reader = sel_io_readers[sel->access_method]; in dmi_sel_raw_read_io()
370 while (count && pos < sel->area_length) { in dmi_sel_raw_read_io()
372 *(buf++) = io_reader(sel, pos++); in dmi_sel_raw_read_io()
381 const struct dmi_system_event_log *sel, in dmi_sel_raw_read_phys32() argument
387 mapped = dmi_remap(sel->access_method_address, sel->area_length); in dmi_sel_raw_read_phys32()
391 while (count && pos < sel->area_length) { in dmi_sel_raw_read_phys32()
406 struct dmi_system_event_log sel; in dmi_sel_raw_read_helper() local
408 if (sizeof(sel) > dmi_entry_length(dh)) in dmi_sel_raw_read_helper()
411 memcpy(&sel, dh, sizeof(sel)); in dmi_sel_raw_read_helper()
413 switch (sel.access_method) { in dmi_sel_raw_read_helper()
418 return dmi_sel_raw_read_io(entry, &sel, state->buf, in dmi_sel_raw_read_helper()
422 return dmi_sel_raw_read_phys32(entry, &sel, state->buf, in dmi_sel_raw_read_helper()
429 sel.access_method); in dmi_sel_raw_read_helper()