Home
last modified time | relevance | path

Searched refs:cur_offset (Results 1 – 17 of 17) sorted by relevance

/drivers/firmware/efi/
A Dmokvar-table.c105 unsigned long cur_offset = 0; in efi_mokvar_table_init() local
135 while (cur_offset + sizeof(*mokvar_entry) <= offset_limit) { in efi_mokvar_table_init()
138 va = early_memremap(efi.mokvar_table + cur_offset, sizeof(*mokvar_entry)); in efi_mokvar_table_init()
141 efi.mokvar_table + cur_offset, sizeof(*mokvar_entry)); in efi_mokvar_table_init()
151 map_size_needed = cur_offset + sizeof(*mokvar_entry); in efi_mokvar_table_init()
160 cur_offset += size; in efi_mokvar_table_init()
/drivers/mtd/
A Dmtdpart.c43 int partno, uint64_t cur_offset) in allocate_partition() argument
97 child->part.offset = cur_offset; in allocate_partition()
99 tmp = cur_offset; in allocate_partition()
100 child->part.offset = cur_offset; in allocate_partition()
106 (unsigned long long)cur_offset, in allocate_partition()
111 child->part.offset = cur_offset; in allocate_partition()
399 uint64_t cur_offset = 0; in add_mtd_partitions() local
406 child = allocate_partition(parent, parts + i, i, cur_offset); in add_mtd_partitions()
435 cur_offset = child->part.offset + child->part.size; in add_mtd_partitions()
/drivers/scsi/esas2r/
A Desas2r_flash.c144 if (fc->sgc.cur_offset == NULL) in esas2r_fmapi_callback()
186 if (sgc->cur_offset) in build_flash_msg()
210 if (sgc->cur_offset) { in build_flash_msg()
368 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
393 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
407 fc->sgc.cur_offset = fc->sgc_offset in fw_download_proc()
442 fc->sgc.cur_offset = fc->sgc_offset in fw_download_proc()
478 fc->sgc.cur_offset = fc->sgc_offset in fw_download_proc()
512 fc->sgc.cur_offset = fc->sgc_offset in fw_download_proc()
1406 fc->sgc_offset = sgc->cur_offset; in esas2r_fm_api()
[all …]
A Desas2r_ioctl.c95 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api()
104 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api_header()
155 a->fm_api_sgc.cur_offset = a->save_offset; in do_fm_api()
194 int offset = (u8 *)sgc->cur_offset - esas2r_buffered_ioctl; in get_physaddr_buffered_ioctl()
265 sgc.cur_offset = esas2r_buffered_ioctl + bi->offset; in handle_buffered_ioctl()
1003 sgc->cur_offset += offsetof(struct atto_ioctl, data.byte) in hba_ioctl_callback()
1812 int offset = (u8 *)sgc->cur_offset - (u8 *)a->vda_buffer; in get_physaddr_vda()
1848 sgc.cur_offset = a->vda_buffer + VDA_BUFFER_HEADER_SZ; in esas2r_read_vda()
1933 u32 offset = (u8 *)sgc->cur_offset - (u8 *)fs; in get_physaddr_fs_api()
1977 sgc.cur_offset = fs->data; in esas2r_read_fs()
A Desas2r_vda.c135 u8 *cmdcurr_offset = sgc->cur_offset in esas2r_process_vda_ioctl()
162 cmdcurr_offset = sgc->cur_offset; in esas2r_process_vda_ioctl()
195 sgc->cur_offset = cmdcurr_offset; in esas2r_process_vda_ioctl()
A Desas2r_io.c312 sgc->cur_offset += len; in esas2r_build_sg_list_sge()
423 sgc->cur_offset += len; in esas2r_build_prd_iblk()
496 sgc->cur_offset += len; in esas2r_build_prd_iblk()
A Desas2r_main.c766 if (likely(sgc->cur_offset == sgc->exp_offset)) { in get_physaddr_from_sgc()
790 } else if (sgc->cur_offset < sgc->exp_offset) { in get_physaddr_from_sgc()
803 (sgc->cur_offset - sgc->exp_offset); in get_physaddr_from_sgc()
809 sgc->exp_offset - sgc->cur_offset); in get_physaddr_from_sgc()
864 sgc.cur_offset = NULL; in esas2r_queuecommand()
A Desas2r_disc.c896 sgc.cur_offset = NULL; in esas2r_disc_passthru_dev_addr()
A Desas2r.h604 u8 *cur_offset; member
/drivers/vfio/pci/pds/
A Dlm.c135 unsigned long cur_offset = 0; in pds_vfio_get_file_page() local
146 cur_offset = lm_file->last_offset; in pds_vfio_get_file_page()
150 if (offset < sg->length + cur_offset) { in pds_vfio_get_file_page()
153 lm_file->last_offset = cur_offset; in pds_vfio_get_file_page()
155 (offset - cur_offset) / PAGE_SIZE); in pds_vfio_get_file_page()
157 cur_offset += sg->length; in pds_vfio_get_file_page()
/drivers/clk/
A Dclk-sparx5.c81 ulong cur_offset, best_offset = rate; in s5_search_fractional() local
95 cur_offset = abs(rate - conf->freq); in s5_search_fractional()
96 if (cur_offset < best_offset) { in s5_search_fractional()
97 best_offset = cur_offset; in s5_search_fractional()
/drivers/media/platform/verisilicon/
A Drockchip_vpu981_hw_av1_dec.c1597 int cur_offset[V4L2_AV1_TOTAL_REFS_PER_FRAME - 1]; in rockchip_vpu981_av1_dec_set_other_frames() local
1697 cur_offset[rf] = in rockchip_vpu981_av1_dec_set_other_frames()
1702 cur_offset[rf] = 0; in rockchip_vpu981_av1_dec_set_other_frames()
1721 cur_offset[mf_types[0] - V4L2_AV1_REF_LAST_FRAME] <= MAX_FRAME_DISTANCE && in rockchip_vpu981_av1_dec_set_other_frames()
1832 hantro_reg_write(vpu, &av1_cur_last_offset, cur_offset[0]); in rockchip_vpu981_av1_dec_set_other_frames()
1833 hantro_reg_write(vpu, &av1_cur_last2_offset, cur_offset[1]); in rockchip_vpu981_av1_dec_set_other_frames()
1834 hantro_reg_write(vpu, &av1_cur_last3_offset, cur_offset[2]); in rockchip_vpu981_av1_dec_set_other_frames()
1835 hantro_reg_write(vpu, &av1_cur_golden_offset, cur_offset[3]); in rockchip_vpu981_av1_dec_set_other_frames()
1836 hantro_reg_write(vpu, &av1_cur_bwdref_offset, cur_offset[4]); in rockchip_vpu981_av1_dec_set_other_frames()
1837 hantro_reg_write(vpu, &av1_cur_altref2_offset, cur_offset[5]); in rockchip_vpu981_av1_dec_set_other_frames()
[all …]
/drivers/vfio/pci/virtio/
A Dmigrate.c37 unsigned long cur_offset = 0; in virtiovf_get_migration_page() local
48 cur_offset = buf->last_offset; in virtiovf_get_migration_page()
52 if (offset < sg->length + cur_offset) { in virtiovf_get_migration_page()
55 buf->last_offset = cur_offset; in virtiovf_get_migration_page()
57 (offset - cur_offset) / PAGE_SIZE); in virtiovf_get_migration_page()
59 cur_offset += sg->length; in virtiovf_get_migration_page()
/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_surface.c291 const struct vmw_surface_offset *cur_offset = &srf->offsets[i]; in vmw_surface_dma_encode() local
298 body->guest.ptr.offset += cur_offset->bo_offset; in vmw_surface_dma_encode()
301 body->host.face = cur_offset->face; in vmw_surface_dma_encode()
302 body->host.mipmap = cur_offset->mip; in vmw_surface_dma_encode()
721 struct vmw_surface_offset *cur_offset; in vmw_surface_define_ioctl() local
783 cur_offset = srf->offsets; in vmw_surface_define_ioctl()
791 cur_offset->face = i; in vmw_surface_define_ioctl()
792 cur_offset->mip = j; in vmw_surface_define_ioctl()
793 cur_offset->bo_offset = cur_bo_offset; in vmw_surface_define_ioctl()
796 ++cur_offset; in vmw_surface_define_ioctl()
/drivers/net/wireless/mediatek/mt76/mt7603/
A Dinit.c461 int max_offset, cur_offset; in mt7603_init_txpower() local
473 cur_offset = mt7603_txpower_signed(rate_power[i]); in mt7603_init_txpower()
474 max_offset = max(max_offset, cur_offset); in mt7603_init_txpower()
/drivers/scsi/bnx2i/
A Dbnx2i_iscsi.c60 u32 cur_offset = 0; in bnx2i_get_write_cmd_bd_idx() local
64 while (buf_off >= (cur_offset + bd_tbl->buffer_length)) { in bnx2i_get_write_cmd_bd_idx()
65 cur_offset += bd_tbl->buffer_length; in bnx2i_get_write_cmd_bd_idx()
71 *start_bd_off = buf_off - cur_offset; in bnx2i_get_write_cmd_bd_idx()
/drivers/gpu/drm/display/
A Ddrm_dp_mst_topology.c711 txmsg->cur_offset, txmsg->cur_len, txmsg->seqno, in drm_dp_mst_dump_sideband_msg_tx()
2813 len = txmsg->cur_len - txmsg->cur_offset; in process_single_tx_qlock()
2827 memcpy(&chunk[idx], &txmsg->msg[txmsg->cur_offset], tosend); in process_single_tx_qlock()
2845 txmsg->cur_offset += tosend; in process_single_tx_qlock()
2846 if (txmsg->cur_offset == txmsg->cur_len) { in process_single_tx_qlock()

Completed in 58 milliseconds