Lines Matching refs:ledtest
4954 diag_ledtest_send(struct bfa_diag_s *diag, struct bfa_diag_ledtest_s *ledtest) in diag_ledtest_send() argument
4958 msg = (struct bfi_diag_ledtest_req_s *)diag->ledtest.mbcmd.msg; in diag_ledtest_send()
4967 if (ledtest->freq) in diag_ledtest_send()
4968 ledtest->freq = 500 / ledtest->freq; in diag_ledtest_send()
4970 if (ledtest->freq == 0) in diag_ledtest_send()
4971 ledtest->freq = 1; in diag_ledtest_send()
4973 bfa_trc(diag, ledtest->freq); in diag_ledtest_send()
4975 msg->cmd = (u8) ledtest->cmd; in diag_ledtest_send()
4976 msg->color = (u8) ledtest->color; in diag_ledtest_send()
4978 msg->led = ledtest->led; in diag_ledtest_send()
4979 msg->freq = cpu_to_be16(ledtest->freq); in diag_ledtest_send()
4982 bfa_ioc_mbox_queue(diag->ioc, &diag->ledtest.mbcmd); in diag_ledtest_send()
4988 bfa_trc(diag, diag->ledtest.lock); in diag_ledtest_comp()
4989 diag->ledtest.lock = BFA_FALSE; in diag_ledtest_comp()
5191 bfa_diag_ledtest(struct bfa_diag_s *diag, struct bfa_diag_ledtest_s *ledtest) in bfa_diag_ledtest() argument
5193 bfa_trc(diag, ledtest->cmd); in bfa_diag_ledtest()
5201 if (diag->ledtest.lock) in bfa_diag_ledtest()
5205 diag->ledtest.lock = BFA_TRUE; in bfa_diag_ledtest()
5206 diag_ledtest_send(diag, ledtest); in bfa_diag_ledtest()
5232 if (diag->ledtest.lock) in bfa_diag_beacon_port()