Home
last modified time | relevance | path

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

12345678

/openbmc/linux/drivers/video/backlight/
H A 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 …]
/openbmc/linux/drivers/net/mdio/
H A 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 …]
/openbmc/linux/drivers/gpu/host1x/
H A 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 …]
/openbmc/linux/drivers/parport/
H A 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 …]
H A 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 …]
/openbmc/u-boot/drivers/power/mfd/
H A Dfg_max77693.c49 struct power_battery *pb = bat->pbat; in power_update_battery() local
57 ret = max77693_get_soc(&pb->bat->state_of_chrg); in power_update_battery()
61 max77693_get_vcell(&pb->bat->voltage_uV); in power_update_battery()
68 struct power_battery *pb = bat->pbat; in power_check_battery() local
82 ret = pmic_reg_read(p, MAX77693_VERSION, &pb->bat->version); in power_check_battery()
89 debug("fg ver: 0x%x\n", pb->bat->version); in power_check_battery()
91 pb->bat->state_of_chrg); in power_check_battery()
94 pb->bat->voltage_uV / 1000000, in power_check_battery()
95 pb->bat->voltage_uV % 1000000, in power_check_battery()
96 pb->bat->capacity); in power_check_battery()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf-c/
H A D0001-Makefile.am-do-not-compile-the-code-which-was-genera.patch40 - t/test.pb-c.c
46 - t/test-full.pb-c.c \
47 - t/test-optimized.pb-c.c
56 - t/test-proto3.pb-c.c
66 - t/test-full.pb.cc \
67 - protobuf-c/protobuf-c.pb.cc
68 -$(t_generated_code2_cxx_generate_packed_data_OBJECTS): t/test-full.pb.h
75 -t/test.pb-c.c t/test.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/test.p…
78 -t/test-optimized.pb-c.c t/test-optimized.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(…
81 -t/test-full.pb-c.c t/test-full.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir…
[all …]
/openbmc/linux/arch/sparc/lib/
H A 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 …]
/openbmc/linux/drivers/media/pci/tw686x/
H A 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 …]
H A 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 …]
/openbmc/u-boot/drivers/power/fuel_gauge/
H A Dfg_max17042.c195 struct power_battery *pb = bat->pbat; in power_update_battery() local
205 pb->bat->state_of_chrg = (val >> 8); in power_update_battery()
209 pb->bat->voltage_uV = ((val & 0xFFUL) >> 3) + ((val & 0xFF00) >> 3); in power_update_battery()
210 pb->bat->voltage_uV = (pb->bat->voltage_uV * 625); in power_update_battery()
213 pb->bat->capacity = val >> 2; in power_update_battery()
220 struct power_battery *pb = bat->pbat; in power_check_battery() local
236 pb->bat->version = val; in power_check_battery()
239 debug("fg ver: 0x%x\n", pb->bat->version); in power_check_battery()
241 pb->bat->state_of_chrg); in power_check_battery()
244 pb->bat->voltage_uV / 1000000, in power_check_battery()
[all …]
/openbmc/linux/drivers/base/regmap/
H A 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 …]
/openbmc/linux/drivers/input/misc/
H A 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()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
H A 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()
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_qsort.c63 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in yaffs_qsort() local
89 pa = pb = (char *)a + es; in yaffs_qsort()
93 while (pb <= pc && (r = cmp(pb, a)) <= 0) { in yaffs_qsort()
96 yswap(pa, pb); in yaffs_qsort()
99 pb += es; in yaffs_qsort()
101 while (pb <= pc && (r = cmp(pc, a)) >= 0) { in yaffs_qsort()
109 if (pb > pc) in yaffs_qsort()
111 yswap(pb, pc); in yaffs_qsort()
113 pb += es; in yaffs_qsort()
125 r = min(pa - (char *)a, pb - pa); in yaffs_qsort()
[all …]
/openbmc/linux/block/partitions/
H A 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 …]
/openbmc/google-misc/subprojects/nemora-postd/src/
H A Dserializer.cpp48 platforms::nemora::proto::EventSeries pb; in SerializeEvent() local
50 pb.set_magic(NEMORA_EVENT_PB_MAGIC); in SerializeEvent()
53 pb.set_mac(p_arr, MAC_ADDR_SIZE); in SerializeEvent()
55 pb.set_sent_time_us(event->sent_time_s * 1000000); in SerializeEvent()
59 pb.add_postcodes(postcode); in SerializeEvent()
62 pb.set_postcodes_protocol( in SerializeEvent()
66 std::format("NemoraEvent {}", pb.DebugString().c_str()).c_str()); in SerializeEvent()
67 pb.SerializeToString(&result); in SerializeEvent()
/openbmc/linux/tools/testing/selftests/bpf/benchs/
H A 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
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf/
H A D0001-examples-Makefile-respect-CXX-LDFLAGS-variables-fix-.patch9 * add ../src/google/protobuf/.libs/timestamp.pb.o when linking
11 …oot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed add_person.cc addressbook.pb.cc -o add_person_cpp…
12 …/tmp/cccjSJQs.o:addressbook.pb.cc:scc_info_Person_addressbook_2eproto: error: undefined reference …
13 …/tmp/cccjSJQs.o:addressbook.pb.cc:descriptor_table_addressbook_2eproto_deps: error: undefined refe…
18 …obuf/3.8.0-r0/recipe-sysroot/usr/lib -lprotobuf list_people.cc addressbook.pb.cc -o list_people_cpp
19 …/tmp/ccpaI5Su.o:addressbook.pb.cc:scc_info_Person_addressbook_2eproto: error: undefined reference …
20 …/tmp/ccpaI5Su.o:addressbook.pb.cc:descriptor_table_addressbook_2eproto_deps: error: undefined refe…
49 - c++ -std=c++14 add_person.cc addressbook.pb.cc -o add_person_cpp `pkg-config --cflags --libs prot…
50 …bs/timestamp.pb.o $(PROTOBUF) add_person.cc addressbook.pb.cc -o add_person_cpp #$(CXX) -std=c++17…
54 - c++ -std=c++14 list_people.cc addressbook.pb.cc -o list_people_cpp `pkg-config --cflags --libs pr…
[all …]
/openbmc/linux/tools/testing/selftests/bpf/
H A 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()
/openbmc/linux/arch/mips/fw/arc/
H A 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()
/openbmc/linux/tools/bpf/runqslower/
H A 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()
/openbmc/linux/fs/ext4/
H A 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()
/openbmc/qemu/fpu/
H A Dsoftfloat.c1871 FloatParts64 pa, pb, *pr; in float16_addsub() local
1874 float16_unpack_canonical(&pb, b, status); in float16_addsub()
1875 pr = parts_addsub(&pa, &pb, status, subtract); in float16_addsub()
1893 FloatParts64 pa, pb, *pr; in soft_f32_addsub() local
1896 float32_unpack_canonical(&pb, b, status); in soft_f32_addsub()
1897 pr = parts_addsub(&pa, &pb, status, subtract); in soft_f32_addsub()
1915 FloatParts64 pa, pb, *pr; in soft_f64_addsub() local
1918 float64_unpack_canonical(&pb, b, status); in soft_f64_addsub()
1919 pr = parts_addsub(&pa, &pb, status, subtract); in soft_f64_addsub()
2012 FloatParts64 pa, pb, *pr; in float64r32_addsub() local
[all …]

12345678