Lines Matching refs:slgt_desc
198 struct slgt_desc struct
333 struct slgt_desc *rbufs;
340 struct slgt_desc *tbufs;
491 static int alloc_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count);
492 static void free_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count);
1861 struct slgt_desc *bufs = info->rbufs; in rx_async()
3391 info->rbufs = (struct slgt_desc*)info->bufs; in alloc_desc()
3392 info->tbufs = ((struct slgt_desc*)info->bufs) + info->rbuf_count; in alloc_desc()
3402 info->rbufs[i].pdesc = pbufs + (i * sizeof(struct slgt_desc)); in alloc_desc()
3408 info->rbufs[i].next = cpu_to_le32(pbufs + ((i+1) * sizeof(struct slgt_desc))); in alloc_desc()
3414 info->tbufs[i].pdesc = pbufs + ((info->rbuf_count + i) * sizeof(struct slgt_desc)); in alloc_desc()
3418 info->tbufs[i].next = cpu_to_le32(pbufs + info->rbuf_count * sizeof(struct slgt_desc)); in alloc_desc()
3420 …info->tbufs[i].next = cpu_to_le32(pbufs + ((info->rbuf_count + i + 1) * sizeof(struct slgt_desc))); in alloc_desc()
3436 static int alloc_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count) in alloc_bufs()
3447 static void free_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count) in free_bufs()
4905 struct slgt_desc *d; in tx_load()