Home
last modified time | relevance | path

Searched refs:vctrl (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/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()
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 in vctrl_set_voltage() local
154 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_get_voltage_sel() local
162 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_set_voltage_sel() local
232 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_list_voltage() local
240 vctrl_parse_dt(struct platform_device *pdev, struct vctrl_data *vctrl) vctrl_parse_dt() argument
328 struct vctrl_data *vctrl = platform_get_drvdata(pdev); vctrl_init_vtable() local
404 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_enable() local
413 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_disable() local
422 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_is_enabled() local
448 struct vctrl_data *vctrl; vctrl_probe() local
[all...]
/kernel/linux/linux-6.6/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()
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 in vctrl_set_voltage() local
154 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_get_voltage_sel() local
162 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_set_voltage_sel() local
229 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_list_voltage() local
237 vctrl_parse_dt(struct platform_device *pdev, struct vctrl_data *vctrl) vctrl_parse_dt() argument
325 struct vctrl_data *vctrl = platform_get_drvdata(pdev); vctrl_init_vtable() local
401 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_enable() local
410 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_disable() local
419 struct vctrl_data *vctrl = rdev_get_drvdata(rdev); vctrl_is_enabled() local
445 struct vctrl_data *vctrl; vctrl_probe() local
[all...]
/kernel/linux/linux-6.6/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 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
939 vcap_get_locked_rule(struct vcap_control *vctrl, u32 id) vcap_get_locked_rule() argument
956 vcap_lookup_rule_by_cookie(struct vcap_control *vctrl, u64 cookie) vcap_lookup_rule_by_cookie() argument
1326 vcap_verify_actionstream_actionset(struct vcap_control *vctrl, enum vcap_type vt, u32 *actionstream, enum vcap_actionfield_set actionset) vcap_verify_actionstream_actionset() argument
1362 vcap_find_actionstream_typegroup_sw(struct vcap_control *vctrl, enum vcap_type vt, u32 *stream, int sw_max) vcap_find_actionstream_typegroup_sw() argument
1386 vcap_find_actionstream_actionset(struct vcap_control *vctrl, enum vcap_type vt, u32 *stream, int sw_max) vcap_find_actionstream_actionset() argument
1433 struct vcap_control *vctrl = ri->vctrl; vcap_decode_actionset() local
1476 struct vcap_control *vctrl = ri->vctrl; vcap_decode_keyset() local
1622 vcap_find_admin(struct vcap_control *vctrl, int cid) vcap_find_admin() argument
1638 vcap_admin_is_last(struct vcap_control *vctrl, struct vcap_admin *admin, bool ingress) vcap_admin_is_last() argument
1659 vcap_chain_offset(struct vcap_control *vctrl, int from_cid, int to_cid) vcap_chain_offset() argument
1677 vcap_is_next_lookup(struct vcap_control *vctrl, int src_cid, int dst_cid) vcap_is_next_lookup() argument
1810 vcap_keyset_name(struct vcap_control *vctrl, enum vcap_keyfield_set keyset) vcap_keyset_name() argument
1818 vcap_keyfield_name(struct vcap_control *vctrl, enum vcap_key_field key) vcap_keyfield_name() argument
1826 vcap_actionset_name(struct vcap_control *vctrl, enum vcap_actionfield_set actionset) vcap_actionset_name() argument
1833 vcap_actionfield_name(struct vcap_control *vctrl, enum vcap_action_field action) vcap_actionfield_name() argument
1841 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
1919 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
2174 vcap_is_chain_used(struct vcap_control *vctrl, struct net_device *ndev, int src_cid) vcap_is_chain_used() argument
2189 vcap_get_next_chain(struct vcap_control *vctrl, struct net_device *ndev, int dst_cid) vcap_get_next_chain() argument
2208 vcap_path_exist(struct vcap_control *vctrl, struct net_device *ndev, int dst_cid) vcap_path_exist() argument
2311 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
2434 vcap_get_rule(struct vcap_control *vctrl, u32 id) vcap_get_rule() argument
2537 vcap_del_rule(struct vcap_control *vctrl, struct net_device *ndev, u32 id) vcap_del_rule() argument
2579 vcap_del_rules(struct vcap_control *vctrl, struct vcap_admin *admin) vcap_del_rules() argument
2994 vcap_enable_rules(struct vcap_control *vctrl, struct net_device *ndev, int chain) vcap_enable_rules() argument
3053 vcap_disable_rules(struct vcap_control *vctrl, struct net_device *ndev, int chain) vcap_disable_rules() argument
3088 vcap_is_enabled(struct vcap_control *vctrl, struct net_device *ndev, int dst_cid) vcap_is_enabled() argument
3103 vcap_enable(struct vcap_control *vctrl, struct net_device *ndev, unsigned long cookie, int src_cid, int dst_cid) vcap_enable() argument
3143 vcap_disable(struct vcap_control *vctrl, struct net_device *ndev, unsigned long cookie) vcap_disable() argument
3184 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
3218 vcap_is_last_chain(struct vcap_control *vctrl, int cid, bool ingress) vcap_is_last_chain() argument
3311 struct vcap_control *vctrl = ri->vctrl; vcap_rule_get_untyped_keyset() local
3331 struct vcap_control *vctrl = ri->vctrl; vcap_rule_get_keysets() local
3372 vcap_get_rule_count_by_cookie(struct vcap_control *vctrl, struct vcap_counter *ctr, u64 cookie) vcap_get_rule_count_by_cookie() argument
3532 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_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
215 struct vcap_control *vctrl = ri->vctrl; vcap_debugfs_show_rule_actionset() local
236 vcap_show_admin_rule(struct vcap_control *vctrl, struct vcap_admin *admin, struct vcap_output_print *out, struct vcap_rule_internal *ri) vcap_show_admin_rule() argument
266 vcap_show_admin_info(struct vcap_control *vctrl, struct vcap_admin *admin, struct vcap_output_print *out) vcap_show_admin_info() argument
292 vcap_show_admin(struct vcap_control *vctrl, struct vcap_admin *admin, struct vcap_output_print *out) vcap_show_admin() argument
315 vcap_show_admin_raw(struct vcap_control *vctrl, struct vcap_admin *admin, struct vcap_output_print *out) vcap_show_admin_raw() argument
386 vcap_port_debugfs(struct device *dev, struct dentry *parent, struct vcap_control *vctrl, struct net_device *ndev) vcap_port_debugfs() argument
437 vcap_debugfs(struct device *dev, struct dentry *parent, struct vcap_control *vctrl) vcap_debugfs() argument
[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, in
[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()
35 struct vcap_control *vctrl) in vcap_debugfs()
27 vcap_port_debugfs(struct device *dev, struct dentry *parent, struct vcap_control *vctrl, struct net_device *ndev) vcap_port_debugfs() argument
33 vcap_debugfs(struct device *dev, struct dentry *parent, struct vcap_control *vctrl) vcap_debugfs() argument
H A Dvcap_api_kunit.c594 .vctrl = &test_vctrl, in vcap_api_encode_keyfield_test()
655 .vctrl = &test_vctrl, in vcap_api_encode_max_keyfield_test()
718 .vctrl = &test_vctrl, in vcap_api_encode_actionfield_test()
839 .vctrl = &test_vctrl, in vcap_api_encode_rule_keyset_test()
949 .vctrl = &test_vctrl, in vcap_api_encode_rule_actionset_test()
1017 .vctrl = &test_vctrl, in vcap_api_rule_add_keyvalue_test()
1192 .vctrl = &test_vctrl, in vcap_api_rule_find_keyset_basic_test()
1239 .vctrl = &test_vctrl, in vcap_api_rule_find_keyset_failed_test()
1286 .vctrl = &test_vctrl, in vcap_api_rule_find_keyset_many_test()
1474 .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()
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc_flower.c260 static int sparx5_tc_flower_action_check(struct vcap_control *vctrl, in sparx5_tc_flower_action_check() argument
294 if (!vcap_is_next_lookup(vctrl, fco->common.chain_index, in sparx5_tc_flower_action_check()
300 } else if (!vcap_is_last_chain(vctrl, fco->common.chain_index, in sparx5_tc_flower_action_check()
386 struct vcap_control *vctrl; in sparx5_tc_select_protocol_keyset() local
388 vctrl = port->sparx5->vcap_ctrl; in sparx5_tc_select_protocol_keyset()
408 kinfo = vcap_keyfieldset(vctrl, admin->vtype, in sparx5_tc_select_protocol_keyset()
466 static int sparx5_tc_add_rule_copy(struct vcap_control *vctrl, in sparx5_tc_add_rule_copy() argument
495 vcap_keyset_name(vctrl, rule->keyset), in sparx5_tc_add_rule_copy()
529 static int sparx5_tc_add_remaining_rules(struct vcap_control *vctrl, in sparx5_tc_add_remaining_rules() argument
541 err = sparx5_tc_add_rule_copy(vctrl, fc in sparx5_tc_add_remaining_rules()
618 sparx5_tc_add_rule_link(struct vcap_control *vctrl, struct vcap_admin *admin, struct vcap_rule *vrule, int from_cid, int to_cid) sparx5_tc_add_rule_link() argument
1093 struct vcap_control *vctrl; sparx5_tc_flower_replace() local
1267 sparx5_tc_free_rule_resources(struct net_device *ndev, struct vcap_control *vctrl, int rule_id) sparx5_tc_free_rule_resources() argument
1292 struct vcap_control *vctrl; sparx5_tc_flower_destroy() local
1326 struct vcap_control *vctrl; sparx5_tc_flower_stats() local
1352 struct vcap_control *vctrl; sparx5_tc_flower_template_create() local
1457 struct vcap_control *vctrl; sparx5_tc_flower() local
[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()
/kernel/linux/linux-6.6/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, por in lan966x_tc_flower_del()
[all...]
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()
/kernel/linux/linux-5.10/include/linux/irqchip/
H A Darm-gic-common.h32 struct resource vctrl; member
/kernel/linux/linux-6.6/include/linux/irqchip/
H A Darm-vgic-info.h30 struct resource vctrl; member
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/
H A Dvgic-v2.c371 if (!info->vctrl.start) { in vgic_v2_probe()
392 ret = create_hyp_io_mappings(info->vctrl.start, in vgic_v2_probe()
393 resource_size(&info->vctrl), in vgic_v2_probe()
415 kvm_debug("vgic-v2@%llx\n", info->vctrl.start); in vgic_v2_probe()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/irqchip/
H A Dirq-gic.c1498 struct resource *vctrl_res = &gic_v2_kvm_info.vctrl; in gic_of_setup_kvm_info()
1656 struct resource *vctrl_res = &gic_v2_kvm_info.vctrl; in gic_acpi_setup_kvm_info()
/kernel/linux/linux-6.6/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()

Completed in 18 milliseconds