/openbmc/linux/drivers/misc/ |
H A D | tifm_7xx1.c | 21 static void tifm_7xx1_dummy_eject(struct tifm_adapter *fm, in tifm_7xx1_dummy_eject() argument 26 static void tifm_7xx1_eject(struct tifm_adapter *fm, struct tifm_dev *sock) in tifm_7xx1_eject() argument 30 spin_lock_irqsave(&fm->lock, flags); in tifm_7xx1_eject() 31 fm->socket_change_set |= 1 << sock->socket_id; in tifm_7xx1_eject() 32 tifm_queue_work(&fm->media_switcher); in tifm_7xx1_eject() 33 spin_unlock_irqrestore(&fm->lock, flags); in tifm_7xx1_eject() 38 struct tifm_adapter *fm = dev_id; in tifm_7xx1_isr() local 42 spin_lock(&fm->lock); in tifm_7xx1_isr() 43 irq_status = readl(fm->addr + FM_INTERRUPT_STATUS); in tifm_7xx1_isr() 45 spin_unlock(&fm->lock); in tifm_7xx1_isr() [all …]
|
H A D | tifm_core.c | 164 struct tifm_adapter *fm = container_of(dev, struct tifm_adapter, dev); in tifm_free() local 166 kfree(fm); in tifm_free() 177 struct tifm_adapter *fm; in tifm_alloc_adapter() local 179 fm = kzalloc(struct_size(fm, sockets, num_sockets), GFP_KERNEL); in tifm_alloc_adapter() 180 if (fm) { in tifm_alloc_adapter() 181 fm->dev.class = &tifm_adapter_class; in tifm_alloc_adapter() 182 fm->dev.parent = dev; in tifm_alloc_adapter() 183 device_initialize(&fm->dev); in tifm_alloc_adapter() 184 spin_lock_init(&fm->lock); in tifm_alloc_adapter() 185 fm->num_sockets = num_sockets; in tifm_alloc_adapter() [all …]
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | failing_mtms_test.cpp | 41 FailingMTMS fm{dataIface}; in TEST() local 44 EXPECT_EQ(fm.header().id, 0x4D54); in TEST() 45 EXPECT_EQ(fm.header().size, FailingMTMS::flattenedSize()); in TEST() 46 EXPECT_EQ(fm.header().version, 0x01); in TEST() 47 EXPECT_EQ(fm.header().subType, 0x00); in TEST() 48 EXPECT_EQ(fm.header().componentID, 0x2000); in TEST() 50 EXPECT_EQ(fm.getMachineTypeModel(), "AAAA-BBB"); in TEST() 51 EXPECT_EQ(fm.getMachineSerialNumber(), "123456789ABC"); in TEST() 64 FailingMTMS fm{dataIface}; in TEST() local 66 EXPECT_EQ(fm.getMachineTypeModel(), "AAAA-BBB"); in TEST() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tc_conntrack.c | 101 struct flow_match_control fm; in efx_tc_ct_parse_match() local 103 flow_rule_match_control(fr, &fm); in efx_tc_ct_parse_match() 104 if (IS_ALL_ONES(fm.mask->addr_type)) in efx_tc_ct_parse_match() 105 switch (fm.key->addr_type) { in efx_tc_ct_parse_match() 138 struct flow_match_basic fm; in efx_tc_ct_parse_match() local 140 flow_rule_match_basic(fr, &fm); in efx_tc_ct_parse_match() 141 if (!IS_ALL_ONES(fm.mask->n_proto)) { in efx_tc_ct_parse_match() 144 ntohs(fm.mask->n_proto)); in efx_tc_ct_parse_match() 147 conn->eth_proto = fm.key->n_proto; in efx_tc_ct_parse_match() 155 if (!IS_ALL_ONES(fm.mask->ip_proto)) { in efx_tc_ct_parse_match() [all …]
|
H A D | tc.c | 227 struct flow_match_##_type fm; \ 229 flow_rule_match_##_tcget(rule, &fm); \ 230 match->value._field = fm.key->_tcfield; \ 231 match->mask._field = fm.mask->_tcfield; \ 253 struct flow_match_control fm; in efx_tc_flower_parse_match() local 255 flow_rule_match_control(rule, &fm); in efx_tc_flower_parse_match() 256 if (IS_ALL_ONES(fm.mask->addr_type)) in efx_tc_flower_parse_match() 257 switch (fm.key->addr_type) { in efx_tc_flower_parse_match() 268 if (fm.mask->flags & FLOW_DIS_IS_FRAGMENT) { in efx_tc_flower_parse_match() 269 match->value.ip_frag = fm.key->flags & FLOW_DIS_IS_FRAGMENT; in efx_tc_flower_parse_match() [all …]
|
/openbmc/linux/fs/fuse/ |
H A D | xattr.c | 17 struct fuse_mount *fm = get_fuse_mount(inode); in fuse_setxattr() local 22 if (fm->fc->no_setxattr) in fuse_setxattr() 33 args.in_args[0].size = fm->fc->setxattr_ext ? in fuse_setxattr() 40 err = fuse_simple_request(fm, &args); in fuse_setxattr() 42 fm->fc->no_setxattr = 1; in fuse_setxattr() 54 struct fuse_mount *fm = get_fuse_mount(inode); in fuse_getxattr() local 60 if (fm->fc->no_getxattr) in fuse_getxattr() 82 ret = fuse_simple_request(fm, &args); in fuse_getxattr() 86 fm->fc->no_getxattr = 1; in fuse_getxattr() 112 struct fuse_mount *fm = get_fuse_mount(inode); in fuse_listxattr() local [all …]
|
H A D | file.c | 23 static int fuse_send_open(struct fuse_mount *fm, u64 nodeid, in fuse_send_open() argument 32 if (!fm->fc->atomic_o_trunc) in fuse_send_open() 35 if (fm->fc->handle_killpriv_v2 && in fuse_send_open() 49 return fuse_simple_request(fm, &args); in fuse_send_open() 58 struct fuse_file *fuse_file_alloc(struct fuse_mount *fm) in fuse_file_alloc() argument 66 ff->fm = fm; in fuse_file_alloc() 80 ff->kh = atomic64_inc_return(&fm->fc->khctr); in fuse_file_alloc() 98 static void fuse_release_end(struct fuse_mount *fm, struct fuse_args *args, in fuse_release_end() argument 112 if (isdir ? ff->fm->fc->no_opendir : ff->fm->fc->no_open) { in fuse_file_put() 114 fuse_release_end(ff->fm, args, 0); in fuse_file_put() [all …]
|
H A D | inode.c | 492 struct fuse_mount **fm) in fuse_ilookup() argument 504 if (fm) in fuse_ilookup() 505 *fm = fm_iter; in fuse_ilookup() 577 static void fuse_send_destroy(struct fuse_mount *fm) in fuse_send_destroy() argument 579 if (fm->fc->conn_init) { in fuse_send_destroy() 585 fuse_simple_request(fm, &args); in fuse_send_destroy() 606 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_statfs() local 611 if (!fuse_allow_current_process(fm->fc)) { in fuse_statfs() 623 err = fuse_simple_request(fm, &args); in fuse_statfs() 682 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_sync_fs() local [all …]
|
H A D | ioctl.c | 12 static ssize_t fuse_send_ioctl(struct fuse_mount *fm, struct fuse_args *args, in fuse_send_ioctl() argument 20 ret = fuse_simple_request(fm, args); in fuse_send_ioctl() 171 struct fuse_mount *fm = ff->fm; in fuse_do_ioctl() local 204 ap.pages = fuse_pages_alloc(fm->fc->max_pages, GFP_KERNEL, &ap.descs); in fuse_do_ioctl() 209 fuse_page_descs_length_init(ap.descs, 0, fm->fc->max_pages); in fuse_do_ioctl() 245 if (max_pages > fm->fc->max_pages) in fuse_do_ioctl() 280 transferred = fuse_send_ioctl(fm, &ap.args, &outarg); in fuse_do_ioctl() 308 err = fuse_copy_ioctl_iovec(fm->fc, iov_page, vaddr, in fuse_do_ioctl() 318 err = fuse_verify_ioctl_iov(fm->fc, in_iov, in_iovs); in fuse_do_ioctl() 322 err = fuse_verify_ioctl_iov(fm->fc, out_iov, out_iovs); in fuse_do_ioctl() [all …]
|
H A D | dir.c | 199 struct fuse_mount *fm; in fuse_dentry_revalidate() local 221 fm = get_fuse_mount(inode); in fuse_dentry_revalidate() 228 attr_version = fuse_get_attr_version(fm->fc); in fuse_dentry_revalidate() 231 fuse_lookup_init(fm->fc, &args, get_node_id(d_inode(parent)), in fuse_dentry_revalidate() 233 ret = fuse_simple_request(fm, &args); in fuse_dentry_revalidate() 242 fuse_queue_forget(fm->fc, forget, in fuse_dentry_revalidate() 366 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_lookup_name() local 383 attr_version = fuse_get_attr_version(fm->fc); in fuse_lookup_name() 385 fuse_lookup_init(fm->fc, &args, nodeid, name, outarg); in fuse_lookup_name() 386 err = fuse_simple_request(fm, &args); in fuse_lookup_name() [all …]
|
H A D | cuse.c | 60 struct fuse_mount fm; /* Dummy mount referencing fc */ member 138 rc = fuse_do_open(&cc->fm, 0, file, 0); in cuse_open() 147 struct fuse_mount *fm = ff->fm; in cuse_release() local 150 fuse_conn_put(fm->fc); in cuse_release() 159 struct cuse_conn *cc = fc_to_cc(ff->fm->fc); in cuse_file_ioctl() 172 struct cuse_conn *cc = fc_to_cc(ff->fm->fc); in cuse_file_compat_ioctl() 317 static void cuse_process_init_reply(struct fuse_mount *fm, in cuse_process_init_reply() argument 320 struct fuse_conn *fc = fm->fc; in cuse_process_init_reply() 429 struct fuse_mount *fm = &cc->fm; in cuse_send_init() local 465 rc = fuse_simple_background(fm, &ap->args, GFP_KERNEL); in cuse_send_init() [all …]
|
H A D | fuse_i.h | 199 struct fuse_mount *fm; member 288 void (*end)(struct fuse_mount *fm, struct fuse_args *args, int error); 398 struct fuse_mount *fm; member 1039 struct fuse_file *fuse_file_alloc(struct fuse_mount *fm); 1112 ssize_t fuse_simple_request(struct fuse_mount *fm, struct fuse_args *args); 1113 int fuse_simple_background(struct fuse_mount *fm, struct fuse_args *args, 1156 void fuse_conn_init(struct fuse_conn *fc, struct fuse_mount *fm, 1169 void fuse_send_init(struct fuse_mount *fm); 1183 bool fuse_mount_remove(struct fuse_mount *fm); 1193 void fuse_conn_destroy(struct fuse_mount *fm); [all …]
|
H A D | dev.c | 43 static void fuse_request_init(struct fuse_mount *fm, struct fuse_req *req) in fuse_request_init() argument 50 req->fm = fm; in fuse_request_init() 53 static struct fuse_req *fuse_request_alloc(struct fuse_mount *fm, gfp_t flags) in fuse_request_alloc() argument 57 fuse_request_init(fm, req); in fuse_request_alloc() 106 static struct fuse_req *fuse_get_req(struct fuse_mount *fm, bool for_background) in fuse_get_req() argument 108 struct fuse_conn *fc = fm->fc; in fuse_get_req() 130 req = fuse_request_alloc(fm, GFP_KERNEL); in fuse_get_req() 160 struct fuse_conn *fc = req->fm->fc; in fuse_put_request() 282 struct fuse_mount *fm = req->fm; in fuse_request_end() local 283 struct fuse_conn *fc = fm->fc; in fuse_request_end() [all …]
|
H A D | virtio_fs.c | 1306 struct fuse_mount *fm = get_fuse_mount_super(sb); in virtio_fs_fill_super() local 1307 struct fuse_conn *fc = fm->fc; in virtio_fs_fill_super() 1359 fuse_send_init(fm); in virtio_fs_fill_super() 1370 static void virtio_fs_conn_destroy(struct fuse_mount *fm) in virtio_fs_conn_destroy() argument 1372 struct fuse_conn *fc = fm->fc; in virtio_fs_conn_destroy() 1388 fuse_conn_destroy(fm); in virtio_fs_conn_destroy() 1402 struct fuse_mount *fm = get_fuse_mount_super(sb); in virtio_kill_sb() local 1407 last = fuse_mount_remove(fm); in virtio_kill_sb() 1409 virtio_fs_conn_destroy(fm); in virtio_kill_sb() 1412 fuse_mount_destroy(fm); in virtio_kill_sb() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_psfp.c | 188 struct sparx5_psfp_fm *fm) in sparx5_sdlb_conf_set() argument 193 if (!fm->pol.rate && !fm->pol.burst) in sparx5_sdlb_conf_set() 198 sparx5_policer_conf_set(sparx5, &fm->pol); in sparx5_sdlb_conf_set() 200 return sparx5_sdlb_group_action(sparx5, fm->pol.group, fm->pol.idx); in sparx5_sdlb_conf_set() 267 struct sparx5_psfp_fm *fm, u32 *id) in sparx5_psfp_fm_add() argument 269 struct sparx5_policer *pol = &fm->pol; in sparx5_psfp_fm_add() 273 ret = sparx5_psfp_fm_get(uidx, &fm->pol.idx); in sparx5_psfp_fm_add() 284 fm->pol.group = ret; in sparx5_psfp_fm_add() 286 ret = sparx5_sdlb_conf_set(sparx5, fm); in sparx5_psfp_fm_add() 290 *id = fm->pol.idx; in sparx5_psfp_fm_add() [all …]
|
/openbmc/u-boot/drivers/mtd/ubi/ |
H A D | fastmap.c | 606 struct ubi_fastmap_layout *fm) in ubi_attach_fastmap() argument 665 fm->max_pool_size = be16_to_cpu(fmpl->max_size); in ubi_attach_fastmap() 666 fm->max_wl_pool_size = be16_to_cpu(fmpl_wl->max_size); in ubi_attach_fastmap() 679 if (fm->max_pool_size > UBI_FM_MAX_POOL_SIZE || in ubi_attach_fastmap() 680 fm->max_pool_size < 0) { in ubi_attach_fastmap() 681 ubi_err(ubi, "bad maximal pool size: %i", fm->max_pool_size); in ubi_attach_fastmap() 685 if (fm->max_wl_pool_size > UBI_FM_MAX_POOL_SIZE || in ubi_attach_fastmap() 686 fm->max_wl_pool_size < 0) { in ubi_attach_fastmap() 688 fm->max_wl_pool_size); in ubi_attach_fastmap() 840 ai->bad_peb_count - fm->used_blocks)) in ubi_attach_fastmap() [all …]
|
H A D | fastmap-wl.c | 371 if (ubi->fm) { in ubi_fastmap_close() 372 for (i = 0; i < ubi->fm->used_blocks; i++) in ubi_fastmap_close() 373 kfree(ubi->fm->e[i]); in ubi_fastmap_close() 375 kfree(ubi->fm); in ubi_fastmap_close() 389 if (e && !ubi->fm_disabled && !ubi->fm && in may_reserve_for_fm()
|
/openbmc/linux/drivers/mtd/ubi/ |
H A D | fastmap.c | 550 struct ubi_fastmap_layout *fm) in ubi_attach_fastmap() argument 609 fm->max_pool_size = be16_to_cpu(fmpl->max_size); in ubi_attach_fastmap() 610 fm->max_wl_pool_size = be16_to_cpu(fmpl_wl->max_size); in ubi_attach_fastmap() 623 if (fm->max_pool_size > UBI_FM_MAX_POOL_SIZE || in ubi_attach_fastmap() 624 fm->max_pool_size < 0) { in ubi_attach_fastmap() 625 ubi_err(ubi, "bad maximal pool size: %i", fm->max_pool_size); in ubi_attach_fastmap() 629 if (fm->max_wl_pool_size > UBI_FM_MAX_POOL_SIZE || in ubi_attach_fastmap() 630 fm->max_wl_pool_size < 0) { in ubi_attach_fastmap() 632 fm->max_wl_pool_size); in ubi_attach_fastmap() 791 ai->bad_peb_count - fm->used_blocks)) in ubi_attach_fastmap() [all …]
|
H A D | fastmap-wl.c | 479 if (ubi->fm) { in ubi_fastmap_close() 480 for (i = 0; i < ubi->fm->used_blocks; i++) in ubi_fastmap_close() 481 kfree(ubi->fm->e[i]); in ubi_fastmap_close() 483 kfree(ubi->fm); in ubi_fastmap_close() 497 if (e && !ubi->fm_disabled && !ubi->fm && in may_reserve_for_fm()
|
/openbmc/linux/include/linux/ |
H A D | tifm.h | 122 void (*eject)(struct tifm_adapter *fm, 124 int (*has_ms_pif)(struct tifm_adapter *fm, 132 int tifm_add_adapter(struct tifm_adapter *fm); 133 void tifm_remove_adapter(struct tifm_adapter *fm); 134 void tifm_free_adapter(struct tifm_adapter *fm); 137 struct tifm_dev *tifm_alloc_device(struct tifm_adapter *fm, unsigned int id,
|
/openbmc/u-boot/drivers/mtd/ubispl/ |
H A D | ubispl.c | 283 struct ubi_fastmap_layout *fm) in ubi_attach_fastmap() argument 333 fm->max_pool_size = be16_to_cpu(fmpl1->max_size); in ubi_attach_fastmap() 334 fm->max_wl_pool_size = be16_to_cpu(fmpl2->max_size); in ubi_attach_fastmap() 346 if (fm->max_pool_size > UBI_FM_MAX_POOL_SIZE || in ubi_attach_fastmap() 347 fm->max_pool_size < 0) { in ubi_attach_fastmap() 348 ubi_err("bad maximal pool size: %i", fm->max_pool_size); in ubi_attach_fastmap() 352 if (fm->max_wl_pool_size > UBI_FM_MAX_POOL_SIZE || in ubi_attach_fastmap() 353 fm->max_wl_pool_size < 0) { in ubi_attach_fastmap() 354 ubi_err("bad maximal WL pool size: %i", fm->max_wl_pool_size); in ubi_attach_fastmap() 479 ai->bad_peb_count - fm->used_blocks)) in ubi_attach_fastmap() [all …]
|
/openbmc/linux/sound/drivers/opl3/ |
H A D | opl3_midi.c | 300 struct fm_instrument *fm; in snd_opl3_note_on() local 346 fm = &patch->inst; in snd_opl3_note_on() 434 vol_op[i] = fm->op[i].ksl_level; in snd_opl3_note_on() 436 connection = fm->feedback_connection[0] & 0x01; in snd_opl3_note_on() 439 connection |= fm->feedback_connection[1] & 0x01; in snd_opl3_note_on() 466 reg_val = fm->op[i].am_vib; in snd_opl3_note_on() 476 reg_val = fm->op[i].attack_decay; in snd_opl3_note_on() 481 reg_val = fm->op[i].sustain_release; in snd_opl3_note_on() 486 reg_val = fm->op[i].wave_select; in snd_opl3_note_on() 492 reg_val = fm->feedback_connection[0]; in snd_opl3_note_on() [all …]
|
/openbmc/openbmc/poky/meta/recipes-support/libfm/ |
H A D | libfm_1.3.2.bb | 8 file://src/fm.h;beginline=8;endline=21;md5=ef1f84da64b3c01cca447212f7ef6007 \ 9 … file://src/base/fm-config.h;beginline=10;endline=23;md5=ef1f84da64b3c01cca447212f7ef6007 \ 10 file://src/fm-gtk.h;beginline=6;endline=19;md5=646baa4955c04fe768f2ca27b92ac8dd" 48 rm -f ${D}${includedir}/libfm-1.0/fm-xml-file.h 49 rm -f ${D}${includedir}/libfm-1.0/fm-version.h 50 rm -f ${D}${includedir}/libfm-1.0/fm-extra.h
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cs42xx8.c | 268 u32 fm[2]; in cs42xx8_hw_params() local 284 fm[i] = CS42XX8_FM_AUTO; in cs42xx8_hw_params() 287 fm[i] = CS42XX8_FM_SINGLE; in cs42xx8_hw_params() 289 fm[i] = CS42XX8_FM_DOUBLE; in cs42xx8_hw_params() 291 fm[i] = CS42XX8_FM_QUAD; in cs42xx8_hw_params() 302 condition1 = ((fm[tx] == CS42XX8_FM_AUTO) ? in cs42xx8_hw_params() 306 (cs42xx8_ratios[i].ratio[fm[tx]] == ratio[tx])) && in cs42xx8_hw_params() 314 condition2 = ((fm[!tx] == CS42XX8_FM_AUTO) ? in cs42xx8_hw_params() 318 (cs42xx8_ratios[i].ratio[fm[!tx]] == ratio[!tx])); in cs42xx8_hw_params() 343 CS42XX8_FUNCMOD_xC_FM(tx, fm[tx]) | val); in cs42xx8_hw_params()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_formats.c | 35 bp, flg, fm, np) \ argument 47 .fetch_mode = fm, \ 54 alpha, bp, flg, fm, np, th) \ argument 66 .fetch_mode = fm, \ 74 alpha, chroma, count, bp, flg, fm, np) \ argument 86 .fetch_mode = fm, \ 92 #define PSEUDO_YUV_FMT(fmt, a, r, g, b, e0, e1, chroma, flg, fm, np) \ argument 104 .fetch_mode = fm, \ 111 flg, fm, np, th) \ argument 123 .fetch_mode = fm, \ [all …]
|