| /kernel/linux/linux-5.10/drivers/video/backlight/ |
| D | backlight.c | 99 struct backlight_device *bd; in fb_notifier_callback() local 108 bd = container_of(self, struct backlight_device, fb_notif); in fb_notifier_callback() 109 mutex_lock(&bd->ops_lock); in fb_notifier_callback() 111 if (!bd->ops) in fb_notifier_callback() 113 if (bd->ops->check_fb && !bd->ops->check_fb(bd, evdata->info)) in fb_notifier_callback() 117 if (fb_blank == FB_BLANK_UNBLANK && !bd->fb_bl_on[node]) { in fb_notifier_callback() 118 bd->fb_bl_on[node] = true; in fb_notifier_callback() 119 if (!bd->use_count++) { in fb_notifier_callback() 120 bd->props.state &= ~BL_CORE_FBBLANK; in fb_notifier_callback() 121 bd->props.fb_blank = FB_BLANK_UNBLANK; in fb_notifier_callback() [all …]
|
| D | aat2870_bl.c | 21 struct backlight_device *bd; member 31 struct backlight_device *bd = aat2870_bl->bd; in aat2870_brightness() local 35 val /= bd->props.max_brightness; in aat2870_brightness() 57 static int aat2870_bl_update_status(struct backlight_device *bd) in aat2870_bl_update_status() argument 59 struct aat2870_bl_driver_data *aat2870_bl = bl_get_data(bd); in aat2870_bl_update_status() 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() 66 dev_err(&bd->dev, "invalid brightness, %d\n", brightness); in aat2870_bl_update_status() 70 dev_dbg(&bd->dev, "brightness=%d, power=%d, state=%d\n", in aat2870_bl_update_status() 71 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status() [all …]
|
| /kernel/linux/linux-6.6/drivers/video/backlight/ |
| D | backlight.c | 99 struct backlight_device *bd; in fb_notifier_callback() local 108 bd = container_of(self, struct backlight_device, fb_notif); in fb_notifier_callback() 109 mutex_lock(&bd->ops_lock); in fb_notifier_callback() 111 if (!bd->ops) in fb_notifier_callback() 113 if (bd->ops->check_fb && !bd->ops->check_fb(bd, evdata->info)) in fb_notifier_callback() 117 if (fb_blank == FB_BLANK_UNBLANK && !bd->fb_bl_on[node]) { in fb_notifier_callback() 118 bd->fb_bl_on[node] = true; in fb_notifier_callback() 119 if (!bd->use_count++) { in fb_notifier_callback() 120 bd->props.state &= ~BL_CORE_FBBLANK; in fb_notifier_callback() 121 bd->props.fb_blank = FB_BLANK_UNBLANK; in fb_notifier_callback() [all …]
|
| D | aat2870_bl.c | 21 struct backlight_device *bd; member 31 struct backlight_device *bd = aat2870_bl->bd; in aat2870_brightness() local 35 val /= bd->props.max_brightness; in aat2870_brightness() 57 static int aat2870_bl_update_status(struct backlight_device *bd) in aat2870_bl_update_status() argument 59 struct aat2870_bl_driver_data *aat2870_bl = bl_get_data(bd); in aat2870_bl_update_status() 62 int brightness = backlight_get_brightness(bd); in aat2870_bl_update_status() 65 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status() 66 dev_err(&bd->dev, "invalid brightness, %d\n", brightness); in aat2870_bl_update_status() 70 dev_dbg(&bd->dev, "brightness=%d, power=%d, state=%d\n", in aat2870_bl_update_status() 71 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status() [all …]
|
| /kernel/linux/linux-6.6/block/ |
| D | bsg.c | 45 static unsigned int bsg_timeout(struct bsg_device *bd, struct sg_io_v4 *hdr) in bsg_timeout() argument 51 else if (bd->timeout) in bsg_timeout() 52 timeout = bd->timeout; in bsg_timeout() 57 static int bsg_sg_io(struct bsg_device *bd, bool open_for_write, in bsg_sg_io() argument 67 ret = bd->sg_io_fn(bd->queue, &hdr, open_for_write, in bsg_sg_io() 68 bsg_timeout(bd, &hdr)); in bsg_sg_io() 87 static int bsg_get_command_q(struct bsg_device *bd, int __user *uarg) in bsg_get_command_q() argument 89 return put_user(READ_ONCE(bd->max_queue), uarg); in bsg_get_command_q() 92 static int bsg_set_command_q(struct bsg_device *bd, int __user *uarg) in bsg_set_command_q() argument 100 WRITE_ONCE(bd->max_queue, max_queue); in bsg_set_command_q() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | bd28623.c | 47 static int bd28623_power_on(struct bd28623_priv *bd) in bd28623_power_on() argument 51 ret = regulator_bulk_enable(ARRAY_SIZE(bd->supplies), bd->supplies); in bd28623_power_on() 53 dev_err(bd->dev, "Failed to enable supplies: %d\n", ret); in bd28623_power_on() 57 gpiod_set_value_cansleep(bd->reset_gpio, 0); in bd28623_power_on() 63 static void bd28623_power_off(struct bd28623_priv *bd) in bd28623_power_off() argument 65 gpiod_set_value_cansleep(bd->reset_gpio, 1); in bd28623_power_off() 67 regulator_bulk_disable(ARRAY_SIZE(bd->supplies), bd->supplies); in bd28623_power_off() 75 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); in bd28623_get_switch_spk() local 77 ucontrol->value.integer.value[0] = bd->switch_spk; in bd28623_get_switch_spk() 87 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); in bd28623_set_switch_spk() local [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | bd28623.c | 47 static int bd28623_power_on(struct bd28623_priv *bd) in bd28623_power_on() argument 51 ret = regulator_bulk_enable(ARRAY_SIZE(bd->supplies), bd->supplies); in bd28623_power_on() 53 dev_err(bd->dev, "Failed to enable supplies: %d\n", ret); in bd28623_power_on() 57 gpiod_set_value_cansleep(bd->reset_gpio, 0); in bd28623_power_on() 63 static void bd28623_power_off(struct bd28623_priv *bd) in bd28623_power_off() argument 65 gpiod_set_value_cansleep(bd->reset_gpio, 1); in bd28623_power_off() 67 regulator_bulk_disable(ARRAY_SIZE(bd->supplies), bd->supplies); in bd28623_power_off() 75 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); in bd28623_get_switch_spk() local 77 ucontrol->value.integer.value[0] = bd->switch_spk; in bd28623_get_switch_spk() 87 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); in bd28623_set_switch_spk() local [all …]
|
| /kernel/linux/linux-6.6/lib/ |
| D | decompress_bunzip2.c | 116 static unsigned int INIT get_bits(struct bunzip_data *bd, char bits_wanted) in get_bits() argument 123 while (bd->inbufBitCount < bits_wanted) { in get_bits() 126 if (bd->inbufPos == bd->inbufCount) { in get_bits() 127 if (bd->io_error) in get_bits() 129 bd->inbufCount = bd->fill(bd->inbuf, BZIP2_IOBUF_SIZE); in get_bits() 130 if (bd->inbufCount <= 0) { in get_bits() 131 bd->io_error = RETVAL_UNEXPECTED_INPUT_EOF; in get_bits() 134 bd->inbufPos = 0; in get_bits() 137 if (bd->inbufBitCount >= 24) { in get_bits() 138 bits = bd->inbufBits&((1 << bd->inbufBitCount)-1); in get_bits() [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | decompress_bunzip2.c | 116 static unsigned int INIT get_bits(struct bunzip_data *bd, char bits_wanted) in get_bits() argument 123 while (bd->inbufBitCount < bits_wanted) { in get_bits() 126 if (bd->inbufPos == bd->inbufCount) { in get_bits() 127 if (bd->io_error) in get_bits() 129 bd->inbufCount = bd->fill(bd->inbuf, BZIP2_IOBUF_SIZE); in get_bits() 130 if (bd->inbufCount <= 0) { in get_bits() 131 bd->io_error = RETVAL_UNEXPECTED_INPUT_EOF; in get_bits() 134 bd->inbufPos = 0; in get_bits() 137 if (bd->inbufBitCount >= 24) { in get_bits() 138 bits = bd->inbufBits&((1 << bd->inbufBitCount)-1); in get_bits() [all …]
|
| /kernel/linux/linux-5.10/drivers/power/supply/ |
| D | bd99954-charger.c | 182 static int bd9995x_get_prop_batt_health(struct bd9995x_device *bd) in bd9995x_get_prop_batt_health() argument 186 ret = regmap_field_read(bd->rmap_fields[F_BATTEMP], &tmp); in bd9995x_get_prop_batt_health() 209 static int bd9995x_get_prop_charge_type(struct bd9995x_device *bd) in bd9995x_get_prop_charge_type() argument 213 ret = regmap_field_read(bd->rmap_fields[F_CHGSTM_STATE], &tmp); in bd9995x_get_prop_charge_type() 232 static bool bd9995x_get_prop_batt_present(struct bd9995x_device *bd) in bd9995x_get_prop_batt_present() argument 236 ret = regmap_field_read(bd->rmap_fields[F_BATTEMP], &tmp); in bd9995x_get_prop_batt_present() 243 static int bd9995x_get_prop_batt_voltage(struct bd9995x_device *bd) in bd9995x_get_prop_batt_voltage() argument 247 ret = regmap_field_read(bd->rmap_fields[F_VBAT_VAL], &tmp); in bd9995x_get_prop_batt_voltage() 256 static int bd9995x_get_prop_batt_current(struct bd9995x_device *bd) in bd9995x_get_prop_batt_current() argument 260 ret = regmap_field_read(bd->rmap_fields[F_IBATP_VAL], &tmp); in bd9995x_get_prop_batt_current() [all …]
|
| /kernel/linux/linux-6.6/drivers/power/supply/ |
| D | bd99954-charger.c | 182 static int bd9995x_get_prop_batt_health(struct bd9995x_device *bd) in bd9995x_get_prop_batt_health() argument 186 ret = regmap_field_read(bd->rmap_fields[F_BATTEMP], &tmp); in bd9995x_get_prop_batt_health() 209 static int bd9995x_get_prop_charge_type(struct bd9995x_device *bd) in bd9995x_get_prop_charge_type() argument 213 ret = regmap_field_read(bd->rmap_fields[F_CHGSTM_STATE], &tmp); in bd9995x_get_prop_charge_type() 232 static bool bd9995x_get_prop_batt_present(struct bd9995x_device *bd) in bd9995x_get_prop_batt_present() argument 236 ret = regmap_field_read(bd->rmap_fields[F_BATTEMP], &tmp); in bd9995x_get_prop_batt_present() 243 static int bd9995x_get_prop_batt_voltage(struct bd9995x_device *bd) in bd9995x_get_prop_batt_voltage() argument 247 ret = regmap_field_read(bd->rmap_fields[F_VBAT_VAL], &tmp); in bd9995x_get_prop_batt_voltage() 256 static int bd9995x_get_prop_batt_current(struct bd9995x_device *bd) in bd9995x_get_prop_batt_current() argument 260 ret = regmap_field_read(bd->rmap_fields[F_IBATP_VAL], &tmp); in bd9995x_get_prop_batt_current() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ath/wcn36xx/ |
| D | txrx.c | 22 static inline int get_rssi0(struct wcn36xx_rx_bd *bd) in get_rssi0() argument 24 return 100 - ((bd->phy_stat0 >> 24) & 0xff); in get_rssi0() 27 static inline int get_snr(struct wcn36xx_rx_bd *bd) in get_snr() argument 29 return ((bd->phy_stat1 >> 24) & 0xff); in get_snr() 311 struct wcn36xx_rx_bd *bd; in wcn36xx_rx_skb() local 320 bd = (struct wcn36xx_rx_bd *)skb->data; in wcn36xx_rx_skb() 321 buff_to_be((u32 *)bd, sizeof(*bd)/sizeof(u32)); in wcn36xx_rx_skb() 323 "BD <<< ", (char *)bd, in wcn36xx_rx_skb() 326 if (bd->pdu.mpdu_data_off <= bd->pdu.mpdu_header_off || in wcn36xx_rx_skb() 327 bd->pdu.mpdu_len < bd->pdu.mpdu_header_len) in wcn36xx_rx_skb() [all …]
|
| /kernel/linux/linux-5.10/fs/gfs2/ |
| D | trans.c | 131 struct gfs2_bufdata *bd; in gfs2_alloc_bufdata() local 133 bd = kmem_cache_zalloc(gfs2_bufdata_cachep, GFP_NOFS | __GFP_NOFAIL); in gfs2_alloc_bufdata() 134 bd->bd_bh = bh; in gfs2_alloc_bufdata() 135 bd->bd_gl = gl; in gfs2_alloc_bufdata() 136 INIT_LIST_HEAD(&bd->bd_list); in gfs2_alloc_bufdata() 137 INIT_LIST_HEAD(&bd->bd_ail_st_list); in gfs2_alloc_bufdata() 138 INIT_LIST_HEAD(&bd->bd_ail_gl_list); in gfs2_alloc_bufdata() 139 bh->b_private = bd; in gfs2_alloc_bufdata() 140 return bd; in gfs2_alloc_bufdata() 161 struct gfs2_bufdata *bd; in gfs2_trans_add_data() local [all …]
|
| /kernel/linux/linux-5.10/block/ |
| D | bsg.c | 26 #define bsg_dbg(bd, fmt, ...) \ argument 27 pr_debug("%s: " fmt, (bd)->name, ##__VA_ARGS__) 200 struct bsg_device *bd; in bsg_alloc_device() local 202 bd = kzalloc(sizeof(struct bsg_device), GFP_KERNEL); in bsg_alloc_device() 203 if (unlikely(!bd)) in bsg_alloc_device() 206 spin_lock_init(&bd->lock); in bsg_alloc_device() 207 bd->max_queue = BSG_DEFAULT_CMDS; in bsg_alloc_device() 208 INIT_HLIST_NODE(&bd->dev_list); in bsg_alloc_device() 209 return bd; in bsg_alloc_device() 212 static int bsg_put_device(struct bsg_device *bd) in bsg_put_device() argument [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/boot/ |
| D | redboot-83xx.c | 17 static bd_t bd; variable 26 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in platform_fixups() 27 dt_fixup_mac_addresses(bd.bi_enetaddr); in platform_fixups() 28 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 16, bd.bi_busfreq); in platform_fixups() 33 bd.bi_busfreq, MHZ(bd.bi_busfreq)); in platform_fixups() 34 setprop(node, "clock-frequency", &bd.bi_busfreq, 4); in platform_fixups() 42 memcpy(&bd, (char *)r3, sizeof(bd)); in platform_init() 44 if (bd.bi_tag != 0x42444944) in platform_init() 48 bd.bi_memstart + bd.bi_memsize - (unsigned long)_end, in platform_init() 55 loader_info.cmdline = (char *)bd.bi_cmdline; in platform_init() [all …]
|
| D | redboot-8xx.c | 16 static bd_t bd; variable 25 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in platform_fixups() 26 dt_fixup_mac_addresses(bd.bi_enetaddr); in platform_fixups() 27 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 16, bd.bi_busfreq); in platform_fixups() 32 bd.bi_busfreq, MHZ(bd.bi_busfreq)); in platform_fixups() 33 setprop(node, "clock-frequency", &bd.bi_busfreq, 4); in platform_fixups() 40 memcpy(&bd, (char *)r3, sizeof(bd)); in platform_init() 42 if (bd.bi_tag != 0x42444944) in platform_init() 46 bd.bi_memstart + bd.bi_memsize - (unsigned long)_end, in platform_init() 53 loader_info.cmdline = (char *)bd.bi_cmdline; in platform_init() [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/boot/ |
| D | redboot-8xx.c | 16 static bd_t bd; variable 25 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in platform_fixups() 26 dt_fixup_mac_addresses(bd.bi_enetaddr); in platform_fixups() 27 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 16, bd.bi_busfreq); in platform_fixups() 32 bd.bi_busfreq, MHZ(bd.bi_busfreq)); in platform_fixups() 33 setprop(node, "clock-frequency", &bd.bi_busfreq, 4); in platform_fixups() 40 memcpy(&bd, (char *)r3, sizeof(bd)); in platform_init() 42 if (bd.bi_tag != 0x42444944) in platform_init() 46 bd.bi_memstart + bd.bi_memsize - (unsigned long)_end, in platform_init() 53 loader_info.cmdline = (char *)bd.bi_cmdline; in platform_init() [all …]
|
| D | redboot-83xx.c | 17 static bd_t bd; variable 26 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in platform_fixups() 27 dt_fixup_mac_addresses(bd.bi_enetaddr); in platform_fixups() 28 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 16, bd.bi_busfreq); in platform_fixups() 33 bd.bi_busfreq, MHZ(bd.bi_busfreq)); in platform_fixups() 34 setprop(node, "clock-frequency", &bd.bi_busfreq, 4); in platform_fixups() 42 memcpy(&bd, (char *)r3, sizeof(bd)); in platform_init() 44 if (bd.bi_tag != 0x42444944) in platform_init() 48 bd.bi_memstart + bd.bi_memsize - (unsigned long)_end, in platform_init() 55 loader_info.cmdline = (char *)bd.bi_cmdline; in platform_init() [all …]
|
| D | cuboot-85xx-cpm2.c | 18 static bd_t bd; variable 24 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in platform_fixups() 25 dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); in platform_fixups() 26 dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); in platform_fixups() 27 dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr); in platform_fixups() 28 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq); in platform_fixups() 38 setprop(devp, "bus-frequency", &bd.bi_busfreq, in platform_fixups() 39 sizeof(bd.bi_busfreq)); in platform_fixups() 45 setprop(serial, "clock-frequency", &bd.bi_busfreq, in platform_fixups() 46 sizeof(bd.bi_busfreq)); in platform_fixups() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/wcn36xx/ |
| D | txrx.c | 21 static inline int get_rssi0(struct wcn36xx_rx_bd *bd) in get_rssi0() argument 23 return 100 - ((bd->phy_stat0 >> 24) & 0xff); in get_rssi0() 239 struct wcn36xx_rx_bd *bd; in wcn36xx_rx_skb() local 248 bd = (struct wcn36xx_rx_bd *)skb->data; in wcn36xx_rx_skb() 249 buff_to_be((u32 *)bd, sizeof(*bd)/sizeof(u32)); in wcn36xx_rx_skb() 251 "BD <<< ", (char *)bd, in wcn36xx_rx_skb() 254 skb_put(skb, bd->pdu.mpdu_header_off + bd->pdu.mpdu_len); in wcn36xx_rx_skb() 255 skb_pull(skb, bd->pdu.mpdu_header_off); in wcn36xx_rx_skb() 262 status.signal = -get_rssi0(bd); in wcn36xx_rx_skb() 272 if (bd->scan_learn) { in wcn36xx_rx_skb() [all …]
|
| /kernel/linux/linux-6.6/fs/gfs2/ |
| D | trans.c | 166 struct gfs2_bufdata *bd; in gfs2_alloc_bufdata() local 168 bd = kmem_cache_zalloc(gfs2_bufdata_cachep, GFP_NOFS | __GFP_NOFAIL); in gfs2_alloc_bufdata() 169 bd->bd_bh = bh; in gfs2_alloc_bufdata() 170 bd->bd_gl = gl; in gfs2_alloc_bufdata() 171 INIT_LIST_HEAD(&bd->bd_list); in gfs2_alloc_bufdata() 172 INIT_LIST_HEAD(&bd->bd_ail_st_list); in gfs2_alloc_bufdata() 173 INIT_LIST_HEAD(&bd->bd_ail_gl_list); in gfs2_alloc_bufdata() 174 bh->b_private = bd; in gfs2_alloc_bufdata() 175 return bd; in gfs2_alloc_bufdata() 196 struct gfs2_bufdata *bd; in gfs2_trans_add_data() local [all …]
|
| /kernel/linux/linux-6.6/drivers/video/fbdev/matrox/ |
| D | matroxfb_misc.c | 391 static void get_pins(unsigned char __iomem* pins, struct matrox_bios* bd) { in get_pins() argument 398 unsigned char* dst = bd->pins; in get_pins() 413 bd->pins_len = pins_len; in get_pins() 416 unsigned char* dst = bd->pins; in get_pins() 423 bd->pins_len = 0x40; in get_pins() 427 static void get_bios_version(unsigned char __iomem * vbios, struct matrox_bios* bd) { in get_bios_version() argument 439 bd->version.vMaj = (h >> 4) & 0xF; in get_bios_version() 440 bd->version.vMin = h & 0xF; in get_bios_version() 441 bd->version.vRev = readb(vbios + pcir_offset + 0x13); in get_bios_version() 446 bd->version.vMaj = (h >> 4) & 0xF; in get_bios_version() [all …]
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/matrox/ |
| D | matroxfb_misc.c | 391 static void get_pins(unsigned char __iomem* pins, struct matrox_bios* bd) { in get_pins() argument 398 unsigned char* dst = bd->pins; in get_pins() 413 bd->pins_len = pins_len; in get_pins() 416 unsigned char* dst = bd->pins; in get_pins() 423 bd->pins_len = 0x40; in get_pins() 427 static void get_bios_version(unsigned char __iomem * vbios, struct matrox_bios* bd) { in get_bios_version() argument 439 bd->version.vMaj = (h >> 4) & 0xF; in get_bios_version() 440 bd->version.vMin = h & 0xF; in get_bios_version() 441 bd->version.vRev = readb(vbios + pcir_offset + 0x13); in get_bios_version() 446 bd->version.vMaj = (h >> 4) & 0xF; in get_bios_version() [all …]
|
| /kernel/linux/linux-5.10/drivers/md/ |
| D | dm-bio-record.h | 32 static inline void dm_bio_record(struct dm_bio_details *bd, struct bio *bio) in dm_bio_record() argument 34 bd->bi_disk = bio->bi_disk; in dm_bio_record() 35 bd->bi_partno = bio->bi_partno; in dm_bio_record() 36 bd->bi_flags = bio->bi_flags; in dm_bio_record() 37 bd->bi_iter = bio->bi_iter; in dm_bio_record() 38 bd->__bi_remaining = atomic_read(&bio->__bi_remaining); in dm_bio_record() 39 bd->bi_end_io = bio->bi_end_io; in dm_bio_record() 41 bd->bi_integrity = bio_integrity(bio); in dm_bio_record() 45 static inline void dm_bio_restore(struct dm_bio_details *bd, struct bio *bio) in dm_bio_restore() argument 47 bio->bi_disk = bd->bi_disk; in dm_bio_restore() [all …]
|
| /kernel/linux/linux-5.10/drivers/mfd/ |
| D | bd9571mwv.c | 113 static int bd9571mwv_identify(struct bd9571mwv *bd) in bd9571mwv_identify() argument 115 struct device *dev = bd->dev; in bd9571mwv_identify() 119 ret = regmap_read(bd->regmap, BD9571MWV_VENDOR_CODE, &value); in bd9571mwv_identify() 132 ret = regmap_read(bd->regmap, BD9571MWV_PRODUCT_CODE, &value); in bd9571mwv_identify() 145 ret = regmap_read(bd->regmap, BD9571MWV_PRODUCT_REVISION, &value); in bd9571mwv_identify() 160 struct bd9571mwv *bd; in bd9571mwv_probe() local 163 bd = devm_kzalloc(&client->dev, sizeof(*bd), GFP_KERNEL); in bd9571mwv_probe() 164 if (!bd) in bd9571mwv_probe() 167 i2c_set_clientdata(client, bd); in bd9571mwv_probe() 168 bd->dev = &client->dev; in bd9571mwv_probe() [all …]
|