/kernel/linux/linux-5.10/drivers/video/backlight/ |
D | pwm_bl.c | 42 static void pwm_backlight_power_on(struct pwm_bl_data *pb) in pwm_backlight_power_on() argument 47 pwm_get_state(pb->pwm, &state); in pwm_backlight_power_on() 48 if (pb->enabled) in pwm_backlight_power_on() 51 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on() 53 dev_err(pb->dev, "failed to enable power supply\n"); in pwm_backlight_power_on() 56 pwm_apply_state(pb->pwm, &state); in pwm_backlight_power_on() 58 if (pb->post_pwm_on_delay) in pwm_backlight_power_on() 59 msleep(pb->post_pwm_on_delay); in pwm_backlight_power_on() 61 if (pb->enable_gpio) in pwm_backlight_power_on() 62 gpiod_set_value_cansleep(pb->enable_gpio, 1); in pwm_backlight_power_on() [all …]
|
/kernel/linux/linux-5.10/drivers/net/mdio/ |
D | mdio-mux.c | 41 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_read() local 44 mutex_lock_nested(&pb->mii_bus->mdio_lock, MDIO_MUTEX_MUX); in mdio_mux_read() 45 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_read() 49 pb->current_child = cb->bus_number; in mdio_mux_read() 51 r = pb->mii_bus->read(pb->mii_bus, phy_id, regnum); in mdio_mux_read() 53 mutex_unlock(&pb->mii_bus->mdio_lock); in mdio_mux_read() 65 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_write() local 69 mutex_lock_nested(&pb->mii_bus->mdio_lock, MDIO_MUTEX_MUX); in mdio_mux_write() 70 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_write() 74 pb->current_child = cb->bus_number; in mdio_mux_write() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/host1x/ |
D | cdma.c | 48 static void host1x_pushbuffer_destroy(struct push_buffer *pb) in host1x_pushbuffer_destroy() argument 50 struct host1x_cdma *cdma = pb_to_cdma(pb); in host1x_pushbuffer_destroy() 53 if (!pb->mapped) in host1x_pushbuffer_destroy() 57 iommu_unmap(host1x->domain, pb->dma, pb->alloc_size); in host1x_pushbuffer_destroy() 58 free_iova(&host1x->iova, iova_pfn(&host1x->iova, pb->dma)); in host1x_pushbuffer_destroy() 61 dma_free_wc(host1x->dev, pb->alloc_size, pb->mapped, pb->phys); in host1x_pushbuffer_destroy() 63 pb->mapped = NULL; in host1x_pushbuffer_destroy() 64 pb->phys = 0; in host1x_pushbuffer_destroy() 70 static int host1x_pushbuffer_init(struct push_buffer *pb) in host1x_pushbuffer_init() argument 72 struct host1x_cdma *cdma = pb_to_cdma(pb); in host1x_pushbuffer_init() [all …]
|
/kernel/linux/linux-5.10/drivers/parport/ |
D | parport_pc.c | 106 static void frob_econtrol(struct parport *pb, unsigned char m, in frob_econtrol() argument 112 ectr = inb(ECONTROL(pb)); in frob_econtrol() 117 outb((ectr & ~m) ^ v, ECONTROL(pb)); in frob_econtrol() 201 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() argument 205 if (!(parport_pc_read_status(pb) & 0x01)) in clear_epp_timeout() 209 parport_pc_read_status(pb); in clear_epp_timeout() 210 r = parport_pc_read_status(pb); in clear_epp_timeout() 211 outb(r | 0x01, STATUS(pb)); /* Some reset by writing 1 */ in clear_epp_timeout() 212 outb(r & 0xfe, STATUS(pb)); /* Others by writing 0 */ in clear_epp_timeout() 213 r = parport_pc_read_status(pb); in clear_epp_timeout() [all …]
|
D | parport_gsc.c | 53 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() argument 57 if (!(parport_gsc_read_status(pb) & 0x01)) in clear_epp_timeout() 61 parport_gsc_read_status(pb); in clear_epp_timeout() 62 r = parport_gsc_read_status(pb); in clear_epp_timeout() 63 parport_writeb (r | 0x01, STATUS (pb)); /* Some reset by writing 1 */ in clear_epp_timeout() 64 parport_writeb (r & 0xfe, STATUS (pb)); /* Others by writing 0 */ in clear_epp_timeout() 65 r = parport_gsc_read_status(pb); in clear_epp_timeout() 135 static int parport_SPP_supported(struct parport *pb) in parport_SPP_supported() argument 145 clear_epp_timeout(pb); in parport_SPP_supported() 149 parport_writeb (w, CONTROL (pb)); in parport_SPP_supported() [all …]
|
/kernel/linux/linux-5.10/block/partitions/ |
D | amiga.c | 33 struct PartitionBlock *pb; in amiga_partition() local 91 pb = (struct PartitionBlock *)data; in amiga_partition() 92 blk = be32_to_cpu(pb->pb_Next); in amiga_partition() 93 if (pb->pb_ID != cpu_to_be32(IDNAME_PARTITION)) in amiga_partition() 95 if (checksum_block((__be32 *)pb, be32_to_cpu(pb->pb_SummedLongs) & 0x7F) != 0 ) in amiga_partition() 100 nr_sects = (be32_to_cpu(pb->pb_Environment[10]) + 1 - in amiga_partition() 101 be32_to_cpu(pb->pb_Environment[9])) * in amiga_partition() 102 be32_to_cpu(pb->pb_Environment[3]) * in amiga_partition() 103 be32_to_cpu(pb->pb_Environment[5]) * in amiga_partition() 107 start_sect = be32_to_cpu(pb->pb_Environment[9]) * in amiga_partition() [all …]
|
/kernel/linux/linux-5.10/arch/sparc/lib/ |
D | PeeCeeI.c | 94 u8 *pb = dst; in insb() local 96 while ((((unsigned long)pb) & 0x3) && count--) in insb() 97 *pb++ = __raw_readb(addr); in insb() 98 pi = (u32 *)pb; in insb() 109 pb = (u8 *)pi; in insb() 111 *pb++ = __raw_readb(addr); in insb() 156 u8 *pb; in insl() local 175 pb = dst; in insl() 178 *pb++ = l >> 24; in insl() 179 ps = (u16 *)pb; in insl() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/tw686x/ |
D | tw686x-video.c | 50 unsigned int pb) in tw686x_buf_done() argument 52 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_buf_done() 57 if (vc->curr_bufs[pb]) { in tw686x_buf_done() 58 vb = &vc->curr_bufs[pb]->vb; in tw686x_buf_done() 71 vc->pb = !pb; in tw686x_buf_done() 78 unsigned int pb) in tw686x_memcpy_dma_free() argument 80 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_memcpy_dma_free() 102 unsigned int pb) in tw686x_memcpy_dma_alloc() argument 105 u32 reg = pb ? VDMA_B_ADDR[vc->ch] : VDMA_P_ADDR[vc->ch]; in tw686x_memcpy_dma_alloc() 109 WARN(vc->dma_descs[pb].virt, in tw686x_memcpy_dma_alloc() [all …]
|
D | tw686x-audio.c | 35 unsigned int ch, pb; in tw686x_audio_irq() local 43 pb = !!(pb_status & BIT(AUDIO_CHANNEL_OFFSET + ch)); in tw686x_audio_irq() 57 done = ac->curr_bufs[!pb]; in tw686x_audio_irq() 58 ac->curr_bufs[pb] = next; in tw686x_audio_irq() 68 desc = &ac->dma_descs[pb]; in tw686x_audio_irq() 73 u32 reg = pb ? ADMA_B_ADDR[ch] : ADMA_P_ADDR[ch]; in tw686x_audio_irq() 298 int pb; in tw686x_audio_dma_free() local 300 for (pb = 0; pb < 2; pb++) { in tw686x_audio_dma_free() 301 if (!ac->dma_descs[pb].virt) in tw686x_audio_dma_free() 303 pci_free_consistent(dev->pci_dev, ac->dma_descs[pb].size, in tw686x_audio_dma_free() [all …]
|
/kernel/linux/linux-5.10/drivers/input/misc/ |
D | rave-sp-pwrbutton.c | 25 struct rave_sp_power_button *pb = in rave_sp_power_button_event() local 29 struct input_dev *idev = pb->idev; in rave_sp_power_button_event() 44 struct rave_sp_power_button *pb; in rave_sp_pwrbutton_probe() local 48 pb = devm_kzalloc(dev, sizeof(*pb), GFP_KERNEL); in rave_sp_pwrbutton_probe() 49 if (!pb) in rave_sp_pwrbutton_probe() 64 pb->idev = idev; in rave_sp_pwrbutton_probe() 65 pb->nb.notifier_call = rave_sp_power_button_event; in rave_sp_pwrbutton_probe() 66 pb->nb.priority = 128; in rave_sp_pwrbutton_probe() 68 error = devm_rave_sp_register_event_notifier(dev, &pb->nb); in rave_sp_pwrbutton_probe()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | perf_buffer.c | 52 struct perf_buffer *pb; in test_perf_buffer() local 82 pb = perf_buffer__new(bpf_map__fd(skel->maps.perf_buf_map), 1, &pb_opts); in test_perf_buffer() 83 if (CHECK(IS_ERR(pb), "perf_buf__new", "err %ld\n", PTR_ERR(pb))) in test_perf_buffer() 86 CHECK(perf_buffer__epoll_fd(pb) < 0, "epoll_fd", in test_perf_buffer() 87 "bad fd: %d\n", perf_buffer__epoll_fd(pb)); in test_perf_buffer() 102 err = perf_buffer__poll(pb, 100); in test_perf_buffer() 110 if (CHECK(perf_buffer__buffer_cnt(pb) != nr_on_cpus, "buf_cnt", in test_perf_buffer() 111 "got %zu, expected %d\n", perf_buffer__buffer_cnt(pb), nr_on_cpus)) in test_perf_buffer() 118 fd = perf_buffer__buffer_fd(pb, i); in test_perf_buffer() 122 err = perf_buffer__consume_buffer(pb, i); in test_perf_buffer() [all …]
|
D | xdp_bpf2bpf.c | 51 struct perf_buffer *pb = NULL; in test_xdp_bpf2bpf() local 91 pb = perf_buffer__new(bpf_map__fd(ftrace_skel->maps.perf_buf_map), in test_xdp_bpf2bpf() 93 if (CHECK(IS_ERR(pb), "perf_buf__new", "err %ld\n", PTR_ERR(pb))) in test_xdp_bpf2bpf() 109 err = perf_buffer__poll(pb, 100); in test_xdp_bpf2bpf() 125 if (pb) in test_xdp_bpf2bpf() 126 perf_buffer__free(pb); in test_xdp_bpf2bpf()
|
D | get_stack_raw_tp.c | 89 struct perf_buffer *pb = NULL; in test_get_stack_raw_tp() local 128 pb = perf_buffer__new(bpf_map__fd(map), 8, &pb_opts); in test_get_stack_raw_tp() 129 if (CHECK(IS_ERR(pb), "perf_buf__new", "err %ld\n", PTR_ERR(pb))) in test_get_stack_raw_tp() 137 err = perf_buffer__poll(pb, 100); in test_get_stack_raw_tp() 146 if (!IS_ERR_OR_NULL(pb)) in test_get_stack_raw_tp() 147 perf_buffer__free(pb); in test_get_stack_raw_tp()
|
D | kfree_skb.c | 69 struct perf_buffer *pb = NULL; in test_kfree_skb() local 118 pb = perf_buffer__new(bpf_map__fd(perf_buf_map), 1, &pb_opts); in test_kfree_skb() 119 if (CHECK(IS_ERR(pb), "perf_buf__new", "err %ld\n", PTR_ERR(pb))) in test_kfree_skb() 130 err = perf_buffer__poll(pb, 100); in test_kfree_skb() 146 perf_buffer__free(pb); in test_kfree_skb()
|
/kernel/linux/linux-5.10/drivers/base/regmap/ |
D | regmap-spi-avmm.c | 255 char *tb, *tb_end, *pb, *pb_limit, *pb_eop = NULL; in br_pkt_phy_tx_prepare() local 261 pb = br->phy_buf; in br_pkt_phy_tx_prepare() 262 pb_limit = pb + ARRAY_SIZE(br->phy_buf); in br_pkt_phy_tx_prepare() 264 *pb++ = PKT_SOP; in br_pkt_phy_tx_prepare() 270 *pb++ = PKT_CHANNEL; in br_pkt_phy_tx_prepare() 271 *pb++ = 0x0; in br_pkt_phy_tx_prepare() 273 for (; pb < pb_limit && tb < tb_end; pb++) { in br_pkt_phy_tx_prepare() 275 *pb = *tb++ ^ 0x20; in br_pkt_phy_tx_prepare() 282 *pb = PKT_EOP; in br_pkt_phy_tx_prepare() 283 pb_eop = pb; in br_pkt_phy_tx_prepare() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_tcpnotify_user.c | 44 void tcp_notifier_poller(struct perf_buffer *pb) in tcp_notifier_poller() argument 49 err = perf_buffer__poll(pb, 100); in tcp_notifier_poller() 59 struct perf_buffer *pb = arg; in poller_thread() local 61 tcp_notifier_poller(pb); in poller_thread() 76 struct perf_buffer *pb = NULL; in main() local 118 pb = perf_buffer__new(bpf_map__fd(perf_map), 8, &pb_opts); in main() 119 if (IS_ERR(pb)) in main() 122 pthread_create(&tid, NULL, poller_thread, pb); in main() 166 if (!IS_ERR_OR_NULL(pb)) in main() 167 perf_buffer__free(pb); in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/ |
D | run_bench_ringbufs.sh | 34 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do 39 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do 44 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do 67 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
|
/kernel/linux/linux-5.10/arch/mips/fw/arc/ |
D | init.c | 29 PSYSTEM_PARAMETER_BLOCK pb = PROMBLOCK; in prom_init() local 33 if (pb->magic != 0x53435241) { in prom_init() 35 (unsigned long) pb->magic); in prom_init() 43 pb->ver, pb->rev); in prom_init()
|
/kernel/linux/linux-5.10/drivers/gpu/host1x/hw/ |
D | debug_hw.c | 195 struct push_buffer *pb = &cdma->push_buffer; in show_channel_gathers() local 199 &pb->dma, pb->size / 4); in show_channel_gathers() 201 show_gather(o, pb->dma, pb->size / 4, cdma, pb->dma, pb->mapped); in show_channel_gathers()
|
/kernel/linux/linux-5.10/tools/bpf/runqslower/ |
D | runqslower.c | 127 struct perf_buffer *pb = NULL; in main() local 170 pb = perf_buffer__new(bpf_map__fd(obj->maps.events), 64, &pb_opts); in main() 171 err = libbpf_get_error(pb); in main() 173 pb = NULL; in main() 178 while ((err = perf_buffer__poll(pb, 100)) >= 0) in main() 183 perf_buffer__free(pb); in main()
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | ext4_extents.h | 253 ext4_fsblk_t pb) in ext4_ext_store_pblock() argument 255 ex->ee_start_lo = cpu_to_le32((unsigned long) (pb & 0xffffffff)); in ext4_ext_store_pblock() 256 ex->ee_start_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & in ext4_ext_store_pblock() 266 ext4_fsblk_t pb) in ext4_idx_store_pblock() argument 268 ix->ei_leaf_lo = cpu_to_le32((unsigned long) (pb & 0xffffffff)); in ext4_idx_store_pblock() 269 ix->ei_leaf_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & in ext4_idx_store_pblock()
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | trace_output_user.c | 49 struct perf_buffer *pb; in main() local 88 pb = perf_buffer__new(map_fd, 8, &pb_opts); in main() 89 ret = libbpf_get_error(pb); in main() 99 while ((ret = perf_buffer__poll(pb, 1000)) >= 0 && cnt < MAX_CNT) { in main()
|
D | xdp_sample_pkts_user.c | 25 static struct perf_buffer *pb = NULL; variable 97 perf_buffer__free(pb); in sig_handler() 190 pb = perf_buffer__new(map_fd, 8, &pb_opts); in main() 191 err = libbpf_get_error(pb); in main() 197 while ((ret = perf_buffer__poll(pb, 1000)) >= 0) { in main()
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
D | map_perf_ring.c | 134 struct perf_buffer *pb; in do_event_pipe() local 201 pb = perf_buffer__new_raw(map_fd, MMAP_PAGE_CNT, &opts); in do_event_pipe() 202 err = libbpf_get_error(pb); in do_event_pipe() 217 err = perf_buffer__poll(pb, 200); in do_event_pipe() 228 perf_buffer__free(pb); in do_event_pipe() 234 perf_buffer__free(pb); in do_event_pipe()
|
/kernel/linux/linux-5.10/drivers/clk/microchip/ |
D | clk-core.c | 99 struct pic32_periph_clk *pb = clkhw_to_pbclk(hw); in pbclk_is_enabled() local 101 return readl(pb->ctrl_reg) & PB_DIV_ENABLE; in pbclk_is_enabled() 106 struct pic32_periph_clk *pb = clkhw_to_pbclk(hw); in pbclk_enable() local 108 writel(PB_DIV_ENABLE, PIC32_SET(pb->ctrl_reg)); in pbclk_enable() 114 struct pic32_periph_clk *pb = clkhw_to_pbclk(hw); in pbclk_disable() local 116 writel(PB_DIV_ENABLE, PIC32_CLR(pb->ctrl_reg)); in pbclk_disable() 145 static inline u32 pbclk_read_pbdiv(struct pic32_periph_clk *pb) in pbclk_read_pbdiv() argument 147 return ((readl(pb->ctrl_reg) >> PB_DIV_SHIFT) & PB_DIV_MASK) + 1; in pbclk_read_pbdiv() 153 struct pic32_periph_clk *pb = clkhw_to_pbclk(hw); in pbclk_recalc_rate() local 155 return parent_rate / pbclk_read_pbdiv(pb); in pbclk_recalc_rate() [all …]
|