/drivers/media/usb/dvb-usb-v2/ |
D | usb_urb.c | 17 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 …]
|
D | dvb_usb_core.c | 29 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() 229 return usb_urb_initv2(&adap->stream, &adap->props->stream); in dvb_usbv2_adapter_stream_init() 266 if (d->props->get_stream_config) { in dvb_usb_start_feed() 267 memcpy(&stream_props, &adap->props->stream, in dvb_usb_start_feed() [all …]
|
/drivers/media/usb/dvb-usb/ |
D | dvb-usb-init.c | 31 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 …]
|
D | dvb-usb-remote.c | 49 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 …]
|
D | usb-urb.c | 142 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 …]
|
/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_verbs.c | 66 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 …]
|
/drivers/infiniband/hw/usnic/ |
D | usnic_ib_verbs.c | 276 struct ib_device_attr *props, in usnic_ib_query_device() argument 290 memset(props, 0, sizeof(*props)); in usnic_ib_query_device() 293 memcpy(&props->sys_image_guid, &gid.global.interface_id, in usnic_ib_query_device() 295 usnic_ib_fw_string_to_u64(&info.fw_version[0], &props->fw_ver); in usnic_ib_query_device() 296 props->max_mr_size = USNIC_UIOM_MAX_MR_SIZE; in usnic_ib_query_device() 297 props->page_size_cap = USNIC_UIOM_PAGE_SIZE; in usnic_ib_query_device() 298 props->vendor_id = PCI_VENDOR_ID_CISCO; in usnic_ib_query_device() 299 props->vendor_part_id = PCI_DEVICE_ID_CISCO_VIC_USPACE_NIC; in usnic_ib_query_device() 300 props->hw_ver = us_ibdev->pdev->subsystem_device; in usnic_ib_query_device() 303 props->max_qp = qp_per_vf * in usnic_ib_query_device() [all …]
|
/drivers/video/backlight/ |
D | aat2870_bl.c | 35 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 …]
|
D | generic_bl.c | 22 int intensity = bd->props.brightness; in genericbl_send_intensity() 24 if (bd->props.power != FB_BLANK_UNBLANK) in genericbl_send_intensity() 26 if (bd->props.state & BL_CORE_FBBLANK) in genericbl_send_intensity() 28 if (bd->props.state & BL_CORE_SUSPENDED) in genericbl_send_intensity() 54 struct backlight_properties props; in genericbl_probe() local 66 memset(&props, 0, sizeof(struct backlight_properties)); in genericbl_probe() 67 props.type = BACKLIGHT_RAW; in genericbl_probe() 68 props.max_brightness = machinfo->max_intensity; in genericbl_probe() 70 NULL, &genericbl_ops, &props); in genericbl_probe() 76 bd->props.power = FB_BLANK_UNBLANK; in genericbl_probe() [all …]
|
D | tosa_bl.c | 52 struct backlight_properties *props = &dev->props; in tosa_bl_update_status() local 54 int power = max(props->power, props->fb_blank); in tosa_bl_update_status() 55 int brightness = props->brightness; in tosa_bl_update_status() 67 struct backlight_properties *props = &dev->props; in tosa_bl_get_brightness() local 69 return props->brightness; in tosa_bl_get_brightness() 80 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 …]
|
D | backlight.c | 69 bd->props.state &= ~BL_CORE_FBBLANK; in fb_notifier_callback() 70 bd->props.fb_blank = FB_BLANK_UNBLANK; in fb_notifier_callback() 77 bd->props.state |= BL_CORE_FBBLANK; in fb_notifier_callback() 78 bd->props.fb_blank = fb_blank; in fb_notifier_callback() 136 return sprintf(buf, "%d\n", bd->props.power); in bl_power_show() 154 if (bd->props.power != power) { in bl_power_store() 155 old_power = bd->props.power; in bl_power_store() 156 bd->props.power = power; in bl_power_store() 159 bd->props.power = old_power; in bl_power_store() 177 return sprintf(buf, "%d\n", bd->props.brightness); in brightness_show() [all …]
|
D | lv5207lp.c | 49 int brightness = backlight->props.brightness; in lv5207lp_backlight_update_status() 51 if (backlight->props.power != FB_BLANK_UNBLANK || in lv5207lp_backlight_update_status() 52 backlight->props.fb_blank != FB_BLANK_UNBLANK || in lv5207lp_backlight_update_status() 53 backlight->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in lv5207lp_backlight_update_status() 89 struct backlight_properties props; in lv5207lp_probe() local 111 memset(&props, 0, sizeof(props)); in lv5207lp_probe() 112 props.type = BACKLIGHT_RAW; in lv5207lp_probe() 113 props.max_brightness = min_t(unsigned int, pdata->max_value, in lv5207lp_probe() 115 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, in lv5207lp_probe() 116 props.max_brightness); in lv5207lp_probe() [all …]
|
D | omap1_bl.c | 95 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 …]
|
D | bd6107.c | 84 int brightness = backlight->props.brightness; in bd6107_backlight_update_status() 86 if (backlight->props.power != FB_BLANK_UNBLANK || in bd6107_backlight_update_status() 87 backlight->props.fb_blank != FB_BLANK_UNBLANK || in bd6107_backlight_update_status() 88 backlight->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in bd6107_backlight_update_status() 124 struct backlight_properties props; in bd6107_probe() local 154 memset(&props, 0, sizeof(props)); in bd6107_probe() 155 props.type = BACKLIGHT_RAW; in bd6107_probe() 156 props.max_brightness = 128; in bd6107_probe() 157 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, in bd6107_probe() 158 props.max_brightness); in bd6107_probe() [all …]
|
D | jornada720_bl.c | 57 if ((bd->props.power != FB_BLANK_UNBLANK) || (bd->props.fb_blank != FB_BLANK_UNBLANK)) { in jornada_bl_update_status() 83 if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) in jornada_bl_update_status() 107 struct backlight_properties props; in jornada_bl_probe() local 111 memset(&props, 0, sizeof(struct backlight_properties)); in jornada_bl_probe() 112 props.type = BACKLIGHT_RAW; in jornada_bl_probe() 113 props.max_brightness = BL_MAX_BRIGHT; in jornada_bl_probe() 117 &props); in jornada_bl_probe() 124 bd->props.power = FB_BLANK_UNBLANK; in jornada_bl_probe() 125 bd->props.brightness = BL_DEF_BRIGHT; in jornada_bl_probe()
|
D | pandora_bl.c | 42 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()
|
/drivers/acpi/x86/ |
D | apple.c | 30 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 …]
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_crat.c | 201 struct kfd_mem_properties *props; in find_subtype_mem() local 203 list_for_each_entry(props, &dev->mem_props, list) { in find_subtype_mem() 204 if (props->heap_type == heap_type in find_subtype_mem() 205 && props->flags == flags in find_subtype_mem() 206 && props->width == width) in find_subtype_mem() 207 return props; in find_subtype_mem() 218 struct kfd_mem_properties *props; in kfd_parse_subtype_mem() local 256 props = find_subtype_mem(heap_type, flags, width, dev); in kfd_parse_subtype_mem() 257 if (props) { in kfd_parse_subtype_mem() 258 props->size_in_bytes += size_in_bytes; in kfd_parse_subtype_mem() [all …]
|
/drivers/leds/ |
D | led-core.c | 370 struct led_properties *props) in led_parse_fwnode_props() argument 378 ret = fwnode_property_read_string(fwnode, "label", &props->label); in led_parse_fwnode_props() 385 ret = fwnode_property_read_u32(fwnode, "color", &props->color); in led_parse_fwnode_props() 388 else if (props->color >= LED_COLOR_ID_MAX) in led_parse_fwnode_props() 391 props->color_present = true; in led_parse_fwnode_props() 398 ret = fwnode_property_read_string(fwnode, "function", &props->function); in led_parse_fwnode_props() 409 &props->func_enum); in led_parse_fwnode_props() 415 props->func_enum_present = true; in led_parse_fwnode_props() 422 struct led_properties props = {}; in led_compose_name() local 429 led_parse_fwnode_props(dev, fwnode, &props); in led_compose_name() [all …]
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_main.c | 181 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 …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 61 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 …]
|
/drivers/infiniband/hw/mlx5/ |
D | mad.c | 535 struct ib_port_attr *props) in mlx5_query_mad_ifc_port() argument 561 props->lid = be16_to_cpup((__be16 *)(out_mad->data + 16)); in mlx5_query_mad_ifc_port() 562 props->lmc = out_mad->data[34] & 0x7; in mlx5_query_mad_ifc_port() 563 props->sm_lid = be16_to_cpup((__be16 *)(out_mad->data + 18)); in mlx5_query_mad_ifc_port() 564 props->sm_sl = out_mad->data[36] & 0xf; in mlx5_query_mad_ifc_port() 565 props->state = out_mad->data[32] & 0xf; in mlx5_query_mad_ifc_port() 566 props->phys_state = out_mad->data[33] >> 4; in mlx5_query_mad_ifc_port() 567 props->port_cap_flags = be32_to_cpup((__be32 *)(out_mad->data + 20)); in mlx5_query_mad_ifc_port() 568 props->gid_tbl_len = out_mad->data[50]; in mlx5_query_mad_ifc_port() 569 props->max_msg_sz = 1 << MLX5_CAP_GEN(mdev, log_max_msg); in mlx5_query_mad_ifc_port() [all …]
|
/drivers/infiniband/hw/cxgb4/ |
D | provider.c | 262 static int c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in c4iw_query_device() argument 274 memcpy(&props->sys_image_guid, dev->rdev.lldi.ports[0]->dev_addr, 6); in c4iw_query_device() 275 props->hw_ver = CHELSIO_CHIP_RELEASE(dev->rdev.lldi.adapter_type); in c4iw_query_device() 276 props->fw_ver = dev->rdev.lldi.fw_vers; in c4iw_query_device() 277 props->device_cap_flags = dev->device_cap_flags; in c4iw_query_device() 278 props->page_size_cap = T4_PAGESIZE_MASK; in c4iw_query_device() 279 props->vendor_id = (u32)dev->rdev.lldi.pdev->vendor; in c4iw_query_device() 280 props->vendor_part_id = (u32)dev->rdev.lldi.pdev->device; in c4iw_query_device() 281 props->max_mr_size = T4_MAX_MR_SIZE; in c4iw_query_device() 282 props->max_qp = dev->rdev.lldi.vr->qp.size / 2; in c4iw_query_device() [all …]
|
/drivers/video/fbdev/nvidia/ |
D | nv_backlight.c | 57 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()
|
/drivers/hid/ |
D | hid-picolcd_backlight.c | 32 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()
|