/linux/kernel/bpf/ |
H A D | stream.c | 300 int rem_len = len, cons_len, ret = 0; in bpf_stream_read() local 306 while (rem_len) { in bpf_stream_read() 307 int pos = len - rem_len; in bpf_stream_read() 320 cont = bpf_stream_consume_elem(elem, &rem_len) == false; in bpf_stream_read() 339 return ret ? ret : len - rem_len; in bpf_stream_read()
|
/linux/drivers/platform/mellanox/ |
H A D | mlxbf-tmfifo.c | 67 * @rem_len: remaining length of the pending packet 86 int rem_len; member 725 vring->rem_len = vring->pkt_len; in mlxbf_tmfifo_rxtx_header() 777 if (len > vring->rem_len) in mlxbf_tmfifo_rxtx_one_desc() 778 len = vring->rem_len; in mlxbf_tmfifo_rxtx_one_desc() 789 vring->rem_len -= len; in mlxbf_tmfifo_rxtx_one_desc() 792 if (!IS_VRING_DROP(vring) && vring->rem_len > 0 && in mlxbf_tmfifo_rxtx_one_desc() 856 vring->rem_padding = round_up(vring->rem_len, sizeof(u64)); in mlxbf_tmfifo_check_tx_timeout() 859 vring->rem_len = 0; in mlxbf_tmfifo_check_tx_timeout()
|
/linux/net/ceph/ |
H A D | messenger_v2.c | 393 int rem_len; in head_onwire_len() local 400 rem_len = ctrl_len - CEPH_PREAMBLE_INLINE_LEN; in head_onwire_len() 401 head_len += padded_len(rem_len) + CEPH_GCM_TAG_LEN; in head_onwire_len() 1071 int rem_len = ctrl_len - CEPH_PREAMBLE_INLINE_LEN; in decrypt_control_remainder() local 1072 int pt_len = padding_len(rem_len) + CEPH_GCM_TAG_LEN; in decrypt_control_remainder() 1075 WARN_ON(con->v2.in_kvecs[0].iov_len != rem_len); in decrypt_control_remainder() 1079 sg_set_buf(&sgs[0], con->v2.in_kvecs[0].iov_base, rem_len); in decrypt_control_remainder() 1083 padded_len(rem_len) + CEPH_GCM_TAG_LEN); in decrypt_control_remainder() 1291 int rem_len = ctrl_len - CEPH_PREAMBLE_INLINE_LEN; in prepare_head_secure_big() local 1293 void *rem_tag = rem + padded_len(rem_len); in prepare_head_secure_big() 1843 int rem_len = ctrl_len - CEPH_PREAMBLE_INLINE_LEN; prepare_read_control_remainder() local [all...] |
/linux/drivers/usb/typec/ucsi/ |
H A D | ucsi_ccg.c | 255 u32 rlen, rem_len = len, max_read_len = len; in ccg_read() local 263 while (rem_len > 0) { in ccg_read() 264 msgs[1].buf = &data[len - rem_len]; in ccg_read() 265 rlen = min_t(u16, rem_len, max_read_len); in ccg_read() 275 rem_len -= rlen; in ccg_read()
|
/linux/tools/testing/selftests/net/ovpn/ |
H A D | ovpn-cli.c | 1178 int len, rem_len, fd, ret, rcv_len; in ovpn_rt_send() local 1266 rem_len = len - sizeof(*h); in ovpn_rt_send() 1268 if (rem_len < 0 || len > rcv_len) { in ovpn_rt_send() 1288 if (rem_len < (int)sizeof(struct nlmsgerr)) { in ovpn_rt_send()
|
/linux/drivers/scsi/fnic/ |
H A D | fdls_disc.c | 3170 int rem_len = len; in fdls_process_gpn_ft_tgt_list() local 3183 while (rem_len > 0) { in fdls_process_gpn_ft_tgt_list() 3195 rem_len -= sizeof(struct fc_gpn_ft_rsp_iu); in fdls_process_gpn_ft_tgt_list() 3232 rem_len -= sizeof(struct fc_gpn_ft_rsp_iu); in fdls_process_gpn_ft_tgt_list() 3234 if (rem_len <= 0) { in fdls_process_gpn_ft_tgt_list() 3237 len, rem_len); in fdls_process_gpn_ft_tgt_list()
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | dp_rx.c | 1915 int space_extra, rem_len, buf_len; in ath12k_dp_rx_msdu_coalesce() local 1963 rem_len = msdu_len - buf_first_len; in ath12k_dp_rx_msdu_coalesce() 1964 while ((skb = __skb_dequeue(msdu_list)) != NULL && rem_len > 0) { in ath12k_dp_rx_msdu_coalesce() 1970 buf_len = rem_len; in ath12k_dp_rx_msdu_coalesce() 1984 rem_len -= buf_len; in ath12k_dp_rx_msdu_coalesce()
|
H A D | mac.c | 1507 u16 rem_len; in ath12k_mac_set_arvif_ies() local 1512 rem_len = tail - start; in ath12k_mac_set_arvif_ies() 1517 if (cfg80211_find_ie(WLAN_EID_RSN, start, rem_len)) in ath12k_mac_set_arvif_ies() 1520 start, rem_len)) in ath12k_mac_set_arvif_ies() 1523 ext_cap_ie = cfg80211_find_elem(WLAN_EID_EXT_CAPABILITY, start, rem_len); in ath12k_mac_set_arvif_ies() 1537 for_each_element_id(elem, WLAN_EID_MULTIPLE_BSSID, start, rem_len) { in ath12k_mac_set_arvif_ies()
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | dp_rx.c | 1764 int space_extra, rem_len, buf_len; in ath11k_dp_rx_msdu_coalesce() local 1811 rem_len = msdu_len - buf_first_len; in ath11k_dp_rx_msdu_coalesce() 1812 while ((skb = __skb_dequeue(msdu_list)) != NULL && rem_len > 0) { in ath11k_dp_rx_msdu_coalesce() 1817 buf_len = rem_len; in ath11k_dp_rx_msdu_coalesce() 1831 rem_len -= buf_len; in ath11k_dp_rx_msdu_coalesce()
|
/linux/drivers/scsi/ |
H A D | ipr.c | 2882 int cur_len, rc, rem_len, rem_page_len, max_dump_size; in ipr_sdt_copy() local 2909 rem_len = length - bytes_copied; in ipr_sdt_copy() 2911 cur_len = min(rem_len, rem_page_len); in ipr_sdt_copy()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt.c | 3595 size_t len, rem_len, total_len, max_bytes; in __bnxt_copy_ring() local 3606 rem_len = total_len; in __bnxt_copy_ring() 3608 for (i = start_idx; rem_len; i++, source_offset = 0) { in __bnxt_copy_ring() 3609 len = min((size_t)(rmem->page_size - source_offset), rem_len); in __bnxt_copy_ring() 3614 rem_len -= len; in __bnxt_copy_ring()
|