Home
last modified time | relevance | path

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

/openbmc/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 …]
H A DMakefile189 obj-$(CONFIG_REGULATOR_VCTRL) += vctrl-regulator.o
/openbmc/linux/drivers/net/ethernet/microchip/vcap/
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->vcaps[vt].sw_width, in vcap_find_keystream_typegroup_sw()
[all …]
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_private.h28 struct vcap_control *vctrl; /* the client control */ member
68 int vcap_keyfield_count(struct vcap_control *vctrl,
72 vcap_keyfield_typegroup(struct vcap_control *vctrl,
75 const struct vcap_field *vcap_keyfields(struct vcap_control *vctrl,
83 vcap_actionfieldset(struct vcap_control *vctrl,
86 int vcap_actionfield_count(struct vcap_control *vctrl,
91 vcap_actionfield_typegroup(struct vcap_control *vctrl, enum vcap_type vt,
95 vcap_actionfields(struct vcap_control *vctrl,
98 const char *vcap_actionset_name(struct vcap_control *vctrl,
101 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);
208 int vcap_get_rule_count_by_cookie(struct vcap_control *vctrl,
217 struct vcap_admin *vcap_find_admin(struct vcap_control *vctrl, int cid);
222 int vcap_lookup_rule_by_cookie(struct vcap_control *vctrl, u64 cookie);
224 int vcap_chain_offset(struct vcap_control *vctrl, int from_cid, int to_cid);
226 bool vcap_is_next_lookup(struct vcap_control *vctrl, int cur_cid, int next_cid);
228 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);
28 struct vcap_control *vctrl, in vcap_port_debugfs() argument
35 struct vcap_control *vctrl) in vcap_debugfs() argument
H A Dvcap_api_kunit.c597 .vctrl = &test_vctrl, in vcap_api_encode_keyfield_test()
658 .vctrl = &test_vctrl, in vcap_api_encode_max_keyfield_test()
721 .vctrl = &test_vctrl, in vcap_api_encode_actionfield_test()
842 .vctrl = &test_vctrl, in vcap_api_encode_rule_keyset_test()
952 .vctrl = &test_vctrl, in vcap_api_encode_rule_actionset_test()
1020 .vctrl = &test_vctrl, in vcap_api_rule_add_keyvalue_test()
1195 .vctrl = &test_vctrl, in vcap_api_rule_find_keyset_basic_test()
1242 .vctrl = &test_vctrl, in vcap_api_rule_find_keyset_failed_test()
1289 .vctrl = &test_vctrl, in vcap_api_rule_find_keyset_many_test()
1469 .vctrl = &test_vctrl, in vcap_api_set_rule_counter_test()
[all …]
H A Dvcap_api_debugfs_kunit.c522 .vctrl = &test_vctrl, in vcap_api_show_admin_rule_test()
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc_flower.c279 static int sparx5_tc_flower_action_check(struct vcap_control *vctrl, in sparx5_tc_flower_action_check() argument
313 if (!vcap_is_next_lookup(vctrl, fco->common.chain_index, in sparx5_tc_flower_action_check()
319 } else if (!vcap_is_last_chain(vctrl, fco->common.chain_index, in sparx5_tc_flower_action_check()
405 struct vcap_control *vctrl; in sparx5_tc_select_protocol_keyset() local
407 vctrl = port->sparx5->vcap_ctrl; in sparx5_tc_select_protocol_keyset()
427 kinfo = vcap_keyfieldset(vctrl, admin->vtype, in sparx5_tc_select_protocol_keyset()
485 static int sparx5_tc_add_rule_copy(struct vcap_control *vctrl, in sparx5_tc_add_rule_copy() argument
514 vcap_keyset_name(vctrl, rule->keyset), in sparx5_tc_add_rule_copy()
548 static int sparx5_tc_add_remaining_rules(struct vcap_control *vctrl, in sparx5_tc_add_remaining_rules() argument
560 err = sparx5_tc_add_rule_copy(vctrl, fco, erule, admin, in sparx5_tc_add_remaining_rules()
[all …]
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()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tc_flower.c253 static int lan966x_tc_flower_action_check(struct vcap_control *vctrl, in lan966x_tc_flower_action_check() argument
287 if (!vcap_is_next_lookup(vctrl, fco->common.chain_index, in lan966x_tc_flower_action_check()
293 } else if (!vcap_is_last_chain(vctrl, fco->common.chain_index, in lan966x_tc_flower_action_check()
373 static int lan966x_tc_add_rule_link(struct vcap_control *vctrl, in lan966x_tc_add_rule_link() argument
379 struct vcap_admin *to_admin = vcap_find_admin(vctrl, to_cid); in lan966x_tc_add_rule_link()
388 diff = vcap_chain_offset(vctrl, f->common.chain_index, to_cid); in lan966x_tc_add_rule_link()
557 struct vcap_control *vctrl; in lan966x_tc_flower_del() local
560 vctrl = port->lan966x->vcap_ctrl; in lan966x_tc_flower_del()
562 rule_id = vcap_lookup_rule_by_cookie(vctrl, f->cookie); in lan966x_tc_flower_del()
566 err = vcap_del_rule(vctrl, port->dev, rule_id); in lan966x_tc_flower_del()
H A Dlan966x_vcap_debugfs.c220 struct vcap_control *vctrl; in lan966x_vcap_port_info() local
222 vctrl = lan966x->vcap_ctrl; in lan966x_vcap_port_info()
223 vcap = &vctrl->vcaps[admin->vtype]; in lan966x_vcap_port_info()
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Dvctrl.txt6 - compatible : must be "vctrl-regulator".
25 avoid this situation the vctrl driver breaks down
36 vctrl-reg {
37 compatible = "vctrl-regulator";
/openbmc/linux/arch/arm64/kvm/vgic/
H A Dvgic-v2.c347 if (!info->vctrl.start) { in vgic_v2_probe()
368 ret = create_hyp_io_mappings(info->vctrl.start, in vgic_v2_probe()
369 resource_size(&info->vctrl), in vgic_v2_probe()
391 kvm_debug("vgic-v2@%llx\n", info->vctrl.start); in vgic_v2_probe()
/openbmc/linux/include/linux/irqchip/
H A Darm-vgic-info.h30 struct resource vctrl; member
/openbmc/u-boot/include/
H A Dtsi148.h64 unsigned int vctrl; /* 0x238 */ member
/openbmc/u-boot/arch/arm/dts/
H A Drk3399-gru.dtsi123 compatible = "vctrl-regulator";
152 compatible = "vctrl-regulator";
181 compatible = "vctrl-regulator";
H A Drk3399-gru-chromebook.dtsi66 compatible = "vctrl-regulator";
/openbmc/linux/arch/arm64/boot/dts/rockchip/
H A Drk3399-gru.dtsi122 compatible = "vctrl-regulator";
151 compatible = "vctrl-regulator";
180 compatible = "vctrl-regulator";
H A Drk3399-gru-chromebook.dtsi66 compatible = "vctrl-regulator";
/openbmc/u-boot/cmd/
H A Dtsi148.c88 __raw_writel(htonl(0x00000084), &dev->uregs->vctrl); in tsi148_init()
/openbmc/linux/drivers/irqchip/
H A Dirq-gic.c1448 struct resource *vctrl_res = &gic_v2_kvm_info.vctrl; in gic_of_setup_kvm_info()
1600 struct resource *vctrl_res = &gic_v2_kvm_info.vctrl; in gic_acpi_setup_kvm_info()
/openbmc/linux/
H A Dopengrok0.0.log[all...]