Lines Matching defs:ptr
827 struct i596_cmd *ptr;
830 ptr = lp->cmd_head;
831 lp->cmd_head = ptr->v_next;
834 switch (SWAP16(ptr->command) & 0x7) {
837 struct tx_cmd *tx_cmd = (struct tx_cmd *) ptr;
848 ptr->v_next = NULL;
849 ptr->b_next = I596_NULL;
854 ptr->v_next = NULL;
855 ptr->b_next = I596_NULL;
857 dma_sync_dev(dev, ptr, sizeof(struct i596_cmd));
1157 struct i596_cmd *ptr;
1175 ptr = lp->cmd_head;
1182 lp->cmd_head = ptr->v_next;
1185 switch (SWAP16(ptr->command) & 0x7) {
1188 struct tx_cmd *tx_cmd = (struct tx_cmd *) ptr;
1191 if (ptr->status & SWAP16(STAT_OK)) {
1196 if (ptr->status & SWAP16(0x0020))
1198 if (!(ptr->status & SWAP16(0x0040)))
1200 if (ptr->status & SWAP16(0x0400))
1202 if (ptr->status & SWAP16(0x0800))
1204 if (ptr->status & SWAP16(0x1000))
1217 unsigned short status = SWAP16(((struct tdr_cmd *)ptr)->status);
1248 ptr->command = 0;
1251 ptr->v_next = NULL;
1252 ptr->b_next = I596_NULL;
1253 dma_sync_dev(dev, ptr, sizeof(struct i596_cmd));
1261 ptr = lp->cmd_head;
1262 while ((ptr != NULL) && (ptr != lp->cmd_tail)) {
1263 struct i596_cmd *prev = ptr;
1265 ptr->command &= SWAP16(0x1fff);
1266 ptr = ptr->v_next;