Home
last modified time | relevance | path

Searched refs:bytes_needed (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/firmware/cirrus/test/
H A Dcs_dsp_mock_wmfw.c104 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 …]
/linux/fs/ocfs2/
H A Dslot_map.c216 unsigned long long bytes_needed; in ocfs2_slot_map_physical_size() local
219 bytes_needed = osb->max_slots * in ocfs2_slot_map_physical_size()
222 bytes_needed = osb->max_slots * sizeof(__le16); in ocfs2_slot_map_physical_size()
224 if (bytes_needed > i_size_read(inode)) { in ocfs2_slot_map_physical_size()
227 i_size_read(inode), bytes_needed); in ocfs2_slot_map_physical_size()
231 *bytes = bytes_needed; in ocfs2_slot_map_physical_size()
/linux/drivers/hid/
H A Dhid-rmi.c195 int bytes_needed; in rmi_hid_read_block() local
227 bytes_needed = len; in rmi_hid_read_block()
243 * bytes_read nor bytes_needed, and because a in rmi_hid_read_block()
256 min(read_input_count, bytes_needed)); in rmi_hid_read_block()
259 bytes_needed -= read_input_count; in rmi_hid_read_block()
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_capture.c1035 void *out, int bytes_needed) in guc_capture_log_remove_bytes() argument
1042 xe_assert(guc_to_xe(guc), bytes_needed % sizeof(u32) == 0); in guc_capture_log_remove_bytes()
1044 if (bytes_needed > guc_capture_buf_cnt(buf)) in guc_capture_log_remove_bytes()
1047 while (bytes_needed > 0 && tries--) { in guc_capture_log_remove_bytes()
1062 copy_size = avail < bytes_needed ? avail - misaligned : bytes_needed; in guc_capture_log_remove_bytes()
1067 bytes_needed -= copy_size; in guc_capture_log_remove_bytes()
/linux/drivers/scsi/be2iscsi/
H A Dbe_main.c1498 pasync_ctx->async_entry[cri].wq.bytes_needed = 0; in beiscsi_hdl_get_handle()
1652 pasync_ctx->async_entry[cri].wq.bytes_needed, in beiscsi_hdl_fwd_pdu()
1667 unsigned int bytes_needed = 0, status = 0; in beiscsi_hdl_gather_pdu()
1683 bytes_needed = AMAP_GET_BITS(struct amap_pdu_base, in beiscsi_hdl_gather_pdu()
1685 bytes_needed <<= 16; in beiscsi_hdl_gather_pdu()
1686 bytes_needed |= be16_to_cpu(AMAP_GET_BITS(struct amap_pdu_base, in beiscsi_hdl_gather_pdu()
1690 wq->bytes_needed = bytes_needed; in beiscsi_hdl_gather_pdu()
1692 if (!bytes_needed) in beiscsi_hdl_gather_pdu()
1697 if (!wq->hdr_len || !wq->bytes_needed) { in beiscsi_hdl_gather_pdu()
1661 unsigned int bytes_needed = 0, status = 0; beiscsi_hdl_gather_pdu() local
[all...]
H A Dbe_main.h569 unsigned int bytes_needed; member