Searched refs:rbuff (Results 1 – 8 of 8) sorted by relevance
/drivers/rtc/ |
D | rtc-as3722.c | 33 static void as3722_time_to_reg(u8 *rbuff, struct rtc_time *tm) in as3722_time_to_reg() argument 35 rbuff[0] = bin2bcd(tm->tm_sec); in as3722_time_to_reg() 36 rbuff[1] = bin2bcd(tm->tm_min); in as3722_time_to_reg() 37 rbuff[2] = bin2bcd(tm->tm_hour); in as3722_time_to_reg() 38 rbuff[3] = bin2bcd(tm->tm_mday); in as3722_time_to_reg() 39 rbuff[4] = bin2bcd(tm->tm_mon + 1); in as3722_time_to_reg() 40 rbuff[5] = bin2bcd(tm->tm_year - (AS3722_RTC_START_YEAR - 1900)); in as3722_time_to_reg() 43 static void as3722_reg_to_time(u8 *rbuff, struct rtc_time *tm) in as3722_reg_to_time() argument 45 tm->tm_sec = bcd2bin(rbuff[0] & 0x7F); in as3722_reg_to_time() 46 tm->tm_min = bcd2bin(rbuff[1] & 0x7F); in as3722_reg_to_time() [all …]
|
D | rtc-tps6586x.c | 144 u8 rbuff[6]; in tps6586x_rtc_set_alarm() local 157 sizeof(rbuff), rbuff); in tps6586x_rtc_set_alarm() 163 for (i = 1; i < sizeof(rbuff); i++) { in tps6586x_rtc_set_alarm() 165 rticks |= rbuff[i]; in tps6586x_rtc_set_alarm()
|
/drivers/net/hamradio/ |
D | mkiss.c | 48 unsigned char *rbuff; /* receiver buffer */ member 243 if (ax->rbuff[0] > 0x0f) { in ax_bump() 244 if (ax->rbuff[0] & 0x80) { in ax_bump() 245 if (check_crc_16(ax->rbuff, ax->rcount) < 0) { in ax_bump() 258 *ax->rbuff &= ~0x80; in ax_bump() 259 } else if (ax->rbuff[0] & 0x20) { in ax_bump() 260 if (check_crc_flex(ax->rbuff, ax->rcount) < 0) { in ax_bump() 279 *ax->rbuff &= ~0x20; in ax_bump() 293 skb_put_data(skb, ax->rbuff, count); in ax_bump() 332 ax->rbuff[ax->rcount++] = s; in kiss_unesc() [all …]
|
D | 6pack.c | 91 unsigned char *rbuff; /* receiver buffer */ member 547 char *rbuff = NULL, *xbuff = NULL; in sixpack_open() local 577 rbuff = kmalloc(len + 4, GFP_KERNEL); in sixpack_open() 580 if (rbuff == NULL || xbuff == NULL) { in sixpack_open() 589 sp->rbuff = rbuff; in sixpack_open() 634 kfree(rbuff); in sixpack_open() 679 kfree(sp->rbuff); in sixpack_close()
|
/drivers/net/slip/ |
D | slip.c | 134 char *rbuff = NULL; in sl_alloc_bufs() local 157 rbuff = kmalloc(len + 4, GFP_KERNEL); in sl_alloc_bufs() 158 if (rbuff == NULL) in sl_alloc_bufs() 181 rbuff = xchg(&sl->rbuff, rbuff); in sl_alloc_bufs() 201 kfree(rbuff); in sl_alloc_bufs() 209 kfree(xchg(&sl->rbuff, NULL)); in sl_free_bufs() 225 unsigned char *xbuff, *rbuff; local 240 rbuff = kmalloc(len + 4, GFP_ATOMIC); 247 if (xbuff == NULL || rbuff == NULL || cbuff == NULL) { 249 if (xbuff == NULL || rbuff == NULL) { [all …]
|
D | slip.h | 67 unsigned char *rbuff; /* receiver buffer */ member
|
/drivers/net/can/slcan/ |
D | slcan-core.c | 90 unsigned char rbuff[SLCAN_MTU]; /* receiver buffer */ member 177 char *cmd = sl->rbuff; in slcan_bump_frame() 191 cf->len = sl->rbuff[SLCAN_CMD_LEN + SLCAN_SFF_ID_LEN]; in slcan_bump_frame() 192 sl->rbuff[SLCAN_CMD_LEN + SLCAN_SFF_ID_LEN] = 0; in slcan_bump_frame() 202 cf->len = sl->rbuff[SLCAN_CMD_LEN + SLCAN_EFF_ID_LEN]; in slcan_bump_frame() 203 sl->rbuff[SLCAN_CMD_LEN + SLCAN_EFF_ID_LEN] = 0; in slcan_bump_frame() 211 if (kstrtou32(sl->rbuff + SLCAN_CMD_LEN, 16, &tmpid)) in slcan_bump_frame() 263 char *cmd = sl->rbuff; in slcan_bump_state() 327 char *cmd = sl->rbuff; in slcan_bump_err() 437 switch (sl->rbuff[0]) { in slcan_bump() [all …]
|
/drivers/media/usb/dvb-usb-v2/ |
D | lmedm04.c | 171 u8 rbuff[1]; in lme2510_stream_restart() local 174 rbuff, sizeof(rbuff)); in lme2510_stream_restart() 177 rbuff, sizeof(rbuff)); in lme2510_stream_restart()
|