/linux-6.1.9/scripts/dtc/ |
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 …]
|
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()
|
/linux-6.1.9/drivers/net/wireless/ti/wlcore/ |
D | spi.c | 240 u32 chunk_len; in wl12xx_spi_raw_read() local 243 chunk_len = min_t(size_t, WSPI_MAX_CHUNK_SIZE, len); in wl12xx_spi_raw_read() 250 *cmd |= (chunk_len << WSPI_CMD_BYTE_LENGTH_OFFSET) & in wl12xx_spi_raw_read() 275 memset(buf, 0, chunk_len); in wl12xx_spi_raw_read() 283 t[0].len = chunk_len; in wl12xx_spi_raw_read() 290 addr += chunk_len; in wl12xx_spi_raw_read() 291 buf += chunk_len; in wl12xx_spi_raw_read() 292 len -= chunk_len; in wl12xx_spi_raw_read() 306 u32 chunk_len; in __wl12xx_spi_raw_write() local 321 chunk_len = min_t(size_t, WSPI_MAX_CHUNK_SIZE, len); in __wl12xx_spi_raw_write() [all …]
|
/linux-6.1.9/drivers/nfc/nxp-nci/ |
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()
|
/linux-6.1.9/drivers/net/wwan/t7xx/ |
D | t7xx_port_wwan.c | 57 size_t len, offset, chunk_len = 0, txq_mtu = CLDMA_MTU; in t7xx_port_ctrl_tx() local 75 for (offset = 0; offset < len; offset += chunk_len) { in t7xx_port_ctrl_tx() 79 chunk_len = min(len - offset, txq_mtu - sizeof(struct ccci_header)); in t7xx_port_ctrl_tx() 80 skb_ccci = t7xx_port_alloc_skb(chunk_len); in t7xx_port_ctrl_tx() 84 skb_put_data(skb_ccci, skb->data + offset, chunk_len); in t7xx_port_ctrl_tx()
|
/linux-6.1.9/drivers/media/usb/gspca/stv06xx/ |
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() 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-6.1.9/net/smc/ |
D | smc_rx.c | 344 size_t chunk_len, chunk_off, chunk_len_sum; in smc_rx_recvmsg() local 455 chunk_len = min_t(size_t, copylen, conn->rmb_desc->len - in smc_rx_recvmsg() 457 chunk_len_sum = chunk_len; in smc_rx_recvmsg() 465 chunk_len); in smc_rx_recvmsg() 468 chunk_off, chunk_len, in smc_rx_recvmsg() 477 read_remaining -= chunk_len; in smc_rx_recvmsg() 478 read_done += chunk_len; in smc_rx_recvmsg() 483 chunk_len = copylen - chunk_len; /* remainder */ in smc_rx_recvmsg() 484 chunk_len_sum += chunk_len; in smc_rx_recvmsg()
|
D | smc_tx.c | 185 size_t chunk_len, chunk_off, chunk_len_sum; in smc_tx_sendmsg() local 245 chunk_len = min_t(size_t, copylen, conn->sndbuf_desc->len - in smc_tx_sendmsg() 247 chunk_len_sum = chunk_len; in smc_tx_sendmsg() 251 msg, chunk_len); in smc_tx_sendmsg() 258 send_done += chunk_len; in smc_tx_sendmsg() 259 send_remaining -= chunk_len; in smc_tx_sendmsg() 264 chunk_len = copylen - chunk_len; /* remainder */ in smc_tx_sendmsg() 265 chunk_len_sum += chunk_len; in smc_tx_sendmsg()
|
/linux-6.1.9/net/nfc/nci/ |
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()
|
/linux-6.1.9/drivers/net/wireless/silabs/wfx/ |
D | main.c | 175 int ret, chunk_type, chunk_len, chunk_num = 0; in wfx_send_pds() local 183 chunk_len = get_unaligned_le16(buf + 2); in wfx_send_pds() 184 if (chunk_len < 4 || chunk_len > len) { in wfx_send_pds() 192 if (chunk_len > WFX_PDS_MAX_CHUNK_SIZE) in wfx_send_pds() 194 if (buf[4] != '{' || buf[chunk_len - 1] != '}') in wfx_send_pds() 197 ret = wfx_hif_configuration(wdev, buf + 4, chunk_len - 4); in wfx_send_pds() 212 len -= chunk_len; in wfx_send_pds() 213 buf += chunk_len; in wfx_send_pds()
|
/linux-6.1.9/net/sctp/ |
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()
|
D | sm_make_chunk.c | 3281 int length = 0, chunk_len; in sctp_process_asconf() local 3287 chunk_len = ntohs(asconf->chunk_hdr->length) - in sctp_process_asconf() 3295 chunk_len -= length; in sctp_process_asconf() 3301 chunk_len -= length; in sctp_process_asconf() 3308 asconf_ack = sctp_make_asconf_ack(asoc, serial, chunk_len * 4); in sctp_process_asconf()
|
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | common.c | 126 u32 chunk_len; in brcmf_c_process_clm_blob() local 152 chunk_len = MAX_CHUNK_LEN; in brcmf_c_process_clm_blob() 154 chunk_len = datalen; in brcmf_c_process_clm_blob() 157 memcpy(chunk_buf->data, clm->data + cumulative_len, chunk_len); in brcmf_c_process_clm_blob() 159 err = brcmf_c_download(ifp, dl_flag, chunk_buf, chunk_len); in brcmf_c_process_clm_blob() 163 cumulative_len += chunk_len; in brcmf_c_process_clm_blob() 164 datalen -= chunk_len; in brcmf_c_process_clm_blob()
|
/linux-6.1.9/drivers/iio/imu/bno055/ |
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()
|
/linux-6.1.9/drivers/net/xen-netback/ |
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()
|
/linux-6.1.9/drivers/nfc/nfcmrvl/ |
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()
|
D | fw_dnld.h | 71 int chunk_len; member
|
/linux-6.1.9/net/ceph/ |
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()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
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()
|
/linux-6.1.9/drivers/media/dvb-frontends/ |
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()
|
/linux-6.1.9/drivers/media/usb/go7007/ |
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()
|
/linux-6.1.9/drivers/net/ethernet/pensando/ionic/ |
D | ionic_txrx.c | 902 unsigned int chunk_len; in ionic_tx_tso() local 977 chunk_len = min(frag_rem, seg_rem); in ionic_tx_tso() 983 desc_len = chunk_len; in ionic_tx_tso() 987 elem->len = cpu_to_le16(chunk_len); in ionic_tx_tso() 991 frag_addr += chunk_len; in ionic_tx_tso() 992 frag_rem -= chunk_len; in ionic_tx_tso() 993 tso_rem -= chunk_len; in ionic_tx_tso() 994 seg_rem -= chunk_len; in ionic_tx_tso()
|
/linux-6.1.9/fs/btrfs/ |
D | check-integrity.c | 1372 u32 chunk_len; in btrfsic_handle_extent_data() local 1377 chunk_len = state->datablock_size; in btrfsic_handle_extent_data() 1379 chunk_len = num_bytes; in btrfsic_handle_extent_data() 1396 next_bytenr, chunk_len); in btrfsic_handle_extent_data() 1398 chunk_len, &next_block_ctx, in btrfsic_handle_extent_data() 1446 next_bytenr += chunk_len; in btrfsic_handle_extent_data() 1447 num_bytes -= chunk_len; in btrfsic_handle_extent_data()
|
/linux-6.1.9/drivers/hid/ |
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()
|
/linux-6.1.9/drivers/net/wireless/intel/ipw2x00/ |
D | ipw2200.c | 3221 u32 chunk_len; in ipw_load_firmware() local 3228 chunk_len = le32_to_cpu(chunk->length); in ipw_load_firmware() 3231 nr = (chunk_len + CB_MAX_LENGTH - 1) / CB_MAX_LENGTH; in ipw_load_firmware() 3239 size = min_t(u32, chunk_len - i * CB_MAX_LENGTH, in ipw_load_firmware() 3254 chunk_len); in ipw_load_firmware() 3260 offset += chunk_len; in ipw_load_firmware() 3819 le16_to_cpu(bd->u.data.chunk_len[i]), in ipw_queue_tx_free_tfd() 10223 tfd->u.data.chunk_len[i] = in ipw_tx_skb() 10239 tfd->u.data.chunk_len[i] = cpu_to_le16(remaining_bytes); in ipw_tx_skb()
|