Lines Matching refs:desc_info
3828 static void hw_init_desc(struct ksz_desc_info *desc_info, int transmit) in hw_init_desc() argument
3831 u32 phys = desc_info->ring_phys; in hw_init_desc()
3832 struct ksz_hw_desc *desc = desc_info->ring_virt; in hw_init_desc()
3833 struct ksz_desc *cur = desc_info->ring; in hw_init_desc()
3836 for (i = 0; i < desc_info->alloc; i++) { in hw_init_desc()
3838 phys += desc_info->size; in hw_init_desc()
3842 previous->phw->next = cpu_to_le32(desc_info->ring_phys); in hw_init_desc()
3846 desc_info->avail = desc_info->alloc; in hw_init_desc()
3847 desc_info->last = desc_info->next = 0; in hw_init_desc()
3849 desc_info->cur = desc_info->ring; in hw_init_desc()
4364 static int ksz_alloc_soft_desc(struct ksz_desc_info *desc_info, int transmit) in ksz_alloc_soft_desc() argument
4366 desc_info->ring = kcalloc(desc_info->alloc, sizeof(struct ksz_desc), in ksz_alloc_soft_desc()
4368 if (!desc_info->ring) in ksz_alloc_soft_desc()
4370 hw_init_desc(desc_info, transmit); in ksz_alloc_soft_desc()
4574 struct ksz_desc_info *desc_info, int direction) in ksz_free_buffers() argument
4578 struct ksz_desc *desc = desc_info->ring; in ksz_free_buffers()
4580 for (i = 0; i < desc_info->alloc; i++) { in ksz_free_buffers()