Lines Matching refs:op
93 const struct lineop *op)
95 u8 oldval = port_read[op->port](data);
98 if ((op->inverted && !state) || (!op->inverted && state))
99 port_write[op->port](data, oldval | op->val);
101 port_write[op->port](data, oldval & ~op->val);
105 const struct lineop *op)
107 u8 oldval = port_read[op->port](data);
109 return ((op->inverted && (oldval & op->val) != op->val)
110 || (!op->inverted && (oldval & op->val) == op->val));