Lines Matching refs:desc_info
3837 static void hw_init_desc(struct ksz_desc_info *desc_info, int transmit) in hw_init_desc() argument
3840 u32 phys = desc_info->ring_phys; in hw_init_desc()
3841 struct ksz_hw_desc *desc = desc_info->ring_virt; in hw_init_desc()
3842 struct ksz_desc *cur = desc_info->ring; in hw_init_desc()
3845 for (i = 0; i < desc_info->alloc; i++) { in hw_init_desc()
3847 phys += desc_info->size; in hw_init_desc()
3851 previous->phw->next = cpu_to_le32(desc_info->ring_phys); in hw_init_desc()
3855 desc_info->avail = desc_info->alloc; in hw_init_desc()
3856 desc_info->last = desc_info->next = 0; in hw_init_desc()
3858 desc_info->cur = desc_info->ring; in hw_init_desc()
4373 static int ksz_alloc_soft_desc(struct ksz_desc_info *desc_info, int transmit) in ksz_alloc_soft_desc() argument
4375 desc_info->ring = kzalloc(sizeof(struct ksz_desc) * desc_info->alloc, in ksz_alloc_soft_desc()
4377 if (!desc_info->ring) in ksz_alloc_soft_desc()
4379 hw_init_desc(desc_info, transmit); in ksz_alloc_soft_desc()
4581 struct ksz_desc_info *desc_info, int direction) in ksz_free_buffers() argument
4585 struct ksz_desc *desc = desc_info->ring; in ksz_free_buffers()
4587 for (i = 0; i < desc_info->alloc; i++) { in ksz_free_buffers()