Home
last modified time | relevance | path

Searched refs:tmp_buf (Results 1 – 25 of 44) sorted by relevance

12

/linux-2.4.37.9/drivers/char/drm-4.0/ !
Dmga_drv.h214 drm_mga_prim_buf_t *tmp_buf = \
216 if( test_bit(MGA_BUF_NEEDS_OVERFLOW, &tmp_buf->buffer_status)) { \
219 tmp_buf = dev_priv->prim_bufs[dev_priv->current_prim_idx]; \
220 } else if( tmp_buf->max_dwords - tmp_buf->num_dwords < length || \
221 tmp_buf->sec_used > MGA_DMA_BUF_NR/2) { \
222 set_bit(MGA_BUF_FORCE_FIRE, &tmp_buf->buffer_status); \
225 tmp_buf = dev_priv->prim_bufs[dev_priv->current_prim_idx]; \
229 dma_ptr = tmp_buf->current_dma_ptr; \
230 num_dwords = tmp_buf->num_dwords; \
231 phys_head = tmp_buf->phys_head; \
[all …]
/linux-2.4.37.9/arch/cris/kernel/ !
Ddebugport.c121 static char tmp_buf[MIN_SIZE]; in console_write() local
158 memcpy(&tmp_buf[tmp_size], buf, size); in console_write()
163 if (tmp_buf[tmp_size-1] == '\n') in console_write()
165 memset(&tmp_buf[tmp_size-1], ' ', MIN_SIZE - tmp_size); in console_write()
166 tmp_buf[MIN_SIZE - 1] = '\n'; in console_write()
193 descr.buf = virt_to_phys(tmp_buf); in console_write()
/linux-2.4.37.9/net/atm/ !
Daddr.c122 struct sockaddr_atmsvc *tmp_buf, *tmp_bufp; in atm_get_addr() local
128 tmp_buf = tmp_bufp = kmalloc(total, GFP_ATOMIC); in atm_get_addr()
129 if (!tmp_buf) { in atm_get_addr()
137 if (copy_to_user(u_buf, tmp_buf, total < size ? total : size)) in atm_get_addr()
139 kfree(tmp_buf); in atm_get_addr()
Dresources.c215 int *tmp_buf, *tmp_bufp; in atm_dev_ioctl() local
232 tmp_buf = tmp_bufp = kmalloc(size, GFP_ATOMIC); in atm_dev_ioctl()
233 if (!tmp_buf) { in atm_dev_ioctl()
242 error = (copy_to_user(buf, tmp_buf, size) || in atm_dev_ioctl()
245 kfree(tmp_buf); in atm_dev_ioctl()
/linux-2.4.37.9/drivers/char/ !
Dgeneric_serial.c33 static char * tmp_buf; variable
213 if (!port || !port->xmit_buf || !tmp_buf) in gs_write()
242 c -= copy_from_user(tmp_buf, buf, c); in gs_write()
254 memcpy(port->xmit_buf + port->xmit_head, tmp_buf, c); in gs_write()
954 if (!tmp_buf) { in gs_init_port()
958 if (tmp_buf) in gs_init_port()
961 tmp_buf = (unsigned char *) page; in gs_init_port()
964 if (!tmp_buf) { in gs_init_port()
Dpdc_console.c97 static unsigned char *tmp_buf; variable
568 if (!tmp_buf) { in pdc_open()
574 if (tmp_buf) in pdc_open()
577 tmp_buf = (unsigned char *) page; in pdc_open()
Dserial_txx927.c206 static unsigned char *tmp_buf; variable
1004 if (!tty || !info->xmit.buf || !tmp_buf) in rs_write()
1022 c -= copy_from_user(tmp_buf, buf, c); in rs_write()
1035 memcpy(info->xmit.buf + info->xmit.head, tmp_buf, c); in rs_write()
1771 if (!tmp_buf) { in rs_open()
1776 if (tmp_buf) in rs_open()
1779 tmp_buf = (unsigned char *) page; in rs_open()
2114 if (tmp_buf) { in rs_fini()
2115 unsigned long pg = (unsigned long) tmp_buf; in rs_fini()
2116 tmp_buf = NULL; in rs_fini()
Disicom.c101 static unsigned char * tmp_buf = 0; variable
1242 if (!port->xmit_buf || !tmp_buf) in isicom_write()
1261 copy_from_user(tmp_buf, buf, cnt); in isicom_write()
1265 memcpy(port->xmit_buf + port->xmit_head, tmp_buf, cnt); in isicom_write()
1865 if (!tmp_buf) { in isicom_init()
1875 tmp_buf = (unsigned char *) page; in isicom_init()
1881 free_page((unsigned long)tmp_buf); in isicom_init()
1887 free_page((unsigned long)tmp_buf); in isicom_init()
1894 free_page((unsigned long)tmp_buf); in isicom_init()
2073 free_page((unsigned long)tmp_buf); in cleanup_module()
Damiserial.c149 static unsigned char *tmp_buf; variable
941 if (!tty || !info->xmit.buf || !tmp_buf) in rs_write()
955 c -= copy_from_user(tmp_buf, buf, c); in rs_write()
967 memcpy(info->xmit.buf + info->xmit.head, tmp_buf, c); in rs_write()
1921 if (!tmp_buf) { in rs_open()
1926 if (tmp_buf) in rs_open()
1929 tmp_buf = (unsigned char *) page; in rs_open()
2254 if (tmp_buf) { in rs_exit()
2255 free_page((unsigned long) tmp_buf); in rs_exit()
2256 tmp_buf = NULL; in rs_exit()
Dpcxx.h122 unchar *tmp_buf; /* Temp buffer */ member
Dvac-serial.c165 static unsigned char *tmp_buf; variable
1074 if (!tty || !info->xmit_buf || !tmp_buf) in rs_write()
1087 c -= copy_from_user(tmp_buf, buf, c); in rs_write()
1096 memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c); in rs_write()
2026 if (!tmp_buf) { in rs_open()
2032 if (tmp_buf) in rs_open()
2035 tmp_buf = (unsigned char *) page; in rs_open()
2548 if (tmp_buf) { in cleanup_module()
2549 free_page((unsigned long) tmp_buf); in cleanup_module()
2550 tmp_buf = NULL; in cleanup_module()
Driscom8.c95 static unsigned char * tmp_buf; variable
1238 if (!port->xmit_buf || !tmp_buf) in rc_write()
1251 c -= copy_from_user(tmp_buf, buf, c); in rc_write()
1261 memcpy(port->xmit_buf + port->xmit_head, tmp_buf, c); in rc_write()
1754 if (!(tmp_buf = (unsigned char *) get_free_page(GFP_KERNEL))) { in rc_init_drivers()
1798 free_page((unsigned long)tmp_buf); in rc_init_drivers()
1805 free_page((unsigned long)tmp_buf); in rc_init_drivers()
1838 free_page((unsigned long)tmp_buf); in rc_release_drivers()
Depca.h136 unchar *tmp_buf; member
Drocket.c216 static unsigned char *tmp_buf = 0; variable
902 if (!tmp_buf) { in rp_open()
906 if (tmp_buf) in rp_open()
909 tmp_buf = (unsigned char *) page; in rp_open()
1742 c -= copy_from_user(tmp_buf, buf, c); in rp_write()
1743 b = tmp_buf; in rp_write()
1779 c -= copy_from_user(tmp_buf, buf, c); in rp_write()
1780 b = tmp_buf; in rp_write()
2310 if (tmp_buf) in cleanup_module()
2311 free_page((unsigned long) tmp_buf); in cleanup_module()
Dvc_screen.c221 unsigned short *tmp_buf = (unsigned short *)con_buf0; in vcs_read() local
237 *tmp_buf++ = vcs_scr_readw(currcons, org++); in vcs_read()
Ddz.h192 static unsigned char *tmp_buf; variable
Dserial_amba.c140 static u_char *tmp_buf; variable
869 if (!tty || !info->xmit.buf || !tmp_buf) in ambauart_write()
885 c -= copy_from_user(tmp_buf, buf, c); in ambauart_write()
897 memcpy(info->xmit.buf + info->xmit.head, tmp_buf, c); in ambauart_write()
1710 if (!tmp_buf) { in ambauart_open()
1712 if (tmp_buf) in ambauart_open()
1718 tmp_buf = (u_char *)page; in ambauart_open()
Dspecialix.c188 static unsigned char * tmp_buf; variable
1618 if (!port->xmit_buf || !tmp_buf) in sx_write()
1630 c -= copy_from_user(tmp_buf, buf, c); in sx_write()
1640 memcpy(port->xmit_buf + port->xmit_head, tmp_buf, c); in sx_write()
2231 if (!(tmp_buf = (unsigned char *) get_free_page(GFP_KERNEL))) { in sx_init_drivers()
2274 free_page((unsigned long)tmp_buf); in sx_init_drivers()
2280 free_page((unsigned long)tmp_buf); in sx_init_drivers()
2308 free_page((unsigned long)tmp_buf); in sx_release_drivers()
Desp.c175 static unsigned char *tmp_buf; variable
1316 if (!info->xmit_buf || !tmp_buf) in rs_write()
1341 c -= copy_from_user(tmp_buf, buf, c); in rs_write()
1349 memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c); in rs_write()
2387 if (!tmp_buf) { in esp_open()
2388 tmp_buf = (unsigned char *) get_free_page(GFP_KERNEL); in esp_open()
2389 if (!tmp_buf) in esp_open()
2760 if (tmp_buf) in espserial_exit()
2761 free_page((unsigned long)tmp_buf); in espserial_exit()
Dau1x00-serial.c212 static unsigned char *tmp_buf; variable
1202 if (!tty || !info->xmit.buf || !tmp_buf)
1218 c -= copy_from_user(tmp_buf, buf, c);
1230 memcpy(info->xmit.buf + info->xmit.head, tmp_buf, c);
2296 if (!tmp_buf) {
2302 if (tmp_buf)
2305 tmp_buf = (unsigned char *) page;
2841 if (tmp_buf) {
2842 unsigned long pg = (unsigned long) tmp_buf;
2843 tmp_buf = NULL;
/linux-2.4.37.9/drivers/mtd/chips/ !
Damd_flash.c984 u_char tmp_buf[4]; in amd_flash_write() local
987 map->copy_from(map, tmp_buf, in amd_flash_write()
991 tmp_buf[i++] = buf[n++], len--; in amd_flash_write()
994 datum = *(__u16*)tmp_buf; in amd_flash_write()
996 datum = *(__u32*)tmp_buf; in amd_flash_write()
1057 u_char tmp_buf[2]; in amd_flash_write() local
1060 map->copy_from(map, tmp_buf, in amd_flash_write()
1064 tmp_buf[i++] = buf[n++]; in amd_flash_write()
1068 datum = *(__u16*)tmp_buf; in amd_flash_write()
1070 datum = *(__u32*)tmp_buf; in amd_flash_write()
Dcfi_cmdset_0002.c589 u_char tmp_buf[4]; in cfi_amdstd_write() local
592 map->copy_from(map, tmp_buf, bus_ofs + cfi->chips[chipnum].start, CFIDEV_BUSWIDTH); in cfi_amdstd_write()
594 tmp_buf[i++] = buf[n++], len--; in cfi_amdstd_write()
597 datum = *(__u16*)tmp_buf; in cfi_amdstd_write()
599 datum = *(__u32*)tmp_buf; in cfi_amdstd_write()
687 u_char tmp_buf[4]; in cfi_amdstd_write() local
690 map->copy_from(map, tmp_buf, ofs + cfi->chips[chipnum].start, CFIDEV_BUSWIDTH); in cfi_amdstd_write()
692 tmp_buf[i++] = buf[n++]; in cfi_amdstd_write()
695 datum = *(__u16*)tmp_buf; in cfi_amdstd_write()
697 datum = *(__u32*)tmp_buf; in cfi_amdstd_write()
Dcfi_cmdset_0001.c956 u_char tmp_buf[8]; local
960 tmp_buf[i++] = 0xff;
962 tmp_buf[i++] = buf[n++], len--;
964 tmp_buf[i++] = 0xff;
967 datum = *(__u16*)tmp_buf;
969 datum = *(__u32*)tmp_buf;
971 datum = *(__u64*)tmp_buf;
1028 u_char tmp_buf[8]; local
1032 tmp_buf[i++] = buf[n++];
1034 tmp_buf[i++] = 0xff;
[all …]
/linux-2.4.37.9/arch/ia64/drivers/ !
Dsimserial.c110 static unsigned char *tmp_buf; variable
307 if (!tty || !info->xmit.buf || !tmp_buf) return 0; in rs_write()
320 c -= copy_from_user(tmp_buf, buf, c); in rs_write()
330 memcpy(info->xmit.buf + info->xmit.head, tmp_buf, c); in rs_write()
886 if (!tmp_buf) { in rs_open()
892 if (tmp_buf) in rs_open()
895 tmp_buf = (unsigned char *) page; in rs_open()
/linux-2.4.37.9/drivers/macintosh/ !
Dmacserial.c181 static unsigned char *tmp_buf; variable
1503 if (!tty || !info->xmit_buf || !tmp_buf) in rs_write()
1515 c -= copy_from_user(tmp_buf, buf, c); in rs_write()
1525 memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c); in rs_write()
2270 if (!tmp_buf) { in rs_open()
2274 if (tmp_buf) in rs_open()
2277 tmp_buf = (unsigned char *) page; in rs_open()
2755 tmp_buf = 0; in macserial_init()
2786 if (tmp_buf) { in macserial_cleanup()
2787 free_page((unsigned long) tmp_buf); in macserial_cleanup()
[all …]

12