Lines Matching refs:ccr
140 u8 ccr; member
223 if (card->ccr == v) in pcan_write_reg()
225 card->ccr = v; in pcan_write_reg()
343 u8 ccr = card->ccr; in pcan_set_leds() local
349 ccr &= ~PCC_CCR_LED_MASK_CHAN(i); in pcan_set_leds()
351 ccr |= PCC_CCR_LED_CHAN(state, i); in pcan_set_leds()
355 pcan_write_reg(card, PCC_CCR, ccr); in pcan_set_leds()
380 u8 ccr; in pcan_led_timer() local
382 ccr = card->ccr; in pcan_led_timer()
385 ccr &= ~PCC_CCR_LED_MASK_CHAN(i); in pcan_led_timer()
386 ccr |= PCC_CCR_LED_ON_CHAN(i); in pcan_led_timer()
395 ccr &= ~PCC_CCR_LED_MASK_CHAN(i); in pcan_led_timer()
396 ccr |= PCC_CCR_LED_SLOW_CHAN(i); in pcan_led_timer()
401 ccr &= ~PCC_CCR_LED_MASK_CHAN(i); in pcan_led_timer()
402 ccr |= PCC_CCR_LED_FAST_CHAN(i); in pcan_led_timer()
406 ccr &= ~PCC_CCR_LED_MASK_CHAN(i); in pcan_led_timer()
407 ccr |= PCC_CCR_LED_FAST_CHAN(i); in pcan_led_timer()
412 pcan_write_reg(card, PCC_CCR, ccr); in pcan_led_timer()
517 u8 ccr = PCC_CCR_INIT; in pcan_add_channels() local
520 card->ccr = ~ccr; in pcan_add_channels()
521 pcan_write_reg(card, PCC_CCR, ccr); in pcan_add_channels()
526 ccr &= ~PCC_CCR_RST_ALL; in pcan_add_channels()
527 pcan_write_reg(card, PCC_CCR, ccr); in pcan_add_channels()
580 ccr &= ~PCC_CCR_LED_OFF_CHAN(i); in pcan_add_channels()
588 pcan_write_reg(card, PCC_CCR, ccr); in pcan_add_channels()