Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 355) sorted by relevance

12345678910>>...15

/drivers/leds/
A Dleds-expresswire.c19 usleep_range(props->timing.poweroff_us, props->timing.poweroff_us * 2); in expresswire_power_off()
25 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_enable()
26 udelay(props->timing.detect_delay_us); in expresswire_enable()
27 gpiod_set_value(props->ctrl_gpio, 0); in expresswire_enable()
28 udelay(props->timing.detect_us); in expresswire_enable()
29 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_enable()
35 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_start()
36 udelay(props->timing.data_start_us); in expresswire_start()
42 gpiod_set_value(props->ctrl_gpio, 0); in expresswire_end()
67 expresswire_start(props); in expresswire_write_u8()
[all …]
A Dled-core.c499 props->color_present = true; in led_parse_fwnode_props()
517 &props->func_enum); in led_parse_fwnode_props()
523 props->func_enum_present = true; in led_parse_fwnode_props()
530 struct led_properties props = {}; in led_compose_name() local
540 if (props.label) { in led_compose_name()
553 } else if (props.function || props.color_present) { in led_compose_name()
556 if (props.func_enum_present) { in led_compose_name()
558 props.color_present ? led_colors[props.color] : "", in led_compose_name()
559 props.function ?: "", props.func_enum); in led_compose_name()
562 props.color_present ? led_colors[props.color] : "", in led_compose_name()
[all …]
/drivers/dpll/zl3073x/
A Dprop.c110 snprintf(props->package_label, sizeof(props->package_label), "%s%u%s", in zl3073x_prop_pin_package_label_set()
116 props->dpll_props.package_label = props->package_label; in zl3073x_prop_pin_package_label_set()
163 props->fwnode = pin_node; in zl3073x_prop_pin_fwnode_get()
200 props = kzalloc(sizeof(*props), GFP_KERNEL); in zl3073x_pin_props_get()
201 if (!props) in zl3073x_pin_props_get()
248 props->esync_control = fwnode_property_read_bool(props->fwnode, in zl3073x_pin_props_get()
256 return props; in zl3073x_pin_props_get()
299 return props; in zl3073x_pin_props_get()
305 kfree(props); in zl3073x_pin_props_get()
322 if (props->fwnode) in zl3073x_pin_props_put()
[all …]
/drivers/media/usb/dvb-usb-v2/
A Dusb_urb.c96 if (props) { in usb_urb_submitv2()
153 stream->props.endpoint), in usb_urb_alloc_bulk_urbs()
187 stream->props.endpoint); in usb_urb_alloc_isoc_urbs()
255 if (!props) in usb_urb_reconfig()
262 buf_size = props->u.isoc.framesize * props->u.isoc.framesperurb; in usb_urb_reconfig()
277 if (stream->props.type == props->type && in usb_urb_reconfig()
278 stream->props.count == props->count && in usb_urb_reconfig()
279 stream->props.endpoint == props->endpoint) { in usb_urb_reconfig()
297 memcpy(&stream->props, props, sizeof(*props)); in usb_urb_reconfig()
311 if (!stream || !props) in usb_urb_initv2()
[all …]
A Ddvb_usb_core.c61 if (!d->props->i2c_algo) in dvb_usbv2_i2c_init()
761 adap->props = &d->props->adapter[i]; in dvb_usbv2_adapter_init()
870 if (d->props->init) { in dvb_usbv2_init()
871 ret = d->props->init(d); in dvb_usbv2_init()
918 d->props = driver_info->props; in dvb_usbv2_probe()
939 if (d->props->probe) { in dvb_usbv2_probe()
994 if (d->props->disconnect) in dvb_usbv2_probe()
1015 if (d->props->exit) in dvb_usbv2_disconnect()
1016 d->props->exit(d); in dvb_usbv2_disconnect()
1111 if (d->props->init) in dvb_usbv2_reset_resume()
[all …]
/drivers/media/usb/dvb-usb/
A Ddvb-usb-init.c36 memcpy(&adap->props, &d->props.adapter[n], sizeof(struct dvb_usb_adapter_properties)); in dvb_usb_adapter_init()
39 struct dvb_usb_adapter_fe_properties *props = &adap->props.fe[o]; in dvb_usb_adapter_init() local
65 if (props->size_of_priv > 0) { in dvb_usb_adapter_init()
149 d->props.priv_destroy(d); in dvb_usb_exit()
174 ret = d->props.priv_init(d); in dvb_usb_init()
202 d->props.priv_destroy(d); in dvb_usb_init()
224 desc = &props->devices[i]; in dvb_usb_find_device()
237 desc = &props->devices[i]; in dvb_usb_find_device()
244 props->identify_state(udev, props, &desc, cold); in dvb_usb_find_device()
258 if (d->props.power_ctrl) in dvb_usb_device_power_ctrl()
[all …]
A Ddvb-usb-remote.c261 err = d->props.rc.core.rc_query(d); in dvb_usb_read_remote_control()
279 dev->map_name = d->props.rc.core.rc_codes; in rc_core_dvb_usb_remote_init()
298 if (!d->props.rc.core.rc_query || d->props.rc.core.bulk_mode) in rc_core_dvb_usb_remote_init()
304 rc_interval = d->props.rc.core.rc_interval; in rc_core_dvb_usb_remote_init()
320 if (d->props.rc.legacy.rc_map_table && d->props.rc.legacy.rc_query) in dvb_usb_remote_init()
321 d->props.rc.mode = DVB_RC_LEGACY; in dvb_usb_remote_init()
322 else if (d->props.rc.core.rc_codes) in dvb_usb_remote_init()
323 d->props.rc.mode = DVB_RC_CORE; in dvb_usb_remote_init()
331 if (d->props.rc.legacy.rc_interval < 40) in dvb_usb_remote_init()
334 if (d->props.rc.mode == DVB_RC_LEGACY) in dvb_usb_remote_init()
[all …]
A Dusb-urb.c143 stream->props.u.bulk.buffersize)) < 0) in usb_bulk_urb_init()
147 for (i = 0; i < stream->props.count; i++) { in usb_bulk_urb_init()
156 usb_rcvbulkpipe(stream->udev,stream->props.endpoint), in usb_bulk_urb_init()
158 stream->props.u.bulk.buffersize, in usb_bulk_urb_init()
173 stream->props.u.isoc.framesize*stream->props.u.isoc.framesperurb)) < 0) in usb_isoc_urb_init()
177 for (i = 0; i < stream->props.count; i++) { in usb_isoc_urb_init()
196 urb->interval = stream->props.u.isoc.interval; in usb_isoc_urb_init()
205 frame_offset += stream->props.u.isoc.framesize; in usb_isoc_urb_init()
215 if (stream == NULL || props == NULL) in usb_urb_init()
218 memcpy(&stream->props, props, sizeof(*props)); in usb_urb_init()
[all …]
A Ddvb-usb-dvb.c52 adap->props.fe[adap->active_fe].pid_filter != NULL) in dvb_usb_ctrl_feed()
61 adap->props.fe[adap->active_fe].caps & in dvb_usb_ctrl_feed()
164 if (adap->dev->props.read_mac_address) { in dvb_usb_adapter_dvb_init()
176 for (i = 0; i < adap->props.num_frontends; i++) { in dvb_usb_adapter_dvb_init()
237 int ret = (adap->props.frontend_ctrl) ? in dvb_usb_set_active_fe()
238 adap->props.frontend_ctrl(fe, onoff) : 0; in dvb_usb_set_active_fe()
281 for (i = 0; i < adap->props.num_frontends; i++) { in dvb_usb_adapter_frontend_init()
283 if (adap->props.fe[i].frontend_attach == NULL) { in dvb_usb_adapter_frontend_init()
290 ret = adap->props.fe[i].frontend_attach(adap); in dvb_usb_adapter_frontend_init()
321 if (adap->props.fe[i].tuner_attach != NULL) in dvb_usb_adapter_frontend_init()
[all …]
/drivers/infiniband/hw/vmw_pvrdma/
A Dpvrdma_verbs.c66 struct ib_device_attr *props, in pvrdma_query_device() argument
74 props->fw_ver = dev->dsr->caps.fw_ver; in pvrdma_query_device()
97 props->atomic_cap = in pvrdma_query_device()
101 props->masked_atomic_cap = props->atomic_cap; in pvrdma_query_device()
129 struct ib_port_attr *props) in pvrdma_query_port() argument
155 props->port_cap_flags = in pvrdma_query_port()
158 props->ip_gids = true; in pvrdma_query_port()
163 props->lid = resp->attrs.lid; in pvrdma_query_port()
164 props->sm_lid = resp->attrs.sm_lid; in pvrdma_query_port()
165 props->lmc = resp->attrs.lmc; in pvrdma_query_port()
[all …]
/drivers/infiniband/hw/usnic/
A Dusnic_ib_verbs.c292 memset(props, 0, sizeof(*props)); in usnic_ib_query_device()
315 props->max_pkeys = 0; in usnic_ib_query_device()
317 props->masked_atomic_cap = props->atomic_cap; in usnic_ib_query_device()
321 props->max_srq = 0; in usnic_ib_query_device()
322 props->max_srq_wr = 0; in usnic_ib_query_device()
354 props->lid = 0; in usnic_ib_query_port()
355 props->lmc = 1; in usnic_ib_query_port()
356 props->sm_lid = 0; in usnic_ib_query_port()
357 props->sm_sl = 0; in usnic_ib_query_port()
364 props->phys_state = in usnic_ib_query_port()
[all …]
/drivers/video/backlight/
A Daat2870_bl.c34 val /= bd->props.max_brightness; in aat2870_brightness()
70 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status()
102 struct backlight_properties props; in aat2870_bl_probe() local
127 props.type = BACKLIGHT_RAW; in aat2870_bl_probe()
130 &props); in aat2870_bl_probe()
154 bd->props.max_brightness = pdata->max_brightness; in aat2870_bl_probe()
156 bd->props.max_brightness = 255; in aat2870_bl_probe()
159 bd->props.power = BACKLIGHT_POWER_ON; in aat2870_bl_probe()
160 bd->props.brightness = bd->props.max_brightness; in aat2870_bl_probe()
179 bd->props.power = BACKLIGHT_POWER_OFF; in aat2870_bl_remove()
[all …]
A Dbacklight.c97 bd->props.state |= BL_CORE_FBBLANK; in backlight_notify_blank()
159 if (bd->props.power != power) { in bl_power_store()
160 old_power = bd->props.power; in bl_power_store()
161 bd->props.power = power; in bl_power_store()
164 bd->props.power = old_power; in bl_power_store()
196 bd->props.brightness = brightness; in backlight_device_set_brightness()
387 if (props) { in backlight_device_register()
388 memcpy(&new_bd->props, props, in backlight_device_register()
390 if (props->type <= 0 || props->type >= BACKLIGHT_TYPE_MAX) { in backlight_device_register()
437 if (bd->props.type == type) { in backlight_device_get_by_type()
[all …]
A Dktd2801-backlight.c28 struct expresswire_common_props props; member
39 expresswire_power_off(&ktd2801->props); in ktd2801_update_status()
45 expresswire_enable(&ktd2801->props); in ktd2801_update_status()
49 expresswire_write_u8(&ktd2801->props, brightness); in ktd2801_update_status()
70 ktd2801->props.timing = ktd2801_timing; in ktd2801_backlight_probe()
88 ktd2801->props.ctrl_gpio = devm_gpiod_get(dev, "ctrl", GPIOD_OUT_HIGH); in ktd2801_backlight_probe()
89 if (IS_ERR(ktd2801->props.ctrl_gpio)) in ktd2801_backlight_probe()
90 return dev_err_probe(dev, PTR_ERR(ktd2801->props.ctrl_gpio), in ktd2801_backlight_probe()
92 gpiod_set_consumer_name(ktd2801->props.ctrl_gpio, dev_name(dev)); in ktd2801_backlight_probe()
100 bd->props.max_brightness = max_brightness; in ktd2801_backlight_probe()
[all …]
A Dpandora_bl.c41 int brightness = bl->props.brightness; in pandora_backlight_update_status()
45 if (bl->props.power != BACKLIGHT_POWER_ON) in pandora_backlight_update_status()
47 if (bl->props.state & BL_CORE_FBBLANK) in pandora_backlight_update_status()
49 if (bl->props.state & BL_CORE_SUSPENDED) in pandora_backlight_update_status()
110 struct backlight_properties props; in pandora_backlight_probe() local
119 memset(&props, 0, sizeof(props)); in pandora_backlight_probe()
120 props.max_brightness = MAX_USER_VALUE; in pandora_backlight_probe()
121 props.type = BACKLIGHT_RAW; in pandora_backlight_probe()
123 priv, &pandora_backlight_ops, &props); in pandora_backlight_probe()
135 bl->props.brightness = MAX_USER_VALUE; in pandora_backlight_probe()
A Dgpio_backlight.c51 struct backlight_properties props; in gpio_backlight_probe() local
70 memset(&props, 0, sizeof(props)); in gpio_backlight_probe()
71 props.type = BACKLIGHT_RAW; in gpio_backlight_probe()
72 props.max_brightness = 1; in gpio_backlight_probe()
74 &gpio_backlight_ops, &props); in gpio_backlight_probe()
83 bl->props.power = def_value ? BACKLIGHT_POWER_ON in gpio_backlight_probe()
86 bl->props.power = BACKLIGHT_POWER_OFF; in gpio_backlight_probe()
88 bl->props.power = BACKLIGHT_POWER_ON; in gpio_backlight_probe()
90 bl->props.brightness = 1; in gpio_backlight_probe()
/drivers/acpi/x86/
A Dapple.c31 union acpi_object *props, *newprops; in acpi_extract_apple_properties() local
40 if (!props) in acpi_extract_apple_properties()
43 if (!props->buffer.length) in acpi_extract_apple_properties()
46 if (props->buffer.pointer[0] != 3) { in acpi_extract_apple_properties()
49 props->buffer.length, props->buffer.pointer); in acpi_extract_apple_properties()
53 ACPI_FREE(props); in acpi_extract_apple_properties()
56 if (!props) in acpi_extract_apple_properties()
59 numprops = props->package.count / 2; in acpi_extract_apple_properties()
69 union acpi_object *key = &props->package.elements[i * 2]; in acpi_extract_apple_properties()
107 union acpi_object *key = &props->package.elements[i * 2]; in acpi_extract_apple_properties()
[all …]
/drivers/infiniband/hw/mlx5/
A Dmad.c598 struct ib_port_attr *props) in mlx5_query_mad_ifc_port() argument
625 props->lmc = out_mad->data[34] & 0x7; in mlx5_query_mad_ifc_port()
631 props->gid_tbl_len = out_mad->data[50]; in mlx5_query_mad_ifc_port()
645 props->port_cap_flags2 = in mlx5_query_mad_ifc_port()
658 props->active_speed = 16; /* FDR */ in mlx5_query_mad_ifc_port()
661 props->active_speed = 32; /* EDR */ in mlx5_query_mad_ifc_port()
666 props->active_speed = IB_SPEED_HDR; in mlx5_query_mad_ifc_port()
671 props->active_speed = IB_SPEED_NDR; in mlx5_query_mad_ifc_port()
684 props->active_speed = IB_SPEED_XDR; in mlx5_query_mad_ifc_port()
690 if (props->active_speed == 4) { in mlx5_query_mad_ifc_port()
[all …]
/drivers/infiniband/hw/cxgb4/
A Dprovider.c278 props->max_mr_size = T4_MAX_MR_SIZE; in c4iw_query_device()
286 props->max_sge_rd = 1; in c4iw_query_device()
290 props->max_qp_init_rd_atom = props->max_qp_rd_atom; in c4iw_query_device()
294 props->max_pd = T4_MAX_NUM_PD; in c4iw_query_device()
295 props->local_ca_ack_delay = 0; in c4iw_query_device()
296 props->max_fast_reg_page_list_len = in c4iw_query_device()
303 struct ib_port_attr *props) in c4iw_query_port() argument
308 &props->active_width); in c4iw_query_port()
310 props->port_cap_flags = in c4iw_query_port()
316 props->gid_tbl_len = 1; in c4iw_query_port()
[all …]
/drivers/infiniband/hw/mthca/
A Dmthca_provider.c69 memset(props, 0, sizeof *props); in mthca_query_device()
71 props->fw_ver = mdev->fw_ver; in mthca_query_device()
88 props->max_mr_size = ~0ull; in mthca_query_device()
101 props->max_res_rd_atom = props->max_qp_rd_atom * props->max_qp; in mthca_query_device()
111 props->max_total_mcast_qp_attach = props->max_mcast_qp_attach * in mthca_query_device()
112 props->max_mcast_grp; in mthca_query_device()
122 u32 port, struct ib_port_attr *props) in mthca_query_port() argument
152 props->max_msg_sz = 0x80000000; in mthca_query_port()
172 struct ib_device_modify *props) in mthca_modify_device() argument
190 struct ib_port_modify *props) in mthca_modify_port() argument
[all …]
/drivers/accel/habanalabs/common/
A Dstate_dump.c272 base_addr = sds->props[SP_SYNC_OBJ_BASE_ADDR] + in hl_state_dump_read_sync_objects()
273 sds->props[SP_NEXT_SYNC_OBJ_ADDR] * index; in hl_state_dump_read_sync_objects()
340 sds->props[SP_NEXT_SYNC_OBJ_ADDR] * index + in hl_state_dump_print_syncs_single_block()
614 n_fences = sds->props[SP_NUM_OF_TPC_ENGINES]; in hl_state_dump_print_engine_fences()
615 base_addr = sds->props[SP_TPC0_CMDQ]; in hl_state_dump_print_engine_fences()
616 next_fence = sds->props[SP_NEXT_TPC]; in hl_state_dump_print_engine_fences()
620 base_addr = sds->props[SP_MME_CMDQ]; in hl_state_dump_print_engine_fences()
621 next_fence = sds->props[SP_NEXT_MME]; in hl_state_dump_print_engine_fences()
625 base_addr = sds->props[SP_DMA_CMDQ]; in hl_state_dump_print_engine_fences()
635 sds->props[SP_FENCE0_CNT_OFFSET], in hl_state_dump_print_engine_fences()
[all …]
/drivers/hid/
A Dhid-picolcd_backlight.c31 data->lcd_brightness = bdev->props.brightness & 0x0ff; in picolcd_set_brightness()
32 data->lcd_power = bdev->props.power; in picolcd_set_brightness()
51 struct backlight_properties props; in picolcd_init_backlight() local
60 memset(&props, 0, sizeof(props)); in picolcd_init_backlight()
61 props.type = BACKLIGHT_RAW; in picolcd_init_backlight()
62 props.max_brightness = 0xff; in picolcd_init_backlight()
64 &picolcd_blops, &props); in picolcd_init_backlight()
69 bdev->props.brightness = 0xff; in picolcd_init_backlight()
98 data->backlight->props.power = BACKLIGHT_POWER_OFF; in picolcd_suspend_backlight()
100 data->lcd_power = data->backlight->props.power = bl_power; in picolcd_suspend_backlight()
/drivers/infiniband/hw/hns/
A Dhns_roce_main.c165 struct ib_device_attr *props, in hns_roce_query_device() argument
170 memset(props, 0, sizeof(*props)); in hns_roce_query_device()
172 props->fw_ver = hr_dev->caps.fw_ver; in hns_roce_query_device()
174 props->max_mr_size = (u64)(~(0ULL)); in hns_roce_query_device()
178 props->hw_ver = hr_dev->hw_rev; in hns_roce_query_device()
194 props->max_pkeys = 1; in hns_roce_query_device()
196 props->max_ah = INT_MAX; in hns_roce_query_device()
241 props->pkey_tbl_len = 1; in hns_roce_query_port()
243 &props->active_width); in hns_roce_query_port()
257 props->active_mtu = mtu ? min(props->max_mtu, mtu) : IB_MTU_256; in hns_roce_query_port()
[all …]
/drivers/gpu/drm/nouveau/dispnv04/
A Doverlay.c49 } props; member
251 if (property == nv_plane->props.colorkey) in nv_set_property()
257 else if (property == nv_plane->props.hue) in nv_set_property()
317 if (!plane->props.colorkey || in nv10_overlay_init()
318 !plane->props.contrast || in nv10_overlay_init()
319 !plane->props.brightness || in nv10_overlay_init()
320 !plane->props.hue || in nv10_overlay_init()
321 !plane->props.saturation) in nv10_overlay_init()
338 plane->props.hue, plane->hue); in nv10_overlay_init()
490 if (!plane->props.colorkey || in nv04_overlay_init()
[all …]
/drivers/infiniband/sw/rdmavt/
A Dvt.c78 struct ib_device_attr *props, in rvt_query_device() argument
88 *props = rdi->dparms.props; in rvt_query_device()
120 struct ib_port_attr *props) in rvt_query_port() argument
128 props->sm_lid = rvp->sm_lid; in rvt_query_port()
129 props->sm_sl = rvp->sm_sl; in rvt_query_port()
130 props->port_cap_flags = rvp->port_cap_flags; in rvt_query_port()
131 props->max_msg_sz = 0x80000000; in rvt_query_port()
132 props->pkey_tbl_len = rvt_get_npkeys(rdi); in rvt_query_port()
133 props->bad_pkey_cntr = rvp->pkey_violations; in rvt_query_port()
136 props->init_type_reply = 0; in rvt_query_port()
[all …]

Completed in 41 milliseconds

12345678910>>...15