| /OK3568_Linux_fs/kernel/sound/usb/line6/ |
| H A D | midibuf.c | 19 static const int length[] = { 3, 3, 3, 3, 2, 2, 3 }; in midibuf_message_length() local 21 message_length = length[(code >> 4) - 8]; in midibuf_message_length() 28 static const int length[] = { -1, 2, -1, 2, -1, -1, 1, 1, 1, 1, in midibuf_message_length() local 31 message_length = length[code & 0x0f]; in midibuf_message_length() 85 int length) in line6_midibuf_write() argument 91 if (midibuf_is_full(this) || (length <= 0)) in line6_midibuf_write() 95 if (data[length - 1] == 0xfe) { in line6_midibuf_write() 96 --length; in line6_midibuf_write() 102 if (length > bytes_free) in line6_midibuf_write() 103 length = bytes_free; in line6_midibuf_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/acpi/acpica/ |
| H A D | exstorob.c | 33 u32 length; in acpi_ex_store_buffer_to_buffer() local 47 length = source_desc->buffer.length; in acpi_ex_store_buffer_to_buffer() 53 if ((target_desc->buffer.length == 0) || in acpi_ex_store_buffer_to_buffer() 55 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer() 60 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer() 65 if (length <= target_desc->buffer.length) { in acpi_ex_store_buffer_to_buffer() 70 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer() 71 memcpy(target_desc->buffer.pointer, buffer, length); in acpi_ex_store_buffer_to_buffer() 92 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer() 99 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer() [all …]
|
| H A D | utids.c | 40 u32 length; in acpi_ut_execute_HID() local 55 length = ACPI_EISAID_STRING_SIZE; in acpi_ut_execute_HID() 57 length = obj_desc->string.length + 1; in acpi_ut_execute_HID() 64 (acpi_size)length); in acpi_ut_execute_HID() 83 hid->length = length; in acpi_ut_execute_HID() 118 u32 length; in acpi_ut_execute_UID() local 133 length = ACPI_MAX64_DECIMAL_DIGITS + 1; in acpi_ut_execute_UID() 135 length = obj_desc->string.length + 1; in acpi_ut_execute_UID() 142 (acpi_size)length); in acpi_ut_execute_UID() 161 uid->length = length; in acpi_ut_execute_UID() [all …]
|
| /OK3568_Linux_fs/external/recovery/minzip/ |
| H A D | SysUtil.c | 32 static void* sysCreateAnonShmem(size_t length) in sysCreateAnonShmem() argument 36 ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, in sysCreateAnonShmem() 39 LOGW("mmap(%d, RW, SHARED|ANON) failed: %s\n", (int) length, in sysCreateAnonShmem() 50 size_t length; in getFileStartAndLength() local 64 length = end - start; in getFileStartAndLength() 65 if (length == 0) { in getFileStartAndLength() 71 *length_ = length; in getFileStartAndLength() 86 size_t length, actual; in sysLoadFileInShmem() local 91 if (getFileStartAndLength(fd, &start, &length) < 0) in sysLoadFileInShmem() 94 memPtr = sysCreateAnonShmem(length); in sysLoadFileInShmem() [all …]
|
| /OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/minzip/ |
| H A D | SysUtil.c | 32 static void* sysCreateAnonShmem(size_t length) in sysCreateAnonShmem() argument 36 ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, in sysCreateAnonShmem() 39 LOGW("mmap(%d, RW, SHARED|ANON) failed: %s\n", (int) length, in sysCreateAnonShmem() 50 size_t length; in getFileStartAndLength() local 64 length = end - start; in getFileStartAndLength() 65 if (length == 0) { in getFileStartAndLength() 71 *length_ = length; in getFileStartAndLength() 86 size_t length, actual; in sysLoadFileInShmem() local 91 if (getFileStartAndLength(fd, &start, &length) < 0) in sysLoadFileInShmem() 94 memPtr = sysCreateAnonShmem(length); in sysLoadFileInShmem() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_ctrl.c | 23 unsigned int length, unsigned int offset, in nfp_net_tls_parse_crypto_ops() argument 30 if (length < 32) { in nfp_net_tls_parse_crypto_ops() 33 length, offset); in nfp_net_tls_parse_crypto_ops() 58 unsigned int length, offset; in nfp_net_tlv_caps_parse() local 61 length = FIELD_GET(NFP_NET_CFG_TLV_HEADER_LENGTH, hdr); in nfp_net_tlv_caps_parse() 67 if (length % NFP_NET_CFG_TLV_LENGTH_INC) { in nfp_net_tlv_caps_parse() 69 NFP_NET_CFG_TLV_LENGTH_INC, offset, length); in nfp_net_tlv_caps_parse() 72 if (data + length > end) { in nfp_net_tlv_caps_parse() 74 offset, length); in nfp_net_tlv_caps_parse() 85 if (!length) in nfp_net_tlv_caps_parse() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/mmp/fb/ |
| H A D | mmpfb.c | 25 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt() 26 var->green.length == 4 && var->blue.length == 4) { in var_to_pixfmt() 36 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt() 37 var->green.length == 2 && var->blue.length == 2) { in var_to_pixfmt() 47 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt() 48 var->green.length == 16 && var->blue.length == 16) { in var_to_pixfmt() 60 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt() 61 var->green.length <= 6 && var->blue.length <= 5) { in var_to_pixfmt() 62 if (var->transp.length == 0) { in var_to_pixfmt() 73 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt() [all …]
|
| /OK3568_Linux_fs/external/xserver/os/ |
| H A D | xdmcp.c | 150 unsigned length); 154 static void recv_accept_msg(unsigned length); 156 static void recv_decline_msg(unsigned length); 160 static void recv_refuse_msg(unsigned length); 162 static void recv_failed_msg(unsigned length); 166 static void recv_alive_msg(unsigned length ); 204 XdmcpRegisterManufacturerDisplayID(const char *name, int length) in XdmcpRegisterManufacturerDisplayID() argument 209 if (!XdmcpAllocARRAY8(&ManufacturerDisplayID, length)) in XdmcpRegisterManufacturerDisplayID() 211 for (i = 0; i < length; i++) in XdmcpRegisterManufacturerDisplayID() 392 AuthenticationNames.length + 1) && in XdmcpRegisterAuthentication() [all …]
|
| /OK3568_Linux_fs/kernel/security/selinux/ |
| H A D | selinuxfs.c | 129 ssize_t length; in sel_read_enforce() local 131 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce() 133 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce() 144 ssize_t length; in sel_write_enforce() local 158 length = -EINVAL; in sel_write_enforce() 166 length = avc_has_perm(&selinux_state, in sel_write_enforce() 170 if (length) in sel_write_enforce() 186 length = count; in sel_write_enforce() 189 return length; in sel_write_enforce() 207 ssize_t length; in sel_read_handle_unknown() local [all …]
|
| /OK3568_Linux_fs/kernel/fs/ntfs/ |
| H A D | runlist.c | 151 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable() 155 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable() 177 dst->length += src->length; in __ntfs_rl_merge() 238 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append() 242 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_append() 292 merged_length = dst[loc - 1].length; in ntfs_rl_insert() 294 merged_length += src->length; in ntfs_rl_insert() 325 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_insert() 328 dst[marker].length = dst[marker + 1].vcn - dst[marker].vcn; in ntfs_rl_insert() 333 dst[loc].vcn = dst[loc - 1].vcn + dst[loc - 1].length; in ntfs_rl_insert() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/sw/rxe/ |
| H A D | rxe_mr.c | 27 int mem_check_range(struct rxe_mem *mem, u64 iova, size_t length) in mem_check_range() argument 36 length > mem->length || in mem_check_range() 37 iova > mem->iova + mem->length - length) in mem_check_range() 127 u64 length, u64 iova, int access, struct ib_udata *udata, in rxe_mem_init_user() argument 138 umem = ib_umem_get(pd->ibpd.device, start, length, access); in rxe_mem_init_user() 163 if (length > 0) { in rxe_mem_init_user() 192 mem->length = length; in rxe_mem_init_user() 240 u64 length; in lookup_iova() local 251 length = mem->map[map_index]->buf[buf_index].size; in lookup_iova() 253 while (offset >= length) { in lookup_iova() [all …]
|
| H A D | rxe_opcode.c | 106 .length = RXE_BTH_BYTES, 116 .length = RXE_BTH_BYTES, 126 .length = RXE_BTH_BYTES, 136 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, 149 .length = RXE_BTH_BYTES, 160 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, 172 .length = RXE_BTH_BYTES + RXE_RETH_BYTES, 184 .length = RXE_BTH_BYTES, 194 .length = RXE_BTH_BYTES, 205 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/arcnet/ |
| H A D | arc-rawmode.c | 40 struct archdr *pkthdr, int length) in rx() argument 47 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx() 49 if (length > MTU) in rx() 50 ofs = 512 - length; in rx() 52 ofs = 256 - length; in rx() 54 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 59 skb_put(skb, length + ARC_HDR_SIZE); in rx() 69 if (length > sizeof(pkt->soft)) in rx() 72 length - sizeof(pkt->soft)); in rx() 113 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument [all …]
|
| H A D | capmode.c | 43 struct archdr *pkthdr, int length) in rx() argument 52 length); in rx() 54 if (length >= MinTU) in rx() 55 ofs = 512 - length; in rx() 57 ofs = 256 - length; in rx() 59 skb = alloc_skb(length + ARC_HDR_SIZE + sizeof(int), GFP_ATOMIC); in rx() 64 skb_put(skb, length + ARC_HDR_SIZE + sizeof(int)); in rx() 82 if (length > sizeof(pkt->soft)) in rx() 86 length - sizeof(pkt->soft)); in rx() 132 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument [all …]
|
| H A D | rfc1051.c | 41 struct archdr *pkthdr, int length); 44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 122 struct archdr *pkthdr, int length) in rx() argument 129 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx() 131 if (length >= MinTU) in rx() 132 ofs = 512 - length; in rx() 134 ofs = 256 - length; in rx() 136 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 141 skb_put(skb, length + ARC_HDR_SIZE); in rx() 148 if (length > sizeof(pkt->soft)) in rx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/ |
| H A D | 68328fb.c | 116 u_long length; in get_line_length() local 118 length = xres_virtual * bpp; in get_line_length() 119 length = (length + 31) & ~31; in get_line_length() 120 length >>= 3; in get_line_length() 121 return (length); in get_line_length() 193 var->red.length = 1; in mc68x328fb_check_var() 195 var->green.length = 1; in mc68x328fb_check_var() 197 var->blue.length = 1; in mc68x328fb_check_var() 199 var->transp.length = 0; in mc68x328fb_check_var() 203 var->red.length = 8; in mc68x328fb_check_var() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | relay.h | 187 size_t length); 204 size_t length) in relay_write() argument 211 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write() 212 length = relay_switch_subbuf(buf, length); in relay_write() 213 memcpy(buf->data + buf->offset, data, length); in relay_write() 214 buf->offset += length; in relay_write() 232 size_t length) in __relay_write() argument 237 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) in __relay_write() 238 length = relay_switch_subbuf(buf, length); in __relay_write() 239 memcpy(buf->data + buf->offset, data, length); in __relay_write() [all …]
|
| /OK3568_Linux_fs/kernel/fs/squashfs/ |
| H A D | block.c | 76 static int squashfs_bio_read(struct super_block *sb, u64 index, int length, in squashfs_bio_read() argument 82 const u64 read_end = round_up(index + length, msblk->devblksize); in squashfs_bio_read() 142 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument 151 if (length) { in squashfs_read_data() 155 compressed = SQUASHFS_COMPRESSED_BLOCK(length); in squashfs_read_data() 156 length = SQUASHFS_COMPRESSED_SIZE_BLOCK(length); in squashfs_read_data() 158 index, compressed ? "" : "un", length, output->length); in squashfs_read_data() 181 length = data[offset]; in squashfs_read_data() 183 length |= data[offset + 1] << 8; in squashfs_read_data() 190 length |= data[0] << 8; in squashfs_read_data() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/dmx/glxProxy/ |
| H A D | glxcmdsswap.c | 59 __GLX_SWAP_SHORT(&req->length); in __glXSwapCreateContext() 75 __GLX_SWAP_SHORT(&req->length); in __glXSwapCreateNewContext() 91 __GLX_SWAP_SHORT(&req->length); in __glXSwapCreateContextWithConfigSGIX() 107 __GLX_SWAP_SHORT(&req->length); in __glXSwapQueryMaxSwapBarriersSGIX() 120 __GLX_SWAP_SHORT(&req->length); in __glXSwapBindSwapBarrierSGIX() 134 __GLX_SWAP_SHORT(&req->length); in __glXSwapJoinSwapGroupSGIX() 148 __GLX_SWAP_SHORT(&req->length); in __glXSwapDestroyContext() 161 __GLX_SWAP_SHORT(&req->length); in __glXSwapMakeCurrent() 176 __GLX_SWAP_SHORT(&req->length); in __glXSwapMakeContextCurrent() 192 __GLX_SWAP_SHORT(&req->length); in __glXSwapMakeCurrentReadSGI() [all …]
|
| H A D | glxvendor.c | 68 req->length = (SIZEOF(x##name##Req))>>2;\ 78 req->length = (SIZEOF(x/**/name/**/Req))>>2;\ 91 __GLX_SWAP_INT(&reply->length); in SendSwappedReply() 170 buf_size = (req->length << 2) - sz_xGLXVendorPrivateReq; in __glXVForwardSingleReq() 183 be_req->length = req->length; in __glXVForwardSingleReq() 216 buf_size = (req->length << 2) - sz_xGLXVendorPrivateReq; in __glXVForwardPipe0WithReply() 228 be_req->length = req->length; in __glXVForwardPipe0WithReply() 239 be_buf_size = be_reply.length << 2; in __glXVForwardPipe0WithReply() 247 _XEatDataWords(dpy, be_reply.length); in __glXVForwardPipe0WithReply() 310 buf_size = (req->length << 2) - sz_xGLXVendorPrivateReq; in __glXVForwardAllWithReply() [all …]
|
| /OK3568_Linux_fs/kernel/include/rdma/ |
| H A D | rdmavt_mr.h | 21 size_t length; member 35 size_t length; member 71 u32 length; /* remaining length of the segment */ member 102 static inline u32 rvt_get_sge_length(struct rvt_sge *sge, u32 length) in rvt_get_sge_length() argument 104 u32 len = sge->length; in rvt_get_sge_length() 106 if (len > length) in rvt_get_sge_length() 107 len = length; in rvt_get_sge_length() 114 static inline void rvt_update_sge(struct rvt_sge_state *ss, u32 length, in rvt_update_sge() argument 119 sge->vaddr += length; in rvt_update_sge() 120 sge->length -= length; in rvt_update_sge() [all …]
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | lz4.c | 111 size_t length; in LZ4_decompress_generic() local 116 if ((length=(token>>ML_BITS)) == RUN_MASK) in LZ4_decompress_generic() 122 length += s; in LZ4_decompress_generic() 125 …if ((safeDecode) && unlikely((size_t)(op+length)<(size_t)(op))) goto _output_error; /* overflow … in LZ4_decompress_generic() 126 …if ((safeDecode) && unlikely((size_t)(ip+length)<(size_t)(ip))) goto _output_error; /* overflow … in LZ4_decompress_generic() 130 cpy = op+length; in LZ4_decompress_generic() 131 …if (((endOnInput) && ((cpy>(partialDecoding?oexit:oend-MFLIMIT)) || (ip+length>iend-(2+1+LASTLITER… in LZ4_decompress_generic() 137 …if ((endOnInput) && (ip+length > iend)) goto _output_error; /* Error : read attempt beyond end o… in LZ4_decompress_generic() 142 …if ((endOnInput) && ((ip+length != iend) || (cpy > oend))) goto _output_error; /* Error : input … in LZ4_decompress_generic() 144 memcpy(op, ip, length); in LZ4_decompress_generic() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/ |
| H A D | hdmi.c | 63 frame->length = HDMI_AVI_INFOFRAME_SIZE; in hdmi_avi_infoframe_init() 71 frame->length != HDMI_AVI_INFOFRAME_SIZE) in hdmi_avi_infoframe_check_only() 113 size_t length; in hdmi_avi_infoframe_pack_only() local 120 length = HDMI_INFOFRAME_HEADER_SIZE + frame->length; in hdmi_avi_infoframe_pack_only() 122 if (size < length) in hdmi_avi_infoframe_pack_only() 129 ptr[2] = frame->length; in hdmi_avi_infoframe_pack_only() 177 hdmi_infoframe_set_checksum(buffer, length); in hdmi_avi_infoframe_pack_only() 179 return length; in hdmi_avi_infoframe_pack_only() 228 frame->length = HDMI_SPD_INFOFRAME_SIZE; in hdmi_spd_infoframe_init() 241 frame->length != HDMI_SPD_INFOFRAME_SIZE) in hdmi_spd_infoframe_check_only() [all …]
|
| /OK3568_Linux_fs/kernel/net/sunrpc/auth_gss/ |
| H A D | gss_generic_token.c | 76 der_length_size( int length) in der_length_size() argument 78 if (length < (1<<7)) in der_length_size() 80 else if (length < (1<<8)) in der_length_size() 86 else if (length < (1<<16)) in der_length_size() 88 else if (length < (1<<24)) in der_length_size() 96 der_write_length(unsigned char **buf, int length) in der_write_length() argument 98 if (length < (1<<7)) { in der_write_length() 99 *(*buf)++ = (unsigned char) length; in der_write_length() 101 *(*buf)++ = (unsigned char) (der_length_size(length)+127); in der_write_length() 103 if (length >= (1<<24)) in der_write_length() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | fsmc_nand.c | 50 {.offset = 15, .length = 3}, 51 {.offset = 31, .length = 3}, 52 {.offset = 47, .length = 3}, 53 {.offset = 63, .length = 3}, 54 {.offset = 79, .length = 3}, 55 {.offset = 95, .length = 3}, 56 {.offset = 111, .length = 3}, 57 {.offset = 127, .length = 1} 86 {.offset = 15, .length = 3}, 87 {.offset = 31, .length = 3}, [all …]
|