/openbmc/u-boot/arch/arm/mach-sunxi/ |
H A D | spl_spi_sunxi.c | 229 u32 chunk_len; in spi0_read_data() local 232 chunk_len = len; in spi0_read_data() 233 if (chunk_len > SPI_READ_MAX_SIZE) in spi0_read_data() 234 chunk_len = SPI_READ_MAX_SIZE; in spi0_read_data() 237 sunxi_spi0_read_data(buf8, addr, chunk_len, in spi0_read_data() 247 sunxi_spi0_read_data(buf8, addr, chunk_len, in spi0_read_data() 258 len -= chunk_len; in spi0_read_data() 259 buf8 += chunk_len; in spi0_read_data() 260 addr += chunk_len; in spi0_read_data()
|
/openbmc/linux/scripts/dtc/ |
H A D | yamltree.c | 144 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()
|
H A D | treesource.c | 208 size_t chunk_len = (m->next ? m->next->offset : len) - m->offset; in write_propval() local 219 if (emit_type == TYPE_NONE || chunk_len == 0) in write_propval() 224 write_propval_int(f, p, chunk_len, 2); in write_propval() 237 if (chunk_len > 4) { in write_propval() 239 write_propval_int(f, p + 4, chunk_len - 4, 4); in write_propval() 242 write_propval_int(f, p, chunk_len, 4); in write_propval() 246 write_propval_int(f, p, chunk_len, 8); in write_propval() 249 write_propval_string(f, p, chunk_len); in write_propval() 252 write_propval_int(f, p, chunk_len, 1); in write_propval() 255 if (chunk_len == data_len) { in write_propval() [all …]
|
/openbmc/linux/drivers/net/wireless/ti/wlcore/ |
H A D | spi.c | 239 u32 chunk_len; in wl12xx_spi_raw_read() local 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 336 t[i].len = chunk_len; in __wl12xx_spi_raw_write() 340 addr += chunk_len; in __wl12xx_spi_raw_write() 341 buf += chunk_len; in __wl12xx_spi_raw_write() [all …]
|
/openbmc/linux/drivers/nfc/nxp-nci/ |
H A D | firmware.c | 93 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()
|
/openbmc/linux/drivers/media/usb/gspca/stv06xx/ |
H A D | stv06xx.c | 403 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() 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() 501 data += chunk_len; in stv06xx_pkt_scan() [all …]
|
/openbmc/linux/net/nfc/nci/ |
H A D | uart.c | 229 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()
|
/openbmc/linux/net/smc/ |
H A D | smc_rx.c | 348 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 D | smc_tx.c | 184 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()
|
/openbmc/linux/drivers/net/wireless/silabs/wfx/ |
H A D | main.c | 176 int ret, chunk_type, chunk_len, chunk_num = 0; in wfx_send_pds() local 184 chunk_len = get_unaligned_le16(buf + 2); in wfx_send_pds() 185 if (chunk_len < 4 || chunk_len > len) { in wfx_send_pds() 193 if (chunk_len > WFX_PDS_MAX_CHUNK_SIZE) in wfx_send_pds() 195 if (buf[4] != '{' || buf[chunk_len - 1] != '}') in wfx_send_pds() 198 ret = wfx_hif_configuration(wdev, buf + 4, chunk_len - 4); in wfx_send_pds() 213 len -= chunk_len; in wfx_send_pds() 214 buf += chunk_len; in wfx_send_pds()
|
/openbmc/linux/net/sctp/ |
H A D | output.c | 53 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()
|
/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A D | testmode.c | 399 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()
|
/openbmc/linux/drivers/iio/imu/bno055/ |
H A D | bno055_ser_core.c | 189 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()
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | common.c | 126 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()
|
/openbmc/linux/drivers/net/xen-netback/ |
H A D | rx.c | 362 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()
|
/openbmc/linux/drivers/nfc/nfcmrvl/ |
H A D | fw_dnld.c | 288 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 D | fw_dnld.h | 71 int chunk_len; member
|
/openbmc/linux/net/ceph/ |
H A D | crypto.c | 168 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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_acl_bloom_filter.c | 235 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()
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | mxl692.c | 251 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()
|
/openbmc/linux/drivers/media/usb/go7007/ |
H A D | go7007-fw.c | 1548 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()
|
/openbmc/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_txrx.c | 1004 unsigned int chunk_len; in ionic_tx_tso() local 1083 chunk_len = min(frag_rem, seg_rem); in ionic_tx_tso() 1089 desc_len = chunk_len; in ionic_tx_tso() 1093 elem->len = cpu_to_le16(chunk_len); in ionic_tx_tso() 1097 frag_addr += chunk_len; in ionic_tx_tso() 1098 frag_rem -= chunk_len; in ionic_tx_tso() 1099 tso_rem -= chunk_len; in ionic_tx_tso() 1100 seg_rem -= chunk_len; in ionic_tx_tso()
|
/openbmc/linux/fs/btrfs/ |
H A D | check-integrity.c | 1374 u32 chunk_len; in btrfsic_handle_extent_data() local 1379 chunk_len = state->datablock_size; in btrfsic_handle_extent_data() 1381 chunk_len = num_bytes; in btrfsic_handle_extent_data() 1398 next_bytenr, chunk_len); in btrfsic_handle_extent_data() 1400 chunk_len, &next_block_ctx, in btrfsic_handle_extent_data() 1448 next_bytenr += chunk_len; in btrfsic_handle_extent_data() 1449 num_bytes -= chunk_len; in btrfsic_handle_extent_data()
|
/openbmc/qemu/hw/net/ |
H A D | vmxnet3.c | 951 size_t chunk_len = in vmxnet3_pci_dma_writev() local 956 chunk_len); in vmxnet3_pci_dma_writev() 958 copied += chunk_len; in vmxnet3_pci_dma_writev() 959 start_iov_off += chunk_len; in vmxnet3_pci_dma_writev() 961 bytes_to_copy -= chunk_len; in vmxnet3_pci_dma_writev()
|
/openbmc/linux/drivers/hid/ |
H A D | wacom_sys.c | 994 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()
|