Home
last modified time | relevance | path

Searched full:av (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/openbmc/linux/net/dccp/
H A Dackvec.c19 struct dccp_ackvec *av = kmem_cache_zalloc(dccp_ackvec_slab, priority); in dccp_ackvec_alloc() local
21 if (av != NULL) { in dccp_ackvec_alloc()
22 av->av_buf_head = av->av_buf_tail = DCCPAV_MAX_ACKVEC_LEN - 1; in dccp_ackvec_alloc()
23 INIT_LIST_HEAD(&av->av_records); in dccp_ackvec_alloc()
25 return av; in dccp_ackvec_alloc()
28 static void dccp_ackvec_purge_records(struct dccp_ackvec *av) in dccp_ackvec_purge_records() argument
32 list_for_each_entry_safe(cur, next, &av->av_records, avr_node) in dccp_ackvec_purge_records()
34 INIT_LIST_HEAD(&av->av_records); in dccp_ackvec_purge_records()
37 void dccp_ackvec_free(struct dccp_ackvec *av) in dccp_ackvec_free() argument
39 if (likely(av != NULL)) { in dccp_ackvec_free()
[all …]
H A Dackvec.h106 void dccp_ackvec_free(struct dccp_ackvec *av);
108 void dccp_ackvec_input(struct dccp_ackvec *av, struct sk_buff *skb);
109 int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seq, u8 sum);
110 void dccp_ackvec_clear_state(struct dccp_ackvec *av, const u64 ackno);
111 u16 dccp_ackvec_buflen(const struct dccp_ackvec *av);
113 static inline bool dccp_ackvec_is_empty(const struct dccp_ackvec *av) in dccp_ackvec_is_empty() argument
115 return av->av_overflow == 0 && av->av_buf_head == av->av_buf_tail; in dccp_ackvec_is_empty()
/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dah.c48 ah->av.ib.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | in create_ib_ah()
50 ah->av.ib.g_slid = rdma_ah_get_path_bits(ah_attr); in create_ib_ah()
51 ah->av.ib.sl_tclass_flowlabel = in create_ib_ah()
56 ah->av.ib.g_slid |= 0x80; in create_ib_ah()
57 ah->av.ib.gid_index = grh->sgid_index; in create_ib_ah()
58 ah->av.ib.hop_limit = grh->hop_limit; in create_ib_ah()
59 ah->av.ib.sl_tclass_flowlabel |= in create_ib_ah()
62 memcpy(ah->av.ib.dgid, grh->dgid.raw, 16); in create_ib_ah()
65 ah->av.ib.dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); in create_ib_ah()
73 ah->av.ib.stat_rate = static_rate; in create_ib_ah()
[all …]
/openbmc/linux/drivers/infiniband/hw/mthca/
H A Dmthca_av.c159 struct mthca_av *av = NULL; in mthca_create_ah() local
164 ah->av = kmalloc(sizeof *ah->av, GFP_ATOMIC); in mthca_create_ah()
165 if (!ah->av) in mthca_create_ah()
169 av = ah->av; in mthca_create_ah()
178 av = kmalloc(sizeof *av, GFP_ATOMIC); in mthca_create_ah()
179 if (!av) in mthca_create_ah()
189 ah->av = dma_pool_zalloc(dev->av_table.pool, in mthca_create_ah()
191 if (!ah->av) in mthca_create_ah()
194 av = ah->av; in mthca_create_ah()
199 av->port_pd = cpu_to_be32(pd->pd_num | in mthca_create_ah()
[all …]
/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_av.c10 void rxe_init_av(struct rdma_ah_attr *attr, struct rxe_av *av) in rxe_init_av() argument
12 rxe_av_from_attr(rdma_ah_get_port_num(attr), av, attr); in rxe_init_av()
13 rxe_av_fill_ip_info(av, attr); in rxe_init_av()
14 memcpy(av->dmac, attr->roce.dmac, ETH_ALEN); in rxe_init_av()
73 void rxe_av_from_attr(u8 port_num, struct rxe_av *av, in rxe_av_from_attr() argument
78 memset(av, 0, sizeof(*av)); in rxe_av_from_attr()
79 memcpy(av->grh.dgid.raw, grh->dgid.raw, sizeof(grh->dgid.raw)); in rxe_av_from_attr()
80 av->grh.flow_label = grh->flow_label; in rxe_av_from_attr()
81 av->grh.sgid_index = grh->sgid_index; in rxe_av_from_attr()
82 av->grh.hop_limit = grh->hop_limit; in rxe_av_from_attr()
[all …]
H A Drxe_net.c94 struct rxe_av *av) in rxe_find_route() argument
105 if (av->network_type == RXE_NETWORK_TYPE_IPV4) { in rxe_find_route()
109 saddr = &av->sgid_addr._sockaddr_in.sin_addr; in rxe_find_route()
110 daddr = &av->dgid_addr._sockaddr_in.sin_addr; in rxe_find_route()
112 } else if (av->network_type == RXE_NETWORK_TYPE_IPV6) { in rxe_find_route()
116 saddr6 = &av->sgid_addr._sockaddr_in6.sin6_addr; in rxe_find_route()
117 daddr6 = &av->dgid_addr._sockaddr_in6.sin6_addr; in rxe_find_route()
279 static int prepare4(struct rxe_av *av, struct rxe_pkt_info *pkt, in prepare4() argument
286 struct in_addr *saddr = &av->sgid_addr._sockaddr_in.sin_addr; in prepare4()
287 struct in_addr *daddr = &av->dgid_addr._sockaddr_in.sin_addr; in prepare4()
[all …]
/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_ah.c67 ah->av.port = rdma_ah_get_port_num(ah_attr); in hns_roce_create_ah()
68 ah->av.gid_index = grh->sgid_index; in hns_roce_create_ah()
71 ah->av.stat_rate = IB_RATE_10_GBPS; in hns_roce_create_ah()
73 ah->av.hop_limit = grh->hop_limit; in hns_roce_create_ah()
74 ah->av.flowlabel = grh->flow_label; in hns_roce_create_ah()
75 ah->av.udp_sport = get_ah_udp_sport(ah_attr); in hns_roce_create_ah()
76 ah->av.tclass = get_tclass(grh); in hns_roce_create_ah()
78 ah->av.sl = rdma_ah_get_sl(ah_attr); in hns_roce_create_ah()
80 if (unlikely(ah->av.sl > max_sl)) { in hns_roce_create_ah()
83 ah->av.sl, max_sl); in hns_roce_create_ah()
[all …]
/openbmc/phosphor-hwmon/test/
H A Daverage_unittest.cpp10 Average av; in TEST() local
12 av.setAverageValue(std::make_pair("power", "0"), std::make_pair(0L, 0L)); in TEST()
13 av.setAverageValue(std::make_pair("power", "1"), std::make_pair(0L, 0L)); in TEST()
15 EXPECT_FALSE(av.getAverageValue(std::make_pair("power", "4"))); in TEST()
20 Average av; in TEST() local
22 av.setAverageValue(std::make_pair("power", "0"), std::make_pair(0L, 0L)); in TEST()
23 av.setAverageValue(std::make_pair("power", "1"), std::make_pair(2L, 2L)); in TEST()
25 auto value = av.getAverageValue(std::make_pair("power", "1")); in TEST()
32 Average av; in TEST() local
34 EXPECT_FALSE(av.calcAverage(1L, 1L, 2L, 1L)); in TEST()
[all …]
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dah.c62 memcpy(ah->av.rgid, &grh->dgid, 16); in create_ib_ah()
63 ah->av.grh_gid_fl = cpu_to_be32(grh->flow_label | in create_ib_ah()
66 ah->av.hop_limit = grh->hop_limit; in create_ib_ah()
67 ah->av.tclass = grh->traffic_class; in create_ib_ah()
70 ah->av.stat_rate_sl = (rdma_ah_get_static_rate(ah_attr) << 4); in create_ib_ah()
79 memcpy(ah->av.rmac, ah_attr->roce.dmac, in create_ib_ah()
81 ah->av.udp_sport = mlx5_ah_get_udp_sport(dev, ah_attr); in create_ib_ah()
82 ah->av.stat_rate_sl |= (rdma_ah_get_sl(ah_attr) & 0x7) << 1; in create_ib_ah()
85 ah->av.tclass |= MLX5_ECN_ENABLED; in create_ib_ah()
87 ah->av.rlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); in create_ib_ah()
[all …]
/openbmc/u-boot/drivers/mtd/ubi/
H A Dattach.c176 * @av: information about the volume this logical eraseblock belongs to
189 const struct ubi_ainf_volume *av, int pnum) in validate_vid_hdr() argument
196 if (av->leb_count != 0) { in validate_vid_hdr()
205 if (vol_id != av->vol_id) { in validate_vid_hdr()
210 if (av->vol_type == UBI_STATIC_VOLUME) in validate_vid_hdr()
220 if (used_ebs != av->used_ebs) { in validate_vid_hdr()
225 if (data_pad != av->data_pad) { in validate_vid_hdr()
236 ubi_dump_av(av); in validate_vid_hdr()
250 * to the allocated "av" object in case of success and a negative error code in
257 struct ubi_ainf_volume *av; in add_volume() local
[all …]
H A Dvtbl.c362 * @av: layout volume attaching information
370 struct ubi_ainf_volume *av) argument
406 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) {
532 struct ubi_ainf_volume *av; local
588 av = ubi_find_av(ai, i);
589 if (!av || !av->leb_count) {
601 if (av->leb_count != av->used_ebs) {
607 av->vol_id, av->used_ebs - av->leb_count);
612 vol->used_ebs = av->used_ebs;
615 vol->used_bytes += av->last_data_size;
[all …]
H A Dfastmap.c187 struct ubi_ainf_volume *av; in add_vol() local
192 av = rb_entry(parent, struct ubi_ainf_volume, rb); in add_vol()
194 if (vol_id > av->vol_id) in add_vol()
196 else if (vol_id < av->vol_id) in add_vol()
202 av = kmalloc(sizeof(struct ubi_ainf_volume), GFP_KERNEL); in add_vol()
203 if (!av) in add_vol()
206 av->highest_lnum = av->leb_count = av->used_ebs = 0; in add_vol()
207 av->vol_id = vol_id; in add_vol()
208 av->data_pad = data_pad; in add_vol()
209 av->last_data_size = last_eb_bytes; in add_vol()
[all …]
/openbmc/linux/drivers/mtd/ubi/
H A Dattach.c107 struct ubi_ainf_volume *av; in find_or_add_av() local
113 av = rb_entry(parent, struct ubi_ainf_volume, rb); in find_or_add_av()
115 if (vol_id == av->vol_id) { in find_or_add_av()
121 return av; in find_or_add_av()
124 if (vol_id > av->vol_id) in find_or_add_av()
134 av = kzalloc(sizeof(*av), GFP_KERNEL); in find_or_add_av()
135 if (!av) in find_or_add_av()
138 av->vol_id = vol_id; in find_or_add_av()
143 rb_link_node(&av->rb, parent, p); in find_or_add_av()
144 rb_insert_color(&av->rb, &ai->volumes); in find_or_add_av()
[all …]
H A Dvtbl.c355 * @av: layout volume attaching information
363 struct ubi_ainf_volume *av) in process_lvol() argument
399 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) { in process_lvol()
525 struct ubi_ainf_volume *av; in init_volumes() local
594 av = ubi_find_av(ai, i); in init_volumes()
595 if (!av || !av->leb_count) { in init_volumes()
607 if (av->leb_count != av->used_ebs) { in init_volumes()
613 av->vol_id, av->used_ebs - av->leb_count); in init_volumes()
618 vol->used_ebs = av->used_ebs; in init_volumes()
621 vol->used_bytes += av->last_data_size; in init_volumes()
[all …]
H A Dfastmap.c179 struct ubi_ainf_volume *av; in add_vol() local
181 av = ubi_add_av(ai, vol_id); in add_vol()
182 if (IS_ERR(av)) in add_vol()
183 return av; in add_vol()
185 av->data_pad = data_pad; in add_vol()
186 av->last_data_size = last_eb_bytes; in add_vol()
187 av->compat = 0; in add_vol()
188 av->vol_type = vol_type; in add_vol()
189 if (av->vol_type == UBI_STATIC_VOLUME) in add_vol()
190 av->used_ebs = used_ebs; in add_vol()
[all …]
/openbmc/qemu/tests/unit/
H A Dcheck-qom-proplist.c66 DummyAnimal av; member
99 dobj->av = value; in dummy_set_av()
107 return dobj->av; in dummy_get_av()
143 object_class_property_add_enum(cls, "av", in dummy_class_init()
350 "av", "platypus", in test_dummy_createv()
356 g_assert(dobj->av == DUMMY_PLATYPUS); in test_dummy_createv()
391 "av", "platypus", in test_dummy_createlist()
397 g_assert(dobj->av == DUMMY_PLATYPUS); in test_dummy_createlist()
421 const char *params = "bv=yes,sv=Hiss hiss hiss,av=platypus"; in test_dummy_createcmdl()
441 g_assert(dobj->av == DUMMY_PLATYPUS); in test_dummy_createcmdl()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-platform-lg-laptop4 Contact: "Matan Ziv-Av <matan@svgalib.org>
11 Contact: "Matan Ziv-Av <matan@svgalib.org>
18 Contact: "Matan Ziv-Av <matan@svgalib.org>
26 Contact: "Matan Ziv-Av <matan@svgalib.org>
33 Contact: "Matan Ziv-Av <matan@svgalib.org>
/openbmc/u-boot/cmd/
H A Dsha1sum.c19 char * const *av; in do_sha1sum() local
24 av = argv + 1; in do_sha1sum()
27 if (strcmp(*av, "-v") == 0) { in do_sha1sum()
29 av++; in do_sha1sum()
34 return hash_command("sha1", flags, cmdtp, flag, ac, av); in do_sha1sum()
H A Dmd5sum.c82 char * const *av; in do_md5sum() local
88 av = argv + 1; in do_md5sum()
90 if (strcmp(*av, "-v") == 0) { in do_md5sum()
92 av++; in do_md5sum()
98 addr = simple_strtoul(*av++, NULL, 16); in do_md5sum()
99 len = simple_strtoul(*av++, NULL, 16); in do_md5sum()
112 store_result(output, *av); in do_md5sum()
114 char *verify_str = *av++; in do_md5sum()
/openbmc/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_ah.c126 memcpy(&ah->av->eth_hdr, &eth, eth_sz); in set_av_attr()
139 memcpy((u8 *)ah->av + eth_sz, &ipv4, sizeof(struct iphdr)); in set_av_attr()
150 memcpy((u8 *)ah->av + eth_sz, &grh, sizeof(struct ocrdma_grh)); in set_av_attr()
153 ah->av->valid |= OCRDMA_AV_VLAN_VALID; in set_av_attr()
154 ah->av->valid = cpu_to_le32(ah->av->valid); in set_av_attr()
230 struct ocrdma_av *av = ah->av; in ocrdma_query_ah() local
234 if (ah->av->valid & OCRDMA_AV_VALID) { in ocrdma_query_ah()
235 grh = (struct ocrdma_grh *)((u8 *)ah->av + in ocrdma_query_ah()
237 rdma_ah_set_sl(attr, be16_to_cpu(av->eth_hdr.vlan_tag) >> 13); in ocrdma_query_ah()
239 grh = (struct ocrdma_grh *)((u8 *)ah->av + in ocrdma_query_ah()
/openbmc/linux/drivers/media/pci/cx18/
H A DMakefile5 cx18-av-core.o cx18-av-audio.o cx18-av-firmware.o cx18-av-vbi.o cx18-scb.o \
/openbmc/linux/arch/powerpc/boot/
H A Dhack-coff.c28 main(int ac, char **av) in main() argument
41 if ((fd = open(av[1], 2)) == -1) { in main()
42 perror(av[2]); in main()
49 fprintf(stderr, "%s: not an xcoff file\n", av[1]); in main()
71 fprintf(stderr, "%s: write error\n", av[1]); in main()
78 fprintf(stderr, "%s: read error or file too short\n", av[1]); in main()
/openbmc/openbmc/meta-arm/meta-arm/recipes-bsp/images/
H A Dfirmware-deploy-image.bb21 echo "cp -av ${firmware_loc}/${firmware} ${DEPLOYDIR}/"
22 cp -av "${firmware_loc}/${firmware}" ${DEPLOYDIR}/
24 echo "cp -av ${firmware_loc}/$(readlink ${firmware_loc}/${firmware}) ${DEPLOYDIR}/"
25 cp -av "${firmware_loc}/$(readlink ${firmware_loc}/${firmware})" ${DEPLOYDIR}/
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgk20a.c54 struct gk20a_fw_av *av = &((struct gk20a_fw_av *)blob->data)[i]; in gk20a_gr_av_to_init_() local
56 ent->addr = av->addr; in gk20a_gr_av_to_init_()
57 ent->data = av->data; in gk20a_gr_av_to_init_()
97 struct gk20a_fw_aiv *av = &((struct gk20a_fw_aiv *)blob->data)[i]; in gk20a_gr_aiv_to_init() local
99 ent->addr = av->addr; in gk20a_gr_aiv_to_init()
100 ent->data = av->data; in gk20a_gr_aiv_to_init()
129 struct gk20a_fw_av *av = &((struct gk20a_fw_av *)blob->data)[i]; in gk20a_gr_av_to_method() local
130 u32 class = av->addr & 0xffff; in gk20a_gr_av_to_method()
131 u32 addr = (av->addr & 0xffff0000) >> 14; in gk20a_gr_av_to_method()
146 init->data = av->data; in gk20a_gr_av_to_method()
/openbmc/u-boot/tools/gdb/
H A Dgdbcont.c20 main(int ac, char **av) in main() argument
24 if ((pname = strrchr(av[0], '/')) == NULL) in main()
25 pname = av[0]; in main()
29 while ((c = getopt(ac, av, "b:p:v")) != EOF) in main()

12345678910>>...14