Lines Matching defs:ptr
878 struct i596_cmd *ptr;
881 ptr = lp->cmd_head;
882 lp->cmd_head = ptr->v_next;
885 switch ((ptr->command) & 0x7) {
888 struct tx_cmd *tx_cmd = (struct tx_cmd *) ptr;
896 ptr->v_next = ptr->b_next = I596_NULL;
901 ptr->v_next = ptr->b_next = I596_NULL;
1264 struct i596_cmd *ptr;
1273 ptr = lp->cmd_head;
1277 lp->cmd_head = ptr->v_next;
1280 switch ((ptr->command) & 0x7) {
1283 struct tx_cmd *tx_cmd = (struct tx_cmd *) ptr;
1286 if ((ptr->status) & STAT_OK) {
1290 if ((ptr->status) & 0x0020)
1292 if (!((ptr->status) & 0x0040))
1294 if ((ptr->status) & 0x0400)
1296 if ((ptr->status) & 0x0800)
1298 if ((ptr->status) & 0x1000)
1309 unsigned short status = ((struct tdr_cmd *)ptr)->status;
1328 ptr->command = 0;
1331 ptr->v_next = ptr->b_next = I596_NULL;
1335 ptr = lp->cmd_head;
1336 while ((ptr != I596_NULL) && (ptr != lp->cmd_tail)) {
1337 ptr->command &= 0x1fff;
1338 ptr = ptr->v_next;