| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/ |
| H A D | mali_group.c | 34 static void mali_group_report_l2_cache_counters_per_core(struct mali_group *group, u32 core_num); 48 static void mali_group_reset_pp(struct mali_group *group); 49 static void mali_group_reset_mmu(struct mali_group *group); 51 static void mali_group_activate_page_directory(struct mali_group *group, struct mali_session_data *… 52 static void mali_group_recovery_reset(struct mali_group *group); 59 struct mali_group *group = NULL; in mali_group_create() local 66 group = _mali_osk_calloc(1, sizeof(struct mali_group)); in mali_group_create() 67 if (NULL != group) { in mali_group_create() 68 group->timeout_timer = _mali_osk_timer_init(mali_group_timeout); in mali_group_create() 69 if (NULL != group->timeout_timer) { in mali_group_create() [all …]
|
| H A D | mali_group.h | 99 void mali_group_dump_status(struct mali_group *group); 101 void mali_group_delete(struct mali_group *group); 103 _mali_osk_errcode_t mali_group_add_mmu_core(struct mali_group *group, 105 void mali_group_remove_mmu_core(struct mali_group *group); 107 _mali_osk_errcode_t mali_group_add_gp_core(struct mali_group *group, 109 void mali_group_remove_gp_core(struct mali_group *group); 111 _mali_osk_errcode_t mali_group_add_pp_core(struct mali_group *group, 113 void mali_group_remove_pp_core(struct mali_group *group); 116 struct mali_group *group) in mali_group_core_description() argument 118 MALI_DEBUG_ASSERT_POINTER(group); in mali_group_core_description() [all …]
|
| H A D | mali_executor.c | 128 static mali_bool mali_executor_physical_rejoin_virtual(struct mali_group *group); 134 static void mali_executor_complete_group(struct mali_group *group, 138 static void mali_executor_change_state_pp_physical(struct mali_group *group, 143 static mali_bool mali_executor_group_is_in_state(struct mali_group *group, 146 static void mali_executor_group_enable_internal(struct mali_group *group); 147 static void mali_executor_group_disable_internal(struct mali_group *group); 149 static void mali_executor_core_scale_in_group_complete(struct mali_group *group); 152 static void mali_executor_change_group_status_disabled(struct mali_group *group); 154 static void mali_executor_set_state_pp_physical(struct mali_group *group, 234 struct mali_group *group = mali_group_get_glob_group(i); in mali_executor_populate() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx4/ |
| H A D | mcg.c | 50 #define mcg_warn_group(group, format, arg...) \ argument 52 (group)->name, group->demux->port, ## arg) 54 #define mcg_debug_group(group, format, arg...) \ argument 56 (group)->name, (group)->demux->port, ## arg) 58 #define mcg_error_group(group, format, arg...) \ argument 59 pr_err(" %16s: " format, (group)->name, ## arg) 136 struct mcast_group *group; member 144 mcg_warn_group(group, "did not expect to reach zero\n"); \ 166 struct mcast_group *group; in mcast_find() local 170 group = rb_entry(node, struct mcast_group, node); in mcast_find() [all …]
|
| /OK3568_Linux_fs/kernel/fs/notify/ |
| H A D | group.c | 22 static void fsnotify_final_destroy_group(struct fsnotify_group *group) in fsnotify_final_destroy_group() argument 24 if (group->ops->free_group_priv) in fsnotify_final_destroy_group() 25 group->ops->free_group_priv(group); in fsnotify_final_destroy_group() 27 mem_cgroup_put(group->memcg); in fsnotify_final_destroy_group() 28 mutex_destroy(&group->mark_mutex); in fsnotify_final_destroy_group() 30 kfree(group); in fsnotify_final_destroy_group() 37 void fsnotify_group_stop_queueing(struct fsnotify_group *group) in fsnotify_group_stop_queueing() argument 39 spin_lock(&group->notification_lock); in fsnotify_group_stop_queueing() 40 group->shutdown = true; in fsnotify_group_stop_queueing() 41 spin_unlock(&group->notification_lock); in fsnotify_group_stop_queueing() [all …]
|
| H A D | notification.c | 51 bool fsnotify_notify_queue_is_empty(struct fsnotify_group *group) in fsnotify_notify_queue_is_empty() argument 53 assert_spin_locked(&group->notification_lock); in fsnotify_notify_queue_is_empty() 54 return list_empty(&group->notification_list) ? true : false; in fsnotify_notify_queue_is_empty() 57 void fsnotify_destroy_event(struct fsnotify_group *group, in fsnotify_destroy_event() argument 61 if (!event || event == group->overflow_event) in fsnotify_destroy_event() 70 spin_lock(&group->notification_lock); in fsnotify_destroy_event() 72 spin_unlock(&group->notification_lock); in fsnotify_destroy_event() 74 group->ops->free_event(event); in fsnotify_destroy_event() 84 int fsnotify_add_event(struct fsnotify_group *group, in fsnotify_add_event() argument 90 struct list_head *list = &group->notification_list; in fsnotify_add_event() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/vfio/ |
| H A D | vfio.c | 109 struct iommu_group *group; in vfio_iommu_group_get() local 112 group = iommu_group_get(dev); in vfio_iommu_group_get() 121 if (group || !noiommu || iommu_present(dev->bus)) in vfio_iommu_group_get() 122 return group; in vfio_iommu_group_get() 124 group = iommu_group_alloc(); in vfio_iommu_group_get() 125 if (IS_ERR(group)) in vfio_iommu_group_get() 128 iommu_group_set_name(group, "vfio-noiommu"); in vfio_iommu_group_get() 129 iommu_group_set_iommudata(group, &noiommu, NULL); in vfio_iommu_group_get() 130 ret = iommu_group_add_device(group, dev); in vfio_iommu_group_get() 132 iommu_group_put(group); in vfio_iommu_group_get() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/core/ |
| H A D | multicast.c | 117 struct mcast_group *group; member 133 struct mcast_group *group; in mcast_find() local 137 group = rb_entry(node, struct mcast_group, node); in mcast_find() 138 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find() 140 return group; in mcast_find() 151 struct mcast_group *group, in mcast_insert() argument 163 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert() 164 sizeof group->rec.mgid); in mcast_insert() 174 rb_link_node(&group->node, parent, link); in mcast_insert() 175 rb_insert_color(&group->node, &port->table); in mcast_insert() [all …]
|
| /OK3568_Linux_fs/kernel/arch/sparc/kernel/ |
| H A D | hvapi.c | 19 unsigned long group; member 28 { .group = HV_GRP_SUN4V, .flags = FLAG_PRE_API }, 29 { .group = HV_GRP_CORE, .flags = FLAG_PRE_API }, 30 { .group = HV_GRP_INTR, }, 31 { .group = HV_GRP_SOFT_STATE, }, 32 { .group = HV_GRP_TM, }, 33 { .group = HV_GRP_PCI, .flags = FLAG_PRE_API }, 34 { .group = HV_GRP_LDOM, }, 35 { .group = HV_GRP_SVC_CHAN, .flags = FLAG_PRE_API }, 36 { .group = HV_GRP_NCS, .flags = FLAG_PRE_API }, [all …]
|
| /OK3568_Linux_fs/kernel/kernel/sched/ |
| H A D | psi.c | 187 static void group_init(struct psi_group *group) in group_init() argument 192 seqcount_init(&per_cpu_ptr(group->pcpu, cpu)->seq); in group_init() 193 group->avg_last_update = sched_clock(); in group_init() 194 group->avg_next_update = group->avg_last_update + psi_period; in group_init() 195 INIT_DELAYED_WORK(&group->avgs_work, psi_avgs_work); in group_init() 196 mutex_init(&group->avgs_lock); in group_init() 198 atomic_set(&group->poll_scheduled, 0); in group_init() 199 mutex_init(&group->trigger_lock); in group_init() 200 INIT_LIST_HEAD(&group->triggers); in group_init() 201 memset(group->nr_triggers, 0, sizeof(group->nr_triggers)); in group_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iommu/ |
| H A D | iommu.c | 59 ssize_t (*show)(struct iommu_group *group, char *buf); 60 ssize_t (*store)(struct iommu_group *group, 84 static int iommu_alloc_default_domain(struct iommu_group *group, 91 struct iommu_group *group); 93 struct iommu_group *group); 94 static int iommu_create_device_direct_mappings(struct iommu_group *group, 203 struct iommu_group *group; in __iommu_probe_device() local 225 group = iommu_group_get_for_dev(dev); in __iommu_probe_device() 226 if (IS_ERR(group)) { in __iommu_probe_device() 227 ret = PTR_ERR(group); in __iommu_probe_device() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/csf/ |
| H A D | mali_kbase_csf_scheduler.c | 64 static int scheduler_group_schedule(struct kbase_queue_group *group); 65 static void remove_group_from_idle_wait(struct kbase_queue_group *const group); 68 struct kbase_queue_group *const group, 72 struct kbase_queue_group *const group); 80 static void schedule_in_cycle(struct kbase_queue_group *group, bool force); 81 static bool queue_group_scheduled_locked(struct kbase_queue_group *group); 110 void wait_for_dump_complete_on_group_deschedule(struct kbase_queue_group *group) in wait_for_dump_complete_on_group_deschedule() argument 113 struct kbase_device *kbdev = group->kctx->kbdev; in wait_for_dump_complete_on_group_deschedule() 114 struct kbase_context *kctx = group->kctx; in wait_for_dump_complete_on_group_deschedule() 125 queue_group_scheduled_locked(group)) { in wait_for_dump_complete_on_group_deschedule() [all …]
|
| H A D | mali_kbase_csf.c | 250 static void term_queue_group(struct kbase_queue_group *group); 378 struct kbase_queue_group *group; in kbase_csf_queue_group_handle_is_valid() local 381 group = find_queue_group(kctx, group_handle); in kbase_csf_queue_group_handle_is_valid() 384 return group ? 0 : -EINVAL; in kbase_csf_queue_group_handle_is_valid() 412 WARN_ON(queue->group); in release_queue() 542 queue->group = NULL; in csf_queue_register_internal() 690 struct kbase_queue_group *group; in kbase_csf_queue_bind() local 696 group = find_queue_group(kctx, bind->in.group_handle); in kbase_csf_queue_bind() 699 if (!group || !queue) in kbase_csf_queue_bind() 710 if (group->run_state == KBASE_CSF_GROUP_TERMINATED) in kbase_csf_queue_bind() [all …]
|
| H A D | mali_kbase_csf_mcu_shared_reg.c | 97 static struct kbase_csg_shared_region *get_group_bound_csg_reg(struct kbase_queue_group *group) in get_group_bound_csg_reg() argument 99 return (struct kbase_csg_shared_region *)group->csg_reg; in get_group_bound_csg_reg() 124 static void notify_group_csg_reg_map_done(struct kbase_queue_group *group) in notify_group_csg_reg_map_done() argument 126 lockdep_assert_held(&group->kctx->kbdev->csf.scheduler.lock); in notify_group_csg_reg_map_done() 129 group->csg_reg_bind_retries = 0; in notify_group_csg_reg_map_done() 133 static bool notify_group_csg_reg_map_error(struct kbase_queue_group *group) in notify_group_csg_reg_map_error() argument 135 struct kbase_device *kbdev = group->kctx->kbdev; in notify_group_csg_reg_map_error() 139 if (group->csg_reg_bind_retries < U8_MAX) in notify_group_csg_reg_map_error() 140 group->csg_reg_bind_retries++; in notify_group_csg_reg_map_error() 143 if (group->csg_reg_bind_retries == MCU_SHARED_REGS_BIND_ATTEMPT_LIMIT) { in notify_group_csg_reg_map_error() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-lpc32xx.c | 168 static inline u32 gpreg_read(struct lpc32xx_gpio_chip *group, unsigned long offset) in gpreg_read() argument 170 return __raw_readl(group->reg_base + offset); in gpreg_read() 173 static inline void gpreg_write(struct lpc32xx_gpio_chip *group, u32 val, unsigned long offset) in gpreg_write() argument 175 __raw_writel(val, group->reg_base + offset); in gpreg_write() 178 static void __set_gpio_dir_p012(struct lpc32xx_gpio_chip *group, in __set_gpio_dir_p012() argument 182 gpreg_write(group, GPIO012_PIN_TO_BIT(pin), in __set_gpio_dir_p012() 183 group->gpio_grp->dir_clr); in __set_gpio_dir_p012() 185 gpreg_write(group, GPIO012_PIN_TO_BIT(pin), in __set_gpio_dir_p012() 186 group->gpio_grp->dir_set); in __set_gpio_dir_p012() 189 static void __set_gpio_dir_p3(struct lpc32xx_gpio_chip *group, in __set_gpio_dir_p3() argument [all …]
|
| /OK3568_Linux_fs/kernel/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 98 static struct fanotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument 103 unsigned int fid_mode = FAN_GROUP_FLAG(group, FANOTIFY_FID_BITS); in get_one_event() 105 pr_debug("%s: group=%p count=%zd\n", __func__, group, count); in get_one_event() 107 spin_lock(&group->notification_lock); in get_one_event() 108 if (fsnotify_notify_queue_is_empty(group)) in get_one_event() 113 FANOTIFY_E(fsnotify_peek_first_event(group))); in get_one_event() 120 event = FANOTIFY_E(fsnotify_remove_first_event(group)); in get_one_event() 124 spin_unlock(&group->notification_lock); in get_one_event() 128 static int create_fd(struct fsnotify_group *group, struct path *path, in create_fd() argument 134 client_fd = get_unused_fd_flags(group->fanotify_data.f_flags); in create_fd() [all …]
|
| /OK3568_Linux_fs/kernel/fs/notify/inotify/ |
| H A D | inotify_user.c | 105 struct fsnotify_group *group = file->private_data; in inotify_poll() local 108 poll_wait(file, &group->notification_waitq, wait); in inotify_poll() 109 spin_lock(&group->notification_lock); in inotify_poll() 110 if (!fsnotify_notify_queue_is_empty(group)) in inotify_poll() 112 spin_unlock(&group->notification_lock); in inotify_poll() 134 static struct fsnotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument 140 if (fsnotify_notify_queue_is_empty(group)) in get_one_event() 143 event = fsnotify_peek_first_event(group); in get_one_event() 145 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in get_one_event() 153 fsnotify_remove_first_event(group); in get_one_event() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/renesas/ |
| H A D | clk-mstp.c | 58 struct mstp_clock_group *group; member 63 static inline u32 cpg_mstp_read(struct mstp_clock_group *group, in cpg_mstp_read() argument 66 return group->width_8bit ? readb(reg) : readl(reg); in cpg_mstp_read() 69 static inline void cpg_mstp_write(struct mstp_clock_group *group, u32 val, in cpg_mstp_write() argument 72 group->width_8bit ? writeb(val, reg) : writel(val, reg); in cpg_mstp_write() 78 struct mstp_clock_group *group = clock->group; in cpg_mstp_clock_endisable() local 84 spin_lock_irqsave(&group->lock, flags); in cpg_mstp_clock_endisable() 86 value = cpg_mstp_read(group, group->smstpcr); in cpg_mstp_clock_endisable() 91 cpg_mstp_write(group, value, group->smstpcr); in cpg_mstp_clock_endisable() 93 if (!group->mstpsr) { in cpg_mstp_clock_endisable() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/ |
| H A D | hal_task.cpp | 34 HalTaskGroupImpl *group; member 54 MPP_RET hal_task_group_init(HalTaskGroup *group, RK_S32 stage_cnt, RK_S32 task_cnt, RK_S32 task_siz… in hal_task_group_init() argument 56 if (NULL == group || stage_cnt < 0 || task_cnt < 0 || task_size < 0) { in hal_task_group_init() 58 group, stage_cnt, task_cnt, task_size); in hal_task_group_init() 98 task->group = p; in hal_task_group_init() 104 *group = p; in hal_task_group_init() 110 *group = NULL; in hal_task_group_init() 114 MPP_RET hal_task_group_deinit(HalTaskGroup group) in hal_task_group_deinit() argument 116 MPP_FREE(group); in hal_task_group_deinit() 120 MPP_RET hal_task_get_hnd(HalTaskGroup group, RK_S32 status, HalTaskHnd *hnd) in hal_task_get_hnd() argument [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/base/ |
| H A D | mpp_buffer_impl.cpp | 50 void destroy_group(MppBufferGroupImpl *group); 90 void put_group(const char *caller, MppBufferGroupImpl *group); 227 static void buf_grp_add_log(MppBufferGroupImpl *group, MppBufOps ops, const char* caller) in buf_grp_add_log() argument 229 if (group->log_runtime_en) { in buf_grp_add_log() 230 mpp_log("group %3d mode %d type %d ops %s\n", group->group_id, in buf_grp_add_log() 231 group->mode, group->type, ops2str[ops]); in buf_grp_add_log() 233 if (group->logs) in buf_grp_add_log() 234 buf_logs_write(group->logs, group->group_id, -1, ops, 0, caller); in buf_grp_add_log() 237 static MPP_RET put_buffer(MppBufferGroupImpl *group, MppBufferImpl *buffer, in put_buffer() argument 240 mpp_assert(group); in put_buffer() [all …]
|
| H A D | mpp_buffer.cpp | 25 MPP_RET mpp_buffer_import_with_tag(MppBufferGroup group, MppBufferInfo *info, MppBuffer *buffer, in mpp_buffer_import_with_tag() argument 33 MppBufferGroupImpl *p = (MppBufferGroupImpl *)group; in mpp_buffer_import_with_tag() 62 MPP_RET mpp_buffer_get_with_tag(MppBufferGroup group, MppBuffer *buffer, size_t size, in mpp_buffer_get_with_tag() argument 67 group, buffer, size, caller); in mpp_buffer_get_with_tag() 71 if (NULL == group) { in mpp_buffer_get_with_tag() 73 group = mpp_buffer_get_misc_group(MPP_BUFFER_INTERNAL, MPP_BUFFER_TYPE_ION); in mpp_buffer_get_with_tag() 76 mpp_assert(group); in mpp_buffer_get_with_tag() 78 MppBufferGroupImpl *p = (MppBufferGroupImpl *)group; in mpp_buffer_get_with_tag() 278 MPP_RET mpp_buffer_group_get(MppBufferGroup *group, MppBufferType type, MppBufferMode mode, in mpp_buffer_group_get() argument 281 if (NULL == group || in mpp_buffer_group_get() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/mac/mac_ax/ |
| H A D | mcc.c | 18 u32 mac_reset_mcc_group(struct mac_ax_adapter *adapter, u8 group) in mac_reset_mcc_group() argument 29 if (group > MCC_GROUP_ID_MAX) { in mac_reset_mcc_group() 30 PLTFM_MSG_ERR("[ERR]%s: invalid group: %d\n", __func__, group); in mac_reset_mcc_group() 34 adapter->sm.mcc_group[group] = MAC_AX_MCC_EMPTY; in mac_reset_mcc_group() 35 adapter->sm.mcc_request[group] = MAC_AX_MCC_REQ_IDLE; in mac_reset_mcc_group() 52 cpu_to_le32(SET_WORD(group, FWCMD_H2C_RESET_MCC_GROUP_GROUP)); in mac_reset_mcc_group() 88 u32 mac_reset_mcc_request(struct mac_ax_adapter *adapter, u8 group) in mac_reset_mcc_request() argument 90 if (adapter->sm.mcc_request[group] != MAC_AX_MCC_REQ_FAIL) { in mac_reset_mcc_request() 95 if (group > MCC_GROUP_ID_MAX) { in mac_reset_mcc_request() 96 PLTFM_MSG_ERR("[ERR]%s: invalid group: %d\n", __func__, group); in mac_reset_mcc_request() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/mac/mac_ax/ |
| H A D | mcc.c | 18 u32 mac_reset_mcc_group(struct mac_ax_adapter *adapter, u8 group) in mac_reset_mcc_group() argument 29 if (group > MCC_GROUP_ID_MAX) { in mac_reset_mcc_group() 30 PLTFM_MSG_ERR("[ERR]%s: invalid group: %d\n", __func__, group); in mac_reset_mcc_group() 34 adapter->sm.mcc_group[group] = MAC_AX_MCC_EMPTY; in mac_reset_mcc_group() 35 adapter->sm.mcc_request[group] = MAC_AX_MCC_REQ_IDLE; in mac_reset_mcc_group() 52 cpu_to_le32(SET_WORD(group, FWCMD_H2C_RESET_MCC_GROUP_GROUP)); in mac_reset_mcc_group() 88 u32 mac_reset_mcc_request(struct mac_ax_adapter *adapter, u8 group) in mac_reset_mcc_request() argument 90 if (adapter->sm.mcc_request[group] != MAC_AX_MCC_REQ_FAIL) { in mac_reset_mcc_request() 95 if (group > MCC_GROUP_ID_MAX) { in mac_reset_mcc_request() 96 PLTFM_MSG_ERR("[ERR]%s: invalid group: %d\n", __func__, group); in mac_reset_mcc_request() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/parser/ |
| H A D | InputClass.c | 76 xf86MatchGroup *group, *next; in xf86freeInputClassList() local 82 xorg_list_for_each_entry_safe(group, next, &ptr->match_product, entry) { in xf86freeInputClassList() 83 xorg_list_del(&group->entry); in xf86freeInputClassList() 84 for (list = group->values; *list; list++) in xf86freeInputClassList() 86 free(group); in xf86freeInputClassList() 88 xorg_list_for_each_entry_safe(group, next, &ptr->match_vendor, entry) { in xf86freeInputClassList() 89 xorg_list_del(&group->entry); in xf86freeInputClassList() 90 for (list = group->values; *list; list++) in xf86freeInputClassList() 92 free(group); in xf86freeInputClassList() 94 xorg_list_for_each_entry_safe(group, next, &ptr->match_device, entry) { in xf86freeInputClassList() [all …]
|
| /OK3568_Linux_fs/buildroot/support/scripts/ |
| H A D | mkusers | 72 local group="${1}" 74 awk -F: -v group="${group}" \ 80 local group="${1}" 82 awk -F: -v group="${group}" \ 124 local group="${3}" 129 _gid="$( get_gid "${group}" )" 143 if [ -n "${_group}" -a "${_group}" != "${group}" ]; then 153 "${group}" "${username}" ${_gid} ${gid} 184 if [ -n "${_ugroup}" -a "${_ugroup}" != "${group}" ]; then 186 "${username}" "${_ugroup}" "${group}" [all …]
|