Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_firmware.c Create Date:2022-07-28 06:28:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_fw_run_batch_request

Proto:static int test_fw_run_batch_request(void *data)

Type:int

Parameter:

TypeParameterName
void *data
607  req = data
609  If Not req Then
610  test_result = -EINVAL
611  Return -EINVAL
614  If into_buf Then
617  test_buf = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
618  If Not test_buf Then Return -ENOSPC
621  rc = request_firmware_into_buf( & fw, name, dev, test_buf, TEST_FIRMWARE_BUF_SIZE)
626  If Not fw Then kfree(test_buf)
628  Else
629  rc = req_firmware( & fw, name, dev)
634  If rc Then
635  pr_info("#%u: batched sync load failed: %d\n", idx, rc)
637  If Not test_result Then test_result = rc
639  Else if fw Then
640  sent = true
641  pr_info("#%u: batched sync loaded %zu\n", idx, size)
644  mplete: - signals a single thread waiting on this completion*@x: holds the state of this particular completion* This will wake up a single thread waiting on this completion. Threads will be* awakened in the same order in which they were queued.
646  task = NULL
648  Return 0