/linux-6.3-rc2/drivers/video/backlight/ |
A D | pwm_bl.c | 45 if (pb->enabled) in pwm_backlight_power_on() 84 if (pb->levels) in compute_duty_cycle() 101 if (pb->notify) in pwm_backlight_update_status() 102 brightness = pb->notify(pb->dev, brightness); in pwm_backlight_update_status() 124 state.enabled = !pb->power_supply && !pb->enable_gpio; in pwm_backlight_update_status() 129 pb->notify_after(pb->dev, brightness); in pwm_backlight_update_status() 139 return !pb->check_fb || pb->check_fb(pb->dev, info); in pwm_backlight_check_fb() 481 pb = devm_kzalloc(&pdev->dev, sizeof(*pb), GFP_KERNEL); in pwm_backlight_probe() 482 if (!pb) { in pwm_backlight_probe() 657 pb->notify(pb->dev, 0); in pwm_backlight_suspend() [all …]
|
/linux-6.3-rc2/drivers/net/mdio/ |
A D | mdio-mux.c | 45 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_read() 51 r = pb->mii_bus->read(pb->mii_bus, phy_id, regnum); in mdio_mux_read() 70 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_write() 76 r = pb->mii_bus->write(pb->mii_bus, phy_id, regnum, val); in mdio_mux_write() 131 pb = devm_kzalloc(dev, sizeof(*pb), GFP_KERNEL); in mdio_mux_init() 132 if (!pb) { in mdio_mux_init() 137 pb->switch_data = data; in mdio_mux_init() 161 cb->parent = pb; in mdio_mux_init() 189 pb->children = cb; in mdio_mux_init() 192 if (pb->children) { in mdio_mux_init() [all …]
|
/linux-6.3-rc2/drivers/gpu/host1x/ |
A D | cdma.c | 61 dma_free_wc(host1x->dev, pb->alloc_size, pb->mapped, pb->phys); in host1x_pushbuffer_destroy() 85 pb->fence = pb->size - 8; in host1x_pushbuffer_init() 117 pb->dma = pb->phys; in host1x_pushbuffer_init() 142 WARN_ON(pb->pos == pb->fence); in host1x_pushbuffer_push() 147 if (pb->pos >= pb->size) in host1x_pushbuffer_push() 148 pb->pos -= pb->size; in host1x_pushbuffer_push() 160 if (pb->fence >= pb->size) in host1x_pushbuffer_pop() 161 pb->fence -= pb->size; in host1x_pushbuffer_pop() 171 if (pb->fence < pb->pos) in host1x_pushbuffer_space() 636 if (pb->pos + 16 > pb->size) { in host1x_cdma_push_wide() [all …]
|
/linux-6.3-rc2/drivers/parport/ |
A D | parport_pc.c | 1460 pb->base); in parport_SPP_supported() 1606 inb(FIFO(pb)); in parport_ECP_supported() 1883 return pb->irq; in irq_probe_ECP() 1925 return pb->irq; in irq_probe_EPP() 1947 pb->irq = programmable_irq_support(pb); in parport_irq_probe() 1950 pb->irq = irq_probe_ECP(pb); in parport_irq_probe() 1955 pb->irq = irq_probe_EPP(pb); in parport_irq_probe() 1960 pb->irq = irq_probe_EPP(pb); in parport_irq_probe() 1965 pb->irq = irq_probe_SPP(pb); in parport_irq_probe() 1968 pb->irq = get_superio_irq(pb); in parport_irq_probe() [all …]
|
A D | parport_gsc.c | 60 parport_gsc_read_status(pb); in clear_epp_timeout() 61 r = parport_gsc_read_status(pb); in clear_epp_timeout() 64 r = parport_gsc_read_status(pb); in clear_epp_timeout() 144 clear_epp_timeout(pb); in parport_SPP_supported() 168 parport_gsc_write_data (pb, w); in parport_SPP_supported() 169 r = parport_gsc_read_data (pb); in parport_SPP_supported() 172 parport_gsc_write_data (pb, w); in parport_SPP_supported() 173 r = parport_gsc_read_data (pb); in parport_SPP_supported() 202 clear_epp_timeout(pb); in parport_PS2_supported() 205 parport_gsc_data_reverse (pb); in parport_PS2_supported() [all …]
|
/linux-6.3-rc2/block/partitions/ |
A D | amiga.c | 33 struct PartitionBlock *pb; in amiga_partition() local 90 pb = (struct PartitionBlock *)data; in amiga_partition() 91 blk = be32_to_cpu(pb->pb_Next); in amiga_partition() 94 if (checksum_block((__be32 *)pb, be32_to_cpu(pb->pb_SummedLongs) & 0x7F) != 0 ) in amiga_partition() 100 be32_to_cpu(pb->pb_Environment[9])) * in amiga_partition() 101 be32_to_cpu(pb->pb_Environment[3]) * in amiga_partition() 102 be32_to_cpu(pb->pb_Environment[5]) * in amiga_partition() 107 be32_to_cpu(pb->pb_Environment[3]) * in amiga_partition() 117 *dt = pb->pb_Environment[16]; in amiga_partition() 128 be32_to_cpu(pb->pb_Environment[6]), in amiga_partition() [all …]
|
/linux-6.3-rc2/arch/sparc/lib/ |
A D | PeeCeeI.c | 94 u8 *pb = dst; in insb() local 98 pi = (u32 *)pb; in insb() 109 pb = (u8 *)pi; in insb() 156 u8 *pb; in insl() local 175 pb = dst; in insl() 179 ps = (u16 *)pb; in insl() 187 pb = (u8 *)pi; in insl() 188 *pb = l; in insl() 192 pb = (u8 *)dst; in insl() 204 pb = (u8 *)ps; in insl() [all …]
|
/linux-6.3-rc2/drivers/media/pci/tw686x/ |
A D | tw686x-video.c | 71 vc->pb = !pb; in tw686x_buf_done() 322 for (pb = 0; pb < 2; pb++) in tw686x_sg_setup() 485 for (pb = 0; pb < 2; pb++) { in tw686x_clear_queue() 498 int pb, err; in tw686x_start_streaming() local 522 for (pb = 0; pb < 2; pb++) in tw686x_start_streaming() 527 vc->pb = 0; in tw686x_start_streaming() 676 int err, pb; in tw686x_set_format() local 684 for (pb = 0; pb < 2; pb++) in tw686x_set_format() 687 for (pb = 0; pb < 2; pb++) { in tw686x_set_format() 1127 if (vc->pb != pb) { in tw686x_video_irq() [all …]
|
A D | tw686x-audio.c | 35 unsigned int ch, pb; in tw686x_audio_irq() local 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() 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() 304 ac->dma_descs[pb].virt, in tw686x_audio_dma_free() 313 int pb; in tw686x_audio_dma_alloc() local 323 for (pb = 0; pb < 2; pb++) { in tw686x_audio_dma_alloc() [all …]
|
/linux-6.3-rc2/drivers/input/misc/ |
A 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()
|
/linux-6.3-rc2/drivers/base/regmap/ |
A D | regmap-spi-avmm.c | 255 pb = br->phy_buf; in br_pkt_phy_tx_prepare() 258 *pb++ = PKT_SOP; in br_pkt_phy_tx_prepare() 265 *pb++ = 0x0; in br_pkt_phy_tx_prepare() 267 for (; pb < pb_limit && tb < tb_end; pb++) { in br_pkt_phy_tx_prepare() 276 *pb = PKT_EOP; in br_pkt_phy_tx_prepare() 277 pb_eop = pb; in br_pkt_phy_tx_prepare() 290 *pb = PKT_ESC; in br_pkt_phy_tx_prepare() 295 *pb = PHY_ESC; in br_pkt_phy_tx_prepare() 299 *pb = *tb++; in br_pkt_phy_tx_prepare() 369 pb = br->phy_buf; in br_do_rx_and_pkt_phy_parse() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | perf_buffer.c | 52 struct perf_buffer *pb; in serial_test_perf_buffer() local 84 pb = perf_buffer__new(bpf_map__fd(skel->maps.perf_buf_map), 1, in serial_test_perf_buffer() 86 if (!ASSERT_OK_PTR(pb, "perf_buf__new")) in serial_test_perf_buffer() 89 CHECK(perf_buffer__epoll_fd(pb) < 0, "epoll_fd", in serial_test_perf_buffer() 90 "bad fd: %d\n", perf_buffer__epoll_fd(pb)); in serial_test_perf_buffer() 105 err = perf_buffer__poll(pb, 100); in serial_test_perf_buffer() 113 if (CHECK(perf_buffer__buffer_cnt(pb) != nr_on_cpus, "buf_cnt", in serial_test_perf_buffer() 121 fd = perf_buffer__buffer_fd(pb, j); in serial_test_perf_buffer() 125 err = perf_buffer__consume_buffer(pb, j); in serial_test_perf_buffer() 133 err = perf_buffer__consume_buffer(pb, j); in serial_test_perf_buffer() [all …]
|
A D | xdp_bpf2bpf.c | 44 static void run_xdp_bpf2bpf_pkt_size(int pkt_fd, struct perf_buffer *pb, in run_xdp_bpf2bpf_pkt_size() argument 90 err = perf_buffer__poll(pb, 100); in run_xdp_bpf2bpf_pkt_size() 112 struct perf_buffer *pb = NULL; in test_xdp_bpf2bpf() local 149 pb = perf_buffer__new(bpf_map__fd(ftrace_skel->maps.perf_buf_map), 8, in test_xdp_bpf2bpf() 151 if (!ASSERT_OK_PTR(pb, "perf_buf__new")) in test_xdp_bpf2bpf() 155 run_xdp_bpf2bpf_pkt_size(pkt_fd, pb, ftrace_skel, in test_xdp_bpf2bpf() 158 perf_buffer__free(pb); in test_xdp_bpf2bpf()
|
A D | get_stack_raw_tp.c | 91 struct perf_buffer *pb = NULL; in test_get_stack_raw_tp() local 129 pb = perf_buffer__new(bpf_map__fd(map), 8, get_stack_print_output, in test_get_stack_raw_tp() 131 if (!ASSERT_OK_PTR(pb, "perf_buf__new")) in test_get_stack_raw_tp() 139 err = perf_buffer__poll(pb, 100); in test_get_stack_raw_tp() 147 perf_buffer__free(pb); in test_get_stack_raw_tp()
|
A D | kfree_skb.c | 65 struct perf_buffer *pb = NULL; in serial_test_kfree_skb() local 97 pb = perf_buffer__new(bpf_map__fd(skel->maps.perf_buf_map), 1, in serial_test_kfree_skb() 99 if (!ASSERT_OK_PTR(pb, "perf_buf__new")) in serial_test_kfree_skb() 108 err = perf_buffer__poll(pb, 100); in serial_test_kfree_skb() 124 perf_buffer__free(pb); in serial_test_kfree_skb()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/benchs/ |
A D | run_bench_ringbufs.sh | 8 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do 13 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do 18 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do 41 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A 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() 75 struct perf_buffer *pb = NULL; in main() local 118 pb = perf_buffer__new(bpf_map__fd(perf_map), 8, dummyfn, NULL, NULL, NULL); in main() 119 if (!pb) in main() 122 pthread_create(&tid, NULL, poller_thread, pb); in main() 166 perf_buffer__free(pb); in main()
|
/linux-6.3-rc2/arch/mips/fw/arc/ |
A 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()
|
/linux-6.3-rc2/tools/bpf/runqslower/ |
A D | runqslower.c | 115 struct perf_buffer *pb = NULL; in main() local 153 pb = perf_buffer__new(bpf_map__fd(obj->maps.events), 64, in main() 155 err = libbpf_get_error(pb); in main() 157 pb = NULL; in main() 162 while ((err = perf_buffer__poll(pb, 100)) >= 0) in main() 167 perf_buffer__free(pb); in main()
|
/linux-6.3-rc2/fs/ext4/ |
A D | ext4_extents.h | 254 ext4_fsblk_t pb) in ext4_ext_store_pblock() argument 256 ex->ee_start_lo = cpu_to_le32((unsigned long) (pb & 0xffffffff)); in ext4_ext_store_pblock() 257 ex->ee_start_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & in ext4_ext_store_pblock() 267 ext4_fsblk_t pb) in ext4_idx_store_pblock() argument 269 ix->ei_leaf_lo = cpu_to_le32((unsigned long) (pb & 0xffffffff)); in ext4_idx_store_pblock() 270 ix->ei_leaf_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & in ext4_idx_store_pblock()
|
/linux-6.3-rc2/tools/bpf/bpftool/ |
A D | map_perf_ring.c | 126 struct perf_buffer *pb; in do_event_pipe() local 189 pb = perf_buffer__new_raw(map_fd, MMAP_PAGE_CNT, &perf_attr, in do_event_pipe() 191 if (!pb) { in do_event_pipe() 205 err = perf_buffer__poll(pb, 200); in do_event_pipe() 216 perf_buffer__free(pb); in do_event_pipe() 222 perf_buffer__free(pb); in do_event_pipe()
|
/linux-6.3-rc2/samples/bpf/ |
A D | trace_output_user.c | 48 struct perf_buffer *pb; in main() local 86 pb = perf_buffer__new(map_fd, 8, print_bpf_output, NULL, NULL, NULL); in main() 87 ret = libbpf_get_error(pb); in main() 97 while ((ret = perf_buffer__poll(pb, 1000)) >= 0 && cnt < MAX_CNT) { in main()
|
A D | xdp_sample_pkts_user.c | 24 static struct perf_buffer *pb = NULL; variable 96 perf_buffer__free(pb); in sig_handler() 184 pb = perf_buffer__new(map_fd, 8, print_bpf_output, NULL, NULL, NULL); in main() 185 err = libbpf_get_error(pb); in main() 191 while ((ret = perf_buffer__poll(pb, 1000)) >= 0) { in main()
|
/linux-6.3-rc2/drivers/clk/microchip/ |
A 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() 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() 182 spin_lock_irqsave(&pb->core->reg_lock, flags); in pbclk_set_rate() 185 v = readl(pb->ctrl_reg); in pbclk_set_rate() [all …]
|
/linux-6.3-rc2/drivers/pinctrl/meson/ |
A D | pinctrl-meson.h | 146 #define BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, \ argument 156 [MESON_REG_PULL] = { pr, pb }, \ 164 #define BANK(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib) \ argument 165 BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, 0, 0)
|