/openbmc/linux/fs/iomap/ |
H A D | buffered-io.c | 47 struct iomap_folio_state *ifs) in ifs_is_fully_uptodate() argument 51 return bitmap_full(ifs->state, i_blocks_per_folio(inode, folio)); in ifs_is_fully_uptodate() 54 static inline bool ifs_block_is_uptodate(struct iomap_folio_state *ifs, in ifs_block_is_uptodate() argument 57 return test_bit(block, ifs->state); in ifs_block_is_uptodate() 61 struct iomap_folio_state *ifs, size_t off, size_t len) in ifs_set_range_uptodate() argument 69 spin_lock_irqsave(&ifs->state_lock, flags); in ifs_set_range_uptodate() 70 bitmap_set(ifs->state, first_blk, nr_blks); in ifs_set_range_uptodate() 71 if (ifs_is_fully_uptodate(folio, ifs)) in ifs_set_range_uptodate() 73 spin_unlock_irqrestore(&ifs->state_lock, flags); in ifs_set_range_uptodate() 79 struct iomap_folio_state *ifs = folio->private; in iomap_set_range_uptodate() local [all …]
|
/openbmc/linux/drivers/net/wan/ |
H A D | hdlc_raw.c | 22 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 D | hdlc_raw_eth.c | 23 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 D | pc300too.c | 189 static int pc300_ioctl(struct net_device *dev, struct if_settings *ifs) in pc300_ioctl() argument 193 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() [all …]
|
H A D | hdlc_x25.c | 32 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 D | hdlc_cisco.c | 59 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 D | hdlc_fr.c | 149 static int fr_ioctl(struct net_device *dev, struct if_settings *ifs); 360 static int pvc_ioctl(struct net_device *dev, struct if_settings *ifs) in pvc_ioctl() argument 365 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() 379 if (copy_to_user(ifs->ifs_ifsu.fr_pvc_info, in pvc_ioctl() 1184 static int fr_ioctl(struct net_device *dev, struct if_settings *ifs) in fr_ioctl() argument 1186 fr_proto __user *fr_s = ifs->ifs_ifsu.fr; in fr_ioctl() [all …]
|
H A D | pci200syn.c | 182 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 D | c101.c | 231 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 D | n2.c | 242 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 D | farsync.c | 1787 struct if_settings *ifs) in fst_set_iface() argument 1792 if (ifs->size != sizeof(sync)) in fst_set_iface() 1795 if (copy_from_user(&sync, ifs->ifs_ifsu.sync, sizeof(sync))) in fst_set_iface() 1803 switch (ifs->type) { in fst_set_iface() 1859 struct if_settings *ifs) in fst_get_iface() argument 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() [all …]
|
H A D | wanxl.c | 346 static int wanxl_ioctl(struct net_device *dev, struct if_settings *ifs) in wanxl_ioctl() argument 352 switch (ifs->type) { in wanxl_ioctl() 354 ifs->type = IF_IFACE_SYNC_SERIAL; in wanxl_ioctl() 355 if (ifs->size < size) { in wanxl_ioctl() 356 ifs->size = size; /* data size wanted */ in wanxl_ioctl() 364 if (copy_to_user(ifs->ifs_ifsu.sync, &line, size)) in wanxl_ioctl() 374 if (copy_from_user(&line, ifs->ifs_ifsu.sync, in wanxl_ioctl() 389 return hdlc_ioctl(dev, ifs); in wanxl_ioctl()
|
/openbmc/phosphor-hwmon/ |
H A D | hwmonio.cpp | 31 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/phosphor-pid-control/sysfs/ |
H A D | sysfsread.cpp | 29 std::ifstream ifs; in read() local 31 ifs.open(_path); in read() 32 ifs >> value; in read() 33 ifs.close(); in read()
|
/openbmc/qemu/hw/ide/ |
H A D | core.c | 1300 bus->ifs[0].hob_feature = bus->ifs[0].feature; in ide_ioport_write() 1301 bus->ifs[1].hob_feature = bus->ifs[1].feature; in ide_ioport_write() 1302 bus->ifs[0].feature = val; in ide_ioport_write() 1303 bus->ifs[1].feature = val; in ide_ioport_write() 1307 bus->ifs[0].hob_nsector = bus->ifs[0].nsector; in ide_ioport_write() 1308 bus->ifs[1].hob_nsector = bus->ifs[1].nsector; in ide_ioport_write() 1309 bus->ifs[0].nsector = val; in ide_ioport_write() 1310 bus->ifs[1].nsector = val; in ide_ioport_write() 1314 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() [all …]
|
H A D | ahci.c | 153 if (s->dev[port].port.ifs[0].blk) { in ahci_port_read() 621 IDEState *ide_state = &ad->port.ifs[0]; in ahci_init_d2h() 645 IDEState *s = &ad->port.ifs[0]; in ahci_set_signature() 659 IDEState *ide_state = &d->port.ifs[0]; in ahci_reset_port() 676 ide_state = &s->dev[port].port.ifs[0]; in ahci_reset_port() 799 ide_state = &ad->port.ifs[0]; in ahci_write_fis_sdb() 810 pr->tfdata = (ad->port.ifs[0].error << 8) | in ahci_write_fis_sdb() 811 (ad->port.ifs[0].status & 0x77) | in ahci_write_fis_sdb() 832 IDEState *s = &ad->port.ifs[0]; in ahci_write_fis_pio() 863 pr->tfdata = (ad->port.ifs[0].error << 8) | in ahci_write_fis_pio() [all …]
|
/openbmc/google-ipmi-sys/ |
H A D | handler.cpp | 164 std::ifstream ifs; in getRxPackets() local 165 ifs.exceptions(std::ifstream::failbit); in getRxPackets() 168 ifs.open(path); in getRxPackets() 169 ifs >> count; in getRxPackets() 194 std::ifstream ifs; in getCpldVersion() local 195 ifs.exceptions(std::ifstream::failbit); in getCpldVersion() 199 ifs.open(opath.str()); in getCpldVersion() 200 ifs >> value; in getCpldVersion() 335 std::ifstream ifs(path); in getMachineName() local 336 if (ifs.fail()) in getMachineName() [all …]
|
H A D | util.cpp | 61 std::ifstream ifs(fileName); in readPropertyFile() local 64 if (!ifs.is_open()) in readPropertyFile() 71 if (ifs >> contents) in readPropertyFile()
|
/openbmc/openpower-occ-control/ |
H A D | i2c_occ.cpp | 37 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/pldm/oem/ibm/libpldmresponder/ |
H A D | inband_code_update.cpp | 482 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 D | ifs.rst | 2 .. kernel-doc:: drivers/platform/x86/intel/ifs/ifs.h
|
/openbmc/phosphor-ipmi-flash/bmc/ |
H A D | general_systemd.cpp | 193 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 D | biosconfigcommands.cpp | 637 std::ifstream ifs(biosConfigNVPath, std::ios::in | std::ios::binary); in InitNVOOBdata() local 639 if (ifs.good()) in InitNVOOBdata() 641 ifs.seekg(std::ios_base::beg); in InitNVOOBdata() 642 ifs.read(reinterpret_cast<char*>(&gNVOOBdata), 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() [all …]
|
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/ |
H A D | util.cpp | 61 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/qemu/hw/usb/ |
H A D | dev-hid.c | 275 .ifs = &desc_iface_mouse, 292 .ifs = &desc_iface_mouse2, 309 .ifs = &desc_iface_tablet, 326 .ifs = &desc_iface_tablet2, 343 .ifs = &desc_iface_keyboard, 360 .ifs = &desc_iface_keyboard2,
|