/linux-4.1.27/drivers/media/common/b2c2/ |
H A D | flexcop.c | 61 struct flexcop_device *fc = dvbdmxfeed->demux->priv; flexcop_dvb_start_feed() local 62 return flexcop_pid_feed_control(fc, dvbdmxfeed, 1); flexcop_dvb_start_feed() 67 struct flexcop_device *fc = dvbdmxfeed->demux->priv; flexcop_dvb_stop_feed() local 68 return flexcop_pid_feed_control(fc, dvbdmxfeed, 0); flexcop_dvb_stop_feed() 71 static int flexcop_dvb_init(struct flexcop_device *fc) flexcop_dvb_init() argument 73 int ret = dvb_register_adapter(&fc->dvb_adapter, flexcop_dvb_init() 74 "FlexCop Digital TV device", fc->owner, flexcop_dvb_init() 75 fc->dev, adapter_nr); flexcop_dvb_init() 80 fc->dvb_adapter.priv = fc; flexcop_dvb_init() 82 fc->demux.dmx.capabilities = (DMX_TS_FILTERING | DMX_SECTION_FILTERING flexcop_dvb_init() 84 fc->demux.priv = fc; flexcop_dvb_init() 85 fc->demux.filternum = fc->demux.feednum = FC_MAX_FEED; flexcop_dvb_init() 86 fc->demux.start_feed = flexcop_dvb_start_feed; flexcop_dvb_init() 87 fc->demux.stop_feed = flexcop_dvb_stop_feed; flexcop_dvb_init() 88 fc->demux.write_to_decoder = NULL; flexcop_dvb_init() 90 ret = dvb_dmx_init(&fc->demux); flexcop_dvb_init() 96 fc->hw_frontend.source = DMX_FRONTEND_0; flexcop_dvb_init() 98 fc->dmxdev.filternum = fc->demux.feednum; flexcop_dvb_init() 99 fc->dmxdev.demux = &fc->demux.dmx; flexcop_dvb_init() 100 fc->dmxdev.capabilities = 0; flexcop_dvb_init() 101 ret = dvb_dmxdev_init(&fc->dmxdev, &fc->dvb_adapter); flexcop_dvb_init() 107 ret = fc->demux.dmx.add_frontend(&fc->demux.dmx, &fc->hw_frontend); flexcop_dvb_init() 113 fc->mem_frontend.source = DMX_MEMORY_FE; flexcop_dvb_init() 114 ret = fc->demux.dmx.add_frontend(&fc->demux.dmx, &fc->mem_frontend); flexcop_dvb_init() 120 ret = fc->demux.dmx.connect_frontend(&fc->demux.dmx, &fc->hw_frontend); flexcop_dvb_init() 126 ret = dvb_net_init(&fc->dvb_adapter, &fc->dvbnet, &fc->demux.dmx); flexcop_dvb_init() 132 fc->init_state |= FC_STATE_DVB_INIT; flexcop_dvb_init() 136 fc->demux.dmx.disconnect_frontend(&fc->demux.dmx); flexcop_dvb_init() 138 fc->demux.dmx.remove_frontend(&fc->demux.dmx, &fc->mem_frontend); flexcop_dvb_init() 140 fc->demux.dmx.remove_frontend(&fc->demux.dmx, &fc->hw_frontend); flexcop_dvb_init() 142 dvb_dmxdev_release(&fc->dmxdev); flexcop_dvb_init() 144 dvb_dmx_release(&fc->demux); flexcop_dvb_init() 146 dvb_unregister_adapter(&fc->dvb_adapter); flexcop_dvb_init() 150 static void flexcop_dvb_exit(struct flexcop_device *fc) flexcop_dvb_exit() argument 152 if (fc->init_state & FC_STATE_DVB_INIT) { flexcop_dvb_exit() 153 dvb_net_release(&fc->dvbnet); flexcop_dvb_exit() 155 fc->demux.dmx.close(&fc->demux.dmx); flexcop_dvb_exit() 156 fc->demux.dmx.remove_frontend(&fc->demux.dmx, flexcop_dvb_exit() 157 &fc->mem_frontend); flexcop_dvb_exit() 158 fc->demux.dmx.remove_frontend(&fc->demux.dmx, flexcop_dvb_exit() 159 &fc->hw_frontend); flexcop_dvb_exit() 160 dvb_dmxdev_release(&fc->dmxdev); flexcop_dvb_exit() 161 dvb_dmx_release(&fc->demux); flexcop_dvb_exit() 162 dvb_unregister_adapter(&fc->dvb_adapter); flexcop_dvb_exit() 165 fc->init_state &= ~FC_STATE_DVB_INIT; flexcop_dvb_exit() 170 void flexcop_pass_dmx_data(struct flexcop_device *fc, u8 *buf, u32 len) flexcop_pass_dmx_data() argument 172 dvb_dmx_swfilter(&fc->demux, buf, len); flexcop_pass_dmx_data() 176 void flexcop_pass_dmx_packets(struct flexcop_device *fc, u8 *buf, u32 no) flexcop_pass_dmx_packets() argument 178 dvb_dmx_swfilter_packets(&fc->demux, buf, no); flexcop_pass_dmx_packets() 182 static void flexcop_reset(struct flexcop_device *fc) flexcop_reset() argument 187 fc->write_ibi_reg(fc,ctrl_208,ibi_zero); flexcop_reset() 200 fc->write_ibi_reg(fc,sw_reset_210,v210); flexcop_reset() 205 v204 = fc->read_ibi_reg(fc,misc_204); flexcop_reset() 207 fc->write_ibi_reg(fc,misc_204,v204); flexcop_reset() 210 fc->write_ibi_reg(fc,misc_204,v204); flexcop_reset() 213 void flexcop_reset_block_300(struct flexcop_device *fc) flexcop_reset_block_300() argument 215 flexcop_ibi_value v208_save = fc->read_ibi_reg(fc, ctrl_208), flexcop_reset_block_300() 216 v210 = fc->read_ibi_reg(fc, sw_reset_210); flexcop_reset_block_300() 219 fc->write_ibi_reg(fc,ctrl_208,ibi_zero); flexcop_reset_block_300() 224 fc->write_ibi_reg(fc,sw_reset_210,v210); flexcop_reset_block_300() 225 fc->write_ibi_reg(fc,ctrl_208,v208_save); flexcop_reset_block_300() 231 struct flexcop_device *fc = kzalloc(sizeof(struct flexcop_device), flexcop_device_kmalloc() local 233 if (!fc) { flexcop_device_kmalloc() 241 kfree(fc); flexcop_device_kmalloc() 245 fc->bus_specific = bus; flexcop_device_kmalloc() 247 return fc; flexcop_device_kmalloc() 251 void flexcop_device_kfree(struct flexcop_device *fc) flexcop_device_kfree() argument 253 kfree(fc->bus_specific); flexcop_device_kfree() 254 kfree(fc); flexcop_device_kfree() 258 int flexcop_device_initialize(struct flexcop_device *fc) flexcop_device_initialize() argument 263 flexcop_reset(fc); flexcop_device_initialize() 264 flexcop_determine_revision(fc); flexcop_device_initialize() 265 flexcop_sram_init(fc); flexcop_device_initialize() 266 flexcop_hw_filter_init(fc); flexcop_device_initialize() 267 flexcop_smc_ctrl(fc, 0); flexcop_device_initialize() 269 ret = flexcop_dvb_init(fc); flexcop_device_initialize() 275 ret = flexcop_i2c_init(fc); flexcop_device_initialize() 280 if (fc->get_mac_addr(fc, 0) == 0) { flexcop_device_initialize() 281 u8 *b = fc->dvb_adapter.proposed_mac; flexcop_device_initialize() 283 flexcop_set_mac_filter(fc,b); flexcop_device_initialize() 284 flexcop_mac_filter_ctrl(fc,1); flexcop_device_initialize() 288 ret = flexcop_frontend_init(fc); flexcop_device_initialize() 292 flexcop_device_name(fc,"initialization of","complete"); flexcop_device_initialize() 296 flexcop_device_exit(fc); flexcop_device_initialize() 301 void flexcop_device_exit(struct flexcop_device *fc) flexcop_device_exit() argument 303 flexcop_frontend_exit(fc); flexcop_device_exit() 304 flexcop_i2c_exit(fc); flexcop_device_exit() 305 flexcop_dvb_exit(fc); flexcop_device_exit()
|
H A D | flexcop-hw-filter.c | 8 static void flexcop_rcv_data_ctrl(struct flexcop_device *fc, int onoff) flexcop_rcv_data_ctrl() argument 14 void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff) flexcop_smc_ctrl() argument 19 static void flexcop_null_filter_ctrl(struct flexcop_device *fc, int onoff) flexcop_null_filter_ctrl() argument 24 void flexcop_set_mac_filter(struct flexcop_device *fc, u8 mac[6]) flexcop_set_mac_filter() argument 27 v41c = fc->read_ibi_reg(fc, mac_address_41c); flexcop_set_mac_filter() 36 fc->write_ibi_reg(fc, mac_address_418, v418); flexcop_set_mac_filter() 37 fc->write_ibi_reg(fc, mac_address_41c, v41c); flexcop_set_mac_filter() 40 void flexcop_mac_filter_ctrl(struct flexcop_device *fc, int onoff) flexcop_mac_filter_ctrl() argument 45 static void flexcop_pid_group_filter(struct flexcop_device *fc, flexcop_pid_group_filter() argument 52 fc->write_ibi_reg(fc, pid_filter_30c, v30c); flexcop_pid_group_filter() 55 static void flexcop_pid_group_filter_ctrl(struct flexcop_device *fc, int onoff) flexcop_pid_group_filter_ctrl() argument 65 flexcop_ibi_value vpid = fc->read_ibi_reg(fc, vregname), \ 66 v208 = fc->read_ibi_reg(fc, ctrl_208); \ 70 fc->write_ibi_reg(fc, vregname, vpid); \ 71 fc->write_ibi_reg(fc, ctrl_208, v208); 73 static void flexcop_pid_Stream1_PID_ctrl(struct flexcop_device *fc, flexcop_pid_Stream1_PID_ctrl() argument 80 static void flexcop_pid_Stream2_PID_ctrl(struct flexcop_device *fc, flexcop_pid_Stream2_PID_ctrl() argument 87 static void flexcop_pid_PCR_PID_ctrl(struct flexcop_device *fc, flexcop_pid_PCR_PID_ctrl() argument 93 static void flexcop_pid_PMT_PID_ctrl(struct flexcop_device *fc, flexcop_pid_PMT_PID_ctrl() argument 99 static void flexcop_pid_EMM_PID_ctrl(struct flexcop_device *fc, flexcop_pid_EMM_PID_ctrl() argument 105 static void flexcop_pid_ECM_PID_ctrl(struct flexcop_device *fc, flexcop_pid_ECM_PID_ctrl() argument 111 static void flexcop_pid_control(struct flexcop_device *fc, flexcop_pid_control() argument 124 flexcop_pid_Stream1_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 127 flexcop_pid_Stream2_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 130 flexcop_pid_PCR_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 133 flexcop_pid_PMT_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 136 flexcop_pid_EMM_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 139 flexcop_pid_ECM_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 142 if (fc->has_32_hw_pid_filter && index < 38) { flexcop_pid_control() 146 vid = fc->read_ibi_reg(fc, index_reg_310); flexcop_pid_control() 148 fc->write_ibi_reg(fc, index_reg_310, vid); flexcop_pid_control() 150 vpid = fc->read_ibi_reg(fc, pid_n_reg_314); flexcop_pid_control() 153 fc->write_ibi_reg(fc, pid_n_reg_314, vpid); flexcop_pid_control() 159 static int flexcop_toggle_fullts_streaming(struct flexcop_device *fc, int onoff) flexcop_toggle_fullts_streaming() argument 161 if (fc->fullts_streaming_state != onoff) { flexcop_toggle_fullts_streaming() 163 flexcop_pid_group_filter(fc, 0, 0x1fe0 * (!onoff)); flexcop_toggle_fullts_streaming() 164 flexcop_pid_group_filter_ctrl(fc, onoff); flexcop_toggle_fullts_streaming() 165 fc->fullts_streaming_state = onoff; flexcop_toggle_fullts_streaming() 170 int flexcop_pid_feed_control(struct flexcop_device *fc, flexcop_pid_feed_control() argument 173 int max_pid_filter = 6 + fc->has_32_hw_pid_filter*32; flexcop_pid_feed_control() 175 fc->feedcount += onoff ? 1 : -1; /* the number of PIDs/Feed currently requested */ flexcop_pid_feed_control() 177 fc->extra_feedcount += onoff ? 1 : -1; flexcop_pid_feed_control() 185 if (!fc->pid_filtering && fc->feedcount == onoff) flexcop_pid_feed_control() 186 flexcop_toggle_fullts_streaming(fc, onoff); flexcop_pid_feed_control() 188 if (fc->pid_filtering) { flexcop_pid_feed_control() 190 (fc, dvbdmxfeed->index, dvbdmxfeed->pid, onoff); flexcop_pid_feed_control() 192 if (fc->extra_feedcount > 0) flexcop_pid_feed_control() 193 flexcop_toggle_fullts_streaming(fc, 1); flexcop_pid_feed_control() 195 flexcop_toggle_fullts_streaming(fc, onoff); flexcop_pid_feed_control() 197 flexcop_toggle_fullts_streaming(fc, 0); flexcop_pid_feed_control() 201 if (fc->feedcount == onoff) { flexcop_pid_feed_control() 202 flexcop_rcv_data_ctrl(fc, onoff); flexcop_pid_feed_control() 203 if (fc->stream_control) /* device specific stream control */ flexcop_pid_feed_control() 204 fc->stream_control(fc, onoff); flexcop_pid_feed_control() 208 flexcop_reset_block_300(fc); flexcop_pid_feed_control() 209 flexcop_hw_filter_init(fc); flexcop_pid_feed_control() 216 void flexcop_hw_filter_init(struct flexcop_device *fc) flexcop_hw_filter_init() argument 220 for (i = 0; i < 6 + 32*fc->has_32_hw_pid_filter; i++) flexcop_hw_filter_init() 221 flexcop_pid_control(fc, i, 0x1fff, 0); flexcop_hw_filter_init() 223 flexcop_pid_group_filter(fc, 0, 0x1fe0); flexcop_hw_filter_init() 224 flexcop_pid_group_filter_ctrl(fc, 0); flexcop_hw_filter_init() 226 v = fc->read_ibi_reg(fc, pid_filter_308); flexcop_hw_filter_init() 229 fc->write_ibi_reg(fc, pid_filter_308, v); flexcop_hw_filter_init() 231 flexcop_null_filter_ctrl(fc, 1); flexcop_hw_filter_init()
|
H A D | flexcop-i2c.c | 10 static int flexcop_i2c_operation(struct flexcop_device *fc, flexcop_i2c_operation() argument 19 fc->write_ibi_reg(fc, tw_sm_c_100, ibi_zero); flexcop_i2c_operation() 20 fc->write_ibi_reg(fc, tw_sm_c_100, *r100); /* initiating i2c operation */ flexcop_i2c_operation() 23 r = fc->read_ibi_reg(fc, tw_sm_c_100); flexcop_i2c_operation() 58 if (i2c->fc->dev_type == FC_SKY_REV27) flexcop_i2c_read4() 61 ret = flexcop_i2c_operation(i2c->fc, &r100); flexcop_i2c_read4() 65 ret = flexcop_i2c_operation(i2c->fc, &r100); flexcop_i2c_read4() 75 r104 = i2c->fc->read_ibi_reg(i2c->fc, tw_sm_c_104); flexcop_i2c_read4() 86 static int flexcop_i2c_write4(struct flexcop_device *fc, flexcop_i2c_write4() argument 102 fc->write_ibi_reg(fc, tw_sm_c_104, r104); flexcop_i2c_write4() 103 return flexcop_i2c_operation(fc, &r100); flexcop_i2c_write4() 150 ret = flexcop_i2c_write4(i2c->fc, r100, buf); flexcop_i2c_request() 188 if (mutex_lock_interruptible(&i2c->fc->i2c_mutex)) flexcop_master_xfer() 194 ret = i2c->fc->i2c_request(i2c, FC_READ, msgs[i].addr, flexcop_master_xfer() 199 ret = i2c->fc->i2c_request(i2c, FC_WRITE, msgs[i].addr, flexcop_master_xfer() 208 mutex_unlock(&i2c->fc->i2c_mutex); flexcop_master_xfer() 225 int flexcop_i2c_init(struct flexcop_device *fc) flexcop_i2c_init() argument 228 mutex_init(&fc->i2c_mutex); flexcop_i2c_init() 230 fc->fc_i2c_adap[0].fc = fc; flexcop_i2c_init() 231 fc->fc_i2c_adap[1].fc = fc; flexcop_i2c_init() 232 fc->fc_i2c_adap[2].fc = fc; flexcop_i2c_init() 233 fc->fc_i2c_adap[0].port = FC_I2C_PORT_DEMOD; flexcop_i2c_init() 234 fc->fc_i2c_adap[1].port = FC_I2C_PORT_EEPROM; flexcop_i2c_init() 235 fc->fc_i2c_adap[2].port = FC_I2C_PORT_TUNER; flexcop_i2c_init() 237 strlcpy(fc->fc_i2c_adap[0].i2c_adap.name, "B2C2 FlexCop I2C to demod", flexcop_i2c_init() 238 sizeof(fc->fc_i2c_adap[0].i2c_adap.name)); flexcop_i2c_init() 239 strlcpy(fc->fc_i2c_adap[1].i2c_adap.name, "B2C2 FlexCop I2C to eeprom", flexcop_i2c_init() 240 sizeof(fc->fc_i2c_adap[1].i2c_adap.name)); flexcop_i2c_init() 241 strlcpy(fc->fc_i2c_adap[2].i2c_adap.name, "B2C2 FlexCop I2C to tuner", flexcop_i2c_init() 242 sizeof(fc->fc_i2c_adap[2].i2c_adap.name)); flexcop_i2c_init() 244 i2c_set_adapdata(&fc->fc_i2c_adap[0].i2c_adap, &fc->fc_i2c_adap[0]); flexcop_i2c_init() 245 i2c_set_adapdata(&fc->fc_i2c_adap[1].i2c_adap, &fc->fc_i2c_adap[1]); flexcop_i2c_init() 246 i2c_set_adapdata(&fc->fc_i2c_adap[2].i2c_adap, &fc->fc_i2c_adap[2]); flexcop_i2c_init() 248 fc->fc_i2c_adap[0].i2c_adap.algo = flexcop_i2c_init() 249 fc->fc_i2c_adap[1].i2c_adap.algo = flexcop_i2c_init() 250 fc->fc_i2c_adap[2].i2c_adap.algo = &flexcop_algo; flexcop_i2c_init() 251 fc->fc_i2c_adap[0].i2c_adap.algo_data = flexcop_i2c_init() 252 fc->fc_i2c_adap[1].i2c_adap.algo_data = flexcop_i2c_init() 253 fc->fc_i2c_adap[2].i2c_adap.algo_data = NULL; flexcop_i2c_init() 254 fc->fc_i2c_adap[0].i2c_adap.dev.parent = flexcop_i2c_init() 255 fc->fc_i2c_adap[1].i2c_adap.dev.parent = flexcop_i2c_init() 256 fc->fc_i2c_adap[2].i2c_adap.dev.parent = fc->dev; flexcop_i2c_init() 258 ret = i2c_add_adapter(&fc->fc_i2c_adap[0].i2c_adap); flexcop_i2c_init() 262 ret = i2c_add_adapter(&fc->fc_i2c_adap[1].i2c_adap); flexcop_i2c_init() 266 ret = i2c_add_adapter(&fc->fc_i2c_adap[2].i2c_adap); flexcop_i2c_init() 270 fc->init_state |= FC_STATE_I2C_INIT; flexcop_i2c_init() 274 i2c_del_adapter(&fc->fc_i2c_adap[1].i2c_adap); flexcop_i2c_init() 276 i2c_del_adapter(&fc->fc_i2c_adap[0].i2c_adap); flexcop_i2c_init() 280 void flexcop_i2c_exit(struct flexcop_device *fc) flexcop_i2c_exit() argument 282 if (fc->init_state & FC_STATE_I2C_INIT) { flexcop_i2c_exit() 283 i2c_del_adapter(&fc->fc_i2c_adap[2].i2c_adap); flexcop_i2c_exit() 284 i2c_del_adapter(&fc->fc_i2c_adap[1].i2c_adap); flexcop_i2c_exit() 285 i2c_del_adapter(&fc->fc_i2c_adap[0].i2c_adap); flexcop_i2c_exit() 287 fc->init_state &= ~FC_STATE_I2C_INIT; flexcop_i2c_exit()
|
H A D | flexcop-misc.c | 8 void flexcop_determine_revision(struct flexcop_device *fc) flexcop_determine_revision() argument 10 flexcop_ibi_value v = fc->read_ibi_reg(fc,misc_204); flexcop_determine_revision() 15 fc->rev = FLEXCOP_II; flexcop_determine_revision() 19 fc->rev = FLEXCOP_IIB; flexcop_determine_revision() 23 fc->rev = FLEXCOP_III; flexcop_determine_revision() 32 if ((fc->has_32_hw_pid_filter = v.misc_204.Rev_N_sig_caps)) flexcop_determine_revision() 66 void flexcop_device_name(struct flexcop_device *fc, flexcop_device_name() argument 70 prefix, flexcop_device_names[fc->dev_type], flexcop_device_name() 71 flexcop_bus_names[fc->bus_type], flexcop_device_name() 72 flexcop_revision_names[fc->rev], suffix); flexcop_device_name() 75 void flexcop_dump_reg(struct flexcop_device *fc, flexcop_dump_reg() argument 81 v = fc->read_ibi_reg(fc, reg+4*i); flexcop_dump_reg()
|
H A D | flexcop-fe-tuner.c | 33 struct flexcop_device *fc = fe->dvb->priv; flexcop_set_voltage() local 37 v = fc->read_ibi_reg(fc, misc_204); flexcop_set_voltage() 54 return fc->write_ibi_reg(fc, misc_204, v); flexcop_set_voltage() 61 struct flexcop_device *fc = fe->dvb->priv; flexcop_sleep() local 62 if (fc->fe_sleep) flexcop_sleep() 63 return fc->fe_sleep(fe); flexcop_sleep() 73 struct flexcop_device *fc = fe->dvb->priv; flexcop_set_tone() local 94 return fc->write_ibi_reg(fc,lnb_switch_freq_200,v); flexcop_set_tone() 158 static int skystar2_rev23_attach(struct flexcop_device *fc, skystar2_rev23_attach() argument 163 fc->fe = dvb_attach(mt312_attach, &skystar23_samsung_tbdu18132_config, i2c); skystar2_rev23_attach() 164 if (!fc->fe) skystar2_rev23_attach() 167 if (!dvb_attach(dvb_pll_attach, fc->fe, 0x61, i2c, skystar2_rev23_attach() 171 ops = &fc->fe->ops; skystar2_rev23_attach() 176 fc->fe_sleep = ops->sleep; skystar2_rev23_attach() 271 static int skystar2_rev26_attach(struct flexcop_device *fc, skystar2_rev26_attach() argument 274 fc->fe = dvb_attach(stv0299_attach, &samsung_tbmu24112_config, i2c); skystar2_rev26_attach() 275 if (!fc->fe) skystar2_rev26_attach() 278 if (!dvb_attach(dvb_pll_attach, fc->fe, 0x61, i2c, skystar2_rev26_attach() 282 fc->fe->ops.set_voltage = flexcop_set_voltage; skystar2_rev26_attach() 283 fc->fe_sleep = fc->fe->ops.sleep; skystar2_rev26_attach() 284 fc->fe->ops.sleep = flexcop_sleep; skystar2_rev26_attach() 305 static int skystar2_rev27_attach(struct flexcop_device *fc, skystar2_rev27_attach() argument 312 fc->fc_i2c_adap[0].no_base_addr = 1; skystar2_rev27_attach() 313 fc->fe = dvb_attach(s5h1420_attach, &skystar2_rev2_7_s5h1420_config, skystar2_rev27_attach() 315 if (!fc->fe) skystar2_rev27_attach() 318 i2c_tuner = s5h1420_get_tuner_i2c_adapter(fc->fe); skystar2_rev27_attach() 322 fc->fe_sleep = fc->fe->ops.sleep; skystar2_rev27_attach() 323 fc->fe->ops.sleep = flexcop_sleep; skystar2_rev27_attach() 326 fc->fc_i2c_adap[2].no_base_addr = 1; skystar2_rev27_attach() 327 if (!dvb_attach(isl6421_attach, fc->fe, &fc->fc_i2c_adap[2].i2c_adap, skystar2_rev27_attach() 336 fc->write_ibi_reg(fc, tw_sm_c_108, r108); skystar2_rev27_attach() 337 if (!dvb_attach(itd1000_attach, fc->fe, i2c_tuner, skystar2_rev27_attach() 348 fc->fc_i2c_adap[2].no_base_addr = 0; skystar2_rev27_attach() 351 fc->fc_i2c_adap[0].no_base_addr = 0; skystar2_rev27_attach() 371 static int skystar2_rev28_attach(struct flexcop_device *fc, skystar2_rev28_attach() argument 376 fc->fe = dvb_attach(cx24123_attach, &skystar2_rev2_8_cx24123_config, skystar2_rev28_attach() 378 if (!fc->fe) skystar2_rev28_attach() 381 i2c_tuner = cx24123_get_tuner_i2c_adapter(fc->fe); skystar2_rev28_attach() 385 if (!dvb_attach(cx24113_attach, fc->fe, &skystar2_rev2_8_cx24113_config, skystar2_rev28_attach() 392 fc->fc_i2c_adap[2].no_base_addr = 1; skystar2_rev28_attach() 393 if (!dvb_attach(isl6421_attach, fc->fe, &fc->fc_i2c_adap[2].i2c_adap, skystar2_rev28_attach() 396 fc->fc_i2c_adap[2].no_base_addr = 0; skystar2_rev28_attach() 432 static int airstar_dvbt_attach(struct flexcop_device *fc, airstar_dvbt_attach() argument 435 fc->fe = dvb_attach(mt352_attach, &samsung_tdtc9251dh0_config, i2c); airstar_dvbt_attach() 436 if (!fc->fe) airstar_dvbt_attach() 439 return !!dvb_attach(dvb_pll_attach, fc->fe, 0x61, NULL, airstar_dvbt_attach() 451 struct flexcop_device *fc = fe->dvb->priv; flexcop_fe_request_firmware() local 452 return request_firmware(fw, name, fc->dev); flexcop_fe_request_firmware() 460 static int airstar_atsc1_attach(struct flexcop_device *fc, airstar_atsc1_attach() argument 463 fc->fe = dvb_attach(bcm3510_attach, &air2pc_atsc_first_gen_config, i2c); airstar_atsc1_attach() 464 return fc->fe != NULL; airstar_atsc1_attach() 476 static int airstar_atsc2_attach(struct flexcop_device *fc, airstar_atsc2_attach() argument 479 fc->fe = dvb_attach(nxt200x_attach, &samsung_tbmv_config, i2c); airstar_atsc2_attach() 480 if (!fc->fe) airstar_atsc2_attach() 483 return !!dvb_attach(dvb_pll_attach, fc->fe, 0x61, NULL, airstar_atsc2_attach() 499 static int airstar_atsc3_attach(struct flexcop_device *fc, airstar_atsc3_attach() argument 502 fc->fe = dvb_attach(lgdt330x_attach, &air2pc_atsc_hd5000_config, i2c); airstar_atsc3_attach() 503 if (!fc->fe) airstar_atsc3_attach() 506 return !!dvb_attach(simple_tuner_attach, fc->fe, i2c, 0x61, airstar_atsc3_attach() 593 static int cablestar2_attach(struct flexcop_device *fc, cablestar2_attach() argument 596 fc->fc_i2c_adap[0].no_base_addr = 1; cablestar2_attach() 597 fc->fe = dvb_attach(stv0297_attach, &alps_tdee4_stv0297_config, i2c); cablestar2_attach() 598 if (!fc->fe) cablestar2_attach() 603 if (fc->fe->ops.i2c_gate_ctrl) cablestar2_attach() 604 fc->fe->ops.i2c_gate_ctrl(fc->fe, 0); cablestar2_attach() 605 fc->fe->ops.i2c_gate_ctrl = NULL; cablestar2_attach() 607 if (!dvb_attach(dvb_pll_attach, fc->fe, 0x61, cablestar2_attach() 608 &fc->fc_i2c_adap[2].i2c_adap, DVB_PLL_TDEE4)) cablestar2_attach() 615 fc->fc_i2c_adap[0].no_base_addr = 0; cablestar2_attach() 638 int flexcop_frontend_init(struct flexcop_device *fc) flexcop_frontend_init() argument 646 fc->dev_type = flexcop_frontends[i].type; flexcop_frontend_init() 647 if (flexcop_frontends[i].attach(fc, &fc->fc_i2c_adap[0].i2c_adap)) flexcop_frontend_init() 650 if (fc->fe) { flexcop_frontend_init() 651 dvb_frontend_detach(fc->fe); flexcop_frontend_init() 652 fc->fe = NULL; flexcop_frontend_init() 655 fc->dev_type = FC_UNK; flexcop_frontend_init() 660 info("found '%s' .", fc->fe->ops.info.name); flexcop_frontend_init() 661 if (dvb_register_frontend(&fc->dvb_adapter, fc->fe)) { flexcop_frontend_init() 663 dvb_frontend_detach(fc->fe); flexcop_frontend_init() 664 fc->fe = NULL; flexcop_frontend_init() 667 fc->init_state |= FC_STATE_FE_INIT; flexcop_frontend_init() 671 void flexcop_frontend_exit(struct flexcop_device *fc) flexcop_frontend_exit() argument 673 if (fc->init_state & FC_STATE_FE_INIT) { flexcop_frontend_exit() 674 dvb_unregister_frontend(fc->fe); flexcop_frontend_exit() 675 dvb_frontend_detach(fc->fe); flexcop_frontend_exit() 677 fc->init_state &= ~FC_STATE_FE_INIT; flexcop_frontend_exit()
|
H A D | flexcop-common.h | 50 struct flexcop_device *fc; member in struct:flexcop_i2c_adapter 103 int (*get_mac_addr) (struct flexcop_device *fc, int extended); 110 void flexcop_pass_dmx_data(struct flexcop_device *fc, u8 *buf, u32 len); 111 void flexcop_pass_dmx_packets(struct flexcop_device *fc, u8 *buf, u32 no); 117 void flexcop_device_exit(struct flexcop_device *fc); 118 void flexcop_reset_block_300(struct flexcop_device *fc); 125 int flexcop_dma_control_timer_irq(struct flexcop_device *fc, 127 int flexcop_dma_control_size_irq(struct flexcop_device *fc, 129 int flexcop_dma_config(struct flexcop_device *fc, struct flexcop_dma *dma, 131 int flexcop_dma_xfer_control(struct flexcop_device *fc, 134 int flexcop_dma_config_timer(struct flexcop_device *fc, 139 int flexcop_eeprom_check_mac_addr(struct flexcop_device *fc, int extended); 150 int flexcop_sram_set_dest(struct flexcop_device *fc, flexcop_sram_dest_t dest, 152 void flexcop_wan_set_speed(struct flexcop_device *fc, flexcop_wan_speed_t s); 153 void flexcop_sram_ctrl(struct flexcop_device *fc, 158 int flexcop_frontend_init(struct flexcop_device *fc); 159 void flexcop_frontend_exit(struct flexcop_device *fc); 162 int flexcop_i2c_init(struct flexcop_device *fc); 163 void flexcop_i2c_exit(struct flexcop_device *fc); 166 int flexcop_sram_init(struct flexcop_device *fc); 169 void flexcop_determine_revision(struct flexcop_device *fc); 170 void flexcop_device_name(struct flexcop_device *fc, 172 void flexcop_dump_reg(struct flexcop_device *fc, 176 int flexcop_pid_feed_control(struct flexcop_device *fc, 178 void flexcop_hw_filter_init(struct flexcop_device *fc); 180 void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff); 182 void flexcop_set_mac_filter(struct flexcop_device *fc, u8 mac[6]); 183 void flexcop_mac_filter_ctrl(struct flexcop_device *fc, int onoff);
|
H A D | flexcop-eeprom.c | 89 static int flexcop_eeprom_read(struct flexcop_device *fc, 92 return fc->i2c_request(fc,FC_READ,FC_I2C_PORT_EEPROM,0x50,addr,buf,len); 106 static int flexcop_eeprom_request(struct flexcop_device *fc, flexcop_eeprom_request() argument 112 ret = fc->i2c_request(&fc->fc_i2c_adap[1], op, chipaddr, flexcop_eeprom_request() 120 static int flexcop_eeprom_lrc_read(struct flexcop_device *fc, u16 addr, flexcop_eeprom_lrc_read() argument 123 int ret = flexcop_eeprom_request(fc, FC_READ, addr, buf, len, retries); flexcop_eeprom_lrc_read() 132 int flexcop_eeprom_check_mac_addr(struct flexcop_device *fc, int extended) flexcop_eeprom_check_mac_addr() argument 137 if ((ret = flexcop_eeprom_lrc_read(fc,0x3f8,buf,8,4)) == 0) { flexcop_eeprom_check_mac_addr() 143 memcpy(fc->dvb_adapter.proposed_mac,buf,6); flexcop_eeprom_check_mac_addr()
|
H A D | flexcop-sram.c | 8 static void flexcop_sram_set_chip(struct flexcop_device *fc, flexcop_sram_set_chip() argument 14 int flexcop_sram_init(struct flexcop_device *fc) flexcop_sram_init() argument 16 switch (fc->rev) { flexcop_sram_init() 19 flexcop_sram_set_chip(fc, FC_SRAM_1_32KB); flexcop_sram_init() 22 flexcop_sram_set_chip(fc, FC_SRAM_1_48KB); flexcop_sram_init() 30 int flexcop_sram_set_dest(struct flexcop_device *fc, flexcop_sram_dest_t dest, flexcop_sram_set_dest() argument 34 v = fc->read_ibi_reg(fc, sram_dest_reg_714); flexcop_sram_set_dest() 36 if (fc->rev != FLEXCOP_III && target == FC_SRAM_DEST_TARGET_FC3_CA) { flexcop_sram_set_dest() 51 fc->write_ibi_reg(fc,sram_dest_reg_714,v); flexcop_sram_set_dest() 58 void flexcop_wan_set_speed(struct flexcop_device *fc, flexcop_wan_speed_t s) flexcop_wan_set_speed() argument 64 void flexcop_sram_ctrl(struct flexcop_device *fc, int usb_wan, int sramdma, int maximumfill) flexcop_sram_ctrl() argument 66 flexcop_ibi_value v = fc->read_ibi_reg(fc,sram_dest_reg_714); flexcop_sram_ctrl() 70 fc->write_ibi_reg(fc,sram_dest_reg_714,v); flexcop_sram_ctrl() 305 static int flexcop_sram_detect(struct flexcop_device *fc) 308 r208 = fc->read_ibi_reg(fc, ctrl_208); 309 fc->write_ibi_reg(fc, ctrl_208, ibi_zero); 311 r71c_0 = fc->read_ibi_reg(fc, wan_ctrl_reg_71c);
|
H A D | flexcop-reg.h | 161 flexcop_ibi_value v = fc->read_ibi_reg(fc,reg); \ 163 fc->write_ibi_reg(fc,reg,v); \
|
/linux-4.1.27/drivers/media/pci/b2c2/ |
H A D | flexcop-dma.c | 40 int flexcop_dma_config(struct flexcop_device *fc, flexcop_dma_config() argument 52 fc->write_ibi_reg(fc,dma1_000,v0x0); flexcop_dma_config() 53 fc->write_ibi_reg(fc,dma1_004,v0x4); flexcop_dma_config() 54 fc->write_ibi_reg(fc,dma1_00c,v0xc); flexcop_dma_config() 56 fc->write_ibi_reg(fc,dma2_010,v0x0); flexcop_dma_config() 57 fc->write_ibi_reg(fc,dma2_014,v0x4); flexcop_dma_config() 58 fc->write_ibi_reg(fc,dma2_01c,v0xc); flexcop_dma_config() 70 int flexcop_dma_xfer_control(struct flexcop_device *fc, flexcop_dma_xfer_control() argument 90 v0x0 = fc->read_ibi_reg(fc,r0x0); flexcop_dma_xfer_control() 91 v0xc = fc->read_ibi_reg(fc,r0xc); flexcop_dma_xfer_control() 102 fc->write_ibi_reg(fc,r0x0,v0x0); flexcop_dma_xfer_control() 103 fc->write_ibi_reg(fc,r0xc,v0xc); flexcop_dma_xfer_control() 111 static int flexcop_dma_remap(struct flexcop_device *fc, flexcop_dma_remap() argument 116 flexcop_ibi_value v = fc->read_ibi_reg(fc,r); flexcop_dma_remap() 119 fc->write_ibi_reg(fc,r,v); flexcop_dma_remap() 123 int flexcop_dma_control_size_irq(struct flexcop_device *fc, flexcop_dma_control_size_irq() argument 127 flexcop_ibi_value v = fc->read_ibi_reg(fc,ctrl_208); flexcop_dma_control_size_irq() 135 fc->write_ibi_reg(fc,ctrl_208,v); flexcop_dma_control_size_irq() 140 int flexcop_dma_control_timer_irq(struct flexcop_device *fc, flexcop_dma_control_timer_irq() argument 144 flexcop_ibi_value v = fc->read_ibi_reg(fc,ctrl_208); flexcop_dma_control_timer_irq() 152 fc->write_ibi_reg(fc,ctrl_208,v); flexcop_dma_control_timer_irq() 158 int flexcop_dma_config_timer(struct flexcop_device *fc, flexcop_dma_config_timer() argument 162 flexcop_ibi_value v = fc->read_ibi_reg(fc,r); flexcop_dma_config_timer() 164 flexcop_dma_remap(fc,dma_idx,0); flexcop_dma_config_timer() 168 fc->write_ibi_reg(fc,r,v); flexcop_dma_config_timer()
|
H A D | flexcop-pci.c | 75 static flexcop_ibi_value flexcop_pci_read_ibi_reg(struct flexcop_device *fc, flexcop_pci_read_ibi_reg() argument 78 struct flexcop_pci *fc_pci = fc->bus_specific; flexcop_pci_read_ibi_reg() 90 static int flexcop_pci_write_ibi_reg(struct flexcop_device *fc, flexcop_pci_write_ibi_reg() argument 93 struct flexcop_pci *fc_pci = fc->bus_specific; flexcop_pci_write_ibi_reg() 108 struct flexcop_device *fc = fc_pci->fc_dev; flexcop_pci_irq_check_work() local 110 if (fc->feedcount) { flexcop_pci_irq_check_work() 118 spin_lock_irq(&fc->demux.lock); flexcop_pci_irq_check_work() 119 list_for_each_entry(feed, &fc->demux.feed_list, flexcop_pci_irq_check_work() 121 flexcop_pid_feed_control(fc, feed, 0); flexcop_pci_irq_check_work() 124 list_for_each_entry(feed, &fc->demux.feed_list, flexcop_pci_irq_check_work() 126 flexcop_pid_feed_control(fc, feed, 1); flexcop_pci_irq_check_work() 128 spin_unlock_irq(&fc->demux.lock); flexcop_pci_irq_check_work() 148 struct flexcop_device *fc = fc_pci->fc_dev; flexcop_pci_isr() local 154 v = fc->read_ibi_reg(fc, irq_20c); flexcop_pci_isr() 185 fc->read_ibi_reg(fc,dma1_008).dma_0x8.dma_cur_addr << 2; flexcop_pci_isr() 232 static int flexcop_pci_stream_control(struct flexcop_device *fc, int onoff) flexcop_pci_stream_control() argument 234 struct flexcop_pci *fc_pci = fc->bus_specific; flexcop_pci_stream_control() 236 flexcop_dma_config(fc, &fc_pci->dma[0], FC_DMA_1); flexcop_pci_stream_control() 237 flexcop_dma_config(fc, &fc_pci->dma[1], FC_DMA_2); flexcop_pci_stream_control() 238 flexcop_dma_config_timer(fc, FC_DMA_1, 0); flexcop_pci_stream_control() 239 flexcop_dma_xfer_control(fc, FC_DMA_1, flexcop_pci_stream_control() 244 flexcop_dma_control_timer_irq(fc, FC_DMA_1, 1); flexcop_pci_stream_control() 248 flexcop_dma_control_timer_irq(fc, FC_DMA_1, 0); flexcop_pci_stream_control() 251 flexcop_dma_xfer_control(fc, FC_DMA_1, flexcop_pci_stream_control() 343 struct flexcop_device *fc; flexcop_pci_probe() local 347 if ((fc = flexcop_device_kmalloc(sizeof(struct flexcop_pci))) == NULL) { flexcop_pci_probe() 353 fc_pci = fc->bus_specific; flexcop_pci_probe() 354 fc_pci->fc_dev = fc; flexcop_pci_probe() 356 fc->read_ibi_reg = flexcop_pci_read_ibi_reg; flexcop_pci_probe() 357 fc->write_ibi_reg = flexcop_pci_write_ibi_reg; flexcop_pci_probe() 358 fc->i2c_request = flexcop_i2c_request; flexcop_pci_probe() 359 fc->get_mac_addr = flexcop_eeprom_check_mac_addr; flexcop_pci_probe() 360 fc->stream_control = flexcop_pci_stream_control; flexcop_pci_probe() 367 fc->pid_filtering = enable_pid_filtering; flexcop_pci_probe() 368 fc->bus_type = FC_PCI; flexcop_pci_probe() 369 fc->dev = &pdev->dev; flexcop_pci_probe() 370 fc->owner = THIS_MODULE; flexcop_pci_probe() 378 if ((ret = flexcop_device_initialize(fc)) != 0) flexcop_pci_probe() 395 flexcop_device_exit(fc); flexcop_pci_probe() 399 flexcop_device_kfree(fc); flexcop_pci_probe()
|
/linux-4.1.27/drivers/md/ |
H A D | dm-flakey.c | 18 #define all_corrupt_bio_flags_match(bio, fc) \ 19 (((bio)->bi_rw & (fc)->corrupt_bio_flags) == (fc)->corrupt_bio_flags) 46 static int parse_features(struct dm_arg_set *as, struct flakey_c *fc, parse_features() argument 76 if (test_and_set_bit(DROP_WRITES, &fc->flags)) { parse_features() 93 r = dm_read_arg(_args + 1, as, &fc->corrupt_bio_byte, &ti->error); parse_features() 103 fc->corrupt_bio_rw = WRITE; parse_features() 105 fc->corrupt_bio_rw = READ; parse_features() 115 r = dm_read_arg(_args + 2, as, &fc->corrupt_bio_value, &ti->error); parse_features() 123 r = dm_read_arg(_args + 3, as, &fc->corrupt_bio_flags, &ti->error); parse_features() 135 if (test_bit(DROP_WRITES, &fc->flags) && (fc->corrupt_bio_rw == WRITE)) { parse_features() 163 struct flakey_c *fc; flakey_ctr() local 177 fc = kzalloc(sizeof(*fc), GFP_KERNEL); flakey_ctr() 178 if (!fc) { flakey_ctr() 182 fc->start_time = jiffies; flakey_ctr() 190 fc->start = tmpll; flakey_ctr() 192 r = dm_read_arg(_args, &as, &fc->up_interval, &ti->error); flakey_ctr() 196 r = dm_read_arg(_args, &as, &fc->down_interval, &ti->error); flakey_ctr() 200 if (!(fc->up_interval + fc->down_interval)) { flakey_ctr() 205 if (fc->up_interval + fc->down_interval < fc->up_interval) { flakey_ctr() 210 r = parse_features(&as, fc, ti); flakey_ctr() 214 if (dm_get_device(ti, devname, dm_table_get_mode(ti->table), &fc->dev)) { flakey_ctr() 222 ti->private = fc; flakey_ctr() 226 kfree(fc); flakey_ctr() 232 struct flakey_c *fc = ti->private; flakey_dtr() local 234 dm_put_device(ti, fc->dev); flakey_dtr() 235 kfree(fc); flakey_dtr() 240 struct flakey_c *fc = ti->private; flakey_map_sector() local 242 return fc->start + dm_target_offset(ti, bi_sector); flakey_map_sector() 247 struct flakey_c *fc = ti->private; flakey_map_bio() local 249 bio->bi_bdev = fc->dev->bdev; flakey_map_bio() 255 static void corrupt_bio_data(struct bio *bio, struct flakey_c *fc) corrupt_bio_data() argument 263 if (data && bio_bytes >= fc->corrupt_bio_byte) { corrupt_bio_data() 264 data[fc->corrupt_bio_byte - 1] = fc->corrupt_bio_value; corrupt_bio_data() 268 bio, fc->corrupt_bio_value, fc->corrupt_bio_byte, corrupt_bio_data() 276 struct flakey_c *fc = ti->private; flakey_map() local 282 elapsed = (jiffies - fc->start_time) / HZ; flakey_map() 283 if (elapsed % (fc->up_interval + fc->down_interval) >= fc->up_interval) { flakey_map() 298 if (test_bit(DROP_WRITES, &fc->flags)) { flakey_map() 306 if (fc->corrupt_bio_byte && (fc->corrupt_bio_rw == WRITE)) { flakey_map() 307 if (all_corrupt_bio_flags_match(bio, fc)) flakey_map() 308 corrupt_bio_data(bio, fc); flakey_map() 326 struct flakey_c *fc = ti->private; flakey_end_io() local 333 if (fc->corrupt_bio_byte && !error && pb->bio_submitted && flakey_end_io() 334 (bio_data_dir(bio) == READ) && (fc->corrupt_bio_rw == READ) && flakey_end_io() 335 all_corrupt_bio_flags_match(bio, fc)) flakey_end_io() 336 corrupt_bio_data(bio, fc); flakey_end_io() 345 struct flakey_c *fc = ti->private; flakey_status() local 354 DMEMIT("%s %llu %u %u ", fc->dev->name, flakey_status() 355 (unsigned long long)fc->start, fc->up_interval, flakey_status() 356 fc->down_interval); flakey_status() 358 drop_writes = test_bit(DROP_WRITES, &fc->flags); flakey_status() 359 DMEMIT("%u ", drop_writes + (fc->corrupt_bio_byte > 0) * 5); flakey_status() 364 if (fc->corrupt_bio_byte) flakey_status() 366 fc->corrupt_bio_byte, flakey_status() 367 (fc->corrupt_bio_rw == WRITE) ? 'w' : 'r', flakey_status() 368 fc->corrupt_bio_value, fc->corrupt_bio_flags); flakey_status() 376 struct flakey_c *fc = ti->private; flakey_ioctl() local 377 struct dm_dev *dev = fc->dev; flakey_ioctl() 383 if (fc->start || flakey_ioctl() 393 struct flakey_c *fc = ti->private; flakey_merge() local 394 struct request_queue *q = bdev_get_queue(fc->dev->bdev); flakey_merge() 399 bvm->bi_bdev = fc->dev->bdev; flakey_merge() 407 struct flakey_c *fc = ti->private; flakey_iterate_devices() local 409 return fn(ti, fc->dev, fc->start, ti->len, data); flakey_iterate_devices()
|
/linux-4.1.27/drivers/isdn/hardware/mISDN/ |
H A D | avmfritz.c | 185 struct fritzcard *fc = p; ReadISAC_V1() local 188 outb(idx, fc->addr + CHIP_INDEX); ReadISAC_V1() 189 return inb(fc->addr + CHIP_WINDOW + (offset & 0xf)); ReadISAC_V1() 195 struct fritzcard *fc = p; WriteISAC_V1() local 198 outb(idx, fc->addr + CHIP_INDEX); WriteISAC_V1() 199 outb(value, fc->addr + CHIP_WINDOW + (offset & 0xf)); WriteISAC_V1() 205 struct fritzcard *fc = p; ReadFiFoISAC_V1() local 207 outb(AVM_ISAC_FIFO, fc->addr + CHIP_INDEX); ReadFiFoISAC_V1() 208 insb(fc->addr + CHIP_WINDOW, data, size); ReadFiFoISAC_V1() 214 struct fritzcard *fc = p; WriteFiFoISAC_V1() local 216 outb(AVM_ISAC_FIFO, fc->addr + CHIP_INDEX); WriteFiFoISAC_V1() 217 outsb(fc->addr + CHIP_WINDOW, data, size); WriteFiFoISAC_V1() 223 struct fritzcard *fc = p; ReadISAC_V2() local 225 outl(offset, fc->addr + AVM_ISACX_INDEX); ReadISAC_V2() 226 return 0xff & inl(fc->addr + AVM_ISACX_DATA); ReadISAC_V2() 232 struct fritzcard *fc = p; WriteISAC_V2() local 234 outl(offset, fc->addr + AVM_ISACX_INDEX); WriteISAC_V2() 235 outl(value, fc->addr + AVM_ISACX_DATA); WriteISAC_V2() 241 struct fritzcard *fc = p; ReadFiFoISAC_V2() local 244 outl(off, fc->addr + AVM_ISACX_INDEX); ReadFiFoISAC_V2() 246 data[i] = 0xff & inl(fc->addr + AVM_ISACX_DATA); ReadFiFoISAC_V2() 252 struct fritzcard *fc = p; WriteFiFoISAC_V2() local 255 outl(off, fc->addr + AVM_ISACX_INDEX); WriteFiFoISAC_V2() 257 outl(data[i], fc->addr + AVM_ISACX_DATA); WriteFiFoISAC_V2() 261 Sel_BCS(struct fritzcard *fc, u32 channel) Sel_BCS() argument 263 if (test_bit(FLG_ACTIVE, &fc->bch[0].Flags) && Sel_BCS() 264 (fc->bch[0].nr & channel)) Sel_BCS() 265 return &fc->bch[0]; Sel_BCS() 266 else if (test_bit(FLG_ACTIVE, &fc->bch[1].Flags) && Sel_BCS() 267 (fc->bch[1].nr & channel)) Sel_BCS() 268 return &fc->bch[1]; Sel_BCS() 274 __write_ctrl_pci(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { __write_ctrl_pci() argument 277 outl(idx, fc->addr + CHIP_INDEX); __write_ctrl_pci() 278 outl(hdlc->ctrl.ctrl, fc->addr + CHIP_WINDOW + HDLC_STATUS); __write_ctrl_pci() 282 __write_ctrl_pciv2(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { __write_ctrl_pciv2() argument 283 outl(hdlc->ctrl.ctrl, fc->addr + (channel == 2 ? AVM_HDLC_STATUS_2 : __write_ctrl_pciv2() 289 struct fritzcard *fc = bch->hw; write_ctrl() local 292 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; write_ctrl() 293 pr_debug("%s: hdlc %c wr%x ctrl %x\n", fc->name, '@' + bch->nr, write_ctrl() 295 switch (fc->type) { write_ctrl() 297 __write_ctrl_pciv2(fc, hdlc, bch->nr); write_ctrl() 300 __write_ctrl_pci(fc, hdlc, bch->nr); write_ctrl() 322 read_status(struct fritzcard *fc, u32 channel) read_status() argument 324 switch (fc->type) { read_status() 326 return __read_status_pciv2(fc->addr, channel); read_status() 328 return __read_status_pci(fc->addr, channel); read_status() 335 enable_hwirq(struct fritzcard *fc) enable_hwirq() argument 337 fc->ctrlreg |= AVM_STATUS0_ENA_IRQ; enable_hwirq() 338 outb(fc->ctrlreg, fc->addr + 2); enable_hwirq() 342 disable_hwirq(struct fritzcard *fc) disable_hwirq() argument 344 fc->ctrlreg &= ~AVM_STATUS0_ENA_IRQ; disable_hwirq() 345 outb(fc->ctrlreg, fc->addr + 2); disable_hwirq() 351 struct fritzcard *fc = bch->hw; modehdlc() local 355 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; modehdlc() 356 pr_debug("%s: hdlc %c protocol %x-->%x ch %d\n", fc->name, modehdlc() 359 mode = (fc->type == AVM_FRITZ_PCIV2) ? HDLC_FIFO_SIZE_128 : 0; modehdlc() 395 pr_info("%s: protocol not known %x\n", fc->name, protocol); modehdlc() 408 struct fritzcard *fc = bch->hw; hdlc_empty_fifo() local 410 pr_debug("%s: %s %d\n", fc->name, __func__, count); hdlc_empty_fifo() 418 fc->name, bch->nr, count); hdlc_empty_fifo() 424 if (fc->type == AVM_FRITZ_PCIV2) hdlc_empty_fifo() 425 addr = fc->addr + (bch->nr == 2 ? hdlc_empty_fifo() 428 addr = fc->addr + CHIP_WINDOW; hdlc_empty_fifo() 429 outl(bch->nr == 2 ? AVM_HDLC_2 : AVM_HDLC_1, fc->addr); hdlc_empty_fifo() 441 snprintf(fc->log, LOG_SIZE, "B%1d-recv %s %d ", hdlc_empty_fifo() 442 bch->nr, fc->name, count); hdlc_empty_fifo() 443 print_hex_dump_bytes(fc->log, DUMP_PREFIX_OFFSET, p, count); hdlc_empty_fifo() 450 struct fritzcard *fc = bch->hw; hdlc_fill_fifo() local 458 hdlc = &fc->hdlc[idx]; hdlc_fill_fifo() 459 fs = (fc->type == AVM_FRITZ_PCIV2) ? hdlc_fill_fifo() 482 pr_debug("%s.B%d: %d/%d/%d", fc->name, bch->nr, count, hdlc_fill_fifo() 486 pr_debug("%s.B%d: fillempty %d\n", fc->name, bch->nr, count); hdlc_fill_fifo() 489 if (fc->type == AVM_FRITZ_PCIV2) { hdlc_fill_fifo() 490 __write_ctrl_pciv2(fc, hdlc, bch->nr); hdlc_fill_fifo() 491 addr = fc->addr + (bch->nr == 2 ? hdlc_fill_fifo() 494 __write_ctrl_pci(fc, hdlc, bch->nr); hdlc_fill_fifo() 495 addr = fc->addr + CHIP_WINDOW; hdlc_fill_fifo() 512 snprintf(fc->log, LOG_SIZE, "B%1d-send %s %d ", hdlc_fill_fifo() 513 bch->nr, fc->name, count); hdlc_fill_fifo() 514 print_hex_dump_bytes(fc->log, DUMP_PREFIX_OFFSET, p, count); hdlc_fill_fifo() 538 struct fritzcard *fc = bch->hw; HDLC_irq() local 543 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; HDLC_irq() 544 pr_debug("%s: ch%d stat %#x\n", fc->name, bch->nr, stat); HDLC_irq() 545 if (fc->type == AVM_FRITZ_PCIV2) { HDLC_irq() 555 fc->name, bch->nr, stat); HDLC_irq() 578 fc->name); HDLC_irq() 590 pr_warning("%s: ch%d stat %x XDU %s\n", fc->name, bch->nr, HDLC_irq() 609 HDLC_irq_main(struct fritzcard *fc) HDLC_irq_main() argument 614 stat = read_status(fc, 1); HDLC_irq_main() 616 bch = Sel_BCS(fc, 1); HDLC_irq_main() 620 pr_debug("%s: spurious ch1 IRQ\n", fc->name); HDLC_irq_main() 622 stat = read_status(fc, 2); HDLC_irq_main() 624 bch = Sel_BCS(fc, 2); HDLC_irq_main() 628 pr_debug("%s: spurious ch2 IRQ\n", fc->name); HDLC_irq_main() 635 struct fritzcard *fc = dev_id; avm_fritz_interrupt() local 639 spin_lock(&fc->lock); avm_fritz_interrupt() 640 sval = inb(fc->addr + 2); avm_fritz_interrupt() 641 pr_debug("%s: irq stat0 %x\n", fc->name, sval); avm_fritz_interrupt() 644 spin_unlock(&fc->lock); avm_fritz_interrupt() 647 fc->irqcnt++; avm_fritz_interrupt() 650 val = ReadISAC_V1(fc, ISAC_ISTA); avm_fritz_interrupt() 651 mISDNisac_irq(&fc->isac, val); avm_fritz_interrupt() 654 HDLC_irq_main(fc); avm_fritz_interrupt() 655 spin_unlock(&fc->lock); avm_fritz_interrupt() 662 struct fritzcard *fc = dev_id; avm_fritzv2_interrupt() local 666 spin_lock(&fc->lock); avm_fritzv2_interrupt() 667 sval = inb(fc->addr + 2); avm_fritzv2_interrupt() 668 pr_debug("%s: irq stat0 %x\n", fc->name, sval); avm_fritzv2_interrupt() 671 spin_unlock(&fc->lock); avm_fritzv2_interrupt() 674 fc->irqcnt++; avm_fritzv2_interrupt() 677 HDLC_irq_main(fc); avm_fritzv2_interrupt() 679 val = ReadISAC_V2(fc, ISACX_ISTA); avm_fritzv2_interrupt() 680 mISDNisac_irq(&fc->isac, val); avm_fritzv2_interrupt() 683 pr_debug("%s: timer irq\n", fc->name); avm_fritzv2_interrupt() 684 outb(fc->ctrlreg | AVM_STATUS0_RES_TIMER, fc->addr + 2); avm_fritzv2_interrupt() 686 outb(fc->ctrlreg, fc->addr + 2); avm_fritzv2_interrupt() 688 spin_unlock(&fc->lock); avm_fritzv2_interrupt() 696 struct fritzcard *fc = bch->hw; avm_l2l1B() local 703 spin_lock_irqsave(&fc->lock, flags); avm_l2l1B() 709 spin_unlock_irqrestore(&fc->lock, flags); avm_l2l1B() 712 spin_lock_irqsave(&fc->lock, flags); avm_l2l1B() 717 spin_unlock_irqrestore(&fc->lock, flags); avm_l2l1B() 723 spin_lock_irqsave(&fc->lock, flags); avm_l2l1B() 726 spin_unlock_irqrestore(&fc->lock, flags); avm_l2l1B() 738 inithdlc(struct fritzcard *fc) inithdlc() argument 740 modehdlc(&fc->bch[0], -1); inithdlc() 741 modehdlc(&fc->bch[1], -1); inithdlc() 745 clear_pending_hdlc_ints(struct fritzcard *fc) clear_pending_hdlc_ints() argument 749 val = read_status(fc, 1); clear_pending_hdlc_ints() 750 pr_debug("%s: HDLC 1 STA %x\n", fc->name, val); clear_pending_hdlc_ints() 751 val = read_status(fc, 2); clear_pending_hdlc_ints() 752 pr_debug("%s: HDLC 2 STA %x\n", fc->name, val); clear_pending_hdlc_ints() 756 reset_avm(struct fritzcard *fc) reset_avm() argument 758 switch (fc->type) { reset_avm() 760 fc->ctrlreg = AVM_STATUS0_RESET | AVM_STATUS0_DIS_TIMER; reset_avm() 763 fc->ctrlreg = AVM_STATUS0_RESET; reset_avm() 767 pr_notice("%s: reset\n", fc->name); reset_avm() 768 disable_hwirq(fc); reset_avm() 770 switch (fc->type) { reset_avm() 772 fc->ctrlreg = AVM_STATUS0_DIS_TIMER | AVM_STATUS0_RES_TIMER; reset_avm() 773 disable_hwirq(fc); reset_avm() 774 outb(AVM_STATUS1_ENA_IOM, fc->addr + 3); reset_avm() 777 fc->ctrlreg = 0; reset_avm() 778 disable_hwirq(fc); reset_avm() 783 pr_notice("%s: S0/S1 %x/%x\n", fc->name, reset_avm() 784 inb(fc->addr + 2), inb(fc->addr + 3)); reset_avm() 788 init_card(struct fritzcard *fc) init_card() argument 793 reset_avm(fc); /* disable IRQ */ init_card() 794 if (fc->type == AVM_FRITZ_PCIV2) init_card() 795 ret = request_irq(fc->irq, avm_fritzv2_interrupt, init_card() 796 IRQF_SHARED, fc->name, fc); init_card() 798 ret = request_irq(fc->irq, avm_fritz_interrupt, init_card() 799 IRQF_SHARED, fc->name, fc); init_card() 802 fc->name, fc->irq); init_card() 806 spin_lock_irqsave(&fc->lock, flags); init_card() 807 ret = fc->isac.init(&fc->isac); init_card() 809 spin_unlock_irqrestore(&fc->lock, flags); init_card() 811 fc->name, ret); init_card() 814 clear_pending_hdlc_ints(fc); init_card() 815 inithdlc(fc); init_card() 816 enable_hwirq(fc); init_card() 818 if (fc->type == AVM_FRITZ_PCIV2) { init_card() 819 WriteISAC_V2(fc, ISACX_MASK, 0); init_card() 820 WriteISAC_V2(fc, ISACX_CMDRD, 0x41); init_card() 822 WriteISAC_V1(fc, ISAC_MASK, 0); init_card() 823 WriteISAC_V1(fc, ISAC_CMDR, 0x41); init_card() 825 spin_unlock_irqrestore(&fc->lock, flags); init_card() 829 pr_notice("%s: IRQ %d count %d\n", fc->name, init_card() 830 fc->irq, fc->irqcnt); init_card() 831 if (!fc->irqcnt) { init_card() 833 fc->name, fc->irq, 3 - cnt); init_card() 834 reset_avm(fc); init_card() 838 free_irq(fc->irq, fc); init_card() 852 struct fritzcard *fc = bch->hw; avm_bctrl() local 856 pr_debug("%s: %s cmd:%x %p\n", fc->name, __func__, cmd, arg); avm_bctrl() 861 spin_lock_irqsave(&fc->lock, flags); avm_bctrl() 864 spin_unlock_irqrestore(&fc->lock, flags); avm_bctrl() 874 pr_info("%s: %s unknown prim(%x)\n", fc->name, __func__, cmd); avm_bctrl() 880 channel_ctrl(struct fritzcard *fc, struct mISDN_ctrl_req *cq) channel_ctrl() argument 894 ret = fc->isac.ctrl(&fc->isac, HW_TESTLOOP, cq->channel); channel_ctrl() 897 ret = fc->isac.ctrl(&fc->isac, HW_TIMER3_VALUE, cq->p1); channel_ctrl() 900 pr_info("%s: %s unknown Op %x\n", fc->name, __func__, cq->op); channel_ctrl() 908 open_bchannel(struct fritzcard *fc, struct channel_req *rq) open_bchannel() argument 916 bch = &fc->bch[rq->adr.channel - 1]; open_bchannel() 932 struct fritzcard *fc = dch->hw; avm_dctrl() local 936 pr_debug("%s: %s cmd:%x %p\n", fc->name, __func__, cmd, arg); avm_dctrl() 941 err = fc->isac.open(&fc->isac, rq); avm_dctrl() 943 err = open_bchannel(fc, rq); avm_dctrl() 947 pr_info("%s: cannot get module\n", fc->name); avm_dctrl() 950 pr_debug("%s: dev(%d) close from %p\n", fc->name, dch->dev.id, avm_dctrl() 955 err = channel_ctrl(fc, arg); avm_dctrl() 959 fc->name, __func__, cmd); avm_dctrl() 966 setup_fritz(struct fritzcard *fc) setup_fritz() argument 970 if (!request_region(fc->addr, 32, fc->name)) { setup_fritz() 972 fc->name, fc->addr, fc->addr + 31); setup_fritz() 975 switch (fc->type) { setup_fritz() 977 val = inl(fc->addr); setup_fritz() 978 outl(AVM_HDLC_1, fc->addr + CHIP_INDEX); setup_fritz() 979 ver = inl(fc->addr + CHIP_WINDOW + HDLC_STATUS) >> 24; setup_fritz() 981 pr_notice("%s: PCI stat %#x\n", fc->name, val); setup_fritz() 982 pr_notice("%s: PCI Class %X Rev %d\n", fc->name, setup_fritz() 984 pr_notice("%s: HDLC version %x\n", fc->name, ver & 0xf); setup_fritz() 986 ASSIGN_FUNC(V1, ISAC, fc->isac); setup_fritz() 987 fc->isac.type = IPAC_TYPE_ISAC; setup_fritz() 990 val = inl(fc->addr); setup_fritz() 991 ver = inl(fc->addr + AVM_HDLC_STATUS_1) >> 24; setup_fritz() 993 pr_notice("%s: PCI V2 stat %#x\n", fc->name, val); setup_fritz() 994 pr_notice("%s: PCI V2 Class %X Rev %d\n", fc->name, setup_fritz() 996 pr_notice("%s: HDLC version %x\n", fc->name, ver & 0xf); setup_fritz() 998 ASSIGN_FUNC(V2, ISAC, fc->isac); setup_fritz() 999 fc->isac.type = IPAC_TYPE_ISACX; setup_fritz() 1002 release_region(fc->addr, 32); setup_fritz() 1003 pr_info("%s: AVM unknown type %d\n", fc->name, fc->type); setup_fritz() 1006 pr_notice("%s: %s config irq:%d base:0x%X\n", fc->name, setup_fritz() 1007 (fc->type == AVM_FRITZ_PCI) ? "AVM Fritz!CARD PCI" : setup_fritz() 1008 "AVM Fritz!CARD PCIv2", fc->irq, fc->addr); setup_fritz()
|
/linux-4.1.27/fs/fuse/ |
H A D | control.c | 24 struct fuse_conn *fc; fuse_ctl_file_conn_get() local 26 fc = file_inode(file)->i_private; fuse_ctl_file_conn_get() 27 if (fc) fuse_ctl_file_conn_get() 28 fc = fuse_conn_get(fc); fuse_ctl_file_conn_get() 30 return fc; fuse_ctl_file_conn_get() 36 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); fuse_conn_abort_write() local 37 if (fc) { fuse_conn_abort_write() 38 fuse_abort_conn(fc); fuse_conn_abort_write() 39 fuse_conn_put(fc); fuse_conn_abort_write() 52 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); fuse_conn_waiting_read() local 53 if (!fc) fuse_conn_waiting_read() 56 value = atomic_read(&fc->num_waiting); fuse_conn_waiting_read() 58 fuse_conn_put(fc); fuse_conn_waiting_read() 103 struct fuse_conn *fc; fuse_conn_max_background_read() local 106 fc = fuse_ctl_file_conn_get(file); fuse_conn_max_background_read() 107 if (!fc) fuse_conn_max_background_read() 110 val = fc->max_background; fuse_conn_max_background_read() 111 fuse_conn_put(fc); fuse_conn_max_background_read() 126 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); fuse_conn_max_background_write() local 127 if (fc) { fuse_conn_max_background_write() 128 fc->max_background = val; fuse_conn_max_background_write() 129 fuse_conn_put(fc); fuse_conn_max_background_write() 140 struct fuse_conn *fc; fuse_conn_congestion_threshold_read() local 143 fc = fuse_ctl_file_conn_get(file); fuse_conn_congestion_threshold_read() 144 if (!fc) fuse_conn_congestion_threshold_read() 147 val = fc->congestion_threshold; fuse_conn_congestion_threshold_read() 148 fuse_conn_put(fc); fuse_conn_congestion_threshold_read() 163 struct fuse_conn *fc = fuse_ctl_file_conn_get(file); fuse_conn_congestion_threshold_write() local 164 if (fc) { fuse_conn_congestion_threshold_write() 165 fc->congestion_threshold = val; fuse_conn_congestion_threshold_write() 166 fuse_conn_put(fc); fuse_conn_congestion_threshold_write() 200 struct fuse_conn *fc, fuse_ctl_add_dentry() 209 BUG_ON(fc->ctl_ndents >= FUSE_CTL_NUM_DENTRIES); fuse_ctl_add_dentry() 214 fc->ctl_dentry[fc->ctl_ndents++] = dentry; fuse_ctl_add_dentry() 221 inode->i_uid = fc->user_id; fuse_ctl_add_dentry() 222 inode->i_gid = fc->group_id; fuse_ctl_add_dentry() 229 inode->i_private = fc; fuse_ctl_add_dentry() 238 int fuse_ctl_add_conn(struct fuse_conn *fc) fuse_ctl_add_conn() argument 248 sprintf(name, "%u", fc->dev); fuse_ctl_add_conn() 249 parent = fuse_ctl_add_dentry(parent, fc, name, S_IFDIR | 0500, 2, fuse_ctl_add_conn() 255 if (!fuse_ctl_add_dentry(parent, fc, "waiting", S_IFREG | 0400, 1, fuse_ctl_add_conn() 257 !fuse_ctl_add_dentry(parent, fc, "abort", S_IFREG | 0200, 1, fuse_ctl_add_conn() 259 !fuse_ctl_add_dentry(parent, fc, "max_background", S_IFREG | 0600, fuse_ctl_add_conn() 261 !fuse_ctl_add_dentry(parent, fc, "congestion_threshold", fuse_ctl_add_conn() 269 fuse_ctl_remove_conn(fc); fuse_ctl_add_conn() 277 void fuse_ctl_remove_conn(struct fuse_conn *fc) fuse_ctl_remove_conn() argument 284 for (i = fc->ctl_ndents - 1; i >= 0; i--) { fuse_ctl_remove_conn() 285 struct dentry *dentry = fc->ctl_dentry[i]; fuse_ctl_remove_conn() 296 struct fuse_conn *fc; fuse_ctl_fill_super() local 306 list_for_each_entry(fc, &fuse_conn_list, entry) { fuse_ctl_fill_super() 307 err = fuse_ctl_add_conn(fc); fuse_ctl_fill_super() 327 struct fuse_conn *fc; fuse_ctl_kill_sb() local 331 list_for_each_entry(fc, &fuse_conn_list, entry) fuse_ctl_kill_sb() 332 fc->ctl_ndents = 0; fuse_ctl_kill_sb() 199 fuse_ctl_add_dentry(struct dentry *parent, struct fuse_conn *fc, const char *name, int mode, int nlink, const struct inode_operations *iop, const struct file_operations *fop) fuse_ctl_add_dentry() argument
|
H A D | dev.c | 133 void fuse_set_initialized(struct fuse_conn *fc) fuse_set_initialized() argument 137 fc->initialized = 1; fuse_set_initialized() 140 static bool fuse_block_alloc(struct fuse_conn *fc, bool for_background) fuse_block_alloc() argument 142 return !fc->initialized || (for_background && fc->blocked); fuse_block_alloc() 145 static struct fuse_req *__fuse_get_req(struct fuse_conn *fc, unsigned npages, __fuse_get_req() argument 150 atomic_inc(&fc->num_waiting); __fuse_get_req() 152 if (fuse_block_alloc(fc, for_background)) { __fuse_get_req() 157 intr = wait_event_interruptible_exclusive(fc->blocked_waitq, __fuse_get_req() 158 !fuse_block_alloc(fc, for_background)); __fuse_get_req() 168 if (!fc->connected) __fuse_get_req() 175 wake_up(&fc->blocked_waitq); __fuse_get_req() 185 atomic_dec(&fc->num_waiting); __fuse_get_req() 189 struct fuse_req *fuse_get_req(struct fuse_conn *fc, unsigned npages) fuse_get_req() argument 191 return __fuse_get_req(fc, npages, false); fuse_get_req() 195 struct fuse_req *fuse_get_req_for_background(struct fuse_conn *fc, fuse_get_req_for_background() argument 198 return __fuse_get_req(fc, npages, true); fuse_get_req_for_background() 207 static struct fuse_req *get_reserved_req(struct fuse_conn *fc, get_reserved_req() argument 214 wait_event(fc->reserved_req_waitq, ff->reserved_req); get_reserved_req() 215 spin_lock(&fc->lock); get_reserved_req() 221 spin_unlock(&fc->lock); get_reserved_req() 230 static void put_reserved_req(struct fuse_conn *fc, struct fuse_req *req) put_reserved_req() argument 235 spin_lock(&fc->lock); put_reserved_req() 239 wake_up_all(&fc->reserved_req_waitq); put_reserved_req() 240 spin_unlock(&fc->lock); put_reserved_req() 257 struct fuse_req *fuse_get_req_nofail_nopages(struct fuse_conn *fc, fuse_get_req_nofail_nopages() argument 262 atomic_inc(&fc->num_waiting); fuse_get_req_nofail_nopages() 263 wait_event(fc->blocked_waitq, fc->initialized); fuse_get_req_nofail_nopages() 268 req = get_reserved_req(fc, file); fuse_get_req_nofail_nopages() 276 void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req) fuse_put_request() argument 284 spin_lock(&fc->lock); fuse_put_request() 285 if (!fc->blocked) fuse_put_request() 286 wake_up(&fc->blocked_waitq); fuse_put_request() 287 spin_unlock(&fc->lock); fuse_put_request() 291 atomic_dec(&fc->num_waiting); fuse_put_request() 294 put_reserved_req(fc, req); fuse_put_request() 312 static u64 fuse_get_unique(struct fuse_conn *fc) fuse_get_unique() argument 314 fc->reqctr++; fuse_get_unique() 316 if (fc->reqctr == 0) fuse_get_unique() 317 fc->reqctr = 1; fuse_get_unique() 319 return fc->reqctr; fuse_get_unique() 322 static void queue_request(struct fuse_conn *fc, struct fuse_req *req) queue_request() argument 326 list_add_tail(&req->list, &fc->pending); queue_request() 330 atomic_inc(&fc->num_waiting); queue_request() 332 wake_up(&fc->waitq); queue_request() 333 kill_fasync(&fc->fasync, SIGIO, POLL_IN); queue_request() 336 void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget, fuse_queue_forget() argument 342 spin_lock(&fc->lock); fuse_queue_forget() 343 if (fc->connected) { fuse_queue_forget() 344 fc->forget_list_tail->next = forget; fuse_queue_forget() 345 fc->forget_list_tail = forget; fuse_queue_forget() 346 wake_up(&fc->waitq); fuse_queue_forget() 347 kill_fasync(&fc->fasync, SIGIO, POLL_IN); fuse_queue_forget() 351 spin_unlock(&fc->lock); fuse_queue_forget() 354 static void flush_bg_queue(struct fuse_conn *fc) flush_bg_queue() argument 356 while (fc->active_background < fc->max_background && flush_bg_queue() 357 !list_empty(&fc->bg_queue)) { flush_bg_queue() 360 req = list_entry(fc->bg_queue.next, struct fuse_req, list); flush_bg_queue() 362 fc->active_background++; flush_bg_queue() 363 req->in.h.unique = fuse_get_unique(fc); flush_bg_queue() 364 queue_request(fc, req); flush_bg_queue() 376 * Called with fc->lock, unlocks it 378 static void request_end(struct fuse_conn *fc, struct fuse_req *req) 379 __releases(fc->lock) 389 if (fc->num_background == fc->max_background) 390 fc->blocked = 0; 393 if (!fc->blocked && waitqueue_active(&fc->blocked_waitq)) 394 wake_up(&fc->blocked_waitq); 396 if (fc->num_background == fc->congestion_threshold && 397 fc->connected && fc->bdi_initialized) { 398 clear_bdi_congested(&fc->bdi, BLK_RW_SYNC); 399 clear_bdi_congested(&fc->bdi, BLK_RW_ASYNC); 401 fc->num_background--; 402 fc->active_background--; 403 flush_bg_queue(fc); variable 405 spin_unlock(&fc->lock); 408 end(fc, req); 409 fuse_put_request(fc, req); 412 static void wait_answer_interruptible(struct fuse_conn *fc, 414 __releases(fc->lock) 415 __acquires(fc->lock) 420 spin_unlock(&fc->lock); 422 spin_lock(&fc->lock); 425 static void queue_interrupt(struct fuse_conn *fc, struct fuse_req *req) queue_interrupt() argument 427 list_add_tail(&req->intr_entry, &fc->interrupts); queue_interrupt() 428 wake_up(&fc->waitq); queue_interrupt() 429 kill_fasync(&fc->fasync, SIGIO, POLL_IN); queue_interrupt() 432 static void request_wait_answer(struct fuse_conn *fc, struct fuse_req *req) 433 __releases(fc->lock) 434 __acquires(fc->lock) 436 if (!fc->no_interrupt) { 438 wait_answer_interruptible(fc, req); 447 queue_interrupt(fc, req); 455 wait_answer_interruptible(fc, req); 476 spin_unlock(&fc->lock); 478 spin_lock(&fc->lock); 491 spin_unlock(&fc->lock); 493 spin_lock(&fc->lock); 497 static void __fuse_request_send(struct fuse_conn *fc, struct fuse_req *req) __fuse_request_send() argument 500 spin_lock(&fc->lock); __fuse_request_send() 501 if (!fc->connected) __fuse_request_send() 503 else if (fc->conn_error) __fuse_request_send() 506 req->in.h.unique = fuse_get_unique(fc); __fuse_request_send() 507 queue_request(fc, req); __fuse_request_send() 512 request_wait_answer(fc, req); __fuse_request_send() 514 spin_unlock(&fc->lock); __fuse_request_send() 517 void fuse_request_send(struct fuse_conn *fc, struct fuse_req *req) fuse_request_send() argument 520 __fuse_request_send(fc, req); fuse_request_send() 524 static void fuse_adjust_compat(struct fuse_conn *fc, struct fuse_args *args) fuse_adjust_compat() argument 526 if (fc->minor < 4 && args->in.h.opcode == FUSE_STATFS) fuse_adjust_compat() 529 if (fc->minor < 9) { fuse_adjust_compat() 545 if (fc->minor < 12) { fuse_adjust_compat() 557 ssize_t fuse_simple_request(struct fuse_conn *fc, struct fuse_args *args) fuse_simple_request() argument 562 req = fuse_get_req(fc, 0); fuse_simple_request() 566 /* Needs to be done after fuse_get_req() so that fc->minor is valid */ fuse_simple_request() 567 fuse_adjust_compat(fc, args); fuse_simple_request() 578 fuse_request_send(fc, req); fuse_simple_request() 584 fuse_put_request(fc, req); fuse_simple_request() 589 static void fuse_request_send_nowait_locked(struct fuse_conn *fc, fuse_request_send_nowait_locked() argument 593 fc->num_background++; fuse_request_send_nowait_locked() 594 if (fc->num_background == fc->max_background) fuse_request_send_nowait_locked() 595 fc->blocked = 1; fuse_request_send_nowait_locked() 596 if (fc->num_background == fc->congestion_threshold && fuse_request_send_nowait_locked() 597 fc->bdi_initialized) { fuse_request_send_nowait_locked() 598 set_bdi_congested(&fc->bdi, BLK_RW_SYNC); fuse_request_send_nowait_locked() 599 set_bdi_congested(&fc->bdi, BLK_RW_ASYNC); fuse_request_send_nowait_locked() 601 list_add_tail(&req->list, &fc->bg_queue); fuse_request_send_nowait_locked() 602 flush_bg_queue(fc); fuse_request_send_nowait_locked() 605 static void fuse_request_send_nowait(struct fuse_conn *fc, struct fuse_req *req) fuse_request_send_nowait() argument 607 spin_lock(&fc->lock); fuse_request_send_nowait() 608 if (fc->connected) { fuse_request_send_nowait() 609 fuse_request_send_nowait_locked(fc, req); fuse_request_send_nowait() 610 spin_unlock(&fc->lock); fuse_request_send_nowait() 613 request_end(fc, req); fuse_request_send_nowait() 617 void fuse_request_send_background(struct fuse_conn *fc, struct fuse_req *req) fuse_request_send_background() argument 620 fuse_request_send_nowait(fc, req); fuse_request_send_background() 624 static int fuse_request_send_notify_reply(struct fuse_conn *fc, fuse_request_send_notify_reply() argument 631 spin_lock(&fc->lock); fuse_request_send_notify_reply() 632 if (fc->connected) { fuse_request_send_notify_reply() 633 queue_request(fc, req); fuse_request_send_notify_reply() 636 spin_unlock(&fc->lock); fuse_request_send_notify_reply() 642 * Called under fc->lock 644 * fc->connected must have been checked previously 646 void fuse_request_send_background_locked(struct fuse_conn *fc, fuse_request_send_background_locked() argument 650 fuse_request_send_nowait_locked(fc, req); fuse_request_send_background_locked() 656 struct fuse_conn *fc = get_fuse_conn(inode); fuse_force_forget() local 662 req = fuse_get_req_nofail_nopages(fc, file); fuse_force_forget() 669 __fuse_request_send(fc, req); fuse_force_forget() 671 fuse_put_request(fc, req); fuse_force_forget() 679 static int lock_request(struct fuse_conn *fc, struct fuse_req *req) lock_request() argument 683 spin_lock(&fc->lock); lock_request() 688 spin_unlock(&fc->lock); lock_request() 698 static void unlock_request(struct fuse_conn *fc, struct fuse_req *req) unlock_request() argument 701 spin_lock(&fc->lock); unlock_request() 705 spin_unlock(&fc->lock); unlock_request() 710 struct fuse_conn *fc; member in struct:fuse_copy_state 725 struct fuse_conn *fc, fuse_copy_init() 730 cs->fc = fc; fuse_copy_init() 763 unlock_request(cs->fc, cs->req); fuse_copy_fill() 812 return lock_request(cs->fc, cs->req); fuse_copy_fill() 863 unlock_request(cs->fc, cs->req); fuse_try_move_page() 917 spin_lock(&cs->fc->lock); fuse_try_move_page() 922 spin_unlock(&cs->fc->lock); fuse_try_move_page() 942 err = lock_request(cs->fc, cs->req); fuse_try_move_page() 957 unlock_request(cs->fc, cs->req); fuse_ref_page() 1068 static int forget_pending(struct fuse_conn *fc) forget_pending() argument 1070 return fc->forget_list_head.next != NULL; forget_pending() 1073 static int request_pending(struct fuse_conn *fc) request_pending() argument 1075 return !list_empty(&fc->pending) || !list_empty(&fc->interrupts) || request_pending() 1076 forget_pending(fc); request_pending() 1080 static void request_wait(struct fuse_conn *fc) 1081 __releases(fc->lock) 1082 __acquires(fc->lock) 1086 add_wait_queue_exclusive(&fc->waitq, &wait); 1087 while (fc->connected && !request_pending(fc)) { 1092 spin_unlock(&fc->lock); 1094 spin_lock(&fc->lock); 1097 remove_wait_queue(&fc->waitq, &wait); 1106 * Called with fc->lock held, releases it 1108 static int fuse_read_interrupt(struct fuse_conn *fc, struct fuse_copy_state *cs, 1110 __releases(fc->lock) 1118 req->intr_unique = fuse_get_unique(fc); 1126 spin_unlock(&fc->lock); 1138 static struct fuse_forget_link *dequeue_forget(struct fuse_conn *fc, dequeue_forget() argument 1142 struct fuse_forget_link *head = fc->forget_list_head.next; dequeue_forget() 1149 fc->forget_list_head.next = *newhead; dequeue_forget() 1151 if (fc->forget_list_head.next == NULL) dequeue_forget() 1152 fc->forget_list_tail = &fc->forget_list_head; dequeue_forget() 1160 static int fuse_read_single_forget(struct fuse_conn *fc, 1163 __releases(fc->lock) 1166 struct fuse_forget_link *forget = dequeue_forget(fc, 1, NULL); 1173 .unique = fuse_get_unique(fc), 1177 spin_unlock(&fc->lock); 1193 static int fuse_read_batch_forget(struct fuse_conn *fc, 1195 __releases(fc->lock) 1204 .unique = fuse_get_unique(fc), 1209 spin_unlock(&fc->lock); 1214 head = dequeue_forget(fc, max_forgets, &count); 1215 spin_unlock(&fc->lock); 1242 static int fuse_read_forget(struct fuse_conn *fc, struct fuse_copy_state *cs, 1244 __releases(fc->lock) 1246 if (fc->minor < 16 || fc->forget_list_head.next->next == NULL) 1247 return fuse_read_single_forget(fc, cs, nbytes); 1249 return fuse_read_batch_forget(fc, cs, nbytes); 1261 static ssize_t fuse_dev_do_read(struct fuse_conn *fc, struct file *file, fuse_dev_do_read() argument 1270 spin_lock(&fc->lock); fuse_dev_do_read() 1272 if ((file->f_flags & O_NONBLOCK) && fc->connected && fuse_dev_do_read() 1273 !request_pending(fc)) fuse_dev_do_read() 1276 request_wait(fc); fuse_dev_do_read() 1278 if (!fc->connected) fuse_dev_do_read() 1281 if (!request_pending(fc)) fuse_dev_do_read() 1284 if (!list_empty(&fc->interrupts)) { fuse_dev_do_read() 1285 req = list_entry(fc->interrupts.next, struct fuse_req, fuse_dev_do_read() 1287 return fuse_read_interrupt(fc, cs, nbytes, req); fuse_dev_do_read() 1290 if (forget_pending(fc)) { fuse_dev_do_read() 1291 if (list_empty(&fc->pending) || fc->forget_batch-- > 0) fuse_dev_do_read() 1292 return fuse_read_forget(fc, cs, nbytes); fuse_dev_do_read() 1294 if (fc->forget_batch <= -8) fuse_dev_do_read() 1295 fc->forget_batch = 16; fuse_dev_do_read() 1298 req = list_entry(fc->pending.next, struct fuse_req, list); fuse_dev_do_read() 1300 list_move(&req->list, &fc->io); fuse_dev_do_read() 1310 request_end(fc, req); fuse_dev_do_read() 1313 spin_unlock(&fc->lock); fuse_dev_do_read() 1320 spin_lock(&fc->lock); fuse_dev_do_read() 1323 request_end(fc, req); fuse_dev_do_read() 1328 request_end(fc, req); fuse_dev_do_read() 1332 request_end(fc, req); fuse_dev_do_read() 1335 list_move_tail(&req->list, &fc->processing); fuse_dev_do_read() 1337 queue_interrupt(fc, req); fuse_dev_do_read() 1338 spin_unlock(&fc->lock); fuse_dev_do_read() 1343 spin_unlock(&fc->lock); fuse_dev_do_read() 1362 struct fuse_conn *fc = fuse_get_conn(file); fuse_dev_read() local 1363 if (!fc) fuse_dev_read() 1369 fuse_copy_init(&cs, fc, 1, to); fuse_dev_read() 1371 return fuse_dev_do_read(fc, file, &cs, iov_iter_count(to)); fuse_dev_read() 1383 struct fuse_conn *fc = fuse_get_conn(in); fuse_dev_splice_read() local 1384 if (!fc) fuse_dev_splice_read() 1391 fuse_copy_init(&cs, fc, 1, NULL); fuse_dev_splice_read() 1394 ret = fuse_dev_do_read(fc, in, &cs, len); fuse_dev_splice_read() 1452 static int fuse_notify_poll(struct fuse_conn *fc, unsigned int size, fuse_notify_poll() argument 1466 return fuse_notify_poll_wakeup(fc, &outarg); fuse_notify_poll() 1473 static int fuse_notify_inval_inode(struct fuse_conn *fc, unsigned int size, fuse_notify_inval_inode() argument 1487 down_read(&fc->killsb); fuse_notify_inval_inode() 1489 if (fc->sb) { fuse_notify_inval_inode() 1490 err = fuse_reverse_inval_inode(fc->sb, outarg.ino, fuse_notify_inval_inode() 1493 up_read(&fc->killsb); fuse_notify_inval_inode() 1501 static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size, fuse_notify_inval_entry() argument 1538 down_read(&fc->killsb); fuse_notify_inval_entry() 1540 if (fc->sb) fuse_notify_inval_entry() 1541 err = fuse_reverse_inval_entry(fc->sb, outarg.parent, 0, &name); fuse_notify_inval_entry() 1542 up_read(&fc->killsb); fuse_notify_inval_entry() 1552 static int fuse_notify_delete(struct fuse_conn *fc, unsigned int size, fuse_notify_delete() argument 1589 down_read(&fc->killsb); fuse_notify_delete() 1591 if (fc->sb) fuse_notify_delete() 1592 err = fuse_reverse_inval_entry(fc->sb, outarg.parent, fuse_notify_delete() 1594 up_read(&fc->killsb); fuse_notify_delete() 1604 static int fuse_notify_store(struct fuse_conn *fc, unsigned int size, fuse_notify_store() argument 1632 down_read(&fc->killsb); fuse_notify_store() 1635 if (!fc->sb) fuse_notify_store() 1638 inode = ilookup5(fc->sb, nodeid, fuse_inode_eq, &nodeid); fuse_notify_store() 1684 up_read(&fc->killsb); fuse_notify_store() 1690 static void fuse_retrieve_end(struct fuse_conn *fc, struct fuse_req *req) fuse_retrieve_end() argument 1695 static int fuse_retrieve(struct fuse_conn *fc, struct inode *inode, fuse_retrieve() argument 1720 req = fuse_get_req(fc, num_pages); fuse_retrieve() 1757 err = fuse_request_send_notify_reply(fc, req, outarg->notify_unique); fuse_retrieve() 1759 fuse_retrieve_end(fc, req); fuse_retrieve() 1764 static int fuse_notify_retrieve(struct fuse_conn *fc, unsigned int size, fuse_notify_retrieve() argument 1781 down_read(&fc->killsb); fuse_notify_retrieve() 1783 if (fc->sb) { fuse_notify_retrieve() 1786 inode = ilookup5(fc->sb, nodeid, fuse_inode_eq, &nodeid); fuse_notify_retrieve() 1788 err = fuse_retrieve(fc, inode, &outarg); fuse_notify_retrieve() 1792 up_read(&fc->killsb); fuse_notify_retrieve() 1801 static int fuse_notify(struct fuse_conn *fc, enum fuse_notify_code code, fuse_notify() argument 1809 return fuse_notify_poll(fc, size, cs); fuse_notify() 1812 return fuse_notify_inval_inode(fc, size, cs); fuse_notify() 1815 return fuse_notify_inval_entry(fc, size, cs); fuse_notify() 1818 return fuse_notify_store(fc, size, cs); fuse_notify() 1821 return fuse_notify_retrieve(fc, size, cs); fuse_notify() 1824 return fuse_notify_delete(fc, size, cs); fuse_notify() 1833 static struct fuse_req *request_find(struct fuse_conn *fc, u64 unique) request_find() argument 1837 list_for_each_entry(req, &fc->processing, list) { request_find() 1874 static ssize_t fuse_dev_do_write(struct fuse_conn *fc, fuse_dev_do_write() argument 1897 err = fuse_notify(fc, oh.error, nbytes - sizeof(oh), cs); fuse_dev_do_write() 1905 spin_lock(&fc->lock); fuse_dev_do_write() 1907 if (!fc->connected) fuse_dev_do_write() 1910 req = request_find(fc, oh.unique); fuse_dev_do_write() 1915 spin_unlock(&fc->lock); fuse_dev_do_write() 1917 spin_lock(&fc->lock); fuse_dev_do_write() 1918 request_end(fc, req); fuse_dev_do_write() 1928 fc->no_interrupt = 1; fuse_dev_do_write() 1930 queue_interrupt(fc, req); fuse_dev_do_write() 1932 spin_unlock(&fc->lock); fuse_dev_do_write() 1938 list_move(&req->list, &fc->io); fuse_dev_do_write() 1944 spin_unlock(&fc->lock); fuse_dev_do_write() 1949 spin_lock(&fc->lock); fuse_dev_do_write() 1956 request_end(fc, req); fuse_dev_do_write() 1961 spin_unlock(&fc->lock); fuse_dev_do_write() 1970 struct fuse_conn *fc = fuse_get_conn(iocb->ki_filp); fuse_dev_write() local 1971 if (!fc) fuse_dev_write() 1977 fuse_copy_init(&cs, fc, 0, from); fuse_dev_write() 1979 return fuse_dev_do_write(fc, &cs, iov_iter_count(from)); fuse_dev_write() 1990 struct fuse_conn *fc; fuse_dev_splice_write() local 1994 fc = fuse_get_conn(out); fuse_dev_splice_write() 1995 if (!fc) fuse_dev_splice_write() 2042 fuse_copy_init(&cs, fc, 0, NULL); fuse_dev_splice_write() 2050 ret = fuse_dev_do_write(fc, &cs, len); fuse_dev_splice_write() 2064 struct fuse_conn *fc = fuse_get_conn(file); fuse_dev_poll() local 2065 if (!fc) fuse_dev_poll() 2068 poll_wait(file, &fc->waitq, wait); fuse_dev_poll() 2070 spin_lock(&fc->lock); fuse_dev_poll() 2071 if (!fc->connected) fuse_dev_poll() 2073 else if (request_pending(fc)) fuse_dev_poll() 2075 spin_unlock(&fc->lock); fuse_dev_poll() 2083 * This function releases and reacquires fc->lock 2085 static void end_requests(struct fuse_conn *fc, struct list_head *head) 2086 __releases(fc->lock) 2087 __acquires(fc->lock) 2093 request_end(fc, req); 2094 spin_lock(&fc->lock); 2109 static void end_io_requests(struct fuse_conn *fc) 2110 __releases(fc->lock) 2111 __acquires(fc->lock) 2113 while (!list_empty(&fc->io)) { 2115 list_entry(fc->io.next, struct fuse_req, list); 2126 spin_unlock(&fc->lock); 2128 end(fc, req); 2129 fuse_put_request(fc, req); 2130 spin_lock(&fc->lock); 2135 static void end_queued_requests(struct fuse_conn *fc) 2136 __releases(fc->lock) 2137 __acquires(fc->lock) 2139 fc->max_background = UINT_MAX; 2140 flush_bg_queue(fc); variable 2141 end_requests(fc, &fc->pending); 2142 end_requests(fc, &fc->processing); 2143 while (forget_pending(fc)) 2144 kfree(dequeue_forget(fc, 1, NULL)); 2147 static void end_polls(struct fuse_conn *fc) end_polls() argument 2151 p = rb_first(&fc->polled_files); end_polls() 2181 void fuse_abort_conn(struct fuse_conn *fc) fuse_abort_conn() argument 2183 spin_lock(&fc->lock); fuse_abort_conn() 2184 if (fc->connected) { fuse_abort_conn() 2185 fc->connected = 0; fuse_abort_conn() 2186 fc->blocked = 0; fuse_abort_conn() 2187 fuse_set_initialized(fc); fuse_abort_conn() 2188 end_io_requests(fc); fuse_abort_conn() 2189 end_queued_requests(fc); fuse_abort_conn() 2190 end_polls(fc); fuse_abort_conn() 2191 wake_up_all(&fc->waitq); fuse_abort_conn() 2192 wake_up_all(&fc->blocked_waitq); fuse_abort_conn() 2193 kill_fasync(&fc->fasync, SIGIO, POLL_IN); fuse_abort_conn() 2195 spin_unlock(&fc->lock); fuse_abort_conn() 2201 struct fuse_conn *fc = fuse_get_conn(file); fuse_dev_release() local 2202 if (fc) { fuse_dev_release() 2203 spin_lock(&fc->lock); fuse_dev_release() 2204 fc->connected = 0; fuse_dev_release() 2205 fc->blocked = 0; fuse_dev_release() 2206 fuse_set_initialized(fc); fuse_dev_release() 2207 end_queued_requests(fc); fuse_dev_release() 2208 end_polls(fc); fuse_dev_release() 2209 wake_up_all(&fc->blocked_waitq); fuse_dev_release() 2210 spin_unlock(&fc->lock); fuse_dev_release() 2211 fuse_conn_put(fc); fuse_dev_release() 2220 struct fuse_conn *fc = fuse_get_conn(file); fuse_dev_fasync() local 2221 if (!fc) fuse_dev_fasync() 2225 return fasync_helper(fd, file, on, &fc->fasync); fuse_dev_fasync() 724 fuse_copy_init(struct fuse_copy_state *cs, struct fuse_conn *fc, int write, struct iov_iter *iter) fuse_copy_init() argument
|
H A D | inode.c | 129 struct fuse_conn *fc = get_fuse_conn(inode); fuse_evict_inode() local 131 fuse_queue_forget(fc, fi->forget, fi->nodeid, fi->nlookup); fuse_evict_inode() 160 struct fuse_conn *fc = get_fuse_conn(inode); fuse_change_attributes_common() local 163 fi->attr_version = ++fc->attr_version; fuse_change_attributes_common() 175 if (!fc->writeback_cache || !S_ISREG(inode->i_mode)) { fuse_change_attributes_common() 193 if (!(fc->flags & FUSE_DEFAULT_PERMISSIONS)) fuse_change_attributes_common() 202 struct fuse_conn *fc = get_fuse_conn(inode); fuse_change_attributes() local 204 bool is_wb = fc->writeback_cache; fuse_change_attributes() 208 spin_lock(&fc->lock); fuse_change_attributes() 211 spin_unlock(&fc->lock); fuse_change_attributes() 226 spin_unlock(&fc->lock); fuse_change_attributes() 234 } else if (fc->auto_inval_data) { fuse_change_attributes() 299 struct fuse_conn *fc = get_fuse_conn_super(sb); fuse_iget() local 308 if (!fc->writeback_cache || !S_ISREG(attr->mode)) fuse_iget() 321 spin_lock(&fc->lock); fuse_iget() 323 spin_unlock(&fc->lock); fuse_iget() 359 static void fuse_send_destroy(struct fuse_conn *fc) fuse_send_destroy() argument 361 struct fuse_req *req = fc->destroy_req; fuse_send_destroy() 362 if (req && fc->conn_init) { fuse_send_destroy() 363 fc->destroy_req = NULL; fuse_send_destroy() 367 fuse_request_send(fc, req); fuse_send_destroy() 368 fuse_put_request(fc, req); fuse_send_destroy() 372 static void fuse_bdi_destroy(struct fuse_conn *fc) fuse_bdi_destroy() argument 374 if (fc->bdi_initialized) fuse_bdi_destroy() 375 bdi_destroy(&fc->bdi); fuse_bdi_destroy() 380 struct fuse_conn *fc = get_fuse_conn_super(sb); fuse_put_super() local 382 fuse_send_destroy(fc); fuse_put_super() 384 fuse_abort_conn(fc); fuse_put_super() 386 list_del(&fc->entry); fuse_put_super() 387 fuse_ctl_remove_conn(fc); fuse_put_super() 389 fuse_bdi_destroy(fc); fuse_put_super() 391 fuse_conn_put(fc); fuse_put_super() 411 struct fuse_conn *fc = get_fuse_conn_super(sb); fuse_statfs() local 416 if (!fuse_allow_current_process(fc)) { fuse_statfs() 428 err = fuse_simple_request(fc, &args); fuse_statfs() 555 struct fuse_conn *fc = get_fuse_conn_super(sb); fuse_show_options() local 557 seq_printf(m, ",user_id=%u", from_kuid_munged(&init_user_ns, fc->user_id)); fuse_show_options() 558 seq_printf(m, ",group_id=%u", from_kgid_munged(&init_user_ns, fc->group_id)); fuse_show_options() 559 if (fc->flags & FUSE_DEFAULT_PERMISSIONS) fuse_show_options() 561 if (fc->flags & FUSE_ALLOW_OTHER) fuse_show_options() 563 if (fc->max_read != ~0) fuse_show_options() 564 seq_printf(m, ",max_read=%u", fc->max_read); fuse_show_options() 570 void fuse_conn_init(struct fuse_conn *fc) fuse_conn_init() argument 572 memset(fc, 0, sizeof(*fc)); fuse_conn_init() 573 spin_lock_init(&fc->lock); fuse_conn_init() 574 init_rwsem(&fc->killsb); fuse_conn_init() 575 atomic_set(&fc->count, 1); fuse_conn_init() 576 init_waitqueue_head(&fc->waitq); fuse_conn_init() 577 init_waitqueue_head(&fc->blocked_waitq); fuse_conn_init() 578 init_waitqueue_head(&fc->reserved_req_waitq); fuse_conn_init() 579 INIT_LIST_HEAD(&fc->pending); fuse_conn_init() 580 INIT_LIST_HEAD(&fc->processing); fuse_conn_init() 581 INIT_LIST_HEAD(&fc->io); fuse_conn_init() 582 INIT_LIST_HEAD(&fc->interrupts); fuse_conn_init() 583 INIT_LIST_HEAD(&fc->bg_queue); fuse_conn_init() 584 INIT_LIST_HEAD(&fc->entry); fuse_conn_init() 585 fc->forget_list_tail = &fc->forget_list_head; fuse_conn_init() 586 atomic_set(&fc->num_waiting, 0); fuse_conn_init() 587 fc->max_background = FUSE_DEFAULT_MAX_BACKGROUND; fuse_conn_init() 588 fc->congestion_threshold = FUSE_DEFAULT_CONGESTION_THRESHOLD; fuse_conn_init() 589 fc->khctr = 0; fuse_conn_init() 590 fc->polled_files = RB_ROOT; fuse_conn_init() 591 fc->reqctr = 0; fuse_conn_init() 592 fc->blocked = 0; fuse_conn_init() 593 fc->initialized = 0; fuse_conn_init() 594 fc->attr_version = 1; fuse_conn_init() 595 get_random_bytes(&fc->scramble_key, sizeof(fc->scramble_key)); fuse_conn_init() 599 void fuse_conn_put(struct fuse_conn *fc) fuse_conn_put() argument 601 if (atomic_dec_and_test(&fc->count)) { fuse_conn_put() 602 if (fc->destroy_req) fuse_conn_put() 603 fuse_request_free(fc->destroy_req); fuse_conn_put() 604 fc->release(fc); fuse_conn_put() 609 struct fuse_conn *fuse_conn_get(struct fuse_conn *fc) fuse_conn_get() argument 611 atomic_inc(&fc->count); fuse_conn_get() 612 return fc; fuse_conn_get() 635 struct fuse_conn *fc = get_fuse_conn_super(sb); fuse_get_dentry() local 648 if (!fc->export_support) fuse_get_dentry() 744 struct fuse_conn *fc = get_fuse_conn(child_inode); fuse_get_parent() local 751 if (!fc->export_support) fuse_get_parent() 814 static void process_init_limits(struct fuse_conn *fc, struct fuse_init_out *arg) process_init_limits() argument 825 fc->max_background = arg->max_background; process_init_limits() 827 if (!cap_sys_admin && fc->max_background > max_user_bgreq) process_init_limits() 828 fc->max_background = max_user_bgreq; process_init_limits() 831 fc->congestion_threshold = arg->congestion_threshold; process_init_limits() 834 fc->congestion_threshold > max_user_congthresh) process_init_limits() 835 fc->congestion_threshold = max_user_congthresh; process_init_limits() 839 static void process_init_reply(struct fuse_conn *fc, struct fuse_req *req) process_init_reply() argument 844 fc->conn_error = 1; process_init_reply() 848 process_init_limits(fc, arg); process_init_reply() 853 fc->async_read = 1; process_init_reply() 855 fc->no_lock = 1; process_init_reply() 858 fc->no_flock = 1; process_init_reply() 861 fc->no_flock = 1; process_init_reply() 864 fc->atomic_o_trunc = 1; process_init_reply() 868 fc->export_support = 1; process_init_reply() 871 fc->big_writes = 1; process_init_reply() 873 fc->dont_mask = 1; process_init_reply() 875 fc->auto_inval_data = 1; process_init_reply() 877 fc->do_readdirplus = 1; process_init_reply() 879 fc->readdirplus_auto = 1; process_init_reply() 882 fc->async_dio = 1; process_init_reply() 884 fc->writeback_cache = 1; process_init_reply() 886 fc->sb->s_time_gran = arg->time_gran; process_init_reply() 888 ra_pages = fc->max_read / PAGE_CACHE_SIZE; process_init_reply() 889 fc->no_lock = 1; process_init_reply() 890 fc->no_flock = 1; process_init_reply() 893 fc->bdi.ra_pages = min(fc->bdi.ra_pages, ra_pages); process_init_reply() 894 fc->minor = arg->minor; process_init_reply() 895 fc->max_write = arg->minor < 5 ? 4096 : arg->max_write; process_init_reply() 896 fc->max_write = max_t(unsigned, 4096, fc->max_write); process_init_reply() 897 fc->conn_init = 1; process_init_reply() 899 fuse_set_initialized(fc); process_init_reply() 900 wake_up_all(&fc->blocked_waitq); process_init_reply() 903 static void fuse_send_init(struct fuse_conn *fc, struct fuse_req *req) fuse_send_init() argument 909 arg->max_readahead = fc->bdi.ra_pages * PAGE_CACHE_SIZE; fuse_send_init() 928 fuse_request_send_background(fc, req); fuse_send_init() 931 static void fuse_free_conn(struct fuse_conn *fc) fuse_free_conn() argument 933 kfree_rcu(fc, rcu); fuse_free_conn() 936 static int fuse_bdi_init(struct fuse_conn *fc, struct super_block *sb) fuse_bdi_init() argument 940 fc->bdi.name = "fuse"; fuse_bdi_init() 941 fc->bdi.ra_pages = (VM_MAX_READAHEAD * 1024) / PAGE_CACHE_SIZE; fuse_bdi_init() 943 fc->bdi.capabilities = BDI_CAP_NO_ACCT_WB | BDI_CAP_STRICTLIMIT; fuse_bdi_init() 945 err = bdi_init(&fc->bdi); fuse_bdi_init() 949 fc->bdi_initialized = 1; fuse_bdi_init() 952 err = bdi_register(&fc->bdi, NULL, "%u:%u-fuseblk", fuse_bdi_init() 953 MAJOR(fc->dev), MINOR(fc->dev)); fuse_bdi_init() 955 err = bdi_register_dev(&fc->bdi, fc->dev); fuse_bdi_init() 973 bdi_set_max_ratio(&fc->bdi, 1); fuse_bdi_init() 980 struct fuse_conn *fc; fuse_fill_super() local 1023 fc = kmalloc(sizeof(*fc), GFP_KERNEL); fuse_fill_super() 1025 if (!fc) fuse_fill_super() 1028 fuse_conn_init(fc); fuse_fill_super() 1029 fc->release = fuse_free_conn; fuse_fill_super() 1031 fc->dev = sb->s_dev; fuse_fill_super() 1032 fc->sb = sb; fuse_fill_super() 1033 err = fuse_bdi_init(fc, sb); fuse_fill_super() 1037 sb->s_bdi = &fc->bdi; fuse_fill_super() 1041 fc->dont_mask = 1; fuse_fill_super() 1044 fc->flags = d.flags; fuse_fill_super() 1045 fc->user_id = d.user_id; fuse_fill_super() 1046 fc->group_id = d.group_id; fuse_fill_super() 1047 fc->max_read = max_t(unsigned, 4096, d.max_read); fuse_fill_super() 1050 sb->s_fs_info = fc; fuse_fill_super() 1066 fc->destroy_req = fuse_request_alloc(0); fuse_fill_super() 1067 if (!fc->destroy_req) fuse_fill_super() 1076 err = fuse_ctl_add_conn(fc); fuse_fill_super() 1080 list_add_tail(&fc->entry, &fuse_conn_list); fuse_fill_super() 1082 fc->connected = 1; fuse_fill_super() 1083 file->private_data = fuse_conn_get(fc); fuse_fill_super() 1092 fuse_send_init(fc, init_req); fuse_fill_super() 1103 fuse_bdi_destroy(fc); fuse_fill_super() 1104 fuse_conn_put(fc); fuse_fill_super() 1120 struct fuse_conn *fc = get_fuse_conn_super(sb); fuse_kill_sb_anon() local 1122 if (fc) { fuse_kill_sb_anon() 1123 down_write(&fc->killsb); fuse_kill_sb_anon() 1124 fc->sb = NULL; fuse_kill_sb_anon() 1125 up_write(&fc->killsb); fuse_kill_sb_anon() 1150 struct fuse_conn *fc = get_fuse_conn_super(sb); fuse_kill_sb_blk() local 1152 if (fc) { fuse_kill_sb_blk() 1153 down_write(&fc->killsb); fuse_kill_sb_blk() 1154 fc->sb = NULL; fuse_kill_sb_blk() 1155 up_write(&fc->killsb); fuse_kill_sb_blk()
|
H A D | file.c | 23 static int fuse_send_open(struct fuse_conn *fc, u64 nodeid, struct file *file, fuse_send_open() argument 31 if (!fc->atomic_o_trunc) fuse_send_open() 42 return fuse_simple_request(fc, &args); fuse_send_open() 45 struct fuse_file *fuse_file_alloc(struct fuse_conn *fc) fuse_file_alloc() argument 53 ff->fc = fc; fuse_file_alloc() 65 spin_lock(&fc->lock); fuse_file_alloc() 66 ff->kh = ++fc->khctr; fuse_file_alloc() 67 spin_unlock(&fc->lock); fuse_file_alloc() 84 static void fuse_release_end(struct fuse_conn *fc, struct fuse_req *req) fuse_release_end() argument 94 if (ff->fc->no_open) { fuse_file_put() 101 fuse_put_request(ff->fc, req); fuse_file_put() 104 fuse_request_send(ff->fc, req); fuse_file_put() 106 fuse_put_request(ff->fc, req); fuse_file_put() 110 fuse_request_send_background(ff->fc, req); fuse_file_put() 116 int fuse_do_open(struct fuse_conn *fc, u64 nodeid, struct file *file, fuse_do_open() argument 122 ff = fuse_file_alloc(fc); fuse_do_open() 128 if (!fc->no_open || isdir) { fuse_do_open() 132 err = fuse_send_open(fc, nodeid, file, opcode, &outarg); fuse_do_open() 141 fc->no_open = 1; fuse_do_open() 158 struct fuse_conn *fc = get_fuse_conn(inode); fuse_link_write_file() local 165 spin_lock(&fc->lock); fuse_link_write_file() 168 spin_unlock(&fc->lock); fuse_link_write_file() 174 struct fuse_conn *fc = get_fuse_conn(inode); fuse_finish_open() local 182 if (fc->atomic_o_trunc && (file->f_flags & O_TRUNC)) { fuse_finish_open() 185 spin_lock(&fc->lock); fuse_finish_open() 186 fi->attr_version = ++fc->attr_version; fuse_finish_open() 188 spin_unlock(&fc->lock); fuse_finish_open() 190 if (fc->writeback_cache) fuse_finish_open() 193 if ((file->f_mode & FMODE_WRITE) && fc->writeback_cache) fuse_finish_open() 199 struct fuse_conn *fc = get_fuse_conn(inode); fuse_open_common() local 202 fc->atomic_o_trunc && fuse_open_common() 203 fc->writeback_cache; fuse_open_common() 212 err = fuse_do_open(fc, get_node_id(inode), file, isdir); fuse_open_common() 225 struct fuse_conn *fc = ff->fc; fuse_prepare_release() local 229 spin_lock(&fc->lock); fuse_prepare_release() 232 rb_erase(&ff->polled_node, &fc->polled_files); fuse_prepare_release() 233 spin_unlock(&fc->lock); fuse_prepare_release() 261 inarg->lock_owner = fuse_lock_owner_id(ff->fc, fuse_release_common() 276 fuse_file_put(ff, ff->fc->destroy_req != NULL); fuse_release_common() 286 struct fuse_conn *fc = get_fuse_conn(inode); fuse_release() local 289 if (fc->writeback_cache) fuse_release() 304 fuse_request_send(ff->fc, ff->reserved_req); fuse_sync_release() 305 fuse_put_request(ff->fc, ff->reserved_req); fuse_sync_release() 314 u64 fuse_lock_owner_id(struct fuse_conn *fc, fl_owner_t id) fuse_lock_owner_id() argument 316 u32 *k = fc->scramble_key; fuse_lock_owner_id() 341 struct fuse_conn *fc = get_fuse_conn(inode); fuse_range_is_writeback() local 346 spin_lock(&fc->lock); fuse_range_is_writeback() 358 spin_unlock(&fc->lock); fuse_range_is_writeback() 400 struct fuse_conn *fc = get_fuse_conn(inode); fuse_flush() local 409 if (fc->no_flush) fuse_flush() 420 req = fuse_get_req_nofail_nopages(fc, file); fuse_flush() 423 inarg.lock_owner = fuse_lock_owner_id(fc, id); fuse_flush() 430 fuse_request_send(fc, req); fuse_flush() 432 fuse_put_request(fc, req); fuse_flush() 434 fc->no_flush = 1; fuse_flush() 444 struct fuse_conn *fc = get_fuse_conn(inode); fuse_fsync_common() local 469 if ((!isdir && fc->no_fsync) || (isdir && fc->no_fsyncdir)) fuse_fsync_common() 480 err = fuse_simple_request(fc, &args); fuse_fsync_common() 483 fc->no_fsyncdir = 1; fuse_fsync_common() 485 fc->no_fsync = 1; fuse_fsync_common() 584 struct fuse_conn *fc = get_fuse_conn(inode); fuse_aio_complete() local 587 spin_lock(&fc->lock); fuse_aio_complete() 588 fi->attr_version = ++fc->attr_version; fuse_aio_complete() 589 spin_unlock(&fc->lock); fuse_aio_complete() 598 static void fuse_aio_complete_req(struct fuse_conn *fc, struct fuse_req *req) fuse_aio_complete_req() argument 618 static size_t fuse_async_req_send(struct fuse_conn *fc, struct fuse_req *req, fuse_async_req_send() argument 631 fuse_request_send_background(fc, req); fuse_async_req_send() 641 struct fuse_conn *fc = ff->fc; fuse_send_read() local 648 inarg->lock_owner = fuse_lock_owner_id(fc, owner); fuse_send_read() 652 return fuse_async_req_send(fc, req, count, io); fuse_send_read() 654 fuse_request_send(fc, req); fuse_send_read() 661 struct fuse_conn *fc = get_fuse_conn(inode); fuse_read_update_size() local 664 spin_lock(&fc->lock); fuse_read_update_size() 667 fi->attr_version = ++fc->attr_version; fuse_read_update_size() 670 spin_unlock(&fc->lock); fuse_read_update_size() 677 struct fuse_conn *fc = get_fuse_conn(inode); fuse_short_read() local 679 if (fc->writeback_cache) { fuse_short_read() 703 struct fuse_conn *fc = get_fuse_conn(inode); fuse_do_readpage() local 718 req = fuse_get_req(fc, 1); fuse_do_readpage() 722 attr_ver = fuse_get_attr_version(fc); fuse_do_readpage() 742 fuse_put_request(fc, req); fuse_do_readpage() 763 static void fuse_readpages_end(struct fuse_conn *fc, struct fuse_req *req) fuse_readpages_end() argument 801 struct fuse_conn *fc = ff->fc; fuse_send_readpages() local 809 req->misc.read.attr_ver = fuse_get_attr_version(fc); fuse_send_readpages() 810 if (fc->async_read) { fuse_send_readpages() 813 fuse_request_send_background(fc, req); fuse_send_readpages() 815 fuse_request_send(fc, req); fuse_send_readpages() 816 fuse_readpages_end(fc, req); fuse_send_readpages() 817 fuse_put_request(fc, req); fuse_send_readpages() 833 struct fuse_conn *fc = get_fuse_conn(inode); fuse_readpages_fill() local 839 (req->num_pages + 1) * PAGE_CACHE_SIZE > fc->max_read || fuse_readpages_fill() 844 if (fc->async_read) fuse_readpages_fill() 845 req = fuse_get_req_for_background(fc, nr_alloc); fuse_readpages_fill() 847 req = fuse_get_req(fc, nr_alloc); fuse_readpages_fill() 857 fuse_put_request(fc, req); fuse_readpages_fill() 873 struct fuse_conn *fc = get_fuse_conn(inode); fuse_readpages() local 884 if (fc->async_read) fuse_readpages() 885 data.req = fuse_get_req_for_background(fc, nr_alloc); fuse_readpages() 887 data.req = fuse_get_req(fc, nr_alloc); fuse_readpages() 898 fuse_put_request(fc, data.req); fuse_readpages() 907 struct fuse_conn *fc = get_fuse_conn(inode); fuse_file_read_iter() local 914 if (fc->auto_inval_data || fuse_file_read_iter() 937 if (ff->fc->minor < 9) fuse_write_fill() 953 struct fuse_conn *fc = ff->fc; fuse_send_write() local 960 inarg->lock_owner = fuse_lock_owner_id(fc, owner); fuse_send_write() 964 return fuse_async_req_send(fc, req, count, io); fuse_send_write() 966 fuse_request_send(fc, req); fuse_send_write() 972 struct fuse_conn *fc = get_fuse_conn(inode); fuse_write_update_size() local 976 spin_lock(&fc->lock); fuse_write_update_size() 977 fi->attr_version = ++fc->attr_version; fuse_write_update_size() 982 spin_unlock(&fc->lock); fuse_write_update_size() 1026 struct fuse_conn *fc = get_fuse_conn(mapping->host); fuse_fill_write_pages() local 1041 bytes = min_t(size_t, bytes, fc->max_write - count); fuse_fill_write_pages() 1078 if (!fc->big_writes) fuse_fill_write_pages() 1080 } while (iov_iter_count(ii) && count < fc->max_write && fuse_fill_write_pages() 1099 struct fuse_conn *fc = get_fuse_conn(inode); fuse_perform_write() local 1115 req = fuse_get_req(fc, nr_pages); fuse_perform_write() 1139 fuse_put_request(fc, req); fuse_perform_write() 1314 struct fuse_conn *fc = ff->fc; fuse_direct_io() local 1315 size_t nmax = write ? fc->max_write : fc->max_read; fuse_direct_io() 1324 req = fuse_get_req_for_background(fc, fuse_iter_npages(iter)); fuse_direct_io() 1326 req = fuse_get_req(fc, fuse_iter_npages(iter)); fuse_direct_io() 1369 fuse_put_request(fc, req); fuse_direct_io() 1371 req = fuse_get_req_for_background(fc, fuse_direct_io() 1374 req = fuse_get_req(fc, fuse_iter_npages(iter)); fuse_direct_io() 1380 fuse_put_request(fc, req); fuse_direct_io() 1435 static void fuse_writepage_free(struct fuse_conn *fc, struct fuse_req *req) fuse_writepage_free() argument 1446 static void fuse_writepage_finish(struct fuse_conn *fc, struct fuse_req *req) fuse_writepage_finish() argument 1462 /* Called under fc->lock, may release and reacquire it */ 1463 static void fuse_send_writepage(struct fuse_conn *fc, struct fuse_req *req, 1465 __releases(fc->lock) 1466 __acquires(fc->lock) 1472 if (!fc->connected) 1486 fuse_request_send_background_locked(fc, req); 1490 fuse_writepage_finish(fc, req); 1491 spin_unlock(&fc->lock); 1492 fuse_writepage_free(fc, req); 1493 fuse_put_request(fc, req); 1494 spin_lock(&fc->lock); 1501 * Called with fc->lock 1504 __releases(fc->lock) 1505 __acquires(fc->lock) 1507 struct fuse_conn *fc = get_fuse_conn(inode); variable in typeref:struct:fuse_conn 1515 fuse_send_writepage(fc, req, crop); 1519 static void fuse_writepage_end(struct fuse_conn *fc, struct fuse_req *req) fuse_writepage_end() argument 1525 spin_lock(&fc->lock); fuse_writepage_end() 1527 struct fuse_conn *fc = get_fuse_conn(inode); fuse_writepage_end() local 1558 fuse_send_writepage(fc, next, inarg->offset + inarg->size); fuse_writepage_end() 1561 fuse_writepage_finish(fc, req); fuse_writepage_end() 1562 spin_unlock(&fc->lock); fuse_writepage_end() 1563 fuse_writepage_free(fc, req); fuse_writepage_end() 1566 static struct fuse_file *__fuse_write_file_get(struct fuse_conn *fc, __fuse_write_file_get() argument 1571 spin_lock(&fc->lock); __fuse_write_file_get() 1577 spin_unlock(&fc->lock); __fuse_write_file_get() 1582 static struct fuse_file *fuse_write_file_get(struct fuse_conn *fc, fuse_write_file_get() argument 1585 struct fuse_file *ff = __fuse_write_file_get(fc, fi); fuse_write_file_get() 1592 struct fuse_conn *fc = get_fuse_conn(inode); fuse_write_inode() local 1597 ff = __fuse_write_file_get(fc, fi); fuse_write_inode() 1609 struct fuse_conn *fc = get_fuse_conn(inode); fuse_writepage_locked() local 1627 req->ff = fuse_write_file_get(fc, fi); fuse_writepage_locked() 1647 spin_lock(&fc->lock); fuse_writepage_locked() 1651 spin_unlock(&fc->lock); fuse_writepage_locked() 1699 struct fuse_conn *fc = get_fuse_conn(inode); fuse_writepages_send() local 1705 spin_lock(&fc->lock); fuse_writepages_send() 1708 spin_unlock(&fc->lock); fuse_writepages_send() 1717 struct fuse_conn *fc = get_fuse_conn(new_req->inode); fuse_writepage_in_flight() local 1726 spin_lock(&fc->lock); fuse_writepage_in_flight() 1757 spin_unlock(&fc->lock); fuse_writepage_in_flight() 1762 fuse_writepage_free(fc, new_req); fuse_writepage_in_flight() 1770 spin_unlock(&fc->lock); fuse_writepage_in_flight() 1781 struct fuse_conn *fc = get_fuse_conn(inode); fuse_writepages_fill() local 1788 data->ff = fuse_write_file_get(fc, get_fuse_inode(inode)); fuse_writepages_fill() 1803 (req->num_pages + 1) * PAGE_CACHE_SIZE > fc->max_write || fuse_writepages_fill() 1845 spin_lock(&fc->lock); fuse_writepages_fill() 1847 spin_unlock(&fc->lock); fuse_writepages_fill() 1870 * Protected by fc->lock against concurrent access by fuse_writepages_fill() 1873 spin_lock(&fc->lock); fuse_writepages_fill() 1875 spin_unlock(&fc->lock); fuse_writepages_fill() 1929 struct fuse_conn *fc = get_fuse_conn(file_inode(file)); fuse_write_begin() local 1934 WARN_ON(!fc->writeback_cache); fuse_write_begin() 2101 struct fuse_conn *fc = get_fuse_conn(inode); fuse_lk_fill() local 2106 inarg->owner = fuse_lock_owner_id(fc, fl->fl_owner); fuse_lk_fill() 2123 struct fuse_conn *fc = get_fuse_conn(inode); fuse_getlk() local 2133 err = fuse_simple_request(fc, &args); fuse_getlk() 2143 struct fuse_conn *fc = get_fuse_conn(inode); fuse_setlk() local 2160 err = fuse_simple_request(fc, &args); fuse_setlk() 2172 struct fuse_conn *fc = get_fuse_conn(inode); fuse_file_lock() local 2178 if (fc->no_lock) { fuse_file_lock() 2184 if (fc->no_lock) fuse_file_lock() 2195 struct fuse_conn *fc = get_fuse_conn(inode); fuse_file_flock() local 2198 if (fc->no_flock) { fuse_file_flock() 2214 struct fuse_conn *fc = get_fuse_conn(inode); fuse_bmap() local 2220 if (!inode->i_sb->s_bdev || fc->no_bmap) fuse_bmap() 2234 err = fuse_simple_request(fc, &args); fuse_bmap() 2236 fc->no_bmap = 1; fuse_bmap() 2354 static int fuse_copy_ioctl_iovec(struct fuse_conn *fc, struct iovec *dst, fuse_copy_ioctl_iovec() argument 2361 if (fc->minor < 16) { fuse_copy_ioctl_iovec() 2440 struct fuse_conn *fc = ff->fc; fuse_do_ioctl() local 2515 req = fuse_get_req(fc, num_pages); fuse_do_ioctl() 2549 fuse_request_send(fc, req); fuse_do_ioctl() 2552 fuse_put_request(fc, req); fuse_do_ioctl() 2580 err = fuse_copy_ioctl_iovec(fc, iov_page, vaddr, fuse_do_ioctl() 2608 fuse_put_request(fc, req); fuse_do_ioctl() 2622 struct fuse_conn *fc = get_fuse_conn(inode); fuse_ioctl_common() local 2624 if (!fuse_allow_current_process(fc)) fuse_ioctl_common() 2650 static struct rb_node **fuse_find_polled_node(struct fuse_conn *fc, u64 kh, fuse_find_polled_node() argument 2653 struct rb_node **link = &fc->polled_files.rb_node; fuse_find_polled_node() 2681 static void fuse_register_polled_file(struct fuse_conn *fc, fuse_register_polled_file() argument 2684 spin_lock(&fc->lock); fuse_register_polled_file() 2688 link = fuse_find_polled_node(fc, ff->kh, &parent); fuse_register_polled_file() 2691 rb_insert_color(&ff->polled_node, &fc->polled_files); fuse_register_polled_file() 2693 spin_unlock(&fc->lock); fuse_register_polled_file() 2699 struct fuse_conn *fc = ff->fc; fuse_file_poll() local 2705 if (fc->no_poll) fuse_file_poll() 2717 fuse_register_polled_file(fc, ff); fuse_file_poll() 2728 err = fuse_simple_request(fc, &args); fuse_file_poll() 2733 fc->no_poll = 1; fuse_file_poll() 2744 int fuse_notify_poll_wakeup(struct fuse_conn *fc, fuse_notify_poll_wakeup() argument 2750 spin_lock(&fc->lock); fuse_notify_poll_wakeup() 2752 link = fuse_find_polled_node(fc, kh, NULL); fuse_notify_poll_wakeup() 2760 spin_unlock(&fc->lock); fuse_notify_poll_wakeup() 2790 bool async_dio = ff->fc->async_dio; fuse_direct_IO() 2886 struct fuse_conn *fc = ff->fc; fuse_file_fallocate() local 2901 if (fc->no_fallocate) fuse_file_fallocate() 2925 err = fuse_simple_request(fc, &args); fuse_file_fallocate() 2927 fc->no_fallocate = 1; fuse_file_fallocate() 2937 if (changed && fc->writeback_cache) fuse_file_fallocate()
|
H A D | cuse.c | 58 struct fuse_conn fc; /* fuse connection */ member in struct:cuse_conn 70 static struct cuse_conn *fc_to_cc(struct fuse_conn *fc) fc_to_cc() argument 72 return container_of(fc, struct cuse_conn, fc); fc_to_cc() 121 fuse_conn_get(&pos->fc); cuse_open() 135 rc = fuse_do_open(&cc->fc, 0, file, 0); cuse_open() 137 fuse_conn_put(&cc->fc); cuse_open() 144 struct fuse_conn *fc = ff->fc; cuse_release() local 147 fuse_conn_put(fc); cuse_release() 156 struct cuse_conn *cc = fc_to_cc(ff->fc); cuse_file_ioctl() 169 struct cuse_conn *cc = fc_to_cc(ff->fc); cuse_file_compat_ioctl() 307 static void cuse_process_init_reply(struct fuse_conn *fc, struct fuse_req *req) cuse_process_init_reply() argument 309 struct cuse_conn *cc = fc_to_cc(fc), *pos; cuse_process_init_reply() 323 fc->minor = arg->minor; cuse_process_init_reply() 324 fc->max_read = max_t(unsigned, arg->max_read, 4096); cuse_process_init_reply() 325 fc->max_write = max_t(unsigned, arg->max_write, 4096); cuse_process_init_reply() 409 fuse_abort_conn(fc); cuse_process_init_reply() 418 struct fuse_conn *fc = &cc->fc; cuse_send_init() local 424 req = fuse_get_req_for_background(fc, 1); cuse_send_init() 457 fuse_request_send_background(fc, req); cuse_send_init() 464 fuse_put_request(fc, req); cuse_send_init() 469 static void cuse_fc_release(struct fuse_conn *fc) cuse_fc_release() argument 471 struct cuse_conn *cc = fc_to_cc(fc); cuse_fc_release() 472 kfree_rcu(cc, fc.rcu); cuse_fc_release() 500 fuse_conn_init(&cc->fc); cuse_channel_open() 503 cc->fc.release = cuse_fc_release; cuse_channel_open() 505 cc->fc.connected = 1; cuse_channel_open() 506 cc->fc.initialized = 1; cuse_channel_open() 509 fuse_conn_put(&cc->fc); cuse_channel_open() 512 file->private_data = &cc->fc; /* channel owns base reference to cc */ cuse_channel_open() 565 return sprintf(buf, "%d\n", atomic_read(&cc->fc.num_waiting)); cuse_class_waiting_show() 575 fuse_abort_conn(&cc->fc); cuse_class_abort_store()
|
H A D | dir.c | 19 struct fuse_conn *fc = get_fuse_conn(dir); fuse_use_readdirplus() local 22 if (!fc->do_readdirplus) fuse_use_readdirplus() 24 if (!fc->readdirplus_auto) fuse_use_readdirplus() 148 static void fuse_lookup_init(struct fuse_conn *fc, struct fuse_args *args, fuse_lookup_init() argument 163 u64 fuse_get_attr_version(struct fuse_conn *fc) fuse_get_attr_version() argument 171 spin_lock(&fc->lock); fuse_get_attr_version() 172 curr_version = fc->attr_version; fuse_get_attr_version() 173 spin_unlock(&fc->lock); fuse_get_attr_version() 191 struct fuse_conn *fc; fuse_dentry_revalidate() local 213 fc = get_fuse_conn(inode); fuse_dentry_revalidate() 220 attr_version = fuse_get_attr_version(fc); fuse_dentry_revalidate() 223 fuse_lookup_init(fc, &args, get_node_id(d_inode(parent)), fuse_dentry_revalidate() 225 ret = fuse_simple_request(fc, &args); fuse_dentry_revalidate() 233 fuse_queue_forget(fc, forget, outarg.nodeid, 1); fuse_dentry_revalidate() 236 spin_lock(&fc->lock); fuse_dentry_revalidate() 238 spin_unlock(&fc->lock); fuse_dentry_revalidate() 288 struct fuse_conn *fc = get_fuse_conn_super(sb); fuse_lookup_name() local 305 attr_version = fuse_get_attr_version(fc); fuse_lookup_name() 307 fuse_lookup_init(fc, &args, nodeid, name, outarg); fuse_lookup_name() 308 err = fuse_simple_request(fc, &args); fuse_lookup_name() 324 fuse_queue_forget(fc, forget, outarg->nodeid, 1); fuse_lookup_name() 389 struct fuse_conn *fc = get_fuse_conn(dir); fuse_create_open() local 406 ff = fuse_file_alloc(fc); fuse_create_open() 410 if (!fc->dont_mask) fuse_create_open() 431 err = fuse_simple_request(fc, &args); fuse_create_open() 447 fuse_queue_forget(fc, forget, outentry.nodeid, 1); fuse_create_open() 478 struct fuse_conn *fc = get_fuse_conn(dir); fuse_atomic_open() local 496 if (fc->no_create) fuse_atomic_open() 501 fc->no_create = 1; fuse_atomic_open() 519 static int create_new_entry(struct fuse_conn *fc, struct fuse_args *args, create_new_entry() argument 537 err = fuse_simple_request(fc, args); create_new_entry() 551 fuse_queue_forget(fc, forget, outarg.nodeid, 1); create_new_entry() 573 struct fuse_conn *fc = get_fuse_conn(dir); fuse_mknod() local 576 if (!fc->dont_mask) fuse_mknod() 589 return create_new_entry(fc, &args, dir, entry, mode); fuse_mknod() 601 struct fuse_conn *fc = get_fuse_conn(dir); fuse_mkdir() local 604 if (!fc->dont_mask) fuse_mkdir() 616 return create_new_entry(fc, &args, dir, entry, S_IFDIR); fuse_mkdir() 622 struct fuse_conn *fc = get_fuse_conn(dir); fuse_symlink() local 632 return create_new_entry(fc, &args, dir, entry, S_IFLNK); fuse_symlink() 646 struct fuse_conn *fc = get_fuse_conn(dir); fuse_unlink() local 654 err = fuse_simple_request(fc, &args); fuse_unlink() 659 spin_lock(&fc->lock); fuse_unlink() 660 fi->attr_version = ++fc->attr_version; fuse_unlink() 669 spin_unlock(&fc->lock); fuse_unlink() 682 struct fuse_conn *fc = get_fuse_conn(dir); fuse_rmdir() local 690 err = fuse_simple_request(fc, &args); fuse_rmdir() 706 struct fuse_conn *fc = get_fuse_conn(olddir); fuse_rename_common() local 721 err = fuse_simple_request(fc, &args); fuse_rename_common() 760 struct fuse_conn *fc = get_fuse_conn(olddir); fuse_rename2() local 767 if (fc->no_rename2 || fc->minor < 23) fuse_rename2() 774 fc->no_rename2 = 1; fuse_rename2() 792 struct fuse_conn *fc = get_fuse_conn(inode); fuse_link() local 803 err = create_new_entry(fc, &args, newdir, newent, inode->i_mode); fuse_link() 813 spin_lock(&fc->lock); fuse_link() 814 fi->attr_version = ++fc->attr_version; fuse_link() 816 spin_unlock(&fc->lock); fuse_link() 829 struct fuse_conn *fc = get_fuse_conn(inode); fuse_fillattr() local 832 if (fc->writeback_cache && S_ISREG(inode->i_mode)) { fuse_fillattr() 870 struct fuse_conn *fc = get_fuse_conn(inode); fuse_do_getattr() local 874 attr_version = fuse_get_attr_version(fc); fuse_do_getattr() 893 err = fuse_simple_request(fc, &args); fuse_do_getattr() 1013 int fuse_allow_current_process(struct fuse_conn *fc) fuse_allow_current_process() argument 1017 if (fc->flags & FUSE_ALLOW_OTHER) fuse_allow_current_process() 1021 if (uid_eq(cred->euid, fc->user_id) && fuse_allow_current_process() 1022 uid_eq(cred->suid, fc->user_id) && fuse_allow_current_process() 1023 uid_eq(cred->uid, fc->user_id) && fuse_allow_current_process() 1024 gid_eq(cred->egid, fc->group_id) && fuse_allow_current_process() 1025 gid_eq(cred->sgid, fc->group_id) && fuse_allow_current_process() 1026 gid_eq(cred->gid, fc->group_id)) fuse_allow_current_process() 1034 struct fuse_conn *fc = get_fuse_conn(inode); fuse_access() local 1041 if (fc->no_access) fuse_access() 1051 err = fuse_simple_request(fc, &args); fuse_access() 1053 fc->no_access = 1; fuse_access() 1082 struct fuse_conn *fc = get_fuse_conn(inode); fuse_permission() local 1086 if (!fuse_allow_current_process(fc)) fuse_permission() 1092 if ((fc->flags & FUSE_DEFAULT_PERMISSIONS) || fuse_permission() 1105 if (fc->flags & FUSE_DEFAULT_PERMISSIONS) { fuse_permission() 1173 struct fuse_conn *fc; fuse_direntplus_link() local 1203 fc = get_fuse_conn(dir); fuse_direntplus_link() 1220 spin_lock(&fc->lock); fuse_direntplus_link() 1222 spin_unlock(&fc->lock); fuse_direntplus_link() 1258 if (fc->readdirplus_auto) fuse_direntplus_link() 1318 struct fuse_conn *fc = get_fuse_conn(inode); fuse_readdir() local 1325 req = fuse_get_req(fc, 1); fuse_readdir() 1331 fuse_put_request(fc, req); fuse_readdir() 1341 attr_version = fuse_get_attr_version(fc); fuse_readdir() 1348 fuse_request_send(fc, req); fuse_readdir() 1351 fuse_put_request(fc, req); fuse_readdir() 1371 struct fuse_conn *fc = get_fuse_conn(inode); read_link() local 1386 ret = fuse_simple_request(fc, &args); read_link() 1435 struct fuse_conn *fc = get_fuse_conn(file->f_mapping->host); fuse_dir_ioctl() local 1438 if (fc->minor < 18) fuse_dir_ioctl() 1447 struct fuse_conn *fc = get_fuse_conn(file->f_mapping->host); fuse_dir_compat_ioctl() local 1449 if (fc->minor < 18) fuse_dir_compat_ioctl() 1516 struct fuse_conn *fc = get_fuse_conn(inode); fuse_set_nowrite() local 1521 spin_lock(&fc->lock); fuse_set_nowrite() 1524 spin_unlock(&fc->lock); fuse_set_nowrite() 1545 struct fuse_conn *fc = get_fuse_conn(inode); fuse_release_nowrite() local 1547 spin_lock(&fc->lock); fuse_release_nowrite() 1549 spin_unlock(&fc->lock); fuse_release_nowrite() 1552 static void fuse_setattr_fill(struct fuse_conn *fc, struct fuse_args *args, fuse_setattr_fill() argument 1572 struct fuse_conn *fc = get_fuse_conn(inode); fuse_flush_times() local 1583 if (fc->minor >= 23) { fuse_flush_times() 1592 fuse_setattr_fill(fc, &args, inode, &inarg, &outarg); fuse_flush_times() 1594 return fuse_simple_request(fc, &args); fuse_flush_times() 1608 struct fuse_conn *fc = get_fuse_conn(inode); fuse_do_setattr() local 1614 bool is_wb = fc->writeback_cache; fuse_do_setattr() 1619 if (!(fc->flags & FUSE_DEFAULT_PERMISSIONS)) fuse_do_setattr() 1627 if (fc->atomic_o_trunc) fuse_do_setattr() 1653 inarg.lock_owner = fuse_lock_owner_id(fc, current->files); fuse_do_setattr() 1655 fuse_setattr_fill(fc, &args, inode, &inarg, &outarg); fuse_do_setattr() 1656 err = fuse_simple_request(fc, &args); fuse_do_setattr() 1669 spin_lock(&fc->lock); fuse_do_setattr() 1687 /* NOTE: this may release/reacquire fc->lock */ fuse_do_setattr() 1690 spin_unlock(&fc->lock); fuse_do_setattr() 1730 struct fuse_conn *fc = get_fuse_conn(inode); fuse_getattr() local 1732 if (!fuse_allow_current_process(fc)) fuse_getattr() 1742 struct fuse_conn *fc = get_fuse_conn(inode); fuse_setxattr() local 1747 if (fc->no_setxattr) fuse_setxattr() 1762 err = fuse_simple_request(fc, &args); fuse_setxattr() 1764 fc->no_setxattr = 1; fuse_setxattr() 1778 struct fuse_conn *fc = get_fuse_conn(inode); fuse_getxattr() local 1784 if (fc->no_getxattr) fuse_getxattr() 1806 ret = fuse_simple_request(fc, &args); fuse_getxattr() 1810 fc->no_getxattr = 1; fuse_getxattr() 1819 struct fuse_conn *fc = get_fuse_conn(inode); fuse_listxattr() local 1825 if (!fuse_allow_current_process(fc)) fuse_listxattr() 1828 if (fc->no_listxattr) fuse_listxattr() 1848 ret = fuse_simple_request(fc, &args); fuse_listxattr() 1852 fc->no_listxattr = 1; fuse_listxattr() 1861 struct fuse_conn *fc = get_fuse_conn(inode); fuse_removexattr() local 1865 if (fc->no_removexattr) fuse_removexattr() 1873 err = fuse_simple_request(fc, &args); fuse_removexattr() 1875 fc->no_removexattr = 1; fuse_removexattr()
|
H A D | fuse_i.h | 95 /** Files usable in writepage. Protected by fc->lock */ 130 struct fuse_conn *fc; member in struct:fuse_file 671 void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget, 690 struct fuse_file *fuse_file_alloc(struct fuse_conn *fc); 711 int fuse_notify_poll_wakeup(struct fuse_conn *fc, 772 struct fuse_req *fuse_get_req(struct fuse_conn *fc, unsigned npages); 773 struct fuse_req *fuse_get_req_for_background(struct fuse_conn *fc, 784 struct fuse_req *fuse_get_req_nofail_nopages(struct fuse_conn *fc, 791 void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req); 796 void fuse_request_send(struct fuse_conn *fc, struct fuse_req *req); 801 ssize_t fuse_simple_request(struct fuse_conn *fc, struct fuse_args *args); 806 void fuse_request_send_background(struct fuse_conn *fc, struct fuse_req *req); 808 void fuse_request_send_background_locked(struct fuse_conn *fc, 812 void fuse_abort_conn(struct fuse_conn *fc); 826 struct fuse_conn *fuse_conn_get(struct fuse_conn *fc); 831 void fuse_conn_init(struct fuse_conn *fc); 836 void fuse_conn_put(struct fuse_conn *fc); 841 int fuse_ctl_add_conn(struct fuse_conn *fc); 846 void fuse_ctl_remove_conn(struct fuse_conn *fc); 856 int fuse_allow_current_process(struct fuse_conn *fc); 858 u64 fuse_lock_owner_id(struct fuse_conn *fc, fl_owner_t id); 868 u64 fuse_get_attr_version(struct fuse_conn *fc); 889 int fuse_do_open(struct fuse_conn *fc, u64 nodeid, struct file *file, 919 void fuse_set_initialized(struct fuse_conn *fc);
|
/linux-4.1.27/net/core/ |
H A D | flow.c | 55 struct flow_cache *fc = (void *) arg; flow_cache_new_hashrnd() local 59 per_cpu_ptr(fc->percpu, i)->hash_rnd_recalc = 1; flow_cache_new_hashrnd() 61 fc->rnd_timer.expires = jiffies + FLOW_HASH_RND_PERIOD; flow_cache_new_hashrnd() 62 add_timer(&fc->rnd_timer); flow_cache_new_hashrnd() 112 static void __flow_cache_shrink(struct flow_cache *fc, __flow_cache_shrink() argument 120 struct netns_xfrm *xfrm = container_of(fc, struct netns_xfrm, __flow_cache_shrink() 123 for (i = 0; i < flow_cache_hash_size(fc); i++) { __flow_cache_shrink() 142 static void flow_cache_shrink(struct flow_cache *fc, flow_cache_shrink() argument 145 int shrink_to = fc->low_watermark / flow_cache_hash_size(fc); flow_cache_shrink() 147 __flow_cache_shrink(fc, fcp, shrink_to); flow_cache_shrink() 150 static void flow_new_hash_rnd(struct flow_cache *fc, flow_new_hash_rnd() argument 155 __flow_cache_shrink(fc, fcp, 0); flow_new_hash_rnd() 158 static u32 flow_hash_code(struct flow_cache *fc, flow_hash_code() argument 167 & (flow_cache_hash_size(fc) - 1); flow_hash_code() 195 struct flow_cache *fc = &net->xfrm.flow_cache_global; flow_cache_lookup() local 203 fcp = this_cpu_ptr(fc->percpu); flow_cache_lookup() 218 flow_new_hash_rnd(fc, fcp); flow_cache_lookup() 220 hash = flow_hash_code(fc, fcp, key, keysize); flow_cache_lookup() 232 if (fcp->hash_count > fc->high_watermark) flow_cache_lookup() 233 flow_cache_shrink(fc, fcp); flow_cache_lookup() 284 struct flow_cache *fc = info->cache; flow_cache_flush_tasklet() local 290 struct netns_xfrm *xfrm = container_of(fc, struct netns_xfrm, flow_cache_flush_tasklet() 293 fcp = this_cpu_ptr(fc->percpu); flow_cache_flush_tasklet() 294 for (i = 0; i < flow_cache_hash_size(fc); i++) { flow_cache_flush_tasklet() 318 static int flow_cache_percpu_empty(struct flow_cache *fc, int cpu) flow_cache_percpu_empty() argument 323 fcp = per_cpu_ptr(fc->percpu, cpu); flow_cache_percpu_empty() 324 for (i = 0; i < flow_cache_hash_size(fc); i++) flow_cache_percpu_empty() 393 static int flow_cache_cpu_prepare(struct flow_cache *fc, int cpu) flow_cache_cpu_prepare() argument 395 struct flow_cache_percpu *fcp = per_cpu_ptr(fc->percpu, cpu); flow_cache_cpu_prepare() 396 size_t sz = sizeof(struct hlist_head) * flow_cache_hash_size(fc); flow_cache_cpu_prepare() 415 struct flow_cache *fc = container_of(nfb, struct flow_cache, flow_cache_cpu() local 418 struct flow_cache_percpu *fcp = per_cpu_ptr(fc->percpu, cpu); flow_cache_cpu() 423 res = flow_cache_cpu_prepare(fc, cpu); flow_cache_cpu() 429 __flow_cache_shrink(fc, fcp, 0); flow_cache_cpu() 438 struct flow_cache *fc = &net->xfrm.flow_cache_global; flow_cache_init() local 450 fc->hash_shift = 10; flow_cache_init() 451 fc->low_watermark = 2 * flow_cache_hash_size(fc); flow_cache_init() 452 fc->high_watermark = 4 * flow_cache_hash_size(fc); flow_cache_init() 454 fc->percpu = alloc_percpu(struct flow_cache_percpu); flow_cache_init() 455 if (!fc->percpu) flow_cache_init() 461 if (flow_cache_cpu_prepare(fc, i)) for_each_online_cpu() 464 fc->hotcpu_notifier = (struct notifier_block){ 467 __register_hotcpu_notifier(&fc->hotcpu_notifier); 471 setup_timer(&fc->rnd_timer, flow_cache_new_hashrnd, 472 (unsigned long) fc); 473 fc->rnd_timer.expires = jiffies + FLOW_HASH_RND_PERIOD; 474 add_timer(&fc->rnd_timer); 480 struct flow_cache_percpu *fcp = per_cpu_ptr(fc->percpu, i); for_each_possible_cpu() 487 free_percpu(fc->percpu); 488 fc->percpu = NULL; 497 struct flow_cache *fc = &net->xfrm.flow_cache_global; flow_cache_fini() local 499 del_timer_sync(&fc->rnd_timer); flow_cache_fini() 500 unregister_hotcpu_notifier(&fc->hotcpu_notifier); flow_cache_fini() 503 struct flow_cache_percpu *fcp = per_cpu_ptr(fc->percpu, i); for_each_possible_cpu() 508 free_percpu(fc->percpu); 509 fc->percpu = NULL;
|
/linux-4.1.27/drivers/fmc/ |
H A D | fmc-chardev.c | 33 struct fc_instance *fc; fc_open() local 36 list_for_each_entry(fc, &fc_devices, list) fc_open() 37 if (fc->misc.minor == minor) fc_open() 39 if (fc->misc.minor != minor) fc_open() 41 fmc = fc->fmc; fc_open() 130 struct fc_instance *fc; fc_probe() local 138 fc = kzalloc(sizeof(*fc), GFP_KERNEL); fc_probe() 139 if (!fc) fc_probe() 141 fc->fmc = fmc; fc_probe() 142 fc->misc.minor = MISC_DYNAMIC_MINOR; fc_probe() 143 fc->misc.fops = &fc_fops; fc_probe() 144 fc->misc.name = kstrdup(dev_name(&fmc->dev), GFP_KERNEL); fc_probe() 146 ret = misc_register(&fc->misc); fc_probe() 150 list_add(&fc->list, &fc_devices); fc_probe() 152 dev_info(&fc->fmc->dev, "Created misc device \"%s\"\n", fc_probe() 153 fc->misc.name); fc_probe() 157 kfree(fc->misc.name); fc_probe() 158 kfree(fc); fc_probe() 164 struct fc_instance *fc; fc_remove() local 166 list_for_each_entry(fc, &fc_devices, list) fc_remove() 167 if (fc->fmc == fmc) fc_remove() 169 if (fc->fmc != fmc) { fc_remove() 175 list_del(&fc->list); fc_remove() 177 misc_deregister(&fc->misc); fc_remove() 178 kfree(fc->misc.name); fc_remove() 179 kfree(fc); fc_remove()
|
/linux-4.1.27/drivers/scsi/esas2r/ |
H A D | esas2r_flash.c | 137 struct esas2r_flash_context *fc = esas2r_fmapi_callback() local 144 if (fc->sgc.cur_offset == NULL) esas2r_fmapi_callback() 155 rq->interrupt_cb = fc->interrupt_cb; esas2r_fmapi_callback() 169 (*fc->interrupt_cb)(a, rq); esas2r_fmapi_callback() 179 struct esas2r_flash_context *fc = build_flash_msg() local 181 struct esas2r_sg_context *sgc = &fc->sgc; build_flash_msg() 185 if (fc->func == VDA_FLASH_BEGINW) { build_flash_msg() 192 rq->interrupt_cb = fc->interrupt_cb; build_flash_msg() 196 fc->func, build_flash_msg() 198 fc->flsh_addr, build_flash_msg() 208 fc->curr_len = fc->sgc.length; build_flash_msg() 219 fc->sgc.length = 0; build_flash_msg() 223 fc->flsh_addr += fc->curr_len; build_flash_msg() 305 struct esas2r_flash_context *fc = complete_fmapi_req() local 307 struct esas2r_flash_img *fi = fc->fi; complete_fmapi_req() 315 memset(fc->scratch, 0, FM_BUF_SZ); complete_fmapi_req() 326 struct esas2r_flash_context *fc = fw_download_proc() local 328 struct esas2r_flash_img *fi = fc->fi; fw_download_proc() 342 if (fc->func == VDA_FLASH_READ fw_download_proc() 343 && fc->cmp_len) { fw_download_proc() 344 ch = &fi->cmp_hdr[fc->comp_typ]; fw_download_proc() 346 p = fc->scratch; fw_download_proc() 350 - fc->cmp_len; /* where we are now */ fw_download_proc() 356 for (len = fc->curr_len; len; len--) fw_download_proc() 360 fc->cmp_len -= fc->curr_len; /* # left to compare */ fw_download_proc() 362 /* Update fc and determine the length for the next upload */ fw_download_proc() 363 if (fc->cmp_len > FM_BUF_SZ) fw_download_proc() 364 fc->sgc.length = FM_BUF_SZ; fw_download_proc() 366 fc->sgc.length = fc->cmp_len; fw_download_proc() 368 fc->sgc.cur_offset = fc->sgc_offset + fw_download_proc() 369 ((u8 *)fc->scratch - (u8 *)fi); fw_download_proc() 378 while (fc->sgc.length == 0) { fw_download_proc() 379 ch = &fi->cmp_hdr[fc->comp_typ]; fw_download_proc() 381 switch (fc->task) { fw_download_proc() 388 fc->task = FMTSK_WRTBIOS; fw_download_proc() 389 fc->func = VDA_FLASH_BEGINW; fw_download_proc() 390 fc->comp_typ = CH_IT_BIOS; fw_download_proc() 391 fc->flsh_addr = FLS_OFFSET_BOOT; fw_download_proc() 392 fc->sgc.length = ch->length; fw_download_proc() 393 fc->sgc.cur_offset = fc->sgc_offset + fw_download_proc() 402 fc->task = FMTSK_READBIOS; fw_download_proc() 403 fc->func = VDA_FLASH_READ; fw_download_proc() 404 fc->flsh_addr = FLS_OFFSET_BOOT; fw_download_proc() 405 fc->cmp_len = ch->length; fw_download_proc() 406 fc->sgc.length = FM_BUF_SZ; fw_download_proc() 407 fc->sgc.cur_offset = fc->sgc_offset fw_download_proc() 408 + ((u8 *)fc->scratch - fw_download_proc() 425 fc->task = FMTSK_WRTMAC; fw_download_proc() 426 fc->func = VDA_FLASH_BEGINW; fw_download_proc() 427 fc->comp_typ = CH_IT_MAC; fw_download_proc() 428 fc->flsh_addr = FLS_OFFSET_BOOT fw_download_proc() 430 fc->sgc.length = ch->length; fw_download_proc() 431 fc->sgc.cur_offset = fc->sgc_offset + fw_download_proc() 437 fc->task = FMTSK_READMAC; fw_download_proc() 438 fc->func = VDA_FLASH_READ; fw_download_proc() 439 fc->flsh_addr -= ch->length; fw_download_proc() 440 fc->cmp_len = ch->length; fw_download_proc() 441 fc->sgc.length = FM_BUF_SZ; fw_download_proc() 442 fc->sgc.cur_offset = fc->sgc_offset fw_download_proc() 443 + ((u8 *)fc->scratch - fw_download_proc() 460 fc->task = FMTSK_WRTEFI; fw_download_proc() 461 fc->func = VDA_FLASH_BEGINW; fw_download_proc() 462 fc->comp_typ = CH_IT_EFI; fw_download_proc() 463 fc->flsh_addr = FLS_OFFSET_BOOT fw_download_proc() 466 fc->sgc.length = ch->length; fw_download_proc() 467 fc->sgc.cur_offset = fc->sgc_offset + fw_download_proc() 473 fc->task = FMTSK_READEFI; fw_download_proc() 474 fc->func = VDA_FLASH_READ; fw_download_proc() 475 fc->flsh_addr -= ch->length; fw_download_proc() 476 fc->cmp_len = ch->length; fw_download_proc() 477 fc->sgc.length = FM_BUF_SZ; fw_download_proc() 478 fc->sgc.cur_offset = fc->sgc_offset fw_download_proc() 479 + ((u8 *)fc->scratch - fw_download_proc() 496 fc->task = FMTSK_WRTCFG; fw_download_proc() 497 fc->func = VDA_FLASH_BEGINW; fw_download_proc() 498 fc->comp_typ = CH_IT_CFG; fw_download_proc() 499 fc->flsh_addr = FLS_OFFSET_CPYR - ch->length; fw_download_proc() 500 fc->sgc.length = ch->length; fw_download_proc() 501 fc->sgc.cur_offset = fc->sgc_offset + fw_download_proc() 507 fc->task = FMTSK_READCFG; fw_download_proc() 508 fc->func = VDA_FLASH_READ; fw_download_proc() 509 fc->flsh_addr = FLS_OFFSET_CPYR - ch->length; fw_download_proc() 510 fc->cmp_len = ch->length; fw_download_proc() 511 fc->sgc.length = FM_BUF_SZ; fw_download_proc() 512 fc->sgc.cur_offset = fc->sgc_offset fw_download_proc() 513 + ((u8 *)fc->scratch - fw_download_proc() 543 if (fc->func == VDA_FLASH_READ fw_download_proc() 544 && fc->sgc.length > fc->cmp_len) fw_download_proc() 545 fc->sgc.length = fc->cmp_len; fw_download_proc() 551 if (fc->comp_typ < fi->num_comps) { fw_download_proc() 552 ch = &fi->cmp_hdr[fc->comp_typ]; fw_download_proc() 664 static u16 calc_fi_checksum(struct esas2r_flash_context *fc) calc_fi_checksum() argument 666 struct esas2r_flash_img *fi = fc->fi; calc_fi_checksum() 671 for (len = (fi->length - fc->fi_hdr_len) / 2, calc_fi_checksum() 672 pw = (u16 *)((u8 *)fi + fc->fi_hdr_len), calc_fi_checksum() 693 struct esas2r_flash_context *fc) verify_fi() 695 struct esas2r_flash_img *fi = fc->fi; verify_fi() 706 || len < fc->fi_hdr_len) { verify_fi() 812 if (len != fi->length - fc->fi_hdr_len) { verify_fi() 818 if (fi->checksum != calc_fi_checksum(fc)) { verify_fi() 1392 struct esas2r_flash_context *fc = &a->flash_context; esas2r_fm_api() local 1402 memcpy(&fc->sgc, sgc, sizeof(struct esas2r_sg_context)); esas2r_fm_api() 1403 sgc = &fc->sgc; esas2r_fm_api() 1404 fc->fi = fi; esas2r_fm_api() 1405 fc->sgc_offset = sgc->cur_offset; esas2r_fm_api() 1407 rq->interrupt_cx = fc; esas2r_fm_api() 1411 fc->scratch = ((struct esas2r_flash_img *)fi)->scratch_buf; esas2r_fm_api() 1412 fc->num_comps = FI_NUM_COMPS_V1; esas2r_fm_api() 1413 fc->fi_hdr_len = sizeof(struct esas2r_flash_img); esas2r_fm_api() 1426 if (!verify_fi(a, fc)) esas2r_fm_api() 1446 fi->checksum = calc_fi_checksum(fc); esas2r_fm_api() 1452 fc->task = FMTSK_ERASE_BOOT; esas2r_fm_api() 1453 fc->func = VDA_FLASH_BEGINW; esas2r_fm_api() 1454 fc->comp_typ = CH_IT_CFG; esas2r_fm_api() 1455 fc->flsh_addr = FLS_OFFSET_BOOT; esas2r_fm_api() 1456 fc->sgc.length = FLS_LENGTH_BOOT; esas2r_fm_api() 1457 fc->sgc.cur_offset = NULL; esas2r_fm_api() 1460 fc->interrupt_cb = fw_download_proc; esas2r_fm_api() 1466 fi->num_comps = fc->num_comps; esas2r_fm_api() 1467 fi->length = fc->fi_hdr_len; esas2r_fm_api() 1510 * If we make it here, fc has been setup to do the first task. Call esas2r_fm_api() 692 verify_fi(struct esas2r_adapter *a, struct esas2r_flash_context *fc) verify_fi() argument
|
/linux-4.1.27/sound/isa/gus/ |
H A D | gus_volume.c | 196 unsigned int fc; 203 fc = (freq << 10) / rate; 204 if (fc > 97391L) { 205 fc = 97391; 206 snd_printk(KERN_ERR "patch: (1) fc frequency overflow - %u\n", fc); 208 fc = (fc * 44100UL) / mix_rate; 210 fc <<= 1; 211 if (fc > 65535L) { 212 fc = 65535; 213 snd_printk(KERN_ERR "patch: (2) fc frequency overflow - %u\n", fc); 215 return (unsigned short) fc;
|
/linux-4.1.27/net/ieee802154/ |
H A D | header_ops.c | 91 struct ieee802154_hdr_fc fc = hdr->fc; ieee802154_hdr_push() local 95 fc.dest_addr_mode = hdr->dest.mode; ieee802154_hdr_push() 102 fc.source_addr_mode = hdr->source.mode; ieee802154_hdr_push() 106 fc.intra_pan = true; ieee802154_hdr_push() 108 rc = ieee802154_hdr_push_addr(buf + pos, &hdr->source, fc.intra_pan); ieee802154_hdr_push() 113 if (fc.security_enabled) { ieee802154_hdr_push() 114 fc.version = 1; ieee802154_hdr_push() 123 memcpy(buf, &fc, 2); ieee802154_hdr_push() 215 dlen = ieee802154_hdr_addr_len(hdr->fc.dest_addr_mode, false); ieee802154_hdr_minlen() 216 slen = ieee802154_hdr_addr_len(hdr->fc.source_addr_mode, ieee802154_hdr_minlen() 217 hdr->fc.intra_pan); ieee802154_hdr_minlen() 222 return 3 + dlen + slen + hdr->fc.security_enabled; ieee802154_hdr_minlen() 230 pos += ieee802154_hdr_get_addr(buf + pos, hdr->fc.dest_addr_mode, ieee802154_hdr_get_addrs() 232 pos += ieee802154_hdr_get_addr(buf + pos, hdr->fc.source_addr_mode, ieee802154_hdr_get_addrs() 233 hdr->fc.intra_pan, &hdr->source); ieee802154_hdr_get_addrs() 235 if (hdr->fc.intra_pan) ieee802154_hdr_get_addrs() 257 if (hdr->fc.security_enabled) { ieee802154_hdr_pull() 301 if (hdr->fc.security_enabled) { ieee802154_hdr_peek() 319 if (hdr->fc.security_enabled) { ieee802154_max_payload()
|
/linux-4.1.27/include/linux/ |
H A D | ieee80211.h | 251 * @fc: frame control bytes in little-endian byteorder 253 static inline int ieee80211_has_tods(__le16 fc) ieee80211_has_tods() argument 255 return (fc & cpu_to_le16(IEEE80211_FCTL_TODS)) != 0; ieee80211_has_tods() 260 * @fc: frame control bytes in little-endian byteorder 262 static inline int ieee80211_has_fromds(__le16 fc) ieee80211_has_fromds() argument 264 return (fc & cpu_to_le16(IEEE80211_FCTL_FROMDS)) != 0; ieee80211_has_fromds() 269 * @fc: frame control bytes in little-endian byteorder 271 static inline int ieee80211_has_a4(__le16 fc) ieee80211_has_a4() argument 274 return (fc & tmp) == tmp; ieee80211_has_a4() 279 * @fc: frame control bytes in little-endian byteorder 281 static inline int ieee80211_has_morefrags(__le16 fc) ieee80211_has_morefrags() argument 283 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREFRAGS)) != 0; ieee80211_has_morefrags() 288 * @fc: frame control bytes in little-endian byteorder 290 static inline int ieee80211_has_retry(__le16 fc) ieee80211_has_retry() argument 292 return (fc & cpu_to_le16(IEEE80211_FCTL_RETRY)) != 0; ieee80211_has_retry() 297 * @fc: frame control bytes in little-endian byteorder 299 static inline int ieee80211_has_pm(__le16 fc) ieee80211_has_pm() argument 301 return (fc & cpu_to_le16(IEEE80211_FCTL_PM)) != 0; ieee80211_has_pm() 306 * @fc: frame control bytes in little-endian byteorder 308 static inline int ieee80211_has_moredata(__le16 fc) ieee80211_has_moredata() argument 310 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREDATA)) != 0; ieee80211_has_moredata() 315 * @fc: frame control bytes in little-endian byteorder 317 static inline int ieee80211_has_protected(__le16 fc) ieee80211_has_protected() argument 319 return (fc & cpu_to_le16(IEEE80211_FCTL_PROTECTED)) != 0; ieee80211_has_protected() 324 * @fc: frame control bytes in little-endian byteorder 326 static inline int ieee80211_has_order(__le16 fc) ieee80211_has_order() argument 328 return (fc & cpu_to_le16(IEEE80211_FCTL_ORDER)) != 0; ieee80211_has_order() 333 * @fc: frame control bytes in little-endian byteorder 335 static inline int ieee80211_is_mgmt(__le16 fc) ieee80211_is_mgmt() argument 337 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == ieee80211_is_mgmt() 343 * @fc: frame control bytes in little-endian byteorder 345 static inline int ieee80211_is_ctl(__le16 fc) ieee80211_is_ctl() argument 347 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == ieee80211_is_ctl() 353 * @fc: frame control bytes in little-endian byteorder 355 static inline int ieee80211_is_data(__le16 fc) ieee80211_is_data() argument 357 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == ieee80211_is_data() 363 * @fc: frame control bytes in little-endian byteorder 365 static inline int ieee80211_is_data_qos(__le16 fc) ieee80211_is_data_qos() argument 371 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_STYPE_QOS_DATA)) == ieee80211_is_data_qos() 377 * @fc: frame control bytes in little-endian byteorder 379 static inline int ieee80211_is_data_present(__le16 fc) ieee80211_is_data_present() argument 385 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | 0x40)) == ieee80211_is_data_present() 391 * @fc: frame control bytes in little-endian byteorder 393 static inline int ieee80211_is_assoc_req(__le16 fc) ieee80211_is_assoc_req() argument 395 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_assoc_req() 401 * @fc: frame control bytes in little-endian byteorder 403 static inline int ieee80211_is_assoc_resp(__le16 fc) ieee80211_is_assoc_resp() argument 405 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_assoc_resp() 411 * @fc: frame control bytes in little-endian byteorder 413 static inline int ieee80211_is_reassoc_req(__le16 fc) ieee80211_is_reassoc_req() argument 415 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_reassoc_req() 421 * @fc: frame control bytes in little-endian byteorder 423 static inline int ieee80211_is_reassoc_resp(__le16 fc) ieee80211_is_reassoc_resp() argument 425 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_reassoc_resp() 431 * @fc: frame control bytes in little-endian byteorder 433 static inline int ieee80211_is_probe_req(__le16 fc) ieee80211_is_probe_req() argument 435 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_probe_req() 441 * @fc: frame control bytes in little-endian byteorder 443 static inline int ieee80211_is_probe_resp(__le16 fc) ieee80211_is_probe_resp() argument 445 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_probe_resp() 451 * @fc: frame control bytes in little-endian byteorder 453 static inline int ieee80211_is_beacon(__le16 fc) ieee80211_is_beacon() argument 455 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_beacon() 461 * @fc: frame control bytes in little-endian byteorder 463 static inline int ieee80211_is_atim(__le16 fc) ieee80211_is_atim() argument 465 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_atim() 471 * @fc: frame control bytes in little-endian byteorder 473 static inline int ieee80211_is_disassoc(__le16 fc) ieee80211_is_disassoc() argument 475 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_disassoc() 481 * @fc: frame control bytes in little-endian byteorder 483 static inline int ieee80211_is_auth(__le16 fc) ieee80211_is_auth() argument 485 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_auth() 491 * @fc: frame control bytes in little-endian byteorder 493 static inline int ieee80211_is_deauth(__le16 fc) ieee80211_is_deauth() argument 495 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_deauth() 501 * @fc: frame control bytes in little-endian byteorder 503 static inline int ieee80211_is_action(__le16 fc) ieee80211_is_action() argument 505 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_action() 511 * @fc: frame control bytes in little-endian byteorder 513 static inline int ieee80211_is_back_req(__le16 fc) ieee80211_is_back_req() argument 515 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_back_req() 521 * @fc: frame control bytes in little-endian byteorder 523 static inline int ieee80211_is_back(__le16 fc) ieee80211_is_back() argument 525 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_back() 531 * @fc: frame control bytes in little-endian byteorder 533 static inline int ieee80211_is_pspoll(__le16 fc) ieee80211_is_pspoll() argument 535 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_pspoll() 541 * @fc: frame control bytes in little-endian byteorder 543 static inline int ieee80211_is_rts(__le16 fc) ieee80211_is_rts() argument 545 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_rts() 551 * @fc: frame control bytes in little-endian byteorder 553 static inline int ieee80211_is_cts(__le16 fc) ieee80211_is_cts() argument 555 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_cts() 561 * @fc: frame control bytes in little-endian byteorder 563 static inline int ieee80211_is_ack(__le16 fc) ieee80211_is_ack() argument 565 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_ack() 571 * @fc: frame control bytes in little-endian byteorder 573 static inline int ieee80211_is_cfend(__le16 fc) ieee80211_is_cfend() argument 575 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_cfend() 581 * @fc: frame control bytes in little-endian byteorder 583 static inline int ieee80211_is_cfendack(__le16 fc) ieee80211_is_cfendack() argument 585 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_cfendack() 591 * @fc: frame control bytes in little-endian byteorder 593 static inline int ieee80211_is_nullfunc(__le16 fc) ieee80211_is_nullfunc() argument 595 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_nullfunc() 601 * @fc: frame control bytes in little-endian byteorder 603 static inline int ieee80211_is_qos_nullfunc(__le16 fc) ieee80211_is_qos_nullfunc() argument 605 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_qos_nullfunc() 611 * @fc: frame control field in little-endian byteorder 613 static inline bool ieee80211_is_bufferable_mmpdu(__le16 fc) ieee80211_is_bufferable_mmpdu() argument 617 return ieee80211_is_mgmt(fc) && ieee80211_is_bufferable_mmpdu() 618 (ieee80211_is_action(fc) || ieee80211_is_bufferable_mmpdu() 619 ieee80211_is_disassoc(fc) || ieee80211_is_bufferable_mmpdu() 620 ieee80211_is_deauth(fc)); ieee80211_is_bufferable_mmpdu()
|
H A D | ipv6_route.h | 5 * Pedro Roque <roque@di.fc.ul.pt>
|
H A D | in6.h | 6 * Pedro Roque <roque@di.fc.ul.pt>
|
/linux-4.1.27/net/mac80211/ |
H A D | led.h | 58 ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, __le16 fc, int bytes) ieee80211_tpt_led_trig_tx() argument 61 if (local->tpt_led_trigger && ieee80211_is_data(fc)) ieee80211_tpt_led_trig_tx() 67 ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, __le16 fc, int bytes) ieee80211_tpt_led_trig_rx() argument 70 if (local->tpt_led_trigger && ieee80211_is_data(fc)) ieee80211_tpt_led_trig_rx()
|
H A D | wep.c | 280 __le16 fc = hdr->frame_control; ieee80211_crypto_wep_decrypt() local 282 if (!ieee80211_is_data(fc) && !ieee80211_is_auth(fc)) ieee80211_crypto_wep_decrypt() 291 if (!pskb_may_pull(rx->skb, ieee80211_hdrlen(fc) + ieee80211_crypto_wep_decrypt()
|
H A D | status.c | 653 __le16 fc; ieee80211_tx_status() local 674 fc = hdr->frame_control; ieee80211_tx_status() 701 ieee80211_is_data_qos(fc)) ieee80211_tx_status() 712 (ieee80211_is_data_qos(fc))) { ieee80211_tx_status() 722 } else if (ieee80211_is_data_qos(fc)) { ieee80211_tx_status() 728 if (!acked && ieee80211_is_back_req(fc)) { ieee80211_tx_status() 758 if (ieee80211_is_data_present(fc)) { ieee80211_tx_status() 819 ieee80211_is_data(fc) || ieee80211_tx_status() 820 ieee80211_is_mgmt(fc)) ieee80211_tx_status() 827 if (ieee80211_is_nullfunc(fc) && ieee80211_has_pm(fc) && ieee80211_tx_status() 846 !(ieee80211_is_data(fc)); ieee80211_tx_status()
|
H A D | rx.c | 678 __le16 fc; iwl80211_get_cs_keyid() local 682 fc = hdr->frame_control; iwl80211_get_cs_keyid() 683 hdrlen = ieee80211_hdrlen(fc); iwl80211_get_cs_keyid() 1490 __le16 fc; ieee80211_rx_h_decrypt() local 1529 fc = hdr->frame_control; ieee80211_rx_h_decrypt() 1534 if (ieee80211_has_protected(fc) && rx->sta->cipher_scheme) { ieee80211_rx_h_decrypt() 1543 if (!ieee80211_has_protected(fc)) ieee80211_rx_h_decrypt() 1552 if (!ieee80211_has_protected(fc)) ieee80211_rx_h_decrypt() 1567 } else if (!ieee80211_has_protected(fc)) { ieee80211_rx_h_decrypt() 1578 if (ieee80211_is_mgmt(fc) && ieee80211_rx_h_decrypt() 1617 hdrlen = ieee80211_hdrlen(fc); ieee80211_rx_h_decrypt() 1782 __le16 fc; ieee80211_rx_h_defragment() local 1789 fc = hdr->frame_control; ieee80211_rx_h_defragment() 1791 if (ieee80211_is_ctl(fc)) ieee80211_rx_h_defragment() 1802 if (likely(!ieee80211_has_morefrags(fc) && frag == 0)) ieee80211_rx_h_defragment() 1827 ieee80211_has_protected(fc)) { ieee80211_rx_h_defragment() 1888 skb_pull(rx->skb, ieee80211_hdrlen(fc)); ieee80211_rx_h_defragment() 1892 if (ieee80211_has_morefrags(fc)) { ieee80211_rx_h_defragment() 1932 static int ieee80211_drop_unencrypted(struct ieee80211_rx_data *rx, __le16 fc) ieee80211_drop_unencrypted() argument 1945 if (unlikely(!ieee80211_has_protected(fc) && ieee80211_drop_unencrypted() 1946 !ieee80211_is_nullfunc(fc) && ieee80211_drop_unencrypted() 1947 ieee80211_is_data(fc) && rx->key)) ieee80211_drop_unencrypted() 1957 __le16 fc = hdr->frame_control; ieee80211_drop_unencrypted_mgmt() local 1967 if (unlikely(!ieee80211_has_protected(fc) && ieee80211_drop_unencrypted_mgmt() 1970 if (ieee80211_is_deauth(fc) || ieee80211_drop_unencrypted_mgmt() 1971 ieee80211_is_disassoc(fc)) ieee80211_drop_unencrypted_mgmt() 1980 if (ieee80211_is_deauth(fc) || ieee80211_drop_unencrypted_mgmt() 1981 ieee80211_is_disassoc(fc)) ieee80211_drop_unencrypted_mgmt() 1991 if (unlikely(ieee80211_is_action(fc) && !rx->key && ieee80211_drop_unencrypted_mgmt() 2042 static bool ieee80211_frame_allowed(struct ieee80211_rx_data *rx, __le16 fc) ieee80211_frame_allowed() argument 2058 ieee80211_drop_unencrypted(rx, fc)) ieee80211_frame_allowed() 2169 __le16 fc = hdr->frame_control; ieee80211_rx_h_amsdu() local 2173 if (unlikely(!ieee80211_is_data(fc))) ieee80211_rx_h_amsdu() 2176 if (unlikely(!ieee80211_is_data_present(fc))) ieee80211_rx_h_amsdu() 2207 if (!ieee80211_frame_allowed(rx, fc)) { ieee80211_rx_h_amsdu() 2366 __le16 fc = hdr->frame_control; ieee80211_rx_h_data() local 2402 if (!ieee80211_frame_allowed(rx, fc)) ieee80211_rx_h_data() 3457 __le16 fc; __ieee80211_rx_handle_packet() local 3464 fc = ((struct ieee80211_hdr *)skb->data)->frame_control; __ieee80211_rx_handle_packet() 3469 if (ieee80211_is_data(fc) || ieee80211_is_mgmt(fc)) __ieee80211_rx_handle_packet() 3472 if (ieee80211_is_mgmt(fc)) { __ieee80211_rx_handle_packet() 3474 if (skb->len < ieee80211_hdrlen(fc)) __ieee80211_rx_handle_packet() 3479 err = !pskb_may_pull(skb, ieee80211_hdrlen(fc)); __ieee80211_rx_handle_packet() 3495 if (ieee80211_is_data(fc)) { __ieee80211_rx_handle_packet()
|
H A D | mesh_ps.c | 26 __le16 fc; mps_qos_null_get() local 34 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); mps_qos_null_get() 35 ieee80211_fill_mesh_addresses(nullfunc, &fc, sta->sta.addr, mps_qos_null_get() 37 nullfunc->frame_control = fc; mps_qos_null_get()
|
H A D | debugfs_netdev.c | 298 __le16 fc; ieee80211_if_parse_tkip_mic_test() local 313 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); ieee80211_if_parse_tkip_mic_test() 317 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); ieee80211_if_parse_tkip_mic_test() 324 fc |= cpu_to_le16(IEEE80211_FCTL_TODS); ieee80211_if_parse_tkip_mic_test() 341 hdr->frame_control = fc; ieee80211_if_parse_tkip_mic_test()
|
H A D | tx.c | 450 static int ieee80211_use_mfp(__le16 fc, struct sta_info *sta, ieee80211_use_mfp() argument 453 if (!ieee80211_is_mgmt(fc)) ieee80211_use_mfp() 1392 __le16 fc; __ieee80211_tx() local 1398 fc = ((struct ieee80211_hdr *)skb->data)->frame_control; __ieee80211_tx() 1438 ieee80211_tpt_led_trig_tx(local, fc, led_len); __ieee80211_tx() 1996 __le16 fc; ieee80211_build_hdr() local 2018 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); ieee80211_build_hdr() 2023 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); ieee80211_build_hdr() 2051 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); ieee80211_build_hdr() 2060 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); ieee80211_build_hdr() 2104 hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc, ieee80211_build_hdr() 2122 hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc, ieee80211_build_hdr() 2156 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | ieee80211_build_hdr() 2165 fc |= cpu_to_le16(IEEE80211_FCTL_TODS); ieee80211_build_hdr() 2223 fc |= cpu_to_le16(IEEE80211_STYPE_QOS_DATA); ieee80211_build_hdr() 2287 hdr.frame_control = fc; ieee80211_build_hdr() 2351 if (ieee80211_is_data_qos(fc)) { ieee80211_build_hdr()
|
/linux-4.1.27/drivers/media/usb/b2c2/ |
H A D | flexcop-usb.c | 69 static int flexcop_usb_readwrite_dw(struct flexcop_device *fc, u16 wRegOffsPCI, u32 *val, u8 read) flexcop_usb_readwrite_dw() argument 71 struct flexcop_usb *fc_usb = fc->bus_specific; flexcop_usb_readwrite_dw() 192 static int flexcop_usb_get_mac_addr(struct flexcop_device *fc, int extended) flexcop_usb_get_mac_addr() argument 194 return flexcop_usb_memory_req(fc->bus_specific, B2C2_USB_READ_V8_MEM, flexcop_usb_get_mac_addr() 196 fc->dvb_adapter.proposed_mac, 6); flexcop_usb_get_mac_addr() 227 struct flexcop_usb *fc_usb = i2c->fc->bus_specific; flexcop_usb_i2c_req() 273 static flexcop_ibi_value flexcop_usb_read_ibi_reg(struct flexcop_device *fc, flexcop_usb_read_ibi_reg() argument 278 flexcop_usb_readwrite_dw(fc, reg, &val.raw, 1); flexcop_usb_read_ibi_reg() 282 static int flexcop_usb_write_ibi_reg(struct flexcop_device *fc, flexcop_usb_write_ibi_reg() argument 285 return flexcop_usb_readwrite_dw(fc, reg, &val.raw, 0); flexcop_usb_write_ibi_reg() 376 static int flexcop_usb_stream_control(struct flexcop_device *fc, int onoff) flexcop_usb_stream_control() argument 508 struct flexcop_device *fc = NULL; flexcop_usb_probe() local 511 if ((fc = flexcop_device_kmalloc(sizeof(struct flexcop_usb))) == NULL) { flexcop_usb_probe() 517 fc_usb = fc->bus_specific; flexcop_usb_probe() 518 fc_usb->fc_dev = fc; flexcop_usb_probe() 520 fc->read_ibi_reg = flexcop_usb_read_ibi_reg; flexcop_usb_probe() 521 fc->write_ibi_reg = flexcop_usb_write_ibi_reg; flexcop_usb_probe() 522 fc->i2c_request = flexcop_usb_i2c_request; flexcop_usb_probe() 523 fc->get_mac_addr = flexcop_usb_get_mac_addr; flexcop_usb_probe() 525 fc->stream_control = flexcop_usb_stream_control; flexcop_usb_probe() 527 fc->pid_filtering = 1; flexcop_usb_probe() 528 fc->bus_type = FC_USB; flexcop_usb_probe() 530 fc->dev = &udev->dev; flexcop_usb_probe() 531 fc->owner = THIS_MODULE; flexcop_usb_probe() 540 if ((ret = flexcop_device_initialize(fc)) != 0) flexcop_usb_probe() 551 flexcop_device_exit(fc); flexcop_usb_probe() 555 flexcop_device_kfree(fc); flexcop_usb_probe()
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
H A D | hostap_80211_tx.c | 23 u16 fc; hostap_dump_tx_80211() local 33 fc = le16_to_cpu(hdr->frame_control); hostap_dump_tx_80211() 35 fc, (fc & IEEE80211_FCTL_FTYPE) >> 2, hostap_dump_tx_80211() 36 (fc & IEEE80211_FCTL_STYPE) >> 4, hostap_dump_tx_80211() 37 fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", hostap_dump_tx_80211() 38 fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); hostap_dump_tx_80211() 67 u16 fc, ethertype = 0; hostap_data_start_xmit() local 139 fc = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA; hostap_data_start_xmit() 152 fc |= IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS; hostap_data_start_xmit() 161 fc |= IEEE80211_FCTL_TODS; hostap_data_start_xmit() 187 fc |= IEEE80211_FCTL_FROMDS; hostap_data_start_xmit() 194 fc |= IEEE80211_FCTL_TODS; hostap_data_start_xmit() 209 hdr.frame_control = cpu_to_le16(fc); hostap_data_start_xmit() 275 u16 fc; hostap_mgmt_start_xmit() local 297 fc = le16_to_cpu(hdr->frame_control); hostap_mgmt_start_xmit() 299 (fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_DATA) { hostap_mgmt_start_xmit() 387 u16 fc; hostap_master_start_xmit() local 436 fc = le16_to_cpu(hdr->frame_control); hostap_master_start_xmit() 471 if (((fc & IEEE80211_FCTL_VERS) == BIT(1)) && hostap_master_start_xmit() 476 fc &= ~IEEE80211_FCTL_VERS; hostap_master_start_xmit() 477 hdr->frame_control = cpu_to_le16(fc); hostap_master_start_xmit() 486 !(fc & IEEE80211_FCTL_PROTECTED)) { hostap_master_start_xmit() 500 fc |= IEEE80211_FCTL_PROTECTED; hostap_master_start_xmit() 501 hdr->frame_control = cpu_to_le16(fc); hostap_master_start_xmit()
|
H A D | hostap_80211_rx.c | 24 u16 fc; hostap_dump_rx_80211() local 36 fc = le16_to_cpu(hdr->frame_control); hostap_dump_rx_80211() 38 fc, (fc & IEEE80211_FCTL_FTYPE) >> 2, hostap_dump_rx_80211() 39 (fc & IEEE80211_FCTL_STYPE) >> 4, hostap_dump_rx_80211() 40 fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", hostap_dump_rx_80211() 41 fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); hostap_dump_rx_80211() 68 u16 fc; prism2_rx_80211() local 92 fc = le16_to_cpu(fhdr->frame_control); prism2_rx_80211() 94 if (type == PRISM2_RX_MGMT && (fc & IEEE80211_FCTL_VERS)) { prism2_rx_80211() 96 "version %d\n", dev->name, fc & IEEE80211_FCTL_VERS); prism2_rx_80211() 554 hostap_rx_frame_wds(local_info_t *local, struct ieee80211_hdr *hdr, u16 fc, hostap_rx_frame_wds() argument 559 if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) != hostap_rx_frame_wds() 561 (local->iw_mode != IW_MODE_MASTER || !(fc & IEEE80211_FCTL_TODS))) hostap_rx_frame_wds() 574 fc & IEEE80211_FCTL_FROMDS ? "RA" : "BSSID", hostap_rx_frame_wds() 581 if (*wds == NULL && fc & IEEE80211_FCTL_FROMDS && hostap_rx_frame_wds() 595 if (*wds && !(fc & IEEE80211_FCTL_FROMDS) && local->ap && hostap_rx_frame_wds() 612 u16 fc, ethertype; hostap_is_eapol_frame() local 620 fc = le16_to_cpu(hdr->frame_control); hostap_is_eapol_frame() 623 if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == hostap_is_eapol_frame() 628 } else if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == hostap_is_eapol_frame() 724 u16 fc, type, stype, sc; hostap_80211_rx() local 753 fc = le16_to_cpu(hdr->frame_control); hostap_80211_rx() 754 type = fc & IEEE80211_FCTL_FTYPE; hostap_80211_rx() 755 stype = fc & IEEE80211_FCTL_STYPE; hostap_80211_rx() 805 if (!crypt && (fc & IEEE80211_FCTL_PROTECTED)) { hostap_80211_rx() 823 fc & IEEE80211_FCTL_PROTECTED && local->host_decrypt && hostap_80211_rx() 843 switch (fc & (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) { hostap_80211_rx() 864 if (hostap_rx_frame_wds(local, hdr, fc, &wds)) hostap_80211_rx() 870 (fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == hostap_80211_rx() 912 if (local->host_decrypt && (fc & IEEE80211_FCTL_PROTECTED) && hostap_80211_rx() 919 if (local->host_decrypt && (fc & IEEE80211_FCTL_PROTECTED) && hostap_80211_rx() 920 (frag != 0 || (fc & IEEE80211_FCTL_MOREFRAGS))) { hostap_80211_rx() 927 dev->name, (fc & IEEE80211_FCTL_MOREFRAGS) != 0, hostap_80211_rx() 959 if (fc & IEEE80211_FCTL_MOREFRAGS) { hostap_80211_rx() 976 if (local->host_decrypt && (fc & IEEE80211_FCTL_PROTECTED) && hostap_80211_rx() 981 if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !local->open_wep) { hostap_80211_rx() 996 if (local->drop_unencrypted && !(fc & IEEE80211_FCTL_PROTECTED) && hostap_80211_rx() 1055 if (wds && ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == hostap_80211_rx()
|
H A D | hostap_main.c | 524 u16 status, fc; hostap_dump_rx_header() local 534 fc = __le16_to_cpu(rx->frame_control); hostap_dump_rx_header() 537 fc, (fc & IEEE80211_FCTL_FTYPE) >> 2, hostap_dump_rx_header() 538 (fc & IEEE80211_FCTL_STYPE) >> 4, hostap_dump_rx_header() 541 fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", hostap_dump_rx_header() 542 fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); hostap_dump_rx_header() 555 u16 fc; hostap_dump_tx_header() local 562 fc = __le16_to_cpu(tx->frame_control); hostap_dump_tx_header() 565 fc, (fc & IEEE80211_FCTL_FTYPE) >> 2, hostap_dump_tx_header() 566 (fc & IEEE80211_FCTL_STYPE) >> 4, hostap_dump_tx_header() 569 fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", hostap_dump_tx_header() 570 fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); hostap_dump_tx_header() 589 int hostap_80211_get_hdrlen(__le16 fc) hostap_80211_get_hdrlen() argument 591 if (ieee80211_is_data(fc) && ieee80211_has_a4 (fc)) hostap_80211_get_hdrlen() 593 else if (ieee80211_is_cts(fc) || ieee80211_is_ack(fc)) hostap_80211_get_hdrlen() 595 else if (ieee80211_is_ctl(fc)) hostap_80211_get_hdrlen()
|
H A D | hostap_ap.c | 976 u16 fc; prism2_send_mgmt() local 999 fc = type_subtype; prism2_send_mgmt() 1013 fc |= IEEE80211_FCTL_FROMDS; prism2_send_mgmt() 1025 hdr->frame_control = cpu_to_le16(fc); prism2_send_mgmt() 1549 "trans#=%d stat=%d len=%d fc=%04x) ==> %d (%s)\n", handle_authen() 2205 u16 fc, type, stype; handle_ap_item() local 2211 fc = le16_to_cpu(hdr->frame_control); handle_ap_item() 2212 type = fc & IEEE80211_FCTL_FTYPE; handle_ap_item() 2213 stype = fc & IEEE80211_FCTL_STYPE; handle_ap_item() 2219 if (!(fc & IEEE80211_FCTL_TODS) || handle_ap_item() 2220 (fc & IEEE80211_FCTL_FROMDS)) { handle_ap_item() 2228 PDEBUG(DEBUG_AP, " not ToDS frame (fc=0x%04x)\n", handle_ap_item() 2229 fc); handle_ap_item() 2962 u16 fc; hostap_update_sta_ps() local 2973 fc = le16_to_cpu(hdr->frame_control); hostap_update_sta_ps() 2974 hostap_update_sta_ps2(local, sta, fc & IEEE80211_FCTL_PM, hostap_update_sta_ps() 2975 fc & IEEE80211_FCTL_FTYPE, hostap_update_sta_ps() 2976 fc & IEEE80211_FCTL_STYPE); hostap_update_sta_ps() 2992 u16 fc, type, stype; hostap_handle_sta_rx() local 3000 fc = le16_to_cpu(hdr->frame_control); hostap_handle_sta_rx() 3001 type = fc & IEEE80211_FCTL_FTYPE; hostap_handle_sta_rx() 3002 stype = fc & IEEE80211_FCTL_STYPE; hostap_handle_sta_rx() 3016 if (fc & IEEE80211_FCTL_TODS) { hostap_handle_sta_rx() 3034 } else if (fc & IEEE80211_FCTL_FROMDS) { hostap_handle_sta_rx() 3088 hostap_update_sta_ps2(local, sta, fc & IEEE80211_FCTL_PM, hostap_handle_sta_rx() 3097 fc & IEEE80211_FCTL_TODS) { hostap_handle_sta_rx()
|
H A D | hostap.h | 34 int hostap_80211_get_hdrlen(__le16 fc);
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/ |
H A D | ixgb_param.c | 343 unsigned int fc = FlowControl[bd]; ixgb_check_options() local 344 ixgb_validate_option(&fc, &opt); ixgb_check_options() 345 adapter->hw.fc.type = fc; ixgb_check_options() 347 adapter->hw.fc.type = opt.def; ixgb_check_options() 361 adapter->hw.fc.high_water = RxFCHighThresh[bd]; ixgb_check_options() 362 ixgb_validate_option(&adapter->hw.fc.high_water, &opt); ixgb_check_options() 364 adapter->hw.fc.high_water = opt.def; ixgb_check_options() 366 if (!(adapter->hw.fc.type & ixgb_fc_tx_pause) ) ixgb_check_options() 380 adapter->hw.fc.low_water = RxFCLowThresh[bd]; ixgb_check_options() 381 ixgb_validate_option(&adapter->hw.fc.low_water, &opt); ixgb_check_options() 383 adapter->hw.fc.low_water = opt.def; ixgb_check_options() 385 if (!(adapter->hw.fc.type & ixgb_fc_tx_pause) ) ixgb_check_options() 401 adapter->hw.fc.pause_time = pause_time; ixgb_check_options() 403 adapter->hw.fc.pause_time = opt.def; ixgb_check_options() 405 if (!(adapter->hw.fc.type & ixgb_fc_tx_pause) ) ixgb_check_options() 409 if (adapter->hw.fc.type & ixgb_fc_tx_pause) { ixgb_check_options() 411 if (adapter->hw.fc.high_water < (adapter->hw.fc.low_water + 8)) { ixgb_check_options() 414 adapter->hw.fc.high_water = DEFAULT_FCRTH; ixgb_check_options() 415 adapter->hw.fc.low_water = DEFAULT_FCRTL; ixgb_check_options()
|
H A D | ixgb_ethtool.c | 158 if (hw->fc.type == ixgb_fc_rx_pause) ixgb_get_pauseparam() 160 else if (hw->fc.type == ixgb_fc_tx_pause) ixgb_get_pauseparam() 162 else if (hw->fc.type == ixgb_fc_full) { ixgb_get_pauseparam() 179 hw->fc.type = ixgb_fc_full; ixgb_set_pauseparam() 181 hw->fc.type = ixgb_fc_rx_pause; ixgb_set_pauseparam() 183 hw->fc.type = ixgb_fc_tx_pause; ixgb_set_pauseparam() 185 hw->fc.type = ixgb_fc_none; ixgb_set_pauseparam()
|
H A D | ixgb_hw.c | 661 switch (hw->fc.type) { ixgb_setup_fc() 677 pap_reg = hw->fc.pause_time; ixgb_setup_fc() 684 pap_reg = hw->fc.pause_time; ixgb_setup_fc() 705 if (!(hw->fc.type & ixgb_fc_tx_pause)) { ixgb_setup_fc() 712 if (hw->fc.send_xon) { ixgb_setup_fc() 714 (hw->fc.low_water | IXGB_FCRTL_XONE)); ixgb_setup_fc() 716 IXGB_WRITE_REG(hw, FCRTL, hw->fc.low_water); ixgb_setup_fc() 718 IXGB_WRITE_REG(hw, FCRTH, hw->fc.high_water); ixgb_setup_fc()
|
/linux-4.1.27/drivers/net/ethernet/atheros/alx/ |
H A D | ethtool.c | 215 u8 fc = 0; alx_set_pauseparam() local 218 fc |= ALX_FC_TX; alx_set_pauseparam() 220 fc |= ALX_FC_RX; alx_set_pauseparam() 222 fc |= ALX_FC_ANEG; alx_set_pauseparam() 228 if (!((fc ^ hw->flowctrl) & ALX_FC_ANEG)) alx_set_pauseparam() 230 if (fc & hw->flowctrl & ALX_FC_ANEG && alx_set_pauseparam() 231 (fc ^ hw->flowctrl) & (ALX_FC_RX | ALX_FC_TX)) alx_set_pauseparam() 236 err = alx_setup_speed_duplex(hw, hw->adv_cfg, fc); alx_set_pauseparam() 242 if ((fc ^ hw->flowctrl) & (ALX_FC_RX | ALX_FC_TX)) alx_set_pauseparam() 243 alx_cfg_mac_flowcontrol(hw, fc); alx_set_pauseparam() 245 hw->flowctrl = fc; alx_set_pauseparam()
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
H A D | common.c | 40 __le16 fc; ath9k_cmn_rx_accept() local 42 fc = hdr->frame_control; ath9k_cmn_rx_accept() 47 strip_mic = is_valid_tkip && ieee80211_is_data(fc) && ath9k_cmn_rx_accept() 48 ieee80211_has_protected(fc) && ath9k_cmn_rx_accept() 62 mic_error = is_valid_tkip && !ieee80211_is_ctl(fc) && ath9k_cmn_rx_accept() 63 !ieee80211_has_morefrags(fc) && ath9k_cmn_rx_accept() 128 __le16 fc; ath9k_cmn_rx_skb_postprocess() local 133 fc = hdr->frame_control; ath9k_cmn_rx_skb_postprocess() 134 padpos = ieee80211_hdrlen(fc); ath9k_cmn_rx_skb_postprocess() 153 ieee80211_has_protected(fc)) { ath9k_cmn_rx_skb_postprocess() 155 } else if (ieee80211_has_protected(fc) ath9k_cmn_rx_skb_postprocess() 164 ieee80211_is_mgmt(fc)) ath9k_cmn_rx_skb_postprocess()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723ae/ |
H A D | trx.c | 38 __le16 fc = rtl_get_fc(skb); _rtl8723e_map_hwqueue_to_fwqueue() local 40 if (unlikely(ieee80211_is_beacon(fc))) _rtl8723e_map_hwqueue_to_fwqueue() 42 if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) _rtl8723e_map_hwqueue_to_fwqueue() 250 u16 fc, type; translate_rx_signal_stuff() local 256 fc = le16_to_cpu(hdr->frame_control); translate_rx_signal_stuff() 261 (ether_addr_equal(mac->bssid, (fc & IEEE80211_FCTL_TODS) ? translate_rx_signal_stuff() 262 hdr->addr1 : (fc & IEEE80211_FCTL_FROMDS) ? translate_rx_signal_stuff() 377 __le16 fc = hdr->frame_control; rtl8723e_tx_fill_desc() local 410 if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { rtl8723e_tx_fill_desc() 498 if (ieee80211_is_data_qos(fc)) { rtl8723e_tx_fill_desc() 523 if ((!ieee80211_is_data_qos(fc)) && ppsc->fwctrl_lps) { rtl8723e_tx_fill_desc() 556 __le16 fc = hdr->frame_control; rtl8723e_tx_fill_cmddesc() local 597 if (!ieee80211_is_data_qos(fc)) { rtl8723e_tx_fill_cmddesc()
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | mca_asm.S | 633 fc r17 634 fc r1 635 fc r2 636 fc r3 637 fc r4 638 fc r5 639 fc r6 640 fc r7 650 fc r17 651 fc r1 652 fc r2 653 fc r3 654 fc r4 655 fc r5 656 fc r6 657 fc r7 667 fc r17 668 fc r1 669 fc r2 670 fc r3 671 fc r4 672 fc r5 673 fc r6 674 fc r7 684 fc r17 685 fc r1 686 fc r2 687 fc r3 688 fc r4 689 fc r5 690 fc r6 691 fc r7
|
H A D | paravirtentry.S | 78 fc.i r32
|
H A D | relocate_kernel.S | 160 fc.i r17 167 sync.i // for fc.i
|
H A D | paravirt.c | 104 DEFINE_VOID_FUNC1_VOID(fc); variable 339 DEFINE_VOID_FUNC1_VOID(fc, 340 "fc r8\n"); 556 .fc = ia64_native_fc_func, 761 IA64_NATIVE_PATCH_BUNDLE_ELEM(fc, FC),
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192se/ |
H A D | trx.c | 43 __le16 fc = rtl_get_fc(skb); _rtl92se_map_hwqueue_to_fwqueue() local 45 if (unlikely(ieee80211_is_beacon(fc))) _rtl92se_map_hwqueue_to_fwqueue() 47 if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) _rtl92se_map_hwqueue_to_fwqueue() 49 if (ieee80211_is_nullfunc(fc)) _rtl92se_map_hwqueue_to_fwqueue() 230 __le16 fc; _rtl92se_translate_rx_signal_stuff() local 237 fc = hdr->frame_control; _rtl92se_translate_rx_signal_stuff() 238 cfc = le16_to_cpu(fc); _rtl92se_translate_rx_signal_stuff() 239 type = WLAN_FC_GET_TYPE(fc); _rtl92se_translate_rx_signal_stuff() 252 if (ieee80211_is_beacon(fc)) _rtl92se_translate_rx_signal_stuff() 351 __le16 fc = hdr->frame_control; rtl92se_tx_fill_desc() local 380 if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { rtl92se_tx_fill_desc() 499 if (!ieee80211_is_data_qos(fc)) rtl92se_tx_fill_desc()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192cu/ |
H A D | trx.c | 221 u16 rtl8192cu_mq_to_hwq(__le16 fc, u16 mac80211_queue_index) rtl8192cu_mq_to_hwq() argument 225 if (unlikely(ieee80211_is_beacon(fc))) { rtl8192cu_mq_to_hwq() 229 if (ieee80211_is_mgmt(fc)) { rtl8192cu_mq_to_hwq() 257 __le16 fc, u16 mac80211_queue_index) _rtl8192cu_mq_to_descq() 262 if (unlikely(ieee80211_is_beacon(fc))) { _rtl8192cu_mq_to_descq() 266 if (ieee80211_is_mgmt(fc)) { _rtl8192cu_mq_to_descq() 371 __le16 fc; _rtl_rx_process() local 419 fc = hdr->frame_control; _rtl_rx_process() 420 bv = ieee80211_is_probe_resp(fc); _rtl_rx_process() 424 if (ieee80211_is_beacon(fc)) _rtl_rx_process() 426 if (ieee80211_is_data(fc)) _rtl_rx_process() 429 "Fram: fc = 0x%X addr1 = 0x%02X:0x%02X:0x%02X:0x%02X:0x%02X:0x%02X\n", _rtl_rx_process() 430 fc, _rtl_rx_process() 510 __le16 fc = hdr->frame_control; rtl92cu_tx_fill_desc() local 513 enum rtl_desc_qsel fw_qsel = _rtl8192cu_mq_to_descq(hw, fc, rtl92cu_tx_fill_desc() 593 if (ieee80211_is_data_qos(fc)) { rtl92cu_tx_fill_desc() 608 if ((!ieee80211_is_data_qos(fc)) && ppsc->leisure_ps && rtl92cu_tx_fill_desc() 615 if (ieee80211_has_morefrags(fc)) rtl92cu_tx_fill_desc() 656 __le16 fc = hdr->frame_control; rtl92cu_tx_fill_cmddesc() local 675 if (!ieee80211_is_data_qos(fc)) { rtl92cu_tx_fill_cmddesc() 256 _rtl8192cu_mq_to_descq(struct ieee80211_hw *hw, __le16 fc, u16 mac80211_queue_index) _rtl8192cu_mq_to_descq() argument
|
H A D | mac.c | 919 __le16 fc; rtl92c_translate_rx_signal_stuff() local 925 fc = hdr->frame_control; rtl92c_translate_rx_signal_stuff() 926 cpu_fc = le16_to_cpu(fc); rtl92c_translate_rx_signal_stuff() 927 type = WLAN_FC_GET_TYPE(fc); rtl92c_translate_rx_signal_stuff() 939 if (ieee80211_is_beacon(fc)) rtl92c_translate_rx_signal_stuff()
|
H A D | mac.h | 159 enum rtl_desc_qsel rtl92c_map_hwqueue_to_fwqueue(u16 fc,
|
/linux-4.1.27/drivers/crypto/nx/ |
H A D | nx.c | 395 if (msc->fc > NX_MAX_FC || msc->mode > NX_MAX_MODE) { nx_of_update_msc() 397 "combo: %d/%d (ignored)\n", msc->fc, nx_of_update_msc() 405 props->ap[msc->fc][msc->mode][0].databytelen = nx_of_update_msc() 407 props->ap[msc->fc][msc->mode][0].sglen = nx_of_update_msc() 411 props->ap[msc->fc][msc->mode][1].databytelen = nx_of_update_msc() 413 props->ap[msc->fc][msc->mode][1].sglen = nx_of_update_msc() 417 if (msc->fc == NX_FC_AES) { nx_of_update_msc() 418 props->ap[msc->fc][msc->mode][2]. nx_of_update_msc() 420 props->ap[msc->fc][msc->mode][2].sglen = nx_of_update_msc() 422 } else if (msc->fc == NX_FC_AES_HMAC || nx_of_update_msc() 423 msc->fc == NX_FC_SHA) { nx_of_update_msc() 424 props->ap[msc->fc][msc->mode][1]. nx_of_update_msc() 426 props->ap[msc->fc][msc->mode][1].sglen = nx_of_update_msc() 431 ": (%u/256)\n", msc->fc); nx_of_update_msc() 435 props->ap[msc->fc][msc->mode][2].databytelen = nx_of_update_msc() 437 props->ap[msc->fc][msc->mode][2].sglen = nx_of_update_msc() 442 "len combo: (%u/%u)\n", msc->fc, nx_of_update_msc() 592 * @fc: function code for the context 595 static int nx_crypto_ctx_init(struct nx_crypto_ctx *nx_ctx, u32 fc, u32 mode) nx_crypto_ctx_init() argument 629 memcpy(nx_ctx->props, nx_driver.of.ap[fc][mode], nx_crypto_ctx_init()
|
H A D | nx.h | 39 u32 fc; member in struct:max_sync_cop
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/ |
H A D | tx.c | 53 __le16 fc, __le32 *tx_flags) iwlagn_tx_cmd_protection() 70 __le16 fc = hdr->frame_control; iwlagn_tx_cmd_build_basic() local 80 if (ieee80211_is_probe_resp(fc)) iwlagn_tx_cmd_build_basic() 82 else if (ieee80211_is_back_req(fc)) iwlagn_tx_cmd_build_basic() 87 (ieee80211_is_auth(fc) || ieee80211_is_assoc_req(fc) || iwlagn_tx_cmd_build_basic() 88 ieee80211_is_reassoc_req(fc) || iwlagn_tx_cmd_build_basic() 94 if (ieee80211_has_morefrags(fc)) iwlagn_tx_cmd_build_basic() 97 if (ieee80211_is_data_qos(fc)) { iwlagn_tx_cmd_build_basic() 109 iwlagn_tx_cmd_protection(priv, info, fc, &tx_flags); iwlagn_tx_cmd_build_basic() 112 if (ieee80211_is_mgmt(fc)) { iwlagn_tx_cmd_build_basic() 113 if (ieee80211_is_assoc_req(fc) || ieee80211_is_reassoc_req(fc)) iwlagn_tx_cmd_build_basic() 130 __le16 fc) iwlagn_tx_cmd_build_rate() 146 if (ieee80211_is_probe_resp(fc)) { iwlagn_tx_cmd_build_rate() 150 } else if (ieee80211_is_back_req(fc)) iwlagn_tx_cmd_build_rate() 161 if (ieee80211_is_data(fc)) { iwlagn_tx_cmd_build_rate() 165 } else if (ieee80211_is_back_req(fc)) iwlagn_tx_cmd_build_rate() 289 __le16 fc; iwlagn_tx_skb() local 304 fc = hdr->frame_control; iwlagn_tx_skb() 307 if (ieee80211_is_auth(fc)) iwlagn_tx_skb() 309 else if (ieee80211_is_assoc_req(fc)) iwlagn_tx_skb() 311 else if (ieee80211_is_reassoc_req(fc)) iwlagn_tx_skb() 315 if (unlikely(ieee80211_is_probe_resp(fc))) { iwlagn_tx_skb() 328 hdr_len = ieee80211_hdrlen(fc); iwlagn_tx_skb() 331 if (!ieee80211_is_data(fc)) iwlagn_tx_skb() 383 iwlagn_tx_cmd_build_rate(priv, tx_cmd, info, sta, fc); iwlagn_tx_skb() 393 if (ieee80211_is_data_qos(fc) && !ieee80211_is_qos_nullfunc(fc)) { iwlagn_tx_skb() 458 if (is_data_qos && !ieee80211_has_morefrags(fc)) iwlagn_tx_skb() 51 iwlagn_tx_cmd_protection(struct iwl_priv *priv, struct ieee80211_tx_info *info, __le16 fc, __le32 *tx_flags) iwlagn_tx_cmd_protection() argument 126 iwlagn_tx_cmd_build_rate(struct iwl_priv *priv, struct iwl_tx_cmd *tx_cmd, struct ieee80211_tx_info *info, struct ieee80211_sta *sta, __le16 fc) iwlagn_tx_cmd_build_rate() argument
|
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/ |
H A D | txrx.c | 31 u16 fc, sn; wcn36xx_rx_skb() local 65 fc = __le16_to_cpu(hdr->frame_control); wcn36xx_rx_skb() 69 wcn36xx_dbg(WCN36XX_DBG_BEACON, "beacon skb %p len %d fc %04x sn %d\n", wcn36xx_rx_skb() 70 skb, skb->len, fc, sn); wcn36xx_rx_skb() 74 wcn36xx_dbg(WCN36XX_DBG_RX, "rx skb %p len %d fc %04x sn %d\n", wcn36xx_rx_skb() 75 skb, skb->len, fc, sn); wcn36xx_rx_skb() 289 "tx skb %p len %d fc %04x sn %d %s %s\n", wcn36xx_start_tx()
|
/linux-4.1.27/drivers/staging/vt6655/ |
H A D | dpc.c | 45 __le16 fc; vnt_rx_data() local 115 fc = hdr->frame_control; vnt_rx_data() 119 if (ieee80211_has_protected(fc)) { vnt_rx_data()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/ |
H A D | trx.c | 40 __le16 fc = rtl_get_fc(skb); _rtl88ee_map_hwqueue_to_fwqueue() local 42 if (unlikely(ieee80211_is_beacon(fc))) _rtl88ee_map_hwqueue_to_fwqueue() 44 if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) _rtl88ee_map_hwqueue_to_fwqueue() 306 __le16 fc; _rtl88ee_translate_rx_signal_stuff() local 312 fc = hdr->frame_control; _rtl88ee_translate_rx_signal_stuff() 317 packet_matchbssid = ((!ieee80211_is_ctl(fc)) && _rtl88ee_translate_rx_signal_stuff() 318 (ether_addr_equal(mac->bssid, ieee80211_has_tods(fc) ? _rtl88ee_translate_rx_signal_stuff() 319 hdr->addr1 : ieee80211_has_fromds(fc) ? _rtl88ee_translate_rx_signal_stuff() 511 __le16 fc = hdr->frame_control; rtl88ee_tx_fill_desc() local 547 if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { rtl88ee_tx_fill_desc() 653 if (ieee80211_is_data_qos(fc)) { rtl88ee_tx_fill_desc() 674 if (ieee80211_is_data_qos(fc)) rtl88ee_tx_fill_desc() 677 if (!ieee80211_is_data_qos(fc)) rtl88ee_tx_fill_desc() 702 __le16 fc = hdr->frame_control; rtl88ee_tx_fill_cmddesc() local 743 if (!ieee80211_is_data_qos(fc)) rtl88ee_tx_fill_cmddesc()
|
/linux-4.1.27/drivers/staging/wlan-ng/ |
H A D | p80211conv.c | 110 __le16 fc; skb_ether_to_p80211() local 176 fc = cpu_to_le16(WLAN_SET_FC_FTYPE(WLAN_FTYPE_DATA) | skb_ether_to_p80211() 186 fc |= cpu_to_le16(WLAN_SET_FC_TODS(1)); skb_ether_to_p80211() 192 fc |= cpu_to_le16(WLAN_SET_FC_FROMDS(1)); skb_ether_to_p80211() 220 fc |= cpu_to_le16(WLAN_SET_FC_ISWEP(1)); skb_ether_to_p80211() 225 p80211_hdr->a3.fc = fc; skb_ether_to_p80211() 279 u16 fc; skb_p80211_to_ether() local 297 fc = le16_to_cpu(w_hdr->a3.fc); skb_p80211_to_ether() 298 if ((WLAN_GET_FC_TODS(fc) == 0) && (WLAN_GET_FC_FROMDS(fc) == 0)) { skb_p80211_to_ether() 301 } else if ((WLAN_GET_FC_TODS(fc) == 0) skb_p80211_to_ether() 302 && (WLAN_GET_FC_FROMDS(fc) == 1)) { skb_p80211_to_ether() 305 } else if ((WLAN_GET_FC_TODS(fc) == 1) skb_p80211_to_ether() 306 && (WLAN_GET_FC_FROMDS(fc) == 0)) { skb_p80211_to_ether() 321 if ((wlandev->hostwep & HOSTWEP_PRIVACYINVOKED) && WLAN_GET_FC_ISWEP(fc) skb_p80211_to_ether()
|
H A D | p80211hdr.h | 128 /* GET_FC_FTYPE( ieee2host( rx.fc ))) */ 130 /* tx.fc = host2ieee( SET_FC_FTYPE(WLAN_FTYP_CTL) | */ 151 __le16 fc; member in struct:p80211_hdr_a3 160 u16 fc; member in struct:p80211_hdr_a4
|
H A D | p80211netdev.c | 104 static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc); 235 if (p80211_rx_typedrop(wlandev, hdr->fc)) p80211_convert_to_ether() 903 * fc frame control field 915 static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc) p80211_rx_typedrop() argument 921 ftype = WLAN_GET_FC_FTYPE(fc); p80211_rx_typedrop() 922 fstype = WLAN_GET_FC_FSTYPE(fc); p80211_rx_typedrop()
|
/linux-4.1.27/drivers/net/wireless/ipw2x00/ |
H A D | libipw_rx.c | 44 u16 fc = le16_to_cpu(hdr->frame_control); libipw_monitor_rx() local 48 skb_pull(skb, libipw_get_hdrlen(fc)); libipw_monitor_rx() 235 u16 fc, ethertype; libipw_is_eapol_frame() local 243 fc = le16_to_cpu(hdr->frame_ctl); libipw_is_eapol_frame() 246 if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == libipw_is_eapol_frame() 251 } else if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == libipw_is_eapol_frame() 338 u16 fc, type, stype, sc; libipw_rx() local 362 fc = le16_to_cpu(hdr->frame_ctl); libipw_rx() 363 type = WLAN_FC_GET_TYPE(fc); libipw_rx() 364 stype = WLAN_FC_GET_STYPE(fc); libipw_rx() 367 hdrlen = libipw_get_hdrlen(fc); libipw_rx() 456 if (!crypt && (fc & IEEE80211_FCTL_PROTECTED)) { libipw_rx() 470 fc & IEEE80211_FCTL_PROTECTED && ieee->host_decrypt && libipw_rx() 495 switch (fc & (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) { libipw_rx() 517 if (hostap_rx_frame_wds(ieee, hdr, fc, &wds)) libipw_rx() 525 (fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == libipw_rx() 573 if ((fc & IEEE80211_FCTL_PROTECTED) && can_be_decrypted && libipw_rx() 581 // ieee->host_decrypt && (fc & IEEE80211_FCTL_PROTECTED) && libipw_rx() 582 if ((frag != 0) || (fc & IEEE80211_FCTL_MOREFRAGS)) { libipw_rx() 591 (fc & IEEE80211_FCTL_MOREFRAGS) != 0, libipw_rx() 621 if (fc & IEEE80211_FCTL_MOREFRAGS) { libipw_rx() 637 if ((fc & IEEE80211_FCTL_PROTECTED) && can_be_decrypted && libipw_rx() 642 if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep) { libipw_rx() 655 if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep && libipw_rx() 665 if (!can_be_decrypted && (fc & IEEE80211_FCTL_PROTECTED) && libipw_rx() 759 if (wds && ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == libipw_rx() 841 u16 fc; libipw_rx_any() local 853 fc = le16_to_cpu(hdr->frame_ctl); libipw_rx_any() 855 if ((fc & IEEE80211_FCTL_VERS) != 0) libipw_rx_any() 858 switch (fc & IEEE80211_FCTL_FTYPE) { libipw_rx_any() 878 if ((fc & (IEEE80211_FCTL_TODS+IEEE80211_FCTL_FROMDS)) == 0) { libipw_rx_any() 893 if ((fc & (IEEE80211_FCTL_TODS+IEEE80211_FCTL_FROMDS)) == IEEE80211_FCTL_FROMDS) { libipw_rx_any() 1527 static inline int is_beacon(__le16 fc) is_beacon() argument 1529 return (WLAN_FC_GET_STYPE(le16_to_cpu(fc)) == IEEE80211_STYPE_BEACON); is_beacon()
|
H A D | libipw.h | 153 #define WLAN_FC_GET_VERS(fc) ((fc) & IEEE80211_FCTL_VERS) 154 #define WLAN_FC_GET_TYPE(fc) ((fc) & IEEE80211_FCTL_FTYPE) 155 #define WLAN_FC_GET_STYPE(fc) ((fc) & IEEE80211_FCTL_STYPE) 877 static inline int libipw_get_hdrlen(u16 fc) libipw_get_hdrlen() argument 880 u16 stype = WLAN_FC_GET_STYPE(fc); libipw_get_hdrlen() 882 switch (WLAN_FC_GET_TYPE(fc)) { libipw_get_hdrlen() 884 if ((fc & IEEE80211_FCTL_FROMDS) && (fc & IEEE80211_FCTL_TODS)) libipw_get_hdrlen() 890 switch (WLAN_FC_GET_STYPE(fc)) { libipw_get_hdrlen()
|
H A D | libipw_tx.c | 265 int bytes, fc, hdr_len; libipw_xmit() local 316 fc = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA | libipw_xmit() 319 fc = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA; libipw_xmit() 322 fc |= IEEE80211_FCTL_TODS; libipw_xmit() 336 fc |= IEEE80211_STYPE_QOS_DATA; libipw_xmit() 342 header.frame_ctl = cpu_to_le16(fc); libipw_xmit() 455 header.frame_ctl = cpu_to_le16(fc); libipw_xmit() 481 cpu_to_le16(fc | IEEE80211_FCTL_MOREFRAGS); libipw_xmit()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ce/ |
H A D | trx.c | 42 __le16 fc = rtl_get_fc(skb); _rtl92ce_map_hwqueue_to_fwqueue() local 44 if (unlikely(ieee80211_is_beacon(fc))) _rtl92ce_map_hwqueue_to_fwqueue() 46 if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) _rtl92ce_map_hwqueue_to_fwqueue() 305 __le16 fc; _rtl92ce_translate_rx_signal_stuff() local 312 fc = hdr->frame_control; _rtl92ce_translate_rx_signal_stuff() 313 c_fc = le16_to_cpu(fc); _rtl92ce_translate_rx_signal_stuff() 314 type = WLAN_FC_GET_TYPE(fc); _rtl92ce_translate_rx_signal_stuff() 328 if (ieee80211_is_beacon(fc)) _rtl92ce_translate_rx_signal_stuff() 436 __le16 fc = hdr->frame_control; rtl92ce_tx_fill_desc() local 472 if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { rtl92ce_tx_fill_desc() 557 if (ieee80211_is_data_qos(fc)) { rtl92ce_tx_fill_desc() 583 if ((!ieee80211_is_data_qos(fc)) && ppsc->fwctrl_lps) { rtl92ce_tx_fill_desc() 614 __le16 fc = hdr->frame_control; rtl92ce_tx_fill_cmddesc() local 655 if (!ieee80211_is_data_qos(fc)) { rtl92ce_tx_fill_cmddesc()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/ |
H A D | trx.c | 41 __le16 fc = rtl_get_fc(skb); _rtl92de_map_hwqueue_to_fwqueue() local 43 if (unlikely(ieee80211_is_beacon(fc))) _rtl92de_map_hwqueue_to_fwqueue() 45 if (ieee80211_is_mgmt(fc)) _rtl92de_map_hwqueue_to_fwqueue() 454 __le16 fc; _rtl92de_translate_rx_signal_stuff() local 459 fc = hdr->frame_control; _rtl92de_translate_rx_signal_stuff() 460 cfc = le16_to_cpu(fc); _rtl92de_translate_rx_signal_stuff() 461 type = WLAN_FC_GET_TYPE(fc); _rtl92de_translate_rx_signal_stuff() 471 if (ieee80211_is_beacon(fc)) _rtl92de_translate_rx_signal_stuff() 559 __le16 fc = hdr->frame_control; rtl92de_tx_fill_desc() local 593 if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { rtl92de_tx_fill_desc() 699 if (ieee80211_is_data_qos(fc)) { rtl92de_tx_fill_desc() 720 if (ieee80211_is_data_qos(fc)) rtl92de_tx_fill_desc() 723 if ((!ieee80211_is_data_qos(fc)) && ppsc->fwctrl_lps) { rtl92de_tx_fill_desc() 743 __le16 fc = hdr->frame_control; rtl92de_tx_fill_cmddesc() local 777 if (!ieee80211_is_data_qos(fc) && ppsc->fwctrl_lps) { rtl92de_tx_fill_cmddesc()
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | topology.h | 34 int topology_set_cpu_management(int fc);
|
H A D | nmi.h | 53 __u32 fc : 1; /* 43 fp control register validity */ member in struct:mci
|
H A D | pci_insn.h | 58 u8 fc; /* function controls */ member in struct:zpci_fib
|
H A D | sysinfo.h | 166 int stsi(void *sysinfo, int fc, int sel1, int sel2);
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | vsc8211.c | 131 int *speed, int *duplex, int *fc) vsc8211_get_link_status() 177 if (fc && dplx == DUPLEX_FULL) { vsc8211_get_link_status() 201 if (fc) vsc8211_get_link_status() 202 *fc = pause; vsc8211_get_link_status() 207 int *speed, int *duplex, int *fc) vsc8211_get_link_status_fiber() 254 if (fc && dplx == DUPLEX_FULL) { vsc8211_get_link_status_fiber() 269 if (fc) vsc8211_get_link_status_fiber() 270 *fc = pause; vsc8211_get_link_status_fiber() 130 vsc8211_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) vsc8211_get_link_status() argument 206 vsc8211_get_link_status_fiber(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) vsc8211_get_link_status_fiber() argument
|
H A D | t3_hw.c | 1208 int link_ok, speed, duplex, fc; t3_link_changed() local 1214 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); t3_link_changed() 1234 fc &= lc->requested_fc; t3_link_changed() 1236 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); t3_link_changed() 1239 duplex == lc->duplex && fc == lc->fc) t3_link_changed() 1255 t3_mac_set_speed_duplex_fc(mac, speed, duplex, fc); t3_link_changed() 1256 lc->fc = fc; t3_link_changed() 1260 speed, duplex, fc); t3_link_changed() 1269 int link_ok, speed, duplex, fc, link_fault; t3_link_fault() local 1289 fc = lc->fc; t3_link_fault() 1291 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); t3_link_fault() 1331 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); t3_link_start() local 1336 if (fc) { t3_link_start() 1338 if (fc & PAUSE_RX) t3_link_start() 1346 lc->fc = (unsigned char)fc; t3_link_start() 1348 fc); t3_link_start() 1354 t3_mac_set_speed_duplex_fc(mac, -1, -1, fc); t3_link_start() 1355 lc->fc = (unsigned char)fc; t3_link_start() 3463 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; init_link_config()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_fcoe.h | 32 #include <scsi/fc/fc_fs.h> 33 #include <scsi/fc/fc_fcoe.h>
|
H A D | ixgbe_82598.c | 334 if (!hw->fc.pause_time) ixgbe_fc_enable_82598() 339 if ((hw->fc.current_mode & ixgbe_fc_tx_pause) && ixgbe_fc_enable_82598() 340 hw->fc.high_water[i]) { ixgbe_fc_enable_82598() 341 if (!hw->fc.low_water[i] || ixgbe_fc_enable_82598() 342 hw->fc.low_water[i] >= hw->fc.high_water[i]) { ixgbe_fc_enable_82598() 356 switch (hw->fc.requested_mode) { ixgbe_fc_enable_82598() 358 hw->fc.requested_mode = ixgbe_fc_tx_pause; ixgbe_fc_enable_82598() 361 hw->fc.requested_mode = ixgbe_fc_none; ixgbe_fc_enable_82598() 369 /* Negotiate the fc mode to use */ ixgbe_fc_enable_82598() 380 * The possible values of fc.current_mode are: ixgbe_fc_enable_82598() 389 switch (hw->fc.current_mode) { ixgbe_fc_enable_82598() 431 if ((hw->fc.current_mode & ixgbe_fc_tx_pause) && ixgbe_fc_enable_82598() 432 hw->fc.high_water[i]) { ixgbe_fc_enable_82598() 433 fcrtl = (hw->fc.low_water[i] << 10) | IXGBE_FCRTL_XONE; ixgbe_fc_enable_82598() 434 fcrth = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; ixgbe_fc_enable_82598() 445 reg = hw->fc.pause_time * 0x00010001; ixgbe_fc_enable_82598() 450 IXGBE_WRITE_REG(hw, IXGBE_FCRTV, hw->fc.pause_time / 2); ixgbe_fc_enable_82598()
|
H A D | ixgbe_dcb_82598.c | 219 fcrtl = (hw->fc.low_water[i] << 10) | IXGBE_FCRTL_XONE; ixgbe_dcb_config_pfc_82598() 220 reg = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; ixgbe_dcb_config_pfc_82598() 226 reg = hw->fc.pause_time * 0x00010001; ixgbe_dcb_config_pfc_82598() 231 IXGBE_WRITE_REG(hw, IXGBE_FCRTV, hw->fc.pause_time / 2); ixgbe_dcb_config_pfc_82598()
|
H A D | ixgbe_dcb_82599.c | 258 reg = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; ixgbe_dcb_config_pfc_82599() 259 fcrtl = (hw->fc.low_water[i] << 10) | IXGBE_FCRTL_XONE; ixgbe_dcb_config_pfc_82599() 275 reg = hw->fc.pause_time * 0x00010001; ixgbe_dcb_config_pfc_82599() 280 IXGBE_WRITE_REG(hw, IXGBE_FCRTV, hw->fc.pause_time / 2); ixgbe_dcb_config_pfc_82599()
|
H A D | ixgbe_common.c | 123 if (hw->fc.strict_ieee && hw->fc.requested_mode == ixgbe_fc_rx_pause) { ixgbe_setup_fc() 132 if (hw->fc.requested_mode == ixgbe_fc_default) ixgbe_setup_fc() 133 hw->fc.requested_mode = ixgbe_fc_full; ixgbe_setup_fc() 137 * HW will be able to do fc autoneg once the cable is plugged in. If ixgbe_setup_fc() 161 * The possible values of fc.requested_mode are: ixgbe_setup_fc() 170 switch (hw->fc.requested_mode) { ixgbe_setup_fc() 228 if (hw->fc.strict_ieee) ixgbe_setup_fc() 2073 if (!hw->fc.pause_time) ixgbe_fc_enable_generic() 2078 if ((hw->fc.current_mode & ixgbe_fc_tx_pause) && ixgbe_fc_enable_generic() 2079 hw->fc.high_water[i]) { ixgbe_fc_enable_generic() 2080 if (!hw->fc.low_water[i] || ixgbe_fc_enable_generic() 2081 hw->fc.low_water[i] >= hw->fc.high_water[i]) { ixgbe_fc_enable_generic() 2088 /* Negotiate the fc mode to use */ ixgbe_fc_enable_generic() 2099 * The possible values of fc.current_mode are: ixgbe_fc_enable_generic() 2108 switch (hw->fc.current_mode) { ixgbe_fc_enable_generic() 2150 if ((hw->fc.current_mode & ixgbe_fc_tx_pause) && ixgbe_fc_enable_generic() 2151 hw->fc.high_water[i]) { ixgbe_fc_enable_generic() 2152 fcrtl = (hw->fc.low_water[i] << 10) | IXGBE_FCRTL_XONE; ixgbe_fc_enable_generic() 2154 fcrth = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; ixgbe_fc_enable_generic() 2170 reg = hw->fc.pause_time * 0x00010001; ixgbe_fc_enable_generic() 2174 IXGBE_WRITE_REG(hw, IXGBE_FCRTV, hw->fc.pause_time / 2); ixgbe_fc_enable_generic() 2206 if (hw->fc.requested_mode == ixgbe_fc_full) { ixgbe_negotiate_fc() 2207 hw->fc.current_mode = ixgbe_fc_full; ixgbe_negotiate_fc() 2210 hw->fc.current_mode = ixgbe_fc_rx_pause; ixgbe_negotiate_fc() 2215 hw->fc.current_mode = ixgbe_fc_tx_pause; ixgbe_negotiate_fc() 2219 hw->fc.current_mode = ixgbe_fc_rx_pause; ixgbe_negotiate_fc() 2222 hw->fc.current_mode = ixgbe_fc_none; ixgbe_negotiate_fc() 2347 if (hw->fc.disable_fc_autoneg) ixgbe_fc_autoneg() 2378 hw->fc.fc_was_autonegged = true; ixgbe_fc_autoneg() 2380 hw->fc.fc_was_autonegged = false; ixgbe_fc_autoneg() 2381 hw->fc.current_mode = hw->fc.requested_mode; ixgbe_fc_autoneg()
|
H A D | ixgbe_ethtool.c | 374 !hw->fc.disable_fc_autoneg) ixgbe_get_pauseparam() 379 if (hw->fc.current_mode == ixgbe_fc_rx_pause) { ixgbe_get_pauseparam() 381 } else if (hw->fc.current_mode == ixgbe_fc_tx_pause) { ixgbe_get_pauseparam() 383 } else if (hw->fc.current_mode == ixgbe_fc_full) { ixgbe_get_pauseparam() 394 struct ixgbe_fc_info fc = hw->fc; ixgbe_set_pauseparam() local 406 fc.disable_fc_autoneg = (pause->autoneg != AUTONEG_ENABLE); ixgbe_set_pauseparam() 409 fc.requested_mode = ixgbe_fc_full; ixgbe_set_pauseparam() 411 fc.requested_mode = ixgbe_fc_rx_pause; ixgbe_set_pauseparam() 413 fc.requested_mode = ixgbe_fc_tx_pause; ixgbe_set_pauseparam() 415 fc.requested_mode = ixgbe_fc_none; ixgbe_set_pauseparam() 418 if (memcmp(&fc, &hw->fc, sizeof(struct ixgbe_fc_info))) { ixgbe_set_pauseparam() 419 hw->fc = fc; ixgbe_set_pauseparam()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/engine/ |
H A D | fifo.h | 92 #define nvkm_fifo_create(o,e,c,fc,lc,d) \ 93 nvkm_fifo_create_((o), (e), (c), (fc), (lc), sizeof(**d), (void **)d)
|
/linux-4.1.27/arch/ia64/include/uapi/asm/ |
H A D | intrinsics.h | 97 /* fc, thash, get_cpuid, get_pmd, get_eflags, set_eflags */ 101 #define ia64_fc IA64_INTRINSIC_API(fc)
|
/linux-4.1.27/arch/s390/kvm/ |
H A D | trace.h | 391 TP_PROTO(VCPU_PROTO_COMMON, int fc, int sel1, int sel2, u64 addr), 392 TP_ARGS(VCPU_ARGS_COMMON, fc, sel1, sel2, addr), 396 __field(int, fc) 404 __entry->fc = fc; 411 __entry->fc, __entry->sel1, __entry->sel2,
|
H A D | priv.c | 503 u8 fc, u8 sel1, u16 sel2) insert_stsi_usr_data() 508 vcpu->run->s390_stsi.fc = fc; insert_stsi_usr_data() 515 int fc = (vcpu->run->s.regs.gprs[0] & 0xf0000000) >> 28; handle_stsi() local 524 VCPU_EVENT(vcpu, 4, "stsi: fc: %x sel1: %x sel2: %x", fc, sel1, sel2); handle_stsi() 529 if (fc > 3) { handle_stsi() 538 if (fc == 0) { handle_stsi() 549 switch (fc) { handle_stsi() 555 if (stsi((void *) mem, fc, sel1, sel2)) handle_stsi() 574 insert_stsi_usr_data(vcpu, operand2, ar, fc, sel1, sel2); handle_stsi() 577 trace_kvm_s390_handle_stsi(vcpu, fc, sel1, sel2, operand2); handle_stsi() 502 insert_stsi_usr_data(struct kvm_vcpu *vcpu, u64 addr, ar_t ar, u8 fc, u8 sel1, u16 sel2) insert_stsi_usr_data() argument
|
H A D | gaccess.c | 71 unsigned long fc : 1; /* Format-Control */ member in struct:region3_table_entry_fc0 87 unsigned long fc : 1; /* Format-Control */ member in struct:region3_table_entry_fc1 103 unsigned long fc : 1; /* Format-Control */ member in struct:region3_table_entry::__anon2535 114 unsigned long fc : 1; /* Format-Control */ member in struct:segment_entry_fc0 129 unsigned long fc : 1; /* Format-Control */ member in struct:segment_entry_fc1 145 unsigned long fc : 1; /* Format-Control */ member in struct:segment_table_entry::__anon2536 635 if (rtte.fc && edat2) { guest_translate() 662 if (ste.fc && edat1) { guest_translate()
|
/linux-4.1.27/net/mac802154/ |
H A D | rx.c | 149 pr_debug("fc: %04x dsn: %02x\n", le16_to_cpup((__le16 *)&hdr->fc), ieee802154_parse_frame_start() 152 cb->type = hdr->fc.type; ieee802154_parse_frame_start() 153 cb->ackreq = hdr->fc.ack_request; ieee802154_parse_frame_start() 154 cb->secen = hdr->fc.security_enabled; ieee802154_parse_frame_start() 162 if (hdr->fc.security_enabled) { ieee802154_parse_frame_start()
|
H A D | iface.c | 345 hdr->fc.security_enabled = 1; mac802154_set_header_security() 373 memset(&hdr.fc, 0, sizeof(hdr.fc)); mac802154_header_create() 374 hdr.fc.type = cb->type; mac802154_header_create() 375 hdr.fc.security_enabled = cb->secen; mac802154_header_create() 376 hdr.fc.ack_request = cb->ackreq; mac802154_header_create()
|
H A D | llsec.c | 558 if (hdr->fc.type == IEEE802154_FC_TYPE_BEACON) { llsec_lookup_key() 569 if (!(key_entry->key->frame_types & BIT(hdr->fc.type))) llsec_lookup_key() 714 if (hlen < 0 || hdr.fc.type != IEEE802154_FC_TYPE_DATA) mac802154_llsec_encrypt() 717 if (!hdr.fc.security_enabled || hdr.sec.level == 0) { mac802154_llsec_encrypt() 994 if (!hdr.fc.security_enabled) mac802154_llsec_decrypt() 996 if (hdr.fc.version == 0) mac802154_llsec_decrypt() 1020 if (llsec_lookup_seclevel(sec, hdr.fc.type, 0, &seclevel) < 0) { mac802154_llsec_decrypt()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/ |
H A D | trx.c | 40 __le16 fc = rtl_get_fc(skb); _rtl92ee_map_hwqueue_to_fwqueue() local 42 if (unlikely(ieee80211_is_beacon(fc))) _rtl92ee_map_hwqueue_to_fwqueue() 44 if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) _rtl92ee_map_hwqueue_to_fwqueue() 247 __le16 fc; _rtl92ee_translate_rx_signal_stuff() local 254 fc = hdr->frame_control; _rtl92ee_translate_rx_signal_stuff() 259 packet_matchbssid = (!ieee80211_is_ctl(fc) && _rtl92ee_translate_rx_signal_stuff() 261 ieee80211_has_tods(fc) ? _rtl92ee_translate_rx_signal_stuff() 263 ieee80211_has_fromds(fc) ? _rtl92ee_translate_rx_signal_stuff() 271 if (ieee80211_is_beacon(fc)) _rtl92ee_translate_rx_signal_stuff() 675 __le16 fc = hdr->frame_control; rtl92ee_tx_fill_desc() local 714 if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { rtl92ee_tx_fill_desc() 736 if (ieee80211_is_mgmt(fc)) { rtl92ee_tx_fill_desc() 827 if (ieee80211_is_data_qos(fc)) { rtl92ee_tx_fill_desc()
|
/linux-4.1.27/drivers/staging/rtl8192e/ |
H A D | rtllib_rx.c | 95 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_frag_cache_get() local 104 if (((fc & RTLLIB_FCTL_DSTODS) == RTLLIB_FCTL_DSTODS) && RTLLIB_QOS_HAS_SEQ(fc)) { rtllib_frag_cache_get() 109 } else if (RTLLIB_QOS_HAS_SEQ(fc)) { rtllib_frag_cache_get() 126 (RTLLIB_QOS_HAS_SEQ(fc) ? 2 : 0) /* QOS Control */); rtllib_frag_cache_get() 164 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_frag_cache_invalidate() local 172 if (((fc & RTLLIB_FCTL_DSTODS) == RTLLIB_FCTL_DSTODS) && RTLLIB_QOS_HAS_SEQ(fc)) { rtllib_frag_cache_invalidate() 177 } else if (RTLLIB_QOS_HAS_SEQ(fc)) { rtllib_frag_cache_invalidate() 246 u16 fc, ethertype; rtllib_is_eapol_frame() local 254 fc = le16_to_cpu(hdr->frame_ctl); rtllib_is_eapol_frame() 257 if ((fc & (RTLLIB_FCTL_TODS | RTLLIB_FCTL_FROMDS)) == rtllib_is_eapol_frame() 262 } else if ((fc & (RTLLIB_FCTL_TODS | RTLLIB_FCTL_FROMDS)) == rtllib_is_eapol_frame() 361 u16 fc = le16_to_cpu(header->frame_ctl); is_duplicate_packet() local 371 if (((fc & RTLLIB_FCTL_DSTODS) == RTLLIB_FCTL_DSTODS) && RTLLIB_QOS_HAS_SEQ(fc)) { is_duplicate_packet() 376 } else if (RTLLIB_QOS_HAS_SEQ(fc)) { is_duplicate_packet() 734 u16 fc = le16_to_cpu(hdr->frame_ctl); parse_subframe() local 746 if ((RTLLIB_QOS_HAS_SEQ(fc)) && parse_subframe() 750 if (RTLLIB_QOS_HAS_SEQ(fc)) parse_subframe() 864 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_get_hdrlen() local 867 hdrlen = rtllib_get_hdrlen(fc); rtllib_rx_get_hdrlen() 876 if (RTLLIB_QOS_HAS_SEQ(fc)) rtllib_rx_get_hdrlen() 886 u16 fc, sc; rtllib_rx_check_duplicate() local 889 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_check_duplicate() 890 type = WLAN_FC_GET_TYPE(fc); rtllib_rx_check_duplicate() 891 stype = WLAN_FC_GET_STYPE(fc); rtllib_rx_check_duplicate() 908 if ((fc & (1<<11)) && (frag == pRxTS->RxLastFragNum) && rtllib_rx_check_duplicate() 926 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_extract_addr() local 928 switch (fc & (RTLLIB_FCTL_FROMDS | RTLLIB_FCTL_TODS)) { rtllib_rx_extract_addr() 952 static int rtllib_rx_data_filter(struct rtllib_device *ieee, u16 fc, rtllib_rx_data_filter() argument 957 type = WLAN_FC_GET_TYPE(fc); rtllib_rx_data_filter() 958 stype = WLAN_FC_GET_STYPE(fc); rtllib_rx_data_filter() 961 if (((fc & RTLLIB_FCTL_DSTODS) != RTLLIB_FCTL_DSTODS) && rtllib_rx_data_filter() 970 if ((fc & RTLLIB_FCTL_TODS) && !(fc & RTLLIB_FCTL_FROMDS) && rtllib_rx_data_filter() 1012 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_get_crypt() local 1027 if (!*crypt && (fc & RTLLIB_FCTL_WEP)) { rtllib_rx_get_crypt() 1049 u16 fc, sc; rtllib_rx_decrypt() local 1053 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_decrypt() 1063 if (ieee->host_decrypt && (fc & RTLLIB_FCTL_WEP) && (keyidx < 0)) { rtllib_rx_decrypt() 1069 if ((frag != 0 || (fc & RTLLIB_FCTL_MOREFRAGS))) { rtllib_rx_decrypt() 1078 (fc & RTLLIB_FCTL_MOREFRAGS) != 0, rtllib_rx_decrypt() 1109 if (fc & RTLLIB_FCTL_MOREFRAGS) { rtllib_rx_decrypt() 1128 if (ieee->host_decrypt && (fc & RTLLIB_FCTL_WEP) && rtllib_rx_decrypt() 1135 if (crypt && !(fc & RTLLIB_FCTL_WEP) && !ieee->open_wep) { rtllib_rx_decrypt() 1154 if (crypt && !(fc & RTLLIB_FCTL_WEP) && rtllib_rx_decrypt() 1162 if (crypt && !(fc & RTLLIB_FCTL_WEP) && !ieee->open_wep && rtllib_rx_decrypt() 1259 u16 fc, sc, SeqNum = 0; rtllib_rx_InfraAdhoc() local 1267 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_InfraAdhoc() 1268 type = WLAN_FC_GET_TYPE(fc); rtllib_rx_InfraAdhoc() 1269 stype = WLAN_FC_GET_STYPE(fc); rtllib_rx_InfraAdhoc() 1322 ret = rtllib_rx_data_filter(ieee, fc, dst, src, bssid, hdr->addr2); rtllib_rx_InfraAdhoc() 1332 if (WLAN_FC_MORE_DATA(fc)) { rtllib_rx_InfraAdhoc() 1426 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_Monitor() local 1427 size_t hdrlen = rtllib_get_hdrlen(fc); rtllib_rx_Monitor() 2427 static inline int is_beacon(__le16 fc) is_beacon() argument 2429 return (WLAN_FC_GET_STYPE(le16_to_cpu(fc)) == RTLLIB_STYPE_BEACON); is_beacon()
|
H A D | rtllib_crypt_ccmp.c | 116 u16 fc; ccmp_init_blocks() local 120 fc = le16_to_cpu(hdr->frame_ctl); ccmp_init_blocks() 121 a4_included = ((fc & (RTLLIB_FCTL_TODS | RTLLIB_FCTL_FROMDS)) == ccmp_init_blocks() 124 qc_included = ((WLAN_FC_GET_TYPE(fc) == RTLLIB_FTYPE_DATA) && ccmp_init_blocks() 125 (WLAN_FC_GET_STYPE(fc) & 0x80)); ccmp_init_blocks()
|
H A D | rtllib_tx.c | 575 int bytes, fc, qos_ctl = 0, hdr_len; rtllib_xmit_inter() local 683 fc = RTLLIB_FTYPE_DATA | RTLLIB_FCTL_WEP; rtllib_xmit_inter() 685 fc = RTLLIB_FTYPE_DATA; rtllib_xmit_inter() 688 fc |= RTLLIB_STYPE_QOS_DATA; rtllib_xmit_inter() 690 fc |= RTLLIB_STYPE_DATA; rtllib_xmit_inter() 693 fc |= RTLLIB_FCTL_TODS; rtllib_xmit_inter() 717 header.frame_ctl = cpu_to_le16(fc); rtllib_xmit_inter() 827 fc | RTLLIB_FCTL_MOREFRAGS); rtllib_xmit_inter()
|
H A D | rtllib.h | 791 #define WLAN_FC_GET_VERS(fc) ((fc) & RTLLIB_FCTL_VERS) 792 #define WLAN_FC_GET_TYPE(fc) ((fc) & RTLLIB_FCTL_FTYPE) 793 #define WLAN_FC_GET_STYPE(fc) ((fc) & RTLLIB_FCTL_STYPE) 794 #define WLAN_FC_MORE_DATA(fc) ((fc) & RTLLIB_FCTL_MOREDATA) 796 #define WLAN_FC_GET_FRAMETYPE(fc) ((fc) & RTLLIB_FCTL_FRAMETYPE) 897 #define RTLLIB_QOS_HAS_SEQ(fc) \ 898 (((fc) & (RTLLIB_FC0_TYPE_MASK | RTLLIB_FC0_SUBTYPE_MASK)) == \ 1429 u16 fc; Frame_QoSTID() local 1432 fc = le16_to_cpu(hdr->frame_ctl); Frame_QoSTID() 1433 return (u8)((union frameqos *)(buf + (((fc & RTLLIB_FCTL_TODS) && Frame_QoSTID() 1434 (fc & RTLLIB_FCTL_FROMDS)) ? 30 : 24)))->field.tid; Frame_QoSTID() 2551 static inline int rtllib_get_hdrlen(u16 fc) rtllib_get_hdrlen() argument 2555 switch (WLAN_FC_GET_TYPE(fc)) { rtllib_get_hdrlen() 2557 if ((fc & RTLLIB_FCTL_FROMDS) && (fc & RTLLIB_FCTL_TODS)) rtllib_get_hdrlen() 2559 if (RTLLIB_QOS_HAS_SEQ(fc)) rtllib_get_hdrlen() 2563 switch (WLAN_FC_GET_STYPE(fc)) { rtllib_get_hdrlen()
|
/linux-4.1.27/drivers/net/wireless/ti/wl1251/ |
H A D | tx.c | 84 struct ieee80211_tx_info *control, u16 fc) wl1251_tx_control() 102 if ((fc & IEEE80211_FTYPE_DATA) && wl1251_tx_control() 103 ((fc & IEEE80211_STYPE_QOS_DATA) || wl1251_tx_control() 104 (fc & IEEE80211_STYPE_QOS_NULLFUNC))) wl1251_tx_control() 154 u16 fc; wl1251_tx_fill_hdr() local 163 fc = *(u16 *)skb->data; wl1251_tx_fill_hdr() 175 wl1251_tx_control(tx_hdr, control, fc); wl1251_tx_fill_hdr() 197 __le16 fc; wl1251_tx_send_packet() local 201 fc = *(__le16 *)(skb->data + sizeof(*tx_hdr)); wl1251_tx_send_packet() 205 hdrlen = ieee80211_hdrlen(fc); wl1251_tx_send_packet() 83 wl1251_tx_control(struct tx_double_buffer_desc *tx_hdr, struct ieee80211_tx_info *control, u16 fc) wl1251_tx_control() argument
|
H A D | rx.c | 153 u16 length, *fc; wl1251_rx_body() local 185 fc = (u16 *)skb->data; wl1251_rx_body() 187 if ((*fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_BEACON) wl1251_rx_body()
|
H A D | wl12xx_80211.h | 124 __le16 fc; member in struct:wl12xx_ps_poll_template
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
H A D | tx.c | 81 __le16 fc = hdr->frame_control; iwl_mvm_set_tx_cmd() local 91 if (ieee80211_is_probe_resp(fc)) iwl_mvm_set_tx_cmd() 94 if (ieee80211_has_morefrags(fc)) iwl_mvm_set_tx_cmd() 97 if (ieee80211_is_data_qos(fc)) { iwl_mvm_set_tx_cmd() 101 } else if (ieee80211_is_back_req(fc)) { iwl_mvm_set_tx_cmd() 127 if (ieee80211_is_mgmt(fc)) { iwl_mvm_set_tx_cmd() 128 if (ieee80211_is_assoc_req(fc) || ieee80211_is_reassoc_req(fc)) iwl_mvm_set_tx_cmd() 143 if (ieee80211_is_data(fc) && len > mvm->rts_threshold && iwl_mvm_set_tx_cmd() 165 struct ieee80211_sta *sta, __le16 fc) iwl_mvm_set_tx_cmd_rate() 175 if (ieee80211_is_probe_resp(fc)) { iwl_mvm_set_tx_cmd_rate() 179 } else if (ieee80211_is_back_req(fc)) { iwl_mvm_set_tx_cmd_rate() 190 if (ieee80211_is_data(fc) && sta) { iwl_mvm_set_tx_cmd_rate() 194 } else if (ieee80211_is_back_req(fc)) { iwl_mvm_set_tx_cmd_rate() 201 "Got an HT rate (flags:0x%x/mcs:%d) for a non data frame (fc:0x%x)\n", iwl_mvm_set_tx_cmd_rate() 204 le16_to_cpu(fc)); iwl_mvm_set_tx_cmd_rate() 396 __le16 fc; iwl_mvm_tx_skb() local 403 fc = hdr->frame_control; iwl_mvm_tx_skb() 427 if (ieee80211_is_data_qos(fc) && !ieee80211_is_qos_nullfunc(fc)) { iwl_mvm_tx_skb() 443 memcpy(tx_cmd->hdr, hdr, ieee80211_hdrlen(fc)); iwl_mvm_tx_skb() 466 if (is_data_qos && !ieee80211_has_morefrags(fc)) iwl_mvm_tx_skb() 163 iwl_mvm_set_tx_cmd_rate(struct iwl_mvm *mvm, struct iwl_tx_cmd *tx_cmd, struct ieee80211_tx_info *info, struct ieee80211_sta *sta, __le16 fc) iwl_mvm_set_tx_cmd_rate() argument
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8821ae/ |
H A D | trx.c | 41 __le16 fc = rtl_get_fc(skb); _rtl8821ae_map_hwqueue_to_fwqueue() local 43 if (unlikely(ieee80211_is_beacon(fc))) _rtl8821ae_map_hwqueue_to_fwqueue() 45 if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) _rtl8821ae_map_hwqueue_to_fwqueue() 309 __le16 fc; translate_rx_signal_stuff() local 316 fc = hdr->frame_control; translate_rx_signal_stuff() 322 packet_matchbssid = (!ieee80211_is_ctl(fc) && translate_rx_signal_stuff() 324 ieee80211_has_tods(fc) ? translate_rx_signal_stuff() 326 ieee80211_has_fromds(fc) ? translate_rx_signal_stuff() 696 __le16 fc = hdr->frame_control; rtl8821ae_tx_fill_desc() local 723 if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { rtl8821ae_tx_fill_desc() 810 if (ieee80211_is_data_qos(fc)) { rtl8821ae_tx_fill_desc() 832 if (!ieee80211_is_data_qos(fc)) { rtl8821ae_tx_fill_desc()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/ |
H A D | pm3393.c | 93 u8 fc; member in struct:_cmac_instance 273 if (cmac->instance->fc & PAUSE_RX) pm3393_enable() 275 if (cmac->instance->fc & PAUSE_TX) pm3393_enable() 404 int *duplex, int *fc) pm3393_get_speed_duplex_fc() 410 if (fc) pm3393_get_speed_duplex_fc() 411 *fc = cmac->instance->fc; pm3393_get_speed_duplex_fc() 416 int fc) pm3393_set_speed_duplex_fc() 422 if (fc & ~(PAUSE_TX | PAUSE_RX)) pm3393_set_speed_duplex_fc() 425 if (fc != cmac->instance->fc) { pm3393_set_speed_duplex_fc() 426 cmac->instance->fc = (u8) fc; pm3393_set_speed_duplex_fc() 604 cmac->instance->fc = PAUSE_TX | PAUSE_RX; pm3393_mac_create() 403 pm3393_get_speed_duplex_fc(struct cmac *cmac, int *speed, int *duplex, int *fc) pm3393_get_speed_duplex_fc() argument 415 pm3393_set_speed_duplex_fc(struct cmac *cmac, int speed, int duplex, int fc) pm3393_set_speed_duplex_fc() argument
|
H A D | my3126.c | 110 int *link_ok, int *speed, int *duplex, int *fc) my3126_get_link_status() 146 if (fc) my3126_get_link_status() 147 *fc = PAUSE_RX | PAUSE_TX; my3126_get_link_status() 109 my3126_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) my3126_get_link_status() argument
|
H A D | gmac.h | 113 int (*set_speed_duplex_fc)(struct cmac *, int speed, int duplex, int fc); 115 int *fc);
|
H A D | subr.c | 152 int link_ok, speed, duplex, fc; t1_link_changed() local 156 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); t1_link_changed() 161 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); t1_link_changed() 167 mac->ops->set_speed_duplex_fc(mac, speed, duplex, fc); t1_link_changed() 168 lc->fc = (unsigned char)fc; t1_link_changed() 170 t1_link_negotiated(adapter, port_id, link_ok, speed, duplex, fc); t1_link_changed() 625 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); t1_link_start() local 629 if (fc) { t1_link_start() 630 if (fc == ((PAUSE_RX | PAUSE_TX) & t1_link_start() 635 if (fc == PAUSE_RX) t1_link_start() 644 lc->fc = (unsigned char)fc; t1_link_start() 646 lc->duplex, fc); t1_link_start() 657 mac->ops->set_speed_duplex_fc(mac, -1, -1, fc); t1_link_start() 658 lc->fc = (unsigned char)fc; t1_link_start() 1036 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; init_link_config()
|
H A D | mv88e1xxx.c | 241 int *speed, int *duplex, int *fc) mv88e1xxx_get_link_status() 268 if (fc) mv88e1xxx_get_link_status() 269 *fc = pause; mv88e1xxx_get_link_status() 240 mv88e1xxx_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) mv88e1xxx_get_link_status() argument
|
H A D | mv88x201x.c | 172 int *speed, int *duplex, int *fc) mv88x201x_get_link_status() 188 if (fc) mv88x201x_get_link_status() 189 *fc = PAUSE_RX | PAUSE_TX; mv88x201x_get_link_status() 171 mv88x201x_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) mv88x201x_get_link_status() argument
|
H A D | vsc7326.c | 464 int fc) mac_set_speed_duplex_fc() 522 if (fc & PAUSE_RX) mac_set_speed_duplex_fc() 524 if (fc & PAUSE_TX) mac_set_speed_duplex_fc() 526 if (fc == (PAUSE_RX | PAUSE_TX)) mac_set_speed_duplex_fc() 463 mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) mac_set_speed_duplex_fc() argument
|
H A D | cphy.h | 85 int *duplex, int *fc);
|
/linux-4.1.27/arch/powerpc/math-emu/ |
H A D | math_efp.c | 185 unsigned long type, func, fc, fa, fb, src, speinsn; do_spe_mathemu() local 198 fc = (speinsn >> 21) & 0x1f; do_spe_mathemu() 203 vc.wp[0] = current->thread.evr[fc]; do_spe_mathemu() 204 vc.wp[1] = regs->gpr[fc]; do_spe_mathemu() 685 current->thread.evr[fc] = vc.wp[0]; do_spe_mathemu() 686 regs->gpr[fc] = vc.wp[1]; do_spe_mathemu() 732 unsigned long speinsn, type, fb, fc, fptype, func; speround_handler() local 754 fc = (speinsn >> 21) & 0x1f; speround_handler() 755 s_lo = regs->gpr[fc] & SIGN_BIT_S; speround_handler() 756 s_hi = current->thread.evr[fc] & SIGN_BIT_S; speround_handler() 757 fgpr.wp[0] = current->thread.evr[fc]; speround_handler() 758 fgpr.wp[1] = regs->gpr[fc]; speround_handler() 883 current->thread.evr[fc] = fgpr.wp[0]; speround_handler() 884 regs->gpr[fc] = fgpr.wp[1]; speround_handler()
|
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/ |
H A D | ieee80211_crypt_ccmp.c | 121 u16 fc; ccmp_init_blocks() local 125 fc = le16_to_cpu(hdr->frame_ctl); ccmp_init_blocks() 126 a4_included = ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == ccmp_init_blocks() 129 qc_included = ((WLAN_FC_GET_TYPE(fc) == IEEE80211_FTYPE_DATA) && ccmp_init_blocks() 130 (WLAN_FC_GET_STYPE(fc) & 0x08)); ccmp_init_blocks() 133 qc_included = (WLAN_FC_GET_TYPE(fc) == IEEE80211_FTYPE_DATA) && ccmp_init_blocks() 134 (WLAN_FC_GET_STYPE(fc) & 0x80); ccmp_init_blocks()
|
H A D | ieee80211_rx.c | 51 u16 fc = le16_to_cpu(hdr->frame_ctl); ieee80211_monitor_rx() local 56 skb_pull(skb, ieee80211_get_hdrlen(fc)); ieee80211_monitor_rx() 100 u16 fc = le16_to_cpu(hdr->frame_ctl); ieee80211_frag_cache_get() local 109 if (((fc & IEEE80211_FCTL_DSTODS) == IEEE80211_FCTL_DSTODS)&&IEEE80211_QOS_HAS_SEQ(fc)) { ieee80211_frag_cache_get() 114 } else if (IEEE80211_QOS_HAS_SEQ(fc)) { ieee80211_frag_cache_get() 131 (IEEE80211_QOS_HAS_SEQ(fc)?2:0) /* QOS Control */); ieee80211_frag_cache_get() 168 u16 fc = le16_to_cpu(hdr->frame_ctl); ieee80211_frag_cache_invalidate() local 176 if(((fc & IEEE80211_FCTL_DSTODS) == IEEE80211_FCTL_DSTODS)&&IEEE80211_QOS_HAS_SEQ(fc)) { ieee80211_frag_cache_invalidate() 181 } else if (IEEE80211_QOS_HAS_SEQ(fc)) { ieee80211_frag_cache_invalidate() 300 u16 fc, ethertype; ieee80211_is_eapol_frame() local 308 fc = le16_to_cpu(hdr->frame_ctl); ieee80211_is_eapol_frame() 311 if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == ieee80211_is_eapol_frame() 316 } else if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == ieee80211_is_eapol_frame() 421 u16 fc = le16_to_cpu(header->frame_ctl); is_duplicate_packet() local 433 if(((fc & IEEE80211_FCTL_DSTODS) == IEEE80211_FCTL_DSTODS)&&IEEE80211_QOS_HAS_SEQ(fc)) { is_duplicate_packet() 438 } else if(IEEE80211_QOS_HAS_SEQ(fc)) { //QoS is_duplicate_packet() 491 // printk(KERN_WARNING ":)))))))))))%x %x %x, fc(%x)\n", tid, *last_seq, seq, header->frame_ctl); is_duplicate_packet() 512 // BUG_ON(!(fc & IEEE80211_FCTL_RETRY)); is_duplicate_packet() 772 u16 fc = le16_to_cpu(hdr->frame_ctl); parse_subframe() local 786 if ((IEEE80211_QOS_HAS_SEQ(fc))&&\ parse_subframe() 791 if (IEEE80211_QOS_HAS_SEQ(fc)) { parse_subframe() 895 u16 fc, type, stype, sc; ieee80211_rx() local 933 fc = le16_to_cpu(hdr->frame_ctl); ieee80211_rx() 934 type = WLAN_FC_GET_TYPE(fc); ieee80211_rx() 935 stype = WLAN_FC_GET_STYPE(fc); ieee80211_rx() 939 hdrlen = ieee80211_get_hdrlen(fc); ieee80211_rx() 1000 if (!crypt && (fc & IEEE80211_FCTL_WEP)) { ieee80211_rx() 1036 if ((fc & (1<<11)) && ieee80211_rx() 1064 switch (fc & (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) { ieee80211_rx() 1090 if (hostap_rx_frame_wds(ieee, hdr, fc, &wds)) ieee80211_rx() 1098 (fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == IEEE80211_FCTL_FROMDS && ieee80211_rx() 1151 if (ieee->host_decrypt && (fc & IEEE80211_FCTL_WEP) && ieee80211_rx() 1163 // ieee->host_decrypt && (fc & IEEE80211_FCTL_WEP) && ieee80211_rx() 1164 if ((frag != 0 || (fc & IEEE80211_FCTL_MOREFRAGS))) { ieee80211_rx() 1173 (fc & IEEE80211_FCTL_MOREFRAGS) != 0, ieee80211_rx() 1202 if (fc & IEEE80211_FCTL_MOREFRAGS) { ieee80211_rx() 1218 if (ieee->host_decrypt && (fc & IEEE80211_FCTL_WEP) && ieee80211_rx() 1230 if (crypt && !(fc & IEEE80211_FCTL_WEP) && !ieee->open_wep) { ieee80211_rx() 1252 if (crypt && !(fc & IEEE80211_FCTL_WEP) && ieee80211_rx() 1261 if (crypt && !(fc & IEEE80211_FCTL_WEP) && !ieee->open_wep && ieee80211_rx() 2396 static inline int is_beacon(__le16 fc) is_beacon() argument 2398 return (WLAN_FC_GET_STYPE(le16_to_cpu(fc)) == IEEE80211_STYPE_BEACON); is_beacon()
|
H A D | ieee80211_tx.c | 606 int bytes, fc, qos_ctl = 0, hdr_len; ieee80211_xmit() local 672 fc = IEEE80211_FTYPE_DATA | IEEE80211_FCTL_WEP; ieee80211_xmit() 675 fc = IEEE80211_FTYPE_DATA; ieee80211_xmit() 679 fc |= IEEE80211_STYPE_QOS_DATA; ieee80211_xmit() 681 fc |= IEEE80211_STYPE_DATA; ieee80211_xmit() 684 fc |= IEEE80211_FCTL_TODS; ieee80211_xmit() 698 header.frame_ctl = cpu_to_le16(fc); ieee80211_xmit() 797 fc | IEEE80211_FCTL_MOREFRAGS); ieee80211_xmit()
|
H A D | ieee80211.h | 641 #define WLAN_FC_GET_VERS(fc) ((fc) & IEEE80211_FCTL_VERS) 642 #define WLAN_FC_GET_TYPE(fc) ((fc) & IEEE80211_FCTL_FTYPE) 643 #define WLAN_FC_GET_STYPE(fc) ((fc) & IEEE80211_FCTL_STYPE) 645 #define WLAN_FC_GET_FRAMETYPE(fc) ((fc) & IEEE80211_FCTL_FRAMETYPE) 809 #define IEEE80211_QOS_HAS_SEQ(fc) \ 810 (((fc) & (IEEE80211_FC0_TYPE_MASK | IEEE80211_FC0_SUBTYPE_MASK)) == \ 1333 u16 fc; Frame_QoSTID() local 1335 fc = le16_to_cpu(hdr->frame_ctl); Frame_QoSTID() 1336 return (u8)((frameqos *)(buf + (((fc & IEEE80211_FCTL_TODS)&&(fc & IEEE80211_FCTL_FROMDS))? 30 : 24)))->field.tid; Frame_QoSTID() 2238 static inline int ieee80211_get_hdrlen(u16 fc) ieee80211_get_hdrlen() argument 2242 switch (WLAN_FC_GET_TYPE(fc)) { ieee80211_get_hdrlen() 2244 if ((fc & IEEE80211_FCTL_FROMDS) && (fc & IEEE80211_FCTL_TODS)) ieee80211_get_hdrlen() 2246 if(IEEE80211_QOS_HAS_SEQ(fc)) ieee80211_get_hdrlen() 2250 switch (WLAN_FC_GET_STYPE(fc)) { ieee80211_get_hdrlen()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723be/ |
H A D | trx.c | 40 __le16 fc = rtl_get_fc(skb); _rtl8723be_map_hwqueue_to_fwqueue() local 42 if (unlikely(ieee80211_is_beacon(fc))) _rtl8723be_map_hwqueue_to_fwqueue() 44 if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) _rtl8723be_map_hwqueue_to_fwqueue() 223 u16 fc, type; _rtl8723be_translate_rx_signal_stuff() local 229 fc = le16_to_cpu(hdr->frame_control); _rtl8723be_translate_rx_signal_stuff() 236 (ether_addr_equal(mac->bssid, (fc & IEEE80211_FCTL_TODS) ? _rtl8723be_translate_rx_signal_stuff() 237 hdr->addr1 : (fc & IEEE80211_FCTL_FROMDS) ? _rtl8723be_translate_rx_signal_stuff() 436 __le16 fc = hdr->frame_control; rtl8723be_tx_fill_desc() local 471 if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { rtl8723be_tx_fill_desc() 570 if (ieee80211_is_data_qos(fc)) { rtl8723be_tx_fill_desc() 592 if (!ieee80211_is_data_qos(fc)) { rtl8723be_tx_fill_desc()
|
/linux-4.1.27/drivers/net/ethernet/intel/igb/ |
H A D | e1000_mac.c | 606 if (hw->fc.requested_mode == e1000_fc_default) { igb_setup_link() 616 hw->fc.current_mode = hw->fc.requested_mode; igb_setup_link() 618 hw_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); igb_setup_link() 635 wr32(E1000_FCTTV, hw->fc.pause_time); igb_setup_link() 684 if (hw->fc.current_mode & e1000_fc_tx_pause) { igb_set_fc_watermarks() 689 fcrtl = hw->fc.low_water; igb_set_fc_watermarks() 690 if (hw->fc.send_xon) igb_set_fc_watermarks() 693 fcrth = hw->fc.high_water; igb_set_fc_watermarks() 719 * control setting, then the variable hw->fc will igb_set_default_fc() 737 hw->fc.requested_mode = e1000_fc_none; igb_set_default_fc() 740 hw->fc.requested_mode = e1000_fc_tx_pause; igb_set_default_fc() 742 hw->fc.requested_mode = e1000_fc_full; igb_set_default_fc() 771 * according to the "hw->fc.current_mode" parameter. igb_force_mac_fc() 773 * The possible values of the "fc" parameter are: igb_force_mac_fc() 782 hw_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); igb_force_mac_fc() 784 switch (hw->fc.current_mode) { igb_force_mac_fc() 831 * configuration of the MAC to match the "fc" parameter. igb_config_fc_after_link_up() 926 if (hw->fc.requested_mode == e1000_fc_full) { igb_config_fc_after_link_up() 927 hw->fc.current_mode = e1000_fc_full; igb_config_fc_after_link_up() 930 hw->fc.current_mode = e1000_fc_rx_pause; igb_config_fc_after_link_up() 945 hw->fc.current_mode = e1000_fc_tx_pause; igb_config_fc_after_link_up() 959 hw->fc.current_mode = e1000_fc_rx_pause; igb_config_fc_after_link_up() 982 else if ((hw->fc.requested_mode == e1000_fc_none) || igb_config_fc_after_link_up() 983 (hw->fc.requested_mode == e1000_fc_tx_pause) || igb_config_fc_after_link_up() 984 (hw->fc.strict_ieee)) { igb_config_fc_after_link_up() 985 hw->fc.current_mode = e1000_fc_none; igb_config_fc_after_link_up() 988 hw->fc.current_mode = e1000_fc_rx_pause; igb_config_fc_after_link_up() 1003 hw->fc.current_mode = e1000_fc_none; igb_config_fc_after_link_up() 1081 if (hw->fc.requested_mode == e1000_fc_full) { igb_config_fc_after_link_up() 1082 hw->fc.current_mode = e1000_fc_full; igb_config_fc_after_link_up() 1085 hw->fc.current_mode = e1000_fc_rx_pause; igb_config_fc_after_link_up() 1100 hw->fc.current_mode = e1000_fc_tx_pause; igb_config_fc_after_link_up() 1114 hw->fc.current_mode = e1000_fc_rx_pause; igb_config_fc_after_link_up() 1120 hw->fc.current_mode = e1000_fc_none; igb_config_fc_after_link_up()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/ |
H A D | rc.c | 152 __le16 fc = rtl_get_fc(skb); rtl_get_rate() local 154 bool not_data = !ieee80211_is_data(fc); rtl_get_rate() 199 __le16 fc = rtl_get_fc(skb); rtl_tx_status() local 202 if (!priv_sta || !ieee80211_is_data(fc)) rtl_tx_status() 217 if (ieee80211_is_data_qos(fc)) { rtl_tx_status()
|
H A D | usb.c | 454 __le16 fc; _rtl_usb_rx_process_agg() local 465 fc = hdr->frame_control; _rtl_usb_rx_process_agg() 478 if (ieee80211_is_data(fc)) { _rtl_usb_rx_process_agg() 496 __le16 fc; _rtl_usb_rx_process_noagg() local 507 fc = hdr->frame_control; _rtl_usb_rx_process_noagg() 520 if (ieee80211_is_data(fc)) { _rtl_usb_rx_process_noagg() 968 __le16 fc = hdr->frame_control; _rtl_usb_tx_preprocess() local 976 if (ieee80211_is_auth(fc)) { _rtl_usb_tx_preprocess() 982 if (ieee80211_is_data(fc) && !ieee80211_is_nullfunc(fc) && _rtl_usb_tx_preprocess() 983 !ieee80211_has_pm(fc)) _rtl_usb_tx_preprocess() 994 if (ieee80211_is_data_qos(fc)) { _rtl_usb_tx_preprocess() 1008 if (ieee80211_is_data(fc)) _rtl_usb_tx_preprocess() 1020 __le16 fc = hdr->frame_control; rtl_usb_tx() local 1025 hw_queue = rtlusb->usb_mq_to_hwq(fc, skb_get_queue_mapping(skb)); rtl_usb_tx()
|
H A D | pci.c | 65 __le16 fc = rtl_get_fc(skb); _rtl_mac_to_hwqueue() local 68 if (unlikely(ieee80211_is_beacon(fc))) _rtl_mac_to_hwqueue() 70 if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) _rtl_mac_to_hwqueue() 73 if (ieee80211_is_nullfunc(fc)) _rtl_mac_to_hwqueue() 572 __le16 fc; _rtl_pci_tx_isr() local 619 fc = rtl_get_fc(skb); _rtl_pci_tx_isr() 620 if (ieee80211_is_nullfunc(fc)) { _rtl_pci_tx_isr() 621 if (ieee80211_has_pm(fc)) { _rtl_pci_tx_isr() 628 if (ieee80211_is_action(fc)) { _rtl_pci_tx_isr() 787 __le16 fc; _rtl_pci_rx_interrupt() local 871 fc = rtl_get_fc(skb); _rtl_pci_rx_interrupt() 887 if (ieee80211_is_data(fc)) { _rtl_pci_rx_interrupt() 901 (ieee80211_is_beacon(fc) || _rtl_pci_rx_interrupt() 902 ieee80211_is_probe_resp(fc))) { _rtl_pci_rx_interrupt() 1594 __le16 fc = rtl_get_fc(skb); rtl_pci_tx_chk_waitq_insert() local 1602 if (ieee80211_is_nullfunc(fc)) rtl_pci_tx_chk_waitq_insert() 1604 if (ieee80211_is_qos_nullfunc(fc)) rtl_pci_tx_chk_waitq_insert() 1606 if (ieee80211_is_pspoll(fc)) rtl_pci_tx_chk_waitq_insert() 1641 __le16 fc = rtl_get_fc(skb); rtl_pci_tx() local 1650 if (ieee80211_is_mgmt(fc)) rtl_pci_tx() 1654 if (ieee80211_is_data(fc) && !ieee80211_is_nullfunc(fc) && rtl_pci_tx() 1655 !ieee80211_has_pm(fc)) rtl_pci_tx() 1708 if (ieee80211_is_data_qos(fc)) { rtl_pci_tx() 1721 if (ieee80211_is_data(fc)) rtl_pci_tx()
|
H A D | usb.h | 118 u16 (*usb_mq_to_hwq)(__le16 fc, u16 mac80211_queue_index);
|
H A D | base.c | 1104 __le16 fc = rtl_get_fc(skb); rtl_get_tcb_desc() local 1110 if (ieee80211_is_data(fc)) { rtl_get_tcb_desc() 1122 ieee80211_is_nullfunc(fc)) { rtl_get_tcb_desc() 1178 __le16 fc = rtl_get_fc(skb); rtl_tx_mgmt_proc() local 1182 (ieee80211_is_auth(fc) || ieee80211_is_probe_req(fc))) { rtl_tx_mgmt_proc() 1186 if (ieee80211_is_auth(fc)) { rtl_tx_mgmt_proc() 1233 __le16 fc = rtl_get_fc(skb); rtl_action_proc() local 1237 if (!ieee80211_is_action(fc)) rtl_action_proc() 1323 __le16 fc = rtl_get_fc(skb); rtl_is_special_data() local 1330 if (!ieee80211_is_data(fc)) rtl_is_special_data()
|
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/ |
H A D | mac.c | 656 * control setting, then the variable hw->fc will e1000_set_default_fc_generic() 667 hw->fc.requested_mode = e1000_fc_none; e1000_set_default_fc_generic() 669 hw->fc.requested_mode = e1000_fc_tx_pause; e1000_set_default_fc_generic() 671 hw->fc.requested_mode = e1000_fc_full; e1000_set_default_fc_generic() 699 if (hw->fc.requested_mode == e1000_fc_default) { e1000e_setup_link_generic() 708 hw->fc.current_mode = hw->fc.requested_mode; e1000e_setup_link_generic() 710 e_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); e1000e_setup_link_generic() 727 ew32(FCTTV, hw->fc.pause_time); e1000e_setup_link_generic() 752 * The possible values of the "fc" parameter are: e1000_commit_fc_settings_generic() 760 switch (hw->fc.current_mode) { e1000_commit_fc_settings_generic() 932 if (hw->fc.current_mode & e1000_fc_tx_pause) { e1000e_set_fc_watermarks() 937 fcrtl = hw->fc.low_water; e1000e_set_fc_watermarks() 938 if (hw->fc.send_xon) e1000e_set_fc_watermarks() 941 fcrth = hw->fc.high_water; e1000e_set_fc_watermarks() 971 * according to the "hw->fc.current_mode" parameter. e1000e_force_mac_fc() 973 * The possible values of the "fc" parameter are: e1000e_force_mac_fc() 982 e_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); e1000e_force_mac_fc() 984 switch (hw->fc.current_mode) { e1000e_force_mac_fc() 1029 * configuration of the MAC to match the "fc" parameter. e1000e_config_fc_after_link_up() 1121 if (hw->fc.requested_mode == e1000_fc_full) { e1000e_config_fc_after_link_up() 1122 hw->fc.current_mode = e1000_fc_full; e1000e_config_fc_after_link_up() 1125 hw->fc.current_mode = e1000_fc_rx_pause; e1000e_config_fc_after_link_up() 1140 hw->fc.current_mode = e1000_fc_tx_pause; e1000e_config_fc_after_link_up() 1154 hw->fc.current_mode = e1000_fc_rx_pause; e1000e_config_fc_after_link_up() 1160 hw->fc.current_mode = e1000_fc_none; e1000e_config_fc_after_link_up() 1175 hw->fc.current_mode = e1000_fc_none; e1000e_config_fc_after_link_up() 1254 if (hw->fc.requested_mode == e1000_fc_full) { e1000e_config_fc_after_link_up() 1255 hw->fc.current_mode = e1000_fc_full; e1000e_config_fc_after_link_up() 1258 hw->fc.current_mode = e1000_fc_rx_pause; e1000e_config_fc_after_link_up() 1273 hw->fc.current_mode = e1000_fc_tx_pause; e1000e_config_fc_after_link_up() 1287 hw->fc.current_mode = e1000_fc_rx_pause; e1000e_config_fc_after_link_up() 1293 hw->fc.current_mode = e1000_fc_none; e1000e_config_fc_after_link_up()
|
H A D | ethtool.c | 307 hw->fc.requested_mode = e1000_fc_default; e1000_set_settings() 351 if (hw->fc.current_mode == e1000_fc_rx_pause) { e1000_get_pauseparam() 353 } else if (hw->fc.current_mode == e1000_fc_tx_pause) { e1000_get_pauseparam() 355 } else if (hw->fc.current_mode == e1000_fc_full) { e1000_get_pauseparam() 376 hw->fc.requested_mode = e1000_fc_default; e1000_set_pauseparam() 385 hw->fc.requested_mode = e1000_fc_full; e1000_set_pauseparam() 387 hw->fc.requested_mode = e1000_fc_rx_pause; e1000_set_pauseparam() 389 hw->fc.requested_mode = e1000_fc_tx_pause; e1000_set_pauseparam() 391 hw->fc.requested_mode = e1000_fc_none; e1000_set_pauseparam() 393 hw->fc.current_mode = hw->fc.requested_mode; e1000_set_pauseparam()
|
/linux-4.1.27/drivers/scsi/libfc/ |
H A D | fc_elsct.c | 26 #include <scsi/fc/fc_gs.h> 27 #include <scsi/fc/fc_ns.h> 28 #include <scsi/fc/fc_els.h>
|
/linux-4.1.27/drivers/staging/vt6656/ |
H A D | dpc.c | 47 __le16 fc; vnt_rx_data() local 165 fc = hdr->frame_control; vnt_rx_data() 169 if (ieee80211_has_protected(fc)) { vnt_rx_data()
|
/linux-4.1.27/drivers/tty/serial/ |
H A D | sprd_serial.c | 318 unsigned int ien, fc; sprd_startup() local 349 fc = serial_in(port, SPRD_CTL1); sprd_startup() 350 fc |= RX_TOUT_THLD_DEF | RX_HFC_THLD_DEF; sprd_startup() 351 serial_out(port, SPRD_CTL1, fc); sprd_startup() 375 unsigned int lcr = 0, fc; sprd_set_termios() local 444 fc = serial_in(port, SPRD_CTL1); sprd_set_termios() 445 fc &= ~(RX_HW_FLOW_CTL_THLD | RX_HW_FLOW_CTL_EN | TX_HW_FLOW_CTL_EN); sprd_set_termios() 447 fc |= RX_HW_FLOW_CTL_THLD; sprd_set_termios() 448 fc |= RX_HW_FLOW_CTL_EN; sprd_set_termios() 449 fc |= TX_HW_FLOW_CTL_EN; sprd_set_termios() 458 fc |= RX_TOUT_THLD_DEF | RX_HFC_THLD_DEF; sprd_set_termios() 459 serial_out(port, SPRD_CTL1, fc); sprd_set_termios()
|
/linux-4.1.27/include/net/phonet/ |
H A D | pep.h | 159 #define pn_flow_safe(fc) ((fc) >> 1)
|
/linux-4.1.27/arch/powerpc/crypto/ |
H A D | aes-tab-4k.S | 80 .long R(40, 20, 20, 60), R(e3, fc, fc, 1f) 107 .long R(fc, 7e, 7e, 82), R(7a, 3d, 3d, 47) 164 .long R(7b, b0, b0, cb), R(a8, 54, 54, fc) 175 .long R(4f, e5, d7, fc), R(c5, 2a, cb, d7) 238 .long R(b6, ed, fc, 68), R(b8, e4, f1, 63) 247 .long R(a8, fc, 8c, c4), R(a0, f0, 3f, 1a) 269 .long R(74, 4e, bc, 37), R(fc, 82, ca, a6)
|
/linux-4.1.27/net/802/ |
H A D | fc.c | 89 dev->tx_queue_len = 100; /* Long queues on fc */ fc_setup() 108 return alloc_netdev(sizeof_priv, "fc%d", NET_NAME_UNKNOWN, fc_setup); alloc_fcdev()
|
H A D | fddi.c | 62 fddi->fc = FDDI_FC_K_ASYNC_LLC_DEF; fddi_header()
|
/linux-4.1.27/drivers/net/fddi/skfp/ |
H A D | hwmtm.c | 131 extern int mac_drv_rx_init(struct s_smc *smc, int len, int fc, char *look_ahead, 153 int hwm_tx_init(struct s_smc *smc, u_char fc, int frag_count, int frame_len, 1056 u_char fc ; /* Frame control */ process_receive() local 1287 fc = *(char *)mb->sm_data = *data ; process_receive() 1288 mb->sm_len = len - 1 ; /* len - fc */ process_receive() 1294 switch(fc) { process_receive() 1352 if ((fc & 0xf0) == FC_MAC) process_receive() 1382 u_char fc ; smt_to_llc() local 1387 fc = *smc->os.hwm.r.mb_pos ; smt_to_llc() 1388 (void)mac_drv_rx_init(smc,(int)mb->sm_len,(int)fc, smt_to_llc() 1528 * int hwm_tx_init(smc,fc,frag_count,frame_len,frame_status) 1534 * para fc the frame control. To determine through which 1550 int hwm_tx_init(struct s_smc *smc, u_char fc, int frag_count, int frame_len, hwm_tx_init() argument 1553 NDD_TRACE("THiB",fc,frag_count,frame_len) ; hwm_tx_init() 1557 DB_TX("hwm_tx_init: fc = %x, len = %d",fc,frame_len,3) ; hwm_tx_init() 1558 if ((fc & ~(FC_SYNC_BIT|FC_LLC_PRIOR)) == FC_ASYNC_LLC) { hwm_tx_init() 1562 switch (fc) { hwm_tx_init() 1806 void smt_send_mbuf(struct s_smc *smc, SMbuf *mb, int fc) smt_send_mbuf() argument 1821 NDD_TRACE("THSB",mb,fc,0) ; smt_send_mbuf() 1822 DB_TX("smt_send_mbuf: mb = 0x%x, fc = 0x%x",mb,fc,4) ; smt_send_mbuf() 1824 mb->sm_off-- ; /* set to fc */ smt_send_mbuf() 1825 mb->sm_len++ ; /* + fc */ smt_send_mbuf() 1827 *data = fc ; smt_send_mbuf() 1828 if (fc == FC_SMT_LOC) smt_send_mbuf() 1853 if (fc == FC_BEACON || fc == FC_SMT_LOC) { smt_send_mbuf() 1858 if ((smc->os.hwm.pass_NSA &&(fc == FC_SMT_NSA)) || smt_send_mbuf() 1859 (smc->os.hwm.pass_SMT &&(fc == FC_SMT_INFO))) smt_send_mbuf()
|
H A D | smt.c | 67 static void smt_send_rdf(struct s_smc *smc, SMbuf *rej, int fc, int reason, 70 int fc, u_long tid, int type, int local); 71 static void smt_send_ecf(struct s_smc *smc, struct fddi_addr *dest, int fc, 833 void smt_send_frame(struct s_smc *smc, SMbuf *mb, int fc, int local) smt_send_frame() argument 835 /* int fc; FC value */ smt_send_frame() 850 smt_send_mbuf(smc,mb,local ? FC_SMT_LOC : fc) ; smt_send_frame() 856 static void smt_send_rdf(struct s_smc *smc, SMbuf *rej, int fc, int reason, smt_send_rdf() argument 859 /* int fc; FC of denied frame */ smt_send_rdf() 914 rdf->refused.ref_fc = fc ; smt_send_rdf() 934 int fc, u_long tid, int type, int local) smt_send_nif() 936 /* int fc; frame control */ smt_send_nif() 955 smt_send_frame(smc,mb,fc,local) ; smt_send_nif() 999 static void smt_send_ecf(struct s_smc *smc, struct fddi_addr *dest, int fc, smt_send_ecf() argument 1002 /* int fc; frame control */ smt_send_ecf() 1018 smt_send_frame(smc,mb,fc,0) ; smt_send_ecf() 933 smt_send_nif(struct s_smc *smc, const struct fddi_addr *dest, int fc, u_long tid, int type, int local) smt_send_nif() argument
|
H A D | skfddi.c | 134 int mac_drv_rx_init(struct s_smc *smc, int len, int fc, char *look_ahead, 143 extern int hwm_tx_init(struct s_smc *smc, u_char fc, int frag_count, 1108 unsigned char fc; send_queued_packets() local 1127 fc = skb->data[0]; send_queued_packets() 1128 queue = (fc & FC_SYNC_BIT) ? QUEUE_S : QUEUE_A0; send_queued_packets() 1132 if ((fc & ~(FC_SYNC_BIT | FC_LLC_PRIOR)) == FC_ASYNC_LLC) { send_queued_packets() 1135 fc &= ~FC_SYNC_BIT; // No bandwidth available. send_queued_packets() 1141 fc |= FC_SYNC_BIT; send_queued_packets() 1146 frame_status = hwm_tx_init(smc, fc, 1, skb->len, queue); send_queued_packets() 1883 * fc - The Frame Control field of the received frame. 1893 int mac_drv_rx_init(struct s_smc *smc, int len, int fc, mac_drv_rx_init() argument
|
/linux-4.1.27/drivers/isdn/pcbit/ |
H A D | callbacks.h | 6 * Written by Pedro Roque Marques (roque@di.fc.ul.pt)
|
H A D | edss1.h | 6 * Written by Pedro Roque Marques (roque@di.fc.ul.pt)
|
H A D | module.c | 6 * Written by Pedro Roque Marques (roque@di.fc.ul.pt)
|
H A D | capi.h | 6 * Written by Pedro Roque Marques (roque@di.fc.ul.pt)
|
H A D | pcbit.h | 6 * Written by Pedro Roque Marques (roque@di.fc.ul.pt)
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | wl12xx_80211.h | 113 __le16 fc; member in struct:wl12xx_ps_poll_template
|
/linux-4.1.27/include/uapi/linux/ |
H A D | ipv6_route.h | 5 * Pedro Roque <roque@di.fc.ul.pt>
|
H A D | if_hippi.h | 111 __u8 fc:3; member in struct:hippi_le_hdr 117 __u8 fc:3;
|
H A D | if_fddi.h | 95 __u8 fc; /* frame control */ member in struct:fddihdr
|
H A D | in6.h | 6 * Pedro Roque <roque@di.fc.ul.pt>
|
H A D | mroute.h | 14 * Carlos Picoto (cap@di.fc.ul.pt)
|
H A D | mroute6.h | 14 * Carlos Picoto (cap@di.fc.ul.pt)
|
/linux-4.1.27/net/ipv6/ |
H A D | protocol.c | 8 * Authors: Pedro Roque <roque@di.fc.ul.pt>
|
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_ethtool.c | 386 if (hw->mac.fc == PCH_GBE_FC_RX_PAUSE) { pch_gbe_get_pauseparam() 388 } else if (hw->mac.fc == PCH_GBE_FC_TX_PAUSE) { pch_gbe_get_pauseparam() 390 } else if (hw->mac.fc == PCH_GBE_FC_FULL) { pch_gbe_get_pauseparam() 413 hw->mac.fc = PCH_GBE_FC_FULL; pch_gbe_set_pauseparam() 415 hw->mac.fc = PCH_GBE_FC_RX_PAUSE; pch_gbe_set_pauseparam() 417 hw->mac.fc = PCH_GBE_FC_TX_PAUSE; pch_gbe_set_pauseparam() 419 hw->mac.fc = PCH_GBE_FC_NONE; pch_gbe_set_pauseparam()
|
/linux-4.1.27/drivers/staging/rtl8712/ |
H A D | ieee80211.h | 293 #define WLAN_FC_GET_TYPE(fc) ((fc) & IEEE80211_FCTL_FTYPE) 294 #define WLAN_FC_GET_STYPE(fc) ((fc) & IEEE80211_FCTL_STYPE) 751 static inline int ieee80211_get_hdrlen(u16 fc) ieee80211_get_hdrlen() argument 755 switch (WLAN_FC_GET_TYPE(fc)) { ieee80211_get_hdrlen() 757 if (fc & IEEE80211_QOS_DATAGRP) ieee80211_get_hdrlen() 759 if ((fc & IEEE80211_FCTL_FROMDS) && (fc & IEEE80211_FCTL_TODS)) ieee80211_get_hdrlen() 763 switch (WLAN_FC_GET_STYPE(fc)) { ieee80211_get_hdrlen()
|
/linux-4.1.27/net/wireless/ |
H A D | util.c | 340 unsigned int __attribute_const__ ieee80211_hdrlen(__le16 fc) ieee80211_hdrlen() argument 344 if (ieee80211_is_data(fc)) { ieee80211_hdrlen() 345 if (ieee80211_has_a4(fc)) ieee80211_hdrlen() 347 if (ieee80211_is_data_qos(fc)) { ieee80211_hdrlen() 349 if (ieee80211_has_order(fc)) ieee80211_hdrlen() 355 if (ieee80211_is_mgmt(fc)) { ieee80211_hdrlen() 356 if (ieee80211_has_order(fc)) ieee80211_hdrlen() 361 if (ieee80211_is_ctl(fc)) { ieee80211_hdrlen() 371 if ((fc & cpu_to_le16(0x00E0)) == cpu_to_le16(0x00C0)) ieee80211_hdrlen() 536 __le16 fc; ieee80211_data_from_8023() local 551 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); ieee80211_data_from_8023() 557 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); ieee80211_data_from_8023() 566 fc |= cpu_to_le16(IEEE80211_FCTL_TODS); ieee80211_data_from_8023() 586 fc |= cpu_to_le16(IEEE80211_STYPE_QOS_DATA); ieee80211_data_from_8023() 590 hdr.frame_control = fc; ieee80211_data_from_8023()
|
/linux-4.1.27/drivers/scsi/bfa/ |
H A D | bfad_attr.c | 291 hstats->seconds_since_last_reset = fcstats->fc.secs_reset; bfad_im_get_stats() 292 hstats->tx_frames = fcstats->fc.tx_frames; bfad_im_get_stats() 293 hstats->tx_words = fcstats->fc.tx_words; bfad_im_get_stats() 294 hstats->rx_frames = fcstats->fc.rx_frames; bfad_im_get_stats() 295 hstats->rx_words = fcstats->fc.rx_words; bfad_im_get_stats() 296 hstats->lip_count = fcstats->fc.lip_count; bfad_im_get_stats() 297 hstats->nos_count = fcstats->fc.nos_count; bfad_im_get_stats() 298 hstats->error_frames = fcstats->fc.error_frames; bfad_im_get_stats() 299 hstats->dumped_frames = fcstats->fc.dropped_frames; bfad_im_get_stats() 300 hstats->link_failure_count = fcstats->fc.link_failures; bfad_im_get_stats() 301 hstats->loss_of_sync_count = fcstats->fc.loss_of_syncs; bfad_im_get_stats() 302 hstats->loss_of_signal_count = fcstats->fc.loss_of_signals; bfad_im_get_stats() 303 hstats->prim_seq_protocol_err_count = fcstats->fc.primseq_errs; bfad_im_get_stats() 304 hstats->invalid_crc_count = fcstats->fc.invalid_crcs; bfad_im_get_stats()
|
H A D | bfa_modules.h | 33 struct bfa_fcport_s fcport; /* fc port module */
|
H A D | bfa_plog.h | 50 u16 misc; /* can be used to indicate fc frame length */
|
/linux-4.1.27/drivers/s390/cio/ |
H A D | qdio_main.c | 34 unsigned int fc) do_siga_sync() 36 register unsigned long __fc asm ("0") = fc; do_siga_sync() 52 unsigned int fc) do_siga_input() 54 register unsigned long __fc asm ("0") = fc; do_siga_input() 73 * @fc: function code to perform 79 unsigned int *bb, unsigned int fc, do_siga_output() 82 register unsigned long __fc asm("0") = fc; do_siga_output() 288 unsigned int fc = QDIO_SIGA_SYNC; qdio_siga_sync() local 296 fc |= QDIO_SIGA_QEBSM_FLAG; qdio_siga_sync() 299 cc = do_siga_sync(schid, output, input, fc); qdio_siga_sync() 317 unsigned int fc = QDIO_SIGA_WRITE; qdio_siga_output() local 323 fc = QDIO_SIGA_WRITEQ; qdio_siga_output() 329 fc |= QDIO_SIGA_QEBSM_FLAG; qdio_siga_output() 333 (aob && fc != QDIO_SIGA_WRITEQ)); qdio_siga_output() 334 cc = do_siga_output(schid, q->mask, busy_bit, fc, laob); qdio_siga_output() 358 unsigned int fc = QDIO_SIGA_READ; qdio_siga_input() local 366 fc |= QDIO_SIGA_QEBSM_FLAG; qdio_siga_input() 369 cc = do_siga_input(schid, q->mask, fc); qdio_siga_input() 32 do_siga_sync(unsigned long schid, unsigned int out_mask, unsigned int in_mask, unsigned int fc) do_siga_sync() argument 51 do_siga_input(unsigned long schid, unsigned int mask, unsigned int fc) do_siga_input() argument 78 do_siga_output(unsigned long schid, unsigned long mask, unsigned int *bb, unsigned int fc, unsigned long aob) do_siga_output() argument
|
H A D | css.h | 50 __u8 fc; /* SPID function code */ member in union:pgid::__anon8449
|
/linux-4.1.27/arch/x86/platform/uv/ |
H A D | bios_uv.c | 86 s64 uv_bios_get_sn_info(int fc, int *uvtype, long *partid, long *coher, uv_bios_get_sn_info() argument 93 ret = uv_bios_call_irqsave(UV_BIOS_GET_SN_INFO, fc, uv_bios_get_sn_info()
|
/linux-4.1.27/drivers/clk/mmp/ |
H A D | clk.h | 226 #define DEFINE_MIX_REG_INFO(w_d, s_d, w_m, s_m, fc) \ 232 .bit_fc = (fc), \
|
/linux-4.1.27/drivers/scsi/fnic/ |
H A D | fnic_io.h | 21 #include <scsi/fc/fc_fcp.h>
|
/linux-4.1.27/kernel/ |
H A D | configs.c | 7 * Copyright (C) 2002 Al Stone <ahs3@fc.hp.com>
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | topology.c | 215 static int ptf(unsigned long fc) ptf() argument 224 : "d" (fc) : "cc"); ptf() 228 int topology_set_cpu_management(int fc) topology_set_cpu_management() argument 234 if (fc) topology_set_cpu_management()
|
H A D | sysinfo.c | 33 int stsi(void *sysinfo, int fc, int sel1, int sel2) stsi() argument 35 register int r0 asm("0") = (fc << 28) | sel1; stsi() 50 return fc ? 0 : ((unsigned int) r0) >> 28; stsi()
|
/linux-4.1.27/arch/alpha/math-emu/ |
H A D | math.c | 104 unsigned long fa, fb, fc, func, mode, src; alpha_fp_emul() local 110 fc = (insn >> 0) & 0x1f; /* destination register */ alpha_fp_emul() 274 alpha_write_fp_reg_s(fc, vc); alpha_fp_emul() 282 alpha_write_fp_reg(fc, vc); alpha_fp_emul()
|
/linux-4.1.27/drivers/net/dsa/ |
H A D | mv88e6060.c | 238 int fc; mv88e6060_poll_link() local 263 fc = ((port_status & 0xc000) == 0xc000) ? 1 : 0; mv88e6060_poll_link() 270 fc ? "en" : "dis"); mv88e6060_poll_link()
|
/linux-4.1.27/drivers/s390/scsi/ |
H A D | zfcp_fc.h | 13 #include <scsi/fc/fc_els.h> 14 #include <scsi/fc/fc_fcp.h> 15 #include <scsi/fc/fc_ns.h>
|
H A D | zfcp_def.h | 25 #include <scsi/fc/fc_fs.h> 26 #include <scsi/fc/fc_gs.h> 200 struct fc_rport *rport; /* rport of fc transport class */
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | tda665x.c | 147 buf[3] |= 0x01; /* fc, Low Band, 47 - 153 MHz */ tda665x_set_state() 158 buf[3] |= 0x02; /* fc, Mid Band, 153 - 438 MHz */ tda665x_set_state() 167 buf[3] |= 0x04; /* fc, High Band, 438 - 862 MHz */ tda665x_set_state()
|
/linux-4.1.27/include/scsi/ |
H A D | fc_frame.h | 27 #include <scsi/fc/fc_fs.h> 28 #include <scsi/fc/fc_fcp.h> 29 #include <scsi/fc/fc_encaps.h>
|
H A D | fcoe_sysfs.h | 25 #include <scsi/fc/fc_fcoe.h>
|
H A D | libfc.h | 31 #include <scsi/fc/fc_fcp.h> 32 #include <scsi/fc/fc_ns.h> 33 #include <scsi/fc/fc_ms.h> 34 #include <scsi/fc/fc_els.h> 35 #include <scsi/fc/fc_gs.h> 227 * struct fc_stats - fc stats structure
|
/linux-4.1.27/arch/ia64/include/asm/native/ |
H A D | pvchk_inst.h | 34 /* "fc" and "thash" are privilege-sensitive instructions, meaning they 40 #define fc .error "fc should not be used directly." macro
|
/linux-4.1.27/drivers/bcma/ |
H A D | driver_chipcommon_pmu.c | 341 u32 tmp, div, ndiv, p1, p2, fc; bcma_pmu_pll_clock() local 368 fc = bcma_pmu_get_alp_clock(cc) / 1000000; bcma_pmu_pll_clock() 369 fc = (p1 * ndiv * fc) / p2; bcma_pmu_pll_clock() 372 return (fc / div) * 1000000; bcma_pmu_pll_clock()
|
/linux-4.1.27/sound/aoa/soundbus/i2sbus/ |
H A D | pcm.c | 623 u32 fc; i2sbus_pcm_pointer() local 627 fc = in_le32(&i2sdev->intfregs->frame_count); i2sbus_pcm_pointer() 628 fc = fc - pi->frame_count; i2sbus_pcm_pointer() 630 if (fc >= pi->substream->runtime->buffer_size) i2sbus_pcm_pointer() 631 fc %= pi->substream->runtime->buffer_size; i2sbus_pcm_pointer() 632 return fc; i2sbus_pcm_pointer() 638 u32 fc, nframes; handle_interrupt() local 671 fc = in_le32(&i2sdev->intfregs->frame_count); handle_interrupt() 673 if (fc < pi->frame_count + nframes) handle_interrupt() 674 pi->frame_count = fc - nframes; handle_interrupt()
|
/linux-4.1.27/drivers/net/wireless/ath/carl9170/ |
H A D | debug.c | 303 int cnt = 0, fc; carl9170_debugfs_ampdu_state_read() local 335 fc = 0; carl9170_debugfs_ampdu_state_read() 339 snprintf(prefix, sizeof(prefix), "\t\t%3d :", fc); carl9170_debugfs_ampdu_state_read() 343 fc++; carl9170_debugfs_ampdu_state_read() 359 int fc = 0; carl9170_debugfs_queue_dump() local 363 snprintf(prefix, sizeof(prefix), "%3d :", fc); skb_queue_walk() 366 fc++; skb_queue_walk()
|
H A D | rx.c | 623 __le16 fc; carl9170_ampdu_check() local 645 fc = ((struct ieee80211_hdr *)buf)->frame_control; carl9170_ampdu_check() 646 if (ieee80211_is_data_qos(fc) && ieee80211_is_data_present(fc)) carl9170_ampdu_check() 649 if (ieee80211_is_ack(fc) || ieee80211_is_back(fc) || carl9170_ampdu_check() 650 ieee80211_is_back_req(fc)) carl9170_ampdu_check() 653 if (ieee80211_is_action(fc)) carl9170_ampdu_check()
|
/linux-4.1.27/fs/ceph/ |
H A D | caps.c | 989 struct ceph_mds_caps *fc; send_cap_msg() local 1004 msg = ceph_msg_new(CEPH_MSG_CLIENT_CAPS, sizeof(*fc) + extra_len, send_cap_msg() 1011 fc = msg->front.iov_base; send_cap_msg() 1012 memset(fc, 0, sizeof(*fc)); send_cap_msg() 1014 fc->cap_id = cpu_to_le64(cid); send_cap_msg() 1015 fc->op = cpu_to_le32(op); send_cap_msg() 1016 fc->seq = cpu_to_le32(seq); send_cap_msg() 1017 fc->issue_seq = cpu_to_le32(issue_seq); send_cap_msg() 1018 fc->migrate_seq = cpu_to_le32(mseq); send_cap_msg() 1019 fc->caps = cpu_to_le32(caps); send_cap_msg() 1020 fc->wanted = cpu_to_le32(wanted); send_cap_msg() 1021 fc->dirty = cpu_to_le32(dirty); send_cap_msg() 1022 fc->ino = cpu_to_le64(ino); send_cap_msg() 1023 fc->snap_follows = cpu_to_le64(follows); send_cap_msg() 1025 fc->size = cpu_to_le64(size); send_cap_msg() 1026 fc->max_size = cpu_to_le64(max_size); send_cap_msg() 1028 ceph_encode_timespec(&fc->mtime, mtime); send_cap_msg() 1030 ceph_encode_timespec(&fc->atime, atime); send_cap_msg() 1031 fc->time_warp_seq = cpu_to_le32(time_warp_seq); send_cap_msg() 1033 fc->uid = cpu_to_le32(from_kuid(&init_user_ns, uid)); send_cap_msg() 1034 fc->gid = cpu_to_le32(from_kgid(&init_user_ns, gid)); send_cap_msg() 1035 fc->mode = cpu_to_le32(mode); send_cap_msg() 1037 p = fc + 1; send_cap_msg() 1045 fc->xattr_version = cpu_to_le64(xattr_version); send_cap_msg() 1048 fc->xattr_len = cpu_to_le32(xattrs_buf->vec.iov_len); send_cap_msg()
|
/linux-4.1.27/drivers/scsi/ |
H A D | mesh.c | 311 printk(KERN_DEBUG " ct=%4x seq=%2x bs=%4x fc=%2x " mesh_dump_regs() 444 dlog(ms, "about to arb, intr/exc/err/fc=%.8x", mesh_start_cmd() 456 dlog(ms, "busy b4 arb, intr/exc/err/fc=%.8x", mesh_start_cmd() 463 dlog(ms, "intr b4 arb, intr/exc/err/fc=%.8x", mesh_start_cmd() 501 dlog(ms, "intr after disresel, intr/exc/err/fc=%.8x", mesh_start_cmd() 507 dlog(ms, "after intr after disresel, intr/exc/err/fc=%.8x", mesh_start_cmd() 519 dlog(ms, "after arb, intr/exc/err/fc=%.8x", mesh_start_cmd() 524 dlog(ms, "resel? after arb, intr/exc/err/fc=%.8x", mesh_start_cmd() 535 dlog(ms, "tried reset after arb, intr/exc/err/fc=%.8x", mesh_start_cmd() 686 dlog(ms, "start_phase nmo/exc/fc/seq = %.8x", start_phase() 810 dlog(ms, "enbresel intr/exc/err/fc=%.8x", start_phase() 912 dlog(ms, "extra resel err/exc/fc = %.6x", reselected() 1038 dlog(ms, "error err/exc/fc/cl=%.8x", handle_error() 1336 dlog(ms, "halt_dma fc/count=%.6x", halt_dma() 1368 dlog(ms, "phasemm ch/cl/seq/fc=%.8x", phase_mismatch() 1449 dlog(ms, "cmd_complete fc=%x", mr->fifo_count); cmd_complete() 1497 dlog(ms, "last_mbyte err/exc/fc/cl=%.8x", cmd_complete()
|
/linux-4.1.27/sound/soc/codecs/ |
H A D | ab8500-codec.c | 1280 struct filter_control *fc = filter_control_info() local 1284 uinfo->count = fc->count; filter_control_info() 1285 uinfo->value.integer.min = fc->min; filter_control_info() 1286 uinfo->value.integer.max = fc->max; filter_control_info() 1296 struct filter_control *fc = filter_control_get() local 1301 for (i = 0; i < fc->count; i++) filter_control_get() 1302 ucontrol->value.integer.value[i] = fc->value[i]; filter_control_get() 1313 struct filter_control *fc = filter_control_put() local 1318 for (i = 0; i < fc->count; i++) filter_control_put() 1319 fc->value[i] = ucontrol->value.integer.value[i]; filter_control_put() 2468 struct filter_control *fc; ab8500_codec_probe() local 2534 fc = (struct filter_control *) ab8500_codec_probe() 2536 drvdata->anc_fir_values = (long *)fc->value; ab8500_codec_probe() 2537 fc = (struct filter_control *) ab8500_codec_probe() 2539 drvdata->anc_iir_values = (long *)fc->value; ab8500_codec_probe() 2540 fc = (struct filter_control *) ab8500_codec_probe() 2542 drvdata->sid_fir_values = (long *)fc->value; ab8500_codec_probe()
|
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac1000_core.c | 201 unsigned int fc, unsigned int pause_time) dwmac1000_flow_ctrl() 210 if (fc & FLOW_RX) { dwmac1000_flow_ctrl() 214 if (fc & FLOW_TX) { dwmac1000_flow_ctrl() 200 dwmac1000_flow_ctrl(struct mac_device_info *hw, unsigned int duplex, unsigned int fc, unsigned int pause_time) dwmac1000_flow_ctrl() argument
|
H A D | dwmac100_core.c | 148 unsigned int fc, unsigned int pause_time) dwmac100_flow_ctrl() 147 dwmac100_flow_ctrl(struct mac_device_info *hw, unsigned int duplex, unsigned int fc, unsigned int pause_time) dwmac100_flow_ctrl() argument
|
/linux-4.1.27/include/net/ |
H A D | ieee802154_netdev.h | 90 struct ieee802154_hdr_fc fc; member in struct:ieee802154_hdr 97 /* pushes hdr onto the skb. fields of hdr->fc that can be calculated from 99 * hdr->fc will be ignored. this includes the INTRA_PAN bit and the frame
|
H A D | if_inet6.h | 6 * Pedro Roque <roque@di.fc.ul.pt>
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_fcoe.c | 37 #include <scsi/fc/fc_fs.h>
|
/linux-4.1.27/drivers/scsi/bnx2fc/ |
H A D | bnx2fc.h | 56 #include <scsi/fc/fc_fip.h> 57 #include <scsi/fc/fc_fc2.h> 59 #include <scsi/fc/fc_fcoe.h> 60 #include <scsi/fc/fc_fcp.h>
|
/linux-4.1.27/drivers/staging/rtl8188eu/core/ |
H A D | rtw_ieee80211.c | 1156 int ieee80211_get_hdrlen(u16 fc) ieee80211_get_hdrlen() argument 1160 switch (WLAN_FC_GET_TYPE(fc)) { ieee80211_get_hdrlen() 1162 if (fc & RTW_IEEE80211_STYPE_QOS_DATA) ieee80211_get_hdrlen() 1164 if ((fc & RTW_IEEE80211_FCTL_FROMDS) && (fc & RTW_IEEE80211_FCTL_TODS)) ieee80211_get_hdrlen() 1168 switch (WLAN_FC_GET_STYPE(fc)) { ieee80211_get_hdrlen() 1345 u16 fc; rtw_action_frame_parse() local 1348 fc = le16_to_cpu(((struct rtw_ieee80211_hdr_3addr *)frame)->frame_ctl); rtw_action_frame_parse() 1350 if ((fc & (RTW_IEEE80211_FCTL_FTYPE|RTW_IEEE80211_FCTL_STYPE)) != rtw_action_frame_parse()
|
/linux-4.1.27/include/scsi/fc/ |
H A D | fc_fcoe.h | 96 * @did: fc dest id to use
|
H A D | fc_fip.h | 20 #include <scsi/fc/fc_ns.h> 24 * http://www.t11.org/ftp/t11/pub/fc/bb-5/08-543v1.pdf
|
/linux-4.1.27/drivers/media/usb/as102/ |
H A D | as102_drv.c | 252 "demod status: fc: 0x%08x, bad fc: 0x%08x, bytes corrected: 0x%08x , MER: 0x%04x\n", as102_get_stats()
|
/linux-4.1.27/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_param.c | 373 unsigned int fc = FlowControl[bd]; e1000_check_options() local 374 e1000_validate_option(&fc, &opt, adapter); e1000_check_options() 375 adapter->hw.fc = adapter->hw.original_fc = fc; e1000_check_options() 377 adapter->hw.fc = adapter->hw.original_fc = opt.def; e1000_check_options()
|
H A D | e1000_ethtool.c | 277 if (hw->fc == E1000_FC_RX_PAUSE) { e1000_get_pauseparam() 279 } else if (hw->fc == E1000_FC_TX_PAUSE) { e1000_get_pauseparam() 281 } else if (hw->fc == E1000_FC_FULL) { e1000_get_pauseparam() 300 hw->fc = E1000_FC_FULL; e1000_set_pauseparam() 302 hw->fc = E1000_FC_RX_PAUSE; e1000_set_pauseparam() 304 hw->fc = E1000_FC_TX_PAUSE; e1000_set_pauseparam() 306 hw->fc = E1000_FC_NONE; e1000_set_pauseparam() 308 hw->original_fc = hw->fc; e1000_set_pauseparam()
|
H A D | e1000_hw.c | 724 * control setting, then the variable hw->fc will e1000_setup_link() 727 if (hw->fc == E1000_FC_DEFAULT) { e1000_setup_link() 735 hw->fc = E1000_FC_NONE; e1000_setup_link() 738 hw->fc = E1000_FC_TX_PAUSE; e1000_setup_link() 740 hw->fc = E1000_FC_FULL; e1000_setup_link() 748 hw->fc &= (~E1000_FC_TX_PAUSE); e1000_setup_link() 751 hw->fc &= (~E1000_FC_RX_PAUSE); e1000_setup_link() 753 hw->original_fc = hw->fc; e1000_setup_link() 755 e_dbg("After fix-ups FlowControl is now = %x\n", hw->fc); e1000_setup_link() 799 if (!(hw->fc & E1000_FC_TX_PAUSE)) { e1000_setup_link() 867 * The possible values of the "fc" parameter are: e1000_setup_fiber_serdes_link() 875 switch (hw->fc) { e1000_setup_fiber_serdes_link() 1539 /* Need to parse both autoneg_advertised and fc and set up e1000_phy_setup_autoneg() 1598 * The possible values of the "fc" parameter are: e1000_phy_setup_autoneg() 1608 switch (hw->fc) { e1000_phy_setup_autoneg() 1679 hw->fc = E1000_FC_NONE; e1000_phy_force_speed_duplex() 1681 e_dbg("hw->fc = %d\n", hw->fc); e1000_phy_force_speed_duplex() 2023 * according to the "hw->fc" parameter. e1000_force_mac_fc() 2025 * The possible values of the "fc" parameter are: e1000_force_mac_fc() 2035 switch (hw->fc) { e1000_force_mac_fc() 2085 * configuration of the MAC to match the "fc" parameter. e1000_config_fc_after_link_up() 2177 hw->fc = E1000_FC_FULL; e1000_config_fc_after_link_up() 2180 hw->fc = E1000_FC_RX_PAUSE; e1000_config_fc_after_link_up() 2198 hw->fc = E1000_FC_TX_PAUSE; e1000_config_fc_after_link_up() 2215 hw->fc = E1000_FC_RX_PAUSE; e1000_config_fc_after_link_up() 2244 hw->fc = E1000_FC_NONE; e1000_config_fc_after_link_up() 2247 hw->fc = E1000_FC_RX_PAUSE; e1000_config_fc_after_link_up() 2265 hw->fc = E1000_FC_NONE; e1000_config_fc_after_link_up()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | sb1250-mac.c | 308 enum sbmac_fc fc); 1885 * SBMAC_SET_DUPLEX(s,duplex,fc) 1893 * fc - flow control setting (see enum sbmac_fc) 1901 enum sbmac_fc fc) sbmac_set_duplex() 1910 s->sbm_fc = fc; sbmac_set_duplex() 1930 switch (fc) { sbmac_set_duplex() 1950 switch (fc) { sbmac_set_duplex() 2417 enum sbmac_fc fc; sbmac_mii_poll() local 2442 fc = sbmac_fc_frame; sbmac_mii_poll() 2444 fc = sbmac_fc_disabled; sbmac_mii_poll() 2446 fc = sbmac_fc_collision; sbmac_mii_poll() 2447 fc_chg = (sc->sbm_fc != fc); sbmac_mii_poll() 2456 sc->sbm_fc = fc; sbmac_mii_poll() 1900 sbmac_set_duplex(struct sbmac_softc *s, enum sbmac_duplex duplex, enum sbmac_fc fc) sbmac_set_duplex() argument
|
/linux-4.1.27/lib/zlib_deflate/ |
H A D | defutil.h | 44 } fc; member in struct:ct_data_s 51 #define Freq fc.freq 52 #define Code fc.code
|
/linux-4.1.27/drivers/hwmon/ |
H A D | ltc4151.c | 13 * Datasheet: http://www.linear.com/docs/Datasheet/4151fc.pdf
|
/linux-4.1.27/drivers/media/v4l2-core/ |
H A D | videobuf-core.c | 853 unsigned int *fc = CALLPTR(q, vaddr, buf); __videobuf_copy_stream() local 860 fc += (buf->size >> 2) - 1; __videobuf_copy_stream() 861 *fc = buf->field_count >> 1; __videobuf_copy_stream() 862 dprintk(1, "vbihack: %d\n", *fc); __videobuf_copy_stream()
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
H A D | mcdi_port.c | 316 link_state->fc = EFX_FC_AUTO | EFX_FC_TX | EFX_FC_RX; efx_mcdi_phy_decode_link() 319 link_state->fc = EFX_FC_TX | EFX_FC_RX; efx_mcdi_phy_decode_link() 322 link_state->fc = EFX_FC_RX; efx_mcdi_phy_decode_link() 327 link_state->fc = 0; efx_mcdi_phy_decode_link()
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_nl.h | 54 * The payload sent via the fc transport is one-way driver->application.
|
/linux-4.1.27/drivers/scsi/megaraid/ |
H A D | mbox_defs.h | 383 * @fcloop_id0 : loopid on fc loop 0 384 * @fcloop_id1 : loopid on fc loop 1 386 * @fcloop_state0 : state of fc loop 0 387 * @fcloop_state1 : state of fc loop 1
|
/linux-4.1.27/drivers/scsi/csiostor/ |
H A D | csio_attr.c | 43 #include <scsi/fc/fc_fs.h> 361 * @rport: fc rport. 383 /* Set fc vport state based on phyiscal lnode */ csio_vport_set_state() 395 /* Set fc vport state based on virtual lnode */ csio_vport_set_state()
|
/linux-4.1.27/arch/ia64/hp/sim/boot/ |
H A D | boot_head.S | 101 .loop: fc r8
|
/linux-4.1.27/net/atm/ |
H A D | lec.h | 26 unsigned char fc; member in struct:lecdatahdr_8025
|
/linux-4.1.27/drivers/net/wireless/orinoco/ |
H A D | main.c | 750 u16 fc; orinoco_rx_monitor() local 761 fc = le16_to_cpu(desc->frame_ctl); orinoco_rx_monitor() 762 switch (fc & IEEE80211_FCTL_FTYPE) { orinoco_rx_monitor() 764 if ((fc & IEEE80211_FCTL_TODS) orinoco_rx_monitor() 765 && (fc & IEEE80211_FCTL_FROMDS)) orinoco_rx_monitor() 776 switch (fc & IEEE80211_FCTL_STYPE) { orinoco_rx_monitor() 966 u16 status, fc; orinoco_rx() local 972 fc = le16_to_cpu(desc->frame_ctl); orinoco_rx() 981 u8 *src = (fc & IEEE80211_FCTL_FROMDS) ? orinoco_rx() 1055 if (fc & IEEE80211_FCTL_FROMDS) orinoco_rx() 1062 if (fc & IEEE80211_FCTL_TODS) orinoco_rx()
|
/linux-4.1.27/include/uapi/scsi/ |
H A D | scsi_bsg_fc.h | 43 #define FC_BSG_HST_MASK 0x80000000 /* fc host class */ 44 #define FC_BSG_RPT_MASK 0x40000000 /* fc rport class */
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | paravirt_privop.h | 36 void (*fc)(void *addr); member in struct:pv_cpu_ops 400 PARAVIRT_DEFINE_CPU_OP1_VOID(fc, FC);
|