Home
last modified time | relevance | path

Searched refs:attr (Results 826 - 850 of 8868) sorted by relevance

1...<<31323334353637383940>>...355

/kernel/linux/linux-6.6/drivers/hwmon/
H A Dina2xx.c303 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in ina2xx_value_show() local
307 int err = ina2xx_read_reg(dev, attr->index, &regval); in ina2xx_value_show()
312 return sysfs_emit(buf, "%d\n", ina2xx_get_value(data, attr->index, regval)); in ina2xx_value_show()
369 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in ina226_alert_show() local
380 if (regval & BIT(attr->index)) { in ina226_alert_show()
384 val = ina226_reg_to_alert(data, attr->index, regval); in ina226_alert_show()
397 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in ina226_alert_store() local
418 ina226_alert_to_reg(data, attr->index, val)); in ina226_alert_store()
425 BIT(attr->index)); in ina226_alert_store()
439 struct sensor_device_attribute *attr in ina226_alarm_show() local
[all...]
H A Dibmpex.c61 struct sensor_device_attribute_2 attr[PEX_NUM_SENSOR_FUNCS]; member
270 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in ibmpex_show_sensor() local
272 int mult = data->sensors[attr->index].multiplier; in ibmpex_show_sensor()
276 data->sensors[attr->index].values[attr->nr] * mult); in ibmpex_show_sensor()
344 sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr); in create_sensor()
345 data->sensors[sensor].attr[func].dev_attr.attr.name = n; in create_sensor()
346 data->sensors[sensor].attr[fun in create_sensor()
[all...]
H A Dds1621.c227 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in temp_show() local
230 DS1621_TEMP_FROM_REG(data->temp[attr->index])); in temp_show()
236 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in temp_store() local
246 data->temp[attr->index] = DS1621_TEMP_TO_REG(val, data->zbits); in temp_store()
247 i2c_smbus_write_word_swapped(data->client, DS1621_REG_TEMP[attr->index], in temp_store()
248 data->temp[attr->index]); in temp_store()
263 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in alarm_show() local
265 return sprintf(buf, "%d\n", !!(data->conf & attr->index)); in alarm_show()
316 &sensor_dev_attr_temp1_input.dev_attr.attr,
317 &sensor_dev_attr_temp1_min.dev_attr.attr,
326 ds1621_attribute_visible(struct kobject *kobj, struct attribute *attr, int index) ds1621_attribute_visible() argument
[all...]
/test/xts/acts/security_lite/huks/liteos_m_adapter/
H A Dhks_mac_test.c230 osThreadAttr_t attr; in HksMacTestSetUp() local
232 attr.name = "test"; in HksMacTestSetUp()
233 attr.attr_bits = 0U; in HksMacTestSetUp()
234 attr.cb_mem = NULL; in HksMacTestSetUp()
235 attr.cb_size = 0U; in HksMacTestSetUp()
236 attr.stack_mem = NULL; in HksMacTestSetUp()
237 attr.stack_size = TEST_TASK_STACK_SIZE; in HksMacTestSetUp()
238 attr.priority = g_setPriority; in HksMacTestSetUp()
239 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksMacTestSetUp()
381 osThreadAttr_t attr; in LITE_TEST_CASE() local
404 osThreadAttr_t attr; LITE_TEST_CASE() local
[all...]
/kernel/linux/linux-6.6/drivers/s390/block/
H A Ddasd_devmap.c968 static ssize_t dasd_ff_show(struct device *dev, struct device_attribute *attr, in dasd_ff_show() argument
982 static ssize_t dasd_ff_store(struct device *dev, struct device_attribute *attr, in dasd_ff_store() argument
1002 dasd_ro_show(struct device *dev, struct device_attribute *attr, char *buf) in dasd_ro_show() argument
1025 dasd_ro_store(struct device *dev, struct device_attribute *attr, in dasd_ro_store() argument
1072 dasd_erplog_show(struct device *dev, struct device_attribute *attr, char *buf) in dasd_erplog_show() argument
1086 dasd_erplog_store(struct device *dev, struct device_attribute *attr, in dasd_erplog_store() argument
1107 dasd_use_diag_show(struct device *dev, struct device_attribute *attr, char *buf) in dasd_use_diag_show() argument
1121 dasd_use_diag_store(struct device *dev, struct device_attribute *attr, in dasd_use_diag_store() argument
1156 dasd_use_raw_show(struct device *dev, struct device_attribute *attr, char *buf) in dasd_use_raw_show() argument
1170 dasd_use_raw_store(struct device *dev, struct device_attribute *attr, in dasd_use_raw_store() argument
1202 dasd_safe_offline_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_safe_offline_store() argument
1240 dasd_access_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_access_show() argument
1268 dasd_discipline_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_discipline_show() argument
1294 dasd_device_status_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_device_status_show() argument
1333 dasd_alias_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_alias_show() argument
1358 dasd_vendor_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_vendor_show() argument
1382 dasd_uid_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_uid_show() argument
1435 dasd_eer_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_eer_show() argument
1449 dasd_eer_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_eer_store() argument
1479 dasd_aq_mask_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_aq_mask_show() argument
1492 dasd_aq_mask_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_aq_mask_store() argument
1520 dasd_aqr_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_aqr_show() argument
1535 dasd_aqr_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_aqr_store() argument
1556 dasd_aq_timeouts_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_aq_timeouts_show() argument
1571 dasd_aq_timeouts_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_aq_timeouts_store() argument
1601 dasd_expires_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_expires_show() argument
1615 dasd_expires_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_expires_store() argument
1641 dasd_retries_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_retries_show() argument
1655 dasd_retries_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_retries_store() argument
1681 dasd_timeout_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_timeout_show() argument
1696 dasd_timeout_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_timeout_store() argument
1728 dasd_path_reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_path_reset_store() argument
1750 dasd_hpf_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_hpf_show() argument
1770 dasd_reservation_policy_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_reservation_policy_show() argument
1791 dasd_reservation_policy_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_reservation_policy_store() argument
1811 dasd_reservation_state_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_reservation_state_show() argument
1832 dasd_reservation_state_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_reservation_state_store() argument
1857 dasd_pm_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_pm_show() argument
1885 dasd_path_threshold_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_path_threshold_show() argument
1900 dasd_path_threshold_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_path_threshold_store() argument
1929 dasd_path_autodisable_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_path_autodisable_show() argument
1945 dasd_path_autodisable_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_path_autodisable_store() argument
1970 dasd_path_interval_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_path_interval_show() argument
1985 dasd_path_interval_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_path_interval_store() argument
2013 dasd_device_fcs_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_device_fcs_show() argument
2035 dasd_path_fcs_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) dasd_path_fcs_show() argument
2051 dasd_copy_pair_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_copy_pair_show() argument
2233 dasd_copy_pair_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_copy_pair_store() argument
2318 dasd_copy_role_show(struct device *dev, struct device_attribute *attr, char *buf) dasd_copy_role_show() argument
2353 dasd_device_ping(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) dasd_device_ping() argument
[all...]
/kernel/linux/linux-5.10/drivers/firmware/efi/
H A Desrt.c76 struct attribute attr; member
87 static struct esre_attribute *to_attr(struct attribute *attr) in to_attr() argument
89 return container_of(attr, struct esre_attribute, attr); in to_attr()
96 struct esre_attribute *attr = to_attr(_attr); in esre_attr_show() local
102 return attr->show(entry, buf); in esre_attr_show()
140 &esre_fw_class.attr,
141 &esre_fw_type.attr,
142 &esre_fw_version.attr,
143 &esre_lowest_supported_fw_version.attr,
223 esrt_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n) esrt_attr_is_visible() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/
H A Dptrace-noadv.c88 struct perf_event_attr attr; in ptrace_set_debugreg() local
134 attr = bp->attr; in ptrace_set_debugreg()
135 attr.bp_addr = hw_brk.address; in ptrace_set_debugreg()
136 attr.bp_len = DABR_MAX_LEN; in ptrace_set_debugreg()
137 arch_bp_generic_fields(hw_brk.type, &attr.bp_type); in ptrace_set_debugreg()
140 attr.disabled = false; in ptrace_set_debugreg()
142 ret = modify_user_hw_breakpoint(bp, &attr); in ptrace_set_debugreg()
152 hw_breakpoint_init(&attr); in ptrace_set_debugreg()
153 attr in ptrace_set_debugreg()
204 struct perf_event_attr attr; ppc_set_hwdebug() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Dopal-elog.c31 struct attribute attr; member
32 ssize_t (*show)(struct elog_obj *elog, struct elog_attribute *attr,
34 ssize_t (*store)(struct elog_obj *elog, struct elog_attribute *attr,
37 #define to_elog_attr(x) container_of(x, struct elog_attribute, attr)
40 struct elog_attribute *attr, in elog_id_show()
55 struct elog_attribute *attr, in elog_type_show()
64 struct elog_attribute *attr, in elog_ack_show()
71 struct elog_attribute *attr, in elog_ack_store()
79 if (sysfs_remove_file_self(&elog_obj->kobj, &attr->attr)) { in elog_ack_store()
39 elog_id_show(struct elog_obj *elog_obj, struct elog_attribute *attr, char *buf) elog_id_show() argument
54 elog_type_show(struct elog_obj *elog_obj, struct elog_attribute *attr, char *buf) elog_type_show() argument
63 elog_ack_show(struct elog_obj *elog_obj, struct elog_attribute *attr, char *buf) elog_ack_show() argument
70 elog_ack_store(struct elog_obj *elog_obj, struct elog_attribute *attr, const char *buf, size_t count) elog_ack_store() argument
95 elog_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) elog_attr_show() argument
111 elog_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) elog_attr_store() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/kernel/ptrace/
H A Dptrace-noadv.c84 struct perf_event_attr attr; in ptrace_set_debugreg() local
130 attr = bp->attr; in ptrace_set_debugreg()
131 attr.bp_addr = hw_brk.address; in ptrace_set_debugreg()
132 attr.bp_len = DABR_MAX_LEN; in ptrace_set_debugreg()
133 arch_bp_generic_fields(hw_brk.type, &attr.bp_type); in ptrace_set_debugreg()
136 attr.disabled = false; in ptrace_set_debugreg()
138 ret = modify_user_hw_breakpoint(bp, &attr); in ptrace_set_debugreg()
148 hw_breakpoint_init(&attr); in ptrace_set_debugreg()
149 attr in ptrace_set_debugreg()
200 struct perf_event_attr attr; ppc_set_hwdebug() local
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
H A Dopal-elog.c31 struct attribute attr; member
32 ssize_t (*show)(struct elog_obj *elog, struct elog_attribute *attr,
34 ssize_t (*store)(struct elog_obj *elog, struct elog_attribute *attr,
37 #define to_elog_attr(x) container_of(x, struct elog_attribute, attr)
40 struct elog_attribute *attr, in elog_id_show()
55 struct elog_attribute *attr, in elog_type_show()
64 struct elog_attribute *attr, in elog_ack_show()
71 struct elog_attribute *attr, in elog_ack_store()
79 if (sysfs_remove_file_self(&elog_obj->kobj, &attr->attr)) { in elog_ack_store()
39 elog_id_show(struct elog_obj *elog_obj, struct elog_attribute *attr, char *buf) elog_id_show() argument
54 elog_type_show(struct elog_obj *elog_obj, struct elog_attribute *attr, char *buf) elog_type_show() argument
63 elog_ack_show(struct elog_obj *elog_obj, struct elog_attribute *attr, char *buf) elog_ack_show() argument
70 elog_ack_store(struct elog_obj *elog_obj, struct elog_attribute *attr, const char *buf, size_t count) elog_ack_store() argument
95 elog_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) elog_attr_show() argument
111 elog_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) elog_attr_store() argument
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
H A Dsrq.c87 if (srq_init_attr->attr.max_sge == 0 || in rvt_create_srq()
88 srq_init_attr->attr.max_sge > dev->dparms.props.max_srq_sge || in rvt_create_srq()
89 srq_init_attr->attr.max_wr == 0 || in rvt_create_srq()
90 srq_init_attr->attr.max_wr > dev->dparms.props.max_srq_wr) in rvt_create_srq()
96 srq->rq.size = srq_init_attr->attr.max_wr + 1; in rvt_create_srq()
97 srq->rq.max_sge = srq_init_attr->attr.max_sge; in rvt_create_srq()
129 srq->limit = srq_init_attr->attr.srq_limit; in rvt_create_srq()
160 * @attr: the new attributes of the SRQ
166 int rvt_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, in rvt_modify_srq() argument
182 if ((attr in rvt_modify_srq()
320 rvt_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr) rvt_query_srq() argument
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dds1621.c227 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in temp_show() local
230 DS1621_TEMP_FROM_REG(data->temp[attr->index])); in temp_show()
236 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in temp_store() local
246 data->temp[attr->index] = DS1621_TEMP_TO_REG(val, data->zbits); in temp_store()
247 i2c_smbus_write_word_swapped(data->client, DS1621_REG_TEMP[attr->index], in temp_store()
248 data->temp[attr->index]); in temp_store()
263 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in alarm_show() local
265 return sprintf(buf, "%d\n", !!(data->conf & attr->index)); in alarm_show()
316 &sensor_dev_attr_temp1_input.dev_attr.attr,
317 &sensor_dev_attr_temp1_min.dev_attr.attr,
326 ds1621_attribute_visible(struct kobject *kobj, struct attribute *attr, int index) ds1621_attribute_visible() argument
[all...]
/kernel/linux/linux-5.10/drivers/scsi/qla4xxx/
H A Dql4_attr.c108 .attr = {
119 struct bin_attribute *attr; member
133 iter->attr); in qla4_8xxx_alloc_sysfs_attr()
148 iter->attr); in qla4_8xxx_free_sysfs_attr()
154 struct device_attribute *attr, char *buf) in qla4xxx_fw_version_show()
169 qla4xxx_serial_num_show(struct device *dev, struct device_attribute *attr, in qla4xxx_serial_num_show() argument
177 qla4xxx_iscsi_version_show(struct device *dev, struct device_attribute *attr, in qla4xxx_iscsi_version_show() argument
186 qla4xxx_optrom_version_show(struct device *dev, struct device_attribute *attr, in qla4xxx_optrom_version_show() argument
196 qla4xxx_board_id_show(struct device *dev, struct device_attribute *attr, in qla4xxx_board_id_show() argument
204 qla4xxx_fw_state_show(struct device *dev, struct device_attribute *attr, in qla4xxx_fw_state_show() argument
153 qla4xxx_fw_version_show(struct device *dev, struct device_attribute *attr, char *buf) qla4xxx_fw_version_show() argument
215 qla4xxx_phy_port_cnt_show(struct device *dev, struct device_attribute *attr, char *buf) qla4xxx_phy_port_cnt_show() argument
227 qla4xxx_phy_port_num_show(struct device *dev, struct device_attribute *attr, char *buf) qla4xxx_phy_port_num_show() argument
239 qla4xxx_iscsi_func_cnt_show(struct device *dev, struct device_attribute *attr, char *buf) qla4xxx_iscsi_func_cnt_show() argument
251 qla4xxx_hba_model_show(struct device *dev, struct device_attribute *attr, char *buf) qla4xxx_hba_model_show() argument
260 qla4xxx_fw_timestamp_show(struct device *dev, struct device_attribute *attr, char *buf) qla4xxx_fw_timestamp_show() argument
269 qla4xxx_fw_build_user_show(struct device *dev, struct device_attribute *attr, char *buf) qla4xxx_fw_build_user_show() argument
277 qla4xxx_fw_ext_timestamp_show(struct device *dev, struct device_attribute *attr, char *buf) qla4xxx_fw_ext_timestamp_show() argument
285 qla4xxx_fw_load_src_show(struct device *dev, struct device_attribute *attr, char *buf) qla4xxx_fw_load_src_show() argument
307 qla4xxx_fw_uptime_show(struct device *dev, struct device_attribute *attr, char *buf) qla4xxx_fw_uptime_show() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/core/
H A Dledtrig-usbport.c29 struct device_attribute attr; member
80 * Device attr
84 struct device_attribute *attr, char *buf) in usbport_trig_port_show()
86 struct usbport_trig_port *port = container_of(attr, in usbport_trig_port_show()
88 attr); in usbport_trig_port_show()
94 struct device_attribute *attr, in usbport_trig_port_store()
97 struct usbport_trig_port *port = container_of(attr, in usbport_trig_port_store()
99 attr); in usbport_trig_port_store()
212 sysfs_attr_init(&port->attr.attr); in usbport_trig_add_port()
83 usbport_trig_port_show(struct device *dev, struct device_attribute *attr, char *buf) usbport_trig_port_show() argument
93 usbport_trig_port_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) usbport_trig_port_store() argument
[all...]
/kernel/linux/linux-5.10/drivers/video/backlight/
H A Dlm3533_bl.c65 struct device_attribute *attr, char *buf) in show_id()
73 struct device_attribute *attr, char *buf) in show_als_channel()
82 struct device_attribute *attr, char *buf) in show_als_en()
102 struct device_attribute *attr, in store_als_en()
131 struct device_attribute *attr, char *buf) in show_linear()
154 struct device_attribute *attr, in store_linear()
182 struct device_attribute *attr, in show_pwm()
197 struct device_attribute *attr, in store_pwm()
221 &dev_attr_als_channel.attr,
222 &dev_attr_als_en.attr,
64 show_id(struct device *dev, struct device_attribute *attr, char *buf) show_id() argument
72 show_als_channel(struct device *dev, struct device_attribute *attr, char *buf) show_als_channel() argument
81 show_als_en(struct device *dev, struct device_attribute *attr, char *buf) show_als_en() argument
101 store_als_en(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) store_als_en() argument
130 show_linear(struct device *dev, struct device_attribute *attr, char *buf) show_linear() argument
153 store_linear(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) store_linear() argument
181 show_pwm(struct device *dev, struct device_attribute *attr, char *buf) show_pwm() argument
196 store_pwm(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) store_pwm() argument
229 lm3533_bl_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n) lm3533_bl_attr_is_visible() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/fieldbus/
H A Ddev_core.c26 static ssize_t online_show(struct device *dev, struct device_attribute *attr, in online_show() argument
35 static ssize_t enabled_show(struct device *dev, struct device_attribute *attr, in enabled_show() argument
45 static ssize_t enabled_store(struct device *dev, struct device_attribute *attr, in enabled_store() argument
64 static ssize_t card_name_show(struct device *dev, struct device_attribute *attr, in card_name_show() argument
78 struct device_attribute *attr, char *buf) in read_area_size_show()
87 struct device_attribute *attr, char *buf) in write_area_size_show()
96 struct device_attribute *attr, char *buf) in fieldbus_id_show()
105 struct device_attribute *attr, char *buf) in fieldbus_type_show()
124 &dev_attr_enabled.attr,
125 &dev_attr_card_name.attr,
77 read_area_size_show(struct device *dev, struct device_attribute *attr, char *buf) read_area_size_show() argument
86 write_area_size_show(struct device *dev, struct device_attribute *attr, char *buf) write_area_size_show() argument
95 fieldbus_id_show(struct device *dev, struct device_attribute *attr, char *buf) fieldbus_id_show() argument
104 fieldbus_type_show(struct device *dev, struct device_attribute *attr, char *buf) fieldbus_type_show() argument
134 fieldbus_is_visible(struct kobject *kobj, struct attribute *attr, int n) fieldbus_is_visible() argument
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dinetdevice.h53 #define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1])
54 #define IPV4_DEVCONF_ALL(net, attr) \
55 IPV4_DEVCONF((*(net)->ipv4.devconf_all), attr)
76 #define IN_DEV_CONF_GET(in_dev, attr) \
77 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr)
78 #define IN_DEV_CONF_SET(in_dev, attr, val) \
79 ipv4_devconf_set((in_dev), IPV4_DEVCONF_ ## attr, (val))
81 #define IN_DEV_ANDCONF(in_dev, attr) \
82 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr)
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_if.c20 #define VALID_MSIX_IDX(attr, msix_index) ((msix_index) < (attr)->num_irqs)
45 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_set()
71 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_cnt_clear()
203 hwif->attr.func_idx = HINIC_FA0_GET(attr0, FUNC_IDX); in set_hwif_attr()
204 hwif->attr.pf_idx = HINIC_FA0_GET(attr0, PF_IDX); in set_hwif_attr()
205 hwif->attr.pci_intf_idx = HINIC_FA0_GET(attr0, PCI_INTF_IDX); in set_hwif_attr()
206 hwif->attr.func_type = HINIC_FA0_GET(attr0, FUNC_TYPE); in set_hwif_attr()
208 hwif->attr.num_aeqs = BIT(HINIC_FA1_GET(attr1, AEQS_PER_FUNC)); in set_hwif_attr()
209 hwif->attr in set_hwif_attr()
242 struct hinic_func_attr *attr = &hwif->attr; set_ppf() local
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dinetdevice.h55 #define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1])
56 #define IPV4_DEVCONF_ALL(net, attr) \
57 IPV4_DEVCONF((*(net)->ipv4.devconf_all), attr)
78 #define IN_DEV_CONF_GET(in_dev, attr) \
79 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr)
80 #define IN_DEV_CONF_SET(in_dev, attr, val) \
81 ipv4_devconf_set((in_dev), IPV4_DEVCONF_ ## attr, (val))
83 #define IN_DEV_ANDCONF(in_dev, attr) \
84 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr)
[all...]
/kernel/linux/linux-6.6/drivers/video/backlight/
H A Dlm3533_bl.c65 struct device_attribute *attr, char *buf) in show_id()
73 struct device_attribute *attr, char *buf) in show_als_channel()
82 struct device_attribute *attr, char *buf) in show_als_en()
102 struct device_attribute *attr, in store_als_en()
131 struct device_attribute *attr, char *buf) in show_linear()
154 struct device_attribute *attr, in store_linear()
182 struct device_attribute *attr, in show_pwm()
197 struct device_attribute *attr, in store_pwm()
221 &dev_attr_als_channel.attr,
222 &dev_attr_als_en.attr,
64 show_id(struct device *dev, struct device_attribute *attr, char *buf) show_id() argument
72 show_als_channel(struct device *dev, struct device_attribute *attr, char *buf) show_als_channel() argument
81 show_als_en(struct device *dev, struct device_attribute *attr, char *buf) show_als_en() argument
101 store_als_en(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) store_als_en() argument
130 show_linear(struct device *dev, struct device_attribute *attr, char *buf) show_linear() argument
153 store_linear(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) store_linear() argument
181 show_pwm(struct device *dev, struct device_attribute *attr, char *buf) show_pwm() argument
196 store_pwm(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) store_pwm() argument
229 lm3533_bl_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n) lm3533_bl_attr_is_visible() argument
[all...]
/kernel/linux/linux-6.6/drivers/staging/fieldbus/
H A Ddev_core.c26 static ssize_t online_show(struct device *dev, struct device_attribute *attr, in online_show() argument
35 static ssize_t enabled_show(struct device *dev, struct device_attribute *attr, in enabled_show() argument
45 static ssize_t enabled_store(struct device *dev, struct device_attribute *attr, in enabled_store() argument
64 static ssize_t card_name_show(struct device *dev, struct device_attribute *attr, in card_name_show() argument
75 struct device_attribute *attr, char *buf) in read_area_size_show()
84 struct device_attribute *attr, char *buf) in write_area_size_show()
93 struct device_attribute *attr, char *buf) in fieldbus_id_show()
102 struct device_attribute *attr, char *buf) in fieldbus_type_show()
121 &dev_attr_enabled.attr,
122 &dev_attr_card_name.attr,
74 read_area_size_show(struct device *dev, struct device_attribute *attr, char *buf) read_area_size_show() argument
83 write_area_size_show(struct device *dev, struct device_attribute *attr, char *buf) write_area_size_show() argument
92 fieldbus_id_show(struct device *dev, struct device_attribute *attr, char *buf) fieldbus_id_show() argument
101 fieldbus_type_show(struct device *dev, struct device_attribute *attr, char *buf) fieldbus_type_show() argument
131 fieldbus_is_visible(struct kobject *kobj, struct attribute *attr, int n) fieldbus_is_visible() argument
[all...]
/kernel/linux/linux-6.6/drivers/usb/core/
H A Dledtrig-usbport.c29 struct device_attribute attr; member
80 * Device attr
84 struct device_attribute *attr, char *buf) in usbport_trig_port_show()
86 struct usbport_trig_port *port = container_of(attr, in usbport_trig_port_show()
88 attr); in usbport_trig_port_show()
94 struct device_attribute *attr, in usbport_trig_port_store()
97 struct usbport_trig_port *port = container_of(attr, in usbport_trig_port_store()
99 attr); in usbport_trig_port_store()
212 sysfs_attr_init(&port->attr.attr); in usbport_trig_add_port()
83 usbport_trig_port_show(struct device *dev, struct device_attribute *attr, char *buf) usbport_trig_port_show() argument
93 usbport_trig_port_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) usbport_trig_port_store() argument
[all...]
/kernel/linux/linux-6.6/drivers/firmware/efi/
H A Desrt.c76 struct attribute attr; member
87 static struct esre_attribute *to_attr(struct attribute *attr) in to_attr() argument
89 return container_of(attr, struct esre_attribute, attr); in to_attr()
96 struct esre_attribute *attr = to_attr(_attr); in esre_attr_show() local
98 return attr->show(entry, buf); in esre_attr_show()
136 &esre_fw_class.attr,
137 &esre_fw_type.attr,
138 &esre_fw_version.attr,
139 &esre_lowest_supported_fw_version.attr,
221 esrt_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n) esrt_attr_is_visible() argument
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/sw/rdmavt/
H A Dsrq.c45 if (srq_init_attr->attr.max_sge == 0 || in rvt_create_srq()
46 srq_init_attr->attr.max_sge > dev->dparms.props.max_srq_sge || in rvt_create_srq()
47 srq_init_attr->attr.max_wr == 0 || in rvt_create_srq()
48 srq_init_attr->attr.max_wr > dev->dparms.props.max_srq_wr) in rvt_create_srq()
54 srq->rq.size = srq_init_attr->attr.max_wr + 1; in rvt_create_srq()
55 srq->rq.max_sge = srq_init_attr->attr.max_sge; in rvt_create_srq()
87 srq->limit = srq_init_attr->attr.srq_limit; in rvt_create_srq()
118 * @attr: the new attributes of the SRQ
124 int rvt_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, in rvt_modify_srq() argument
140 if ((attr in rvt_modify_srq()
279 rvt_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr) rvt_query_srq() argument
[all...]
/third_party/jinja2/
H A Dsandbox.py125 def is_internal_attribute(obj: t.Any, attr: str) -> bool:
138 if attr in UNSAFE_FUNCTION_ATTRIBUTES:
141 if attr in UNSAFE_FUNCTION_ATTRIBUTES or attr in UNSAFE_METHOD_ATTRIBUTES:
144 if attr == "mro":
149 if attr in UNSAFE_GENERATOR_ATTRIBUTES:
152 if attr in UNSAFE_COROUTINE_ATTRIBUTES:
157 if attr in UNSAFE_ASYNC_GENERATOR_ATTRIBUTES:
159 return attr.startswith("__")
162 def modifies_known_mutable(obj: t.Any, attr
[all...]

Completed in 17 milliseconds

1...<<31323334353637383940>>...355