Home
last modified time | relevance | path

Searched refs:maxlen (Results 1 – 25 of 119) sorted by relevance

12345

/drivers/isdn/mISDN/
Dhwchannel.c66 mISDN_initdchannel(struct dchannel *ch, int maxlen, void *phf) in mISDN_initdchannel() argument
69 ch->maxlen = maxlen; in mISDN_initdchannel()
84 mISDN_initbchannel(struct bchannel *ch, unsigned short maxlen, in mISDN_initbchannel() argument
91 ch->maxlen = maxlen; in mISDN_initbchannel()
92 ch->next_maxlen = maxlen; in mISDN_initbchannel()
93 ch->init_maxlen = maxlen; in mISDN_initbchannel()
149 ch->maxlen = ch->init_maxlen; in mISDN_clear_bchannel()
198 cq->p2 = bch->maxlen; in mISDN_ctrl_bchannel()
420 if (skb->len > ch->maxlen) { in dchannel_senddata()
422 __func__, skb->len, ch->maxlen); in dchannel_senddata()
[all …]
/drivers/parport/
Dprocfs.c272 .maxlen = sizeof(int),
281 .maxlen = 0,
288 .maxlen = 0,
295 .maxlen = 0,
302 .maxlen = 0,
311 .maxlen = 0,
318 .maxlen = 0,
325 .maxlen = 0,
332 .maxlen = 0,
339 .maxlen = 0,
[all …]
/drivers/staging/lustre/lnet/libcfs/
Dmodule.c344 .maxlen = sizeof(int),
351 .maxlen = sizeof(int),
358 .maxlen = sizeof(int),
364 .maxlen = 128,
372 .maxlen = sizeof(lnet_upcall),
379 .maxlen = sizeof(lnet_debug_log_upcall),
386 .maxlen = sizeof(int),
392 .maxlen = 256,
399 .maxlen = 256,
405 .maxlen = 0,
[all …]
/drivers/input/
Devdev.c664 unsigned int maxlen, void __user *p, int compat) in bits_to_user() argument
670 if (len > maxlen) in bits_to_user()
671 len = maxlen; in bits_to_user()
681 if (len > maxlen) in bits_to_user()
682 len = maxlen; in bits_to_user()
692 unsigned int maxlen, const void __user *p, int compat) in bits_from_user() argument
697 if (maxlen % sizeof(compat_long_t)) in bits_from_user()
701 if (len > maxlen) in bits_from_user()
702 len = maxlen; in bits_from_user()
714 if (maxlen % sizeof(long)) in bits_from_user()
[all …]
/drivers/isdn/hysdn/
Dhysdn_sched.c76 unsigned short maxlen) in hysdn_sched_tx() argument
86 if (card->async_len <= maxlen) { in hysdn_sched_tx()
96 (maxlen >= ERRLOG_CMD_REQ_SIZE)) { in hysdn_sched_tx()
104 (maxlen >= ERRLOG_CMD_STOP_SIZE)) { in hysdn_sched_tx()
115 if (skb->len <= maxlen) { in hysdn_sched_tx()
129 if (skb->len <= maxlen) { in hysdn_sched_tx()
/drivers/isdn/hardware/mISDN/
Dhfcpci.c409 int maxlen, new_z2; in hfcpci_empty_bfifo() local
439 maxlen = count; /* complete transfer */ in hfcpci_empty_bfifo()
441 maxlen = B_FIFO_SIZE + B_SUB_VAL - in hfcpci_empty_bfifo()
446 memcpy(ptr, ptr1, maxlen); /* copy data */ in hfcpci_empty_bfifo()
447 count -= maxlen; in hfcpci_empty_bfifo()
450 ptr += maxlen; in hfcpci_empty_bfifo()
467 int maxlen; in receive_dmsg() local
517 maxlen = rcnt; /* complete transfer */ in receive_dmsg()
519 maxlen = D_FIFO_SIZE - le16_to_cpu(zp->z2); in receive_dmsg()
524 memcpy(ptr, ptr1, maxlen); /* copy data */ in receive_dmsg()
[all …]
Dhfcsusb.c818 int maxlen = 0; in hfcsusb_rx_frame() local
841 maxlen = fifo->dch->maxlen; in hfcsusb_rx_frame()
850 maxlen = bchannel_get_rxbuf(fifo->bch, len); in hfcsusb_rx_frame()
852 if (maxlen < 0) { in hfcsusb_rx_frame()
860 maxlen = fifo->bch->maxlen; in hfcsusb_rx_frame()
865 maxlen = fifo->ech->maxlen; in hfcsusb_rx_frame()
871 rx_skb = mI_alloc_skb(maxlen, GFP_ATOMIC); in hfcsusb_rx_frame()
977 int k, len, errcode, offset, num_isoc_packets, fifon, maxlen, in rx_iso_complete() local
1012 maxlen = fifo->usb_packet_maxlen; in rx_iso_complete()
1040 if (fifo->last_urblen != maxlen) { in rx_iso_complete()
[all …]
/drivers/isdn/hisax/
Dhfc_pci.c276 int total, maxlen, new_z2; in hfcpci_empty_fifo() local
304 maxlen = count; /* complete transfer */ in hfcpci_empty_fifo()
306 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */ in hfcpci_empty_fifo()
309 memcpy(ptr, ptr1, maxlen); /* copy data */ in hfcpci_empty_fifo()
310 count -= maxlen; in hfcpci_empty_fifo()
313 ptr += maxlen; in hfcpci_empty_fifo()
332 int maxlen; in receive_dmsg() local
369 maxlen = rcnt; /* complete transfer */ in receive_dmsg()
371 maxlen = D_FIFO_SIZE - zp->z2; /* maximum */ in receive_dmsg()
374 memcpy(ptr, ptr1, maxlen); /* copy data */ in receive_dmsg()
[all …]
/drivers/media/usb/uvc/
Duvc_isight.c48 unsigned int maxlen, nbytes; in isight_decode() local
86 maxlen = buf->length - buf->bytesused; in isight_decode()
88 nbytes = min(len, maxlen); in isight_decode()
92 if (len > maxlen || buf->bytesused == buf->length) { in isight_decode()
/drivers/macintosh/
Dmac_hid.c221 .maxlen = sizeof(int),
228 .maxlen = sizeof(int),
235 .maxlen = sizeof(int),
246 .maxlen = 0,
257 .maxlen = 0,
/drivers/media/usb/pvrusb2/
Dpvrusb2-ctrl.h86 char *buf,unsigned int maxlen,
97 char *buf,unsigned int maxlen,
109 char *buf,unsigned int maxlen,
Dpvrusb2-ctrl.c285 char *buf,unsigned int maxlen, in pvr2_ctrl_custom_value_to_sym() argument
290 return cptr->info->val_to_sym(cptr,mask,val,buf,maxlen,len); in pvr2_ctrl_custom_value_to_sym()
549 char *buf,unsigned int maxlen, in pvr2_ctrl_value_to_sym_internal() argument
556 *len = scnprintf(buf,maxlen,"%d",val); in pvr2_ctrl_value_to_sym_internal()
559 *len = scnprintf(buf,maxlen,"%s",val ? "true" : "false"); in pvr2_ctrl_value_to_sym_internal()
568 buf,maxlen,"%s", in pvr2_ctrl_value_to_sym_internal()
580 buf,maxlen); in pvr2_ctrl_value_to_sym_internal()
589 char *buf,unsigned int maxlen, in pvr2_ctrl_value_to_sym() argument
595 buf,maxlen,len); in pvr2_ctrl_value_to_sym()
/drivers/bluetooth/
Dhci_uart.h125 u16 maxlen; /* Max overall packet length */ member
134 .maxlen = HCI_MAX_FRAME_SIZE \
141 .maxlen = HCI_MAX_SCO_SIZE
148 .maxlen = HCI_MAX_EVENT_SIZE
/drivers/md/
Ddm-core.h145 static inline bool dm_message_test_buffer_overflow(char *result, unsigned maxlen) in dm_message_test_buffer_overflow() argument
147 return !maxlen || strlen(result) + 1 >= maxlen; in dm_message_test_buffer_overflow()
Ddm-stats.c446 char *result, unsigned maxlen) in dm_stats_list() argument
804 bool clear, char *result, unsigned maxlen) in dm_stats_print() argument
869 if (unlikely(sz + 1 >= maxlen)) in dm_stats_print()
947 char *result, unsigned maxlen) in message_stats_create() argument
1044 snprintf(result, maxlen, "%d", INT_MAX); in message_stats_create()
1045 if (dm_message_test_buffer_overflow(result, maxlen)) { in message_stats_create()
1058 snprintf(result, maxlen, "%d", id); in message_stats_create()
1102 char *result, unsigned maxlen) in message_stats_list() argument
1116 r = dm_stats_list(dm_get_stats(md), program, result, maxlen); in message_stats_list()
1125 char *result, unsigned maxlen) in message_stats_print() argument
[all …]
Ddm-verity-fec.h83 char *result, unsigned maxlen);
118 unsigned maxlen) in verity_fec_status_table() argument
/drivers/net/wan/
Dhd64570.c250 u32 maxlen; in sca_rx() local
263 maxlen = winsize(card) - buff; in sca_rx()
267 if (len > maxlen) { in sca_rx()
268 memcpy_fromio(skb->data, winbase(card) + buff, maxlen); in sca_rx()
270 memcpy_fromio(skb->data + maxlen, winbase(card), len - maxlen); in sca_rx()
627 u32 maxlen; in sca_xmit() local
644 maxlen = winsize(card) - buff; in sca_xmit()
647 if (len > maxlen) { in sca_xmit()
648 memcpy_toio(winbase(card) + buff, skb->data, maxlen); in sca_xmit()
650 memcpy_toio(winbase(card), skb->data + maxlen, len - maxlen); in sca_xmit()
/drivers/oprofile/
Doprofilefs.c56 size_t maxlen = snprintf(tmpbuf, TMPBUFSIZE, "%lu\n", val); in oprofilefs_ulong_to_user() local
57 if (maxlen > TMPBUFSIZE) in oprofilefs_ulong_to_user()
58 maxlen = TMPBUFSIZE; in oprofilefs_ulong_to_user()
59 return simple_read_from_buffer(buf, count, offset, tmpbuf, maxlen); in oprofilefs_ulong_to_user()
/drivers/media/rc/img-ir/
Dimg-ir-hw.c238 unsigned int minlen, maxlen, ft_min; in img_ir_free_timing() local
245 if (timing->maxlen < 48) in img_ir_free_timing()
246 maxlen = (timing->maxlen + 1) & -2; in img_ir_free_timing()
248 maxlen = 48; in img_ir_free_timing()
253 return (maxlen << IMG_IR_MAXLEN_SHIFT) | in img_ir_free_timing()
267 unsigned int minlen, maxlen, newminlen, newmaxlen; in img_ir_free_timing_dynamic() local
271 newmaxlen = (filter->maxlen + 1) & -2; in img_ir_free_timing_dynamic()
274 maxlen = (st_ft & IMG_IR_MAXLEN) >> IMG_IR_MAXLEN_SHIFT; in img_ir_free_timing_dynamic()
280 if (newmaxlen < maxlen) { in img_ir_free_timing_dynamic()
490 filter.maxlen = ~0; in img_ir_set_filter()
Dimg-ir-sanyo.c109 .maxlen = 42,
123 .maxlen = 0,
Dimg-ir-sony.c110 out->maxlen = len; in img_ir_sony_filter()
147 .maxlen = 20,
Dimg-ir-nec.c140 .maxlen = 32,
154 .maxlen = 0,
Dimg-ir-hw.h87 u8 maxlen; member
116 u8 maxlen; member
/drivers/staging/rtl8712/
Dhal_init.c156 u32 maxlen = 0; /* for compare usage */ in rtl8712_dl_fw() local
173 maxlen = (fwhdr.img_IMEM_size > fwhdr.img_SRAM_size) ? in rtl8712_dl_fw()
175 maxlen += txdscp_sz; in rtl8712_dl_fw()
176 ptmpchar = kmalloc(maxlen + FWBUFF_ALIGN_SZ, GFP_KERNEL); in rtl8712_dl_fw()
/drivers/net/ethernet/cavium/thunder/
Dnic_reg.h219 u64 maxlen:16; /* Max frame size */ member
223 u64 maxlen:16;

12345