Lines Matching refs:device_get_parent

253 	return (NTB_PORT_NUMBER(device_get_parent(ntb)));  in ntb_port_number()
259 return (NTB_PEER_PORT_COUNT(device_get_parent(ntb))); in ntb_peer_port_count()
265 return (NTB_PEER_PORT_NUMBER(device_get_parent(ntb), pidx)); in ntb_peer_port_number()
271 return (NTB_PEER_PORT_IDX(device_get_parent(ntb), port)); in ntb_peer_port_idx()
278 return (NTB_LINK_IS_UP(device_get_parent(ntb), speed, width)); in ntb_link_is_up()
285 struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev)); in ntb_link_enable()
295 return (NTB_LINK_ENABLE(device_get_parent(ntb), speed, width)); in ntb_link_enable()
302 struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev)); in ntb_link_disable()
312 return (NTB_LINK_DISABLE(device_get_parent(ntb))); in ntb_link_disable()
320 return (nc->enabled && NTB_LINK_ENABLED(device_get_parent(ntb))); in ntb_link_enabled()
387 return (NTB_MW_GET_RANGE(device_get_parent(ntb), mw_idx + nc->mwoff, in ntb_mw_get_range()
396 return (NTB_MW_SET_TRANS(device_get_parent(ntb), mw_idx + nc->mwoff, in ntb_mw_set_trans()
405 return (NTB_MW_CLEAR_TRANS(device_get_parent(ntb), mw_idx + nc->mwoff)); in ntb_mw_clear_trans()
413 return (NTB_MW_GET_WC(device_get_parent(ntb), mw_idx + nc->mwoff, mode)); in ntb_mw_get_wc()
421 return (NTB_MW_SET_WC(device_get_parent(ntb), mw_idx + nc->mwoff, mode)); in ntb_mw_set_wc()
439 NTB_SPAD_WRITE(device_get_parent(ntb), i + nc->spadoff, 0); in ntb_spad_clear()
447 return (NTB_SPAD_WRITE(device_get_parent(ntb), idx + nc->spadoff, val)); in ntb_spad_write()
455 return (NTB_SPAD_READ(device_get_parent(ntb), idx + nc->spadoff, val)); in ntb_spad_read()
463 return (NTB_PEER_SPAD_WRITE(device_get_parent(ntb), idx + nc->spadoff, in ntb_peer_spad_write()
472 return (NTB_PEER_SPAD_READ(device_get_parent(ntb), idx + nc->spadoff, in ntb_peer_spad_read()
488 return (NTB_DB_VECTOR_COUNT(device_get_parent(ntb))); in ntb_db_vector_count()
496 return ((NTB_DB_VECTOR_MASK(device_get_parent(ntb), vector) in ntb_db_vector_mask()
504 return (NTB_PEER_DB_ADDR(device_get_parent(ntb), db_addr, db_size)); in ntb_peer_db_addr()
512 return (NTB_DB_CLEAR(device_get_parent(ntb), bits << nc->dboff)); in ntb_db_clear()
520 return (NTB_DB_CLEAR_MASK(device_get_parent(ntb), bits << nc->dboff)); in ntb_db_clear_mask()
528 return ((NTB_DB_READ(device_get_parent(ntb)) >> nc->dboff) in ntb_db_read()
537 return (NTB_DB_SET_MASK(device_get_parent(ntb), bits << nc->dboff)); in ntb_db_set_mask()
545 return (NTB_PEER_DB_SET(device_get_parent(ntb), bits << nc->dboff)); in ntb_peer_db_set()