Lines Matching refs:device_get_parent

257 	return (NTB_PORT_NUMBER(device_get_parent(ntb)));  in ntb_port_number()
263 return (NTB_PEER_PORT_COUNT(device_get_parent(ntb))); in ntb_peer_port_count()
269 return (NTB_PEER_PORT_NUMBER(device_get_parent(ntb), pidx)); in ntb_peer_port_number()
275 return (NTB_PEER_PORT_IDX(device_get_parent(ntb), port)); in ntb_peer_port_idx()
282 return (NTB_LINK_IS_UP(device_get_parent(ntb), speed, width)); in ntb_link_is_up()
289 struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev)); in ntb_link_enable()
299 return (NTB_LINK_ENABLE(device_get_parent(ntb), speed, width)); in ntb_link_enable()
306 struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev)); in ntb_link_disable()
316 return (NTB_LINK_DISABLE(device_get_parent(ntb))); in ntb_link_disable()
324 return (nc->enabled && NTB_LINK_ENABLED(device_get_parent(ntb))); in ntb_link_enabled()
391 return (NTB_MW_GET_RANGE(device_get_parent(ntb), mw_idx + nc->mwoff, in ntb_mw_get_range()
400 return (NTB_MW_SET_TRANS(device_get_parent(ntb), mw_idx + nc->mwoff, in ntb_mw_set_trans()
409 return (NTB_MW_CLEAR_TRANS(device_get_parent(ntb), mw_idx + nc->mwoff)); in ntb_mw_clear_trans()
417 return (NTB_MW_GET_WC(device_get_parent(ntb), mw_idx + nc->mwoff, mode)); in ntb_mw_get_wc()
425 return (NTB_MW_SET_WC(device_get_parent(ntb), mw_idx + nc->mwoff, mode)); in ntb_mw_set_wc()
443 NTB_SPAD_WRITE(device_get_parent(ntb), i + nc->spadoff, 0); in ntb_spad_clear()
451 return (NTB_SPAD_WRITE(device_get_parent(ntb), idx + nc->spadoff, val)); in ntb_spad_write()
459 return (NTB_SPAD_READ(device_get_parent(ntb), idx + nc->spadoff, val)); in ntb_spad_read()
467 return (NTB_PEER_SPAD_WRITE(device_get_parent(ntb), idx + nc->spadoff, in ntb_peer_spad_write()
476 return (NTB_PEER_SPAD_READ(device_get_parent(ntb), idx + nc->spadoff, in ntb_peer_spad_read()
492 return (NTB_DB_VECTOR_COUNT(device_get_parent(ntb))); in ntb_db_vector_count()
500 return ((NTB_DB_VECTOR_MASK(device_get_parent(ntb), vector) in ntb_db_vector_mask()
508 return (NTB_PEER_DB_ADDR(device_get_parent(ntb), db_addr, db_size)); in ntb_peer_db_addr()
516 return (NTB_DB_CLEAR(device_get_parent(ntb), bits << nc->dboff)); in ntb_db_clear()
524 return (NTB_DB_CLEAR_MASK(device_get_parent(ntb), bits << nc->dboff)); in ntb_db_clear_mask()
532 return ((NTB_DB_READ(device_get_parent(ntb)) >> nc->dboff) in ntb_db_read()
541 return (NTB_DB_SET_MASK(device_get_parent(ntb), bits << nc->dboff)); in ntb_db_set_mask()
549 return (NTB_PEER_DB_SET(device_get_parent(ntb), bits << nc->dboff)); in ntb_peer_db_set()