Home
last modified time | relevance | path

Searched refs:pb (Results 1 – 25 of 141) sorted by relevance

123456

/linux-6.6.21/drivers/video/backlight/
Dpwm_bl.c41 static void pwm_backlight_power_on(struct pwm_bl_data *pb) in pwm_backlight_power_on() argument
45 if (pb->enabled) in pwm_backlight_power_on()
48 if (pb->power_supply) { in pwm_backlight_power_on()
49 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on()
51 dev_err(pb->dev, "failed to enable power supply\n"); in pwm_backlight_power_on()
54 if (pb->post_pwm_on_delay) in pwm_backlight_power_on()
55 msleep(pb->post_pwm_on_delay); in pwm_backlight_power_on()
57 gpiod_set_value_cansleep(pb->enable_gpio, 1); in pwm_backlight_power_on()
59 pb->enabled = true; in pwm_backlight_power_on()
62 static void pwm_backlight_power_off(struct pwm_bl_data *pb) in pwm_backlight_power_off() argument
[all …]
/linux-6.6.21/drivers/net/mdio/
Dmdio-mux.c41 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()
62 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_read_c45() local
65 mutex_lock_nested(&pb->mii_bus->mdio_lock, MDIO_MUTEX_MUX); in mdio_mux_read_c45()
66 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_read_c45()
70 pb->current_child = cb->bus_number; in mdio_mux_read_c45()
[all …]
/linux-6.6.21/drivers/gpu/host1x/
Dcdma.c48 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 …]
/linux-6.6.21/drivers/parport/
Dparport_gsc.c51 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() argument
55 if (!(parport_gsc_read_status(pb) & 0x01)) in clear_epp_timeout()
59 parport_gsc_read_status(pb); in clear_epp_timeout()
60 r = parport_gsc_read_status(pb); in clear_epp_timeout()
61 parport_writeb (r | 0x01, STATUS (pb)); /* Some reset by writing 1 */ in clear_epp_timeout()
62 parport_writeb (r & 0xfe, STATUS (pb)); /* Others by writing 0 */ in clear_epp_timeout()
63 r = parport_gsc_read_status(pb); in clear_epp_timeout()
133 static int parport_SPP_supported(struct parport *pb) in parport_SPP_supported() argument
143 clear_epp_timeout(pb); in parport_SPP_supported()
147 parport_writeb (w, CONTROL (pb)); in parport_SPP_supported()
[all …]
Dparport_pc.c106 static void frob_econtrol(struct parport *pb, unsigned char m, in frob_econtrol() argument
109 const struct parport_pc_private *priv = pb->physport->private_data; in frob_econtrol()
115 ectr = inb(ECONTROL(pb)); in frob_econtrol()
124 outb(new, ECONTROL(pb)); in frob_econtrol()
208 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() argument
212 if (!(parport_pc_read_status(pb) & 0x01)) in clear_epp_timeout()
216 parport_pc_read_status(pb); in clear_epp_timeout()
217 r = parport_pc_read_status(pb); in clear_epp_timeout()
218 outb(r | 0x01, STATUS(pb)); /* Some reset by writing 1 */ in clear_epp_timeout()
219 outb(r & 0xfe, STATUS(pb)); /* Others by writing 0 */ in clear_epp_timeout()
[all …]
/linux-6.6.21/arch/sparc/lib/
DPeeCeeI.c94 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 …]
/linux-6.6.21/drivers/media/pci/tw686x/
Dtw686x-video.c50 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 …]
Dtw686x-audio.c35 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 dma_free_coherent(&dev->pci_dev->dev, ac->dma_descs[pb].size, in tw686x_audio_dma_free()
[all …]
/linux-6.6.21/drivers/input/misc/
Drave-sp-pwrbutton.c25 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.6.21/drivers/base/regmap/
Dregmap-spi-avmm.c249 char *tb, *tb_end, *pb, *pb_limit, *pb_eop = NULL; in br_pkt_phy_tx_prepare() local
255 pb = br->phy_buf; in br_pkt_phy_tx_prepare()
256 pb_limit = pb + ARRAY_SIZE(br->phy_buf); in br_pkt_phy_tx_prepare()
258 *pb++ = PKT_SOP; in br_pkt_phy_tx_prepare()
264 *pb++ = PKT_CHANNEL; 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()
269 *pb = *tb++ ^ 0x20; 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()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dperf_buffer.c52 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()
114 "got %zu, expected %d\n", perf_buffer__buffer_cnt(pb), nr_on_cpus)) 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()
[all …]
Dxdp_bpf2bpf.c44 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()
Dget_stack_raw_tp.c91 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()
Dkfree_skb.c65 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()
Dxdp_attach.c108 struct perf_buffer *pb = NULL; in test_xdp_attach_fail() local
123 pb = perf_buffer__new(bpf_map__fd(skel->maps.xdp_errmsg_pb), 1, in test_xdp_attach_fail()
125 if (!ASSERT_OK_PTR(pb, "perf_buffer__new")) in test_xdp_attach_fail()
138 err = perf_buffer__poll(pb, 100); in test_xdp_attach_fail()
146 perf_buffer__free(pb); in test_xdp_attach_fail()
/linux-6.6.21/block/partitions/
Damiga.c41 struct PartitionBlock *pb; in amiga_partition() local
107 pb = (struct PartitionBlock *)data; in amiga_partition()
108 blk = be32_to_cpu(pb->pb_Next); in amiga_partition()
109 if (pb->pb_ID != cpu_to_be32(IDNAME_PARTITION)) in amiga_partition()
111 if (checksum_block((__be32 *)pb, be32_to_cpu(pb->pb_SummedLongs) & 0x7F) != 0 ) in amiga_partition()
121 nr_hd = be32_to_cpu(pb->pb_Environment[NR_HD]); in amiga_partition()
122 nr_sect = be32_to_cpu(pb->pb_Environment[NR_SECT]); in amiga_partition()
152 lo_cyl = be32_to_cpu(pb->pb_Environment[LO_CYL]); in amiga_partition()
155 hi_cyl = be32_to_cpu(pb->pb_Environment[HI_CYL]); in amiga_partition()
185 *dt = pb->pb_Environment[16]; in amiga_partition()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/benchs/
Drun_bench_ringbufs.sh10 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
15 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
20 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
43 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_tcpnotify_user.c44 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.6.21/arch/mips/fw/arc/
Dinit.c29 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.6.21/tools/bpf/runqslower/
Drunqslower.c115 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.6.21/fs/ext4/
Dext4_extents.h254 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.6.21/tools/bpf/bpftool/
Dmap_perf_ring.c126 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.6.21/samples/bpf/
Dtrace_output_user.c48 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()
/linux-6.6.21/drivers/clk/microchip/
Dclk-core.c99 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 …]
/linux-6.6.21/drivers/pinctrl/meson/
Dpinctrl-meson.h146 #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)

123456