Searched refs:BUF_SIZE (Results 1 - 16 of 16) sorted by relevance

/drivers/input/joystick/
H A Djoydump.c43 #define BUF_SIZE 256 macro
84 buf = kmalloc(BUF_SIZE * sizeof(struct joydump), GFP_KERNEL);
103 while (i < BUF_SIZE && t < timeout) {
/drivers/tty/
H A Dehv_bytechan.c44 #define BUF_SIZE 2048 macro
55 unsigned char buf[BUF_SIZE]; /* transmit circular buffer */
447 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE),
454 bc->tail = (bc->tail + len) & (BUF_SIZE - 1);
456 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE);
461 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE))
514 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE);
519 bc->head = (bc->head + len) & (BUF_SIZE - 1);
581 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE);
/drivers/staging/wlags49_h2/
H A Dhcf.h174 #define BUF_SIZE buf_dim[DESC_STRCT_SIZE] macro
192 #define GET_BUF_SIZE(descp) ((descp)->BUF_SIZE)
194 #define SET_BUF_SIZE(descp, size) (descp)->BUF_SIZE = size;
H A Dhcf.c1282 while ( ( p->BUF_SIZE & DESC_EOP ) == 0 && p->next_desc_addr ) {
1314 copy->BUF_SIZE = p->BUF_SIZE &= DESC_CNT_MASK; //get rid of DESC_EOP and possibly DESC_SOP
1330 head->BUF_SIZE &= DESC_CNT_MASK;
1384 HCFASSERT( (p->BUF_SIZE & ~DESC_CNT_MASK) == 0, p->BUF_SIZE );
1385 p->BUF_SIZE &= DESC_CNT_MASK; //!!this SHOULD be superfluous in case of correct MSF
1389 // HCFASSERT( p->buf_addr && p->buf_phys_addr && p->BUF_SIZE && +/- p->BUF_SIZE, ... );
1415 p->BUF_SIZE |
[all...]
H A Dwl_netdev.c141 desc->BUF_SIZE = len; \
957 desc->BUF_SIZE = len; \
H A Dwl_wext.c3405 desc[0].BUF_SIZE = sizeof(stats);
/drivers/video/backlight/
H A Dlp855x_bl.c23 #define BUF_SIZE 20 macro
207 return scnprintf(buf, BUF_SIZE, "%s\n", lp->chipname);
222 return scnprintf(buf, BUF_SIZE, "%s\n", strmode);
/drivers/net/hamradio/
H A Ddmascc.c52 #define BUF_SIZE 1576 /* BUF_SIZE >= mtu + hard_header_len */ macro
204 char rx_buf[NUM_RX_BUF][BUF_SIZE];
210 char tx_buf[NUM_TX_BUF][BUF_SIZE];
1034 set_dma_count(priv->param.dma, BUF_SIZE);
1176 if (priv->rx_ptr < BUF_SIZE)
1206 cb = BUF_SIZE - get_dma_residue(priv->param.dma) -
1247 set_dma_count(priv->param.dma, BUF_SIZE);
/drivers/staging/media/lirc/
H A Dlirc_sasem.c59 #define BUF_SIZE 128 macro
771 if (lirc_buffer_init(rbuf, BUF_CHUNK_SIZE, BUF_SIZE)) {
H A Dlirc_imon.c44 #define BUF_SIZE 128 macro
827 if (lirc_buffer_init(rbuf, BUF_CHUNK_SIZE, BUF_SIZE)) {
/drivers/atm/
H A Dsolos-pci.c63 #define BUF_SIZE 2048 macro
466 if (size > (BUF_SIZE - sizeof(*header))) {
1034 if (pktlen > (BUF_SIZE - sizeof(*header))) {
1142 card->buffer_size = BUF_SIZE;
H A Diphase.h543 #define BUF_SIZE 0x42 macro
H A Diphase.c1477 writew(iadev->rx_buf_sz, iadev->reass_reg+BUF_SIZE);
/drivers/net/wireless/bcmdhd/
H A Ddhd_common.c1301 #define BUF_SIZE 2048 macro
1313 if (!(buf = MALLOC(dhd->osh, BUF_SIZE))) {
1320 if (strlen(arg) > BUF_SIZE) {
1337 bcm_strncpy_s(buf, BUF_SIZE, str, str_len);
1421 MFREE(dhd->osh, buf, BUF_SIZE);
/drivers/scsi/
H A Dscsi_transport_sas.c1270 #define BUF_SIZE 64 macro
1274 char *buffer = kzalloc(BUF_SIZE, GFP_KERNEL), *msdata;
1282 res = scsi_mode_sense(sdev, 1, 0x19, buffer, BUF_SIZE, 30*HZ, 3,
1292 if (msdata - buffer > BUF_SIZE - 8)
/drivers/media/rc/
H A Dimon.c56 #define BUF_SIZE 128 macro

Completed in 371 milliseconds