Searched refs:sg_index (Results 1 – 4 of 4) sorted by relevance
174 int sg_index; in ahc_sg_bus_to_virt() local176 sg_index = (sg_busaddr - scb->sg_list_phys)/sizeof(struct ahc_dma_seg); in ahc_sg_bus_to_virt()178 sg_index++; in ahc_sg_bus_to_virt()180 return (&scb->sg_list[sg_index]); in ahc_sg_bus_to_virt()186 int sg_index; in ahc_sg_virt_to_bus() local189 sg_index = sg - &scb->sg_list[1]; in ahc_sg_virt_to_bus()191 return (scb->sg_list_phys + (sg_index * sizeof(*scb->sg_list))); in ahc_sg_virt_to_bus()
99 int sg_index; /* Scatter/Gather Index */ member
1167 scb->sg_index = 0; in iha_exec_scb()1834 sg = &scb->sglist[scb->sg_index]; in iha_state_5()1835 for (i = scb->sg_index; i < scb->sg_max; sg++, i++) { in iha_state_5()1848 scb->bufaddr += (i - scb->sg_index) * in iha_state_5()1851 scb->sg_index = i; in iha_state_5()
2443 u_int16_t sg_index; in AscPutReadySgListQueue() local2458 sg_index = 1; in AscPutReadySgListQueue()2503 (u_int32_t *) & sg_head->sg_list[sg_index], in AscPutReadySgListQueue()2505 sg_index += ASC_SG_LIST_PER_Q; in AscPutReadySgListQueue()