Home
last modified time | relevance | path

Searched refs:swt (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.15/drivers/iio/trigger/
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 …]
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()
[all …]
/Linux-v5.15/Documentation/translations/zh_CN/iio/
Diio_configfs.rst61 static int iio_trig_sample_remove(struct iio_sw_trigger *swt)
/Linux-v5.15/Documentation/iio/
Diio_configfs.rst56 static int iio_trig_sample_remove(struct iio_sw_trigger *swt)
/Linux-v5.15/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c1745 struct hns_roce_vf_switch *swt; in __hns_roce_set_vf_switch_param() local
1749 swt = (struct hns_roce_vf_switch *)desc.data; in __hns_roce_set_vf_switch_param()
1751 swt->rocee_sel |= cpu_to_le32(HNS_ICL_SWITCH_CMD_ROCEE_SEL); in __hns_roce_set_vf_switch_param()
1752 roce_set_field(swt->fun_id, VF_SWITCH_DATA_FUN_ID_VF_ID_M, in __hns_roce_set_vf_switch_param()
1760 roce_set_bit(swt->cfg, VF_SWITCH_DATA_CFG_ALW_LPBK_S, 1); in __hns_roce_set_vf_switch_param()
1761 roce_set_bit(swt->cfg, VF_SWITCH_DATA_CFG_ALW_LCL_LPBK_S, 0); in __hns_roce_set_vf_switch_param()
1762 roce_set_bit(swt->cfg, VF_SWITCH_DATA_CFG_ALW_DST_OVRD_S, 1); in __hns_roce_set_vf_switch_param()