Lines Matching refs:resource

390 	if ((p_dev->resource[1]->end != 0) &&  in pfc_config()
391 (resource_size(p_dev->resource[1]) == 8)) { in pfc_config()
392 port = p_dev->resource[1]->start; in pfc_config()
395 (resource_size(p_dev->resource[0]) == 0x40)) { in pfc_config()
396 port = p_dev->resource[0]->start + 0x28; in pfc_config()
411 if (p_dev->resource[0]->start == 0) in simple_config_check()
417 if (p_dev->resource[0]->end != size_table[(*try >> 1)]) in simple_config_check()
420 p_dev->resource[0]->end = 8; in simple_config_check()
421 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in simple_config_check()
422 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in simple_config_check()
436 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in simple_config_check_notpicky()
437 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in simple_config_check_notpicky()
438 p_dev->resource[0]->end = 8; in simple_config_check_notpicky()
441 p_dev->resource[0]->start = base[j]; in simple_config_check_notpicky()
487 return setup_serial(link, info, link->resource[0]->start, link->irq); in simple_config()
494 if (p_dev->resource[1]->end) in multi_config_check()
501 if (p_dev->resource[0]->end <= 8) in multi_config_check()
504 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in multi_config_check()
505 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in multi_config_check()
506 p_dev->resource[0]->end = *multi * 8; in multi_config_check()
518 if (!p_dev->resource[0]->end || !p_dev->resource[1]->end || in multi_config_check_notpicky()
519 p_dev->resource[0]->start + 8 != p_dev->resource[1]->start) in multi_config_check_notpicky()
522 p_dev->resource[0]->end = p_dev->resource[1]->end = 8; in multi_config_check_notpicky()
523 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in multi_config_check_notpicky()
524 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in multi_config_check_notpicky()
529 *base2 = p_dev->resource[0]->start + 8; in multi_config_check_notpicky()
540 base2 = link->resource[0]->start + 8; in multi_config()
574 base2 = link->resource[0]->start; in multi_config()
576 setup_serial(link, info, link->resource[0]->start, in multi_config()
591 setup_serial(link, info, link->resource[0]->start, link->irq); in multi_config()
602 if (!p_dev->resource[0]->end) in serial_check_for_multi()
605 if ((!p_dev->resource[1]->end) && (p_dev->resource[0]->end % 8 == 0)) in serial_check_for_multi()
606 info->multi = p_dev->resource[0]->end >> 3; in serial_check_for_multi()
608 if ((p_dev->resource[1]->end) && (p_dev->resource[0]->end == 8) in serial_check_for_multi()
609 && (p_dev->resource[1]->end == 8)) in serial_check_for_multi()