/kernel/linux/linux-5.10/lib/ |
H A 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 in get_bits() 156 get_next_block(struct bunzip_data *bd) get_next_block() argument 523 read_bunzip(struct bunzip_data *bd, char *outbuf, int len) read_bunzip() argument 632 struct bunzip_data *bd; start_bunzip() local 686 struct bunzip_data *bd; bunzip2() local [all...] |
/kernel/linux/linux-6.6/lib/ |
H A 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 in get_bits() 156 get_next_block(struct bunzip_data *bd) get_next_block() argument 523 read_bunzip(struct bunzip_data *bd, char *outbuf, int len) read_bunzip() argument 632 struct bunzip_data *bd; start_bunzip() local 686 struct bunzip_data *bd; bunzip2() local [all...] |
/kernel/linux/linux-5.10/drivers/video/backlight/ |
H A 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 in fb_notifier_callback() 137 backlight_register_fb(struct backlight_device *bd) backlight_register_fb() argument 145 backlight_unregister_fb(struct backlight_device *bd) backlight_unregister_fb() argument 150 backlight_register_fb(struct backlight_device *bd) backlight_register_fb() argument 155 backlight_unregister_fb(struct backlight_device *bd) backlight_unregister_fb() argument 160 backlight_generate_event(struct backlight_device *bd, enum backlight_update_reason reason) backlight_generate_event() argument 184 struct backlight_device *bd = to_backlight_device(dev); bl_power_show() local 193 struct backlight_device *bd = to_backlight_device(dev); bl_power_store() local 225 struct backlight_device *bd = to_backlight_device(dev); brightness_show() local 230 backlight_device_set_brightness(struct backlight_device *bd, unsigned long brightness) backlight_device_set_brightness() argument 257 struct backlight_device *bd = to_backlight_device(dev); brightness_store() local 273 struct backlight_device *bd = to_backlight_device(dev); type_show() local 282 struct backlight_device *bd = to_backlight_device(dev); max_brightness_show() local 292 struct backlight_device *bd = to_backlight_device(dev); actual_brightness_show() local 308 struct backlight_device *bd = to_backlight_device(dev); scale_show() local 322 struct backlight_device *bd = to_backlight_device(dev); backlight_suspend() local 336 struct backlight_device *bd = to_backlight_device(dev); backlight_resume() local 354 struct backlight_device *bd = to_backlight_device(dev); bl_device_release() local 381 backlight_force_update(struct backlight_device *bd, enum backlight_update_reason reason) backlight_force_update() argument 471 struct backlight_device *bd; backlight_device_get_by_type() local 508 backlight_device_unregister(struct backlight_device *bd) backlight_device_unregister() argument 636 devm_backlight_device_unregister(struct device *dev, struct backlight_device *bd) devm_backlight_device_unregister() argument 678 struct backlight_device *bd = NULL; of_find_backlight() local 699 struct backlight_device *bd = data; devm_backlight_release() local 722 struct backlight_device *bd; devm_of_find_backlight() local [all...] |
H A 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 in aat2870_bl_update_status() 98 aat2870_bl_check_fb(struct backlight_device *bd, struct fb_info *fi) aat2870_bl_check_fb() argument 113 struct backlight_device *bd; aat2870_bl_probe() local 189 struct backlight_device *bd = aat2870_bl->bd; aat2870_bl_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/video/backlight/ |
H A 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 in fb_notifier_callback() 137 backlight_register_fb(struct backlight_device *bd) backlight_register_fb() argument 145 backlight_unregister_fb(struct backlight_device *bd) backlight_unregister_fb() argument 150 backlight_register_fb(struct backlight_device *bd) backlight_register_fb() argument 155 backlight_unregister_fb(struct backlight_device *bd) backlight_unregister_fb() argument 160 backlight_generate_event(struct backlight_device *bd, enum backlight_update_reason reason) backlight_generate_event() argument 184 struct backlight_device *bd = to_backlight_device(dev); bl_power_show() local 193 struct backlight_device *bd = to_backlight_device(dev); bl_power_store() local 225 struct backlight_device *bd = to_backlight_device(dev); brightness_show() local 230 backlight_device_set_brightness(struct backlight_device *bd, unsigned long brightness) backlight_device_set_brightness() argument 257 struct backlight_device *bd = to_backlight_device(dev); brightness_store() local 273 struct backlight_device *bd = to_backlight_device(dev); type_show() local 282 struct backlight_device *bd = to_backlight_device(dev); max_brightness_show() local 292 struct backlight_device *bd = to_backlight_device(dev); actual_brightness_show() local 311 struct backlight_device *bd = to_backlight_device(dev); scale_show() local 325 struct backlight_device *bd = to_backlight_device(dev); backlight_suspend() local 339 struct backlight_device *bd = to_backlight_device(dev); backlight_resume() local 357 struct backlight_device *bd = to_backlight_device(dev); bl_device_release() local 384 backlight_force_update(struct backlight_device *bd, enum backlight_update_reason reason) backlight_force_update() argument 483 struct backlight_device *bd; backlight_device_get_by_type() local 520 backlight_device_unregister(struct backlight_device *bd) backlight_device_unregister() argument 648 devm_backlight_device_unregister(struct device *dev, struct backlight_device *bd) devm_backlight_device_unregister() argument 690 struct backlight_device *bd = NULL; of_find_backlight() local 711 struct backlight_device *bd = data; devm_backlight_release() local 733 struct backlight_device *bd; devm_of_find_backlight() local [all...] |
H A 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 in aat2870_bl_update_status() 93 aat2870_bl_check_fb(struct backlight_device *bd, struct fb_info *fi) aat2870_bl_check_fb() argument 108 struct backlight_device *bd; aat2870_bl_probe() local 184 struct backlight_device *bd = aat2870_bl->bd; aat2870_bl_remove() local [all...] |
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A 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 in bd28623_get_switch_spk() local 87 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd28623_set_switch_spk() local 106 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd28623_codec_probe() local 122 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd28623_codec_remove() local 129 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd28623_codec_suspend() local 138 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd28623_codec_resume() local 184 struct bd28623_priv *bd; bd28623_probe() local [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A 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 in bd28623_get_switch_spk() local 87 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd28623_set_switch_spk() local 106 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd28623_codec_probe() local 122 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd28623_codec_remove() local 129 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd28623_codec_suspend() local 138 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd28623_codec_resume() local 183 struct bd28623_priv *bd; bd28623_probe() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | backlight.h | 174 int (*check_fb)(struct backlight_device *bd, struct fb_info *info); 345 * @bd: the backlight device 347 static inline int backlight_update_status(struct backlight_device *bd) in backlight_update_status() argument 351 mutex_lock(&bd->update_lock); in backlight_update_status() 352 if (bd->ops && bd->ops->update_status) in backlight_update_status() 353 ret = bd->ops->update_status(bd); in backlight_update_status() 354 mutex_unlock(&bd->update_lock); in backlight_update_status() 361 * @bd 363 backlight_enable(struct backlight_device *bd) backlight_enable() argument 379 backlight_disable(struct backlight_device *bd) backlight_disable() argument 403 backlight_is_blank(const struct backlight_device *bd) backlight_is_blank() argument 421 backlight_get_brightness(const struct backlight_device *bd) backlight_get_brightness() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | backlight.h | 174 int (*check_fb)(struct backlight_device *bd, struct fb_info *info); 345 * @bd: the backlight device 347 static inline int backlight_update_status(struct backlight_device *bd) in backlight_update_status() argument 351 mutex_lock(&bd->update_lock); in backlight_update_status() 352 if (bd->ops && bd->ops->update_status) in backlight_update_status() 353 ret = bd->ops->update_status(bd); in backlight_update_status() 354 mutex_unlock(&bd->update_lock); in backlight_update_status() 361 * @bd 363 backlight_enable(struct backlight_device *bd) backlight_enable() argument 379 backlight_disable(struct backlight_device *bd) backlight_disable() argument 403 backlight_is_blank(const struct backlight_device *bd) backlight_is_blank() argument 421 backlight_get_brightness(const struct backlight_device *bd) backlight_get_brightness() argument [all...] |
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A 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 in bd9995x_get_prop_batt_current() 269 bd9995x_get_prop_batt_temp(struct bd9995x_device *bd) bd9995x_get_prop_batt_temp() argument 285 struct bd9995x_device *bd = power_supply_get_drvdata(psy); bd9995x_power_supply_get_property() local 443 bd9995x_get_chip_state(struct bd9995x_device *bd, struct bd9995x_state *state) bd9995x_get_chip_state() argument 482 struct bd9995x_device *bd = private; bd9995x_irq_handler_thread() local 604 __bd9995x_chip_reset(struct bd9995x_device *bd) __bd9995x_chip_reset() argument 633 bd9995x_hw_init(struct bd9995x_device *bd) bd9995x_hw_init() argument 882 bd9995x_fw_probe(struct bd9995x_device *bd) bd9995x_fw_probe() argument 1028 bd9995x_chip_reset(void *bd) bd9995x_chip_reset() argument 1036 struct bd9995x_device *bd; bd9995x_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A 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 in bd9995x_get_prop_batt_current() 269 bd9995x_get_prop_batt_temp(struct bd9995x_device *bd) bd9995x_get_prop_batt_temp() argument 285 struct bd9995x_device *bd = power_supply_get_drvdata(psy); bd9995x_power_supply_get_property() local 443 bd9995x_get_chip_state(struct bd9995x_device *bd, struct bd9995x_state *state) bd9995x_get_chip_state() argument 482 struct bd9995x_device *bd = private; bd9995x_irq_handler_thread() local 604 __bd9995x_chip_reset(struct bd9995x_device *bd) __bd9995x_chip_reset() argument 633 bd9995x_hw_init(struct bd9995x_device *bd) bd9995x_hw_init() argument 824 bd9995x_fw_probe(struct bd9995x_device *bd) bd9995x_fw_probe() argument 972 bd9995x_chip_reset(void *bd) bd9995x_chip_reset() argument 980 struct bd9995x_device *bd; bd9995x_probe() local [all...] |
/kernel/linux/linux-6.6/block/ |
H A 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, in argument 106 struct bsg_device *bd = to_bsg_device(file_inode(file)); bsg_ioctl() local 172 struct bsg_device *bd = container_of(dev, struct bsg_device, device); bsg_device_release() local 178 bsg_unregister_queue(struct bsg_device *bd) bsg_unregister_queue() argument 192 struct bsg_device *bd; bsg_register_queue() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
H A 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 in platform_fixups() [all...] |
H A 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 in platform_fixups() [all...] |
H A 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 in platform_fixups() [all...] |
H A D | cuboot-85xx.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_mac_address_by_alias("ethernet3", bd.bi_enet3addr); in platform_fixups() 29 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd in platform_fixups() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/boot/ |
H A 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 in platform_fixups() [all...] |
H A 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 in platform_fixups() [all...] |
H A 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 in platform_fixups() [all...] |
/kernel/linux/linux-5.10/fs/gfs2/ |
H A 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 198 struct gfs2_bufdata *bd; gfs2_trans_add_meta() local 254 gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) gfs2_trans_add_revoke() argument 266 struct gfs2_bufdata *bd, *tmp; gfs2_trans_remove_revoke() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/wcn36xx/ |
H A 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 in wcn36xx_rx_skb() 458 wcn36xx_set_tx_pdu(struct wcn36xx_tx_bd *bd, u32 mpdu_header_len, u32 len, u16 tid) wcn36xx_set_tx_pdu() argument 520 wcn36xx_set_tx_data(struct wcn36xx_tx_bd *bd, struct wcn36xx *wcn, struct wcn36xx_vif **vif_priv, struct wcn36xx_sta *sta_priv, struct sk_buff *skb, bool bcast) wcn36xx_set_tx_data() argument 599 wcn36xx_set_tx_mgmt(struct wcn36xx_tx_bd *bd, struct wcn36xx *wcn, struct wcn36xx_vif **vif_priv, struct sk_buff *skb, bool bcast) wcn36xx_set_tx_mgmt() argument 661 struct wcn36xx_tx_bd bd; wcn36xx_start_tx() local [all...] |
/kernel/linux/linux-5.10/block/ |
H A D | bsg.c | 26 #define bsg_dbg(bd, fmt, ...) \ 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 240 struct bsg_device *bd; bsg_add_device() local 268 struct bsg_device *bd; __bsg_get_device() local 285 struct bsg_device *bd; bsg_get_device() local 310 struct bsg_device *bd; bsg_open() local 323 struct bsg_device *bd = file->private_data; bsg_release() local 329 bsg_get_command_q(struct bsg_device *bd, int __user *uarg) bsg_get_command_q() argument 334 bsg_set_command_q(struct bsg_device *bd, int __user *uarg) bsg_set_command_q() argument 351 struct bsg_device *bd = file->private_data; bsg_ioctl() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wcn36xx/ |
H A 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 in wcn36xx_rx_skb() 335 wcn36xx_set_tx_pdu(struct wcn36xx_tx_bd *bd, u32 mpdu_header_len, u32 len, u16 tid) wcn36xx_set_tx_pdu() argument 397 wcn36xx_set_tx_data(struct wcn36xx_tx_bd *bd, struct wcn36xx *wcn, struct wcn36xx_vif **vif_priv, struct wcn36xx_sta *sta_priv, struct sk_buff *skb, bool bcast) wcn36xx_set_tx_data() argument 476 wcn36xx_set_tx_mgmt(struct wcn36xx_tx_bd *bd, struct wcn36xx *wcn, struct wcn36xx_vif **vif_priv, struct sk_buff *skb, bool bcast) wcn36xx_set_tx_mgmt() argument 538 struct wcn36xx_tx_bd bd; wcn36xx_start_tx() local [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A 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 in dm_bio_restore() [all...] |