Lines Matching refs:reply
633 static u32 adpt_ioctl_to_context(adpt_hba * pHba, void *reply) in adpt_ioctl_to_context() argument
636 return (u32)(unsigned long)reply; in adpt_ioctl_to_context()
645 pHba->ioctl_reply_context[i] = reply; in adpt_ioctl_to_context()
651 kfree (reply); in adpt_ioctl_to_context()
1708 u32* reply = NULL; in adpt_i2o_passthru() local
1746 reply = kzalloc(REPLY_FRAME_SIZE*4, GFP_KERNEL); in adpt_i2o_passthru()
1747 if(reply == NULL) { in adpt_i2o_passthru()
1753 msg[3] = adpt_ioctl_to_context(pHba, reply); in adpt_i2o_passthru()
1764 kfree (reply); in adpt_i2o_passthru()
1812 rcode, reply); in adpt_i2o_passthru()
1869 if(copy_from_user(reply+2, user_msg+2, sizeof(u32)*2)) { in adpt_i2o_passthru()
1873 if(copy_to_user(user_reply, reply, reply_size)) { in adpt_i2o_passthru()
1884 kfree (reply); in adpt_i2o_passthru()
2122 void __iomem *reply; in adpt_isr() local
2150 reply = (u8 *)pHba->reply_pool + in adpt_isr()
2155 reply = (u8 *)bus_to_virt(m); in adpt_isr()
2158 if (readl(reply) & MSG_FAIL) { in adpt_isr()
2159 u32 old_m = readl(reply+28); in adpt_isr()
2171 writel(old_context, reply+12); in adpt_isr()
2174 context = readl(reply+8); in adpt_isr()
2176 void *p = adpt_ioctl_from_context(pHba, readl(reply+12)); in adpt_isr()
2178 memcpy_fromio(p, reply, REPLY_FRAME_SIZE * 4); in adpt_isr()
2183 status = readl(reply+16); in adpt_isr()
2191 readl(reply+12)); in adpt_isr()
2198 cmd = adpt_cmd_from_context (pHba, readl(reply+12)); in adpt_isr()
2202 adpt_i2o_to_scsi(reply, cmd); in adpt_isr()
2370 static s32 adpt_i2o_to_scsi(void __iomem *reply, struct scsi_cmnd* cmd) in adpt_i2o_to_scsi() argument
2375 u32 reply_flags = readl(reply) & 0xff00; // Leave it shifted up 8 bits in adpt_i2o_to_scsi()
2379 u16 detailed_status = readl(reply+16) &0xffff; in adpt_i2o_to_scsi()
2384 scsi_set_resid(cmd, scsi_bufflen(cmd) - readl(reply+20)); in adpt_i2o_to_scsi()
2395 if (readl(reply+20) < cmd->underflow) { in adpt_i2o_to_scsi()
2461 memcpy_fromio(cmd->sense_buffer, (reply+28) , len); in adpt_i2o_to_scsi()