/linux/drivers/regulator/ |
H A D | vctrl-regulator.c | 48 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() 65 pr_err("vctrl: failed to get control voltage\n"); 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 [all …]
|
H A D | Makefile | 195 obj-$(CONFIG_REGULATOR_VCTRL) += vctrl-regulator.o
|
/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api.c | 218 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 D | vcap_api_debugfs.c | 12 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 D | vcap_api_private.h | 28 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 D | vcap_api_client.h | 152 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 D | vcap_api_debugfs.h | 18 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 D | vcap_api_kunit.c | 597 .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 D | vcap_api_debugfs_kunit.c | 522 .vctrl = &test_vctrl, in vcap_api_show_admin_rule_test()
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_flower.c | 259 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 D | lan966x_vcap_debugfs.c | 222 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()
|
/linux/arch/arm64/kvm/vgic/ |
H A D | vgic-v2.c | 347 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() 373 kvm_err("Cannot map VCTRL into hyp\n"); in vgic_v2_probe() 391 kvm_debug("vgic-v2@%llx\n", info->vctrl.start); in vgic_v2_probe()
|
/linux/include/linux/irqchip/ |
H A D | arm-vgic-info.h | 30 struct resource vctrl; member
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_vcap_debugfs.c | 446 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()
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-gru.dtsi | 121 compatible = "vctrl-regulator"; 150 compatible = "vctrl-regulator"; 179 compatible = "vctrl-regulator";
|
H A D | rk3399-gru-chromebook.dtsi | 66 compatible = "vctrl-regulator";
|
/linux/arch/arm/boot/dts/microchip/ |
H A D | at91-tse850-3.dts | 343 /* 4 */ "", "456KHZ", "VCTRL", "SYNCSEL",
|
/linux/drivers/usb/musb/ |
H A D | musb_regs.h | 228 /* REVISIT: vctrl/vstatus: optional vendor utmi+phy register at 0x68 */
|
/linux/drivers/irqchip/ |
H A D | irq-gic.c | 1445 struct resource *vctrl_res = &gic_v2_kvm_info.vctrl; in gic_of_setup_kvm_info() 1597 struct resource *vctrl_res = &gic_v2_kvm_info.vctrl; in gic_acpi_setup_kvm_info()
|