struct fimc_is_device_sensor *sensor;
struct fimc_is_device_ischain *device;
- BUG_ON(!group_data);
+ FIMC_BUG(!group_data);
group = (struct fimc_is_group *)group_data;
struct fimc_is_group *group;
struct fimc_is_device_ischain *device;
- BUG_ON(!group_data);
+ FIMC_BUG(!group_data);
group = group_data;
leader = &group->leader;
u32 mux_set_val = MUX_SET_VAL_DEFAULT;
u32 mux_clr_val = MUX_CLR_VAL_DEFAULT;
- BUG_ON(!sensor_data);
+ FIMC_BUG(!sensor_data);
sensor = sensor_data;
csi = (struct fimc_is_device_csi *)v4l2_get_subdevdata(sensor->subdev_csi);
struct fimc_is_device_sensor *sensor;
struct fimc_is_device_csi *csi;
- BUG_ON(!sensor_data);
+ FIMC_BUG(!sensor_data);
sensor = sensor_data;
csi = (struct fimc_is_device_csi *)v4l2_get_subdevdata(sensor->subdev_csi);
struct platform_device *pdev = NULL;
struct fimc_is_interface_hwip *itf_hwip = NULL;
- BUG_ON(!itfc_data);
- BUG_ON(!pdev_data);
+ FIMC_BUG(!itfc_data);
+ FIMC_BUG(!pdev_data);
itf_hwip = (struct fimc_is_interface_hwip *)itfc_data;
pdev = (struct platform_device *)pdev_data;
struct platform_device *pdev = NULL;
int ret = 0;
- BUG_ON(!itfc_data);
+ FIMC_BUG(!itfc_data);
itf_hwip = (struct fimc_is_interface_hwip *)itfc_data;
pdev = (struct platform_device *)pdev_data;
struct fimc_is_interface_hwip *itf_hwip = NULL;
int ret = 0;
- BUG_ON(!itfc_data);
+ FIMC_BUG(!itfc_data);
itf_hwip = (struct fimc_is_interface_hwip *)itfc_data;
struct fimc_is_device_ischain *device;
unsigned long data = (unsigned long)val;
- BUG_ON(!vctx);
- BUG_ON(!GET_DEVICE(vctx));
+ FIMC_BUG(!vctx);
+ FIMC_BUG(!GET_DEVICE(vctx));
device = GET_DEVICE(vctx);
{
int ret = 0;
- BUG_ON(!cap_data);
+ FIMC_BUG(!cap_data);
switch (hw_id) {
case DEV_HW_MCSC0:
dvfs_ctrl = (struct fimc_is_dvfs_ctrl *)dvfs_data;
- BUG_ON(!dvfs_ctrl);
+ FIMC_BUG(!dvfs_ctrl);
/* set priority by order */
for (i = 0; i < ARRAY_SIZE(static_scenarios); i++)
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!leader);
- BUG_ON(!device);
- BUG_ON(!device->sensor);
- BUG_ON(!incrop);
- BUG_ON(!lindex);
- BUG_ON(!hindex);
- BUG_ON(!indexes);
+ FIMC_BUG(!leader);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->sensor);
+ FIMC_BUG(!incrop);
+ FIMC_BUG(!lindex);
+ FIMC_BUG(!hindex);
+ FIMC_BUG(!indexes);
group = &device->group_3aa;
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!subdev);
- BUG_ON(!device);
- BUG_ON(!device->is_region);
- BUG_ON(!frame);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->is_region);
+ FIMC_BUG(!frame);
mdbgs_ischain(4, "3AA TAG\n", device);
struct fimc_is_module_enum *module;
u32 hw_format, hw_bitwidth, hw_order;
- BUG_ON(!queue);
- BUG_ON(!queue->framecfg.format);
+ FIMC_BUG(!queue);
+ FIMC_BUG(!queue->framecfg.format);
hw_format = queue->framecfg.format->hw_format;
hw_order = queue->framecfg.format->hw_order;
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!device);
- BUG_ON(!device->is_region);
- BUG_ON(!subdev);
- BUG_ON(!GET_SUBDEV_QUEUE(subdev));
- BUG_ON(!ldr_frame);
- BUG_ON(!ldr_frame->shot);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->is_region);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!GET_SUBDEV_QUEUE(subdev));
+ FIMC_BUG(!ldr_frame);
+ FIMC_BUG(!ldr_frame->shot);
mdbgs_ischain(4, "3AAC TAG(request %d)\n", device, node->request);
struct fimc_is_module_enum *module;
u32 hw_format, hw_bitwidth;
- BUG_ON(!queue);
- BUG_ON(!queue->framecfg.format);
+ FIMC_BUG(!queue);
+ FIMC_BUG(!queue->framecfg.format);
group = &device->group_3aa;
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!device);
- BUG_ON(!device->is_region);
- BUG_ON(!subdev);
- BUG_ON(!GET_SUBDEV_QUEUE(subdev));
- BUG_ON(!ldr_frame);
- BUG_ON(!ldr_frame->shot);
- BUG_ON(!node);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->is_region);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!GET_SUBDEV_QUEUE(subdev));
+ FIMC_BUG(!ldr_frame);
+ FIMC_BUG(!ldr_frame->shot);
+ FIMC_BUG(!node);
mdbgs_ischain(4, "3AAP TAG(request %d)\n", device, node->request);
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!leader);
- BUG_ON(!device);
- BUG_ON(!incrop);
- BUG_ON(!lindex);
- BUG_ON(!hindex);
- BUG_ON(!indexes);
+ FIMC_BUG(!leader);
+ FIMC_BUG(!device);
+ FIMC_BUG(!incrop);
+ FIMC_BUG(!lindex);
+ FIMC_BUG(!hindex);
+ FIMC_BUG(!indexes);
width = incrop->w;
height = incrop->h;
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!subdev);
- BUG_ON(!device);
- BUG_ON(!device->is_region);
- BUG_ON(!frame);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->is_region);
+ FIMC_BUG(!frame);
mdbgs_ischain(4, "ISP TAG\n", device);
u32 votf_dst_ip = 0;
u32 votf_dst_axi_id_m = 0;
- BUG_ON(!queue);
- BUG_ON(!queue->framecfg.format);
+ FIMC_BUG(!queue);
+ FIMC_BUG(!queue->framecfg.format);
group = &device->group_isp;
if (group->vnext) {
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!device);
- BUG_ON(!device->is_region);
- BUG_ON(!subdev);
- BUG_ON(!GET_SUBDEV_QUEUE(subdev));
- BUG_ON(!ldr_frame);
- BUG_ON(!ldr_frame->shot);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->is_region);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!GET_SUBDEV_QUEUE(subdev));
+ FIMC_BUG(!ldr_frame);
+ FIMC_BUG(!ldr_frame->shot);
mdbgs_ischain(4, "ISPC TAG(request %d)\n", device, node->request);
struct param_dma_output *dma_output;
struct fimc_is_fmt *format;
- BUG_ON(!queue);
- BUG_ON(!queue->framecfg.format);
+ FIMC_BUG(!queue);
+ FIMC_BUG(!queue->framecfg.format);
format = queue->framecfg.format;
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!device);
- BUG_ON(!device->is_region);
- BUG_ON(!subdev);
- BUG_ON(!GET_SUBDEV_QUEUE(subdev));
- BUG_ON(!ldr_frame);
- BUG_ON(!ldr_frame->shot);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->is_region);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!GET_SUBDEV_QUEUE(subdev));
+ FIMC_BUG(!ldr_frame);
+ FIMC_BUG(!ldr_frame->shot);
mdbgs_ischain(4, "ISPP TAG(request %d)\n", device, node->request);
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!leader);
- BUG_ON(!device);
+ FIMC_BUG(!leader);
+ FIMC_BUG(!device);
group = &device->group_mcs;
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!leader);
- BUG_ON(!device);
- BUG_ON(!device->sensor);
- BUG_ON(!incrop);
- BUG_ON(!lindex);
- BUG_ON(!hindex);
- BUG_ON(!indexes);
+ FIMC_BUG(!leader);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->sensor);
+ FIMC_BUG(!incrop);
+ FIMC_BUG(!lindex);
+ FIMC_BUG(!hindex);
+ FIMC_BUG(!indexes);
group = &device->group_mcs;
queue = GET_SUBDEV_QUEUE(leader);
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!subdev);
- BUG_ON(!device);
- BUG_ON(!device->is_region);
- BUG_ON(!frame);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->is_region);
+ FIMC_BUG(!frame);
mdbgs_ischain(4, "MCSC TAG\n", device);
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!device);
- BUG_ON(!incrop);
+ FIMC_BUG(!device);
+ FIMC_BUG(!incrop);
queue = GET_SUBDEV_QUEUE(subdev);
if (!queue) {
struct param_otf_input *otf_input;
u32 crange;
- BUG_ON(!queue);
- BUG_ON(!queue->framecfg.format);
+ FIMC_BUG(!queue);
+ FIMC_BUG(!queue->framecfg.format);
format = queue->framecfg.format;
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!device);
- BUG_ON(!device->is_region);
- BUG_ON(!subdev);
- BUG_ON(!GET_SUBDEV_QUEUE(subdev));
- BUG_ON(!ldr_frame);
- BUG_ON(!ldr_frame->shot);
- BUG_ON(!node);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->is_region);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!GET_SUBDEV_QUEUE(subdev));
+ FIMC_BUG(!ldr_frame);
+ FIMC_BUG(!ldr_frame->shot);
+ FIMC_BUG(!node);
mdbgs_ischain(4, "MXP TAG(request %d)\n", device, node->request);
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!device);
- BUG_ON(!device->is_region);
- BUG_ON(!subdev);
- BUG_ON(!GET_SUBDEV_QUEUE(subdev));
- BUG_ON(!ldr_frame);
- BUG_ON(!ldr_frame->shot);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->is_region);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!GET_SUBDEV_QUEUE(subdev));
+ FIMC_BUG(!ldr_frame);
+ FIMC_BUG(!ldr_frame->shot);
mdbgs_ischain(4, "MEXC TAG(request %d)\n", device, node->request);
struct v4l2_subdev *subdev_csi;
struct fimc_is_device_sensor *device;
- BUG_ON(!subdev);
- BUG_ON(!ldr_frame);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!ldr_frame);
device = (struct fimc_is_device_sensor *)device_data;
subdev_csi = device->subdev_csi;
struct v4l2_subdev *subdev_csi;
struct fimc_is_device_sensor *device;
- BUG_ON(!subdev);
- BUG_ON(!ldr_frame);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!ldr_frame);
device = (struct fimc_is_device_sensor *)device_data;
subdev_csi = device->subdev_csi;
struct v4l2_subdev *subdev_csi;
struct fimc_is_device_sensor *device;
- BUG_ON(!subdev);
- BUG_ON(!ldr_frame);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!ldr_frame);
device = (struct fimc_is_device_sensor *)device_data;
subdev_csi = device->subdev_csi;
struct v4l2_subdev *subdev_csi;
struct fimc_is_device_sensor *device;
- BUG_ON(!subdev);
- BUG_ON(!ldr_frame);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!ldr_frame);
device = (struct fimc_is_device_sensor *)device_data;
subdev_csi = device->subdev_csi;
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!leader);
- BUG_ON(!device);
- BUG_ON(!incrop);
- BUG_ON(!lindex);
- BUG_ON(!hindex);
- BUG_ON(!indexes);
+ FIMC_BUG(!leader);
+ FIMC_BUG(!device);
+ FIMC_BUG(!incrop);
+ FIMC_BUG(!lindex);
+ FIMC_BUG(!hindex);
+ FIMC_BUG(!indexes);
width = incrop->w;
height = incrop->h;
device = (struct fimc_is_device_ischain *)device_data;
- BUG_ON(!subdev);
- BUG_ON(!device);
- BUG_ON(!device->is_region);
- BUG_ON(!frame);
- BUG_ON(!frame->shot);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!device);
+ FIMC_BUG(!device->is_region);
+ FIMC_BUG(!frame);
+ FIMC_BUG(!frame->shot);
incrop = (struct fimc_is_crop *)node->input.cropRegion;
otcrop = (struct fimc_is_crop *)node->output.cropRegion;