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