Searched refs:chunk_len (Results 1 - 25 of 33) sorted by path

12

/linux-master/drivers/media/usb/go7007/
H A Dgo7007-fw.c1548 int codespace = 64 * 1024, i = 0, srclen, chunk_len, chunk_flags; local
1582 chunk_len = __le16_to_cpu(src[1]);
1583 if (chunk_len + 2 > srclen) {
1600 if (codespace - i < chunk_len) {
1605 memcpy(&code[i], &src[2], chunk_len * 2);
1606 i += chunk_len;
1609 srclen -= chunk_len + 2;
1610 src += chunk_len + 2;
/linux-master/drivers/hid/
H A Dwacom_sys.c994 const unsigned chunk_len = len / 4; /* 4 chunks are needed to be sent */ local
996 buf = kzalloc(chunk_len + 3 , GFP_KERNEL);
1012 memcpy(buf + 3, img + i * chunk_len, chunk_len);
1015 buf, chunk_len + 3, WAC_CMD_RETRIES);
/linux-master/drivers/iio/imu/bno055/
H A Dbno055_ser_core.c189 int chunk_len; local
204 chunk_len = min(len, 2);
206 ret = bno055_ser_send_chunk(priv, data, chunk_len);
209 data += chunk_len;
210 len -= chunk_len;
/linux-master/drivers/media/dvb-frontends/
H A Dmxl692.c251 u32 ix = 0, total_len = 0, addr = 0, chunk_len = 0, prevchunk_len = 0; local
266 chunk_len = (total_len < payload_max) ? total_len : payload_max;
269 *plocal_buf++ = chunk_len + sizeof(u32);
277 memcpy(plocal_buf, &buffer[ix], chunk_len);
278 convert_endian(chunk_len, plocal_buf);
280 (chunk_len + MXL_EAGLE_I2C_MHEADER_SIZE)) < 0) {
285 prevchunk_len += chunk_len;
286 total_len -= chunk_len;
287 ix += chunk_len;
/linux-master/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx.c403 int id, chunk_len; local
414 chunk_len = (data[2] << 8) | data[3];
416 id, chunk_len);
421 if (len < chunk_len) {
438 int skip = (sd->to_skip < chunk_len) ?
439 sd->to_skip : chunk_len;
442 chunk_len -= skip;
447 data, chunk_len);
463 if (chunk_len)
476 if (chunk_len)
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_bloom_filter.c235 u8 key_offset, u8 chunk_key_len, u8 chunk_len)
254 chunk += chunk_len;
256 *len = chunk_count * chunk_len;
232 __mlxsw_sp_acl_bf_key_encode(struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, char *output, u8 *len, u8 max_chunks, u8 pad_bytes, u8 key_offset, u8 chunk_key_len, u8 chunk_len) argument
/linux-master/drivers/net/ethernet/pensando/ionic/
H A Dionic_txrx.c1404 unsigned int chunk_len; local
1484 chunk_len = min(frag_rem, seg_rem);
1490 desc_len = chunk_len;
1494 elem->len = cpu_to_le16(chunk_len);
1498 frag_addr += chunk_len;
1499 frag_rem -= chunk_len;
1500 tso_rem -= chunk_len;
1501 seg_rem -= chunk_len;
1660 int chunk_len; local
1722 chunk_len
[all...]
/linux-master/drivers/net/wireless/ath/ath11k/
H A Dtestmode.c399 u16 chunk_len, total_bytes, num_segments; local
434 chunk_len = min_t(u16, buf_len, MAX_WMI_UTF_LEN);
436 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, (chunk_len +
445 FIELD_PREP(WMI_TLV_LEN, (chunk_len +
455 memcpy(&ftm_cmd->data, bufpos, chunk_len);
463 buf_len -= chunk_len;
464 bufpos += chunk_len;
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dcommon.c126 u32 chunk_len; local
146 chunk_len = MAX_CHUNK_LEN;
148 chunk_len = datalen;
151 memcpy(chunk_buf->data, data + cumulative_len, chunk_len);
153 err = brcmf_c_download(ifp, dl_flag, chunk_buf, chunk_len,
158 cumulative_len += chunk_len;
159 datalen -= chunk_len;
/linux-master/drivers/net/wireless/intel/ipw2x00/
H A Dipw2200.c3178 u32 chunk_len; local
3185 chunk_len = le32_to_cpu(chunk->length);
3188 nr = (chunk_len + CB_MAX_LENGTH - 1) / CB_MAX_LENGTH;
3196 size = min_t(u32, chunk_len - i * CB_MAX_LENGTH,
3211 chunk_len);
3217 offset += chunk_len;
3776 le16_to_cpu(bd->u.data.chunk_len[i]),
10179 tfd->u.data.chunk_len[i] =
10195 tfd->u.data.chunk_len[i] = cpu_to_le16(remaining_bytes);
H A Dipw2200.h490 __le16 chunk_len[NUM_TFD_CHUNKS]; member in struct:tfd_data
/linux-master/drivers/net/wireless/realtek/rtw89/
H A Dphy.c2806 u16 chunk_len; local
2818 chunk_len = content_len + sizeof(*log_hdr);
2820 if (chunk_len > len)
2841 log_ptr += chunk_len;
2842 len -= chunk_len;
/linux-master/drivers/net/wireless/silabs/wfx/
H A Dmain.c178 int ret, chunk_type, chunk_len, chunk_num = 0; local
186 chunk_len = get_unaligned_le16(buf + 2);
187 if (chunk_len < 4 || chunk_len > len) {
195 if (chunk_len > WFX_PDS_MAX_CHUNK_SIZE)
197 if (buf[4] != '{' || buf[chunk_len - 1] != '}')
200 ret = wfx_hif_configuration(wdev, buf + 4, chunk_len - 4);
215 len -= chunk_len;
216 buf += chunk_len;
/linux-master/drivers/net/wireless/ti/wlcore/
H A Dspi.c239 u32 chunk_len; local
242 chunk_len = min_t(size_t, WSPI_MAX_CHUNK_SIZE, len);
249 *cmd |= (chunk_len << WSPI_CMD_BYTE_LENGTH_OFFSET) &
274 memset(buf, 0, chunk_len);
282 t[0].len = chunk_len;
289 addr += chunk_len;
290 buf += chunk_len;
291 len -= chunk_len;
305 u32 chunk_len; local
320 chunk_len
[all...]
/linux-master/drivers/net/xen-netback/
H A Drx.c362 size_t frag_len, chunk_len; local
379 chunk_len = min_t(size_t, frag_len, XEN_PAGE_SIZE - offset);
380 chunk_len = min_t(size_t, chunk_len, XEN_PAGE_SIZE -
383 pkt->frag_offset += chunk_len;
386 if (frag_len == chunk_len)
390 *len = chunk_len;
/linux-master/drivers/nfc/nfcmrvl/
H A Dfw_dnld.c288 priv->fw_dnld.chunk_len = len;
304 if (priv->fw_dnld.chunk_len == 0) {
312 out_skb = alloc_lc_skb(priv, priv->fw_dnld.chunk_len);
317 priv->fw_dnld.chunk_len);
330 priv->fw_dnld.offset += priv->fw_dnld.chunk_len;
331 priv->fw_dnld.chunk_len = 0;
H A Dfw_dnld.h71 int chunk_len; member in struct:nfcmrvl_fw_dnld
/linux-master/drivers/nfc/nxp-nci/
H A Dfirmware.c93 size_t chunk_len; local
101 chunk_len = info->max_payload - NXP_NCI_FW_HDR_LEN - NXP_NCI_FW_CRC_LEN;
104 if (remaining_len > chunk_len) {
107 chunk_len = remaining_len;
111 header |= chunk_len & NXP_NCI_FW_FRAME_LEN_MASK;
114 skb_put_data(skb, fw_info->data + fw_info->written, chunk_len);
116 crc = nxp_nci_fw_crc(skb->data, chunk_len + NXP_NCI_FW_HDR_LEN);
121 r = chunk_len;
/linux-master/fs/btrfs/
H A Dblock-group.c1991 if (map->start != key->objectid || map->chunk_len != key->offset) {
1994 key->objectid, key->offset, map->start, map->chunk_len);
2259 map->start, map->chunk_len);
2264 if (bg->start != map->start || bg->length != map->chunk_len ||
2269 map->start, map->chunk_len,
2278 start = map->start + map->chunk_len;
2422 bg->length = map->chunk_len;
2425 bg->used = map->chunk_len;
H A Ddev-replace.c840 start = map->start + map->chunk_len;
H A Dinode.c10861 len = min(len, map->chunk_len - (logical_block_start - map->start));
H A Dscrub.c2419 if (map->chunk_len < dev_extent_len)
H A Dvolumes.c1821 ret = map->start + map->chunk_len;
3068 } else if (logical >= map->start + map->chunk_len) {
3080 while (prev && logical >= prev_map->start + prev_map->chunk_len) {
3106 logical < prev_map->start + prev_map->chunk_len) {
3149 if (unlikely(map->start > logical || map->start + map->chunk_len <= logical)) {
3153 map->start + map->chunk_len);
3305 trace_btrfs_chunk_free(fs_info, map, chunk_offset, map->chunk_len);
5651 map->chunk_len = ctl->chunk_size;
6182 length = min_t(u64, map->start + map->chunk_len - logical, length);
6666 *length = min_t(u64, map->chunk_len
[all...]
H A Dvolumes.h578 u64 chunk_len; member in struct:btrfs_chunk_map
/linux-master/fs/btrfs/tests/
H A Dextent-map-tests.c901 map->chunk_len = test->data_stripe_size * test->num_data_stripes;

Completed in 434 milliseconds

12