Searched refs:swt (Results 1 – 3 of 3) sorted by relevance
/drivers/iio/trigger/ |
D | iio-trig-loop.c | 34 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 …]
|
D | iio-trig-hrtimer.c | 26 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 …]
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_hw_v2.c | 1778 struct hns_roce_vf_switch *swt; in __hns_roce_set_vf_switch_param() local 1782 swt = (struct hns_roce_vf_switch *)desc.data; in __hns_roce_set_vf_switch_param() 1784 swt->rocee_sel |= cpu_to_le32(HNS_ICL_SWITCH_CMD_ROCEE_SEL); in __hns_roce_set_vf_switch_param() 1785 hr_reg_write(swt, VF_SWITCH_VF_ID, vf_id); in __hns_roce_set_vf_switch_param() 1792 hr_reg_enable(swt, VF_SWITCH_ALW_LPBK); in __hns_roce_set_vf_switch_param() 1793 hr_reg_clear(swt, VF_SWITCH_ALW_LCL_LPBK); in __hns_roce_set_vf_switch_param() 1794 hr_reg_enable(swt, VF_SWITCH_ALW_DST_OVRD); in __hns_roce_set_vf_switch_param()
|