Lines Matching refs:upiu
190 utrd->upiu = ALIGN_CDB(utrd->header + sizeof(utrd_header_t));
191 utrd->resp_upiu = ALIGN_8(utrd->upiu + sizeof(cmd_upiu_t));
192 utrd->size_upiu = utrd->resp_upiu - utrd->upiu;
197 hd->ucdba = utrd->upiu & UINT32_MAX;
198 hd->ucdbau = (utrd->upiu >> 32) & UINT32_MAX;
206 * Prepare UTRD, Command UPIU, Response UPIU.
212 cmd_upiu_t *upiu;
222 (utrd->upiu >> 32) & UINT32_MAX);
225 upiu = (cmd_upiu_t *)utrd->upiu;
231 upiu->trans_type = CMD_UPIU;
232 upiu->task_tag = utrd->task_tag;
233 upiu->cdb[0] = op;
241 upiu->flags = UPIU_FLAGS_R | UPIU_FLAGS_ATTR_S;
242 upiu->lun = lun;
246 upiu->flags = UPIU_FLAGS_R | UPIU_FLAGS_ATTR_S;
247 upiu->lun = lun;
248 upiu->cdb[1] = RW_WITHOUT_CACHE;
250 upiu->cdb[2] = (ulba >> 24) & 0xff;
251 upiu->cdb[3] = (ulba >> 16) & 0xff;
252 upiu->cdb[4] = (ulba >> 8) & 0xff;
253 upiu->cdb[5] = ulba & 0xff;
255 upiu->cdb[7] = (lba_cnt >> 8) & 0xff;
256 upiu->cdb[8] = lba_cnt & 0xff;
260 upiu->flags = UPIU_FLAGS_W | UPIU_FLAGS_ATTR_S;
261 upiu->lun = lun;
262 upiu->cdb[1] = RW_WITHOUT_CACHE;
264 upiu->cdb[2] = (ulba >> 24) & 0xff;
265 upiu->cdb[3] = (ulba >> 16) & 0xff;
266 upiu->cdb[4] = (ulba >> 8) & 0xff;
267 upiu->cdb[5] = ulba & 0xff;
269 upiu->cdb[7] = (lba_cnt >> 8) & 0xff;
270 upiu->cdb[8] = lba_cnt & 0xff;
280 upiu->exp_data_trans_len = htobe32(length);
319 query_upiu = (query_upiu_t *)utrd->upiu;
345 memcpy((void *)(utrd->upiu + sizeof(query_upiu_t)),
379 nop_out = (nop_out_upiu_t *)utrd->upiu;
457 utrd->upiu + i,
458 *(unsigned int *)(utrd->upiu + i));