/linux-master/drivers/power/supply/ |
H A D | power_supply_hwmon.c | 13 unsigned long *props; member in struct:power_supply_hwmon 132 if (prop >= 0 && test_bit(prop, psyhw->props)) 173 if (prop < 0 || !test_bit(prop, psyhw->props)) 347 psyhw->props = devm_bitmap_zalloc(dev, 350 if (!psyhw->props) { 374 set_bit(prop, psyhw->props);
|
/linux-master/drivers/infiniband/hw/qib/ |
H A D | qib_verbs.c | 1192 struct ib_port_attr *props) 1200 /* props being zeroed by the caller, avoid zeroing it here */ 1201 props->lid = lid ? lid : be16_to_cpu(IB_LID_PERMISSIVE); 1202 props->lmc = ppd->lmc; 1203 props->state = dd->f_iblink_state(ppd->lastibcstat); 1204 props->phys_state = dd->f_ibphys_portstate(ppd->lastibcstat); 1205 props->gid_tbl_len = QIB_GUIDS_PER_PORT; 1206 props->active_width = ppd->link_width_active; 1208 props->active_speed = ppd->link_speed_active; 1209 props 1191 qib_query_port(struct rvt_dev_info *rdi, u32 port_num, struct ib_port_attr *props) argument [all...] |
/linux-master/drivers/video/backlight/ |
H A D | ams369fg06.c | 341 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); 411 int brightness = bd->props.brightness; 415 brightness > bd->props.max_brightness) { 421 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); 445 struct backlight_properties props; local 476 memset(&props, 0, sizeof(struct backlight_properties)); 477 props.type = BACKLIGHT_RAW; 478 props.max_brightness = MAX_BRIGHTNESS; 482 &ams369fg06_backlight_ops, &props); 486 bd->props [all...] |
H A D | lp855x_bl.c | 243 int brightness = bl->props.brightness; 245 if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) 250 bl->props.max_brightness); 265 struct backlight_properties props; local 269 memset(&props, 0, sizeof(props)); 270 props.type = BACKLIGHT_PLATFORM; 271 props.max_brightness = MAX_BRIGHTNESS; 273 if (pdata->initial_brightness > props.max_brightness) 274 pdata->initial_brightness = props [all...] |
H A D | corgi_lcd.c | 495 struct backlight_properties props; local 519 memset(&props, 0, sizeof(struct backlight_properties)); 520 props.type = BACKLIGHT_RAW; 521 props.max_brightness = pdata->max_intensity; 524 &props); 528 lcd->bl_dev->props.brightness = pdata->default_intensity; 529 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; 550 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; 551 lcd->bl_dev->props.brightness = 0;
|
/linux-master/drivers/gpio/ |
H A D | gpio-aspeed.c | 41 const struct aspeed_bank_props *props; member in struct:aspeed_gpio_config 261 static inline bool is_bank_props_sentinel(const struct aspeed_bank_props *props) argument 263 return !(props->input || props->output); 269 const struct aspeed_bank_props *props = gpio->config->props; local 271 while (!is_bank_props_sentinel(props)) { 272 if (props->bank == GPIO_BANK(offset)) 273 return props; 274 props 282 const struct aspeed_bank_props *props = find_bank_props(gpio, offset); local 292 const struct aspeed_bank_props *props = find_bank_props(gpio, offset); local 302 const struct aspeed_bank_props *props = find_bank_props(gpio, offset); local 698 const struct aspeed_bank_props *props = gpio->config->props; local [all...] |
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-fwnode.c | 770 struct v4l2_fwnode_device_properties *props) 776 memset(props, 0, sizeof(*props)); 778 props->orientation = V4L2_FWNODE_PROPERTY_UNSET; 791 props->orientation = val; 795 props->rotation = V4L2_FWNODE_PROPERTY_UNSET; 803 props->rotation = val; 863 * @props: the array of integer property names 868 * Then under that fwnode, @nprops times, for each property in @props, 870 * property in @props arra 769 v4l2_fwnode_device_parse(struct device *dev, struct v4l2_fwnode_device_properties *props) argument 1016 v4l2_fwnode_reference_get_int_prop(struct fwnode_handle *fwnode, const char *prop, unsigned int index, const char * const *props, unsigned int nprops) argument 1074 const char * const *props; member in struct:v4l2_fwnode_int_props 1110 const char * const *props = p->props; local 1180 static const struct v4l2_fwnode_int_props props[] = { local [all...] |
/linux-master/drivers/infiniband/hw/mana/ |
H A D | main.c | 544 int mana_ib_query_device(struct ib_device *ibdev, struct ib_device_attr *props, argument 550 props->max_qp = dev->adapter_caps.max_qp_count; 551 props->max_qp_wr = dev->adapter_caps.max_qp_wr; 552 props->max_cq = dev->adapter_caps.max_cq_count; 553 props->max_cqe = dev->adapter_caps.max_qp_wr; 554 props->max_mr = dev->adapter_caps.max_mr_count; 555 props->max_mr_size = MANA_IB_MAX_MR_SIZE; 556 props->max_send_sge = dev->adapter_caps.max_send_sge_count; 557 props->max_recv_sge = dev->adapter_caps.max_recv_sge_count; 563 struct ib_port_attr *props) 562 mana_ib_query_port(struct ib_device *ibdev, u32 port, struct ib_port_attr *props) argument [all...] |
/linux-master/drivers/input/rmi4/ |
H A D | rmi_f01.c | 139 struct f01_basic_properties *props) 164 props->manufacturer_id = queries[0]; 166 props->has_lts = queries[1] & RMI_F01_QRY1_HAS_LTS; 167 props->has_adjustable_doze = 169 props->has_adjustable_doze_holdoff = 174 snprintf(props->dom, sizeof(props->dom), "20%02d/%02d/%02d", 179 memcpy(props->product_id, &queries[11], 181 props->product_id[RMI_PRODUCT_ID_LENGTH] = '\0'; 183 props 137 rmi_f01_read_properties(struct rmi_device *rmi_dev, u16 query_base_addr, struct f01_basic_properties *props) argument [all...] |
/linux-master/net/ipv4/ |
H A D | ah4.c | 173 if (x->props.flags & XFRM_STATE_ESN) { 212 if (x->props.flags & XFRM_STATE_ALIGN4) 226 if (x->props.flags & XFRM_STATE_ESN) { 291 if (x->props.mode == XFRM_MODE_TUNNEL) 331 if (x->props.flags & XFRM_STATE_ALIGN4) { 360 if (x->props.flags & XFRM_STATE_ESN) { 401 if (x->props.flags & XFRM_STATE_ESN) { 426 if (x->props.mode == XFRM_MODE_TUNNEL) 522 if (x->props.flags & XFRM_STATE_ALIGN4) 523 x->props [all...] |
/linux-master/drivers/platform/loongarch/ |
H A D | loongson-laptop.c | 206 pr_info("Loongson_backlight: resume brightness %d\n", bd->props.brightness); 359 int lvl = ec_backlight_level(bd->props.brightness); 388 struct backlight_properties props; local 390 memset(&props, 0, sizeof(props)); 395 props.brightness = 1; 396 props.max_brightness = status; 397 props.type = BACKLIGHT_PLATFORM; 400 NULL, NULL, &backlight_laptop_ops, &props);
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | sysfs_engines.c | 173 WRITE_ONCE(engine->props.max_busywait_duration_ns, duration); 183 return sysfs_emit(buf, "%lu\n", engine->props.max_busywait_duration_ns); 224 WRITE_ONCE(engine->props.timeslice_duration_ms, duration); 237 return sysfs_emit(buf, "%lu\n", engine->props.timeslice_duration_ms); 279 WRITE_ONCE(engine->props.stop_timeout_ms, duration); 288 return sysfs_emit(buf, "%lu\n", engine->props.stop_timeout_ms); 330 WRITE_ONCE(engine->props.preempt_timeout_ms, timeout); 344 return sysfs_emit(buf, "%lu\n", engine->props.preempt_timeout_ms); 400 return sysfs_emit(buf, "%lu\n", engine->props.heartbeat_interval_ms);
|
H A D | selftest_context.c | 231 saved_heartbeat = engine->props.heartbeat_interval_ms; 232 engine->props.heartbeat_interval_ms = 0; 302 engine->props.heartbeat_interval_ms = saved_heartbeat; 390 saved_heartbeat = engine->props.heartbeat_interval_ms; 391 engine->props.heartbeat_interval_ms = 0; 412 engine->props.heartbeat_interval_ms = saved_heartbeat;
|
H A D | intel_engine_heartbeat.c | 28 delay = READ_ONCE(engine->props.heartbeat_interval_ms); 50 longer = READ_ONCE(engine->props.preempt_timeout_ms) * 2; 166 long delay = READ_ONCE(engine->props.heartbeat_interval_ms); 305 old = xchg(&engine->props.heartbeat_interval_ms, delay); 325 delay < 2 * engine->props.preempt_timeout_ms) { 340 if (delay != engine->props.heartbeat_interval_ms) {
|
/linux-master/drivers/gpu/drm/panel/ |
H A D | panel-jdi-lt070me05000.c | 327 u16 brightness = bl->props.brightness; 347 ret = mipi_dsi_dcs_set_display_brightness(dsi, bl->props.brightness); 365 struct backlight_properties props; local 367 memset(&props, 0, sizeof(props)); 368 props.type = BACKLIGHT_RAW; 369 props.brightness = 255; 370 props.max_brightness = 255; 373 &dsi_bl_ops, &props);
|
/linux-master/drivers/media/usb/dvb-usb-v2/ |
H A D | dvb_usb.h | 94 .props = (props_), \ 108 * @props: structure containing all device properties 113 const struct dvb_usb_device_properties *props; member in struct:dvb_usb_driver_info 273 * @props: properties 289 struct usb_data_stream_properties props; member in struct:usb_data_stream 311 * @props: pointer to adapter properties 330 const struct dvb_usb_adapter_properties *props; member in struct:dvb_usb_adapter 357 * @props: device properties 376 const struct dvb_usb_device_properties *props; member in struct:dvb_usb_device
|
/linux-master/net/tipc/ |
H A D | bearer.c | 1032 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; local 1035 props); 1039 if (props[TIPC_NLA_PROP_PRIO]) 1040 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); 1133 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; local 1136 props); 1140 if (props[TIPC_NLA_PROP_TOL]) { 1141 b->tolerance = nla_get_u32(props[TIPC_NLA_PROP_TOL]); 1144 if (props[TIPC_NLA_PROP_PRIO]) 1145 b->priority = nla_get_u32(props[TIPC_NLA_PROP_PRI 1330 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; local [all...] |
H A D | bcast.c | 656 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; local 661 err = tipc_nl_parse_link_prop(attrs[TIPC_NLA_LINK_PROP], props); 665 if (!props[TIPC_NLA_PROP_WIN] && 666 !props[TIPC_NLA_PROP_BROADCAST] && 667 !props[TIPC_NLA_PROP_BROADCAST_RATIO]) { 671 if (props[TIPC_NLA_PROP_BROADCAST]) { 672 bc_mode = nla_get_u32(props[TIPC_NLA_PROP_BROADCAST]); 676 if (!err && props[TIPC_NLA_PROP_BROADCAST_RATIO]) { 677 bc_ratio = nla_get_u32(props[TIPC_NLA_PROP_BROADCAST_RATIO]); 681 if (!err && props[TIPC_NLA_PROP_WI [all...] |
/linux-master/drivers/crypto/nx/ |
H A D | nx-aes-ctr.c | 34 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; 38 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; 42 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256];
|
/linux-master/sound/soc/intel/boards/ |
H A D | sof_sdw_rt711.c | 21 * Note this MUST be called before snd_soc_register_card(), so that the props 26 struct property_entry props[MAX_NO_PROPS] = {}; local 32 props[0] = PROPERTY_ENTRY_U32("realtek,jd-src", SOF_JACK_JDSRC(sof_sdw_quirk)); 34 fwnode = fwnode_create_software_node(props, NULL);
|
H A D | sof_sdw_rt_sdca_jack_common.c | 21 * Note this MUST be called before snd_soc_register_card(), so that the props 26 struct property_entry props[MAX_NO_PROPS] = {}; local 33 props[0] = PROPERTY_ENTRY_U32("realtek,jd-src", SOF_JACK_JDSRC(sof_sdw_quirk)); 35 fwnode = fwnode_create_software_node(props, NULL);
|
/linux-master/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_verbs.h | 54 int ocrdma_query_device(struct ib_device *, struct ib_device_attr *props, 57 struct ib_port_attr *props);
|
/linux-master/net/ipv6/ |
H A D | mip6.c | 169 WARN_ON(len != x->props.header_len); 170 dstopt->hdrlen = (x->props.header_len >> 3) - 1; 256 if (x->props.mode != XFRM_MODE_ROUTEOPTIMIZATION) { 261 x->props.header_len = sizeof(struct ipv6_destopt_hdr) + 264 WARN_ON(x->props.header_len != 24); 320 rt2->rt_hdr.hdrlen = (x->props.header_len >> 3) - 1; 341 if (x->props.mode != XFRM_MODE_ROUTEOPTIMIZATION) { 346 x->props.header_len = sizeof(struct rt2_hdr);
|
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | verbs.c | 1293 memset(&rdi->dparms.props, 0, sizeof(rdi->dparms.props)); 1295 rdi->dparms.props.fw_ver = ((u64)(dc8051_ver_maj(ver)) << 32) | 1299 rdi->dparms.props.device_cap_flags = IB_DEVICE_BAD_PKEY_CNTR | 1304 rdi->dparms.props.kernel_cap_flags = IBK_RDMA_NETDEV_OPA; 1305 rdi->dparms.props.page_size_cap = PAGE_SIZE; 1306 rdi->dparms.props.vendor_id = dd->oui1 << 16 | dd->oui2 << 8 | dd->oui3; 1307 rdi->dparms.props.vendor_part_id = dd->pcidev->device; 1308 rdi->dparms.props.hw_ver = dd->minrev; 1309 rdi->dparms.props 1368 query_port(struct rvt_dev_info *rdi, u32 port_num, struct ib_port_attr *props) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec.c | 342 if (x->props.flags & XFRM_STATE_ESN) { 378 memcpy(&attrs->saddr, x->props.saddr.a6, sizeof(attrs->saddr)); 380 attrs->family = x->props.family; 382 attrs->reqid = x->props.reqid; 388 attrs->mode = x->props.mode; 404 if (x->props.aalgo != SADB_AALG_NONE) { 408 if (x->props.ealgo != SADB_X_EALG_AES_GCM_ICV16) { 412 if (x->props.calgo != SADB_X_CALG_NONE) { 416 if (x->props.flags & XFRM_STATE_ESN && 421 if (x->props [all...] |