/linux-master/drivers/leds/ |
H A D | leds-expresswire.c | 16 void expresswire_power_off(struct expresswire_common_props *props) argument 18 gpiod_set_value_cansleep(props->ctrl_gpio, 0); 19 usleep_range(props->timing.poweroff_us, props->timing.poweroff_us * 2); 23 void expresswire_enable(struct expresswire_common_props *props) argument 25 gpiod_set_value(props->ctrl_gpio, 1); 26 udelay(props->timing.detect_delay_us); 27 gpiod_set_value(props->ctrl_gpio, 0); 28 udelay(props->timing.detect_us); 29 gpiod_set_value(props 33 expresswire_start(struct expresswire_common_props *props) argument 40 expresswire_end(struct expresswire_common_props *props) argument 49 expresswire_set_bit(struct expresswire_common_props *props, bool bit) argument 65 expresswire_write_u8(struct expresswire_common_props *props, u8 val) argument [all...] |
/linux-master/include/linux/ |
H A D | leds-expresswire.h | 31 void expresswire_power_off(struct expresswire_common_props *props); 32 void expresswire_enable(struct expresswire_common_props *props); 33 void expresswire_start(struct expresswire_common_props *props); 34 void expresswire_end(struct expresswire_common_props *props); 35 void expresswire_set_bit(struct expresswire_common_props *props, bool bit); 36 void expresswire_write_u8(struct expresswire_common_props *props, u8 val);
|
/linux-master/arch/powerpc/platforms/powermac/ |
H A D | backlight.c | 81 struct backlight_properties *props; local 84 props = &pmac_backlight->props; 86 brightness = props->brightness + 88 (props->max_brightness / 15)); 92 else if (brightness > props->max_brightness) 93 brightness = props->max_brightness; 95 props->brightness = brightness; 120 struct backlight_properties *props; local 122 props 169 struct backlight_properties *props; local [all...] |
/linux-master/drivers/media/usb/dvb-usb-v2/ |
H A D | dvb_usb_common.h | 16 const struct usb_data_stream_properties *props); 19 struct usb_data_stream_properties *props);
|
H A D | usb_urb.c | 17 struct usb_data_stream_properties *props); 92 struct usb_data_stream_properties *props) 96 if (props) { 97 ret = usb_urb_reconfig(stream, props); 141 for (i = 0; i < stream->props.count; i++) { 153 stream->props.endpoint), 155 stream->props.u.bulk.buffersize, 168 for (i = 0; i < stream->props.count; i++) { 173 stream->props.u.isoc.framesperurb, GFP_ATOMIC); 187 stream->props 91 usb_urb_submitv2(struct usb_data_stream *stream, struct usb_data_stream_properties *props) argument 250 usb_urb_reconfig(struct usb_data_stream *stream, struct usb_data_stream_properties *props) argument 306 usb_urb_initv2(struct usb_data_stream *stream, const struct usb_data_stream_properties *props) argument [all...] |
H A D | dvb_usb_urb.c | 16 if (!wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint || 17 !d->props->generic_bulk_ctrl_endpoint_response) { 25 d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, 40 if (d->props->generic_bulk_ctrl_delay) 41 usleep_range(d->props->generic_bulk_ctrl_delay, 42 d->props->generic_bulk_ctrl_delay 46 d->props->generic_bulk_ctrl_endpoint_response),
|
/linux-master/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-init.c | 31 for (n = 0; n < d->props.num_adapters; n++) { 36 memcpy(&adap->props, &d->props.adapter[n], sizeof(struct dvb_usb_adapter_properties)); 38 for (o = 0; o < adap->props.num_frontends; o++) { 39 struct dvb_usb_adapter_fe_properties *props = &adap->props.fe[o]; local 41 if (d->udev->speed == USB_SPEED_FULL && !(props->caps & DVB_USB_ADAP_HAS_PID_FILTER)) { 46 if ((d->udev->speed == USB_SPEED_FULL && props->caps & DVB_USB_ADAP_HAS_PID_FILTER) || 47 (props->caps & DVB_USB_ADAP_NEED_PID_FILTERING)) { 48 info("will use the device's hardware PID filter (table count: %d).", props 210 dvb_usb_find_device(struct usb_device *udev, const struct dvb_usb_device_properties *props, int *cold) argument 267 dvb_usb_device_init(struct usb_interface *intf, const struct dvb_usb_device_properties *props, struct module *owner, struct dvb_usb_device **du, short *adapter_nums) argument [all...] |
H A D | usb-urb.c | 142 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, 143 stream->props.u.bulk.buffersize)) < 0) 147 for (i = 0; i < stream->props.count; i++) { 156 usb_rcvbulkpipe(stream->udev,stream->props.endpoint), 158 stream->props.u.bulk.buffersize, 172 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, 173 stream->props.u.isoc.framesize*stream->props.u.isoc.framesperurb)) < 0) 177 for (i = 0; i < stream->props.count; i++) { 181 stream->urb_list[i] = usb_alloc_urb(stream->props 213 usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props) argument [all...] |
H A D | dvb-usb-remote.c | 49 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; 50 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; 72 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; 73 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; 123 if (d->props.rc.legacy.rc_query(d,&event,&state)) { 187 schedule_delayed_work(&d->rc_query_work,msecs_to_jiffies(d->props.rc.legacy.rc_interval)); 211 deb_rc("key map size: %d\n", d->props.rc.legacy.rc_map_size); 212 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { 214 d->props.rc.legacy.rc_map_table[i].keycode, i); 215 set_bit(d->props [all...] |
H A D | dvb-usb-i2c.c | 15 if (!(d->props.caps & DVB_USB_IS_AN_I2C_ADAPTER)) 18 if (d->props.i2c_algo == NULL) { 25 d->i2c_adap.algo = d->props.i2c_algo;
|
/linux-master/include/sound/ |
H A D | simple_card_utils.h | 84 #define simple_props_to_dlc_cpu(props, i) ((props)->cpus + i) 85 #define simple_props_to_dlc_codec(props, i) ((props)->codecs + i) 86 #define simple_props_to_dlc_platform(props, i) ((props)->platforms + i) 88 #define simple_props_to_dai_cpu(props, i) ((props)->cpu_dai + i) 89 #define simple_props_to_dai_codec(props, i) ((props) 245 struct simple_dai_props *props = simple_priv_to_props(priv, i); local [all...] |
/linux-master/drivers/acpi/x86/ |
H A D | apple.c | 31 union acpi_object *props, *newprops; local 38 props = acpi_evaluate_dsm_typed(adev->handle, &apple_prp_guid, 1, 0, 40 if (!props) 43 if (!props->buffer.length) 46 if (props->buffer.pointer[0] != 3) { 49 props->buffer.length, props->buffer.pointer); 53 ACPI_FREE(props); 54 props = acpi_evaluate_dsm_typed(adev->handle, &apple_prp_guid, 1, 1, 56 if (!props) [all...] |
/linux-master/drivers/video/backlight/ |
H A D | aat2870_bl.c | 34 val /= bd->props.max_brightness; 64 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { 70 bd->props.brightness, bd->props.power, bd->props.state); 102 struct backlight_properties props; local 125 memset(&props, 0, sizeof(struct backlight_properties)); 127 props.type = BACKLIGHT_RAW; 130 &props); 154 bd->props [all...] |
H A D | ktd2801-backlight.c | 28 struct expresswire_common_props props; member in struct:ktd2801_backlight 39 expresswire_power_off(&ktd2801->props); 45 expresswire_enable(&ktd2801->props); 49 expresswire_write_u8(&ktd2801->props, brightness); 70 ktd2801->props.timing = ktd2801_timing; 88 ktd2801->props.ctrl_gpio = devm_gpiod_get(dev, "ctrl", GPIOD_OUT_HIGH); 89 if (IS_ERR(ktd2801->props.ctrl_gpio)) 90 return dev_err_probe(dev, PTR_ERR(ktd2801->props.ctrl_gpio), 92 gpiod_set_consumer_name(ktd2801->props.ctrl_gpio, dev_name(dev)); 100 bd->props [all...] |
H A D | gpio_backlight.c | 52 struct backlight_properties props; local 71 memset(&props, 0, sizeof(props)); 72 props.type = BACKLIGHT_RAW; 73 props.max_brightness = 1; 75 &gpio_backlight_ops, &props); 84 bl->props.power = def_value ? FB_BLANK_UNBLANK 87 bl->props.power = FB_BLANK_POWERDOWN; 89 bl->props.power = FB_BLANK_UNBLANK; 91 bl->props [all...] |
H A D | ep93xx_bl.c | 58 struct backlight_properties props; local 83 memset(&props, 0, sizeof(struct backlight_properties)); 84 props.type = BACKLIGHT_RAW; 85 props.max_brightness = EP93XX_MAX_BRIGHT; 87 ep93xxbl, &ep93xxbl_ops, &props); 91 bl->props.brightness = EP93XX_DEF_BRIGHT;
|
H A D | jornada720_bl.c | 83 if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) 107 struct backlight_properties props; local 111 memset(&props, 0, sizeof(struct backlight_properties)); 112 props.type = BACKLIGHT_RAW; 113 props.max_brightness = BL_MAX_BRIGHT; 117 &props); 124 bd->props.power = FB_BLANK_UNBLANK; 125 bd->props.brightness = BL_DEF_BRIGHT;
|
H A D | hp680_bl.c | 103 struct backlight_properties props; local 106 memset(&props, 0, sizeof(struct backlight_properties)); 107 props.type = BACKLIGHT_RAW; 108 props.max_brightness = HP680_MAX_INTENSITY; 110 NULL, &hp680bl_ops, &props); 116 bd->props.brightness = HP680_DEFAULT_INTENSITY; 126 bd->props.brightness = 0; 127 bd->props.power = 0;
|
H A D | pandora_bl.c | 42 int brightness = bl->props.brightness; 46 if (bl->props.power != FB_BLANK_UNBLANK) 48 if (bl->props.state & BL_CORE_FBBLANK) 50 if (bl->props.state & BL_CORE_SUSPENDED) 111 struct backlight_properties props; local 120 memset(&props, 0, sizeof(props)); 121 props.max_brightness = MAX_USER_VALUE; 122 props.type = BACKLIGHT_RAW; 124 priv, &pandora_backlight_ops, &props); [all...] |
/linux-master/drivers/hid/ |
H A D | hid-picolcd_backlight.c | 31 data->lcd_brightness = bdev->props.brightness & 0x0ff; 32 data->lcd_power = bdev->props.power; 50 struct backlight_properties props; local 59 memset(&props, 0, sizeof(props)); 60 props.type = BACKLIGHT_RAW; 61 props.max_brightness = 0xff; 63 &picolcd_blops, &props); 68 bdev->props.brightness = 0xff; 97 data->backlight->props [all...] |
/linux-master/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_verbs.c | 60 * @props: the device properties 66 struct ib_device_attr *props, 74 props->fw_ver = dev->dsr->caps.fw_ver; 75 props->sys_image_guid = dev->dsr->caps.sys_image_guid; 76 props->max_mr_size = dev->dsr->caps.max_mr_size; 77 props->page_size_cap = dev->dsr->caps.page_size_cap; 78 props->vendor_id = dev->dsr->caps.vendor_id; 79 props->vendor_part_id = dev->pdev->device; 80 props->hw_ver = dev->dsr->caps.hw_ver; 81 props 65 pvrdma_query_device(struct ib_device *ibdev, struct ib_device_attr *props, struct ib_udata *uhw) argument 128 pvrdma_query_port(struct ib_device *ibdev, u32 port, struct ib_port_attr *props) argument 240 pvrdma_modify_device(struct ib_device *ibdev, int mask, struct ib_device_modify *props) argument 277 pvrdma_modify_port(struct ib_device *ibdev, u32 port, int mask, struct ib_port_modify *props) argument [all...] |
/linux-master/drivers/gpu/drm/i915/selftests/ |
H A D | intel_scheduler_helpers.c | 39 saved->timeslice = engine->props.timeslice_duration_ms; 40 saved->preempt_timeout = engine->props.preempt_timeout_ms; 54 engine->props.timeslice_duration_ms = REDUCED_TIMESLICE; 55 engine->props.preempt_timeout_ms = REDUCED_PREEMPT; 59 engine->props.preempt_timeout_ms = 0; 83 engine->props.timeslice_duration_ms = saved->timeslice; 84 engine->props.preempt_timeout_ms = saved->preempt_timeout;
|
/linux-master/drivers/infiniband/hw/usnic/ |
H A D | usnic_ib_verbs.c | 278 struct ib_device_attr *props, 292 memset(props, 0, sizeof(*props)); 295 memcpy(&props->sys_image_guid, &gid.global.interface_id, 297 usnic_ib_fw_string_to_u64(&info.fw_version[0], &props->fw_ver); 298 props->max_mr_size = USNIC_UIOM_MAX_MR_SIZE; 299 props->page_size_cap = USNIC_UIOM_PAGE_SIZE; 300 props->vendor_id = PCI_VENDOR_ID_CISCO; 301 props->vendor_part_id = PCI_DEVICE_ID_CISCO_VIC_USPACE_NIC; 302 props 277 usnic_ib_query_device(struct ib_device *ibdev, struct ib_device_attr *props, struct ib_udata *uhw) argument 335 usnic_ib_query_port(struct ib_device *ibdev, u32 port, struct ib_port_attr *props) argument [all...] |
/linux-master/drivers/video/fbdev/nvidia/ |
H A D | nv_backlight.c | 82 struct backlight_properties props; local 98 memset(&props, 0, sizeof(struct backlight_properties)); 99 props.type = BACKLIGHT_RAW; 100 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; 102 &props); 114 bd->props.brightness = bd->props.max_brightness; 115 bd->props.power = FB_BLANK_UNBLANK;
|
/linux-master/drivers/power/reset/ |
H A D | ocelot-reset.c | 28 const struct reset_props *props; member in struct:ocelot_reset_context 48 u32 if_si_owner_bit = ctx->props->if_si_owner_bit; 51 regmap_update_bits(ctx->cpu_ctrl, ctx->props->protect_reg, 52 ctx->props->vcore_protect, 0); 83 ctx->props = device_get_match_data(dev); 85 ctx->cpu_ctrl = syscon_regmap_lookup_by_compatible(ctx->props->syscon); 87 dev_err(dev, "No syscon map: %s\n", ctx->props->syscon);
|