Lines Matching defs:win
206 static bool acpi_decode_space(struct resource_win *win,
214 struct resource *res = &win->res;
240 win->offset = offset;
244 (offset != win->offset || start != res->start || end != res->end)) {
277 * @win: Output generic resource object.
281 * resource object pointed to by @win.
284 * 1) false with win->res.flags setting to zero: not the expected resource type
285 * 2) false with IORESOURCE_DISABLED in win->res.flags: valid unassigned
290 struct resource_win *win)
294 win->res.flags = 0;
298 return acpi_decode_space(win, (struct acpi_resource_address *)&addr,
306 * @win: Output generic resource object.
310 * generic resource object pointed to by @win.
313 * 1) false with win->res.flags setting to zero: not the expected resource type
314 * 2) false with IORESOURCE_DISABLED in win->res.flags: valid unassigned
319 struct resource_win *win)
323 win->res.flags = 0;
329 return acpi_decode_space(win, (struct acpi_resource_address *)ext_addr,
638 static acpi_status acpi_dev_new_resource_entry(struct resource_win *win,
648 *rentry->res = win->res;
649 rentry->offset = win->offset;
659 struct resource_win win;
660 struct resource *res = &win.res;
675 memset(&win, 0, sizeof(win));
679 || acpi_dev_resource_address_space(ares, &win)
680 || acpi_dev_resource_ext_address_space(ares, &win))
681 return acpi_dev_new_resource_entry(&win, c);
686 status = acpi_dev_new_resource_entry(&win, c);
758 struct resource_win win;
759 struct resource *res = &win.res;
761 memset(&win, 0, sizeof(win));
764 || acpi_dev_resource_address_space(ares, &win)
765 || acpi_dev_resource_ext_address_space(ares, &win));