Home
last modified time | relevance | path

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

/openbmc/linux/include/media/
H A Dmedia-entity.h76 int idx_max; member
527 bitmap_zero(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_zero()
539 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_set()
554 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_clear()
571 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_test()
590 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_test_and_set()
605 return bitmap_empty(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_empty()
621 WARN_ON(ent_enum1->idx_max != ent_enum2->idx_max); in media_entity_enum_intersects()
624 min(ent_enum1->idx_max, ent_enum2->idx_max)); in media_entity_enum_intersects()
/openbmc/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_mbox.c669 u32 i, idx_max = MBOX_HEADER_SZ / sizeof(u32); in mbox_copy_header() local
672 for (i = 0; i < idx_max; i++) in mbox_copy_header()
683 u32 i, idx_max; in mbox_copy_send_data() local
692 idx_max = ALIGN(data_len, chk_sz) / chk_sz; in mbox_copy_send_data()
694 for (i = 0; i < idx_max; i++) in mbox_copy_send_data()
/openbmc/linux/drivers/media/mc/
H A Dmc-entity.c65 int idx_max; in media_entity_enum_init() local
67 idx_max = ALIGN(mdev->entity_internal_idx_max + 1, BITS_PER_LONG); in media_entity_enum_init()
68 ent_enum->bmap = bitmap_zalloc(idx_max, GFP_KERNEL); in media_entity_enum_init()
72 ent_enum->idx_max = idx_max; in media_entity_enum_init()
H A Dmc-device.c650 >= mdev->pm_count_walk.ent_enum.idx_max) { in media_device_register_entity()
/openbmc/qemu/hw/intc/
H A Dpnv_xive.c108 uint32_t idx_max; in pnv_xive_vst_addr_direct() local
110 idx_max = vst_tsize / info->size - 1; in pnv_xive_vst_addr_direct()
111 if (idx > idx_max) { in pnv_xive_vst_addr_direct()
114 info->name, idx, idx_max); in pnv_xive_vst_addr_direct()
H A Dpnv_xive2.c148 uint32_t idx_max; in pnv_xive2_vst_addr_direct() local
150 idx_max = vst_tsize / info->size - 1; in pnv_xive2_vst_addr_direct()
151 if (idx > idx_max) { in pnv_xive2_vst_addr_direct()
154 info->name, idx, idx_max); in pnv_xive2_vst_addr_direct()