Lines Matching refs:resource
381 if ((p_dev->resource[1]->end != 0) && in pfc_config()
382 (resource_size(p_dev->resource[1]) == 8)) { in pfc_config()
383 port = p_dev->resource[1]->start; in pfc_config()
386 (resource_size(p_dev->resource[0]) == 0x40)) { in pfc_config()
387 port = p_dev->resource[0]->start + 0x28; in pfc_config()
402 if (p_dev->resource[0]->start == 0) in simple_config_check()
408 if (p_dev->resource[0]->end != size_table[(*try >> 1)]) in simple_config_check()
411 p_dev->resource[0]->end = 8; in simple_config_check()
412 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in simple_config_check()
413 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in simple_config_check()
427 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in simple_config_check_notpicky()
428 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in simple_config_check_notpicky()
429 p_dev->resource[0]->end = 8; in simple_config_check_notpicky()
432 p_dev->resource[0]->start = base[j]; in simple_config_check_notpicky()
478 return setup_serial(link, info, link->resource[0]->start, link->irq); in simple_config()
485 if (p_dev->resource[1]->end) in multi_config_check()
492 if (p_dev->resource[0]->end <= 8) in multi_config_check()
495 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in multi_config_check()
496 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in multi_config_check()
497 p_dev->resource[0]->end = *multi * 8; in multi_config_check()
509 if (!p_dev->resource[0]->end || !p_dev->resource[1]->end || in multi_config_check_notpicky()
510 p_dev->resource[0]->start + 8 != p_dev->resource[1]->start) in multi_config_check_notpicky()
513 p_dev->resource[0]->end = p_dev->resource[1]->end = 8; in multi_config_check_notpicky()
514 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in multi_config_check_notpicky()
515 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in multi_config_check_notpicky()
520 *base2 = p_dev->resource[0]->start + 8; in multi_config_check_notpicky()
531 base2 = link->resource[0]->start + 8; in multi_config()
568 base2 = link->resource[0]->start; in multi_config()
570 err = 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()