Lines Matching refs:manbuf
30 eicon_manifbuf *manbuf; variable
952 if (!manbuf) { in idi_IndParse()
956 memcpy(&manbuf->data[manbuf->pos], &buffer[pos], wlen); in idi_IndParse()
957 manbuf->length[manbuf->count] = wlen; in idi_IndParse()
958 manbuf->count++; in idi_IndParse()
959 manbuf->pos += wlen; in idi_IndParse()
3136 if (!(manbuf = kmalloc(sizeof(eicon_manifbuf), GFP_KERNEL))) { in eicon_idi_manage()
3140 if (copy_from_user(manbuf, mb, sizeof(eicon_manifbuf))) { in eicon_idi_manage()
3141 kfree(manbuf); in eicon_idi_manage()
3154 kfree(manbuf); in eicon_idi_manage()
3166 for (i = 0; i < manbuf->length[0]; i++) in eicon_idi_manage()
3167 reqbuf->XBuffer.P[l++] = manbuf->data[i]; in eicon_idi_manage()
3168 reqbuf->XBuffer.P[1] = manbuf->length[0] + 1; in eicon_idi_manage()
3171 reqbuf->Req = (manbuf->count) ? manbuf->count : MAN_READ; in eicon_idi_manage()
3180 manbuf->count = 0; in eicon_idi_manage()
3181 manbuf->pos = 0; in eicon_idi_manage()
3191 kfree(manbuf); in eicon_idi_manage()
3194 if (copy_to_user(mb, manbuf, sizeof(eicon_manifbuf))) { in eicon_idi_manage()
3195 kfree(manbuf); in eicon_idi_manage()
3199 kfree(manbuf); in eicon_idi_manage()