FreeBSD/sys/dev/vnic/nicvf_queues.c
/*
 * SQ GATHER subdescriptor
 * Must follow HDR descriptor
 */
SQ GATHER subdescriptor
Must follow HDR descriptor
SQ GATHER subdescriptor Must follow HDR descriptor
static inline void nicvf_sq_add_gather_subdesc(struct snd_queue *sq, int qentry,
					       int size, uint64_t data)
{
	struct sq_gather_subdesc *gather;
	qentry &= (sq->dmem.q_len - 1);
	gather = (struct sq_gather_subdesc *)GET_SQ_DESC(sq, qentry);
	memset(gather, 0, SND_QUEUE_DESC_SIZE);
	gather->subdesc_type = SQ_DESC_TYPE_GATHER;
	gather->ld_type = NIC_SEND_LD_TYPE_E_LDD;
	gather->size = size;
	gather->addr = data;
}
static inline void nicvf_sq_add_gather_subdesc ( struct snd_queue * sq , int qentry , int size , uint64_t data ) { struct sq_gather_subdesc * gather ; qentry &= ( sq -> dmem . q_len - 1 ) ; gather = ( struct sq_gather_subdesc * ) GET_SQ_DESC ( sq , qentry ) ; memset ( gather , 0 , SND_QUEUE_DESC_SIZE ) ; gather -> subdesc_type = SQ_DESC_TYPE_GATHER ; gather -> ld_type = NIC_SEND_LD_TYPE_E_LDD ; gather -> size = size ; gather -> addr = data ; }
SQ GATHER subdescriptor
 Must follow HDR descriptor
SQ GATHER subdescriptor Must follow HDR descriptor