Home
last modified time | relevance | path

Searched refs:rbuff (Results 1 – 10 of 10) sorted by relevance

/drivers/rtc/
Drtc-as3722.c33 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 …]
Drtc-tps6586x.c156 u8 rbuff[6]; in tps6586x_rtc_set_alarm() local
169 sizeof(rbuff), rbuff); in tps6586x_rtc_set_alarm()
175 for (i = 1; i < sizeof(rbuff); i++) { in tps6586x_rtc_set_alarm()
177 rticks |= rbuff[i]; in tps6586x_rtc_set_alarm()
/drivers/net/hamradio/
Dmkiss.c46 unsigned char *rbuff; /* receiver buffer */ member
241 if (ax->rbuff[0] > 0x0f) { in ax_bump()
242 if (ax->rbuff[0] & 0x80) { in ax_bump()
243 if (check_crc_16(ax->rbuff, ax->rcount) < 0) { in ax_bump()
256 *ax->rbuff &= ~0x80; in ax_bump()
257 } else if (ax->rbuff[0] & 0x20) { in ax_bump()
258 if (check_crc_flex(ax->rbuff, ax->rcount) < 0) { in ax_bump()
277 *ax->rbuff &= ~0x20; in ax_bump()
291 skb_put_data(skb, ax->rbuff, count); in ax_bump()
330 ax->rbuff[ax->rcount++] = s; in kiss_unesc()
[all …]
D6pack.c91 unsigned char *rbuff; /* receiver buffer */ member
552 char *rbuff = NULL, *xbuff = NULL; in sixpack_open() local
581 rbuff = kmalloc(len + 4, GFP_KERNEL); in sixpack_open()
584 if (rbuff == NULL || xbuff == NULL) { in sixpack_open()
593 sp->rbuff = rbuff; in sixpack_open()
638 kfree(rbuff); in sixpack_open()
681 kfree(sp->rbuff); in sixpack_close()
/drivers/net/wan/
Dx25_asy.c112 kfree(sl->rbuff); in x25_asy_free()
113 sl->rbuff = NULL; in x25_asy_free()
124 unsigned char *xbuff, *rbuff; in x25_asy_change_mtu() local
129 rbuff = kmalloc(len + 4, GFP_ATOMIC); in x25_asy_change_mtu()
131 if (xbuff == NULL || rbuff == NULL) { in x25_asy_change_mtu()
133 kfree(rbuff); in x25_asy_change_mtu()
149 rbuff = xchg(&sl->rbuff, rbuff); in x25_asy_change_mtu()
152 memcpy(sl->rbuff, rbuff, sl->rcount); in x25_asy_change_mtu()
166 kfree(rbuff); in x25_asy_change_mtu()
205 skb_put_data(skb, sl->rbuff, count); in x25_asy_bump()
[all …]
Dx25_asy.h27 unsigned char *rbuff; /* receiver buffer */ member
/drivers/net/slip/
Dslip.c133 char *rbuff = NULL; in sl_alloc_bufs() local
156 rbuff = kmalloc(len + 4, GFP_KERNEL); in sl_alloc_bufs()
157 if (rbuff == NULL) in sl_alloc_bufs()
180 rbuff = xchg(&sl->rbuff, rbuff); in sl_alloc_bufs()
200 kfree(rbuff); in sl_alloc_bufs()
208 kfree(xchg(&sl->rbuff, NULL)); in sl_free_bufs()
224 unsigned char *xbuff, *rbuff; local
239 rbuff = kmalloc(len + 4, GFP_ATOMIC);
246 if (xbuff == NULL || rbuff == NULL || cbuff == NULL) {
248 if (xbuff == NULL || rbuff == NULL) {
[all …]
Dslip.h65 unsigned char *rbuff; /* receiver buffer */ member
/drivers/net/can/
Dslcan.c90 unsigned char rbuff[SLC_MTU]; /* receiver buffer */ member
149 char *cmd = sl->rbuff; in slc_bump()
159 cf.can_dlc = sl->rbuff[SLC_CMD_LEN + SLC_SFF_ID_LEN]; in slc_bump()
160 sl->rbuff[SLC_CMD_LEN + SLC_SFF_ID_LEN] = 0; in slc_bump()
170 cf.can_dlc = sl->rbuff[SLC_CMD_LEN + SLC_EFF_ID_LEN]; in slc_bump()
171 sl->rbuff[SLC_CMD_LEN + SLC_EFF_ID_LEN] = 0; in slc_bump()
179 if (kstrtou32(sl->rbuff + SLC_CMD_LEN, 16, &tmpid)) in slc_bump()
239 sl->rbuff[sl->rcount++] = s; in slcan_unesc()
/drivers/media/usb/dvb-usb-v2/
Dlmedm04.c171 u8 rbuff[1]; in lme2510_stream_restart() local
174 rbuff, sizeof(rbuff)); in lme2510_stream_restart()
177 rbuff, sizeof(rbuff)); in lme2510_stream_restart()