/Linux-v5.4/drivers/media/common/b2c2/ |
D | flexcop.c | 56 struct flexcop_device *fc = dvbdmxfeed->demux->priv; in flexcop_dvb_start_feed() local 57 return flexcop_pid_feed_control(fc, dvbdmxfeed, 1); in flexcop_dvb_start_feed() 62 struct flexcop_device *fc = dvbdmxfeed->demux->priv; in flexcop_dvb_stop_feed() local 63 return flexcop_pid_feed_control(fc, dvbdmxfeed, 0); in flexcop_dvb_stop_feed() 66 static int flexcop_dvb_init(struct flexcop_device *fc) in flexcop_dvb_init() argument 68 int ret = dvb_register_adapter(&fc->dvb_adapter, in flexcop_dvb_init() 69 "FlexCop Digital TV device", fc->owner, in flexcop_dvb_init() 70 fc->dev, adapter_nr); in flexcop_dvb_init() 75 fc->dvb_adapter.priv = fc; in flexcop_dvb_init() 77 fc->demux.dmx.capabilities = (DMX_TS_FILTERING | DMX_SECTION_FILTERING in flexcop_dvb_init() [all …]
|
D | flexcop-hw-filter.c | 9 static void flexcop_rcv_data_ctrl(struct flexcop_device *fc, int onoff) in flexcop_rcv_data_ctrl() argument 15 void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff) in flexcop_smc_ctrl() argument 20 static void flexcop_null_filter_ctrl(struct flexcop_device *fc, int onoff) in flexcop_null_filter_ctrl() argument 25 void flexcop_set_mac_filter(struct flexcop_device *fc, u8 mac[6]) in flexcop_set_mac_filter() argument 28 v41c = fc->read_ibi_reg(fc, mac_address_41c); in flexcop_set_mac_filter() 37 fc->write_ibi_reg(fc, mac_address_418, v418); in flexcop_set_mac_filter() 38 fc->write_ibi_reg(fc, mac_address_41c, v41c); in flexcop_set_mac_filter() 41 void flexcop_mac_filter_ctrl(struct flexcop_device *fc, int onoff) in flexcop_mac_filter_ctrl() argument 46 static void flexcop_pid_group_filter(struct flexcop_device *fc, in flexcop_pid_group_filter() argument 53 fc->write_ibi_reg(fc, pid_filter_30c, v30c); in flexcop_pid_group_filter() [all …]
|
D | flexcop-fe-tuner.c | 34 struct flexcop_device *fc = fe->dvb->priv; in flexcop_fe_request_firmware() local 36 return request_firmware(fw, name, fc->dev); in flexcop_fe_request_firmware() 45 struct flexcop_device *fc = fe->dvb->priv; in flexcop_set_voltage() local 49 v = fc->read_ibi_reg(fc, misc_204); in flexcop_set_voltage() 66 return fc->write_ibi_reg(fc, misc_204, v); in flexcop_set_voltage() 73 struct flexcop_device *fc = fe->dvb->priv; in flexcop_sleep() local 74 if (fc->fe_sleep) in flexcop_sleep() 75 return fc->fe_sleep(fe); in flexcop_sleep() 85 struct flexcop_device *fc = fe->dvb->priv; in flexcop_set_tone() local 106 return fc->write_ibi_reg(fc,lnb_switch_freq_200,v); in flexcop_set_tone() [all …]
|
D | flexcop-i2c.c | 11 static int flexcop_i2c_operation(struct flexcop_device *fc, in flexcop_i2c_operation() argument 20 fc->write_ibi_reg(fc, tw_sm_c_100, ibi_zero); in flexcop_i2c_operation() 21 fc->write_ibi_reg(fc, tw_sm_c_100, *r100); /* initiating i2c operation */ in flexcop_i2c_operation() 24 r = fc->read_ibi_reg(fc, tw_sm_c_100); in flexcop_i2c_operation() 59 if (i2c->fc->dev_type == FC_SKY_REV27) in flexcop_i2c_read4() 62 ret = flexcop_i2c_operation(i2c->fc, &r100); in flexcop_i2c_read4() 66 ret = flexcop_i2c_operation(i2c->fc, &r100); in flexcop_i2c_read4() 76 r104 = i2c->fc->read_ibi_reg(i2c->fc, tw_sm_c_104); in flexcop_i2c_read4() 87 static int flexcop_i2c_write4(struct flexcop_device *fc, in flexcop_i2c_write4() argument 103 fc->write_ibi_reg(fc, tw_sm_c_104, r104); in flexcop_i2c_write4() [all …]
|
D | flexcop-common.h | 50 struct flexcop_device *fc; member 104 int (*get_mac_addr) (struct flexcop_device *fc, int extended); 111 void flexcop_pass_dmx_data(struct flexcop_device *fc, u8 *buf, u32 len); 112 void flexcop_pass_dmx_packets(struct flexcop_device *fc, u8 *buf, u32 no); 118 void flexcop_device_exit(struct flexcop_device *fc); 119 void flexcop_reset_block_300(struct flexcop_device *fc); 126 int flexcop_dma_control_timer_irq(struct flexcop_device *fc, 128 int flexcop_dma_control_size_irq(struct flexcop_device *fc, 130 int flexcop_dma_config(struct flexcop_device *fc, struct flexcop_dma *dma, 132 int flexcop_dma_xfer_control(struct flexcop_device *fc, [all …]
|
D | flexcop-misc.c | 9 void flexcop_determine_revision(struct flexcop_device *fc) in flexcop_determine_revision() argument 11 flexcop_ibi_value v = fc->read_ibi_reg(fc,misc_204); in flexcop_determine_revision() 16 fc->rev = FLEXCOP_II; in flexcop_determine_revision() 20 fc->rev = FLEXCOP_IIB; in flexcop_determine_revision() 24 fc->rev = FLEXCOP_III; in flexcop_determine_revision() 32 if ((fc->has_32_hw_pid_filter = v.misc_204.Rev_N_sig_caps)) in flexcop_determine_revision() 65 void flexcop_device_name(struct flexcop_device *fc, in flexcop_device_name() argument 69 prefix, flexcop_device_names[fc->dev_type], in flexcop_device_name() 70 flexcop_bus_names[fc->bus_type], in flexcop_device_name() 71 flexcop_revision_names[fc->rev], suffix); in flexcop_device_name() [all …]
|
/Linux-v5.4/fs/afs/ |
D | rotate.c | 23 bool afs_begin_vnode_operation(struct afs_fs_cursor *fc, struct afs_vnode *vnode, in afs_begin_vnode_operation() argument 26 memset(fc, 0, sizeof(*fc)); in afs_begin_vnode_operation() 27 fc->vnode = vnode; in afs_begin_vnode_operation() 28 fc->key = key; in afs_begin_vnode_operation() 29 fc->ac.error = SHRT_MAX; in afs_begin_vnode_operation() 30 fc->error = -EDESTADDRREQ; in afs_begin_vnode_operation() 33 fc->flags |= AFS_FS_CURSOR_INTR; in afs_begin_vnode_operation() 35 fc->error = -EINTR; in afs_begin_vnode_operation() 36 fc->flags |= AFS_FS_CURSOR_STOP; in afs_begin_vnode_operation() 44 fc->flags |= AFS_FS_CURSOR_CUR_ONLY; in afs_begin_vnode_operation() [all …]
|
D | xattr.c | 45 struct afs_fs_cursor fc; in afs_xattr_get_acl() local 63 if (afs_begin_vnode_operation(&fc, vnode, key, true)) { in afs_xattr_get_acl() 66 while (afs_select_fileserver(&fc)) { in afs_xattr_get_acl() 67 fc.cb_break = afs_calc_vnode_cb_break(vnode); in afs_xattr_get_acl() 68 acl = afs_fs_fetch_acl(&fc, scb); in afs_xattr_get_acl() 71 afs_check_for_remote_deletion(&fc, fc.vnode); in afs_xattr_get_acl() 72 afs_vnode_commit_status(&fc, vnode, fc.cb_break, in afs_xattr_get_acl() 74 ret = afs_end_vnode_operation(&fc); in afs_xattr_get_acl() 103 struct afs_fs_cursor fc; in afs_xattr_set_acl() local 131 if (afs_begin_vnode_operation(&fc, vnode, key, true)) { in afs_xattr_set_acl() [all …]
|
D | fsclient.c | 275 int afs_fs_fetch_file_status(struct afs_fs_cursor *fc, struct afs_status_cb *scb, in afs_fs_fetch_file_status() argument 278 struct afs_vnode *vnode = fc->vnode; in afs_fs_fetch_file_status() 283 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_fetch_file_status() 284 return yfs_fs_fetch_file_status(fc, scb, volsync); in afs_fs_fetch_file_status() 287 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_file_status() 292 fc->ac.error = -ENOMEM; in afs_fs_fetch_file_status() 296 call->key = fc->key; in afs_fs_fetch_file_status() 307 afs_use_fs_server(call, fc->cbi); in afs_fs_fetch_file_status() 310 afs_set_fc_call(call, fc); in afs_fs_fetch_file_status() 311 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_fetch_file_status() [all …]
|
D | dir_silly.c | 22 struct afs_fs_cursor fc; in afs_do_silly_rename() local 33 if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { in afs_do_silly_rename() 36 while (afs_select_fileserver(&fc)) { in afs_do_silly_rename() 37 fc.cb_break = afs_calc_vnode_cb_break(dvnode); in afs_do_silly_rename() 38 afs_fs_rename(&fc, old->d_name.name, in afs_do_silly_rename() 43 afs_vnode_commit_status(&fc, dvnode, fc.cb_break, in afs_do_silly_rename() 45 ret = afs_end_vnode_operation(&fc); in afs_do_silly_rename() 144 struct afs_fs_cursor fc; in afs_do_silly_unlink() local 155 if (afs_begin_vnode_operation(&fc, dvnode, key, false)) { in afs_do_silly_unlink() 158 while (afs_select_fileserver(&fc)) { in afs_do_silly_unlink() [all …]
|
/Linux-v5.4/fs/ |
D | fs_context.c | 39 static int legacy_init_fs_context(struct fs_context *fc); 84 static int vfs_parse_sb_flag(struct fs_context *fc, const char *key) in vfs_parse_sb_flag() argument 95 fc->sb_flags |= token; in vfs_parse_sb_flag() 96 fc->sb_flags_mask |= token; in vfs_parse_sb_flag() 102 fc->sb_flags &= ~token; in vfs_parse_sb_flag() 103 fc->sb_flags_mask |= token; in vfs_parse_sb_flag() 126 int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param) in vfs_parse_fs_param() argument 131 return invalf(fc, "Unnamed parameter\n"); in vfs_parse_fs_param() 133 ret = vfs_parse_sb_flag(fc, param->key); in vfs_parse_fs_param() 137 ret = security_fs_context_parse_param(fc, param); in vfs_parse_fs_param() [all …]
|
D | fsopen.c | 27 struct fs_context *fc = file->private_data; in fscontext_read() local 28 struct fc_log *log = fc->log; in fscontext_read() 35 ret = mutex_lock_interruptible(&fc->uapi_mutex); in fscontext_read() 40 mutex_unlock(&fc->uapi_mutex); in fscontext_read() 50 mutex_unlock(&fc->uapi_mutex); in fscontext_read() 69 struct fs_context *fc = file->private_data; in fscontext_release() local 71 if (fc) { in fscontext_release() 73 put_fs_context(fc); in fscontext_release() 87 static int fscontext_create_fd(struct fs_context *fc, unsigned int o_flags) in fscontext_create_fd() argument 91 fd = anon_inode_getfd("[fscontext]", &fscontext_fops, fc, in fscontext_create_fd() [all …]
|
D | super.c | 483 bool mount_capable(struct fs_context *fc) in mount_capable() argument 485 if (!(fc->fs_type->fs_flags & FS_USERNS_MOUNT)) in mount_capable() 488 return ns_capable(fc->user_ns, CAP_SYS_ADMIN); in mount_capable() 509 struct super_block *sget_fc(struct fs_context *fc, in sget_fc() argument 515 struct user_namespace *user_ns = fc->global ? &init_user_ns : fc->user_ns; in sget_fc() 521 hlist_for_each_entry(old, &fc->fs_type->fs_supers, s_instances) { in sget_fc() 522 if (test(old, fc)) in sget_fc() 528 s = alloc_super(fc->fs_type, fc->sb_flags, user_ns); in sget_fc() 534 s->s_fs_info = fc->s_fs_info; in sget_fc() 535 err = set(s, fc); in sget_fc() [all …]
|
/Linux-v5.4/drivers/isdn/hardware/mISDN/ |
D | avmfritz.c | 172 struct fritzcard *fc = p; in ReadISAC_V1() local 175 outb(idx, fc->addr + CHIP_INDEX); in ReadISAC_V1() 176 return inb(fc->addr + CHIP_WINDOW + (offset & 0xf)); in ReadISAC_V1() 182 struct fritzcard *fc = p; in WriteISAC_V1() local 185 outb(idx, fc->addr + CHIP_INDEX); in WriteISAC_V1() 186 outb(value, fc->addr + CHIP_WINDOW + (offset & 0xf)); in WriteISAC_V1() 192 struct fritzcard *fc = p; in ReadFiFoISAC_V1() local 194 outb(AVM_ISAC_FIFO, fc->addr + CHIP_INDEX); in ReadFiFoISAC_V1() 195 insb(fc->addr + CHIP_WINDOW, data, size); in ReadFiFoISAC_V1() 201 struct fritzcard *fc = p; in WriteFiFoISAC_V1() local [all …]
|
/Linux-v5.4/drivers/md/ |
D | dm-flakey.c | 18 #define all_corrupt_bio_flags_match(bio, fc) \ argument 19 (((bio)->bi_opf & (fc)->corrupt_bio_flags) == (fc)->corrupt_bio_flags) 47 static int parse_features(struct dm_arg_set *as, struct flakey_c *fc, in parse_features() argument 82 if (test_and_set_bit(DROP_WRITES, &fc->flags)) { in parse_features() 85 } else if (test_bit(ERROR_WRITES, &fc->flags)) { in parse_features() 97 if (test_and_set_bit(ERROR_WRITES, &fc->flags)) { in parse_features() 101 } else if (test_bit(DROP_WRITES, &fc->flags)) { in parse_features() 118 r = dm_read_arg(_args + 1, as, &fc->corrupt_bio_byte, &ti->error); in parse_features() 128 fc->corrupt_bio_rw = WRITE; in parse_features() 130 fc->corrupt_bio_rw = READ; in parse_features() [all …]
|
/Linux-v5.4/fs/fuse/ |
D | control.c | 25 struct fuse_conn *fc; in fuse_ctl_file_conn_get() local 27 fc = file_inode(file)->i_private; in fuse_ctl_file_conn_get() 28 if (fc) in fuse_ctl_file_conn_get() 29 fc = fuse_conn_get(fc); in fuse_ctl_file_conn_get() 31 return fc; in fuse_ctl_file_conn_get() 37 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); in fuse_conn_abort_write() local 38 if (fc) { in fuse_conn_abort_write() 39 if (fc->abort_err) in fuse_conn_abort_write() 40 fc->aborted = true; in fuse_conn_abort_write() 41 fuse_abort_conn(fc); in fuse_conn_abort_write() [all …]
|
D | inode.c | 114 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_evict_inode() local 115 fuse_queue_forget(fc, fi->forget, fi->nodeid, fi->nlookup); in fuse_evict_inode() 148 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_change_attributes_common() local 153 fi->attr_version = atomic64_inc_return(&fc->attr_version); in fuse_change_attributes_common() 160 inode->i_uid = make_kuid(fc->user_ns, attr->uid); in fuse_change_attributes_common() 161 inode->i_gid = make_kgid(fc->user_ns, attr->gid); in fuse_change_attributes_common() 166 if (!fc->writeback_cache || !S_ISREG(inode->i_mode)) { in fuse_change_attributes_common() 184 if (!fc->default_permissions) in fuse_change_attributes_common() 193 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_change_attributes() local 195 bool is_wb = fc->writeback_cache; in fuse_change_attributes() [all …]
|
D | dev.c | 77 void fuse_set_initialized(struct fuse_conn *fc) in fuse_set_initialized() argument 81 fc->initialized = 1; in fuse_set_initialized() 84 static bool fuse_block_alloc(struct fuse_conn *fc, bool for_background) in fuse_block_alloc() argument 86 return !fc->initialized || (for_background && fc->blocked); in fuse_block_alloc() 89 static void fuse_drop_waiting(struct fuse_conn *fc) in fuse_drop_waiting() argument 96 if (atomic_dec_and_test(&fc->num_waiting) && in fuse_drop_waiting() 97 !READ_ONCE(fc->connected)) { in fuse_drop_waiting() 99 wake_up_all(&fc->blocked_waitq); in fuse_drop_waiting() 103 static void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req); 105 static struct fuse_req *fuse_get_req(struct fuse_conn *fc, bool for_background) in fuse_get_req() argument [all …]
|
/Linux-v5.4/drivers/mtd/ |
D | mtdsuper.c | 25 static int mtd_test_super(struct super_block *sb, struct fs_context *fc) in mtd_test_super() argument 27 struct mtd_info *mtd = fc->sget_key; in mtd_test_super() 29 if (sb->s_mtd == fc->sget_key) { in mtd_test_super() 45 static int mtd_set_super(struct super_block *sb, struct fs_context *fc) in mtd_set_super() argument 47 sb->s_mtd = fc->sget_key; in mtd_set_super() 56 static int mtd_get_sb(struct fs_context *fc, in mtd_get_sb() argument 64 fc->sget_key = mtd; in mtd_get_sb() 65 sb = sget_fc(fc, mtd_test_super, mtd_set_super); in mtd_get_sb() 79 ret = fill_super(sb, fc); in mtd_get_sb() 86 BUG_ON(fc->root); in mtd_get_sb() [all …]
|
/Linux-v5.4/drivers/media/pci/b2c2/ |
D | flexcop-dma.c | 42 int flexcop_dma_config(struct flexcop_device *fc, in flexcop_dma_config() argument 54 fc->write_ibi_reg(fc, dma1_000, v0x0); in flexcop_dma_config() 55 fc->write_ibi_reg(fc, dma1_004, v0x4); in flexcop_dma_config() 56 fc->write_ibi_reg(fc, dma1_00c, v0xc); in flexcop_dma_config() 58 fc->write_ibi_reg(fc, dma2_010, v0x0); in flexcop_dma_config() 59 fc->write_ibi_reg(fc, dma2_014, v0x4); in flexcop_dma_config() 60 fc->write_ibi_reg(fc, dma2_01c, v0xc); in flexcop_dma_config() 72 int flexcop_dma_xfer_control(struct flexcop_device *fc, in flexcop_dma_xfer_control() argument 92 v0x0 = fc->read_ibi_reg(fc, r0x0); in flexcop_dma_xfer_control() 93 v0xc = fc->read_ibi_reg(fc, r0xc); in flexcop_dma_xfer_control() [all …]
|
D | flexcop-pci.c | 76 static flexcop_ibi_value flexcop_pci_read_ibi_reg(struct flexcop_device *fc, in flexcop_pci_read_ibi_reg() argument 79 struct flexcop_pci *fc_pci = fc->bus_specific; in flexcop_pci_read_ibi_reg() 91 static int flexcop_pci_write_ibi_reg(struct flexcop_device *fc, in flexcop_pci_write_ibi_reg() argument 94 struct flexcop_pci *fc_pci = fc->bus_specific; in flexcop_pci_write_ibi_reg() 109 struct flexcop_device *fc = fc_pci->fc_dev; in flexcop_pci_irq_check_work() local 111 if (fc->feedcount) { in flexcop_pci_irq_check_work() 119 spin_lock_irq(&fc->demux.lock); in flexcop_pci_irq_check_work() 120 list_for_each_entry(feed, &fc->demux.feed_list, in flexcop_pci_irq_check_work() 122 flexcop_pid_feed_control(fc, feed, 0); in flexcop_pci_irq_check_work() 125 list_for_each_entry(feed, &fc->demux.feed_list, in flexcop_pci_irq_check_work() [all …]
|
/Linux-v5.4/include/linux/ |
D | fs_context.h | 111 void (*free)(struct fs_context *fc); 112 int (*dup)(struct fs_context *fc, struct fs_context *src_fc); 113 int (*parse_param)(struct fs_context *fc, struct fs_parameter *param); 114 int (*parse_monolithic)(struct fs_context *fc, void *data); 115 int (*get_tree)(struct fs_context *fc); 116 int (*reconfigure)(struct fs_context *fc); 130 extern struct fs_context *vfs_dup_fs_context(struct fs_context *fc); 131 extern int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param); 132 extern int vfs_parse_fs_string(struct fs_context *fc, const char *key, 134 extern int generic_parse_monolithic(struct fs_context *fc, void *data); [all …]
|
/Linux-v5.4/drivers/scsi/esas2r/ |
D | esas2r_flash.c | 137 struct esas2r_flash_context *fc = in esas2r_fmapi_callback() local 144 if (fc->sgc.cur_offset == NULL) in esas2r_fmapi_callback() 155 rq->interrupt_cb = fc->interrupt_cb; in esas2r_fmapi_callback() 169 (*fc->interrupt_cb)(a, rq); in esas2r_fmapi_callback() 179 struct esas2r_flash_context *fc = in build_flash_msg() local 181 struct esas2r_sg_context *sgc = &fc->sgc; in build_flash_msg() 185 if (fc->func == VDA_FLASH_BEGINW) { in build_flash_msg() 192 rq->interrupt_cb = fc->interrupt_cb; in build_flash_msg() 196 fc->func, in build_flash_msg() 198 fc->flsh_addr, in build_flash_msg() [all …]
|
/Linux-v5.4/fs/proc/ |
D | root.c | 55 static int proc_parse_param(struct fs_context *fc, struct fs_parameter *param) in proc_parse_param() argument 57 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_param() 61 opt = fs_parse(fc, &proc_fs_parameters, param, &result); in proc_parse_param() 74 return invalf(fc, "proc: hidepid value must be between 0 and 2.\n"); in proc_parse_param() 86 struct fs_context *fc, in proc_apply_options() argument 90 struct proc_fs_context *ctx = fc->fs_private; in proc_apply_options() 98 static int proc_fill_super(struct super_block *s, struct fs_context *fc) in proc_fill_super() argument 104 proc_apply_options(s, fc, pid_ns, current_user_ns()); in proc_fill_super() 145 static int proc_reconfigure(struct fs_context *fc) in proc_reconfigure() argument 147 struct super_block *sb = fc->root->d_sb; in proc_reconfigure() [all …]
|
/Linux-v5.4/fs/sysfs/ |
D | mount.c | 26 static int sysfs_get_tree(struct fs_context *fc) in sysfs_get_tree() argument 28 struct kernfs_fs_context *kfc = fc->fs_private; in sysfs_get_tree() 31 ret = kernfs_get_tree(fc); in sysfs_get_tree() 36 fc->root->d_sb->s_iflags |= SB_I_USERNS_VISIBLE; in sysfs_get_tree() 40 static void sysfs_fs_context_free(struct fs_context *fc) in sysfs_fs_context_free() argument 42 struct kernfs_fs_context *kfc = fc->fs_private; in sysfs_fs_context_free() 46 kernfs_free_fs_context(fc); in sysfs_fs_context_free() 55 static int sysfs_init_fs_context(struct fs_context *fc) in sysfs_init_fs_context() argument 60 if (!(fc->sb_flags & SB_KERNMOUNT)) { in sysfs_init_fs_context() 72 fc->fs_private = kfc; in sysfs_init_fs_context() [all …]
|