Home
last modified time | relevance | path

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

1234567

/drivers/isdn/mISDN/
Dhwchannel.c57 mISDN_initdchannel(struct dchannel *ch, int maxlen, void *phf) in mISDN_initdchannel() argument
60 ch->maxlen = maxlen; in mISDN_initdchannel()
75 mISDN_initbchannel(struct bchannel *ch, unsigned short maxlen, in mISDN_initbchannel() argument
82 ch->maxlen = maxlen; in mISDN_initbchannel()
83 ch->next_maxlen = maxlen; in mISDN_initbchannel()
84 ch->init_maxlen = maxlen; in mISDN_initbchannel()
140 ch->maxlen = ch->init_maxlen; in mISDN_clear_bchannel()
189 cq->p2 = bch->maxlen; in mISDN_ctrl_bchannel()
411 if (skb->len > ch->maxlen) { in dchannel_senddata()
413 __func__, skb->len, ch->maxlen); in dchannel_senddata()
[all …]
/drivers/parport/
Dprocfs.c273 .maxlen = sizeof(int),
282 .maxlen = 0,
289 .maxlen = 0,
296 .maxlen = 0,
303 .maxlen = 0,
311 .maxlen = 0,
318 .maxlen = 0,
325 .maxlen = 0,
332 .maxlen = 0,
339 .maxlen = 0,
[all …]
/drivers/input/
Devdev.c636 unsigned int maxlen, void __user *p, int compat) in bits_to_user() argument
642 if (len > maxlen) in bits_to_user()
643 len = maxlen; in bits_to_user()
653 if (len > maxlen) in bits_to_user()
654 len = maxlen; in bits_to_user()
664 unsigned int maxlen, const void __user *p, int compat) in bits_from_user() argument
669 if (maxlen % sizeof(compat_long_t)) in bits_from_user()
673 if (len > maxlen) in bits_from_user()
674 len = maxlen; in bits_from_user()
686 if (maxlen % sizeof(long)) in bits_from_user()
[all …]
/drivers/isdn/hardware/mISDN/
Dhfcpci.c397 int maxlen, new_z2; in hfcpci_empty_bfifo() local
427 maxlen = count; /* complete transfer */ in hfcpci_empty_bfifo()
429 maxlen = B_FIFO_SIZE + B_SUB_VAL - in hfcpci_empty_bfifo()
434 memcpy(ptr, ptr1, maxlen); /* copy data */ in hfcpci_empty_bfifo()
435 count -= maxlen; in hfcpci_empty_bfifo()
438 ptr += maxlen; in hfcpci_empty_bfifo()
455 int maxlen; in receive_dmsg() local
505 maxlen = rcnt; /* complete transfer */ in receive_dmsg()
507 maxlen = D_FIFO_SIZE - le16_to_cpu(zp->z2); in receive_dmsg()
512 memcpy(ptr, ptr1, maxlen); /* copy data */ in receive_dmsg()
[all …]
Dhfcsusb.c808 int maxlen = 0; in hfcsusb_rx_frame() local
832 maxlen = fifo->dch->maxlen; in hfcsusb_rx_frame()
841 maxlen = bchannel_get_rxbuf(fifo->bch, len); in hfcsusb_rx_frame()
843 if (maxlen < 0) { in hfcsusb_rx_frame()
851 maxlen = fifo->bch->maxlen; in hfcsusb_rx_frame()
856 maxlen = fifo->ech->maxlen; in hfcsusb_rx_frame()
862 rx_skb = mI_alloc_skb(maxlen, GFP_ATOMIC); in hfcsusb_rx_frame()
968 int k, len, errcode, offset, num_isoc_packets, fifon, maxlen, in rx_iso_complete() local
1004 maxlen = fifo->usb_packet_maxlen; in rx_iso_complete()
1032 if (fifo->last_urblen != maxlen) { in rx_iso_complete()
[all …]
/drivers/bluetooth/
Dh4_recv.h16 u16 maxlen; /* Max overall packet length */ member
25 .maxlen = HCI_MAX_FRAME_SIZE \
32 .maxlen = HCI_MAX_SCO_SIZE
39 .maxlen = HCI_MAX_EVENT_SIZE
60 skb = bt_skb_alloc((&pkts[i])->maxlen, in h4_recv_buf()
Dhci_uart.h131 u16 maxlen; /* Max overall packet length */ member
140 .maxlen = HCI_MAX_FRAME_SIZE \
147 .maxlen = HCI_MAX_SCO_SIZE
154 .maxlen = HCI_MAX_EVENT_SIZE
161 .maxlen = HCI_MAX_FRAME_SIZE \
/drivers/media/usb/uvc/
Duvc_isight.c45 unsigned int maxlen, nbytes; in isight_decode() local
85 maxlen = buf->length - buf->bytesused; in isight_decode()
87 nbytes = min(len, maxlen); in isight_decode()
91 if (len > maxlen || buf->bytesused == buf->length) { in isight_decode()
/drivers/media/usb/pvrusb2/
Dpvrusb2-ctrl.h72 char *buf,unsigned int maxlen,
83 char *buf,unsigned int maxlen,
95 char *buf,unsigned int maxlen,
Dpvrusb2-ctrl.c271 char *buf,unsigned int maxlen, in pvr2_ctrl_custom_value_to_sym() argument
276 return cptr->info->val_to_sym(cptr,mask,val,buf,maxlen,len); in pvr2_ctrl_custom_value_to_sym()
514 char *buf,unsigned int maxlen, in pvr2_ctrl_value_to_sym_internal() argument
521 *len = scnprintf(buf,maxlen,"%d",val); in pvr2_ctrl_value_to_sym_internal()
524 *len = scnprintf(buf,maxlen,"%s",val ? "true" : "false"); in pvr2_ctrl_value_to_sym_internal()
533 buf,maxlen,"%s", in pvr2_ctrl_value_to_sym_internal()
545 buf,maxlen); in pvr2_ctrl_value_to_sym_internal()
554 char *buf,unsigned int maxlen, in pvr2_ctrl_value_to_sym() argument
560 buf,maxlen,len); in pvr2_ctrl_value_to_sym()
/drivers/firmware/efi/
Dearlycon.c91 u16 maxlen = 0; in efi_earlycon_scroll_up() local
97 if (efi_x_array[i] > maxlen) in efi_earlycon_scroll_up()
98 maxlen = efi_x_array[i]; in efi_earlycon_scroll_up()
100 maxlen *= 4; in efi_earlycon_scroll_up()
116 memmove(dst, src, maxlen); in efi_earlycon_scroll_up()
/drivers/net/wan/
Dhd64570.c244 u32 maxlen; in sca_rx() local
257 maxlen = winsize(card) - buff; in sca_rx()
261 if (len > maxlen) { in sca_rx()
262 memcpy_fromio(skb->data, winbase(card) + buff, maxlen); in sca_rx()
264 memcpy_fromio(skb->data + maxlen, winbase(card), len - maxlen); in sca_rx()
633 u32 maxlen; in sca_xmit() local
650 maxlen = winsize(card) - buff; in sca_xmit()
653 if (len > maxlen) { in sca_xmit()
654 memcpy_toio(winbase(card) + buff, skb->data, maxlen); in sca_xmit()
656 memcpy_toio(winbase(card), skb->data + maxlen, len - maxlen); in sca_xmit()
/drivers/md/
Ddm-dust.c142 unsigned int maxlen, unsigned int *sz_ptr) in dust_query_block() argument
264 static int dust_clear_badblocks(struct dust_device *dd, char *result, unsigned int maxlen, in dust_clear_badblocks() argument
287 static int dust_list_badblocks(struct dust_device *dd, char *result, unsigned int maxlen, in dust_list_badblocks() argument
415 char *result, unsigned int maxlen) in dust_message() argument
448 r = dust_clear_badblocks(dd, result, maxlen, &sz); in dust_message()
456 r = dust_list_badblocks(dd, result, maxlen, &sz); in dust_message()
476 r = dust_query_block(dd, block, result, maxlen, &sz); in dust_message()
514 unsigned int status_flags, char *result, unsigned int maxlen) in dust_status() argument
Ddm-stats.c480 char *result, unsigned int maxlen) in dm_stats_list() argument
846 bool clear, char *result, unsigned int maxlen) in dm_stats_print() argument
911 if (unlikely(sz + 1 >= maxlen)) in dm_stats_print()
994 char *result, unsigned int maxlen) in message_stats_create() argument
1090 snprintf(result, maxlen, "%d", INT_MAX); in message_stats_create()
1091 if (dm_message_test_buffer_overflow(result, maxlen)) { in message_stats_create()
1104 snprintf(result, maxlen, "%d", id); in message_stats_create()
1148 char *result, unsigned int maxlen) in message_stats_list() argument
1162 r = dm_stats_list(dm_get_stats(md), program, result, maxlen); in message_stats_list()
1171 char *result, unsigned int maxlen) in message_stats_print() argument
[all …]
Ddm-core.h337 static inline bool dm_message_test_buffer_overflow(char *result, unsigned int maxlen) in dm_message_test_buffer_overflow() argument
339 return !maxlen || strlen(result) + 1 >= maxlen; in dm_message_test_buffer_overflow()
Ddm-verity-fec.h75 char *result, unsigned int maxlen);
110 unsigned int maxlen) in verity_fec_status_table() argument
/drivers/base/firmware_loader/
Dfallback_table.c32 .maxlen = sizeof(unsigned int),
41 .maxlen = sizeof(unsigned int),
/drivers/media/rc/img-ir/
Dimg-ir-hw.c234 unsigned int minlen, maxlen, ft_min; in img_ir_free_timing() local
241 if (timing->maxlen < 48) in img_ir_free_timing()
242 maxlen = (timing->maxlen + 1) & -2; in img_ir_free_timing()
244 maxlen = 48; in img_ir_free_timing()
249 return (maxlen << IMG_IR_MAXLEN_SHIFT) | in img_ir_free_timing()
263 unsigned int minlen, maxlen, newminlen, newmaxlen; in img_ir_free_timing_dynamic() local
267 newmaxlen = (filter->maxlen + 1) & -2; in img_ir_free_timing_dynamic()
270 maxlen = (st_ft & IMG_IR_MAXLEN) >> IMG_IR_MAXLEN_SHIFT; in img_ir_free_timing_dynamic()
276 if (newmaxlen < maxlen) { in img_ir_free_timing_dynamic()
486 filter.maxlen = ~0; in img_ir_set_filter()
Dimg-ir-sanyo.c105 .maxlen = 42,
119 .maxlen = 0,
Dimg-ir-sony.c117 out->maxlen = len; in img_ir_sony_filter()
154 .maxlen = 20,
Dimg-ir-nec.c153 .maxlen = 32,
167 .maxlen = 0,
Dimg-ir-hw.h83 u8 maxlen; member
112 u8 maxlen; member
/drivers/macintosh/
Dmac_hid.c221 .maxlen = sizeof(int),
228 .maxlen = sizeof(int),
235 .maxlen = sizeof(int),
/drivers/firmware/efi/libstub/
Dvsprintf.c243 size_t utf16s_utf8nlen(const u16 *s16, size_t maxlen) in utf16s_utf8nlen() argument
247 for (len = 0; len < maxlen && *s16; len += clen) { in utf16s_utf8nlen()
252 if (len + clen > maxlen) in utf16s_utf8nlen()
261 if (len + clen == maxlen) in utf16s_utf8nlen()
/drivers/staging/rtl8712/
Dhal_init.c160 u32 maxlen = 0; /* for compare usage */ in rtl8712_dl_fw() local
177 maxlen = (fwhdr.img_IMEM_size > fwhdr.img_SRAM_size) ? in rtl8712_dl_fw()
179 maxlen += txdscp_sz; in rtl8712_dl_fw()
180 tmpchar = kmalloc(maxlen + FWBUFF_ALIGN_SZ, GFP_KERNEL); in rtl8712_dl_fw()

1234567