Home
last modified time | relevance | path

Searched refs:swt (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/iio/trigger/
H A Diio-trig-hrtimer.c23 struct iio_sw_trigger swt; member
92 iio_trigger_poll(info->swt.trigger); in iio_hrtimer_trig_handler()
125 trig_info->swt.trigger = iio_trigger_alloc("%s", name); in iio_trig_hrtimer_probe()
126 if (!trig_info->swt.trigger) { in iio_trig_hrtimer_probe()
131 iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); in iio_trig_hrtimer_probe()
132 trig_info->swt.trigger->ops = &iio_hrtimer_trigger_ops; in iio_trig_hrtimer_probe()
133 trig_info->swt.trigger->dev.groups = iio_hrtimer_attr_groups; in iio_trig_hrtimer_probe()
141 ret = iio_trigger_register(trig_info->swt.trigger); in iio_trig_hrtimer_probe()
145 iio_swt_group_init_type_name(&trig_info->swt, name, &iio_hrtimer_type); in iio_trig_hrtimer_probe()
146 return &trig_info->swt; in iio_trig_hrtimer_probe()
155 iio_trig_hrtimer_remove(struct iio_sw_trigger *swt) iio_trig_hrtimer_remove() argument
[all...]
H A Diio-trig-loop.c34 struct iio_sw_trigger swt; member
87 trig_info->swt.trigger = iio_trigger_alloc("%s", name); in iio_trig_loop_probe()
88 if (!trig_info->swt.trigger) { in iio_trig_loop_probe()
93 iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); in iio_trig_loop_probe()
94 trig_info->swt.trigger->ops = &iio_loop_trigger_ops; in iio_trig_loop_probe()
96 ret = iio_trigger_register(trig_info->swt.trigger); in iio_trig_loop_probe()
100 iio_swt_group_init_type_name(&trig_info->swt, name, &iio_loop_type); in iio_trig_loop_probe()
102 return &trig_info->swt; in iio_trig_loop_probe()
105 iio_trigger_free(trig_info->swt.trigger); in iio_trig_loop_probe()
112 static int iio_trig_loop_remove(struct iio_sw_trigger *swt) in iio_trig_loop_remove() argument
[all...]
/kernel/linux/linux-6.6/drivers/iio/trigger/
H A Diio-trig-hrtimer.c26 struct iio_sw_trigger swt; member
105 iio_trigger_poll(info->swt.trigger); in iio_hrtimer_trig_handler()
138 trig_info->swt.trigger = iio_trigger_alloc(NULL, "%s", name); in iio_trig_hrtimer_probe()
139 if (!trig_info->swt.trigger) { in iio_trig_hrtimer_probe()
144 iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); in iio_trig_hrtimer_probe()
145 trig_info->swt.trigger->ops = &iio_hrtimer_trigger_ops; in iio_trig_hrtimer_probe()
146 trig_info->swt.trigger->dev.groups = iio_hrtimer_attr_groups; in iio_trig_hrtimer_probe()
154 ret = iio_trigger_register(trig_info->swt.trigger); in iio_trig_hrtimer_probe()
158 iio_swt_group_init_type_name(&trig_info->swt, name, &iio_hrtimer_type); in iio_trig_hrtimer_probe()
159 return &trig_info->swt; in iio_trig_hrtimer_probe()
168 iio_trig_hrtimer_remove(struct iio_sw_trigger *swt) iio_trig_hrtimer_remove() argument
[all...]
H A Diio-trig-loop.c34 struct iio_sw_trigger swt; member
87 trig_info->swt.trigger = iio_trigger_alloc(NULL, "%s", name); in iio_trig_loop_probe()
88 if (!trig_info->swt.trigger) { in iio_trig_loop_probe()
93 iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); in iio_trig_loop_probe()
94 trig_info->swt.trigger->ops = &iio_loop_trigger_ops; in iio_trig_loop_probe()
96 ret = iio_trigger_register(trig_info->swt.trigger); in iio_trig_loop_probe()
100 iio_swt_group_init_type_name(&trig_info->swt, name, &iio_loop_type); in iio_trig_loop_probe()
102 return &trig_info->swt; in iio_trig_loop_probe()
105 iio_trigger_free(trig_info->swt.trigger); in iio_trig_loop_probe()
112 static int iio_trig_loop_remove(struct iio_sw_trigger *swt) in iio_trig_loop_remove() argument
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
H A Dhns_roce_hw_v2.c1618 struct hns_roce_vf_switch *swt; in hns_roce_set_vf_switch_param() local
1621 swt = (struct hns_roce_vf_switch *)desc.data; in hns_roce_set_vf_switch_param()
1623 swt->rocee_sel |= cpu_to_le32(HNS_ICL_SWITCH_CMD_ROCEE_SEL); in hns_roce_set_vf_switch_param()
1624 roce_set_field(swt->fun_id, VF_SWITCH_DATA_FUN_ID_VF_ID_M, in hns_roce_set_vf_switch_param()
1633 roce_set_bit(swt->cfg, VF_SWITCH_DATA_CFG_ALW_LPBK_S, 1); in hns_roce_set_vf_switch_param()
1634 roce_set_bit(swt->cfg, VF_SWITCH_DATA_CFG_ALW_LCL_LPBK_S, 0); in hns_roce_set_vf_switch_param()
1635 roce_set_bit(swt->cfg, VF_SWITCH_DATA_CFG_ALW_DST_OVRD_S, 1); in hns_roce_set_vf_switch_param()
/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/
H A Dhns_roce_hw_v2.c1788 struct hns_roce_vf_switch *swt; in __hns_roce_set_vf_switch_param() local
1792 swt = (struct hns_roce_vf_switch *)desc.data; in __hns_roce_set_vf_switch_param()
1794 swt->rocee_sel |= cpu_to_le32(HNS_ICL_SWITCH_CMD_ROCEE_SEL); in __hns_roce_set_vf_switch_param()
1795 hr_reg_write(swt, VF_SWITCH_VF_ID, vf_id); in __hns_roce_set_vf_switch_param()
1802 hr_reg_enable(swt, VF_SWITCH_ALW_LPBK); in __hns_roce_set_vf_switch_param()
1803 hr_reg_clear(swt, VF_SWITCH_ALW_LCL_LPBK); in __hns_roce_set_vf_switch_param()
1804 hr_reg_enable(swt, VF_SWITCH_ALW_DST_OVRD); in __hns_roce_set_vf_switch_param()

Completed in 18 milliseconds