Home
last modified time | relevance | path

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

12345678910>>...14

/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb-v2/
Dusb_urb.c17 struct usb_data_stream_properties *props);
92 struct usb_data_stream_properties *props) in usb_urb_submitv2() argument
96 if (props) { in usb_urb_submitv2()
97 ret = usb_urb_reconfig(stream, props); in usb_urb_submitv2()
141 for (i = 0; i < stream->props.count; i++) { in usb_urb_alloc_bulk_urbs()
153 stream->props.endpoint), in usb_urb_alloc_bulk_urbs()
155 stream->props.u.bulk.buffersize, in usb_urb_alloc_bulk_urbs()
168 for (i = 0; i < stream->props.count; i++) { in usb_urb_alloc_isoc_urbs()
173 stream->props.u.isoc.framesperurb, GFP_ATOMIC); in usb_urb_alloc_isoc_urbs()
187 stream->props.endpoint); in usb_urb_alloc_isoc_urbs()
[all …]
Ddvb_usb_core.c29 if (!d->props->download_firmware) { in dvb_usbv2_download_firmware()
45 ret = d->props->download_firmware(d, fw); in dvb_usbv2_download_firmware()
61 if (!d->props->i2c_algo) in dvb_usbv2_i2c_init()
65 d->i2c_adap.algo = d->props->i2c_algo; in dvb_usbv2_i2c_init()
125 if (dvb_usbv2_disable_rc_polling || !d->props->get_rc_config) in dvb_usbv2_remote_init()
129 ret = d->props->get_rc_config(d, &d->rc); in dvb_usbv2_remote_init()
149 dev->driver_name = d->props->driver_name; in dvb_usbv2_remote_init()
230 return usb_urb_initv2(&adap->stream, &adap->props->stream); in dvb_usbv2_adapter_stream_init()
267 if (d->props->get_stream_config) { in dvb_usb_start_feed()
268 memcpy(&stream_props, &adap->props->stream, in dvb_usb_start_feed()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
Ddvb-usb-init.c31 for (n = 0; n < d->props.num_adapters; n++) { in dvb_usb_adapter_init()
36 memcpy(&adap->props, &d->props.adapter[n], sizeof(struct dvb_usb_adapter_properties)); in dvb_usb_adapter_init()
38 for (o = 0; o < adap->props.num_frontends; o++) { in dvb_usb_adapter_init()
39 struct dvb_usb_adapter_fe_properties *props = &adap->props.fe[o]; in dvb_usb_adapter_init() local
41 if (d->udev->speed == USB_SPEED_FULL && !(props->caps & DVB_USB_ADAP_HAS_PID_FILTER)) { in dvb_usb_adapter_init()
46 if ((d->udev->speed == USB_SPEED_FULL && props->caps & DVB_USB_ADAP_HAS_PID_FILTER) || in dvb_usb_adapter_init()
47 (props->caps & DVB_USB_ADAP_NEED_PID_FILTERING)) { in dvb_usb_adapter_init()
48 info("will use the device's hardware PID filter (table count: %d).", props->pid_filter_count); in dvb_usb_adapter_init()
50 adap->fe_adap[o].max_feed_count = props->pid_filter_count; in dvb_usb_adapter_init()
59 props->caps & DVB_USB_ADAP_HAS_PID_FILTER) { in dvb_usb_adapter_init()
[all …]
Ddvb-usb-remote.c49 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_getkeycode()
50 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_getkeycode()
72 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_setkeycode()
73 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_setkeycode()
123 if (d->props.rc.legacy.rc_query(d,&event,&state)) { in legacy_dvb_usb_read_remote_control()
187 schedule_delayed_work(&d->rc_query_work,msecs_to_jiffies(d->props.rc.legacy.rc_interval)); in legacy_dvb_usb_read_remote_control()
211 deb_rc("key map size: %d\n", d->props.rc.legacy.rc_map_size); in legacy_dvb_usb_remote_init()
212 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { in legacy_dvb_usb_remote_init()
214 d->props.rc.legacy.rc_map_table[i].keycode, i); in legacy_dvb_usb_remote_init()
215 set_bit(d->props.rc.legacy.rc_map_table[i].keycode, input_dev->keybit); in legacy_dvb_usb_remote_init()
[all …]
Dusb-urb.c142 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, in usb_bulk_urb_init()
143 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()
172 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, in usb_isoc_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()
181 stream->urb_list[i] = usb_alloc_urb(stream->props.u.isoc.framesperurb, GFP_KERNEL); in usb_isoc_urb_init()
194 urb->pipe = usb_rcvisocpipe(stream->udev,stream->props.endpoint); in usb_isoc_urb_init()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powermac/
Dbacklight.c108 struct backlight_properties *props; in pmac_backlight_key_worker() local
111 props = &pmac_backlight->props; in pmac_backlight_key_worker()
113 brightness = props->brightness + in pmac_backlight_key_worker()
115 (props->max_brightness / 15)); in pmac_backlight_key_worker()
119 else if (brightness > props->max_brightness) in pmac_backlight_key_worker()
120 brightness = props->max_brightness; in pmac_backlight_key_worker()
122 props->brightness = brightness; in pmac_backlight_key_worker()
147 struct backlight_properties *props; in __pmac_backlight_set_legacy_brightness() local
149 props = &pmac_backlight->props; in __pmac_backlight_set_legacy_brightness()
150 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
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()
75 props->sys_image_guid = dev->dsr->caps.sys_image_guid; in pvrdma_query_device()
76 props->max_mr_size = dev->dsr->caps.max_mr_size; in pvrdma_query_device()
77 props->page_size_cap = dev->dsr->caps.page_size_cap; in pvrdma_query_device()
78 props->vendor_id = dev->dsr->caps.vendor_id; in pvrdma_query_device()
79 props->vendor_part_id = dev->pdev->device; in pvrdma_query_device()
80 props->hw_ver = dev->dsr->caps.hw_ver; in pvrdma_query_device()
81 props->max_qp = dev->dsr->caps.max_qp; in pvrdma_query_device()
82 props->max_qp_wr = dev->dsr->caps.max_qp_wr; in pvrdma_query_device()
[all …]
/kernel/linux/linux-5.10/drivers/video/backlight/
Daat2870_bl.c35 val /= bd->props.max_brightness; in aat2870_brightness()
62 int brightness = bd->props.brightness; in aat2870_bl_update_status()
65 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status()
71 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status()
73 if ((bd->props.power != FB_BLANK_UNBLANK) || in aat2870_bl_update_status()
74 (bd->props.state & BL_CORE_FBBLANK) || in aat2870_bl_update_status()
75 (bd->props.state & BL_CORE_SUSPENDED)) in aat2870_bl_update_status()
114 struct backlight_properties props; in aat2870_bl_probe() local
137 memset(&props, 0, sizeof(struct backlight_properties)); in aat2870_bl_probe()
139 props.type = BACKLIGHT_RAW; in aat2870_bl_probe()
[all …]
Dtosa_bl.c53 struct backlight_properties *props = &dev->props; in tosa_bl_update_status() local
55 int power = max(props->power, props->fb_blank); in tosa_bl_update_status()
56 int brightness = props->brightness; in tosa_bl_update_status()
68 struct backlight_properties *props = &dev->props; in tosa_bl_get_brightness() local
70 return props->brightness; in tosa_bl_get_brightness()
81 struct backlight_properties props; in tosa_bl_probe() local
101 memset(&props, 0, sizeof(struct backlight_properties)); in tosa_bl_probe()
102 props.type = BACKLIGHT_RAW; in tosa_bl_probe()
103 props.max_brightness = 512 - 1; in tosa_bl_probe()
106 &props); in tosa_bl_probe()
[all …]
Domap1_bl.c95 if (bl->current_intensity != dev->props.brightness) { in omapbl_update_status()
97 omapbl_send_intensity(dev->props.brightness); in omapbl_update_status()
98 bl->current_intensity = dev->props.brightness; in omapbl_update_status()
101 if (dev->props.fb_blank != bl->powermode) in omapbl_update_status()
102 omapbl_set_power(dev, dev->props.fb_blank); in omapbl_update_status()
121 struct backlight_properties props; in omapbl_probe() local
134 memset(&props, 0, sizeof(struct backlight_properties)); in omapbl_probe()
135 props.type = BACKLIGHT_RAW; in omapbl_probe()
136 props.max_brightness = OMAPBL_MAX_INTENSITY; in omapbl_probe()
138 bl, &omapbl_ops, &props); in omapbl_probe()
[all …]
Dbacklight.c120 bd->props.state &= ~BL_CORE_FBBLANK; in fb_notifier_callback()
121 bd->props.fb_blank = FB_BLANK_UNBLANK; in fb_notifier_callback()
127 bd->props.state |= BL_CORE_FBBLANK; in fb_notifier_callback()
128 bd->props.fb_blank = fb_blank; in fb_notifier_callback()
186 return sprintf(buf, "%d\n", bd->props.power); in bl_power_show()
204 if (bd->props.power != power) { in bl_power_store()
205 old_power = bd->props.power; in bl_power_store()
206 bd->props.power = power; in bl_power_store()
209 bd->props.power = old_power; in bl_power_store()
227 return sprintf(buf, "%d\n", bd->props.brightness); in brightness_show()
[all …]
Dpandora_bl.c42 int brightness = bl->props.brightness; in pandora_backlight_update_status()
46 if (bl->props.power != FB_BLANK_UNBLANK) in pandora_backlight_update_status()
48 if (bl->props.state & BL_CORE_FBBLANK) in pandora_backlight_update_status()
50 if (bl->props.state & BL_CORE_SUSPENDED) in pandora_backlight_update_status()
111 struct backlight_properties props; in pandora_backlight_probe() local
122 memset(&props, 0, sizeof(props)); in pandora_backlight_probe()
123 props.max_brightness = MAX_USER_VALUE; in pandora_backlight_probe()
124 props.type = BACKLIGHT_RAW; in pandora_backlight_probe()
126 priv, &pandora_backlight_ops, &props); in pandora_backlight_probe()
138 bl->props.brightness = MAX_USER_VALUE; in pandora_backlight_probe()
Dgpio_backlight.c52 struct backlight_properties props; in gpio_backlight_probe() local
75 memset(&props, 0, sizeof(props)); in gpio_backlight_probe()
76 props.type = BACKLIGHT_RAW; in gpio_backlight_probe()
77 props.max_brightness = 1; in gpio_backlight_probe()
79 &gpio_backlight_ops, &props); in gpio_backlight_probe()
88 bl->props.power = def_value ? FB_BLANK_UNBLANK in gpio_backlight_probe()
92 bl->props.power = FB_BLANK_POWERDOWN; in gpio_backlight_probe()
94 bl->props.power = FB_BLANK_UNBLANK; in gpio_backlight_probe()
96 bl->props.brightness = 1; in gpio_backlight_probe()
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.c279 struct ib_device_attr *props, in usnic_ib_query_device() argument
293 memset(props, 0, sizeof(*props)); in usnic_ib_query_device()
296 memcpy(&props->sys_image_guid, &gid.global.interface_id, in usnic_ib_query_device()
298 usnic_ib_fw_string_to_u64(&info.fw_version[0], &props->fw_ver); in usnic_ib_query_device()
299 props->max_mr_size = USNIC_UIOM_MAX_MR_SIZE; in usnic_ib_query_device()
300 props->page_size_cap = USNIC_UIOM_PAGE_SIZE; in usnic_ib_query_device()
301 props->vendor_id = PCI_VENDOR_ID_CISCO; in usnic_ib_query_device()
302 props->vendor_part_id = PCI_DEVICE_ID_CISCO_VIC_USPACE_NIC; in usnic_ib_query_device()
303 props->hw_ver = us_ibdev->pdev->subsystem_device; in usnic_ib_query_device()
306 props->max_qp = qp_per_vf * in usnic_ib_query_device()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/x86/
Dapple.c30 union acpi_object *props, *newprops; in acpi_extract_apple_properties() local
37 props = acpi_evaluate_dsm_typed(adev->handle, &apple_prp_guid, 1, 0, in acpi_extract_apple_properties()
39 if (!props) in acpi_extract_apple_properties()
42 if (!props->buffer.length) in acpi_extract_apple_properties()
45 if (props->buffer.pointer[0] != 3) { in acpi_extract_apple_properties()
48 props->buffer.length, props->buffer.pointer); in acpi_extract_apple_properties()
52 ACPI_FREE(props); in acpi_extract_apple_properties()
53 props = acpi_evaluate_dsm_typed(adev->handle, &apple_prp_guid, 1, 1, in acpi_extract_apple_properties()
55 if (!props) in acpi_extract_apple_properties()
58 numprops = props->package.count / 2; in acpi_extract_apple_properties()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dbacklight.h284 struct backlight_properties props; member
368 bd->props.power = FB_BLANK_UNBLANK; in backlight_enable()
369 bd->props.fb_blank = FB_BLANK_UNBLANK; in backlight_enable()
370 bd->props.state &= ~BL_CORE_FBBLANK; in backlight_enable()
384 bd->props.power = FB_BLANK_POWERDOWN; in backlight_disable()
385 bd->props.fb_blank = FB_BLANK_POWERDOWN; in backlight_disable()
386 bd->props.state |= BL_CORE_FBBLANK; in backlight_disable()
405 return bd->props.power != FB_BLANK_UNBLANK || in backlight_is_blank()
406 bd->props.fb_blank != FB_BLANK_UNBLANK || in backlight_is_blank()
407 bd->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK); in backlight_is_blank()
[all …]
/kernel/linux/linux-5.10/drivers/leds/
Dled-core.c372 struct led_properties *props) in led_parse_fwnode_props() argument
380 ret = fwnode_property_read_string(fwnode, "label", &props->label); in led_parse_fwnode_props()
387 ret = fwnode_property_read_u32(fwnode, "color", &props->color); in led_parse_fwnode_props()
390 else if (props->color >= LED_COLOR_ID_MAX) in led_parse_fwnode_props()
393 props->color_present = true; in led_parse_fwnode_props()
400 ret = fwnode_property_read_string(fwnode, "function", &props->function); in led_parse_fwnode_props()
411 &props->func_enum); in led_parse_fwnode_props()
417 props->func_enum_present = true; in led_parse_fwnode_props()
424 struct led_properties props = {}; in led_compose_name() local
430 BUG_ON(props.color == LED_COLOR_ID_MULTI); in led_compose_name()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_crat.c202 struct kfd_mem_properties *props; in find_subtype_mem() local
204 list_for_each_entry(props, &dev->mem_props, list) { in find_subtype_mem()
205 if (props->heap_type == heap_type in find_subtype_mem()
206 && props->flags == flags in find_subtype_mem()
207 && props->width == width) in find_subtype_mem()
208 return props; in find_subtype_mem()
219 struct kfd_mem_properties *props; in kfd_parse_subtype_mem() local
257 props = find_subtype_mem(heap_type, flags, width, dev); in kfd_parse_subtype_mem()
258 if (props) { in kfd_parse_subtype_mem()
259 props->size_in_bytes += size_in_bytes; in kfd_parse_subtype_mem()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dipcomp.c66 t->id.spi = x->props.saddr.a4; in ipcomp_tunnel_create()
69 t->props.family = AF_INET; in ipcomp_tunnel_create()
70 t->props.mode = x->props.mode; in ipcomp_tunnel_create()
71 t->props.saddr.a4 = x->props.saddr.a4; in ipcomp_tunnel_create()
72 t->props.flags = x->props.flags; in ipcomp_tunnel_create()
73 t->props.extra_flags = x->props.extra_flags; in ipcomp_tunnel_create()
103 x->props.saddr.a4, IPPROTO_IPIP, AF_INET); in ipcomp_tunnel_attach()
123 x->props.header_len = 0; in ipcomp4_init_state()
124 switch (x->props.mode) { in ipcomp4_init_state()
128 x->props.header_len += sizeof(struct iphdr); in ipcomp4_init_state()
[all …]
/kernel/linux/linux-5.10/drivers/hid/
Dhid-picolcd_backlight.c32 data->lcd_brightness = bdev->props.brightness & 0x0ff; in picolcd_set_brightness()
33 data->lcd_power = bdev->props.power; in picolcd_set_brightness()
57 struct backlight_properties props; in picolcd_init_backlight() local
66 memset(&props, 0, sizeof(props)); in picolcd_init_backlight()
67 props.type = BACKLIGHT_RAW; in picolcd_init_backlight()
68 props.max_brightness = 0xff; in picolcd_init_backlight()
70 &picolcd_blops, &props); in picolcd_init_backlight()
75 bdev->props.brightness = 0xff; in picolcd_init_backlight()
104 data->backlight->props.power = FB_BLANK_POWERDOWN; in picolcd_suspend_backlight()
106 data->lcd_power = data->backlight->props.power = bl_power; in picolcd_suspend_backlight()
/kernel/linux/linux-5.10/drivers/video/fbdev/nvidia/
Dnv_backlight.c57 if (bd->props.power != FB_BLANK_UNBLANK || in nvidia_bl_update_status()
58 bd->props.fb_blank != FB_BLANK_UNBLANK) in nvidia_bl_update_status()
61 level = bd->props.brightness; in nvidia_bl_update_status()
88 struct backlight_properties props; in nvidia_bl_init() local
104 memset(&props, 0, sizeof(struct backlight_properties)); in nvidia_bl_init()
105 props.type = BACKLIGHT_RAW; in nvidia_bl_init()
106 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in nvidia_bl_init()
108 &props); in nvidia_bl_init()
120 bd->props.brightness = bd->props.max_brightness; in nvidia_bl_init()
121 bd->props.power = FB_BLANK_UNBLANK; in nvidia_bl_init()
/kernel/linux/linux-5.10/drivers/macintosh/
Dvia-pmu-backlight.c75 int level = bd->props.brightness; in __pmu_backlight_update_status()
78 if (bd->props.power != FB_BLANK_UNBLANK || in __pmu_backlight_update_status()
79 bd->props.fb_blank != FB_BLANK_UNBLANK) in __pmu_backlight_update_status()
142 struct backlight_properties props; in pmu_backlight_init() local
160 memset(&props, 0, sizeof(struct backlight_properties)); in pmu_backlight_init()
161 props.type = BACKLIGHT_PLATFORM; in pmu_backlight_init()
162 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in pmu_backlight_init()
164 &props); in pmu_backlight_init()
172 level = bd->props.max_brightness; in pmu_backlight_init()
182 bd->props.max_brightness / 15); in pmu_backlight_init()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_main.c181 struct ib_device_attr *props, in hns_roce_query_device() argument
186 memset(props, 0, sizeof(*props)); in hns_roce_query_device()
188 props->fw_ver = hr_dev->caps.fw_ver; in hns_roce_query_device()
189 props->sys_image_guid = cpu_to_be64(hr_dev->sys_image_guid); in hns_roce_query_device()
190 props->max_mr_size = (u64)(~(0ULL)); in hns_roce_query_device()
191 props->page_size_cap = hr_dev->caps.page_size_cap; in hns_roce_query_device()
192 props->vendor_id = hr_dev->vendor_id; in hns_roce_query_device()
193 props->vendor_part_id = hr_dev->vendor_part_id; in hns_roce_query_device()
194 props->hw_ver = hr_dev->hw_rev; in hns_roce_query_device()
195 props->max_qp = hr_dev->caps.num_qps; in hns_roce_query_device()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dmad.c517 struct ib_port_attr *props) in mlx5_query_mad_ifc_port() argument
543 props->lid = be16_to_cpup((__be16 *)(out_mad->data + 16)); in mlx5_query_mad_ifc_port()
544 props->lmc = out_mad->data[34] & 0x7; in mlx5_query_mad_ifc_port()
545 props->sm_lid = be16_to_cpup((__be16 *)(out_mad->data + 18)); in mlx5_query_mad_ifc_port()
546 props->sm_sl = out_mad->data[36] & 0xf; in mlx5_query_mad_ifc_port()
547 props->state = out_mad->data[32] & 0xf; in mlx5_query_mad_ifc_port()
548 props->phys_state = out_mad->data[33] >> 4; in mlx5_query_mad_ifc_port()
549 props->port_cap_flags = be32_to_cpup((__be32 *)(out_mad->data + 20)); in mlx5_query_mad_ifc_port()
550 props->gid_tbl_len = out_mad->data[50]; in mlx5_query_mad_ifc_port()
551 props->max_msg_sz = 1 << MLX5_CAP_GEN(mdev, log_max_msg); in mlx5_query_mad_ifc_port()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_provider.c61 static int mthca_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in mthca_query_device() argument
77 memset(props, 0, sizeof *props); in mthca_query_device()
79 props->fw_ver = mdev->fw_ver; in mthca_query_device()
89 props->device_cap_flags = mdev->device_cap_flags; in mthca_query_device()
90 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mthca_query_device()
92 props->vendor_part_id = be16_to_cpup((__be16 *) (out_mad->data + 30)); in mthca_query_device()
93 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mthca_query_device()
94 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mthca_query_device()
96 props->max_mr_size = ~0ull; in mthca_query_device()
97 props->page_size_cap = mdev->limits.page_size_cap; in mthca_query_device()
[all …]

12345678910>>...14