Searched refs:res_buf (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/drivers/net/fjes/
H A Dfjes_hw.c240 hw->hw_info.res_buf = kzalloc(mem_size, GFP_KERNEL); fjes_hw_setup()
241 if (!(hw->hw_info.res_buf)) fjes_hw_setup()
277 param.res_start = __pa(hw->hw_info.res_buf); fjes_hw_setup()
298 kfree(hw->hw_info.res_buf); fjes_hw_cleanup()
299 hw->hw_info.res_buf = NULL; fjes_hw_cleanup()
411 union fjes_device_command_res *res_buf = hw->hw_info.res_buf; fjes_hw_request_info() local
416 memset(res_buf, 0, hw->hw_info.res_buf_size); fjes_hw_request_info()
420 res_buf->info.length = 0; fjes_hw_request_info()
421 res_buf->info.code = 0; fjes_hw_request_info()
428 res_buf->info.length) { fjes_hw_request_info()
431 switch (res_buf->info.code) { fjes_hw_request_info()
466 union fjes_device_command_res *res_buf = hw->hw_info.res_buf; fjes_hw_register_buff_addr() local
478 memset(res_buf, 0, hw->hw_info.res_buf_size); fjes_hw_register_buff_addr()
506 res_buf->share_buffer.length = 0; fjes_hw_register_buff_addr()
507 res_buf->share_buffer.code = 0; fjes_hw_register_buff_addr()
513 (res_buf->share_buffer.length == fjes_hw_register_buff_addr()
515 (res_buf->share_buffer.code == FJES_CMD_REQ_RES_CODE_BUSY) && fjes_hw_register_buff_addr()
520 res_buf->share_buffer.length = 0; fjes_hw_register_buff_addr()
521 res_buf->share_buffer.code = 0; fjes_hw_register_buff_addr()
529 if (res_buf->share_buffer.length != fjes_hw_register_buff_addr()
533 switch (res_buf->share_buffer.code) { fjes_hw_register_buff_addr()
567 union fjes_device_command_res *res_buf = hw->hw_info.res_buf; fjes_hw_unregister_buff_addr() local
576 if (!req_buf || !res_buf || !share) fjes_hw_unregister_buff_addr()
583 memset(res_buf, 0, hw->hw_info.res_buf_size); fjes_hw_unregister_buff_addr()
589 res_buf->unshare_buffer.length = 0; fjes_hw_unregister_buff_addr()
590 res_buf->unshare_buffer.code = 0; fjes_hw_unregister_buff_addr()
596 (res_buf->unshare_buffer.length == fjes_hw_unregister_buff_addr()
598 (res_buf->unshare_buffer.code == fjes_hw_unregister_buff_addr()
604 res_buf->unshare_buffer.length = 0; fjes_hw_unregister_buff_addr()
605 res_buf->unshare_buffer.code = 0; fjes_hw_unregister_buff_addr()
613 if (res_buf->unshare_buffer.length != fjes_hw_unregister_buff_addr()
617 switch (res_buf->unshare_buffer.code) { fjes_hw_unregister_buff_addr()
930 union fjes_device_command_res *res_buf; fjes_hw_update_zone_task() local
945 res_buf = hw->hw_info.res_buf; fjes_hw_update_zone_task()
946 info = (struct my_s *)&res_buf->info.info; fjes_hw_update_zone_task()
H A Dfjes_hw.h265 union fjes_device_command_res *res_buf; member in struct:fjes_hw_info
H A Dfjes_main.c342 hw->hw_info.res_buf->info.info[epidx].es_status; fjes_setup_resources()
344 hw->hw_info.res_buf->info.info[epidx].zone; fjes_setup_resources()
442 param.res_start = __pa(hw->hw_info.res_buf); fjes_free_resources()
/linux-4.4.14/include/linux/
H A Dtpm.h52 extern int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf);
67 static inline int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf) { tpm_pcr_read() argument
/linux-4.4.14/drivers/net/wireless/ath/carl9170/
H A Ddebug.c67 char *buf = NULL, *res_buf = NULL; carl9170_debugfs_read() local
92 res_buf = buf; carl9170_debugfs_read()
96 res_buf = dfops->read(ar, buf, dfops->read_bufsize, &ret); carl9170_debugfs_read()
100 res_buf, ret); carl9170_debugfs_read()
104 WARN_ON_ONCE(dfops->read_bufsize && (res_buf != buf)); carl9170_debugfs_read()
107 vfree(res_buf); carl9170_debugfs_read()
/linux-4.4.14/drivers/char/tpm/
H A Dtpm-interface.c652 int tpm_pcr_read_dev(struct tpm_chip *chip, int pcr_idx, u8 *res_buf) tpm_pcr_read_dev() argument
663 memcpy(res_buf, cmd.params.pcrread_out.pcr_result, tpm_pcr_read_dev()
696 * @res_buf: TPM_PCR value
697 * size of res_buf is 20 bytes (or NULL if you don't care)
703 int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf) tpm_pcr_read() argument
712 rc = tpm2_pcr_read(chip, pcr_idx, res_buf); tpm_pcr_read()
714 rc = tpm_pcr_read_dev(chip, pcr_idx, res_buf); tpm_pcr_read()
H A Dtpm.h524 int tpm_pcr_read_dev(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
534 int tpm2_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
H A Dtpm2-cmd.c249 int tpm2_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf) tpm2_pcr_read() argument
271 memcpy(res_buf, buf, TPM_DIGEST_SIZE); tpm2_pcr_read()

Completed in 246 milliseconds