Lines Matching refs:device_get_parent

249 	return (NTB_PORT_NUMBER(device_get_parent(ntb)));  in ntb_port_number()
255 return (NTB_PEER_PORT_COUNT(device_get_parent(ntb))); in ntb_peer_port_count()
261 return (NTB_PEER_PORT_NUMBER(device_get_parent(ntb), pidx)); in ntb_peer_port_number()
267 return (NTB_PEER_PORT_IDX(device_get_parent(ntb), port)); in ntb_peer_port_idx()
274 return (NTB_LINK_IS_UP(device_get_parent(ntb), speed, width)); in ntb_link_is_up()
281 struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev)); in ntb_link_enable()
291 return (NTB_LINK_ENABLE(device_get_parent(ntb), speed, width)); in ntb_link_enable()
298 struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev)); in ntb_link_disable()
308 return (NTB_LINK_DISABLE(device_get_parent(ntb))); in ntb_link_disable()
316 return (nc->enabled && NTB_LINK_ENABLED(device_get_parent(ntb))); in ntb_link_enabled()
383 return (NTB_MW_GET_RANGE(device_get_parent(ntb), mw_idx + nc->mwoff, in ntb_mw_get_range()
392 return (NTB_MW_SET_TRANS(device_get_parent(ntb), mw_idx + nc->mwoff, in ntb_mw_set_trans()
401 return (NTB_MW_CLEAR_TRANS(device_get_parent(ntb), mw_idx + nc->mwoff)); in ntb_mw_clear_trans()
409 return (NTB_MW_GET_WC(device_get_parent(ntb), mw_idx + nc->mwoff, mode)); in ntb_mw_get_wc()
417 return (NTB_MW_SET_WC(device_get_parent(ntb), mw_idx + nc->mwoff, mode)); in ntb_mw_set_wc()
435 NTB_SPAD_WRITE(device_get_parent(ntb), i + nc->spadoff, 0); in ntb_spad_clear()
443 return (NTB_SPAD_WRITE(device_get_parent(ntb), idx + nc->spadoff, val)); in ntb_spad_write()
451 return (NTB_SPAD_READ(device_get_parent(ntb), idx + nc->spadoff, val)); in ntb_spad_read()
459 return (NTB_PEER_SPAD_WRITE(device_get_parent(ntb), idx + nc->spadoff, in ntb_peer_spad_write()
468 return (NTB_PEER_SPAD_READ(device_get_parent(ntb), idx + nc->spadoff, in ntb_peer_spad_read()
484 return (NTB_DB_VECTOR_COUNT(device_get_parent(ntb))); in ntb_db_vector_count()
492 return ((NTB_DB_VECTOR_MASK(device_get_parent(ntb), vector) in ntb_db_vector_mask()
500 return (NTB_PEER_DB_ADDR(device_get_parent(ntb), db_addr, db_size)); in ntb_peer_db_addr()
508 return (NTB_DB_CLEAR(device_get_parent(ntb), bits << nc->dboff)); in ntb_db_clear()
516 return (NTB_DB_CLEAR_MASK(device_get_parent(ntb), bits << nc->dboff)); in ntb_db_clear_mask()
524 return ((NTB_DB_READ(device_get_parent(ntb)) >> nc->dboff) in ntb_db_read()
533 return (NTB_DB_SET_MASK(device_get_parent(ntb), bits << nc->dboff)); in ntb_db_set_mask()
541 return (NTB_PEER_DB_SET(device_get_parent(ntb), bits << nc->dboff)); in ntb_peer_db_set()