break;
default:
rt_printk("%s: unhandled register 0x%x in switch.\n",
- __FUNCTION__, reg);
+ __func__, reg);
BUG();
return 0;
break;
break;
default:
rt_printk("%s: %s: bug! unhandled case (reg=0x%x) in switch.\n",
- __FILE__, __FUNCTION__, reg);
+ __FILE__, __func__, reg);
BUG();
break;
}
break;
default:
rt_printk("%s: %s: bug! unhandled case (reg=0x%x) in switch.\n",
- __FILE__, __FUNCTION__, reg);
+ __FILE__, __func__, reg);
BUG();
break;
}
break;
default:
rt_printk("Warning %s() called with invalid register\n",
- __FUNCTION__);
+ __func__);
rt_printk("reg is %d\n", reg);
break;
}
break;
default:
rt_printk("%s: bug! unhandled ao reference voltage\n",
- __FUNCTION__);
+ __func__);
break;
}
switch (krange->max + krange->min) {
break;
default:
rt_printk("%s: bug! unhandled ao offset voltage\n",
- __FUNCTION__);
+ __func__);
break;
}
if (timed)
break;
default:
rt_printk("%s: unhandled register 0x%x in switch.\n",
- __FUNCTION__, reg);
+ __func__, reg);
BUG();
return 0;
break;
return NI_PFI_OUTPUT_G_GATE0;
break;
default:
- rt_printk("%s: bug, unhandled case in switch.\n", __FUNCTION__);
+ rt_printk("%s: bug, unhandled case in switch.\n", __func__);
break;
}
return 0;
}
if (best_period_picosec == 0) {
rt_printk("%s: bug, failed to find pll parameters\n",
- __FUNCTION__);
+ __func__);
return -EIO;
}
*freq_divider = best_div;
if (period_ns < min_period_ns || period_ns > max_period_ns) {
rt_printk
("%s: you must specify an input clock frequency between %i and %i nanosec "
- "for the phased-lock loop.\n", __FUNCTION__,
+ "for the phased-lock loop.\n", __func__,
min_period_ns, max_period_ns);
return -EINVAL;
}
if (i == timeout) {
rt_printk
("%s: timed out waiting for PLL to lock to reference clock source %i with period %i ns.\n",
- __FUNCTION__, source, period_ns);
+ __func__, source, period_ns);
return -ETIMEDOUT;
}
return 3;
if (period_ns == 0) {
rt_printk
("%s: we don't handle an unspecified clock period correctly yet, returning error.\n",
- __FUNCTION__);
+ __func__);
return -EINVAL;
} else {
devpriv->clock_ns = period_ns;
else {
rt_printk
("%s: invalid source for channel=%i, channel %i is always the RTSI clock for pre-m-series boards.\n",
- __FUNCTION__, chan,
+ __func__, chan,
old_RTSI_clock_channel);
return 0;
}
} else {
if (chan == old_RTSI_clock_channel)
return NI_RTSI_OUTPUT_RTSI_OSC;
- rt_printk("%s: bug! should never get here?\n", __FUNCTION__);
+ rt_printk("%s: bug! should never get here?\n", __func__);
return 0;
}
}
}
/* printk("looped %i times waiting for idle\n", i); */
if (i == timeout) {
- rt_printk("%s: %s: timeout\n", __FILE__, __FUNCTION__);
+ rt_printk("%s: %s: timeout\n", __FILE__, __func__);
return -ETIME;
}
return 0;
case DIO_Control_Register:
rt_printk
("%s: FIXME: register 0x%x does not map cleanly on to m-series boards.\n",
- __FUNCTION__, reg);
+ __func__, reg);
return;
break;
case G_Autoincrement_Register(0):
and M_Offset_SCXI_Serial_Data_Out (8 bit) */
default:
rt_printk("%s: bug! unhandled register=0x%x in switch.\n",
- __FUNCTION__, reg);
+ __func__, reg);
BUG();
return;
break;
break;
default:
rt_printk("%s: bug! unhandled register=0x%x in switch.\n",
- __FUNCTION__, reg);
+ __func__, reg);
BUG();
return 0;
break;
break;
default:
rt_printk("%s: bug! unhandled register=0x%x in switch.\n",
- __FUNCTION__, reg);
+ __func__, reg);
BUG();
return;
break;
break;
default:
rt_printk("%s: bug! unhandled register=0x%x in switch.\n",
- __FUNCTION__, reg);
+ __func__, reg);
BUG();
return 0;
break;
max_channel = 6;
}
if (channel > max_channel) {
- rt_printk("%s: bug, invalid RTSI_channel=%i\n", __FUNCTION__,
+ rt_printk("%s: bug, invalid RTSI_channel=%i\n", __func__,
channel);
return 0;
}
0x263,
};
if (((unsigned)i) >= sizeof(offset) / sizeof(offset[0])) {
- rt_printk("%s: invalid channel=%i\n", __FUNCTION__, i);
+ rt_printk("%s: invalid channel=%i\n", __func__, i);
return offset[0];
}
return offset[i];
0x267
};
if (((unsigned)channel) >= sizeof(offset) / sizeof(offset[0])) {
- rt_printk("%s: invalid channel=%i\n", __FUNCTION__, channel);
+ rt_printk("%s: invalid channel=%i\n", __func__, channel);
return offset[0];
}
return offset[channel];
{
if (n < 1 || n > NUM_PFI_OUTPUT_SELECT_REGS) {
rt_printk("%s: invalid pfi output select register=%i\n",
- __FUNCTION__, n);
+ __func__, n);
return M_Offset_PFI_Output_Select_1;
}
return M_Offset_PFI_Output_Select_1 + (n - 1) * 2;
RTSI_channel)
{
if (RTSI_channel > 7) {
- rt_printk("%s: bug, invalid RTSI_channel=%i\n", __FUNCTION__,
+ rt_printk("%s: bug, invalid RTSI_channel=%i\n", __func__,
RTSI_channel);
return 0;
}
{
static const unsigned max_divisor = 0x10;
if (divisor < 1 || divisor > max_divisor) {
- rt_printk("%s: bug, invalid divisor=%i\n", __FUNCTION__,
+ rt_printk("%s: bug, invalid divisor=%i\n", __func__,
divisor);
return 0;
}
{
static const unsigned max_multiplier = 0x100;
if (multiplier < 1 || multiplier > max_multiplier) {
- rt_printk("%s: bug, invalid multiplier=%i\n", __FUNCTION__,
+ rt_printk("%s: bug, invalid multiplier=%i\n", __func__,
multiplier);
return 0;
}
counter_dev->regs[abz_reg] &= ~mask;
counter_dev->regs[abz_reg] |= (source << shift) & mask;
write_register(counter, counter_dev->regs[abz_reg], abz_reg);
-/* rt_printk("%s %x %d %d\n", __FUNCTION__, counter_dev->regs[abz_reg], index, source); */
+/* rt_printk("%s %x %d %d\n", __func__, counter_dev->regs[abz_reg], index, source); */
return 0;
}
return -EINVAL;