Lines Matching defs:buf
55 const unsigned char *buf, int count);
107 unsigned char buf[KOBIL_BUF_LENGTH]; /* buffer for the APDU to send */
108 int filled; /* index of the last char in buf */
109 int cur_pos; /* index of the next char to send in buf */
294 const unsigned char *buf, int count)
314 memcpy(priv->buf + priv->filled, buf, count);
315 usb_serial_debug_data(&port->dev, __func__, count, priv->buf + priv->filled);
320 if (((priv->device_type != KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 2) && (priv->filled >= (priv->buf[1] + 3))) ||
321 ((priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 3) && (priv->filled >= (priv->buf[2] + 4)))) {
334 priv->buf + priv->cur_pos, length);