Lines Matching defs:op
66 static inline void line_set(int state, const struct lineop *op)
68 u8 oldval = port_read(op->port);
71 if ((op->inverted && !state) || (!op->inverted && state))
72 port_write(op->port, oldval | op->val);
74 port_write(op->port, oldval & ~op->val);
77 static inline int line_get(const struct lineop *op)
79 u8 oldval = port_read(op->port);
81 return ((op->inverted && (oldval & op->val) != op->val)
82 || (!op->inverted && (oldval & op->val) == op->val));