/drivers/staging/media/atomisp/pci/ |
D | ia_css_isp_configs.c | 24 int ia_css_configure_iterator(const struct ia_css_binary *binary, in ia_css_configure_iterator() argument 32 if (!binary->info->mem_offsets.offsets.config) in ia_css_configure_iterator() 35 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator() 39 offset = binary->info->mem_offsets.offsets.config->dmem.iterator.offset; in ia_css_configure_iterator() 42 &binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset], in ia_css_configure_iterator() 47 int ia_css_configure_copy_output(const struct ia_css_binary *binary, in ia_css_configure_copy_output() argument 55 if (!binary->info->mem_offsets.offsets.config) in ia_css_configure_copy_output() 58 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output() 62 offset = binary->info->mem_offsets.offsets.config->dmem.copy_output.offset; in ia_css_configure_copy_output() 65 &binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset], in ia_css_configure_copy_output() [all …]
|
D | ia_css_isp_states.c | 26 const struct ia_css_binary *binary) in ia_css_initialize_aa_state() argument 32 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.aa.size; in ia_css_initialize_aa_state() 34 unsigned int offset = binary->info->mem_offsets.offsets.state->vmem.aa.offset; in ia_css_initialize_aa_state() 37 memset(&binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset], in ia_css_initialize_aa_state() 48 const struct ia_css_binary *binary) in ia_css_initialize_cnr_state() argument 54 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state() 56 unsigned int offset = binary->info->mem_offsets.offsets.state->vmem.cnr.offset; in ia_css_initialize_cnr_state() 60 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset], in ia_css_initialize_cnr_state() 72 const struct ia_css_binary *binary) in ia_css_initialize_cnr2_state() argument 78 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.cnr2.size; in ia_css_initialize_cnr2_state() [all …]
|
D | ia_css_isp_params.c | 76 stage->binary->info->mem_offsets.offsets.param->dmem.aa.size; in ia_css_process_aa() 78 stage->binary->info->mem_offsets.offsets.param->dmem.aa.offset; in ia_css_process_aa() 82 … &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset]; in ia_css_process_aa() 99 stage->binary->info->mem_offsets.offsets.param->dmem.anr.size; in ia_css_process_anr() 102 stage->binary->info->mem_offsets.offsets.param->dmem.anr.offset; in ia_css_process_anr() 109 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset], in ia_css_process_anr() 134 stage->binary->info->mem_offsets.offsets.param->vmem.anr2.size; in ia_css_process_anr2() 137 stage->binary->info->mem_offsets.offsets.param->vmem.anr2.offset; in ia_css_process_anr2() 144 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset], in ia_css_process_anr2() 169 stage->binary->info->mem_offsets.offsets.param->dmem.bh.size; in ia_css_process_bh() [all …]
|
D | ia_css_isp_configs.h | 79 int ia_css_configure_iterator(const struct ia_css_binary *binary, 82 int ia_css_configure_copy_output(const struct ia_css_binary *binary, 85 int ia_css_configure_crop(const struct ia_css_binary *binary, 88 int ia_css_configure_fpn(const struct ia_css_binary *binary, 91 int ia_css_configure_dvs(const struct ia_css_binary *binary, 94 int ia_css_configure_qplane(const struct ia_css_binary *binary, 96 int ia_css_configure_output0(const struct ia_css_binary *binary, 99 int ia_css_configure_output1(const struct ia_css_binary *binary, 102 int ia_css_configure_output(const struct ia_css_binary *binary, 105 int ia_css_configure_raw(const struct ia_css_binary *binary, [all …]
|
D | sh_css_sp.c | 521 sp_frame_out->planes.binary.data.offset = in sh_css_copy_frame_to_spframe() 522 frame_in->planes.binary.data.offset; in sh_css_copy_frame_to_spframe() 785 copy_isp_mem_if_to_ddr(struct ia_css_binary *binary) in copy_isp_mem_if_to_ddr() argument 790 &binary->css_params, in copy_isp_mem_if_to_ddr() 791 &binary->mem_params, in copy_isp_mem_if_to_ddr() 796 &binary->css_params, in copy_isp_mem_if_to_ddr() 797 &binary->mem_params, in copy_isp_mem_if_to_ddr() 812 const struct ia_css_binary *binary, in configure_isp_from_args() argument 819 ret = ia_css_fpn_configure(binary, &binary->in_frame_info); in configure_isp_from_args() 822 ret = ia_css_crop_configure(binary, &args->delay_frames[0]->info); in configure_isp_from_args() [all …]
|
D | sh_css_param_shading.c | 237 const struct ia_css_binary *binary, in prepare_shading_table() argument 248 assert(binary); in prepare_shading_table() 252 binary->sctbl_width_per_color, in prepare_shading_table() 253 binary->sctbl_height); in prepare_shading_table() 262 input_height = binary->in_frame_info.res.height; in prepare_shading_table() 263 input_width = binary->in_frame_info.res.width; in prepare_shading_table() 264 left_padding = binary->left_padding; in prepare_shading_table() 265 left_cropping = (binary->info->sp.pipeline.left_cropping == 0) ? in prepare_shading_table() 266 binary->dvs_envelope.width : 2 * ISP_VEC_NELEMS; in prepare_shading_table() 271 left_padding = (left_padding + binary->info->sp.pipeline.left_cropping) * in prepare_shading_table() [all …]
|
D | sh_css_params.c | 101 #define FPNTBL_BYTES(binary) \ argument 102 (sizeof(char) * (binary)->in_frame_info.res.height * \ 103 (binary)->in_frame_info.padded_width) 105 #define SCTBL_BYTES(binary) \ argument 106 (sizeof(unsigned short) * (binary)->sctbl_height * \ 107 (binary)->sctbl_aligned_width_per_color * IA_CSS_SC_NUM_COLORS) 109 #define MORPH_PLANE_BYTES(binary) \ argument 110 (SH_CSS_MORPH_TABLE_ELEM_BYTES * (binary)->morph_tbl_aligned_width * \ 111 (binary)->morph_tbl_height) 877 if (!stage || !stage->binary) continue; in ia_css_process_kernel() [all …]
|
D | sh_css_param_dvs.h | 60 #define DVS_6AXIS_BYTES(binary) \ argument 62 * DVS_NUM_BLOCKS_X((binary)->out_frame_info[0].res.width) \ 63 * DVS_NUM_BLOCKS_Y((binary)->out_frame_info[0].res.height))
|
/drivers/staging/media/atomisp/pci/runtime/binary/src/ |
D | binary.c | 124 const struct ia_css_binary *binary, /* [in] */ in ia_css_binary_compute_shading_table_bayer_origin() argument 176 left_padding_bqs = _ISP_BQS(binary->left_padding); in ia_css_binary_compute_shading_table_bayer_origin() 187 need_bds_factor_2_00 = ((binary->info->sp.bds.supported_bds_factors & in ia_css_binary_compute_shading_table_bayer_origin() 197 if (need_bds_factor_2_00 && binary->info->sp.pipeline.left_cropping > 0) in ia_css_binary_compute_shading_table_bayer_origin() 249 binary_get_shading_info_type_1(const struct ia_css_binary *binary, /* [in] */ in binary_get_shading_info_type_1() argument 257 assert(binary); in binary_get_shading_info_type_1() 262 info->info.type_1.enable = binary->info->sp.enable.sc; in binary_get_shading_info_type_1() 263 info->info.type_1.num_hor_grids = binary->sctbl_width_per_color; in binary_get_shading_info_type_1() 264 info->info.type_1.num_ver_grids = binary->sctbl_height; in binary_get_shading_info_type_1() 265 info->info.type_1.bqs_per_grid_cell = (1 << binary->deci_factor_log2); in binary_get_shading_info_type_1() [all …]
|
/drivers/staging/media/atomisp/pci/isp/kernels/iterator/iterator_1.0/ |
D | ia_css_iterator.host.c | 41 int ia_css_iterator_configure(const struct ia_css_binary *binary, in ia_css_iterator_configure() argument 47 config.input_info = &binary->in_frame_info; in ia_css_iterator_configure() 48 config.internal_info = &binary->internal_frame_info; in ia_css_iterator_configure() 49 config.output_info = &binary->out_frame_info[0]; in ia_css_iterator_configure() 50 config.vf_info = &binary->vf_frame_info; in ia_css_iterator_configure() 51 config.dvs_envelope = &binary->dvs_envelope; in ia_css_iterator_configure() 59 if (binary->out_frame_info[0].res.width == 0) in ia_css_iterator_configure() 60 config.output_info = &binary->out_frame_info[1]; in ia_css_iterator_configure() 67 if (binary->info->sp.pipeline.mode == IA_CSS_BINARY_MODE_PREVIEW && in ia_css_iterator_configure() 68 binary->vf_downscale_log2 > 0) in ia_css_iterator_configure() [all …]
|
/drivers/staging/media/atomisp/pci/camera/pipe/src/ |
D | pipe_stagedesc.c | 22 struct ia_css_binary *binary, in ia_css_pipe_get_generic_stage_desc() argument 30 stage_desc, binary, out_frame, in_frame, vf_frame); in ia_css_pipe_get_generic_stage_desc() 32 assert(stage_desc && binary && binary->info); in ia_css_pipe_get_generic_stage_desc() 33 if (!stage_desc || !binary || !binary->info) { in ia_css_pipe_get_generic_stage_desc() 38 stage_desc->binary = binary; in ia_css_pipe_get_generic_stage_desc() 42 stage_desc->mode = binary->info->sp.pipeline.mode; in ia_css_pipe_get_generic_stage_desc() 54 struct ia_css_binary *binary, in ia_css_pipe_get_firmwares_stage_desc() argument 65 stage_desc->binary = binary; in ia_css_pipe_get_firmwares_stage_desc() 79 struct ia_css_binary *binary, in ia_css_pipe_get_acc_stage_desc() argument 86 stage_desc->binary = binary; in ia_css_pipe_get_acc_stage_desc() [all …]
|
/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ |
D | ia_css_bayer_io.host.c | 25 int ia_css_bayer_io_config(const struct ia_css_binary *binary, in ia_css_bayer_io_config() argument 32 &binary->in_frame_info; in ia_css_bayer_io_config() 41 if (binary->info->mem_offsets.offsets.param) { in ia_css_bayer_io_config() 42 size_get = binary->info->mem_offsets.offsets.param->dmem.get.size; in ia_css_bayer_io_config() 43 offset = binary->info->mem_offsets.offsets.param->dmem.get.offset; in ia_css_bayer_io_config() 48 &binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset]; in ia_css_bayer_io_config() 69 if (binary->info->mem_offsets.offsets.param) { in ia_css_bayer_io_config() 70 size_put = binary->info->mem_offsets.offsets.param->dmem.put.size; in ia_css_bayer_io_config() 71 offset = binary->info->mem_offsets.offsets.param->dmem.put.offset; in ia_css_bayer_io_config() 76 &binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset]; in ia_css_bayer_io_config()
|
/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/yuv444_io_ls/ |
D | ia_css_yuv444_io.host.c | 25 int ia_css_yuv444_io_config(const struct ia_css_binary *binary, in ia_css_yuv444_io_config() argument 32 &binary->in_frame_info; in ia_css_yuv444_io_config() 41 if (binary->info->mem_offsets.offsets.param) { in ia_css_yuv444_io_config() 42 size_get = binary->info->mem_offsets.offsets.param->dmem.get.size; in ia_css_yuv444_io_config() 43 offset = binary->info->mem_offsets.offsets.param->dmem.get.offset; in ia_css_yuv444_io_config() 48 &binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset]; in ia_css_yuv444_io_config() 70 if (binary->info->mem_offsets.offsets.param) { in ia_css_yuv444_io_config() 71 size_put = binary->info->mem_offsets.offsets.param->dmem.put.size; in ia_css_yuv444_io_config() 72 offset = binary->info->mem_offsets.offsets.param->dmem.put.offset; in ia_css_yuv444_io_config() 77 &binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset]; in ia_css_yuv444_io_config()
|
/drivers/staging/media/atomisp/pci/runtime/ifmtr/src/ |
D | ifmtr.c | 76 struct ia_css_binary *binary) in ia_css_ifmtr_configure() argument 108 if (binary) { in ia_css_ifmtr_configure() 109 cropped_height = binary->in_frame_info.res.height; in ia_css_ifmtr_configure() 110 cropped_width = binary->in_frame_info.res.width; in ia_css_ifmtr_configure() 113 if (binary->info->sp.enable.continuous && in ia_css_ifmtr_configure() 114 binary->info->sp.pipeline.mode != IA_CSS_BINARY_MODE_COPY) in ia_css_ifmtr_configure() 117 buffer_width = binary->info->sp.input.max_width; in ia_css_ifmtr_configure() 118 input_format = binary->input_format; in ia_css_ifmtr_configure() 153 if (!binary) in ia_css_ifmtr_configure() 157 left_padding = binary->left_padding; in ia_css_ifmtr_configure() [all …]
|
/drivers/staging/media/atomisp/pci/runtime/pipeline/src/ |
D | pipeline.c | 286 if (!stage_desc->binary && !stage_desc->firmware in ia_css_pipeline_create_and_add_stage() 304 && (!stage_desc->binary->online)) { in ia_css_pipeline_create_and_add_stage() 574 struct ia_css_binary *binary; in pipeline_stage_create() local 582 && (stage_desc->binary) && !(stage_desc->binary->online)) { in pipeline_stage_create() 587 binary = stage_desc->binary; in pipeline_stage_create() 601 stage->binary = NULL; in pipeline_stage_create() 605 stage->binary = binary; in pipeline_stage_create() 606 if (binary) in pipeline_stage_create() 608 (struct ia_css_binary_info *)binary->info; in pipeline_stage_create() 624 if (!(out_frame[i]) && (binary) in pipeline_stage_create() [all …]
|
/drivers/staging/media/atomisp/pci/runtime/binary/interface/ |
D | ia_css_binary.h | 167 struct ia_css_binary *binary, 174 struct ia_css_binary *binary); 192 ia_css_binary_get_shading_info(const struct ia_css_binary *binary, 200 ia_css_binary_3a_grid_info(const struct ia_css_binary *binary, 205 ia_css_binary_dvs_grid_info(const struct ia_css_binary *binary, 211 const struct ia_css_binary *binary, 219 ia_css_binary_destroy_isp_parameters(struct ia_css_binary *binary);
|
/drivers/staging/media/atomisp/pci/isp/kernels/output/output_1.0/ |
D | ia_css_output.host.c | 92 int ia_css_output_configure(const struct ia_css_binary *binary, in ia_css_output_configure() argument 101 return ia_css_configure_output(binary, &config); in ia_css_output_configure() 106 int ia_css_output0_configure(const struct ia_css_binary *binary, in ia_css_output0_configure() argument 115 return ia_css_configure_output0(binary, &config); in ia_css_output0_configure() 120 int ia_css_output1_configure(const struct ia_css_binary *binary, in ia_css_output1_configure() argument 129 return ia_css_configure_output1(binary, &config); in ia_css_output1_configure()
|
D | ia_css_output.host.h | 45 int ia_css_output_configure(const struct ia_css_binary *binary, 48 int ia_css_output0_configure(const struct ia_css_binary *binary, 51 int ia_css_output1_configure(const struct ia_css_binary *binary,
|
/drivers/staging/media/atomisp/pci/isp/kernels/dvs/dvs_1.0/ |
D | ia_css_dvs.host.h | 38 int ia_css_dvs_configure(const struct ia_css_binary *binary, 44 const struct ia_css_binary *binary); 49 const struct ia_css_binary *binary, 55 const struct ia_css_binary *binary,
|
D | ia_css_dvs.host.c | 49 int ia_css_dvs_configure(const struct ia_css_binary *binary, in ia_css_dvs_configure() argument 56 return ia_css_configure_dvs(binary, &config); in ia_css_dvs_configure() 228 const struct ia_css_binary *binary, in convert_allocate_dvs_6axis_config() argument 236 assert(binary); in convert_allocate_dvs_6axis_config() 240 me = ia_css_host_data_allocate((size_t)((DVS_6AXIS_BYTES(binary) / 2) * 3)); in convert_allocate_dvs_6axis_config() 251 o_width = binary->out_frame_info[0].res.width; in convert_allocate_dvs_6axis_config() 252 o_height = binary->out_frame_info[0].res.height; in convert_allocate_dvs_6axis_config() 273 const struct ia_css_binary *binary, in store_dvs_6axis_config() argument 283 binary, in store_dvs_6axis_config()
|
/drivers/staging/media/ipu3/ |
D | ipu3-css-fw.c | 98 if (css->binary) { in imgu_css_fw_cleanup() 102 imgu_dmamap_free(imgu, &css->binary[i]); in imgu_css_fw_cleanup() 103 kfree(css->binary); in imgu_css_fw_cleanup() 108 css->binary = NULL; in imgu_css_fw_cleanup() 237 css->binary = kcalloc(binary_nr, sizeof(*css->binary), GFP_KERNEL); in imgu_css_fw_init() 238 if (!css->binary) { in imgu_css_fw_init() 248 if (!imgu_dmamap_alloc(imgu, &css->binary[i], size)) { in imgu_css_fw_init() 252 memcpy(css->binary[i].vaddr, blob, size); in imgu_css_fw_init()
|
/drivers/staging/media/atomisp/pci/camera/pipe/interface/ |
D | ia_css_pipe_stagedesc.h | 27 struct ia_css_binary *binary, 34 struct ia_css_binary *binary, 43 struct ia_css_binary *binary,
|
/drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ |
D | ia_css_raw.host.c | 112 const struct ia_css_binary *binary, in ia_css_raw_configure() argument 118 u8 enable_left_padding = (uint8_t)((binary->left_padding) ? 1 : 0); in ia_css_raw_configure() 125 config.stream_format = binary->input_format; in ia_css_raw_configure() 129 return ia_css_configure_raw(binary, &config); in ia_css_raw_configure()
|
/drivers/net/netdevsim/ |
D | health.c | 65 char *binary; in nsim_dev_dummy_fmsg_put() local 85 binary = kmalloc(binary_len, GFP_KERNEL | __GFP_NOWARN); in nsim_dev_dummy_fmsg_put() 86 if (!binary) in nsim_dev_dummy_fmsg_put() 88 get_random_bytes(binary, binary_len); in nsim_dev_dummy_fmsg_put() 89 err = devlink_fmsg_binary_pair_put(fmsg, "test_binary", binary, binary_len); in nsim_dev_dummy_fmsg_put() 90 kfree(binary); in nsim_dev_dummy_fmsg_put()
|
/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ |
D | ia_css_sdis.host.c | 158 const struct ia_css_binary *binary) in ia_css_sdis_hor_coef_tbl_bytes() argument 160 if (binary->info->sp.pipeline.isp_pipe_version == 1) in ia_css_sdis_hor_coef_tbl_bytes() 161 return sizeof(short) * IA_CSS_DVS_NUM_COEF_TYPES * binary->dis.coef.pad.width; in ia_css_sdis_hor_coef_tbl_bytes() 163 return sizeof(short) * IA_CSS_DVS2_NUM_COEF_TYPES * binary->dis.coef.pad.width; in ia_css_sdis_hor_coef_tbl_bytes() 168 const struct ia_css_binary *binary) in ia_css_sdis_ver_coef_tbl_bytes() argument 170 return sizeof(short) * SH_CSS_DIS_VER_NUM_COEF_TYPES(binary) * in ia_css_sdis_ver_coef_tbl_bytes() 171 binary->dis.coef.pad.height; in ia_css_sdis_ver_coef_tbl_bytes()
|