Home
last modified time | relevance | path

Searched refs:sg_index (Results 1 – 2 of 2) sorted by relevance

/openbsd/sys/dev/ic/
H A Daic7xxx_inline.h189 int sg_index; in ahc_sg_bus_to_virt() local
191 sg_index = (sg_busaddr - scb->sg_list_phys)/sizeof(struct ahc_dma_seg); in ahc_sg_bus_to_virt()
193 sg_index++; in ahc_sg_bus_to_virt()
195 return (&scb->sg_list[sg_index]); in ahc_sg_bus_to_virt()
201 int sg_index; in ahc_sg_virt_to_bus() local
204 sg_index = sg - &scb->sg_list[1]; in ahc_sg_virt_to_bus()
206 return (scb->sg_list_phys + (sg_index * sizeof(*scb->sg_list))); in ahc_sg_virt_to_bus()
H A Dadvlib.c2464 u_int16_t sg_index; in AscPutReadySgListQueue() local
2478 sg_index = 1; in AscPutReadySgListQueue()
2523 (u_int32_t *) & sg_head->sg_list[sg_index], in AscPutReadySgListQueue()
2525 sg_index += ASC_SG_LIST_PER_Q; in AscPutReadySgListQueue()