Lines Matching full:nic

19 	if (!ptp->nic)  in is_tstmp_atomic_update_supported()
22 mutex_lock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported()
23 req = otx2_mbox_alloc_msg_ptp_get_cap(&ptp->nic->mbox); in is_tstmp_atomic_update_supported()
25 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported()
29 err = otx2_sync_mbox_msg(&ptp->nic->mbox); in is_tstmp_atomic_update_supported()
31 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported()
34 rsp = (struct ptp_get_cap_rsp *)otx2_mbox_get_rsp(&ptp->nic->mbox.mbox, 0, in is_tstmp_atomic_update_supported()
36 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported()
51 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_hw_adjtime()
55 if (!ptp->nic) in otx2_ptp_hw_adjtime()
59 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in otx2_ptp_hw_adjtime()
66 rc = otx2_sync_mbox_msg(&ptp->nic->mbox); in otx2_ptp_hw_adjtime()
78 if (!ptp->nic) in otx2_ptp_get_clock()
81 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in otx2_ptp_get_clock()
87 err = otx2_sync_mbox_msg(&ptp->nic->mbox); in otx2_ptp_get_clock()
91 rsp = (struct ptp_rsp *)otx2_mbox_get_rsp(&ptp->nic->mbox.mbox, 0, in otx2_ptp_get_clock()
117 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_hw_settime()
122 if (!ptp->nic) in otx2_ptp_hw_settime()
128 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in otx2_ptp_hw_settime()
136 rc = otx2_sync_mbox_msg(&ptp->nic->mbox); in otx2_ptp_hw_settime()
148 if (!ptp->nic) in otx2_ptp_adjfine()
151 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in otx2_ptp_adjfine()
158 return otx2_sync_mbox_msg(&ptp->nic->mbox); in otx2_ptp_adjfine()
165 if (!ptp->nic) in ptp_set_thresh()
168 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in ptp_set_thresh()
175 return otx2_sync_mbox_msg(&ptp->nic->mbox); in ptp_set_thresh()
182 if (!ptp->nic) in ptp_pps_on()
185 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in ptp_pps_on()
193 return otx2_sync_mbox_msg(&ptp->nic->mbox); in ptp_pps_on()
209 if (!ptp->nic) in ptp_tstmp_read()
212 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in ptp_tstmp_read()
218 err = otx2_sync_mbox_msg(&ptp->nic->mbox); in ptp_tstmp_read()
222 rsp = (struct ptp_rsp *)otx2_mbox_get_rsp(&ptp->nic->mbox.mbox, 0, in ptp_tstmp_read()
234 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_tc_adjtime()
250 mutex_lock(&ptp->nic->mbox.lock); in otx2_ptp_tc_gettime()
252 mutex_unlock(&ptp->nic->mbox.lock); in otx2_ptp_tc_gettime()
267 mutex_lock(&ptp->nic->mbox.lock); in otx2_ptp_tc_settime()
269 mutex_unlock(&ptp->nic->mbox.lock); in otx2_ptp_tc_settime()
301 mutex_lock(&ptp->nic->mbox.lock); in otx2_ptp_extts_check()
303 mutex_unlock(&ptp->nic->mbox.lock); in otx2_ptp_extts_check()
312 mutex_lock(&ptp->nic->mbox.lock); in otx2_ptp_extts_check()
314 mutex_unlock(&ptp->nic->mbox.lock); in otx2_ptp_extts_check()
326 struct otx2_nic *pfvf = ptp->nic; in otx2_sync_tstamp()
347 if (!ptp->nic) in otx2_ptp_enable()
417 ptp_ptr->nic = pfvf; in otx2_ptp_init()
523 MODULE_DESCRIPTION("Marvell RVU NIC PTP Driver");