Searched refs:sg_index (Results 1 – 4 of 4) sorted by relevance
169 int sg_index; in ahc_sg_bus_to_virt() local171 sg_index = (sg_busaddr - scb->sg_list_phys)/sizeof(struct ahc_dma_seg); in ahc_sg_bus_to_virt()173 sg_index++; in ahc_sg_bus_to_virt()175 return (&scb->sg_list[sg_index]); in ahc_sg_bus_to_virt()181 int sg_index; in ahc_sg_virt_to_bus() local184 sg_index = sg - &scb->sg_list[1]; in ahc_sg_virt_to_bus()186 return (scb->sg_list_phys + (sg_index * sizeof(*scb->sg_list))); in ahc_sg_virt_to_bus()
8773 UINT sg_index; in busMstrSGDataXferStart() local8793 sg_index = pcurrSCCB->Sccb_sgseg; in busMstrSGDataXferStart()8803 ((ULONG)(sg_index * (UINT)SG_ELEMENT_SIZE) < pcurrSCCB->DataLength) ) { in busMstrSGDataXferStart()8807 (sg_index * 2)); in busMstrSGDataXferStart()8810 (sg_index * 2)); in busMstrSGDataXferStart()8813 ((sg_index * 2) + 1)); in busMstrSGDataXferStart()8817 (sg_index * 2)); in busMstrSGDataXferStart()8820 (sg_index * 2)); in busMstrSGDataXferStart()8823 ((sg_index * 2) + 1)); in busMstrSGDataXferStart()8842 sg_index++; in busMstrSGDataXferStart()[all …]
1630 int sg_index = 0; in adpt_i2o_passthru() local1696 sg_list[sg_index++] = p; // sglist indexed with input frame, not our internal frame. in adpt_i2o_passthru()1782 while(sg_index) { in adpt_i2o_passthru()1783 if(sg_list[--sg_index]) { in adpt_i2o_passthru()1784 kfree((void*)(sg_list[sg_index])); in adpt_i2o_passthru()
11509 ushort sg_index; in AscPutReadySgListQueue() local11558 sg_index = 1; in AscPutReadySgListQueue()11612 (uchar *) &sg_head->sg_list[sg_index], in AscPutReadySgListQueue()11614 sg_index += ASC_SG_LIST_PER_Q; in AscPutReadySgListQueue()11615 scsiq->next_sg_index = sg_index; in AscPutReadySgListQueue()