linux/drivers/fpga/fpga-mgr.c
/**
 * fpga_mgr_load - load FPGA from scatter/gather table, buffer, or firmware
 * @mgr:	fpga manager
 * @info:	fpga image information.
 *
 * Load the FPGA from an image which is indicated in @info.  If successful, the
 * FPGA ends up in operating mode.
 *
 * Return: 0 on success, negative error code otherwise.
 */
load FPGA from scatter/gather table, buffer, or firmware
@mgr:        fpga manager
@info:       fpga image information.

Load the FPGA from an image which is indicated in @info.  If successful, the
FPGA ends up in operating mode.

0 on success, negative error code otherwise.
load FPGA from scatter / gather table buffer or firmware @mgr : fpga manager @info : fpga image information . Load the FPGA from an image which is indicated in @info . If successful the FPGA ends up in operating mode . 0 on success negative error code otherwise .
int fpga_mgr_load(struct fpga_manager *mgr, struct fpga_image_info *info)
{
	if (info->sgt)
		return fpga_mgr_buf_load_sg(mgr, info, info->sgt);
	if (info->buf && info->count)
		return fpga_mgr_buf_load(mgr, info, info->buf, info->count);
	if (info->firmware_name)
		return fpga_mgr_firmware_load(mgr, info, info->firmware_name);
	return -EINVAL;
}
int fpga_mgr_load ( struct fpga_manager * mgr , struct fpga_image_info * info ) { if ( info -> sgt ) return fpga_mgr_buf_load_sg ( mgr , info , info -> sgt ) ; if ( info -> buf && info -> count ) return fpga_mgr_buf_load ( mgr , info , info -> buf , info -> count ) ; if ( info -> firmware_name ) return fpga_mgr_firmware_load ( mgr , info , info -> firmware_name ) ; return - EINVAL ; }
fpga_mgr_load - load FPGA from scatter/gather table, buffer, or firmware
 @mgr:        fpga manager
 @info:       fpga image information.
fpga_mgr_load - load FPGA from scatter / gather table buffer or firmware @mgr : fpga manager @info : fpga image information .