Home
last modified time | relevance | path

Searched refs:ifs (Results 1 – 25 of 105) sorted by relevance

12345

/openbmc/linux/fs/iomap/
H A Dbuffered-io.c81 if (ifs) in iomap_set_range_uptodate()
115 if (ifs) in iomap_clear_range_dirty()
138 if (ifs) in iomap_set_range_dirty()
163 ifs = kzalloc(struct_size(ifs, state, in ifs_alloc()
165 if (!ifs) in ifs_alloc()
175 return ifs; in ifs_alloc()
182 if (!ifs) in ifs_free()
213 if (ifs) { in iomap_adjust_read_range()
362 if (ifs) in iomap_readpage_iter()
521 if (!ifs) in iomap_is_partially_uptodate()
[all …]
/openbmc/linux/drivers/net/wan/
H A Dhdlc_raw.c22 static int raw_ioctl(struct net_device *dev, struct if_settings *ifs);
36 static int raw_ioctl(struct net_device *dev, struct if_settings *ifs) in raw_ioctl() argument
38 raw_hdlc_proto __user *raw_s = ifs->ifs_ifsu.raw_hdlc; in raw_ioctl()
44 switch (ifs->type) { in raw_ioctl()
48 ifs->type = IF_PROTO_HDLC; in raw_ioctl()
49 if (ifs->size < size) { in raw_ioctl()
50 ifs->size = size; /* data size wanted */ in raw_ioctl()
H A Dhdlc_raw_eth.c23 static int raw_eth_ioctl(struct net_device *dev, struct if_settings *ifs);
51 static int raw_eth_ioctl(struct net_device *dev, struct if_settings *ifs) in raw_eth_ioctl() argument
53 raw_hdlc_proto __user *raw_s = ifs->ifs_ifsu.raw_hdlc; in raw_eth_ioctl()
60 switch (ifs->type) { in raw_eth_ioctl()
64 ifs->type = IF_PROTO_HDLC_ETH; in raw_eth_ioctl()
65 if (ifs->size < size) { in raw_eth_ioctl()
66 ifs->size = size; /* data size wanted */ in raw_eth_ioctl()
H A Dpc300too.c193 sync_serial_settings __user *line = ifs->ifs_ifsu.sync; in pc300_ioctl()
197 if (ifs->type == IF_GET_IFACE) { in pc300_ioctl()
198 ifs->type = port->iface; in pc300_ioctl()
199 if (ifs->size < size) { in pc300_ioctl()
200 ifs->size = size; /* data size wanted */ in pc300_ioctl()
209 (ifs->type == IF_IFACE_SYNC_SERIAL || in pc300_ioctl()
210 ifs->type == IF_IFACE_X21)) in pc300_ioctl()
214 (ifs->type == IF_IFACE_SYNC_SERIAL || in pc300_ioctl()
215 ifs->type == IF_IFACE_V35)) in pc300_ioctl()
219 ifs->type == IF_IFACE_V24) in pc300_ioctl()
[all …]
H A Dhdlc_x25.c32 static int x25_ioctl(struct net_device *dev, struct if_settings *ifs);
277 static int x25_ioctl(struct net_device *dev, struct if_settings *ifs) in x25_ioctl() argument
279 x25_hdlc_proto __user *x25_s = ifs->ifs_ifsu.x25; in x25_ioctl()
285 switch (ifs->type) { in x25_ioctl()
289 ifs->type = IF_PROTO_X25; in x25_ioctl()
290 if (ifs->size < size) { in x25_ioctl()
291 ifs->size = size; /* data size wanted */ in x25_ioctl()
306 if (ifs->size == 0) { in x25_ioctl()
H A Dhdlc_cisco.c59 static int cisco_ioctl(struct net_device *dev, struct if_settings *ifs);
309 static int cisco_ioctl(struct net_device *dev, struct if_settings *ifs) in cisco_ioctl() argument
311 cisco_proto __user *cisco_s = ifs->ifs_ifsu.cisco; in cisco_ioctl()
317 switch (ifs->type) { in cisco_ioctl()
321 ifs->type = IF_PROTO_CISCO; in cisco_ioctl()
322 if (ifs->size < size) { in cisco_ioctl()
323 ifs->size = size; /* data size wanted */ in cisco_ioctl()
H A Dhdlc_fr.c365 if (ifs->type == IF_GET_PROTO) { in pvc_ioctl()
367 ifs->type = IF_PROTO_FR_ETH_PVC; in pvc_ioctl()
369 ifs->type = IF_PROTO_FR_PVC; in pvc_ioctl()
371 if (ifs->size < sizeof(info)) { in pvc_ioctl()
373 ifs->size = sizeof(info); in pvc_ioctl()
1186 fr_proto __user *fr_s = ifs->ifs_ifsu.fr; in fr_ioctl()
1193 switch (ifs->type) { in fr_ioctl()
1197 ifs->type = IF_PROTO_FR; in fr_ioctl()
1198 if (ifs->size < size) { in fr_ioctl()
1199 ifs->size = size; /* data size wanted */ in fr_ioctl()
[all …]
H A Dc101.c231 static int c101_ioctl(struct net_device *dev, struct if_settings *ifs) in c101_ioctl() argument
235 sync_serial_settings __user *line = ifs->ifs_ifsu.sync; in c101_ioctl()
238 switch (ifs->type) { in c101_ioctl()
240 ifs->type = IF_IFACE_SYNC_SERIAL; in c101_ioctl()
241 if (ifs->size < size) { in c101_ioctl()
242 ifs->size = size; /* data size wanted */ in c101_ioctl()
270 return hdlc_ioctl(dev, ifs); in c101_ioctl()
H A Dpci200syn.c182 static int pci200_ioctl(struct net_device *dev, struct if_settings *ifs) in pci200_ioctl() argument
186 sync_serial_settings __user *line = ifs->ifs_ifsu.sync; in pci200_ioctl()
189 switch (ifs->type) { in pci200_ioctl()
191 ifs->type = IF_IFACE_V35; in pci200_ioctl()
192 if (ifs->size < size) { in pci200_ioctl()
193 ifs->size = size; /* data size wanted */ in pci200_ioctl()
223 return hdlc_ioctl(dev, ifs); in pci200_ioctl()
H A Dn2.c242 static int n2_ioctl(struct net_device *dev, struct if_settings *ifs) in n2_ioctl() argument
246 sync_serial_settings __user *line = ifs->ifs_ifsu.sync; in n2_ioctl()
249 switch (ifs->type) { in n2_ioctl()
251 ifs->type = IF_IFACE_SYNC_SERIAL; in n2_ioctl()
252 if (ifs->size < size) { in n2_ioctl()
253 ifs->size = size; /* data size wanted */ in n2_ioctl()
281 return hdlc_ioctl(dev, ifs); in n2_ioctl()
H A Dfarsync.c1803 switch (ifs->type) { in fst_set_iface()
1870 ifs->type = IF_IFACE_E1; in fst_get_iface()
1873 ifs->type = IF_IFACE_T1; in fst_get_iface()
1876 ifs->type = IF_IFACE_V35; in fst_get_iface()
1879 ifs->type = IF_IFACE_V24; in fst_get_iface()
1882 ifs->type = IF_IFACE_X21D; in fst_get_iface()
1886 ifs->type = IF_IFACE_X21; in fst_get_iface()
1889 if (!ifs->size) in fst_get_iface()
1906 ifs->size = sizeof(sync); in fst_get_iface()
2035 switch (ifs->type) { in fst_ioctl()
[all …]
/openbmc/phosphor-pid-control/sysfs/
H A Dsysfsread.cpp29 std::ifstream ifs; in read() local
31 ifs.open(_path); in read()
32 ifs >> value; in read()
33 ifs.close(); in read()
/openbmc/phosphor-hwmon/
H A Dhwmonio.cpp31 std::ifstream ifs; in read() local
32 ifs.exceptions(std::ifstream::failbit | std::ifstream::badbit | in read()
36 if (!ifs.is_open()) in read()
37 ifs.open(path); in read()
38 ifs.clear(); in read()
39 ifs.seekg(0); in read()
40 ifs >> val; in read()
/openbmc/qemu/hw/ide/
H A Dmicrodrive.c206 IDEState *ifs; in md_common_read() local
253 ifs = ide_bus_active_if(&s->bus); in md_common_read()
254 if (ifs->blk) { in md_common_read()
255 return ifs->status; in md_common_read()
260 ifs = ide_bus_active_if(&s->bus); in md_common_read()
261 return 0xc2 | ((~ifs->select << 2) & 0x3c); in md_common_read()
347 VMSTATE_IDE_DRIVES(bus.ifs, MicroDriveState),
571 md->bus.ifs[0].drive_kind = IDE_CFATA; in dscm1xxxx_init()
572 md->bus.ifs[0].mdata_size = METADATA_SIZE; in dscm1xxxx_init()
573 md->bus.ifs[0].mdata_storage = g_malloc0(METADATA_SIZE); in dscm1xxxx_init()
H A Dcore.c1314 bus->ifs[0].hob_sector = bus->ifs[0].sector; in ide_ioport_write()
1315 bus->ifs[1].hob_sector = bus->ifs[1].sector; in ide_ioport_write()
1321 bus->ifs[0].hob_lcyl = bus->ifs[0].lcyl; in ide_ioport_write()
1322 bus->ifs[1].hob_lcyl = bus->ifs[1].lcyl; in ide_ioport_write()
1328 bus->ifs[0].hob_hcyl = bus->ifs[0].hcyl; in ide_ioport_write()
1329 bus->ifs[1].hob_hcyl = bus->ifs[1].hcyl; in ide_ioport_write()
2250 if (!bus->ifs[0].blk && !bus->ifs[1].blk) { in ide_ioport_read()
2259 if (!bus->ifs[0].blk && !bus->ifs[1].blk) { in ide_ioport_read()
2268 if (!bus->ifs[0].blk && !bus->ifs[1].blk) { in ide_ioport_read()
2277 if (!bus->ifs[0].blk && !bus->ifs[1].blk) { in ide_ioport_read()
[all …]
H A Dahci.c153 if (s->dev[port].port.ifs[0].blk) { in ahci_port_read()
645 IDEState *s = &ad->port.ifs[0]; in ahci_set_signature()
799 ide_state = &ad->port.ifs[0]; in ahci_write_fis_sdb()
832 IDEState *s = &ad->port.ifs[0]; in ahci_write_fis_pio()
864 ad->port.ifs[0].status; in ahci_write_fis_pio()
876 IDEState *s = &ad->port.ifs[0]; in ahci_write_fis_d2h()
905 ad->port.ifs[0].status; in ahci_write_fis_d2h()
1406 IDEState *s = &ad->port.ifs[0]; in ahci_pio_transfer()
1502 IDEState *s = &ad->port.ifs[0]; in ahci_dma_prepare_buf()
1531 IDEState *s = &ad->port.ifs[0]; in ahci_dma_rw_buf()
[all …]
/openbmc/openpower-occ-control/
H A Di2c_occ.cpp37 std::ifstream ifs(f.c_str(), std::ios::binary); in getFileContent() local
38 if (ifs.is_open()) in getFileContent()
40 ifs.read(&ret[0], DEVICE_NAME_LENGTH); in getFileContent()
41 ret.resize(ifs.gcount()); in getFileContent()
/openbmc/google-ipmi-sys/
H A Dhandler.cpp164 std::ifstream ifs; in getRxPackets() local
168 ifs.open(path); in getRxPackets()
169 ifs >> count; in getRxPackets()
194 std::ifstream ifs; in getCpldVersion() local
200 ifs >> value; in getCpldVersion()
335 std::ifstream ifs(path); in getMachineName() local
336 if (ifs.fail()) in getMachineName()
346 if (ifs.eof()) in getMachineName()
352 if (ifs.fail()) in getMachineName()
798 std::ifstream ifs; in getBMInstanceProperty() local
[all …]
H A Dutil.cpp61 std::ifstream ifs(fileName); in readPropertyFile() local
64 if (!ifs.is_open()) in readPropertyFile()
71 if (ifs >> contents) in readPropertyFile()
/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dinband_code_update.cpp482 std::ifstream ifs(filePath, std::ios::in | std::ios::binary); in processCodeUpdateLid() local
483 if (!ifs) in processCodeUpdateLid()
488 ifs.seekg(0); in processCodeUpdateLid()
489 ifs.read(reinterpret_cast<char*>(&header), sizeof(header)); in processCodeUpdateLid()
497 ifs.close(); in processCodeUpdateLid()
505 ifs.close(); in processCodeUpdateLid()
518 ifs.seekg(htonl(header.headerSize)); in processCodeUpdateLid()
519 ofs << ifs.rdbuf(); in processCodeUpdateLid()
530 ifs.seekg(htonl(header.headerSize)); in processCodeUpdateLid()
531 ofs << ifs.rdbuf(); in processCodeUpdateLid()
[all …]
/openbmc/linux/Documentation/arch/x86/
H A Difs.rst2 .. kernel-doc:: drivers/platform/x86/intel/ifs/ifs.h
/openbmc/phosphor-ipmi-flash/bmc/
H A Dgeneral_systemd.cpp193 std::ifstream ifs; in status() local
194 ifs.open(checkPath); in status()
195 if (ifs.good()) in status()
202 ifs >> status; in status()
/openbmc/intel-ipmi-oem/src/
H A Dbiosconfigcommands.cpp639 if (ifs.good()) in InitNVOOBdata()
641 ifs.seekg(std::ios_base::beg); in InitNVOOBdata()
644 ifs.close(); in InitNVOOBdata()
958 std::ifstream ifs(payloadFilePath, in ipmiOEMGetPayload() local
961 if (!ifs.good()) in ipmiOEMGetPayload()
969 ifs.close(); in ipmiOEMGetPayload()
1007 std::ifstream ifs(payloadFilePath, in ipmiOEMGetPayload() local
1011 if (!ifs.good()) in ipmiOEMGetPayload()
1034 ifs.seekg(offset, std::ios::beg); in ipmiOEMGetPayload()
1037 uint32_t readCount = ifs.gcount(); in ipmiOEMGetPayload()
[all …]
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/
H A Dutil.cpp61 std::ifstream ifs(fileName.data()); in readFileThenGrepIntoString() local
62 while (ifs.good()) in readFileThenGrepIntoString()
65 std::getline(ifs, line); in readFileThenGrepIntoString()
70 if (ifs.good()) in readFileThenGrepIntoString()
/openbmc/linux/include/linux/
H A Dhdlc.h25 int (*ioctl)(struct net_device *dev, struct if_settings *ifs);
57 int hdlc_ioctl(struct net_device *dev, struct if_settings *ifs);

12345