Home
last modified time | relevance | path

Searched refs:block_len (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.3-rc2/fs/btrfs/tests/
A Dextent-map-tests.c73 em->block_len = SZ_16K; in test_case_1()
94 em->block_len = SZ_4K; in test_case_1()
115 em->block_len = len; in test_case_1()
161 em->block_len = (u64)-1; in test_case_2()
182 em->block_len = SZ_4K; in test_case_2()
203 em->block_len = (u64)-1; in test_case_2()
217 em->block_len); in test_case_2()
244 em->block_len = SZ_4K; in __test_case_3()
265 em->block_len = SZ_16K; in __test_case_3()
343 em->block_len = SZ_8K; in __test_case_4()
[all …]
/linux-6.3-rc2/drivers/thunderbolt/
A Dproperty.c39 size_t block_len, unsigned int dir_offset, size_t dir_len,
53 size_t block_len) in tb_property_entry_valid() argument
59 if (entry->length > block_len) in tb_property_entry_valid()
61 if (entry->value + entry->length > block_len) in tb_property_entry_valid()
102 if (!tb_property_entry_valid(entry, block_len)) in tb_property_parse()
221 size_t block_len) in tb_property_parse_dir() argument
228 if (rootdir->length > block_len) in tb_property_parse_dir()
349 u32 *block, unsigned int start_offset, size_t block_len) in __tb_property_format_dir() argument
408 if (dir_end > block_len) in __tb_property_format_dir()
437 block_len); in __tb_property_format_dir()
[all …]
/linux-6.3-rc2/drivers/media/i2c/
A Dsaa7185.c78 int block_len; in saa7185_write_block() local
81 block_len = 0; in saa7185_write_block()
82 block_data[block_len++] = reg = data[0]; in saa7185_write_block()
84 block_data[block_len++] = in saa7185_write_block()
88 } while (len >= 2 && data[0] == reg && block_len < 32); in saa7185_write_block()
89 ret = i2c_master_send(client, block_data, block_len); in saa7185_write_block()
A Dadv7170.c89 int block_len; in adv7170_write_block() local
92 block_len = 0; in adv7170_write_block()
93 block_data[block_len++] = reg = data[0]; in adv7170_write_block()
95 block_data[block_len++] = in adv7170_write_block()
99 } while (len >= 2 && data[0] == reg && block_len < 32); in adv7170_write_block()
100 ret = i2c_master_send(client, block_data, block_len); in adv7170_write_block()
A Dadv7175.c83 int block_len; in adv7175_write_block() local
86 block_len = 0; in adv7175_write_block()
87 block_data[block_len++] = reg = data[0]; in adv7175_write_block()
89 block_data[block_len++] = data[1]; in adv7175_write_block()
93 } while (len >= 2 && data[0] == reg && block_len < 32); in adv7175_write_block()
94 ret = i2c_master_send(client, block_data, block_len); in adv7175_write_block()
A Dbt819.c102 int block_len; in bt819_write_block() local
105 block_len = 0; in bt819_write_block()
106 block_data[block_len++] = reg = data[0]; in bt819_write_block()
108 block_data[block_len++] = in bt819_write_block()
112 } while (len >= 2 && data[0] == reg && block_len < 32); in bt819_write_block()
113 ret = i2c_master_send(client, block_data, block_len); in bt819_write_block()
/linux-6.3-rc2/fs/cramfs/
A Dinode.c822 u32 block_ptr, block_start, block_len; in cramfs_read_folio() local
840 block_len = PAGE_SIZE; in cramfs_read_folio()
843 block_len = in cramfs_read_folio()
846 block_len = *(u16 *) in cramfs_read_folio()
871 block_len = *(u16 *) in cramfs_read_folio()
873 block_start += 2 + block_len; in cramfs_read_folio()
877 block_len = block_ptr - block_start; in cramfs_read_folio()
880 if (block_len == 0) in cramfs_read_folio()
890 block_len); in cramfs_read_folio()
891 bytes_filled = block_len; in cramfs_read_folio()
[all …]
/linux-6.3-rc2/fs/btrfs/
A Dextent_map.c255 em->block_len += merge->block_len; in try_merge_map()
273 em->block_len += merge->block_len; in try_merge_map()
579 em->block_len = em->len; in merge_extent_mapping()
801 split->block_len = em->block_len; in btrfs_drop_extent_map_range()
803 split->block_len = split->len; in btrfs_drop_extent_map_range()
804 split->orig_block_len = max(split->block_len, in btrfs_drop_extent_map_range()
809 split->block_len = 0; in btrfs_drop_extent_map_range()
838 split->orig_block_len = max(em->block_len, in btrfs_drop_extent_map_range()
843 split->block_len = em->block_len; in btrfs_drop_extent_map_range()
848 split->block_len = split->len; in btrfs_drop_extent_map_range()
[all …]
A Dextent_map.h44 u64 block_len; member
82 if (em->block_start + em->block_len < em->block_start) in extent_map_block_end()
84 return em->block_start + em->block_len; in extent_map_block_end()
A Dinode.c5011 hole_em->block_len = 0; in btrfs_cont_expand()
6822 em->block_len = (u64)-1; in btrfs_get_extent()
7000 block_len, 0, in btrfs_create_dio_extent()
7292 em->block_len = block_len; in create_io_em()
10138 count = em->block_len; in btrfs_encoded_read()
10512 u64 block_len; member
10776 if (bsi.block_len && in btrfs_swap_activate()
10778 bsi.block_len += len; in btrfs_swap_activate()
10780 if (bsi.block_len) { in btrfs_swap_activate()
10787 bsi.block_len = len; in btrfs_swap_activate()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intersil/hostap/
A Dhostap_download.c552 int block_len; in prism2_download_block() local
554 block_len = rest_len < 4096 ? rest_len : 4096; in prism2_download_block()
559 HFA384X_OUTW(block_len, HFA384X_PARAM2_OFF); in prism2_download_block()
570 if (hfa384x_to_aux(dev, bufaddr, block_len, data)) { in prism2_download_block()
572 "(len=%d) failed\n", dev->name, addr, block_len); in prism2_download_block()
586 return block_len; in prism2_download_block()
652 int block_len; in prism2_download_nonvolatile() local
654 block_len = prism2_download_block( in prism2_download_nonvolatile()
659 if (block_len < 0) { in prism2_download_nonvolatile()
664 rest_len -= block_len; in prism2_download_nonvolatile()
[all …]
/linux-6.3-rc2/drivers/input/rmi4/
A Drmi_smbus.c151 int block_len = min_t(int, len, SMB_MAX_COUNT); in rmi_smb_write_block() local
153 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len, in rmi_smb_write_block()
159 databuff, block_len); in rmi_smb_write_block()
203 int block_len = min_t(int, cur_len, SMB_MAX_COUNT); in rmi_smb_read_block() local
205 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len, in rmi_smb_read_block()
211 databuff, block_len); in rmi_smb_read_block()
/linux-6.3-rc2/sound/soc/codecs/
A Dwm8958-dsp2.c49 size_t block_len, len; in wm8958_dsp2_fw() local
105 block_len = get_unaligned_be32(data + 4); in wm8958_dsp2_fw()
106 if (block_len + 8 > len) { in wm8958_dsp2_fw()
108 block_len); in wm8958_dsp2_fw()
111 if (block_len == 0) { in wm8958_dsp2_fw()
126 memcpy(str, data + 8, block_len); in wm8958_dsp2_fw()
141 block_len, (data32 >> 24) & 0xff, in wm8958_dsp2_fw()
151 block_len / 2, in wm8958_dsp2_fw()
162 block_len += block_len % 4; in wm8958_dsp2_fw()
164 data += block_len + 8; in wm8958_dsp2_fw()
[all …]
/linux-6.3-rc2/drivers/media/usb/dvb-usb-v2/
A Dmxl111sf-i2c.c434 u16 block_len; in mxl111sf_i2c_hw_xfer_msg() local
508 block_len = (msg->len / 8); in mxl111sf_i2c_hw_xfer_msg()
512 block_len, left_over_len); in mxl111sf_i2c_hw_xfer_msg()
514 for (index = 0; index < block_len; index++) { in mxl111sf_i2c_hw_xfer_msg()
615 block_len = ((msg->len) / 8); in mxl111sf_i2c_hw_xfer_msg()
620 block_len, left_over_len); in mxl111sf_i2c_hw_xfer_msg()
626 for (index = 0; index < block_len; index++) { in mxl111sf_i2c_hw_xfer_msg()
726 msg->buf[(block_len*8)+i] = in mxl111sf_i2c_hw_xfer_msg()
/linux-6.3-rc2/drivers/net/ethernet/sfc/
A Dtx.c140 int block_len = len & ~(sizeof(copy_buf->buf) - 1); in efx_memcpy_toio_aligned() local
142 __iowrite64_copy(*piobuf, data, block_len >> 3); in efx_memcpy_toio_aligned()
143 *piobuf += block_len; in efx_memcpy_toio_aligned()
144 len -= block_len; in efx_memcpy_toio_aligned()
147 data += block_len; in efx_memcpy_toio_aligned()
/linux-6.3-rc2/drivers/usb/cdns3/
A Dcdnsp-ring.c1883 block_len = sg_dma_len(sg); in cdnsp_queue_bulk_tx()
1888 block_len = full_len; in cdnsp_queue_bulk_tx()
1984 while (sg && sent_len >= block_len) { in cdnsp_queue_bulk_tx()
1987 sent_len -= block_len; in cdnsp_queue_bulk_tx()
1990 block_len = sg_dma_len(sg); in cdnsp_queue_bulk_tx()
1995 block_len -= sent_len; in cdnsp_queue_bulk_tx()
2223 block_len = sg_dma_len(sg); in cdnsp_queue_isoc_tx()
2227 block_len = td_len; in cdnsp_queue_isoc_tx()
2314 sent_len -= block_len; in cdnsp_queue_isoc_tx()
2317 block_len = sg_dma_len(sg); in cdnsp_queue_isoc_tx()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intersil/p54/
A Dp54usb.c744 unsigned int block_len = min(remains, (unsigned int)512); in p54u_upload_firmware_net2280() local
745 memcpy(buf, data, block_len); in p54u_upload_firmware_net2280()
747 err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, block_len); in p54u_upload_firmware_net2280()
765 cpu_to_le32(block_len)); in p54u_upload_firmware_net2280()
773 cpu_to_le32(block_len >> 2)); in p54u_upload_firmware_net2280()
791 remains -= block_len; in p54u_upload_firmware_net2280()
792 data += block_len; in p54u_upload_firmware_net2280()
793 offset += block_len; in p54u_upload_firmware_net2280()
/linux-6.3-rc2/drivers/net/ethernet/sfc/falcon/
A Dfalcon.c619 size_t block_len, pos = 0; in falcon_spi_read() local
628 buffer + pos, block_len); in falcon_spi_read()
631 pos += block_len; in falcon_spi_read()
695 size_t block_len, pos = 0; in falcon_spi_write() local
704 block_len = min(len - pos, in falcon_spi_write()
708 buffer + pos, NULL, block_len); in falcon_spi_write()
718 NULL, verify_buffer, block_len); in falcon_spi_write()
724 pos += block_len; in falcon_spi_write()
808 unsigned pos, block_len; in falcon_spi_erase() local
833 for (pos = 0; pos < len; pos += block_len) { in falcon_spi_erase()
[all …]
/linux-6.3-rc2/lib/
A Dts_fsm.c139 unsigned block_len = 0, strict, consumed = state->offset; in fsm_find() local
145 block_len = conf->get_next_block(consumed, &data, conf, state); }) in fsm_find()
155 #define end_of_data() unlikely(block_idx >= block_len && !GET_NEXT_BLOCK()) in fsm_find()
/linux-6.3-rc2/include/linux/
A Dthunderbolt.h146 size_t block_len);
148 size_t block_len);
/linux-6.3-rc2/drivers/usb/gadget/function/
A Df_ncm.c1179 unsigned block_len; in ncm_unwrap_ntb() local
1205 block_len = get_ncm(&tmp, opts->block_length); in ncm_unwrap_ntb()
1207 if (block_len > ntb_max) { in ncm_unwrap_ntb()
1222 (ndp_index > (block_len - in ncm_unwrap_ntb()
1270 (index > block_len - opts->dpe_size)) { in ncm_unwrap_ntb()
1307 if (index2 > block_len - opts->dpe_size) { in ncm_unwrap_ntb()
/linux-6.3-rc2/drivers/s390/net/
A Dctcm_fsms.c362 __u16 block_len = *((__u16 *)skb->data); in chx_rx() local
390 check_len = block_len + 2; in chx_rx()
393 check_len = block_len; in chx_rx()
396 if ((len < block_len) || (len > check_len)) { in chx_rx()
399 CTCM_FUNTAIL, dev->name, block_len, len); in chx_rx()
408 if (block_len > 2) { in chx_rx()
409 *((__u16 *)skb->data) = block_len - 2; in chx_rx()
1403 __u32 block_len = len; in ctcmpc_chx_rx() local
1421 skb_put_data(new_skb, skb->data, block_len); in ctcmpc_chx_rx()
A Dctcm_main.c470 __u16 block_len; in ctcm_transmit_skb() local
510 block_len = skb->len + 2; in ctcm_transmit_skb()
511 *((__u16 *)skb_push(skb, 2)) = block_len; in ctcm_transmit_skb()
534 ch->ccw[4].count = block_len; in ctcm_transmit_skb()
/linux-6.3-rc2/net/ipv6/
A Dseg6_local.c2018 static int seg6_chk_next_csid_cfg(__u8 block_len, __u8 func_len) in seg6_chk_next_csid_cfg() argument
2023 if (next_csid_chk_cntr_bits(block_len, func_len)) in seg6_chk_next_csid_cfg()
2029 if (next_csid_chk_lcblock_bits(block_len)) in seg6_chk_next_csid_cfg()
2046 __u8 block_len = SEG6_LOCAL_LCBLOCK_DBITS; in seg6_parse_nla_next_csid_cfg() local
2050 block_len = nla_get_u8(tb[SEG6_LOCAL_FLV_LCBLOCK_BITS]); in seg6_parse_nla_next_csid_cfg()
2055 rc = seg6_chk_next_csid_cfg(block_len, func_len); in seg6_parse_nla_next_csid_cfg()
2062 finfo->lcblock_bits = block_len; in seg6_parse_nla_next_csid_cfg()
/linux-6.3-rc2/drivers/dma/dw-axi-dmac/
A Ddw-axi-dmac-platform.c686 size_t axi_block_ts, block_len; in calculate_block_len() local
697 block_len = axi_block_ts << mem_width; in calculate_block_len()
701 block_len = axi_block_ts << reg_width; in calculate_block_len()
704 block_len = 0; in calculate_block_len()
707 return block_len; in calculate_block_len()

Completed in 89 milliseconds

12