/kernel/linux/linux-6.6/drivers/mmc/core/ |
H A D | block.c | 225 struct device_attribute *attr, char *buf) in power_ro_lock_show() 245 struct device_attribute *attr, const char *buf, size_t count) in power_ro_lock_store() 293 static ssize_t force_ro_show(struct device *dev, struct device_attribute *attr, in force_ro_show() argument 306 static ssize_t force_ro_store(struct device *dev, struct device_attribute *attr, in force_ro_store() argument 328 &dev_attr_force_ro.attr, 329 &dev_attr_ro_lock_until_next_power_on.attr, 340 if (a == &dev_attr_ro_lock_until_next_power_on.attr && in mmc_disk_attrs_is_visible() 224 power_ro_lock_show(struct device *dev, struct device_attribute *attr, char *buf) power_ro_lock_show() argument 244 power_ro_lock_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) power_ro_lock_store() argument
|
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpiolib-cdev.c | 992 if ((lc->attrs[i].attr.id == GPIO_V2_LINE_ATTR_ID_DEBOUNCE) && in gpio_v2_line_config_debounced() 1006 if ((lc->attrs[i].attr.id == GPIO_V2_LINE_ATTR_ID_DEBOUNCE) && in gpio_v2_line_config_debounce_period() 1008 return lc->attrs[i].attr.debounce_period_us; in gpio_v2_line_config_debounce_period() 1121 if ((lc->attrs[i].attr.id == GPIO_V2_LINE_ATTR_ID_FLAGS) && in gpio_v2_line_config_flags() 1123 return lc->attrs[i].attr.flags; in gpio_v2_line_config_flags() 1135 if ((lc->attrs[i].attr.id == GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES) && in gpio_v2_line_config_output_value() 1137 return !!(lc->attrs[i].attr.values & mask); in gpio_v2_line_config_output_value()
|
/kernel/linux/linux-6.6/drivers/net/team/ |
H A D | team.c | 2566 struct nlattr *attr; in team_nl_cmd_options_set() local 2620 attr = opt_attrs[TEAM_ATTR_OPTION_PORT_IFINDEX]; in team_nl_cmd_options_set() 2621 if (attr) in team_nl_cmd_options_set() 2622 opt_port_ifindex = nla_get_u32(attr); in team_nl_cmd_options_set() 2624 attr = opt_attrs[TEAM_ATTR_OPTION_ARRAY_INDEX]; in team_nl_cmd_options_set() 2625 if (attr) { in team_nl_cmd_options_set() 2627 opt_array_index = nla_get_u32(attr); in team_nl_cmd_options_set()
|
/kernel/linux/linux-6.6/security/ |
H A D | security.c | 2118 * @attr: new attributes 2128 struct dentry *dentry, struct iattr *attr) in security_inode_setattr() 2134 ret = call_int_hook(inode_setattr, 0, dentry, attr); in security_inode_setattr() 2137 return evm_inode_setattr(idmap, dentry, attr); in security_inode_setattr() 5179 * @attr: bpf attribute 5188 int security_bpf(int cmd, union bpf_attr *attr, unsigned int size) in security_bpf() argument 5190 return call_int_hook(bpf, 0, cmd, attr, size); in security_bpf() 5289 * @attr: perf event attribute 5296 int security_perf_event_open(struct perf_event_attr *attr, int type) in security_perf_event_open() argument 5298 return call_int_hook(perf_event_open, 0, attr, typ in security_perf_event_open() 2127 security_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) security_inode_setattr() argument [all...] |
/kernel/liteos_m/kernel/src/mm/ |
H A D | los_memory.c | 118 if (!((pool)->info.attr & OS_MEM_POOL_UNLOCK_ENABLE)) { \
123 if (!((pool)->info.attr & OS_MEM_POOL_UNLOCK_ENABLE)) { \
492 ((struct OsMemPoolHead *)pool)->info.attr |= OS_MEM_POOL_EXPAND_ENABLE;
879 /* default attr: lock, not expand. */
880 poolHead->info.attr &= ~(OS_MEM_POOL_UNLOCK_ENABLE | OS_MEM_POOL_EXPAND_ENABLE);
1064 if (pool->info.attr & OS_MEM_POOL_EXPAND_ENABLE) {
1328 if (pool->info.attr & OS_MEM_POOL_EXPAND_ENABLE) {
2066 ((struct OsMemPoolHead *)pool)->info.attr |= OS_MEM_POOL_UNLOCK_ENABLE;
|
/kernel/linux/linux-6.6/net/dcb/ |
H A D | dcbnl.c | 1106 static int dcbnl_app_table_setdel(struct nlattr *attr, in dcbnl_app_table_setdel() argument 1116 nla_for_each_nested(attr_itr, attr, rem) { in dcbnl_app_table_setdel() 1645 struct nlattr *attr; in dcbnl_ieee_set() local 1654 nla_for_each_nested(attr, ieee[DCB_ATTR_DCB_APP_TRUST_TABLE], in dcbnl_ieee_set() 1656 enum ieee_attrs_app type = nla_type(attr); in dcbnl_ieee_set() 1661 nla_len(attr) != 1 || in dcbnl_ieee_set() 1667 selector = nla_get_u8(attr); in dcbnl_ieee_set()
|
/third_party/node/test/fixtures/wpt/resources/ |
H A D | idlharness.js | 69 return overloads.map(function(attr) { 70 return attr.arguments ? attr.arguments.filter(function(arg) { 262 for (const attr of Object.values(parsed.members).filter(m => m.type === 'attribute')) { 263 let attrType = attr.idlType; 1647 .filter(function(attr) { return attr.name == "LegacyFactoryFunction"; });
|
/third_party/mesa3d/src/intel/vulkan/ |
H A D | genX_pipeline.c | 444 uint8_t attr = wm_prog_data->urb_setup_attribs[idx]; in emit_3dstate_sbe() local 445 int input_index = wm_prog_data->urb_setup[attr]; in emit_3dstate_sbe() 452 if (attr == VARYING_SLOT_VIEWPORT || in emit_3dstate_sbe() 453 attr == VARYING_SLOT_LAYER || in emit_3dstate_sbe() 454 attr == VARYING_SLOT_PRIMITIVE_SHADING_RATE) { in emit_3dstate_sbe() 458 if (attr == VARYING_SLOT_PNTC) { in emit_3dstate_sbe() 463 const int slot = fs_input_map->varying_to_slot[attr]; in emit_3dstate_sbe()
|
/third_party/node/deps/icu-small/source/i18n/ |
H A D | vtzone.cpp | 391 UnicodeString prop, attr, value; in parseRRULE() local 405 attr.setTo(prop, 0, eql); in parseRRULE() 411 if (attr.compare(ICAL_FREQ, -1) == 0) { in parseRRULE() 418 } else if (attr.compare(ICAL_UNTIL, -1) == 0) { in parseRRULE() 424 } else if (attr.compare(ICAL_BYMONTH, -1) == 0) { in parseRRULE() 434 } else if (attr.compare(ICAL_BYDAY, -1) == 0) { in parseRRULE() 473 } else if (attr.compare(ICAL_BYMONTHDAY, -1) == 0) { in parseRRULE()
|
/third_party/icu/icu4c/source/i18n/ |
H A D | vtzone.cpp | 391 UnicodeString prop, attr, value; in parseRRULE() local 405 attr.setTo(prop, 0, eql); in parseRRULE() 411 if (attr.compare(ICAL_FREQ, -1) == 0) { in parseRRULE() 418 } else if (attr.compare(ICAL_UNTIL, -1) == 0) { in parseRRULE() 424 } else if (attr.compare(ICAL_BYMONTH, -1) == 0) { in parseRRULE() 434 } else if (attr.compare(ICAL_BYDAY, -1) == 0) { in parseRRULE() 473 } else if (attr.compare(ICAL_BYMONTHDAY, -1) == 0) { in parseRRULE()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | vtzone.cpp | 399 UnicodeString prop, attr, value; in parseRRULE() local 413 attr.setTo(prop, 0, eql); in parseRRULE() 419 if (attr.compare(ICAL_FREQ, -1) == 0) { in parseRRULE() 426 } else if (attr.compare(ICAL_UNTIL, -1) == 0) { in parseRRULE() 432 } else if (attr.compare(ICAL_BYMONTH, -1) == 0) { in parseRRULE() 442 } else if (attr.compare(ICAL_BYDAY, -1) == 0) { in parseRRULE() 481 } else if (attr.compare(ICAL_BYMONTHDAY, -1) == 0) { in parseRRULE()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/ |
H A D | ib_verbs.c | 283 int bnxt_re_del_gid(const struct ib_gid_attr *attr, void **context) in bnxt_re_del_gid() argument 287 struct bnxt_re_dev *rdev = to_bnxt_re_dev(attr->device, ibdev); in bnxt_re_del_gid() 336 int bnxt_re_add_gid(const struct ib_gid_attr *attr, void **context) in bnxt_re_add_gid() argument 342 struct bnxt_re_dev *rdev = to_bnxt_re_dev(attr->device, ibdev); in bnxt_re_add_gid() 345 rc = rdma_read_gid_l2_fields(attr, &vlan_id, NULL); in bnxt_re_add_gid() 349 rc = bnxt_qplib_add_sgid(sgid_tbl, (struct bnxt_qplib_gid *)&attr->gid, in bnxt_re_add_gid() 1635 if (srq_init_attr->attr.max_wr >= dev_attr->max_srq_wqes) { in bnxt_re_create_srq() 1652 entries = roundup_pow_of_two(srq_init_attr->attr.max_wr + 1); in bnxt_re_create_srq() 1657 srq->qplib_srq.max_sge = srq_init_attr->attr.max_sge; in bnxt_re_create_srq() 1660 srq->qplib_srq.threshold = srq_init_attr->attr in bnxt_re_create_srq() 2819 bnxt_re_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, struct ib_udata *udata) bnxt_re_create_cq() argument [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
H A D | i40iw_cm.c | 3642 struct ib_qp_attr attr; in i40iw_accept() local 3652 memset(&attr, 0, sizeof(attr)); in i40iw_accept() 3750 attr.qp_state = IB_QPS_RTS; in i40iw_accept() 3752 i40iw_modify_qp(&iwqp->ibqp, &attr, IB_QP_STATE, NULL); in i40iw_accept() 4085 struct ib_qp_attr attr; in i40iw_cm_event_connected() local 4110 memset(&attr, 0, sizeof(attr)); in i40iw_cm_event_connected() 4111 attr.qp_state = IB_QPS_RTS; in i40iw_cm_event_connected() 4113 i40iw_modify_qp(&iwqp->ibqp, &attr, IB_QP_STAT in i40iw_cm_event_connected() 4319 struct ib_qp_attr attr; i40iw_cm_teardown_connections() local [all...] |
/third_party/python/Lib/test/ |
H A D | pickletester.py | 1700 i.attr = i 1706 self.assertIs(x.attr, x) 1712 i.attr = d 1720 self.assertEqual(list(x[0].attr.keys()), [1]) 1721 self.assertIs(x[0].attr[1], x) 1727 o.attr = factory([o]) 1728 t = type(o.attr) 1732 self.assertIsInstance(x.attr, t) 1733 self.assertEqual(len(x.attr), 1) 1734 self.assertIsInstance(list(x.attr)[ [all...] |
/third_party/python/Modules/ |
H A D | posixmodule.c | 2986 DWORD attr; in os_access_impl() local 3007 attr = GetFileAttributesW(path->wide); in os_access_impl() local 3018 return_value = (attr != INVALID_FILE_ATTRIBUTES) && in os_access_impl() 3020 !(attr & FILE_ATTRIBUTE_READONLY) || in os_access_impl() 3021 (attr & FILE_ATTRIBUTE_DIRECTORY)); in os_access_impl() 3255 DWORD attr; in os_chmod_impl() local 3275 attr = GetFileAttributesW(path->wide); in os_chmod_impl() local 3276 if (attr == INVALID_FILE_ATTRIBUTES) in os_chmod_impl() 3280 attr &= ~FILE_ATTRIBUTE_READONLY; in os_chmod_impl() 3282 attr | in os_chmod_impl() 6283 posix_spawnattr_t attr; py_posix_spawn() local 10261 SECURITY_ATTRIBUTES attr; os_pipe_impl() local [all...] |
/device/soc/rockchip/common/vendor/drivers/devfreq/ |
H A D | rockchip_dmc.c | 2245 static ssize_t rockchip_dmcfreq_status_show(struct device *dev, struct device_attribute *attr, char *buf) in rockchip_dmcfreq_status_show() argument 2252 static ssize_t rockchip_dmcfreq_status_store(struct device *dev, struct device_attribute *attr, const char *buf, in rockchip_dmcfreq_status_store() argument 2266 static ssize_t upthreshold_show(struct device *dev, struct device_attribute *attr, char *buf) in upthreshold_show() argument 2274 static ssize_t upthreshold_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) in upthreshold_store() argument 2291 static ssize_t downdifferential_show(struct device *dev, struct device_attribute *attr, char *buf) in downdifferential_show() argument 2299 static ssize_t downdifferential_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) in downdifferential_store() argument 2767 if (sysfs_create_file(&devfreq->dev.kobj, &dev_attr_upthreshold.attr)) { in rockchip_dmcfreq_add_interface() 2770 if (sysfs_create_file(&devfreq->dev.kobj, &dev_attr_downdifferential.attr)) { in rockchip_dmcfreq_add_interface() 2777 if (sysfs_create_file(&devfreq->dev.kobj, &dev_attr_system_status.attr)) { in rockchip_dmcfreq_add_interface()
|
/device/soc/rockchip/rk3588/kernel/drivers/devfreq/ |
H A D | rockchip_dmc.c | 2395 struct device_attribute *attr, in rockchip_dmcfreq_status_show() 2404 struct device_attribute *attr, in rockchip_dmcfreq_status_store() 2420 struct device_attribute *attr, in upthreshold_show() 2430 struct device_attribute *attr, in upthreshold_store() 2449 struct device_attribute *attr, in downdifferential_show() 2459 struct device_attribute *attr, in downdifferential_store() 2926 if (sysfs_create_file(&devfreq->dev.kobj, &dev_attr_upthreshold.attr)) in rockchip_dmcfreq_add_interface() 2930 &dev_attr_downdifferential.attr)) in rockchip_dmcfreq_add_interface() 2937 &dev_attr_system_status.attr)) in rockchip_dmcfreq_add_interface() 2394 rockchip_dmcfreq_status_show(struct device *dev, struct device_attribute *attr, char *buf) rockchip_dmcfreq_status_show() argument 2403 rockchip_dmcfreq_status_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) rockchip_dmcfreq_status_store() argument 2419 upthreshold_show(struct device *dev, struct device_attribute *attr, char *buf) upthreshold_show() argument 2429 upthreshold_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) upthreshold_store() argument 2448 downdifferential_show(struct device *dev, struct device_attribute *attr, char *buf) downdifferential_show() argument 2458 downdifferential_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) downdifferential_store() argument
|
/third_party/rust/crates/libc/src/unix/linux_like/android/ |
H A D | mod.rs | 3284 pub fn pthread_barrierattr_init(attr: *mut ::pthread_barrierattr_t) -> ::c_int; in pthread_barrierattr_init() 3285 pub fn pthread_barrierattr_destroy(attr: *mut ::pthread_barrierattr_t) -> ::c_int; in pthread_barrierattr_destroy() 3287 attr: *const ::pthread_barrierattr_t, in pthread_barrierattr_getpshared() 3291 attr: *mut ::pthread_barrierattr_t, in pthread_barrierattr_setpshared() 3296 attr: *const ::pthread_barrierattr_t, in pthread_barrier_init() 3321 attr: *const ::pthread_attr_t, in pthread_attr_getguardsize() 3327 attr: *const pthread_condattr_t, in pthread_condattr_getpshared() 3408 attr: *const pthread_mutexattr_t, in pthread_mutexattr_getpshared() 3420 attr: *const ::pthread_attr_t, in pthread_create()
|
/third_party/selinux/libsepol/src/ |
H A D | module_to_cil.c | 239 struct attr_list_node *attr; in attr_list_destroy() local 248 attr = curr->data; in attr_list_destroy() 249 if (attr != NULL) { in attr_list_destroy() 250 free(attr->attr_name); in attr_list_destroy() 1747 switch (expr->attr) { in constraint_expr_to_string() 1764 log_err("Unknown expression attribute type: %i", expr->attr); in constraint_expr_to_string() 1785 if (expr->attr & CEXPR_TYPE) { in constraint_expr_to_string() 1791 } else if (expr->attr & CEXPR_USER) { in constraint_expr_to_string() 1796 } else if (expr->attr & CEXPR_ROLE) { in constraint_expr_to_string()
|
/device/soc/rockchip/common/sdk_linux/kernel/sched/ |
H A D | sched.h | 406 extern int sched_dl_overflow(struct task_struct *p, int policy, const struct sched_attr *attr); 407 extern void __setparam_dl(struct task_struct *p, const struct sched_attr *attr); 408 extern void __getparam_dl(struct task_struct *p, struct sched_attr *attr); 409 extern bool __checkparam_dl(const struct sched_attr *attr); 410 extern bool dl_param_changed(struct task_struct *p, const struct sched_attr *attr);
|
/foundation/communication/dsoftbus/tests/core/frame/unittest/ |
H A D | softbus_server_stub_test.cpp | 94 SessionAttribute attr; in GenerateSessionParam() local 95 attr.dataType = 1; in GenerateSessionParam() 96 attr.linkTypeNum = 0; in GenerateSessionParam() 101 sessionParam->attr = &attr; in GenerateSessionParam()
|
/foundation/communication/dsoftbus/tests/core/frame/fuzztest/softbusserverstub_fuzzer/ |
H A D | softbusserverstub_fuzzer.cpp | 1179 SessionAttribute attr; in CheckOpenSessionPermissionFuzzTest() local 1180 attr.dataType = 1; in CheckOpenSessionPermissionFuzzTest() 1181 attr.linkTypeNum = 0; in CheckOpenSessionPermissionFuzzTest() 1187 .attr = &attr, in CheckOpenSessionPermissionFuzzTest()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
H A D | vtp_stream_socket.cpp | 700 StreamAttr attr {}; in GetOption() 709 attr = (this->*get)(static_cast<int>(streamFd_)); in GetOption() 711 attr = (this->*get)(static_cast<int>(type)); in GetOption() 715 PrintOptionInfo(type, attr); in GetOption() 716 return attr; in GetOption()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_common.c | 368 osThreadAttr_t attr = {0}; in NstackxInitInner() local 369 attr.name = DFINDER_THREAD_NAME; in NstackxInitInner() 370 attr.stack_size = DFINDER_THREAD_STACK_SIZE; in NstackxInitInner() 372 attr.priority = osPriorityNormal; in NstackxInitInner() 373 g_threadId = osThreadNew((osThreadFunc_t)NstackMainLoop, NULL, &attr); in NstackxInitInner()
|
/kernel/linux/linux-5.10/drivers/net/can/ |
H A D | janz-ican3.c | 1819 struct device_attribute *attr, in ican3_sysfs_show_term() 1838 struct device_attribute *attr, in ican3_sysfs_set_term() 1856 struct device_attribute *attr, in ican3_sysfs_show_fwinfo() 1869 &dev_attr_termination.attr, 1870 &dev_attr_fwinfo.attr, 1818 ican3_sysfs_show_term(struct device *dev, struct device_attribute *attr, char *buf) ican3_sysfs_show_term() argument 1837 ican3_sysfs_set_term(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) ican3_sysfs_set_term() argument 1855 ican3_sysfs_show_fwinfo(struct device *dev, struct device_attribute *attr, char *buf) ican3_sysfs_show_fwinfo() argument
|