/linux-4.1.27/net/sunrpc/xprtrdma/ |
H A D | rpc_rdma.c | 306 int i, npages, curlen; rpcrdma_inline_pullup() local 314 curlen = rqst->rq_svec[0].iov_len; rpcrdma_inline_pullup() 315 destp += curlen; rpcrdma_inline_pullup() 320 pad -= (curlen + 36/*sizeof(struct rpcrdma_msg_padded)*/); rpcrdma_inline_pullup() 321 if (pad < 0 || rqst->rq_slen - curlen < RPCRDMA_INLINE_PAD_THRESH) rpcrdma_inline_pullup() 325 __func__, pad, destp, rqst->rq_slen, curlen); rpcrdma_inline_pullup() 330 curlen = rqst->rq_snd_buf.tail[0].iov_len; rpcrdma_inline_pullup() 333 rqst->rq_snd_buf.tail[0].iov_base, curlen); rpcrdma_inline_pullup() 334 r_xprt->rx_stats.pullup_copy_count += curlen; rpcrdma_inline_pullup() 337 __func__, destp + copy_len, curlen); rpcrdma_inline_pullup() 338 rqst->rq_svec[0].iov_len += curlen; rpcrdma_inline_pullup() 347 curlen = PAGE_SIZE - page_base; rpcrdma_inline_pullup() 348 if (curlen > copy_len) rpcrdma_inline_pullup() 349 curlen = copy_len; rpcrdma_inline_pullup() 350 dprintk("RPC: %s: page %d destp 0x%p len %d curlen %d\n", rpcrdma_inline_pullup() 351 __func__, i, destp, copy_len, curlen); rpcrdma_inline_pullup() 353 memcpy(destp, srcp+page_base, curlen); rpcrdma_inline_pullup() 355 rqst->rq_svec[0].iov_len += curlen; rpcrdma_inline_pullup() 356 destp += curlen; rpcrdma_inline_pullup() 357 copy_len -= curlen; rpcrdma_inline_pullup() 613 int i, npages, curlen, olen; rpcrdma_inline_fixup() local 618 curlen = rqst->rq_rcv_buf.head[0].iov_len; rpcrdma_inline_fixup() 619 if (curlen > copy_len) { /* write chunk header fixup */ rpcrdma_inline_fixup() 620 curlen = copy_len; rpcrdma_inline_fixup() 621 rqst->rq_rcv_buf.head[0].iov_len = curlen; rpcrdma_inline_fixup() 625 __func__, srcp, copy_len, curlen); rpcrdma_inline_fixup() 629 srcp += curlen; rpcrdma_inline_fixup() 630 copy_len -= curlen; rpcrdma_inline_fixup() 643 curlen = PAGE_SIZE - page_base; rpcrdma_inline_fixup() 644 if (curlen > copy_len) rpcrdma_inline_fixup() 645 curlen = copy_len; rpcrdma_inline_fixup() 647 " srcp 0x%p len %d curlen %d\n", rpcrdma_inline_fixup() 648 __func__, i, srcp, copy_len, curlen); rpcrdma_inline_fixup() 650 memcpy(destp + page_base, srcp, curlen); rpcrdma_inline_fixup() 653 srcp += curlen; rpcrdma_inline_fixup() 654 copy_len -= curlen; rpcrdma_inline_fixup() 662 curlen = copy_len; rpcrdma_inline_fixup() 663 if (curlen > rqst->rq_rcv_buf.tail[0].iov_len) rpcrdma_inline_fixup() 664 curlen = rqst->rq_rcv_buf.tail[0].iov_len; rpcrdma_inline_fixup() 666 memmove(rqst->rq_rcv_buf.tail[0].iov_base, srcp, curlen); rpcrdma_inline_fixup() 667 dprintk("RPC: %s: tail srcp 0x%p len %d curlen %d\n", rpcrdma_inline_fixup() 668 __func__, srcp, copy_len, curlen); rpcrdma_inline_fixup() 669 rqst->rq_rcv_buf.tail[0].iov_len = curlen; rpcrdma_inline_fixup() 670 copy_len -= curlen; ++i; rpcrdma_inline_fixup()
|
/linux-4.1.27/arch/mips/txx9/rbtx4939/ |
H A D | setup.c | 331 ssize_t curlen; rbtx4939_flash_copy_from() local 338 curlen = min_t(unsigned long, len, rbtx4939_flash_copy_from() 343 curlen); rbtx4939_flash_copy_from() 344 len -= curlen; rbtx4939_flash_copy_from() 345 from += curlen; rbtx4939_flash_copy_from() 346 to += curlen; rbtx4939_flash_copy_from() 354 curlen = min_t(unsigned long, len, rbtx4939_flash_copy_from() 356 memcpy(to, (void *)(from ^ 0x400000), curlen); rbtx4939_flash_copy_from() 357 len -= curlen; rbtx4939_flash_copy_from() 358 from += curlen; rbtx4939_flash_copy_from() 359 to += curlen; rbtx4939_flash_copy_from()
|
/linux-4.1.27/lib/zlib_deflate/ |
H A D | deftree.c | 634 int curlen; /* length of current code */ scan_tree() local 644 curlen = nextlen; nextlen = tree[n+1].Len; scan_tree() 645 if (++count < max_count && curlen == nextlen) { scan_tree() 648 s->bl_tree[curlen].Freq += count; scan_tree() 649 } else if (curlen != 0) { scan_tree() 650 if (curlen != prevlen) s->bl_tree[curlen].Freq++; scan_tree() 657 count = 0; prevlen = curlen; scan_tree() 660 } else if (curlen == nextlen) { scan_tree() 680 int curlen; /* length of current code */ send_tree() local 690 curlen = nextlen; nextlen = tree[n+1].Len; send_tree() 691 if (++count < max_count && curlen == nextlen) { send_tree() 694 do { send_code(s, curlen, s->bl_tree); } while (--count != 0); send_tree() 696 } else if (curlen != 0) { send_tree() 697 if (curlen != prevlen) { send_tree() 698 send_code(s, curlen, s->bl_tree); count--; send_tree() 709 count = 0; prevlen = curlen; send_tree() 712 } else if (curlen == nextlen) { send_tree()
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_dp_mst_topology.c | 360 memcpy(&msg->msg[msg->curlen], msg->chunk, msg->curchunk_len - 1); drm_dp_sideband_msg_build() 361 msg->curlen += msg->curchunk_len - 1; drm_dp_sideband_msg_build() 375 if (idx > raw->curlen) drm_dp_sideband_parse_link_address() 385 if (idx > raw->curlen) drm_dp_sideband_parse_link_address() 392 if (idx > raw->curlen) drm_dp_sideband_parse_link_address() 397 if (idx > raw->curlen) drm_dp_sideband_parse_link_address() 401 if (idx > raw->curlen) drm_dp_sideband_parse_link_address() 408 if (idx > raw->curlen) drm_dp_sideband_parse_link_address() 414 DRM_DEBUG_KMS("link address reply parse length fail %d %d\n", idx, raw->curlen); drm_dp_sideband_parse_link_address() 424 if (idx > raw->curlen) drm_dp_sideband_parse_remote_dpcd_read() 427 if (idx > raw->curlen) drm_dp_sideband_parse_remote_dpcd_read() 433 DRM_DEBUG_KMS("link address reply parse length fail %d %d\n", idx, raw->curlen); drm_dp_sideband_parse_remote_dpcd_read() 443 if (idx > raw->curlen) drm_dp_sideband_parse_remote_dpcd_write() 447 DRM_DEBUG_KMS("parse length fail %d %d\n", idx, raw->curlen); drm_dp_sideband_parse_remote_dpcd_write() 458 if (idx > raw->curlen) drm_dp_sideband_parse_remote_i2c_read_ack() 466 DRM_DEBUG_KMS("remote i2c reply parse length fail %d %d\n", idx, raw->curlen); drm_dp_sideband_parse_remote_i2c_read_ack() 476 if (idx > raw->curlen) drm_dp_sideband_parse_enum_path_resources_ack() 480 if (idx > raw->curlen) drm_dp_sideband_parse_enum_path_resources_ack() 484 if (idx > raw->curlen) drm_dp_sideband_parse_enum_path_resources_ack() 488 DRM_DEBUG_KMS("enum resource parse length fail %d %d\n", idx, raw->curlen); drm_dp_sideband_parse_enum_path_resources_ack() 498 if (idx > raw->curlen) drm_dp_sideband_parse_allocate_payload_ack() 502 if (idx > raw->curlen) drm_dp_sideband_parse_allocate_payload_ack() 506 if (idx > raw->curlen) drm_dp_sideband_parse_allocate_payload_ack() 510 DRM_DEBUG_KMS("allocate payload parse length fail %d %d\n", idx, raw->curlen); drm_dp_sideband_parse_allocate_payload_ack() 520 if (idx > raw->curlen) drm_dp_sideband_parse_query_payload_ack() 524 if (idx > raw->curlen) drm_dp_sideband_parse_query_payload_ack() 528 DRM_DEBUG_KMS("query payload parse length fail %d %d\n", idx, raw->curlen); drm_dp_sideband_parse_query_payload_ack() 574 if (idx > raw->curlen) drm_dp_sideband_parse_connection_status_notify() 579 if (idx > raw->curlen) drm_dp_sideband_parse_connection_status_notify() 590 DRM_DEBUG_KMS("connection status reply parse length fail %d %d\n", idx, raw->curlen); drm_dp_sideband_parse_connection_status_notify() 601 if (idx > raw->curlen) drm_dp_sideband_parse_resource_status_notify() 606 if (idx > raw->curlen) drm_dp_sideband_parse_resource_status_notify() 613 DRM_DEBUG_KMS("resource status reply parse length fail %d %d\n", idx, raw->curlen); drm_dp_sideband_parse_resource_status_notify()
|
/linux-4.1.27/arch/ia64/lib/ |
H A D | memcpy_mck.S | 271 #define curlen r24 define 296 and curlen=15,in2 // copy length after iteration 318 cmp.le p6,p7=8,curlen; // have at least 8 byte remaining? 393 (p6) add curlen=-8,curlen // update length 398 mov in2=curlen // remaining length
|
/linux-4.1.27/drivers/isdn/gigaset/ |
H A D | ser-gigaset.c | 136 cs->cmdbytes -= cs->curlen; send_cb() 141 cs->curlen = cb->len; send_cb() 144 cs->curlen = 0; send_cb() 220 cs->cmdbytes = cs->curlen = 0; flush_send_queue() 258 cs->curlen = cb->len; gigaset_write_cmd()
|
H A D | usb-gigaset.c | 437 cs->cmdbytes -= cs->curlen; send_cb() 439 cs->curlen, cs->cmdbytes); send_cb() 443 cs->curlen = cs->cmdbuf->len; send_cb() 446 cs->curlen = 0; send_cb() 507 cs->curlen = cb->len; gigaset_write_cmd()
|
H A D | common.c | 736 cs->curlen = 0; gigaset_initcs() 845 cs->curlen = 0; cleanup_cs()
|
H A D | bas-gigaset.c | 1748 cs->cmdbytes -= cs->curlen; complete_cb() 1750 cs->curlen, cs->cmdbytes); complete_cb() 1754 cs->curlen = cs->cmdbuf->len; complete_cb() 1758 cs->curlen = 0; complete_cb() 2019 cs->curlen = cb->len; gigaset_write_cmd()
|
H A D | gigaset.h | 437 unsigned curlen, cmdbytes; member in struct:cardstate
|
/linux-4.1.27/sound/pci/ |
H A D | maestro3.c | 707 int curlen; member in struct:m3_list 992 list->mem_addr + list->curlen, snd_m3_add_list() 994 return list->curlen++; snd_m3_add_list() 1000 int lastindex = list->curlen - 1; snd_m3_remove_list() 1014 list->curlen--; snd_m3_remove_list() 2162 chip->mixer_list.curlen = 0; snd_m3_assp_init() 2165 chip->adc1_list.curlen = 0; snd_m3_assp_init() 2168 chip->dma_list.curlen = 0; snd_m3_assp_init() 2171 chip->msrc_list.curlen = 0; snd_m3_assp_init()
|
/linux-4.1.27/drivers/staging/rtl8723au/include/ |
H A D | rtw_security.h | 162 u32 state[8], curlen; member in struct:sha256_state
|
/linux-4.1.27/drivers/staging/rtl8188eu/include/ |
H A D | rtw_security.h | 174 u32 state[8], curlen; member in struct:sha256_state
|
/linux-4.1.27/include/drm/ |
H A D | drm_dp_mst_helper.h | 211 u8 curlen; /* total length of the msg */ member in struct:drm_dp_sideband_msg_rx
|