Lines Matching defs:buffer
157 discinfo_t * buffer = NULL;
177 /* Create buffer as needed.
182 if(buffer == NULL) {
183 /* Create the client specific buffer */
185 buffer = kmalloc(n * sizeof(struct irda_device_info), GFP_ATOMIC);
186 if (buffer == NULL) {
194 memcpy(&(buffer[i]), &(curr->data),
210 if(buffer == NULL)
214 irlmp_discovery_expiry(buffer, i);
216 /* Free up our buffer */
217 kfree(buffer);
248 * Copy all discoveries in a buffer
255 * The idea is that we copy all the current discovery log in a buffer
270 discinfo_t * buffer = NULL;
289 /* Create buffer as needed.
294 if(buffer == NULL) {
295 /* Create the client specific buffer */
297 buffer = kmalloc(n * sizeof(struct irda_device_info), GFP_ATOMIC);
298 if (buffer == NULL) {
306 memcpy(&(buffer[i]), &(discovery->data),
315 /* Get the actual number of device in the buffer and return */
317 return buffer;