/linux-4.19.296/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 …]
|
D | flexcop-sram.c | 9 static void flexcop_sram_set_chip(struct flexcop_device *fc, in flexcop_sram_set_chip() argument 15 int flexcop_sram_init(struct flexcop_device *fc) in flexcop_sram_init() argument 17 switch (fc->rev) { in flexcop_sram_init() 20 flexcop_sram_set_chip(fc, FC_SRAM_1_32KB); in flexcop_sram_init() 23 flexcop_sram_set_chip(fc, FC_SRAM_1_48KB); in flexcop_sram_init() 31 int flexcop_sram_set_dest(struct flexcop_device *fc, flexcop_sram_dest_t dest, in flexcop_sram_set_dest() argument 35 v = fc->read_ibi_reg(fc, sram_dest_reg_714); in flexcop_sram_set_dest() 37 if (fc->rev != FLEXCOP_III && target == FC_SRAM_DEST_TARGET_FC3_CA) { in flexcop_sram_set_dest() 52 fc->write_ibi_reg(fc,sram_dest_reg_714,v); in flexcop_sram_set_dest() 59 void flexcop_wan_set_speed(struct flexcop_device *fc, flexcop_wan_speed_t s) in flexcop_wan_set_speed() argument [all …]
|
D | flexcop-eeprom.c | 90 static int flexcop_eeprom_read(struct flexcop_device *fc, 93 return fc->i2c_request(fc,FC_READ,FC_I2C_PORT_EEPROM,0x50,addr,buf,len); 107 static int flexcop_eeprom_request(struct flexcop_device *fc, in flexcop_eeprom_request() argument 113 ret = fc->i2c_request(&fc->fc_i2c_adap[1], op, chipaddr, in flexcop_eeprom_request() 121 static int flexcop_eeprom_lrc_read(struct flexcop_device *fc, u16 addr, in flexcop_eeprom_lrc_read() argument 124 int ret = flexcop_eeprom_request(fc, FC_READ, addr, buf, len, retries); in flexcop_eeprom_lrc_read() 133 int flexcop_eeprom_check_mac_addr(struct flexcop_device *fc, int extended) in flexcop_eeprom_check_mac_addr() argument 138 if ((ret = flexcop_eeprom_lrc_read(fc,0x3f8,buf,8,4)) == 0) { in flexcop_eeprom_check_mac_addr() 143 memcpy(fc->dvb_adapter.proposed_mac,buf,6); in flexcop_eeprom_check_mac_addr()
|
/linux-4.19.296/fs/afs/ |
D | rotate.c | 24 static void afs_init_fs_cursor(struct afs_fs_cursor *fc, struct afs_vnode *vnode) in afs_init_fs_cursor() argument 26 memset(fc, 0, sizeof(*fc)); in afs_init_fs_cursor() 35 bool afs_begin_vnode_operation(struct afs_fs_cursor *fc, struct afs_vnode *vnode, in afs_begin_vnode_operation() argument 38 afs_init_fs_cursor(fc, vnode); in afs_begin_vnode_operation() 39 fc->vnode = vnode; in afs_begin_vnode_operation() 40 fc->key = key; in afs_begin_vnode_operation() 41 fc->ac.error = SHRT_MAX; in afs_begin_vnode_operation() 44 fc->ac.error = -EINTR; in afs_begin_vnode_operation() 45 fc->flags |= AFS_FS_CURSOR_STOP; in afs_begin_vnode_operation() 50 fc->flags |= AFS_FS_CURSOR_CUR_ONLY; in afs_begin_vnode_operation() [all …]
|
D | dir.c | 610 struct afs_fs_cursor fc; in afs_do_lookup() local 673 if (afs_begin_vnode_operation(&fc, dvnode, key)) { in afs_do_lookup() 674 while (afs_select_fileserver(&fc)) { in afs_do_lookup() 676 &fc.cbi->server->flags)) { in afs_do_lookup() 677 fc.ac.abort_code = RX_INVALID_OPERATION; in afs_do_lookup() 678 fc.ac.error = -ECONNABORTED; in afs_do_lookup() 681 afs_fs_inline_bulk_status(&fc, in afs_do_lookup() 689 if (fc.ac.error == 0) in afs_do_lookup() 690 cbi = afs_get_cb_interest(fc.cbi); in afs_do_lookup() 691 if (fc.ac.abort_code == RX_INVALID_OPERATION) in afs_do_lookup() [all …]
|
D | server.c | 527 static bool afs_do_probe_fileserver(struct afs_fs_cursor *fc) in afs_do_probe_fileserver() argument 531 fc->ac.addr = NULL; in afs_do_probe_fileserver() 532 fc->ac.start = READ_ONCE(fc->ac.alist->index); in afs_do_probe_fileserver() 533 fc->ac.index = fc->ac.start; in afs_do_probe_fileserver() 534 fc->ac.error = 0; in afs_do_probe_fileserver() 535 fc->ac.begun = false; in afs_do_probe_fileserver() 537 while (afs_iterate_addresses(&fc->ac)) { in afs_do_probe_fileserver() 538 afs_fs_get_capabilities(afs_v2net(fc->vnode), fc->cbi->server, in afs_do_probe_fileserver() 539 &fc->ac, fc->key); in afs_do_probe_fileserver() 540 switch (fc->ac.error) { in afs_do_probe_fileserver() [all …]
|
D | fsclient.c | 426 int afs_fs_fetch_file_status(struct afs_fs_cursor *fc, struct afs_volsync *volsync, in afs_fs_fetch_file_status() argument 429 struct afs_vnode *vnode = fc->vnode; in afs_fs_fetch_file_status() 435 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_file_status() 440 fc->ac.error = -ENOMEM; in afs_fs_fetch_file_status() 444 call->key = fc->key; in afs_fs_fetch_file_status() 456 call->cb_break = fc->cb_break; in afs_fs_fetch_file_status() 457 afs_use_fs_server(call, fc->cbi); in afs_fs_fetch_file_status() 459 return afs_make_call(&fc->ac, call, GFP_NOFS, false); in afs_fs_fetch_file_status() 638 static int afs_fs_fetch_data64(struct afs_fs_cursor *fc, struct afs_read *req) in afs_fs_fetch_data64() argument 640 struct afs_vnode *vnode = fc->vnode; in afs_fs_fetch_data64() [all …]
|
/linux-4.19.296/drivers/isdn/hardware/mISDN/ |
D | avmfritz.c | 185 struct fritzcard *fc = p; in ReadISAC_V1() local 188 outb(idx, fc->addr + CHIP_INDEX); in ReadISAC_V1() 189 return inb(fc->addr + CHIP_WINDOW + (offset & 0xf)); in ReadISAC_V1() 195 struct fritzcard *fc = p; in WriteISAC_V1() local 198 outb(idx, fc->addr + CHIP_INDEX); in WriteISAC_V1() 199 outb(value, fc->addr + CHIP_WINDOW + (offset & 0xf)); in WriteISAC_V1() 205 struct fritzcard *fc = p; in ReadFiFoISAC_V1() local 207 outb(AVM_ISAC_FIFO, fc->addr + CHIP_INDEX); in ReadFiFoISAC_V1() 208 insb(fc->addr + CHIP_WINDOW, data, size); in ReadFiFoISAC_V1() 214 struct fritzcard *fc = p; in WriteFiFoISAC_V1() local [all …]
|
/linux-4.19.296/fs/fuse/ |
D | control.c | 24 struct fuse_conn *fc; in fuse_ctl_file_conn_get() local 26 fc = file_inode(file)->i_private; in fuse_ctl_file_conn_get() 27 if (fc) in fuse_ctl_file_conn_get() 28 fc = fuse_conn_get(fc); in fuse_ctl_file_conn_get() 30 return fc; in fuse_ctl_file_conn_get() 36 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); in fuse_conn_abort_write() local 37 if (fc) { in fuse_conn_abort_write() 38 fuse_abort_conn(fc, true); in fuse_conn_abort_write() 39 fuse_conn_put(fc); in fuse_conn_abort_write() 52 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); in fuse_conn_waiting_read() local [all …]
|
D | inode.c | 134 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_evict_inode() local 136 fuse_queue_forget(fc, fi->forget, fi->nodeid, fi->nlookup); in fuse_evict_inode() 165 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_change_attributes_common() local 168 fi->attr_version = ++fc->attr_version; in fuse_change_attributes_common() 174 inode->i_uid = make_kuid(fc->user_ns, attr->uid); in fuse_change_attributes_common() 175 inode->i_gid = make_kgid(fc->user_ns, attr->gid); in fuse_change_attributes_common() 186 if (!fc->writeback_cache || !S_ISREG(inode->i_mode)) { in fuse_change_attributes_common() 204 if (!fc->default_permissions) in fuse_change_attributes_common() 213 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_change_attributes() local 215 bool is_wb = fc->writeback_cache; in fuse_change_attributes() [all …]
|
D | dev.c | 118 void fuse_set_initialized(struct fuse_conn *fc) in fuse_set_initialized() argument 122 fc->initialized = 1; in fuse_set_initialized() 125 static bool fuse_block_alloc(struct fuse_conn *fc, bool for_background) in fuse_block_alloc() argument 127 return !fc->initialized || (for_background && fc->blocked); in fuse_block_alloc() 130 static void fuse_drop_waiting(struct fuse_conn *fc) in fuse_drop_waiting() argument 137 if (atomic_dec_and_test(&fc->num_waiting) && in fuse_drop_waiting() 138 !READ_ONCE(fc->connected)) { in fuse_drop_waiting() 140 wake_up_all(&fc->blocked_waitq); in fuse_drop_waiting() 144 static struct fuse_req *__fuse_get_req(struct fuse_conn *fc, unsigned npages, in __fuse_get_req() argument 149 atomic_inc(&fc->num_waiting); in __fuse_get_req() [all …]
|
D | file.c | 25 static int fuse_send_open(struct fuse_conn *fc, u64 nodeid, struct file *file, in fuse_send_open() argument 33 if (!fc->atomic_o_trunc) in fuse_send_open() 44 return fuse_simple_request(fc, &args); in fuse_send_open() 47 struct fuse_file *fuse_file_alloc(struct fuse_conn *fc) in fuse_file_alloc() argument 55 ff->fc = fc; in fuse_file_alloc() 67 spin_lock(&fc->lock); in fuse_file_alloc() 68 ff->kh = ++fc->khctr; in fuse_file_alloc() 69 spin_unlock(&fc->lock); in fuse_file_alloc() 86 static void fuse_release_end(struct fuse_conn *fc, struct fuse_req *req) in fuse_release_end() argument 96 if (ff->fc->no_open && !isdir) { in fuse_file_put() [all …]
|
D | dir.c | 21 struct fuse_conn *fc = get_fuse_conn(dir); in fuse_use_readdirplus() local 24 if (!fc->do_readdirplus) in fuse_use_readdirplus() 26 if (!fc->readdirplus_auto) in fuse_use_readdirplus() 142 static void fuse_lookup_init(struct fuse_conn *fc, struct fuse_args *args, in fuse_lookup_init() argument 157 u64 fuse_get_attr_version(struct fuse_conn *fc) in fuse_get_attr_version() argument 165 spin_lock(&fc->lock); in fuse_get_attr_version() 166 curr_version = fc->attr_version; in fuse_get_attr_version() 167 spin_unlock(&fc->lock); in fuse_get_attr_version() 185 struct fuse_conn *fc; in fuse_dentry_revalidate() local 207 fc = get_fuse_conn(inode); in fuse_dentry_revalidate() [all …]
|
D | cuse.c | 59 struct fuse_conn fc; /* fuse connection */ member 71 static struct cuse_conn *fc_to_cc(struct fuse_conn *fc) in fc_to_cc() argument 73 return container_of(fc, struct cuse_conn, fc); in fc_to_cc() 122 fuse_conn_get(&pos->fc); in cuse_open() 136 rc = fuse_do_open(&cc->fc, 0, file, 0); in cuse_open() 138 fuse_conn_put(&cc->fc); in cuse_open() 145 struct fuse_conn *fc = ff->fc; in cuse_release() local 148 fuse_conn_put(fc); in cuse_release() 157 struct cuse_conn *cc = fc_to_cc(ff->fc); in cuse_file_ioctl() 170 struct cuse_conn *cc = fc_to_cc(ff->fc); in cuse_file_compat_ioctl() [all …]
|
D | acl.c | 16 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_get_acl() local 25 if (!fc->posix_acl || fc->no_getxattr) in fuse_get_acl() 40 acl = posix_acl_from_xattr(fc->user_ns, value, size); in fuse_get_acl() 42 (size == -EOPNOTSUPP && fc->no_getxattr)) in fuse_get_acl() 55 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_set_acl() local 62 if (!fc->posix_acl || fc->no_setxattr) in fuse_set_acl() 90 ret = posix_acl_to_xattr(fc->user_ns, acl, value, size); in fuse_set_acl()
|
D | fuse_i.h | 130 struct fuse_conn *fc; member 440 struct fuse_conn *fc; member 742 void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget, 761 struct fuse_file *fuse_file_alloc(struct fuse_conn *fc); 781 int fuse_notify_poll_wakeup(struct fuse_conn *fc, 842 struct fuse_req *fuse_get_req(struct fuse_conn *fc, unsigned npages); 843 struct fuse_req *fuse_get_req_for_background(struct fuse_conn *fc, 854 struct fuse_req *fuse_get_req_nofail_nopages(struct fuse_conn *fc, 861 void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req); 866 void fuse_request_send(struct fuse_conn *fc, struct fuse_req *req); [all …]
|
D | xattr.c | 17 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_setxattr() local 22 if (fc->no_setxattr) in fuse_setxattr() 37 err = fuse_simple_request(fc, &args); in fuse_setxattr() 39 fc->no_setxattr = 1; in fuse_setxattr() 52 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_getxattr() local 58 if (fc->no_getxattr) in fuse_getxattr() 80 ret = fuse_simple_request(fc, &args); in fuse_getxattr() 84 fc->no_getxattr = 1; in fuse_getxattr() 110 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_listxattr() local 119 if (!fuse_allow_current_process(fc)) in fuse_listxattr() [all …]
|
/linux-4.19.296/include/linux/ |
D | ieee802154.h | 242 static inline int ieee802154_is_data(__le16 fc) in ieee802154_is_data() argument 244 return (fc & cpu_to_le16(IEEE802154_FCTL_FTYPE)) == in ieee802154_is_data() 252 static inline bool ieee802154_is_secen(__le16 fc) in ieee802154_is_secen() argument 254 return fc & cpu_to_le16(IEEE802154_FCTL_SECEN); in ieee802154_is_secen() 261 static inline bool ieee802154_is_ackreq(__le16 fc) in ieee802154_is_ackreq() argument 263 return fc & cpu_to_le16(IEEE802154_FCTL_ACKREQ); in ieee802154_is_ackreq() 270 static inline bool ieee802154_is_intra_pan(__le16 fc) in ieee802154_is_intra_pan() argument 272 return fc & cpu_to_le16(IEEE802154_FCTL_INTRA_PAN); in ieee802154_is_intra_pan() 279 static inline __le16 ieee802154_daddr_mode(__le16 fc) in ieee802154_daddr_mode() argument 281 return fc & cpu_to_le16(IEEE802154_FCTL_DADDR); in ieee802154_daddr_mode() [all …]
|
D | ieee80211.h | 269 static inline bool ieee80211_has_tods(__le16 fc) in ieee80211_has_tods() argument 271 return (fc & cpu_to_le16(IEEE80211_FCTL_TODS)) != 0; in ieee80211_has_tods() 278 static inline bool ieee80211_has_fromds(__le16 fc) in ieee80211_has_fromds() argument 280 return (fc & cpu_to_le16(IEEE80211_FCTL_FROMDS)) != 0; in ieee80211_has_fromds() 287 static inline bool ieee80211_has_a4(__le16 fc) in ieee80211_has_a4() argument 290 return (fc & tmp) == tmp; in ieee80211_has_a4() 297 static inline bool ieee80211_has_morefrags(__le16 fc) in ieee80211_has_morefrags() argument 299 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREFRAGS)) != 0; in ieee80211_has_morefrags() 306 static inline bool ieee80211_has_retry(__le16 fc) in ieee80211_has_retry() argument 308 return (fc & cpu_to_le16(IEEE80211_FCTL_RETRY)) != 0; in ieee80211_has_retry() [all …]
|
/linux-4.19.296/include/net/ |
D | mac802154.h | 250 __le16 fc; in ieee802154_get_fc_from_skb() local 258 memcpy(&fc, skb_mac_header(skb), IEEE802154_FC_LEN); in ieee802154_get_fc_from_skb() 259 return fc; in ieee802154_get_fc_from_skb() 267 static inline unsigned char *ieee802154_skb_dst_pan(__le16 fc, in ieee802154_skb_dst_pan() argument 272 switch (ieee802154_daddr_mode(fc)) { in ieee802154_skb_dst_pan() 296 static inline unsigned char *ieee802154_skb_src_pan(__le16 fc, in ieee802154_skb_src_pan() argument 301 switch (ieee802154_saddr_mode(fc)) { in ieee802154_skb_src_pan() 310 if (ieee802154_is_intra_pan(fc)) { in ieee802154_skb_src_pan() 311 src_pan = ieee802154_skb_dst_pan(fc, skb); in ieee802154_skb_src_pan() 315 switch (ieee802154_daddr_mode(fc)) { in ieee802154_skb_src_pan() [all …]
|