/linux/drivers/media/usb/dvb-usb-v2/ |
A D | usb_urb.c | 96 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 D | dvb_usb_core.c | 61 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 …]
|
/linux/drivers/media/usb/dvb-usb/ |
A D | dvb-usb-init.c | 36 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() 147 d->props.priv_destroy(d); in dvb_usb_exit() 172 ret = d->props.priv_init(d); in dvb_usb_init() 200 d->props.priv_destroy(d); in dvb_usb_init() 222 desc = &props->devices[i]; in dvb_usb_find_device() 235 desc = &props->devices[i]; in dvb_usb_find_device() 242 props->identify_state(udev, props, &desc, cold); in dvb_usb_find_device() 256 if (d->props.power_ctrl) in dvb_usb_device_power_ctrl() [all …]
|
A D | dvb-usb-remote.c | 261 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 D | usb-urb.c | 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() 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 …]
|
/linux/include/sound/ |
A D | simple_card_utils.h | 80 #define simple_props_to_dlc_cpu(props, i) ((props)->cpus + i) argument 81 #define simple_props_to_dlc_codec(props, i) ((props)->codecs + i) argument 82 #define simple_props_to_dlc_platform(props, i) ((props)->platforms + i) argument 84 #define simple_props_to_dai_cpu(props, i) ((props)->cpu_dai + i) argument 85 #define simple_props_to_dai_codec(props, i) ((props)->codec_dai + i) argument 86 #define simple_props_to_codec_conf(props, i) ((props)->codec_conf + i) argument 90 ((i) < (props)->num.cpus) && \ 106 (props)->codec_conf && \ 251 if (props->adata.convert_rate) in asoc_simple_debug_info() 253 if (props->adata.convert_channels) in asoc_simple_debug_info() [all …]
|
/linux/arch/powerpc/platforms/powermac/ |
A D | backlight.c | 111 props = &pmac_backlight->props; in pmac_backlight_key_worker() 122 props->brightness = brightness; in pmac_backlight_key_worker() 149 props = &pmac_backlight->props; in __pmac_backlight_set_legacy_brightness() 151 (props->max_brightness + 1) / in __pmac_backlight_set_legacy_brightness() 154 if (props->brightness > props->max_brightness) in __pmac_backlight_set_legacy_brightness() 155 props->brightness = props->max_brightness; in __pmac_backlight_set_legacy_brightness() 156 else if (props->brightness < 0) in __pmac_backlight_set_legacy_brightness() 157 props->brightness = 0; in __pmac_backlight_set_legacy_brightness() 198 props = &pmac_backlight->props; in pmac_backlight_get_legacy_brightness() 200 result = props->brightness * in pmac_backlight_get_legacy_brightness() [all …]
|
/linux/drivers/infiniband/hw/vmw_pvrdma/ |
A D | pvrdma_verbs.c | 66 struct ib_device_attr *props, in pvrdma_query_device() argument 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() 167 props->sm_sl = resp->attrs.sm_sl; in pvrdma_query_port() [all …]
|
/linux/drivers/infiniband/hw/usnic/ |
A D | usnic_ib_verbs.c | 293 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 …]
|
/linux/drivers/video/backlight/ |
A D | aat2870_bl.c | 35 val /= bd->props.max_brightness; in aat2870_brightness() 62 int brightness = bd->props.brightness; in aat2870_bl_update_status() 71 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status() 114 struct backlight_properties props; in aat2870_bl_probe() local 139 props.type = BACKLIGHT_RAW; in aat2870_bl_probe() 142 &props); in aat2870_bl_probe() 168 bd->props.max_brightness = 255; in aat2870_bl_probe() 171 bd->props.power = FB_BLANK_UNBLANK; in aat2870_bl_probe() 172 bd->props.brightness = bd->props.max_brightness; in aat2870_bl_probe() 191 bd->props.power = FB_BLANK_POWERDOWN; in aat2870_bl_remove() [all …]
|
A D | tosa_bl.c | 53 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 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() 112 data->bl->props.brightness = 69; in tosa_bl_probe() [all …]
|
A D | backlight.c | 128 bd->props.fb_blank = fb_blank; in fb_notifier_callback() 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() 241 bd->props.brightness = brightness; in backlight_device_set_brightness() 428 if (props) { in backlight_device_register() 429 memcpy(&new_bd->props, props, in backlight_device_register() 431 if (props->type <= 0 || props->type >= BACKLIGHT_TYPE_MAX) { in backlight_device_register() 487 if (bd->props.type == type) { in backlight_device_get_by_type() [all …]
|
A 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 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() 152 dev->props.fb_blank = FB_BLANK_UNBLANK; in omapbl_probe() [all …]
|
A 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()
|
/linux/drivers/acpi/x86/ |
A D | apple.c | 30 union acpi_object *props, *newprops; in acpi_extract_apple_properties() local 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() 55 if (!props) in acpi_extract_apple_properties() 58 numprops = props->package.count / 2; in acpi_extract_apple_properties() 68 union acpi_object *key = &props->package.elements[i * 2]; in acpi_extract_apple_properties() 103 union acpi_object *key = &props->package.elements[i * 2]; in acpi_extract_apple_properties() [all …]
|
/linux/drivers/infiniband/hw/mthca/ |
A D | mthca_provider.c | 77 memset(props, 0, sizeof *props); in mthca_query_device() 79 props->fw_ver = mdev->fw_ver; in mthca_query_device() 96 props->max_mr_size = ~0ull; in mthca_query_device() 109 props->max_res_rd_atom = props->max_qp_rd_atom * props->max_qp; in mthca_query_device() 119 props->max_total_mcast_qp_attach = props->max_mcast_qp_attach * in mthca_query_device() 120 props->max_mcast_grp; in mthca_query_device() 130 u32 port, struct ib_port_attr *props) in mthca_query_port() argument 160 props->max_msg_sz = 0x80000000; in mthca_query_port() 180 struct ib_device_modify *props) in mthca_modify_device() argument 198 struct ib_port_modify *props) in mthca_modify_port() argument [all …]
|
/linux/include/linux/ |
A D | backlight.h | 284 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() 426 return bd->props.brightness; in backlight_get_brightness() [all …]
|
/linux/drivers/misc/habanalabs/common/ |
A D | state_dump.c | 272 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 …]
|
/linux/drivers/leds/ |
A D | led-core.c | 387 props->color_present = true; in led_parse_fwnode_props() 405 &props->func_enum); in led_parse_fwnode_props() 411 props->func_enum_present = true; in led_parse_fwnode_props() 431 if (props.label) { in led_compose_name() 443 devicename, props.label); in led_compose_name() 445 } else if (props.function || props.color_present) { in led_compose_name() 448 if (props.func_enum_present) { in led_compose_name() 450 props.color_present ? led_colors[props.color] : "", in led_compose_name() 451 props.function ?: "", props.func_enum); in led_compose_name() 454 props.color_present ? led_colors[props.color] : "", in led_compose_name() [all …]
|
/linux/net/ipv4/ |
A D | ipcomp.c | 67 t->id.spi = x->props.saddr.a4; in ipcomp_tunnel_create() 70 t->props.family = AF_INET; in ipcomp_tunnel_create() 71 t->props.mode = x->props.mode; in ipcomp_tunnel_create() 72 t->props.saddr.a4 = x->props.saddr.a4; in ipcomp_tunnel_create() 73 t->props.flags = x->props.flags; in ipcomp_tunnel_create() 74 t->props.extra_flags = x->props.extra_flags; in ipcomp_tunnel_create() 104 x->props.saddr.a4, IPPROTO_IPIP, AF_INET); in ipcomp_tunnel_attach() 124 x->props.header_len = 0; in ipcomp4_init_state() 125 switch (x->props.mode) { in ipcomp4_init_state() 129 x->props.header_len += sizeof(struct iphdr); in ipcomp4_init_state() [all …]
|
/linux/drivers/infiniband/hw/cxgb4/ |
A D | provider.c | 274 props->max_mr_size = T4_MAX_MR_SIZE; in c4iw_query_device() 282 props->max_sge_rd = 1; in c4iw_query_device() 286 props->max_qp_init_rd_atom = props->max_qp_rd_atom; in c4iw_query_device() 290 props->max_pd = T4_MAX_NUM_PD; in c4iw_query_device() 291 props->local_ca_ack_delay = 0; in c4iw_query_device() 292 props->max_fast_reg_page_list_len = in c4iw_query_device() 299 struct ib_port_attr *props) in c4iw_query_port() argument 304 &props->active_width); in c4iw_query_port() 306 props->port_cap_flags = in c4iw_query_port() 312 props->gid_tbl_len = 1; in c4iw_query_port() [all …]
|
/linux/drivers/infiniband/hw/mlx5/ |
A D | mad.c | 517 struct ib_port_attr *props) in mlx5_query_mad_ifc_port() argument 544 props->lmc = out_mad->data[34] & 0x7; 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() 550 props->gid_tbl_len = out_mad->data[50]; in mlx5_query_mad_ifc_port() 564 props->port_cap_flags2 = in mlx5_query_mad_ifc_port() 577 props->active_speed = 16; /* FDR */ in mlx5_query_mad_ifc_port() 580 props->active_speed = 32; /* EDR */ in mlx5_query_mad_ifc_port() 585 props->active_speed = IB_SPEED_HDR; in mlx5_query_mad_ifc_port() 591 if (props->active_speed == 4) { in mlx5_query_mad_ifc_port() [all …]
|
/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_main.c | 168 struct ib_device_attr *props, in hns_roce_query_device() argument 173 memset(props, 0, sizeof(*props)); in hns_roce_query_device() 175 props->fw_ver = hr_dev->caps.fw_ver; in hns_roce_query_device() 181 props->hw_ver = hr_dev->hw_rev; in hns_roce_query_device() 188 props->max_sge_rd = 1; in hns_roce_query_device() 197 props->max_pkeys = 1; in hns_roce_query_device() 237 props->pkey_tbl_len = 1; in hns_roce_query_port() 238 props->active_width = IB_WIDTH_4X; in hns_roce_query_port() 239 props->active_speed = 1; in hns_roce_query_port() 251 props->active_mtu = mtu ? min(props->max_mtu, mtu) : IB_MTU_256; in hns_roce_query_port() [all …]
|
/linux/drivers/video/fbdev/nvidia/ |
A 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()
|
/linux/drivers/hid/ |
A 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()
|