Lines Matching refs:desc_info
3834 static void hw_init_desc(struct ksz_desc_info *desc_info, int transmit) in hw_init_desc() argument
3837 u32 phys = desc_info->ring_phys; in hw_init_desc()
3838 struct ksz_hw_desc *desc = desc_info->ring_virt; in hw_init_desc()
3839 struct ksz_desc *cur = desc_info->ring; in hw_init_desc()
3842 for (i = 0; i < desc_info->alloc; i++) { in hw_init_desc()
3844 phys += desc_info->size; in hw_init_desc()
3848 previous->phw->next = cpu_to_le32(desc_info->ring_phys); in hw_init_desc()
3852 desc_info->avail = desc_info->alloc; in hw_init_desc()
3853 desc_info->last = desc_info->next = 0; in hw_init_desc()
3855 desc_info->cur = desc_info->ring; in hw_init_desc()
4370 static int ksz_alloc_soft_desc(struct ksz_desc_info *desc_info, int transmit) in ksz_alloc_soft_desc() argument
4372 desc_info->ring = kcalloc(desc_info->alloc, sizeof(struct ksz_desc), in ksz_alloc_soft_desc()
4374 if (!desc_info->ring) in ksz_alloc_soft_desc()
4376 hw_init_desc(desc_info, transmit); in ksz_alloc_soft_desc()
4578 struct ksz_desc_info *desc_info, int direction) in ksz_free_buffers() argument
4582 struct ksz_desc *desc = desc_info->ring; in ksz_free_buffers()
4584 for (i = 0; i < desc_info->alloc; i++) { in ksz_free_buffers()