Lines Matching refs:ledtest
4953 diag_ledtest_send(struct bfa_diag_s *diag, struct bfa_diag_ledtest_s *ledtest) in diag_ledtest_send() argument
4957 msg = (struct bfi_diag_ledtest_req_s *)diag->ledtest.mbcmd.msg; in diag_ledtest_send()
4966 if (ledtest->freq) in diag_ledtest_send()
4967 ledtest->freq = 500 / ledtest->freq; in diag_ledtest_send()
4969 if (ledtest->freq == 0) in diag_ledtest_send()
4970 ledtest->freq = 1; in diag_ledtest_send()
4972 bfa_trc(diag, ledtest->freq); in diag_ledtest_send()
4974 msg->cmd = (u8) ledtest->cmd; in diag_ledtest_send()
4975 msg->color = (u8) ledtest->color; in diag_ledtest_send()
4977 msg->led = ledtest->led; in diag_ledtest_send()
4978 msg->freq = cpu_to_be16(ledtest->freq); in diag_ledtest_send()
4981 bfa_ioc_mbox_queue(diag->ioc, &diag->ledtest.mbcmd); in diag_ledtest_send()
4987 bfa_trc(diag, diag->ledtest.lock); in diag_ledtest_comp()
4988 diag->ledtest.lock = BFA_FALSE; in diag_ledtest_comp()
5190 bfa_diag_ledtest(struct bfa_diag_s *diag, struct bfa_diag_ledtest_s *ledtest) in bfa_diag_ledtest() argument
5192 bfa_trc(diag, ledtest->cmd); in bfa_diag_ledtest()
5200 if (diag->ledtest.lock) in bfa_diag_ledtest()
5204 diag->ledtest.lock = BFA_TRUE; in bfa_diag_ledtest()
5205 diag_ledtest_send(diag, ledtest); in bfa_diag_ledtest()
5231 if (diag->ledtest.lock) in bfa_diag_beacon_port()