Lines Matching refs:remain
1986 int remain = fw->size - (*fw_ptr - fw->data);
1991 * the size of remain buffer is smaller than HCI command header,
1995 if (remain > HCI_COMMAND_HDR_SIZE && *fw_ptr[0] != 0x01) {
2000 remain--;
2004 remain -= sizeof(*cmd);
2006 /* Ensure that the remain firmware data is long enough than the length
2009 if (remain < cmd->plen) {
2025 remain -= cmd->plen;
2034 while (remain > HCI_EVENT_HDR_SIZE && *fw_ptr[0] == 0x02) {
2036 remain--;
2040 remain -= sizeof(*evt);
2042 if (remain < evt->plen) {
2049 remain -= evt->plen;
2053 * If event is not found or remain is smaller than zero, the firmware
2056 if (!evt || !evt_param || remain < 0) {
4434 * in them. But for autosuspend, firmware should remain.