Searched refs:bytes_needed (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/firmware/cirrus/test/ |
| H A D | cs_dsp_mock_wmfw.c | 104 unsigned int bytes_needed = struct_size_t(struct wmfw_region, data, payload_len_bytes); in cs_dsp_mock_wmfw_add_raw_block() local 107 (builder->write_p + bytes_needed) < in cs_dsp_mock_wmfw_add_raw_block() 115 builder->write_p += bytes_needed; in cs_dsp_mock_wmfw_add_raw_block() 116 builder->bytes_used += bytes_needed; in cs_dsp_mock_wmfw_add_raw_block() 179 size_t bytes_needed, name_len, description_len; in cs_dsp_mock_wmfw_start_alg_info_block() local 185 bytes_needed = offsetof(struct wmfw_region, data); in cs_dsp_mock_wmfw_start_alg_info_block() 195 bytes_needed += offsetof(struct wmfw_adsp_alg_data, data); in cs_dsp_mock_wmfw_start_alg_info_block() 197 (builder->write_p + bytes_needed) < in cs_dsp_mock_wmfw_start_alg_info_block() 200 memset(builder->write_p, 0, bytes_needed); in cs_dsp_mock_wmfw_start_alg_info_block() 224 bytes_needed += sizeof(__le32); /* alg id */ in cs_dsp_mock_wmfw_start_alg_info_block() [all …]
|
| H A D | cs_dsp_mock_bin.c | 69 size_t bytes_needed = struct_size_t(struct wmfw_coeff_item, data, payload_len_bytes); in cs_dsp_mock_bin_add_raw_block() local 72 (builder->write_p + bytes_needed) < in cs_dsp_mock_bin_add_raw_block() 86 builder->write_p += bytes_needed; in cs_dsp_mock_bin_add_raw_block() 87 builder->bytes_used += bytes_needed; in cs_dsp_mock_bin_add_raw_block()
|
| /linux/fs/ocfs2/ |
| H A D | slot_map.c | 212 unsigned long long bytes_needed; in ocfs2_slot_map_physical_size() local 215 bytes_needed = osb->max_slots * in ocfs2_slot_map_physical_size() 218 bytes_needed = osb->max_slots * sizeof(__le16); in ocfs2_slot_map_physical_size() 220 if (bytes_needed > i_size_read(inode)) { in ocfs2_slot_map_physical_size() 223 i_size_read(inode), bytes_needed); in ocfs2_slot_map_physical_size() 227 *bytes = bytes_needed; in ocfs2_slot_map_physical_size()
|
| /linux/drivers/hid/ |
| H A D | hid-rmi.c | 195 int bytes_needed; in rmi_hid_read_block() local 227 bytes_needed = len; in rmi_hid_read_block() 240 min(read_input_count, bytes_needed)); in rmi_hid_read_block() 243 bytes_needed -= read_input_count; in rmi_hid_read_block()
|
| /linux/drivers/scsi/be2iscsi/ |
| H A D | be_main.c | 1492 pasync_ctx->async_entry[cri].wq.bytes_needed = 0; in beiscsi_hdl_purge_handles() 1646 pasync_ctx->async_entry[cri].wq.bytes_needed, in beiscsi_hdl_fwd_pdu() 1661 unsigned int bytes_needed = 0, status = 0; in beiscsi_hdl_gather_pdu() local 1677 bytes_needed = AMAP_GET_BITS(struct amap_pdu_base, in beiscsi_hdl_gather_pdu() 1679 bytes_needed <<= 16; in beiscsi_hdl_gather_pdu() 1680 bytes_needed |= be16_to_cpu(AMAP_GET_BITS(struct amap_pdu_base, in beiscsi_hdl_gather_pdu() 1684 wq->bytes_needed = bytes_needed; in beiscsi_hdl_gather_pdu() 1686 if (!bytes_needed) in beiscsi_hdl_gather_pdu() 1691 if (!wq->hdr_len || !wq->bytes_needed) { in beiscsi_hdl_gather_pdu() 1697 if (wq->bytes_received > wq->bytes_needed) { in beiscsi_hdl_gather_pdu() [all …]
|
| H A D | be_main.h | 569 unsigned int bytes_needed; member
|