Lines Matching refs:resp_len
241 size_t resp_len, resp_data_len; in occ_getsram() local
255 resp_len = (data_len >> 2) + OCC_SBE_STATUS_WORDS; in occ_getsram()
256 resp = kzalloc(resp_len << 2, GFP_KERNEL); in occ_getsram()
260 rc = sbefifo_submit(occ->sbefifo, cmd, 5, resp, &resp_len); in occ_getsram()
265 resp, resp_len, &resp_len); in occ_getsram()
269 resp_data_len = be32_to_cpu(resp[resp_len - 1]); in occ_getsram()
293 size_t cmd_len, buf_len, resp_len, resp_data_len; in occ_putsram() local
302 resp_len = OCC_SBE_STATUS_WORDS; in occ_putsram()
304 buf_len = max(cmd_len, resp_len); in occ_putsram()
321 rc = sbefifo_submit(occ->sbefifo, buf, cmd_len, buf, &resp_len); in occ_putsram()
326 buf, resp_len, &resp_len); in occ_putsram()
330 if (resp_len != 1) { in occ_putsram()
332 resp_len); in occ_putsram()
359 size_t resp_len, resp_data_len; in occ_trigger_attn() local
363 resp_len = OCC_SBE_STATUS_WORDS; in occ_trigger_attn()
373 rc = sbefifo_submit(occ->sbefifo, buf, 7, buf, &resp_len); in occ_trigger_attn()
378 buf, resp_len, &resp_len); in occ_trigger_attn()
382 if (resp_len != 1) { in occ_trigger_attn()
384 resp_len); in occ_trigger_attn()
408 void *response, size_t *resp_len) in fsi_occ_submit() argument
423 if (*resp_len < 7) { in fsi_occ_submit()
424 dev_dbg(dev, "Bad resplen %zd\n", *resp_len); in fsi_occ_submit()
469 if ((resp_data_length + 7) > *resp_len) { in fsi_occ_submit()
486 *resp_len = resp_data_length + 7; in fsi_occ_submit()