| /OK3568_Linux_fs/kernel/net/tipc/ |
| H A D | group.c | 101 static void tipc_group_proto_xmit(struct tipc_group *grp, struct tipc_member *m, 114 static void tipc_group_decr_active(struct tipc_group *grp, in tipc_group_decr_active() argument 119 grp->active_cnt--; in tipc_group_decr_active() 122 static int tipc_group_rcvbuf_limit(struct tipc_group *grp) in tipc_group_rcvbuf_limit() argument 125 int mcnt = grp->member_cnt + 1; in tipc_group_rcvbuf_limit() 130 grp->max_active = max_active; in tipc_group_rcvbuf_limit() 140 u16 tipc_group_bc_snd_nxt(struct tipc_group *grp) in tipc_group_bc_snd_nxt() argument 142 return grp->bc_snd_nxt; in tipc_group_bc_snd_nxt() 155 u32 tipc_group_exclude(struct tipc_group *grp) in tipc_group_exclude() argument 157 if (!grp->loopback) in tipc_group_exclude() [all …]
|
| H A D | group.h | 48 void tipc_group_join(struct net *net, struct tipc_group *grp, int *sk_rcv_buf); 49 void tipc_group_delete(struct net *net, struct tipc_group *grp); 50 void tipc_group_add_member(struct tipc_group *grp, u32 node, 52 struct tipc_nlist *tipc_group_dests(struct tipc_group *grp); 53 void tipc_group_self(struct tipc_group *grp, struct tipc_name_seq *seq, 55 u32 tipc_group_exclude(struct tipc_group *grp); 56 void tipc_group_filter_msg(struct tipc_group *grp, 59 void tipc_group_member_evt(struct tipc_group *grp, bool *wakeup, 63 void tipc_group_proto_rcv(struct tipc_group *grp, bool *wakeup, 67 void tipc_group_update_bc_members(struct tipc_group *grp, int len, bool ack); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/sw/rxe/ |
| H A D | rxe_mcast.c | 14 struct rxe_mc_grp *grp; in rxe_mcast_get_grp() local 21 grp = rxe_pool_get_key(&rxe->mc_grp_pool, mgid); in rxe_mcast_get_grp() 22 if (grp) in rxe_mcast_get_grp() 25 grp = rxe_alloc(&rxe->mc_grp_pool); in rxe_mcast_get_grp() 26 if (!grp) { in rxe_mcast_get_grp() 31 INIT_LIST_HEAD(&grp->qp_list); in rxe_mcast_get_grp() 32 spin_lock_init(&grp->mcg_lock); in rxe_mcast_get_grp() 33 grp->rxe = rxe; in rxe_mcast_get_grp() 35 rxe_add_key(grp, mgid); in rxe_mcast_get_grp() 42 *grp_p = grp; in rxe_mcast_get_grp() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/s390/net/ |
| H A D | ctcm_mpc.c | 330 struct mpc_group *grp; in ctc_mpc_alloc_channel() local 337 grp = priv->mpcg; in ctc_mpc_alloc_channel() 339 grp->allochanfunc = callback; in ctc_mpc_alloc_channel() 340 grp->port_num = port_num; in ctc_mpc_alloc_channel() 341 grp->port_persist = 1; in ctc_mpc_alloc_channel() 345 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel() 347 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel() 350 grp->alloc_called = 1; in ctc_mpc_alloc_channel() 357 /*fsm_newstate(grp->fsm, MPCG_STATE_XID2INITW);*/ in ctc_mpc_alloc_channel() 359 grp->send_qllc_disc = 1; in ctc_mpc_alloc_channel() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/ |
| H A D | phl_sound.c | 17 void __reset_snd_grp(struct phl_snd_grp *grp) in __reset_snd_grp() argument 21 grp->snd_type = PHL_SND_TYPE_INVALID; in __reset_snd_grp() 22 grp->band = 0; in __reset_snd_grp() 23 grp->num_sta = 0; in __reset_snd_grp() 24 grp->wrole_idx = 0; in __reset_snd_grp() 25 grp->grp_tier = PHL_SND_GRP_TIER_1; in __reset_snd_grp() 26 grp->snd_sts = PHL_SND_STS_PENDING; in __reset_snd_grp() 28 grp->sta[i].valid = false; in __reset_snd_grp() 29 grp->sta[i].macid = 0; in __reset_snd_grp() 30 grp->sta[i].bw = CHANNEL_WIDTH_20; in __reset_snd_grp() [all …]
|
| H A D | phl_sound_fsm.c | 193 "==> Available SND GRP == 0 !!!\n STOP SND Function!!!\n"); in snd_fsm_func_ready_st_hdl() 262 struct phl_snd_grp *grp = NULL; in snd_fsm_proc_idle_st_hdl() local 275 grp = phl_snd_get_grp_byidx(snd->phl_info, in snd_fsm_proc_idle_st_hdl() 277 if (grp != NULL) { in snd_fsm_proc_idle_st_hdl() 278 phl_snd_proc_chk_prev_grp(snd->phl_info, grp); in snd_fsm_proc_idle_st_hdl() 289 grp = phl_snd_get_grp_byidx(snd->phl_info, in snd_fsm_proc_idle_st_hdl() 291 /* TODO: Check Grp STA is still available */ in snd_fsm_proc_idle_st_hdl() 293 if (NULL == grp) { in snd_fsm_proc_idle_st_hdl() 320 struct phl_snd_grp *grp = NULL; in snd_fsm_proc_busy_st_hdl() local 329 "SND PROC BUSY : Process Grp idx = %d\n", in snd_fsm_proc_busy_st_hdl() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/ |
| H A D | phl_sound.c | 17 void __reset_snd_grp(struct phl_snd_grp *grp) in __reset_snd_grp() argument 21 grp->snd_type = PHL_SND_TYPE_INVALID; in __reset_snd_grp() 22 grp->band = 0; in __reset_snd_grp() 23 grp->num_sta = 0; in __reset_snd_grp() 24 grp->wrole_idx = 0; in __reset_snd_grp() 25 grp->grp_tier = PHL_SND_GRP_TIER_1; in __reset_snd_grp() 26 grp->snd_sts = PHL_SND_STS_PENDING; in __reset_snd_grp() 28 grp->sta[i].valid = false; in __reset_snd_grp() 29 grp->sta[i].macid = 0; in __reset_snd_grp() 30 grp->sta[i].bw = CHANNEL_WIDTH_20; in __reset_snd_grp() [all …]
|
| H A D | phl_sound_fsm.c | 193 "==> Available SND GRP == 0 !!!\n STOP SND Function!!!\n"); in snd_fsm_func_ready_st_hdl() 262 struct phl_snd_grp *grp = NULL; in snd_fsm_proc_idle_st_hdl() local 275 grp = phl_snd_get_grp_byidx(snd->phl_info, in snd_fsm_proc_idle_st_hdl() 277 if (grp != NULL) { in snd_fsm_proc_idle_st_hdl() 278 phl_snd_proc_chk_prev_grp(snd->phl_info, grp); in snd_fsm_proc_idle_st_hdl() 289 grp = phl_snd_get_grp_byidx(snd->phl_info, in snd_fsm_proc_idle_st_hdl() 291 /* TODO: Check Grp STA is still available */ in snd_fsm_proc_idle_st_hdl() 293 if (NULL == grp) { in snd_fsm_proc_idle_st_hdl() 320 struct phl_snd_grp *grp = NULL; in snd_fsm_proc_busy_st_hdl() local 329 "SND PROC BUSY : Process Grp idx = %d\n", in snd_fsm_proc_busy_st_hdl() [all …]
|
| /OK3568_Linux_fs/kernel/fs/sysfs/ |
| H A D | group.c | 21 const struct attribute_group *grp) in remove_files() argument 26 if (grp->attrs) in remove_files() 27 for (attr = grp->attrs; *attr; attr++) in remove_files() 29 if (grp->bin_attrs) in remove_files() 30 for (bin_attr = grp->bin_attrs; *bin_attr; bin_attr++) in remove_files() 36 const struct attribute_group *grp, int update) in create_files() argument 42 if (grp->attrs) { in create_files() 43 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files() 53 if (grp->is_visible) { in create_files() 54 mode = grp->is_visible(kobj, *attr, i); in create_files() [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/ |
| H A D | ecdsa.c | 45 * Derive a suitable integer for group grp from a buffer of length len 48 static int derive_mpi( const mbedtls_ecp_group *grp, mbedtls_mpi *x, in derive_mpi() argument 52 size_t n_size = ( grp->nbits + 7 ) / 8; in derive_mpi() 56 if( use_size * 8 > grp->nbits ) in derive_mpi() 57 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( x, use_size * 8 - grp->nbits ) ); in derive_mpi() 60 if( mbedtls_mpi_cmp_mpi( x, &grp->N ) >= 0 ) in derive_mpi() 61 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( x, x, &grp->N ) ); in derive_mpi() 71 int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, in mbedtls_ecdsa_sign() argument 80 if( grp->N.p == NULL ) in mbedtls_ecdsa_sign() 96 MBEDTLS_MPI_CHK( mbedtls_ecp_gen_keypair( grp, &k, &R, f_rng, p_rng ) ); in mbedtls_ecdsa_sign() [all …]
|
| H A D | ecp.c | 258 static inline ecp_curve_type ecp_get_type( const mbedtls_ecp_group *grp ) in ecp_get_type() argument 260 if( grp->G.X.p == NULL ) in ecp_get_type() 263 if( grp->G.Y.p == NULL ) in ecp_get_type() 285 void mbedtls_ecp_group_init( mbedtls_ecp_group *grp ) in mbedtls_ecp_group_init() argument 287 if( grp == NULL ) in mbedtls_ecp_group_init() 290 memset( grp, 0, sizeof( mbedtls_ecp_group ) ); in mbedtls_ecp_group_init() 301 mbedtls_ecp_group_init( &key->grp ); in mbedtls_ecp_keypair_init() 322 void mbedtls_ecp_group_free( mbedtls_ecp_group *grp ) in mbedtls_ecp_group_free() argument 326 if( grp == NULL ) in mbedtls_ecp_group_free() 329 if( grp->h != 1 ) in mbedtls_ecp_group_free() [all …]
|
| /OK3568_Linux_fs/kernel/fs/erofs/ |
| H A D | utils.c | 28 static int erofs_workgroup_get(struct erofs_workgroup *grp) in erofs_workgroup_get() argument 33 o = erofs_wait_on_workgroup_freezed(grp); in erofs_workgroup_get() 37 if (atomic_cmpxchg(&grp->refcount, o, o + 1) != o) in erofs_workgroup_get() 50 struct erofs_workgroup *grp; in erofs_find_workgroup() local 54 grp = xa_load(&sbi->managed_pslots, index); in erofs_find_workgroup() 55 if (grp) { in erofs_find_workgroup() 56 if (erofs_workgroup_get(grp)) { in erofs_find_workgroup() 62 DBG_BUGON(index != grp->index); in erofs_find_workgroup() 65 return grp; in erofs_find_workgroup() 69 struct erofs_workgroup *grp) in erofs_insert_workgroup() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/mvebu/ |
| H A D | pinctrl-mvebu.c | 107 struct mvebu_pinctrl *pctl, struct mvebu_pinctrl_group *grp, in mvebu_pinctrl_find_setting_by_val() argument 111 for (n = 0; n < grp->num_settings; n++) { in mvebu_pinctrl_find_setting_by_val() 112 if (config == grp->settings[n].val) { in mvebu_pinctrl_find_setting_by_val() 114 grp->settings[n].variant)) in mvebu_pinctrl_find_setting_by_val() 115 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_val() 122 struct mvebu_pinctrl *pctl, struct mvebu_pinctrl_group *grp, in mvebu_pinctrl_find_setting_by_name() argument 126 for (n = 0; n < grp->num_settings; n++) { in mvebu_pinctrl_find_setting_by_name() 127 if (strcmp(name, grp->settings[n].name) == 0) { in mvebu_pinctrl_find_setting_by_name() 129 grp->settings[n].variant)) in mvebu_pinctrl_find_setting_by_name() 130 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_name() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/hwcnt/ |
| H A D | mali_kbase_hwcnt_types.c | 32 size_t grp; in kbase_hwcnt_metadata_create() local 57 for (grp = 0; grp < desc->grp_cnt; grp++) { in kbase_hwcnt_metadata_create() 58 size += sizeof(struct kbase_hwcnt_block_metadata) * desc->grps[grp].blk_cnt; in kbase_hwcnt_metadata_create() 81 for (grp = 0; grp < desc->grp_cnt; grp++) { in kbase_hwcnt_metadata_create() 84 const struct kbase_hwcnt_group_description *grp_desc = desc->grps + grp; in kbase_hwcnt_metadata_create() 85 struct kbase_hwcnt_group_metadata *grp_md = grp_mds + grp; in kbase_hwcnt_metadata_create() 286 size_t grp, blk, blk_inst; in kbase_hwcnt_dump_buffer_zero() local 294 kbase_hwcnt_metadata_for_each_block(metadata, grp, blk, blk_inst) in kbase_hwcnt_dump_buffer_zero() 299 if (!kbase_hwcnt_enable_map_block_enabled(dst_enable_map, grp, blk, blk_inst)) in kbase_hwcnt_dump_buffer_zero() 302 dst_blk = kbase_hwcnt_dump_buffer_block_instance(dst, grp, blk, blk_inst); in kbase_hwcnt_dump_buffer_zero() [all …]
|
| H A D | mali_kbase_hwcnt_types.h | 335 * @grp: Index of the group in the metadata. 337 * Return: Type of the group grp. 340 size_t grp) in kbase_hwcnt_metadata_group_type() argument 342 if (WARN_ON(!metadata) || WARN_ON(grp >= metadata->grp_cnt)) in kbase_hwcnt_metadata_group_type() 345 return metadata->grp_metadata[grp].type; in kbase_hwcnt_metadata_group_type() 351 * @grp: Index of the group in the metadata. 353 * Return: Number of blocks in group grp. 356 size_t grp) in kbase_hwcnt_metadata_block_count() argument 358 if (WARN_ON(!metadata) || WARN_ON(grp >= metadata->grp_cnt)) in kbase_hwcnt_metadata_block_count() 361 return metadata->grp_metadata[grp].blk_cnt; in kbase_hwcnt_metadata_block_count() [all …]
|
| H A D | mali_kbase_hwcnt_gpu_narrow.h | 99 * @grp: Index of the group in the narrow metadata. 101 * Return: Type of the group grp. 105 size_t grp) in kbase_hwcnt_metadata_narrow_group_type() argument 107 return kbase_hwcnt_metadata_group_type(md_narrow->metadata, grp); in kbase_hwcnt_metadata_narrow_group_type() 114 * @grp: Index of the group in the narrow metadata. 116 * Return: Number of blocks in group grp. 120 size_t grp) in kbase_hwcnt_metadata_narrow_block_count() argument 122 return kbase_hwcnt_metadata_block_count(md_narrow->metadata, grp); in kbase_hwcnt_metadata_narrow_block_count() 130 * @grp: Index of the group in the narrow metadata. 133 * Return: Number of instances of block blk in group grp. [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | imx6ull-colibri.dtsi | 217 pinctrl_can_int: canint-grp { 223 pinctrl_enet2: enet2-grp { 253 pinctrl_ecspi1_cs: ecspi1-cs-grp { 259 pinctrl_ecspi1: ecspi1-grp { 267 pinctrl_flexcan1: flexcan1-grp { 274 pinctrl_flexcan2: flexcan2-grp { 281 pinctrl_gpio_bl_on: gpio-bl-on-grp { 287 pinctrl_gpio1: gpio1-grp { 300 pinctrl_gpio2: gpio2-grp { /* Camera */ 310 pinctrl_gpio3: gpio3-grp { /* CAN2 */ [all …]
|
| /OK3568_Linux_fs/kernel/net/sched/ |
| H A D | sch_qfq.c | 102 * grp->index is the index of the group; and grp->slot_shift 151 struct qfq_group *grp; member 297 if (agg->grp == NULL) { in qfq_update_agg() 300 agg->grp = &q->groups[i]; in qfq_update_agg() 741 * First compute eligibility comparing grp->S, q->V, 744 static int qfq_calc_state(struct qfq_sched *q, const struct qfq_group *grp) in qfq_calc_state() argument 747 unsigned int state = qfq_gt(grp->S, q->V); in qfq_calc_state() 748 unsigned long mask = mask_from(q->bitmaps[ER], grp->index); in qfq_calc_state() 753 if (qfq_gt(grp->F, next->F)) in qfq_calc_state() 874 static void qfq_slot_insert(struct qfq_group *grp, struct qfq_aggregate *agg, in qfq_slot_insert() argument [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/ |
| H A D | pinmux-common.c | 85 #define MUX_REG(grp) _R(0x80 + ((tegra_soc_pingroups[grp].ctl_id / 16) * 4)) argument 86 #define MUX_SHIFT(grp) ((tegra_soc_pingroups[grp].ctl_id % 16) * 2) argument 88 #define PULL_REG(grp) _R(0xa0 + ((tegra_soc_pingroups[grp].pull_id / 16) * 4)) argument 89 #define PULL_SHIFT(grp) ((tegra_soc_pingroups[grp].pull_id % 16) * 2) argument 91 #define TRI_REG(grp) _R(0x14 + (((grp) / 32) * 4)) argument 92 #define TRI_SHIFT(grp) ((grp) % 32) argument 383 u32 *reg = REG(grp); in pinmux_set_schmt() 408 u32 *reg = REG(grp); in pinmux_set_hsm() 516 static void pinmux_set_drvup_slwf(enum pmux_drvgrp grp, int slwf) in pinmux_set_drvup_slwf() argument 518 u32 *reg = DRV_REG(grp); in pinmux_set_drvup_slwf() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A D | rk3308_codec.c | 167 * grp 0 -- select ADC1 / ADC2 168 * grp 1 -- select ADC3 / ADC4 169 * grp 2 -- select ADC5 / ADC6 170 * grp 3 -- select ADC7 / ADC8 629 int grp = e->reg; in rk3308_codec_mic_mute_get() local 633 "%s: Invalid ADC grp: %d\n", __func__, e->reg); in rk3308_codec_mic_mute_get() 639 regmap_read(rk3308->regmap, RK3308_ADC_DIG_CON03(grp), &value); in rk3308_codec_mic_mute_get() 645 regmap_read(rk3308->regmap, RK3308_ADC_DIG_CON03(grp), &value); in rk3308_codec_mic_mute_get() 661 int grp = e->reg; in rk3308_codec_mic_mute_put() local 665 "%s: Invalid ADC grp: %d\n", __func__, e->reg); in rk3308_codec_mic_mute_put() [all …]
|
| /OK3568_Linux_fs/kernel/sound/core/seq/ |
| H A D | seq_ports.c | 98 static void port_subs_info_init(struct snd_seq_port_subs_info *grp) in port_subs_info_init() argument 100 INIT_LIST_HEAD(&grp->list_head); in port_subs_info_init() 101 grp->count = 0; in port_subs_info_init() 102 grp->exclusive = 0; in port_subs_info_init() 103 rwlock_init(&grp->list_lock); in port_subs_info_init() 104 init_rwsem(&grp->list_mutex); in port_subs_info_init() 105 grp->open = NULL; in port_subs_info_init() 106 grp->close = NULL; in port_subs_info_init() 165 struct snd_seq_port_subs_info *grp, 169 struct snd_seq_port_subs_info *grp, [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/ralink/ |
| H A D | rt305x.c | 56 GRP("i2c", i2c_func, 1, RT305X_GPIO_MODE_I2C), 57 GRP("spi", spi_func, 1, RT305X_GPIO_MODE_SPI), 58 GRP("uartf", uartf_func, RT305X_GPIO_MODE_UART0_MASK, 60 GRP("uartlite", uartlite_func, 1, RT305X_GPIO_MODE_UART1), 61 GRP("jtag", jtag_func, 1, RT305X_GPIO_MODE_JTAG), 62 GRP("mdio", mdio_func, 1, RT305X_GPIO_MODE_MDIO), 63 GRP("rgmii", rgmii_func, 1, RT305X_GPIO_MODE_RGMII), 64 GRP("sdram", sdram_func, 1, RT305X_GPIO_MODE_SDRAM), 69 GRP("i2c", i2c_func, 1, RT305X_GPIO_MODE_I2C), 70 GRP("spi", spi_func, 1, RT305X_GPIO_MODE_SPI), [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/rc/ |
| H A D | rc_data.cpp | 32 MPP_RET rc_data_init(DataGroup *grp, DataGroupCfg *cfg) in rc_data_init() argument 34 if (NULL == grp || NULL == cfg || in rc_data_init() 36 mpp_err_f("invalid data group %p cfg %p\n", grp, cfg); in rc_data_init() 48 MPP_RET rc_data_deinit(DataGroup grp) in rc_data_deinit() argument 50 if (NULL == grp) { in rc_data_deinit() 51 mpp_err_f("invalid data group %p \n", grp); in rc_data_deinit() 55 DataGroupImpl *p = (DataGroupImpl *)grp; in rc_data_deinit() 57 MPP_FREE(grp); in rc_data_deinit() 62 MPP_RET rc_data_reset(DataGroup grp) in rc_data_reset() argument 64 if (NULL == grp) { in rc_data_reset() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/ |
| H A D | user_exp_rcv.c | 61 u32 rcventry, struct tid_group *grp, 69 struct tid_group *grp, 74 struct tid_group **grp); 359 struct tid_group *grp = in hfi1_user_exp_rcv_setup() local 362 ret = program_rcvarray(fd, tidbuf, grp, in hfi1_user_exp_rcv_setup() 367 * entries for the entire group, reset the grp fields in hfi1_user_exp_rcv_setup() 368 * and add the grp back to the free group list. in hfi1_user_exp_rcv_setup() 371 tid_group_add_tail(grp, &uctxt->tid_group_list); in hfi1_user_exp_rcv_setup() 377 tid_group_add_tail(grp, &uctxt->tid_full_list); in hfi1_user_exp_rcv_setup() 384 struct tid_group *grp, *ptr; in hfi1_user_exp_rcv_setup() local [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/pinctrl/uniphier/ |
| H A D | pinctrl-uniphier.h | 82 #define __UNIPHIER_PINCTRL_GROUP(grp) \ argument 84 .name = #grp, \ 85 .pins = grp##_pins, \ 86 .num_pins = ARRAY_SIZE(grp##_pins), \ 87 .muxvals = grp##_muxvals + \ 88 BUILD_BUG_ON_ZERO(ARRAY_SIZE(grp##_pins) != \ 89 ARRAY_SIZE(grp##_muxvals)), \ 99 #define UNIPHIER_PINCTRL_GROUP(grp) \ argument 100 { .num_pins = ARRAY_SIZE(grp##_pins) + ARRAY_SIZE(grp##_muxvals) } 103 #define UNIPHIER_PINCTRL_GROUP(grp) __UNIPHIER_PINCTRL_GROUP(grp) argument [all …]
|