Home
last modified time | relevance | path

Searched refs:data_offset (Results 1 – 25 of 229) sorted by relevance

12345678910

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_atomfirmware.c51 u16 data_offset, size; in amdgpu_atomfirmware_query_firmware_capability() local
60 index, &size, &frev, &crev, &data_offset)) { in amdgpu_atomfirmware_query_firmware_capability()
64 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_query_firmware_capability()
92 uint16_t data_offset; in amdgpu_atomfirmware_scratch_regs_init() local
95 NULL, NULL, &data_offset)) { in amdgpu_atomfirmware_scratch_regs_init()
98 data_offset); in amdgpu_atomfirmware_scratch_regs_init()
180 u16 data_offset; in amdgpu_atomfirmware_allocate_fb_scratch() local
184 if (amdgpu_atom_parse_data_header(ctx, index, NULL, &frev, &crev, &data_offset)) { in amdgpu_atomfirmware_allocate_fb_scratch()
187 (struct vram_usagebyfirmware_v2_1 *)(ctx->bios + data_offset); in amdgpu_atomfirmware_allocate_fb_scratch()
193 (struct vram_usagebyfirmware_v2_2 *)(ctx->bios + data_offset); in amdgpu_atomfirmware_allocate_fb_scratch()
[all …]
H A Damdgpu_atombios.c97 uint16_t data_offset, size; in amdgpu_atombios_lookup_i2c_gpio() local
103 if (amdgpu_atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) { in amdgpu_atombios_lookup_i2c_gpio()
104 i2c_info = (struct _ATOM_GPIO_I2C_INFO *)(ctx->bios + data_offset); in amdgpu_atombios_lookup_i2c_gpio()
133 uint16_t data_offset, size; in amdgpu_atombios_i2c_init() local
137 if (amdgpu_atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) { in amdgpu_atombios_i2c_init()
138 i2c_info = (struct _ATOM_GPIO_I2C_INFO *)(ctx->bios + data_offset); in amdgpu_atombios_i2c_init()
168 u16 data_offset, size; in amdgpu_atombios_lookup_gpio() local
174 if (amdgpu_atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) { in amdgpu_atombios_lookup_gpio()
175 gpio_info = (struct _ATOM_GPIO_PIN_LUT *)(ctx->bios + data_offset); in amdgpu_atombios_lookup_gpio()
269 u16 size, data_offset; in amdgpu_atombios_has_dce_engine_info() local
[all …]
/linux/drivers/input/rmi4/
H A Drmi_f12.c352 u16 data_offset = 0; in rmi_f12_probe() local
463 data_offset += item->reg_size; in rmi_f12_probe()
468 f12->data1_offset = data_offset; in rmi_f12_probe()
469 data_offset += item->reg_size; in rmi_f12_probe()
477 data_offset += item->reg_size; in rmi_f12_probe()
481 data_offset += item->reg_size; in rmi_f12_probe()
485 data_offset += item->reg_size; in rmi_f12_probe()
490 f12->data5_offset = data_offset; in rmi_f12_probe()
491 data_offset += item->reg_size; in rmi_f12_probe()
498 f12->data6_offset = data_offset; in rmi_f12_probe()
[all …]
/linux/drivers/nvmem/layouts/
H A Du-boot-env.c55 size_t data_offset, size_t data_len) in u_boot_env_parse_cells() argument
57 char *data = buf + data_offset; in u_boot_env_parse_cells()
74 info.offset = data_offset + value - data; in u_boot_env_parse_cells()
96 size_t data_offset; in u_boot_env_parse() local
126 data_offset = offsetof(struct u_boot_env_image_single, data); in u_boot_env_parse()
131 data_offset = offsetof(struct u_boot_env_image_redundant, data); in u_boot_env_parse()
136 data_offset = offsetof(struct u_boot_env_image_broadcom, data); in u_boot_env_parse()
140 if (dev_size < data_offset) { in u_boot_env_parse()
149 data_len = dev_size - data_offset; in u_boot_env_parse()
159 err = u_boot_env_parse_cells(dev, nvmem, buf, data_offset, data_len); in u_boot_env_parse()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_atombios.c136 uint16_t data_offset, size; in radeon_lookup_i2c_gpio() local
142 if (atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) { in radeon_lookup_i2c_gpio()
143 i2c_info = (struct _ATOM_GPIO_I2C_INFO *)(ctx->bios + data_offset); in radeon_lookup_i2c_gpio()
172 uint16_t data_offset, size; in radeon_atombios_i2c_init() local
176 if (atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) { in radeon_atombios_i2c_init()
177 i2c_info = (struct _ATOM_GPIO_I2C_INFO *)(ctx->bios + data_offset); in radeon_atombios_i2c_init()
206 u16 data_offset, size; in radeon_atombios_lookup_gpio() local
212 if (atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) { in radeon_atombios_lookup_gpio()
213 gpio_info = (struct _ATOM_GPIO_PIN_LUT *)(ctx->bios + data_offset); in radeon_atombios_lookup_gpio()
523 u16 size, data_offset; in radeon_get_atom_connector_info_from_object_table() local
[all …]
H A Dr600_dpm.c848 u16 data_offset; in r600_get_platform_caps() local
852 &frev, &crev, &data_offset)) in r600_get_platform_caps()
854 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in r600_get_platform_caps()
878 u16 data_offset; in r600_parse_extended_power_table() local
883 &frev, &crev, &data_offset)) in r600_parse_extended_power_table()
885 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in r600_parse_extended_power_table()
891 fan_info = (union fan_info *)(mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
922 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
931 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
942 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
[all …]
/linux/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dlegacy_dpm.c164 u16 data_offset; in amdgpu_get_platform_caps() local
168 &frev, &crev, &data_offset)) in amdgpu_get_platform_caps()
170 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_get_platform_caps()
227 u16 data_offset; in amdgpu_parse_extended_power_table() local
232 &frev, &crev, &data_offset)) in amdgpu_parse_extended_power_table()
234 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_parse_extended_power_table()
240 fan_info = (union fan_info *)(mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
271 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
280 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
289 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
[all …]
/linux/drivers/gpu/drm/tegra/
H A Driscv.c53 READ_PROP("nvidia,bl-data-offset", &bl->data_offset); in tegra_drm_riscv_read_descriptors()
56 READ_PROP("nvidia,os-data-offset", &os->data_offset); in tegra_drm_riscv_read_descriptors()
60 bl->data_offset == 0 && os->manifest_offset == 0 && in tegra_drm_riscv_read_descriptors()
61 os->code_offset == 0 && os->data_offset == 0) { in tegra_drm_riscv_read_descriptors()
86 addr = image_address + desc->data_offset; in tegra_drm_riscv_boot_bootrom()
/linux/tools/testing/selftests/kvm/
H A Dkvm_binary_stats_test.c64 header.data_offset && header.data_offset >= sizeof(header), in stats_test()
67 TEST_ASSERT(header.desc_offset > header.data_offset || in stats_test()
68 (header.desc_offset + size_desc * header.num_desc <= header.data_offset), in stats_test()
144 TEST_ASSERT(header.data_offset >= header.desc_offset || in stats_test()
145 header.data_offset + size_data <= header.desc_offset, in stats_test()
156 ret = pread(stats_fd, stats_data, size_data, header.data_offset); in stats_test()
/linux/drivers/net/wireguard/
H A Dreceive.c49 size_t data_offset, data_len, header_len; in prepare_skb_header() local
58 data_offset = (u8 *)udp - skb->data; in prepare_skb_header()
59 if (unlikely(data_offset > U16_MAX || in prepare_skb_header()
60 data_offset + sizeof(struct udphdr) > skb->len)) in prepare_skb_header()
67 data_len > skb->len - data_offset)) in prepare_skb_header()
73 data_offset = (u8 *)udp + sizeof(struct udphdr) - skb->data; in prepare_skb_header()
75 data_offset + sizeof(struct message_header)) || in prepare_skb_header()
76 pskb_trim(skb, data_len + data_offset) < 0)) in prepare_skb_header()
78 skb_pull(skb, data_offset); in prepare_skb_header()
85 __skb_push(skb, data_offset); in prepare_skb_header()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dga102.c221 u32 data_offset; member
294 .data = (void *)fw->data + reg->data_offset, in ga102_gr_load()
299 reg->region_id, reg->data_offset, reg->data_size); in ga102_gr_load()
322 fw->data + fecs_inst->data_offset, in ga102_gr_load()
324 fw->data + fecs_data->data_offset, in ga102_gr_load()
331 fw->data + gpccs_inst->data_offset, in ga102_gr_load()
333 fw->data + gpccs_data->data_offset, in ga102_gr_load()
/linux/fs/smb/client/
H A Dcifssmb.c2091 __u16 data_offset; in CIFSSMBPosixLock() local
2099 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBPosixLock()
2106 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBPosixLock()
2263 char *data_offset; in CIFSSMBRenameOpenFile() local
2286 data_offset = (char *)(pSMB) + offset + 4; in CIFSSMBRenameOpenFile()
2287 rename_info = (struct set_file_rename *) data_offset; in CIFSSMBRenameOpenFile()
2346 char *data_offset; in CIFSUnixCreateSymLink() local
2382 data_offset = (char *)pSMB + offset + 4; in CIFSUnixCreateSymLink()
2385 cifsConvertToUTF16((__le16 *) data_offset, toName, in CIFSUnixCreateSymLink()
2391 name_len_target = copy_path_name(data_offset, toName); in CIFSUnixCreateSymLink()
[all …]
/linux/drivers/gpu/drm/amd/display/modules/hdcp/
H A Dhdcp_ddc.c159 uint32_t data_offset = 0; in read() local
173 hdcp_dpcd_addrs[msg_id] + data_offset, in read()
174 buf + data_offset, in read()
181 data_offset += cur_size; in read()
207 uint32_t data_offset = 0; in read_repeatedly() local
211 status = read(hdcp, msg_id, buf + data_offset, cur_size); in read_repeatedly()
217 data_offset += cur_size; in read_repeatedly()
230 uint32_t data_offset = 0; in write() local
245 hdcp_dpcd_addrs[msg_id] + data_offset, in write()
246 buf + data_offset, in write()
[all …]
/linux/drivers/thunderbolt/
H A Dproperty.c351 unsigned int data_offset, dir_end; in __tb_property_format_dir() local
403 data_offset = start_offset + dir_len; in __tb_property_format_dir()
406 if (data_offset > dir_end) in __tb_property_format_dir()
447 format_dwdata(&block[data_offset], property->value.data, in __tb_property_format_dir()
450 entry->value = data_offset; in __tb_property_format_dir()
451 data_offset += entry->length; in __tb_property_format_dir()
455 format_dwdata(&block[data_offset], property->value.text, in __tb_property_format_dir()
458 entry->value = data_offset; in __tb_property_format_dir()
459 data_offset += entry->length; in __tb_property_format_dir()
/linux/tools/perf/util/
H A Dhisi-ptt.c96 off_t data_offset; in hisi_ptt_process_auxtrace_event() local
103 data_offset = 0; in hisi_ptt_process_auxtrace_event()
105 data_offset = lseek(fd, 0, SEEK_CUR); in hisi_ptt_process_auxtrace_event()
106 if (data_offset == -1) { in hisi_ptt_process_auxtrace_event()
/linux/drivers/scsi/
H A Dlibiscsi_tcp.c512 tcp_task->data_offset = be32_to_cpu(rhdr->offset); in iscsi_tcp_data_in()
513 if (tcp_task->data_offset + tcp_conn->in.datalen > total_in_length) { in iscsi_tcp_data_in()
515 "total_length_in(%d)\n", tcp_task->data_offset, in iscsi_tcp_data_in()
538 u32 data_offset; in iscsi_tcp_r2t_rsp() local
611 data_offset = be32_to_cpu(rhdr->data_offset); in iscsi_tcp_r2t_rsp()
612 if (data_offset + data_length > task->sc->sdb.length) { in iscsi_tcp_r2t_rsp()
616 data_offset, task->sc->sdb.length); in iscsi_tcp_r2t_rsp()
634 r2t->data_offset = data_offset; in iscsi_tcp_r2t_rsp()
750 tcp_task->data_offset, in iscsi_tcp_hdr_dissect()
756 tcp_task->data_offset, in iscsi_tcp_hdr_dissect()
[all …]
/linux/drivers/media/platform/st/sti/delta/
H A Ddelta-mjpeg-hdr.c86 unsigned int *data_offset) in delta_mjpeg_read_header() argument
104 *data_offset = offset; in delta_mjpeg_read_header()
137 *data_offset, in delta_mjpeg_read_header()
H A Ddelta-mjpeg-dec.c378 unsigned int data_offset = 0; in delta_mjpeg_decode() local
383 header, &data_offset); in delta_mjpeg_decode()
409 ctx->header, &data_offset); in delta_mjpeg_decode()
415 au.paddr += data_offset; in delta_mjpeg_decode()
416 au.vaddr += data_offset; in delta_mjpeg_decode()
/linux/fs/proc/
H A Dkcore.c105 size_t *data_offset) in get_kcore_size() argument
128 *data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + *phdrs_len + in get_kcore_size()
130 return *data_offset + size; in get_kcore_size()
274 size_t phdrs_len, notes_len, data_offset; in kcore_update_ram() local
297 &data_offset); in kcore_update_ram()
329 size_t phdrs_offset, notes_offset, data_offset; in read_kcore_iter() local
347 get_kcore_size(&nphdr, &phdrs_len, &notes_len, &data_offset); in read_kcore_iter()
402 phdr->p_offset = kc_vaddr_to_offset(m->addr) + data_offset; in read_kcore_iter()
480 start = kc_offset_to_vaddr(*fpos - data_offset); in read_kcore_iter()
/linux/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c30 unsigned long data_offset; member
278 ioread8_rep(cs->base + nfc->soc_info->data_offset, in ingenic_nand_exec_instr()
282 ioread16_rep(cs->base + nfc->soc_info->data_offset, in ingenic_nand_exec_instr()
289 iowrite8_rep(cs->base + nfc->soc_info->data_offset, in ingenic_nand_exec_instr()
293 iowrite16_rep(cs->base + nfc->soc_info->data_offset, in ingenic_nand_exec_instr()
523 .data_offset = 0x00000000,
530 .data_offset = 0x00000000,
537 .data_offset = 0x00000000,
/linux/tools/testing/selftests/ftrace/test.d/00basic/
H A Dringbuffer_subbuf_size.tc31 data_offset=`get_buffer_data_offset`
61 page_size=$((page_size-data_offset))
/linux/drivers/md/
H A Ddm-raid.c241 int data_offset; member
849 rs->dev[i].rdev.data_offset = 0; in parse_dev_params()
1390 rs->data_offset = value; in parse_raid_params()
1637 reshape_sectors = (rdev->data_offset > rdev->new_data_offset) ? in _get_reshape_sectors()
1638 rdev->data_offset - rdev->new_data_offset : in _get_reshape_sectors()
1639 rdev->new_data_offset - rdev->data_offset; in _get_reshape_sectors()
1643 return max(reshape_sectors, (sector_t) rs->data_offset); in _get_reshape_sectors()
2018 __le64 data_offset; member
2181 sb->data_offset = cpu_to_le64(rdev->data_offset); in super_sync()
2523 rdev->data_offset = le64_to_cpu(sb->data_offset); in super_validate()
[all …]
/linux/drivers/net/usb/
H A Drndis_host.c508 u32 msg_type, msg_len, data_offset, data_len; in rndis_rx_fixup() local
512 data_offset = le32_to_cpu(hdr->data_offset); in rndis_rx_fixup()
517 || (data_offset + data_len + 8) > msg_len)) { in rndis_rx_fixup()
521 msg_len, data_offset, data_len, skb->len); in rndis_rx_fixup()
524 skb_pull(skb, 8 + data_offset); in rndis_rx_fixup()
592 hdr->data_offset = cpu_to_le32(sizeof(*hdr) - 8); in rndis_tx_fixup()
/linux/drivers/media/pci/netup_unidvb/
H A Dnetup_unidvb_core.c238 dma->data_offset = (u32)(dma->addr_last - dma->addr_phys); in netup_dma_interrupt()
552 if (dma->data_offset + dma->data_size > dma->ring_buffer_size) { in netup_unidvb_ring_copy()
553 ring_bytes = dma->ring_buffer_size - dma->data_offset; in netup_unidvb_ring_copy()
556 memcpy_fromio(p, (u8 __iomem *)(dma->addr_virt + dma->data_offset), copy_bytes); in netup_unidvb_ring_copy()
561 dma->data_offset += copy_bytes; in netup_unidvb_ring_copy()
562 if (dma->data_offset == dma->ring_buffer_size) in netup_unidvb_ring_copy()
563 dma->data_offset = 0; in netup_unidvb_ring_copy()
569 memcpy_fromio(p, (u8 __iomem *)(dma->addr_virt + dma->data_offset), copy_bytes); in netup_unidvb_ring_copy()
572 dma->data_offset += copy_bytes; in netup_unidvb_ring_copy()
573 if (dma->data_offset == dma->ring_buffer_size) in netup_unidvb_ring_copy()
[all …]
/linux/drivers/net/ethernet/marvell/octeon_ep_vf/
H A Doctep_vf_rx.c361 u16 data_offset, rx_ol_flags; in __octep_vf_oq_process_rx() local
387 data_offset = OCTEP_VF_OQ_RESP_HW_SIZE + in __octep_vf_oq_process_rx()
394 data_offset = OCTEP_VF_OQ_RESP_HW_SIZE; in __octep_vf_oq_process_rx()
401 skb_reserve(skb, data_offset); in __octep_vf_oq_process_rx()
412 skb_reserve(skb, data_offset); in __octep_vf_oq_process_rx()

12345678910