Lines Matching refs:desc_info
3455 static void hw_init_desc(struct ksz_desc_info *desc_info, int transmit) in hw_init_desc() argument
3458 u32 phys = desc_info->ring_phys; in hw_init_desc()
3459 struct ksz_hw_desc *desc = desc_info->ring_virt; in hw_init_desc()
3460 struct ksz_desc *cur = desc_info->ring; in hw_init_desc()
3463 for (i = 0; i < desc_info->alloc; i++) { in hw_init_desc()
3465 phys += desc_info->size; in hw_init_desc()
3469 previous->phw->next = cpu_to_le32(desc_info->ring_phys); in hw_init_desc()
3473 desc_info->avail = desc_info->alloc; in hw_init_desc()
3474 desc_info->last = desc_info->next = 0; in hw_init_desc()
3476 desc_info->cur = desc_info->ring; in hw_init_desc()
3991 static int ksz_alloc_soft_desc(struct ksz_desc_info *desc_info, int transmit) in ksz_alloc_soft_desc() argument
3993 desc_info->ring = kcalloc(desc_info->alloc, sizeof(struct ksz_desc), in ksz_alloc_soft_desc()
3995 if (!desc_info->ring) in ksz_alloc_soft_desc()
3997 hw_init_desc(desc_info, transmit); in ksz_alloc_soft_desc()
4201 struct ksz_desc_info *desc_info, int direction) in ksz_free_buffers() argument
4205 struct ksz_desc *desc = desc_info->ring; in ksz_free_buffers()
4207 for (i = 0; i < desc_info->alloc; i++) { in ksz_free_buffers()