Lines Matching refs:buf

121 	u8 *buf;  in vp702x_usb_inout_cmd()  local
129 buf = kmalloc(buflen, GFP_KERNEL); in vp702x_usb_inout_cmd()
130 if (!buf) { in vp702x_usb_inout_cmd()
135 kfree(st->buf); in vp702x_usb_inout_cmd()
136 st->buf = buf; in vp702x_usb_inout_cmd()
139 buf = st->buf; in vp702x_usb_inout_cmd()
142 buf[0] = 0x00; in vp702x_usb_inout_cmd()
143 buf[1] = cmd; in vp702x_usb_inout_cmd()
144 memcpy(&buf[2], o, olen); in vp702x_usb_inout_cmd()
146 ret = vp702x_usb_inout_op(d, buf, olen+2, buf, ilen+1, msec); in vp702x_usb_inout_cmd()
149 memcpy(i, &buf[1], ilen); in vp702x_usb_inout_cmd()
159 u8 *buf; in vp702x_set_pld_mode() local
163 buf = st->buf; in vp702x_set_pld_mode()
164 memset(buf, 0, 16); in vp702x_set_pld_mode()
167 0, buf, 16); in vp702x_set_pld_mode()
176 u8 *buf; in vp702x_set_pld_state() local
180 buf = st->buf; in vp702x_set_pld_state()
181 memset(buf, 0, 16); in vp702x_set_pld_state()
183 0, buf, 16); in vp702x_set_pld_state()
194 u8 *buf; in vp702x_set_pid() local
209 buf = dst->buf; in vp702x_set_pid()
210 memset(buf, 0, 16); in vp702x_set_pid()
211 vp702x_usb_in_op(adap->dev, 0xe0, (((pid >> 8) & 0xff) << 8) | (id), 0, buf, 16); in vp702x_set_pid()
212 vp702x_usb_in_op(adap->dev, 0xe0, (((pid ) & 0xff) << 8) | (id+1), 0, buf, 16); in vp702x_set_pid()
237 b = dst->buf; in vp702x_init_pid_filter()
296 u8 i, *buf; in vp702x_read_mac_addr() local
300 buf = st->buf; in vp702x_read_mac_addr()
302 vp702x_usb_in_op(d, READ_EEPROM_REQ, i, 1, &buf[i - 6], 1); in vp702x_read_mac_addr()
304 memcpy(mac, buf, 6); in vp702x_read_mac_addr()
311 u8 buf[10] = { 0 }; in vp702x_frontend_attach() local
316 buf, 10, 10)) in vp702x_frontend_attach()
319 buf[9] = '\0'; in vp702x_frontend_attach()
320 info("system string: %s",&buf[1]); in vp702x_frontend_attach()
346 st->buf = kmalloc(st->buf_len, GFP_KERNEL); in vp702x_usb_probe()
347 if (!st->buf) { in vp702x_usb_probe()
364 kfree(st->buf); in vp702x_usb_disconnect()