Home
last modified time | relevance | path

Searched refs:vctrl (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/regulator/
H A Dvctrl-regulator.c48 static int vctrl_calc_ctrl_voltage(struct vctrl_data *vctrl, int out_uV) in vctrl_calc_ctrl_voltage() argument
50 struct vctrl_voltage_range *ctrl = &vctrl->vrange.ctrl; in vctrl_calc_ctrl_voltage()
51 struct vctrl_voltage_range *out = &vctrl->vrange.out; in vctrl_calc_ctrl_voltage()
59 static int vctrl_calc_output_voltage(struct vctrl_data *vctrl, int ctrl_uV) in vctrl_calc_output_voltage() argument
61 struct vctrl_voltage_range *ctrl = &vctrl->vrange.ctrl; in vctrl_calc_output_voltage()
62 struct vctrl_voltage_range *out = &vctrl->vrange.out; in vctrl_calc_output_voltage()
83 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); in vctrl_get_voltage() local
91 return vctrl_calc_output_voltage(vctrl, ctrl_uV); in vctrl_get_voltage()
98 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); in vctrl_set_voltage() local
107 uV = vctrl_calc_output_voltage(vctrl, orig_ctrl_uV); in vctrl_set_voltage()
[all …]
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_debugfs.c12 struct vcap_control *vctrl; member
17 struct vcap_control *vctrl; member
22 static void vcap_debugfs_show_rule_keyfield(struct vcap_control *vctrl, in vcap_debugfs_show_rule_keyfield() argument
32 out->prf(out->dst, " %s: W%d: ", vcap_keyfield_name(vctrl, key), in vcap_debugfs_show_rule_keyfield()
117 vcap_debugfs_show_rule_actionfield(struct vcap_control *vctrl, in vcap_debugfs_show_rule_actionfield() argument
128 vcap_actionfield_name(vctrl, action), in vcap_debugfs_show_rule_actionfield()
173 err = vcap_find_keystream_keysets(ri->vctrl, admin->vtype, in vcap_debugfs_show_keysets()
186 vcap_keyset_name(ri->vctrl, matches.keysets[idx])); in vcap_debugfs_show_keysets()
194 struct vcap_control *vctrl = ri->vctrl; in vcap_debugfs_show_rule_keyset() local
204 keyfield = vcap_keyfields(vctrl, admin->vtype, ri->data.keyset); in vcap_debugfs_show_rule_keyset()
[all …]
H A Dvcap_api.c218 static bool vcap_verify_keystream_keyset(struct vcap_control *vctrl, in vcap_verify_keystream_keyset() argument
224 const struct vcap_info *vcap = &vctrl->vcaps[vt]; in vcap_verify_keystream_keyset()
233 if (vcap_keyfield_count(vctrl, vt, keyset) == 0) in vcap_verify_keystream_keyset()
236 info = vcap_keyfieldset(vctrl, vt, keyset); in vcap_verify_keystream_keyset()
246 tgt = vcap_keyfield_typegroup(vctrl, vt, keyset); in vcap_verify_keystream_keyset()
250 fields = vcap_keyfields(vctrl, vt, keyset); in vcap_verify_keystream_keyset()
308 static int vcap_find_keystream_typegroup_sw(struct vcap_control *vctrl, in vcap_find_keystream_typegroup_sw() argument
315 tgt = vctrl->vcaps[vt].keyfield_set_typegroups; in vcap_find_keystream_typegroup_sw()
317 for (sw_idx = vctrl->vcaps[vt].sw_count; sw_idx >= 0; sw_idx--) { in vcap_find_keystream_typegroup_sw()
321 res = vcap_verify_typegroups(stream, vctrl in vcap_find_keystream_typegroup_sw()
333 vcap_find_keystream_keysets(struct vcap_control * vctrl,enum vcap_type vt,u32 * keystream,u32 * mskstream,bool mask,int sw_max,struct vcap_keyset_list * kslist) vcap_find_keystream_keysets() argument
366 vcap_addr_keysets(struct vcap_control * vctrl,struct net_device * ndev,struct vcap_admin * admin,int addr,struct vcap_keyset_list * kslist) vcap_addr_keysets() argument
396 vcap_keyfields(struct vcap_control * vctrl,enum vcap_type vt,enum vcap_keyfield_set keyset) vcap_keyfields() argument
407 vcap_keyfieldset(struct vcap_control * vctrl,enum vcap_type vt,enum vcap_keyfield_set keyset) vcap_keyfieldset() argument
425 vcap_keyfield_typegroup(struct vcap_control * vctrl,enum vcap_type vt,enum vcap_keyfield_set keyset) vcap_keyfield_typegroup() argument
437 vcap_keyfield_count(struct vcap_control * vctrl,enum vcap_type vt,enum vcap_keyfield_set keyset) vcap_keyfield_count() argument
499 vcap_encode_keyfield_typegroups(struct vcap_control * vctrl,struct vcap_rule_internal * ri,const struct vcap_typegroup * tgt) vcap_encode_keyfield_typegroups() argument
691 vcap_actionfields(struct vcap_control * vctrl,enum vcap_type vt,enum vcap_actionfield_set actionset) vcap_actionfields() argument
701 vcap_actionfieldset(struct vcap_control * vctrl,enum vcap_type vt,enum vcap_actionfield_set actionset) vcap_actionfieldset() argument
717 vcap_actionfield_typegroup(struct vcap_control * vctrl,enum vcap_type vt,enum vcap_actionfield_set actionset) vcap_actionfield_typegroup() argument
729 vcap_actionfield_count(struct vcap_control * vctrl,enum vcap_type vt,enum vcap_actionfield_set actionset) vcap_actionfield_count() argument
924 vcap_rule_exists(struct vcap_control * vctrl,u32 id) vcap_rule_exists() argument
949 vcap_get_locked_rule(struct vcap_control * vctrl,u32 id) vcap_get_locked_rule() argument
966 vcap_lookup_rule_by_cookie(struct vcap_control * vctrl,u64 cookie) vcap_lookup_rule_by_cookie() argument
1336 vcap_verify_actionstream_actionset(struct vcap_control * vctrl,enum vcap_type vt,u32 * actionstream,enum vcap_actionfield_set actionset) vcap_verify_actionstream_actionset() argument
1372 vcap_find_actionstream_typegroup_sw(struct vcap_control * vctrl,enum vcap_type vt,u32 * stream,int sw_max) vcap_find_actionstream_typegroup_sw() argument
1396 vcap_find_actionstream_actionset(struct vcap_control * vctrl,enum vcap_type vt,u32 * stream,int sw_max) vcap_find_actionstream_actionset() argument
1443 struct vcap_control *vctrl = ri->vctrl; vcap_decode_actionset() local
1486 struct vcap_control *vctrl = ri->vctrl; vcap_decode_keyset() local
1632 vcap_find_admin(struct vcap_control * vctrl,int cid) vcap_find_admin() argument
1648 vcap_admin_is_last(struct vcap_control * vctrl,struct vcap_admin * admin,bool ingress) vcap_admin_is_last() argument
1669 vcap_chain_offset(struct vcap_control * vctrl,int from_cid,int to_cid) vcap_chain_offset() argument
1687 vcap_is_next_lookup(struct vcap_control * vctrl,int src_cid,int dst_cid) vcap_is_next_lookup() argument
1820 vcap_keyset_name(struct vcap_control * vctrl,enum vcap_keyfield_set keyset) vcap_keyset_name() argument
1828 vcap_keyfield_name(struct vcap_control * vctrl,enum vcap_key_field key) vcap_keyfield_name() argument
1836 vcap_actionset_name(struct vcap_control * vctrl,enum vcap_actionfield_set actionset) vcap_actionset_name() argument
1843 vcap_actionfield_name(struct vcap_control * vctrl,enum vcap_action_field action) vcap_actionfield_name() argument
1851 vcap_find_keyset_keyfield(struct vcap_control * vctrl,enum vcap_type vtype,enum vcap_keyfield_set keyset,enum vcap_key_field key) vcap_find_keyset_keyfield() argument
1929 vcap_find_actionset_actionfield(struct vcap_control * vctrl,enum vcap_type vtype,enum vcap_actionfield_set actionset,enum vcap_action_field action) vcap_find_actionset_actionfield() argument
2184 vcap_is_chain_used(struct vcap_control * vctrl,struct net_device * ndev,int src_cid) vcap_is_chain_used() argument
2199 vcap_get_next_chain(struct vcap_control * vctrl,struct net_device * ndev,int dst_cid) vcap_get_next_chain() argument
2218 vcap_path_exist(struct vcap_control * vctrl,struct net_device * ndev,int dst_cid) vcap_path_exist() argument
2321 vcap_alloc_rule(struct vcap_control * vctrl,struct net_device * ndev,int vcap_chain_id,enum vcap_user user,u16 priority,u32 id) vcap_alloc_rule() argument
2447 vcap_get_rule(struct vcap_control * vctrl,u32 id) vcap_get_rule() argument
2550 vcap_del_rule(struct vcap_control * vctrl,struct net_device * ndev,u32 id) vcap_del_rule() argument
2592 vcap_del_rules(struct vcap_control * vctrl,struct vcap_admin * admin) vcap_del_rules() argument
3019 vcap_enable_rules(struct vcap_control * vctrl,struct net_device * ndev,int chain) vcap_enable_rules() argument
3078 vcap_disable_rules(struct vcap_control * vctrl,struct net_device * ndev,int chain) vcap_disable_rules() argument
3113 vcap_is_enabled(struct vcap_control * vctrl,struct net_device * ndev,int dst_cid) vcap_is_enabled() argument
3128 vcap_enable(struct vcap_control * vctrl,struct net_device * ndev,unsigned long cookie,int src_cid,int dst_cid) vcap_enable() argument
3168 vcap_disable(struct vcap_control * vctrl,struct net_device * ndev,unsigned long cookie) vcap_disable() argument
3209 vcap_enable_lookups(struct vcap_control * vctrl,struct net_device * ndev,int src_cid,int dst_cid,unsigned long cookie,bool enable) vcap_enable_lookups() argument
3243 vcap_is_last_chain(struct vcap_control * vctrl,int cid,bool ingress) vcap_is_last_chain() argument
3336 struct vcap_control *vctrl = ri->vctrl; vcap_rule_get_untyped_keyset() local
3356 struct vcap_control *vctrl = ri->vctrl; vcap_rule_get_keysets() local
3397 vcap_get_rule_count_by_cookie(struct vcap_control * vctrl,struct vcap_counter * ctr,u64 cookie) vcap_get_rule_count_by_cookie() argument
3557 vcap_select_min_rule_keyset(struct vcap_control * vctrl,enum vcap_type vtype,struct vcap_keyset_list * kslist) vcap_select_min_rule_keyset() argument
[all...]
H A Dvcap_api_private.h28 struct vcap_control *vctrl; /* the client control */ member
71 int vcap_keyfield_count(struct vcap_control *vctrl,
75 vcap_keyfield_typegroup(struct vcap_control *vctrl,
78 const struct vcap_field *vcap_keyfields(struct vcap_control *vctrl,
86 vcap_actionfieldset(struct vcap_control *vctrl,
89 int vcap_actionfield_count(struct vcap_control *vctrl,
94 vcap_actionfield_typegroup(struct vcap_control *vctrl, enum vcap_type vt,
98 vcap_actionfields(struct vcap_control *vctrl,
101 const char *vcap_actionset_name(struct vcap_control *vctrl,
104 const char *vcap_actionfield_name(struct vcap_control *vctrl,
[all …]
H A Dvcap_api_client.h152 int vcap_enable_lookups(struct vcap_control *vctrl, struct net_device *ndev,
158 struct vcap_rule *vcap_alloc_rule(struct vcap_control *vctrl,
171 int vcap_del_rule(struct vcap_control *vctrl, struct net_device *ndev, u32 id);
175 struct vcap_rule *vcap_get_rule(struct vcap_control *vctrl, u32 id);
210 int vcap_get_rule_count_by_cookie(struct vcap_control *vctrl,
219 struct vcap_admin *vcap_find_admin(struct vcap_control *vctrl, int cid);
224 int vcap_lookup_rule_by_cookie(struct vcap_control *vctrl, u64 cookie);
226 int vcap_chain_offset(struct vcap_control *vctrl, int from_cid, int to_cid);
228 bool vcap_is_next_lookup(struct vcap_control *vctrl, int cur_cid, int next_cid);
230 bool vcap_is_last_chain(struct vcap_control *vctrl, int cid, bool ingress);
[all …]
H A Dvcap_api_debugfs.h18 struct vcap_control *vctrl,
23 struct vcap_control *vctrl,
29 struct vcap_control *vctrl);
34 struct vcap_control *vctrl, in vcap_port_debugfs() argument
41 struct vcap_control *vctrl, in vcap_port_debugfs_portno() argument
49 struct vcap_control *vctrl) in vcap_debugfs() argument
H A Dvcap_api_kunit.c240 admin->vctrl = &test_vctrl; in vcap_test_api_init()
598 .vctrl = &test_vctrl, in vcap_api_encode_keyfield_test()
659 .vctrl = &test_vctrl, in vcap_api_encode_max_keyfield_test()
722 .vctrl = &test_vctrl, in vcap_api_encode_actionfield_test()
843 .vctrl = &test_vctrl, in vcap_api_encode_rule_keyset_test()
953 .vctrl = &test_vctrl, in vcap_api_encode_rule_actionset_test()
1021 .vctrl = &test_vctrl, in vcap_api_rule_add_keyvalue_test()
1196 .vctrl = &test_vctrl, in vcap_api_rule_find_keyset_basic_test()
1243 .vctrl = &test_vctrl, in vcap_api_rule_find_keyset_failed_test()
1290 .vctrl = &test_vctrl, in vcap_api_rule_find_keyset_many_test()
[all …]
H A Dvcap_api_debugfs_kunit.c250 admin->vctrl = &test_vctrl; in vcap_test_api_init()
523 .vctrl = &test_vctrl, in vcap_api_show_admin_rule_test()
H A Dvcap_api.h167 struct vcap_control *vctrl; /* the control instance owning this vcap */ member
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tc_flower.c259 static int lan966x_tc_flower_action_check(struct vcap_control *vctrl, in lan966x_tc_flower_action_check() argument
293 if (!vcap_is_next_lookup(vctrl, fco->common.chain_index, in lan966x_tc_flower_action_check()
299 } else if (!vcap_is_last_chain(vctrl, fco->common.chain_index, in lan966x_tc_flower_action_check()
379 static int lan966x_tc_add_rule_link(struct vcap_control *vctrl, in lan966x_tc_add_rule_link() argument
385 struct vcap_admin *to_admin = vcap_find_admin(vctrl, to_cid); in lan966x_tc_add_rule_link()
394 diff = vcap_chain_offset(vctrl, f->common.chain_index, to_cid); in lan966x_tc_add_rule_link()
563 struct vcap_control *vctrl; in lan966x_tc_flower_del() local
566 vctrl = port->lan966x->vcap_ctrl; in lan966x_tc_flower_del()
568 rule_id = vcap_lookup_rule_by_cookie(vctrl, f->cookie); in lan966x_tc_flower_del()
572 err = vcap_del_rule(vctrl, port->dev, rule_id); in lan966x_tc_flower_del()
H A Dlan966x_vcap_debugfs.c222 struct vcap_control *vctrl; in lan966x_vcap_port_info() local
224 vctrl = lan966x->vcap_ctrl; in lan966x_vcap_port_info()
225 vcap = &vctrl->vcaps[admin->vtype]; in lan966x_vcap_port_info()
H A Dlan966x_vcap_impl.c617 admin->vctrl = ctrl; in lan966x_vcap_admin_alloc()
/linux/include/linux/irqchip/
H A Darm-vgic-info.h34 struct resource vctrl; member
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_vcap_debugfs.c446 struct vcap_control *vctrl; in sparx5_port_info() local
448 vctrl = sparx5->vcap_ctrl; in sparx5_port_info()
449 vcap = &vctrl->vcaps[admin->vtype]; in sparx5_port_info()
H A Dsparx5_vcap_impl.c1952 admin->vctrl = ctrl; in sparx5_vcap_admin_alloc()