Lines Matching refs:resource
384 if ((p_dev->resource[1]->end != 0) &&
385 (resource_size(p_dev->resource[1]) == 8)) {
386 port = p_dev->resource[1]->start;
389 (resource_size(p_dev->resource[0]) == 0x40)) {
390 port = p_dev->resource[0]->start + 0x28;
405 if (p_dev->resource[0]->start == 0)
411 if (p_dev->resource[0]->end != size_table[(*try >> 1)])
414 p_dev->resource[0]->end = 8;
415 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
416 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
430 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
431 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
432 p_dev->resource[0]->end = 8;
435 p_dev->resource[0]->start = base[j];
481 return setup_serial(link, info, link->resource[0]->start, link->irq);
488 if (p_dev->resource[1]->end)
495 if (p_dev->resource[0]->end <= 8)
498 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
499 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
500 p_dev->resource[0]->end = *multi * 8;
512 if (!p_dev->resource[0]->end || !p_dev->resource[1]->end ||
513 p_dev->resource[0]->start + 8 != p_dev->resource[1]->start)
516 p_dev->resource[0]->end = p_dev->resource[1]->end = 8;
517 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
518 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
523 *base2 = p_dev->resource[0]->start + 8;
534 base2 = link->resource[0]->start + 8;
568 base2 = link->resource[0]->start;
570 setup_serial(link, info, link->resource[0]->start,
585 setup_serial(link, info, link->resource[0]->start, link->irq);
596 if (!p_dev->resource[0]->end)
599 if ((!p_dev->resource[1]->end) && (p_dev->resource[0]->end % 8 == 0))
600 info->multi = p_dev->resource[0]->end >> 3;
602 if ((p_dev->resource[1]->end) && (p_dev->resource[0]->end == 8)
603 && (p_dev->resource[1]->end == 8))