Lines Matching refs:resource
380 if ((p_dev->resource[1]->end != 0) && in pfc_config()
381 (resource_size(p_dev->resource[1]) == 8)) { in pfc_config()
382 port = p_dev->resource[1]->start; in pfc_config()
385 (resource_size(p_dev->resource[0]) == 0x40)) { in pfc_config()
386 port = p_dev->resource[0]->start + 0x28; in pfc_config()
401 if (p_dev->resource[0]->start == 0) in simple_config_check()
407 if (p_dev->resource[0]->end != size_table[(*try >> 1)]) in simple_config_check()
410 p_dev->resource[0]->end = 8; in simple_config_check()
411 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in simple_config_check()
412 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in simple_config_check()
426 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in simple_config_check_notpicky()
427 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in simple_config_check_notpicky()
428 p_dev->resource[0]->end = 8; in simple_config_check_notpicky()
431 p_dev->resource[0]->start = base[j]; in simple_config_check_notpicky()
473 return setup_serial(link, info, link->resource[0]->start, link->irq); in simple_config()
480 if (p_dev->resource[1]->end) in multi_config_check()
485 if (p_dev->resource[0]->end <= 8) in multi_config_check()
488 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in multi_config_check()
489 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in multi_config_check()
490 p_dev->resource[0]->end = *multi * 8; in multi_config_check()
502 if (!p_dev->resource[0]->end || !p_dev->resource[1]->end || in multi_config_check_notpicky()
503 p_dev->resource[0]->start + 8 != p_dev->resource[1]->start) in multi_config_check_notpicky()
506 p_dev->resource[0]->end = p_dev->resource[1]->end = 8; in multi_config_check_notpicky()
507 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in multi_config_check_notpicky()
508 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in multi_config_check_notpicky()
513 *base2 = p_dev->resource[0]->start + 8; in multi_config_check_notpicky()
524 base2 = link->resource[0]->start + 8; in multi_config()
561 base2 = link->resource[0]->start; in multi_config()
563 err = setup_serial(link, info, link->resource[0]->start, in multi_config()
578 setup_serial(link, info, link->resource[0]->start, link->irq); in multi_config()
589 if (!p_dev->resource[0]->end) in serial_check_for_multi()
592 if ((!p_dev->resource[1]->end) && (p_dev->resource[0]->end % 8 == 0)) in serial_check_for_multi()
593 info->multi = p_dev->resource[0]->end >> 3; in serial_check_for_multi()
595 if ((p_dev->resource[1]->end) && (p_dev->resource[0]->end == 8) in serial_check_for_multi()
596 && (p_dev->resource[1]->end == 8)) in serial_check_for_multi()