Home
last modified time | relevance | path

Searched refs:chunk_len (Results 1 – 25 of 32) sorted by relevance

12

/linux/scripts/dtc/
H A Dtreesource.c232 size_t chunk_len = (m->next ? m->next->offset : len) - m->offset; in write_propval() local
243 if (emit_type == TYPE_NONE || chunk_len == 0) in write_propval()
248 write_propval_int(f, p, chunk_len, 2); in write_propval()
261 if (chunk_len > 4) { in write_propval()
263 write_propval_int(f, p + 4, chunk_len - 4, 4); in write_propval()
266 write_propval_int(f, p, chunk_len, 4); in write_propval()
268 if (data_len > chunk_len) in write_propval()
272 write_propval_int(f, p, chunk_len, 8); in write_propval()
275 write_propval_string(f, p, chunk_len); in write_propval()
278 write_propval_int(f, p, chunk_len, 1); in write_propval()
[all …]
H A Dyamltree.c144 int chunk_len; in yaml_propval() local
150 chunk_len = type_marker_length(m) ? : len; in yaml_propval()
151 assert(chunk_len > 0); in yaml_propval()
152 len -= chunk_len; in yaml_propval()
156 yaml_propval_int(emitter, markers, data, m->offset, chunk_len, 2); in yaml_propval()
159 yaml_propval_int(emitter, markers, data, m->offset, chunk_len, 4); in yaml_propval()
162 yaml_propval_int(emitter, markers, data, m->offset, chunk_len, 8); in yaml_propval()
165 yaml_propval_string(emitter, data, chunk_len); in yaml_propval()
168 yaml_propval_int(emitter, markers, data, m->offset, chunk_len, 1); in yaml_propval()
/linux/drivers/net/wireless/ti/wlcore/
H A Dspi.c239 u32 chunk_len; in wl12xx_spi_raw_read() local
242 chunk_len = min_t(size_t, WSPI_MAX_CHUNK_SIZE, len); in wl12xx_spi_raw_read()
249 *cmd |= (chunk_len << WSPI_CMD_BYTE_LENGTH_OFFSET) & in wl12xx_spi_raw_read()
274 memset(buf, 0, chunk_len); in wl12xx_spi_raw_read()
282 t[0].len = chunk_len; in wl12xx_spi_raw_read()
289 addr += chunk_len; in wl12xx_spi_raw_read()
290 buf += chunk_len; in wl12xx_spi_raw_read()
291 len -= chunk_len; in wl12xx_spi_raw_read()
305 u32 chunk_len; in __wl12xx_spi_raw_write() local
320 chunk_len = min_t(size_t, WSPI_MAX_CHUNK_SIZE, len); in __wl12xx_spi_raw_write()
[all …]
/linux/drivers/nfc/nxp-nci/
H A Dfirmware.c93 size_t chunk_len; in nxp_nci_fw_send_chunk() local
101 chunk_len = info->max_payload - NXP_NCI_FW_HDR_LEN - NXP_NCI_FW_CRC_LEN; in nxp_nci_fw_send_chunk()
104 if (remaining_len > chunk_len) { in nxp_nci_fw_send_chunk()
107 chunk_len = remaining_len; in nxp_nci_fw_send_chunk()
111 header |= chunk_len & NXP_NCI_FW_FRAME_LEN_MASK; in nxp_nci_fw_send_chunk()
114 skb_put_data(skb, fw_info->data + fw_info->written, chunk_len); in nxp_nci_fw_send_chunk()
116 crc = nxp_nci_fw_crc(skb->data, chunk_len + NXP_NCI_FW_HDR_LEN); in nxp_nci_fw_send_chunk()
121 r = chunk_len; in nxp_nci_fw_send_chunk()
/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx.c403 int id, chunk_len; in stv06xx_pkt_scan() local
414 chunk_len = (data[2] << 8) | data[3]; in stv06xx_pkt_scan()
416 id, chunk_len); in stv06xx_pkt_scan()
421 if (len < chunk_len) { in stv06xx_pkt_scan()
438 int skip = (sd->to_skip < chunk_len) ? in stv06xx_pkt_scan()
439 sd->to_skip : chunk_len; in stv06xx_pkt_scan()
442 chunk_len -= skip; in stv06xx_pkt_scan()
447 data, chunk_len); in stv06xx_pkt_scan()
463 if (chunk_len) in stv06xx_pkt_scan()
476 if (chunk_len) in stv06xx_pkt_scan()
[all …]
/linux/net/smc/
H A Dsmc_rx.c348 size_t chunk_len, chunk_off, chunk_len_sum; in smc_rx_recvmsg() local
459 chunk_len = min_t(size_t, copylen, conn->rmb_desc->len - in smc_rx_recvmsg()
461 chunk_len_sum = chunk_len; in smc_rx_recvmsg()
469 chunk_len); in smc_rx_recvmsg()
472 chunk_off, chunk_len, in smc_rx_recvmsg()
481 read_remaining -= chunk_len; in smc_rx_recvmsg()
482 read_done += chunk_len; in smc_rx_recvmsg()
487 chunk_len = copylen - chunk_len; /* remainder */ in smc_rx_recvmsg()
488 chunk_len_sum += chunk_len; in smc_rx_recvmsg()
H A Dsmc_tx.c184 size_t chunk_len, chunk_off, chunk_len_sum; in smc_tx_sendmsg() local
244 chunk_len = min_t(size_t, copylen, conn->sndbuf_desc->len - in smc_tx_sendmsg()
246 chunk_len_sum = chunk_len; in smc_tx_sendmsg()
250 msg, chunk_len); in smc_tx_sendmsg()
257 send_done += chunk_len; in smc_tx_sendmsg()
258 send_remaining -= chunk_len; in smc_tx_sendmsg()
263 chunk_len = copylen - chunk_len; /* remainder */ in smc_tx_sendmsg()
264 chunk_len_sum += chunk_len; in smc_tx_sendmsg()
/linux/net/nfc/nci/
H A Duart.c229 int chunk_len; in nci_uart_default_recv_buf() local
266 chunk_len = nu->rx_packet_len - nu->rx_skb->len; in nci_uart_default_recv_buf()
267 if (count < chunk_len) in nci_uart_default_recv_buf()
268 chunk_len = count; in nci_uart_default_recv_buf()
269 skb_put_data(nu->rx_skb, data, chunk_len); in nci_uart_default_recv_buf()
270 data += chunk_len; in nci_uart_default_recv_buf()
271 count -= chunk_len; in nci_uart_default_recv_buf()
/linux/drivers/net/wireless/silabs/wfx/
H A Dmain.c178 int ret, chunk_type, chunk_len, chunk_num = 0; in wfx_send_pds() local
186 chunk_len = get_unaligned_le16(buf + 2); in wfx_send_pds()
187 if (chunk_len < 4 || chunk_len > len) { in wfx_send_pds()
195 if (chunk_len > WFX_PDS_MAX_CHUNK_SIZE) in wfx_send_pds()
197 if (buf[4] != '{' || buf[chunk_len - 1] != '}') in wfx_send_pds()
200 ret = wfx_hif_configuration(wdev, buf + 4, chunk_len - 4); in wfx_send_pds()
215 len -= chunk_len; in wfx_send_pds()
216 buf += chunk_len; in wfx_send_pds()
/linux/net/sctp/
H A Doutput.c53 u16 chunk_len);
331 __u16 chunk_len = SCTP_PAD4(ntohs(chunk->chunk_hdr->length)); in __sctp_packet_append_chunk() local
335 retval = sctp_packet_will_fit(packet, chunk, chunk_len); in __sctp_packet_append_chunk()
374 packet->size += chunk_len; in __sctp_packet_append_chunk()
783 u16 chunk_len) in sctp_packet_will_fit() argument
805 if (psize + chunk_len > pmtu) { in sctp_packet_will_fit()
831 if (chunk_len > maxsize) in sctp_packet_will_fit()
843 if (psize + chunk_len > packet->max_size) in sctp_packet_will_fit()
848 psize + chunk_len > (packet->transport->cwnd >> 1)) in sctp_packet_will_fit()
855 psize + chunk_len > (packet->transport->burst_limited >> 1)) in sctp_packet_will_fit()
H A Dsm_make_chunk.c3273 int length = 0, chunk_len; in sctp_process_asconf() local
3279 chunk_len = ntohs(asconf->chunk_hdr->length) - in sctp_process_asconf()
3287 chunk_len -= length; in sctp_process_asconf()
3293 chunk_len -= length; in sctp_process_asconf()
3300 asconf_ack = sctp_make_asconf_ack(asoc, serial, chunk_len * 4); in sctp_process_asconf()
/linux/drivers/net/wireless/ath/ath11k/
H A Dtestmode.c399 u16 chunk_len, total_bytes, num_segments; in ath11k_tm_cmd_wmi_ftm() local
434 chunk_len = min_t(u16, buf_len, MAX_WMI_UTF_LEN); in ath11k_tm_cmd_wmi_ftm()
436 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, (chunk_len + in ath11k_tm_cmd_wmi_ftm()
445 FIELD_PREP(WMI_TLV_LEN, (chunk_len + in ath11k_tm_cmd_wmi_ftm()
455 memcpy(&ftm_cmd->data, bufpos, chunk_len); in ath11k_tm_cmd_wmi_ftm()
463 buf_len -= chunk_len; in ath11k_tm_cmd_wmi_ftm()
464 bufpos += chunk_len; in ath11k_tm_cmd_wmi_ftm()
/linux/drivers/iio/imu/bno055/
H A Dbno055_ser_core.c189 int chunk_len; in bno055_ser_do_send_cmd() local
204 chunk_len = min(len, 2); in bno055_ser_do_send_cmd()
206 ret = bno055_ser_send_chunk(priv, data, chunk_len); in bno055_ser_do_send_cmd()
209 data += chunk_len; in bno055_ser_do_send_cmd()
210 len -= chunk_len; in bno055_ser_do_send_cmd()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dcommon.c126 u32 chunk_len; in brcmf_c_download_blob() local
146 chunk_len = MAX_CHUNK_LEN; in brcmf_c_download_blob()
148 chunk_len = datalen; in brcmf_c_download_blob()
151 memcpy(chunk_buf->data, data + cumulative_len, chunk_len); in brcmf_c_download_blob()
153 err = brcmf_c_download(ifp, dl_flag, chunk_buf, chunk_len, in brcmf_c_download_blob()
158 cumulative_len += chunk_len; in brcmf_c_download_blob()
159 datalen -= chunk_len; in brcmf_c_download_blob()
/linux/drivers/net/xen-netback/
H A Drx.c362 size_t frag_len, chunk_len; in xenvif_rx_next_chunk() local
379 chunk_len = min_t(size_t, frag_len, XEN_PAGE_SIZE - offset); in xenvif_rx_next_chunk()
380 chunk_len = min_t(size_t, chunk_len, XEN_PAGE_SIZE - in xenvif_rx_next_chunk()
383 pkt->frag_offset += chunk_len; in xenvif_rx_next_chunk()
386 if (frag_len == chunk_len) in xenvif_rx_next_chunk()
390 *len = chunk_len; in xenvif_rx_next_chunk()
/linux/drivers/nfc/nfcmrvl/
H A Dfw_dnld.c288 priv->fw_dnld.chunk_len = len; in process_state_fw_dnld()
304 if (priv->fw_dnld.chunk_len == 0) { in process_state_fw_dnld()
312 out_skb = alloc_lc_skb(priv, priv->fw_dnld.chunk_len); in process_state_fw_dnld()
317 priv->fw_dnld.chunk_len); in process_state_fw_dnld()
330 priv->fw_dnld.offset += priv->fw_dnld.chunk_len; in process_state_fw_dnld()
331 priv->fw_dnld.chunk_len = 0; in process_state_fw_dnld()
H A Dfw_dnld.h71 int chunk_len; member
/linux/net/ceph/
H A Dcrypto.c168 unsigned int chunk_len = PAGE_ALIGN(off + buf_len); in setup_sgtable() local
178 chunk_cnt = chunk_len >> PAGE_SHIFT; in setup_sgtable()
179 chunk_len = PAGE_SIZE; in setup_sgtable()
195 unsigned int len = min(chunk_len - off, buf_len); in setup_sgtable()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_bloom_filter.c235 u8 key_offset, u8 chunk_key_len, u8 chunk_len) in __mlxsw_sp_acl_bf_key_encode() argument
254 chunk += chunk_len; in __mlxsw_sp_acl_bf_key_encode()
256 *len = chunk_count * chunk_len; in __mlxsw_sp_acl_bf_key_encode()
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_txrx.c1429 unsigned int chunk_len; in ionic_tx_tso() local
1509 chunk_len = min(frag_rem, seg_rem); in ionic_tx_tso()
1515 desc_len = chunk_len; in ionic_tx_tso()
1519 elem->len = cpu_to_le16(chunk_len); in ionic_tx_tso()
1523 frag_addr += chunk_len; in ionic_tx_tso()
1524 frag_rem -= chunk_len; in ionic_tx_tso()
1525 tso_rem -= chunk_len; in ionic_tx_tso()
1526 seg_rem -= chunk_len; in ionic_tx_tso()
1684 int chunk_len; in ionic_tx_descs_needed() local
1746 chunk_len = min(frag_rem, seg_rem); in ionic_tx_descs_needed()
[all …]
/linux/drivers/media/dvb-frontends/
H A Dmxl692.c251 u32 ix = 0, total_len = 0, addr = 0, chunk_len = 0, prevchunk_len = 0; in mxl692_write_fw_block() local
266 chunk_len = (total_len < payload_max) ? total_len : payload_max; in mxl692_write_fw_block()
269 *plocal_buf++ = chunk_len + sizeof(u32); in mxl692_write_fw_block()
277 memcpy(plocal_buf, &buffer[ix], chunk_len); in mxl692_write_fw_block()
278 convert_endian(chunk_len, plocal_buf); in mxl692_write_fw_block()
280 (chunk_len + MXL_EAGLE_I2C_MHEADER_SIZE)) < 0) { in mxl692_write_fw_block()
285 prevchunk_len += chunk_len; in mxl692_write_fw_block()
286 total_len -= chunk_len; in mxl692_write_fw_block()
287 ix += chunk_len; in mxl692_write_fw_block()
/linux/drivers/media/usb/go7007/
H A Dgo7007-fw.c1548 int codespace = 64 * 1024, i = 0, srclen, chunk_len, chunk_flags; in go7007_construct_fw_image() local
1582 chunk_len = __le16_to_cpu(src[1]); in go7007_construct_fw_image()
1583 if (chunk_len + 2 > srclen) { in go7007_construct_fw_image()
1600 if (codespace - i < chunk_len) { in go7007_construct_fw_image()
1605 memcpy(&code[i], &src[2], chunk_len * 2); in go7007_construct_fw_image()
1606 i += chunk_len; in go7007_construct_fw_image()
1609 srclen -= chunk_len + 2; in go7007_construct_fw_image()
1610 src += chunk_len + 2; in go7007_construct_fw_image()
/linux/fs/btrfs/
H A Dvolumes.c1825 ret = map->start + map->chunk_len; in find_next_chunk()
3075 } else if (logical >= map->start + map->chunk_len) { in btrfs_find_chunk_map_nolock()
3087 while (prev && logical >= prev_map->start + prev_map->chunk_len) { in btrfs_find_chunk_map_nolock()
3113 logical < prev_map->start + prev_map->chunk_len) { in btrfs_find_chunk_map_nolock()
3156 if (unlikely(map->start > logical || map->start + map->chunk_len <= logical)) { in btrfs_get_chunk_map()
3160 map->start + map->chunk_len); in btrfs_get_chunk_map()
3312 trace_btrfs_chunk_free(fs_info, map, chunk_offset, map->chunk_len); in btrfs_remove_chunk()
5464 map->chunk_len = ctl->chunk_size; in create_chunk()
6000 length = min_t(u64, map->start + map->chunk_len - logical, length); in btrfs_map_discard()
6482 *length = min_t(u64, map->chunk_len - map_offset, max_len); in btrfs_map_block()
[all …]
H A Dblock-group.c2030 if (map->start != key->objectid || map->chunk_len != key->offset) { in read_bg_from_eb()
2033 key->objectid, key->offset, map->start, map->chunk_len); in read_bg_from_eb()
2298 map->start, map->chunk_len); in check_chunk_block_group_mappings()
2303 if (bg->start != map->start || bg->length != map->chunk_len || in check_chunk_block_group_mappings()
2308 map->start, map->chunk_len, in check_chunk_block_group_mappings()
2317 start = map->start + map->chunk_len; in check_chunk_block_group_mappings()
2461 bg->length = map->chunk_len; in fill_dummy_bgs()
2464 bg->used = map->chunk_len; in fill_dummy_bgs()
/linux/drivers/hid/
H A Dwacom_sys.c994 const unsigned chunk_len = len / 4; /* 4 chunks are needed to be sent */ in wacom_led_putimage() local
996 buf = kzalloc(chunk_len + 3 , GFP_KERNEL); in wacom_led_putimage()
1012 memcpy(buf + 3, img + i * chunk_len, chunk_len); in wacom_led_putimage()
1015 buf, chunk_len + 3, WAC_CMD_RETRIES); in wacom_led_putimage()

12