Home
last modified time | relevance | path

Searched full:pb (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/Linux-v6.1/drivers/video/backlight/
Dpwm_bl.c42 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 …]
/Linux-v6.1/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()
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 …]
/Linux-v6.1/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-v6.1/drivers/net/fddi/skfp/
Dcfm.c101 smc->y[PB].scrub = 0 ; in cfm_init()
103 smc->y[PB].cem_pst = CEM_PST_DOWN ; in cfm_init()
108 smc->y[PB].pc_mode != PM_TREE)
115 if ( !THRU_ENABLED(smc) && smc->y[PB].cf_join ) { in selection_criteria()
159 if (np != PA && np != PB) { in cem_priv_state()
238 smc->y[PB].pc_mode == PM_PEER) || in cfm()
271 smc->mib.p[PB].fddiPORTCurrentPath = MIB_PATH_ISOLATED ; in cfm_fsm()
273 smc->mib.p[PB].fddiPORTMACPlacement = 0 ; in cfm_fsm()
285 /*SAS port can be PA or PB ! */ in cfm_fsm()
287 smc->y[PB].cf_join || smc->y[PB].cf_loop)) { in cfm_fsm()
[all …]
/Linux-v6.1/drivers/pinctrl/freescale/
Dpinctrl-imx1.c16 #define PB 1 macro
53 MX1_PAD_SD_DAT0 = PAD_ID(PB, 8),
54 MX1_PAD_SD_DAT1 = PAD_ID(PB, 9),
55 MX1_PAD_SD_DAT2 = PAD_ID(PB, 10),
56 MX1_PAD_SD_DAT3 = PAD_ID(PB, 11),
57 MX1_PAD_SD_SCLK = PAD_ID(PB, 12),
58 MX1_PAD_SD_CMD = PAD_ID(PB, 13),
59 MX1_PAD_SIM_SVEN = PAD_ID(PB, 14),
60 MX1_PAD_SIM_PD = PAD_ID(PB, 15),
61 MX1_PAD_SIM_TX = PAD_ID(PB, 16),
[all …]
Dpinctrl-imx27.c20 #define PB 1 macro
60 MX27_PAD_SD2_D0 = PAD_ID(PB, 4),
61 MX27_PAD_SD2_D1 = PAD_ID(PB, 5),
62 MX27_PAD_SD2_D2 = PAD_ID(PB, 6),
63 MX27_PAD_SD2_D3 = PAD_ID(PB, 7),
64 MX27_PAD_SD2_CMD = PAD_ID(PB, 8),
65 MX27_PAD_SD2_CLK = PAD_ID(PB, 9),
66 MX27_PAD_CSI_D0 = PAD_ID(PB, 10),
67 MX27_PAD_CSI_D1 = PAD_ID(PB, 11),
68 MX27_PAD_CSI_D2 = PAD_ID(PB, 12),
[all …]
/Linux-v6.1/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()
65 * Checking for a non-nil dma_desc[pb]->virt buffer is 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()
[all …]
/Linux-v6.1/block/partitions/
Damiga.c33 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()
92 if (pb->pb_ID != cpu_to_be32(IDNAME_PARTITION)) in amiga_partition()
94 if (checksum_block((__be32 *)pb, be32_to_cpu(pb->pb_SummedLongs) & 0x7F) != 0 ) in amiga_partition()
99 nr_sects = (be32_to_cpu(pb->pb_Environment[10]) + 1 - 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()
106 start_sect = be32_to_cpu(pb->pb_Environment[9]) * in amiga_partition()
[all …]
/Linux-v6.1/Documentation/x86/x86_64/
Dmm.rst81 from 0.125 PB to 64 PB. All kernel mappings shift down to the -64 PB starting
91 …0000000000000000 | 0 | 00ffffffffffffff | 64 PB | user-space virtual memory, different …
94 …0100000000000000 | +64 PB | feffffffffffffff | ~16K PB | ... huge, still almost 64 bits wide h…
95 … | | | | virtual memory addresses up to the -64 PB
102 …ff00000000000000 | -64 PB | ff0fffffffffffff | 4 PB | ... guard hole, also reserved for hyp…
103 ff10000000000000 | -60 PB | ff10ffffffffffff | 0.25 PB | LDT remap for PTI
104 …ff11000000000000 | -59.75 PB | ff90ffffffffffff | 32 PB | direct mapping of all physical memory…
105 ff91000000000000 | -27.75 PB | ff9fffffffffffff | 3.75 PB | ... unused hole
106 ffa0000000000000 | -24 PB | ffd1ffffffffffff | 12.5 PB | vmalloc/ioremap space (vmalloc_base)
107 ffd2000000000000 | -11.5 PB | ffd3ffffffffffff | 0.5 PB | ... unused hole
[all …]
/Linux-v6.1/drivers/parport/
Dparport_gsc.c52 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() argument
56 if (!(parport_gsc_read_status(pb) & 0x01)) in clear_epp_timeout()
60 parport_gsc_read_status(pb); in clear_epp_timeout()
61 r = parport_gsc_read_status(pb); in clear_epp_timeout()
62 parport_writeb (r | 0x01, STATUS (pb)); /* Some reset by writing 1 */ in clear_epp_timeout()
63 parport_writeb (r & 0xfe, STATUS (pb)); /* Others by writing 0 */ in clear_epp_timeout()
64 r = parport_gsc_read_status(pb); in clear_epp_timeout()
134 static int parport_SPP_supported(struct parport *pb) in parport_SPP_supported() argument
144 clear_epp_timeout(pb); in parport_SPP_supported()
148 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
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 …]
/Linux-v6.1/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-v6.1/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-v6.1/tools/testing/selftests/bpf/benchs/
Drun_bench_ringbufs.sh8 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
29 …summarize "pb-sampled-$b" "$($RUN_BENCH --rb-b2b --rb-batch-cnt $b --rb-sampled --rb-sample-rate $…
41 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
/Linux-v6.1/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()
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()
/Linux-v6.1/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-v6.1/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-v6.1/drivers/misc/habanalabs/common/
Dsecurity.c42 * @reg_offset: register offset will be converted to bit offset in pb block
43 * @sgs_entry: pb array
70 * @sgs_array: pb array
99 * @sgs_array: pb array
135 * @sgs_array: pb array
165 * @sgs_array: pb array
215 * hl_config_glbl_sec - set pb in HW according to given pb array
219 * @sgs_array: pb array
248 * @sgs_array: pb array to clear
263 * hl_init_pb_with_mask - set selected pb instances with mask in HW according
[all …]
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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 …]

12345678910>>...14