Lines Matching refs:ax25_dev
94 ax25_ds_set_timer(ax25->ax25_dev); in ax25_ds_enquiry_response()
100 if (ax25o->ax25_dev != ax25->ax25_dev) in ax25_ds_enquiry_response()
140 static void ax25_kiss_cmd(ax25_dev *ax25_dev, unsigned char cmd, unsigned char param) in ax25_kiss_cmd() argument
145 if (ax25_dev->dev == NULL) in ax25_kiss_cmd()
157 skb->dev = ax25_dev->dev; in ax25_kiss_cmd()
171 static int ax25_check_dama_slave(ax25_dev *ax25_dev) in ax25_check_dama_slave() argument
176 …if (ax25->ax25_dev == ax25_dev && (ax25->condition & AX25_COND_DAMA_MODE) && ax25->state > AX25_ST… in ax25_check_dama_slave()
182 void ax25_dev_dama_on(ax25_dev *ax25_dev) in ax25_dev_dama_on() argument
184 if (ax25_dev == NULL) in ax25_dev_dama_on()
187 if (ax25_dev->dama.slave == 0) in ax25_dev_dama_on()
188 ax25_kiss_cmd(ax25_dev, 5, 1); in ax25_dev_dama_on()
190 ax25_dev->dama.slave = 1; in ax25_dev_dama_on()
191 ax25_ds_set_timer(ax25_dev); in ax25_dev_dama_on()
194 void ax25_dev_dama_off(ax25_dev *ax25_dev) in ax25_dev_dama_off() argument
196 if (ax25_dev == NULL) in ax25_dev_dama_off()
199 if (ax25_dev->dama.slave && !ax25_check_dama_slave(ax25_dev)) { in ax25_dev_dama_off()
200 ax25_kiss_cmd(ax25_dev, 5, 0); in ax25_dev_dama_off()
201 ax25_dev->dama.slave = 0; in ax25_dev_dama_off()
202 ax25_ds_del_timer(ax25_dev); in ax25_dev_dama_off()
208 ax25_dev_dama_on(ax25->ax25_dev); in ax25_dama_on()
215 ax25_dev_dama_off(ax25->ax25_dev); in ax25_dama_off()