/linux/fs/hfs/ |
A D | mdb.c | 76 struct hfs_mdb *mdb, *mdb2; in hfs_mdb_get() local 118 sect = be16_to_cpu(mdb->drAlBlSt) + part_start; in hfs_mdb_get() 138 HFS_SB(sb)->mdb = mdb; in hfs_mdb_get() 210 attrib = mdb->drAtrb; in hfs_mdb_get() 223 mdb->drAtrb = attrib; in hfs_mdb_get() 224 be32_add_cpu(&mdb->drWrCnt, 1); in hfs_mdb_get() 225 mdb->drLsMod = hfs_mtime(); in hfs_mdb_get() 266 struct hfs_mdb *mdb = HFS_SB(sb)->mdb; in hfs_mdb_commit() local 274 mdb->drLsMod = hfs_mtime(); in hfs_mdb_commit() 292 &mdb->drXTFlSize, NULL); in hfs_mdb_commit() [all …]
|
A D | btree.c | 43 struct hfs_mdb *mdb = HFS_SB(sb)->mdb; in hfs_btree_open() local 48 hfs_inode_read_fork(tree->inode, mdb->drXTExtRec, mdb->drXTFlSize, in hfs_btree_open() 49 mdb->drXTFlSize, be32_to_cpu(mdb->drXTClpSiz)); in hfs_btree_open() 60 hfs_inode_read_fork(tree->inode, mdb->drCTExtRec, mdb->drCTFlSize, in hfs_btree_open() 61 mdb->drCTFlSize, be32_to_cpu(mdb->drCTClpSiz)); in hfs_btree_open()
|
A D | Makefile | 9 catalog.o dir.o extent.o inode.o attr.o mdb.o \
|
A D | super.c | 120 if (!(HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_UNMNT))) { in hfs_remount() 124 } else if (HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_SLOCK)) { in hfs_remount()
|
/linux/net/bridge/ |
A D | br_switchdev.c | 467 mdb->vid = mp->addr.vid; in br_switchdev_mdb_populate() 475 struct switchdev_obj_port_mdb mdb = { in br_switchdev_host_mdb_one() local 483 br_switchdev_mdb_populate(&mdb, mp); in br_switchdev_host_mdb_one() 517 .obj = &mdb->obj, in br_switchdev_mdb_replay_one() 530 struct switchdev_obj_port_mdb *mdb; in br_switchdev_mdb_queue_one() local 532 mdb = kzalloc(sizeof(*mdb), GFP_ATOMIC); in br_switchdev_mdb_queue_one() 533 if (!mdb) in br_switchdev_mdb_queue_one() 536 mdb->obj.id = id; in br_switchdev_mdb_queue_one() 537 mdb->obj.orig_dev = orig_dev; in br_switchdev_mdb_queue_one() 538 br_switchdev_mdb_populate(mdb, mp); in br_switchdev_mdb_queue_one() [all …]
|
/linux/drivers/s390/char/ |
A D | sclp_rw.c | 87 struct mdb *mdb; in sclp_initialize_mto() local 105 mdb = &msg->mdb; in sclp_initialize_mto() 106 mdb->header.length = sizeof(struct mdb); in sclp_initialize_mto() 107 mdb->header.type = 1; in sclp_initialize_mto() 108 mdb->header.tag = 0xD4C4C240; /* ebcdic "MDB " */ in sclp_initialize_mto() 109 mdb->header.revision_code = 1; in sclp_initialize_mto() 111 go = &mdb->go; in sclp_initialize_mto() 115 mto = &mdb->mto; in sclp_initialize_mto() 145 msg->mdb.header.length += buffer->current_length; in sclp_finalize_mto() 146 msg->mdb.mto.length += buffer->current_length; in sclp_finalize_mto() [all …]
|
A D | sclp_early_core.c | 91 struct mdb *mdb; in sclp_early_print_lm() local 98 ptr = (unsigned char *) &sccb->msg.mdb.mto; in sclp_early_print_lm() 119 mdb = &msg->mdb; in sclp_early_print_lm() 120 mdb->header.type = 1; in sclp_early_print_lm() 121 mdb->header.tag = 0xD4C4C240; in sclp_early_print_lm() 122 mdb->header.revision_code = 1; in sclp_early_print_lm() 123 mdb->header.length = len - offsetof(struct write_sccb, msg.mdb.header); in sclp_early_print_lm() 124 go = &mdb->go; in sclp_early_print_lm()
|
A D | sclp_rw.h | 46 struct mdb { struct 54 struct mdb mdb; argument
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | bridge_mld.sh | 150 bridge -j -d -s mdb show dev br0 \ 154 bridge -j -d -s mdb show dev br0 \ 175 bridge -j -d -s mdb show dev br0 \ 186 bridge -j -d -s mdb show dev br0 \ 288 bridge -j -d -s mdb show dev br0 \ 299 bridge -j -d -s mdb show dev br0 \ 305 bridge -j -d -s mdb show dev br0 \ 433 bridge -j -d -s mdb show dev br0 \ 493 bridge -j -d -s mdb show dev br0 \ 499 bridge -j -d -s mdb show dev br0 \ [all …]
|
A D | bridge_igmp.sh | 152 bridge -j -d -s mdb show dev br0 \ 156 bridge -j -d -s mdb show dev br0 \ 177 bridge -j -d -s mdb show dev br0 \ 188 bridge -j -d -s mdb show dev br0 \ 291 bridge -j -d -s mdb show dev br0 \ 302 bridge -j -d -s mdb show dev br0 \ 308 bridge -j -d -s mdb show dev br0 \ 436 bridge -j -d -s mdb show dev br0 \ 496 bridge -j -d -s mdb show dev br0 \ 502 bridge -j -d -s mdb show dev br0 \ [all …]
|
A D | lib.sh | 1432 bridge -j -d -s mdb show dev br0 \ 1438 bridge -j -d -s mdb show dev br0 \ 1474 bridge -j -d -s mdb show dev br0 \ 1482 bridge -j -d -s mdb show dev br0 \
|
/linux/drivers/net/ethernet/ti/ |
A D | cpsw_switchdev.c | 268 struct switchdev_obj_port_mdb *mdb) in cpsw_port_mdb_add() argument 271 struct net_device *orig_dev = mdb->obj.orig_dev; in cpsw_port_mdb_add() 283 ALE_VLAN, mdb->vid, 0); in cpsw_port_mdb_add() 285 priv->ndev->name, mdb->vid, mdb->addr, port_mask); in cpsw_port_mdb_add() 291 struct switchdev_obj_port_mdb *mdb) in cpsw_port_mdb_del() argument 294 struct net_device *orig_dev = mdb->obj.orig_dev; in cpsw_port_mdb_del() 305 err = cpsw_ale_del_mcast(cpsw->ale, mdb->addr, del_mask, in cpsw_port_mdb_del() 306 ALE_VLAN, mdb->vid); in cpsw_port_mdb_del() 308 priv->ndev->name, mdb->vid, mdb->addr, del_mask); in cpsw_port_mdb_del() 331 err = cpsw_port_mdb_add(priv, mdb); in cpsw_port_obj_add() [all …]
|
A D | am65-cpsw-switchdev.c | 260 struct switchdev_obj_port_mdb *mdb) in am65_cpsw_port_mdb_add() argument 263 struct net_device *orig_dev = mdb->obj.orig_dev; in am65_cpsw_port_mdb_add() 275 ALE_VLAN, mdb->vid, 0); in am65_cpsw_port_mdb_add() 277 port->ndev->name, mdb->vid, mdb->addr, port_mask); in am65_cpsw_port_mdb_add() 283 struct switchdev_obj_port_mdb *mdb) in am65_cpsw_port_mdb_del() argument 286 struct net_device *orig_dev = mdb->obj.orig_dev; in am65_cpsw_port_mdb_del() 297 cpsw_ale_del_mcast(cpsw->ale, mdb->addr, del_mask, in am65_cpsw_port_mdb_del() 298 ALE_VLAN, mdb->vid); in am65_cpsw_port_mdb_del() 300 port->ndev->name, mdb->vid, mdb->addr, del_mask); in am65_cpsw_port_mdb_del() 322 err = am65_cpsw_port_mdb_add(port, mdb); in am65_cpsw_port_obj_add() [all …]
|
/linux/net/dsa/ |
A D | switch.c | 222 return ds->ops->port_mdb_add(ds, port, mdb); in dsa_port_do_mdb_add() 226 a = dsa_mac_addr_find(&dp->mdbs, mdb->addr, mdb->vid); in dsa_port_do_mdb_add() 238 err = ds->ops->port_mdb_add(ds, port, mdb); in dsa_port_do_mdb_add() 244 ether_addr_copy(a->addr, mdb->addr); in dsa_port_do_mdb_add() 245 a->vid = mdb->vid; in dsa_port_do_mdb_add() 269 a = dsa_mac_addr_find(&dp->mdbs, mdb->addr, mdb->vid); in dsa_port_do_mdb_del() 278 err = ds->ops->port_mdb_del(ds, port, mdb); in dsa_port_do_mdb_del() 508 return dsa_port_do_mdb_add(dp, info->mdb); in dsa_switch_mdb_add() 520 return dsa_port_do_mdb_del(dp, info->mdb); in dsa_switch_mdb_del() 535 err = dsa_port_do_mdb_add(dp, info->mdb); in dsa_switch_host_mdb_add() [all …]
|
A D | port.c | 818 const struct switchdev_obj_port_mdb *mdb) in dsa_port_mdb_add() argument 823 .mdb = mdb, in dsa_port_mdb_add() 830 const struct switchdev_obj_port_mdb *mdb) in dsa_port_mdb_del() argument 835 .mdb = mdb, in dsa_port_mdb_del() 842 const struct switchdev_obj_port_mdb *mdb) in dsa_port_host_mdb_add() argument 847 .mdb = mdb, in dsa_port_host_mdb_add() 852 err = dev_mc_add(cpu_dp->master, mdb->addr); in dsa_port_host_mdb_add() 860 const struct switchdev_obj_port_mdb *mdb) in dsa_port_host_mdb_del() argument 865 .mdb = mdb, in dsa_port_host_mdb_del() 870 err = dev_mc_del(cpu_dp->master, mdb->addr); in dsa_port_host_mdb_del()
|
A D | dsa_priv.h | 71 const struct switchdev_obj_port_mdb *mdb; member 235 const struct switchdev_obj_port_mdb *mdb); 237 const struct switchdev_obj_port_mdb *mdb); 239 const struct switchdev_obj_port_mdb *mdb); 241 const struct switchdev_obj_port_mdb *mdb);
|
/linux/drivers/net/dsa/microchip/ |
A D | ksz_common.c | 254 const struct switchdev_obj_port_mdb *mdb) in ksz_port_mdb_add() argument 265 if (!memcmp(alu.mac, mdb->addr, ETH_ALEN) && in ksz_port_mdb_add() 266 alu.fid == mdb->vid) in ksz_port_mdb_add() 282 memcpy(alu.mac, mdb->addr, ETH_ALEN); in ksz_port_mdb_add() 286 if (mdb->vid) { in ksz_port_mdb_add() 290 alu.fid = mdb->vid; in ksz_port_mdb_add() 299 const struct switchdev_obj_port_mdb *mdb) in ksz_port_mdb_del() argument 309 if (!memcmp(alu.mac, mdb->addr, ETH_ALEN) && in ksz_port_mdb_del() 310 alu.fid == mdb->vid) in ksz_port_mdb_del()
|
A D | ksz9477.c | 745 const struct switchdev_obj_port_mdb *mdb) in ksz9477_port_mdb_add() argument 754 mac_hi = ((mdb->addr[0] << 8) | mdb->addr[1]); in ksz9477_port_mdb_add() 755 mac_lo = ((mdb->addr[2] << 24) | (mdb->addr[3] << 16)); in ksz9477_port_mdb_add() 756 mac_lo |= ((mdb->addr[4] << 8) | mdb->addr[5]); in ksz9477_port_mdb_add() 778 if (((static_table[2] >> ALU_V_FID_S) == mdb->vid) && in ksz9477_port_mdb_add() 799 if (mdb->vid) in ksz9477_port_mdb_add() 801 static_table[2] = (mdb->vid << ALU_V_FID_S); in ksz9477_port_mdb_add() 820 const struct switchdev_obj_port_mdb *mdb) in ksz9477_port_mdb_del() argument 829 mac_hi = ((mdb->addr[0] << 8) | mdb->addr[1]); in ksz9477_port_mdb_del() 830 mac_lo = ((mdb->addr[2] << 24) | (mdb->addr[3] << 16)); in ksz9477_port_mdb_del() [all …]
|
A D | ksz_common.h | 165 const struct switchdev_obj_port_mdb *mdb); 167 const struct switchdev_obj_port_mdb *mdb);
|
/linux/drivers/net/dsa/ |
A D | lan9303-core.c | 1223 const struct switchdev_obj_port_mdb *mdb) in lan9303_port_mdb_prepare() argument 1228 mdb->vid); in lan9303_port_mdb_prepare() 1229 if (mdb->vid) in lan9303_port_mdb_prepare() 1231 if (lan9303_alr_cache_find_mac(chip, mdb->addr)) in lan9303_port_mdb_prepare() 1240 const struct switchdev_obj_port_mdb *mdb) in lan9303_port_mdb_add() argument 1245 err = lan9303_port_mdb_prepare(ds, port, mdb); in lan9303_port_mdb_add() 1250 mdb->vid); in lan9303_port_mdb_add() 1255 const struct switchdev_obj_port_mdb *mdb) in lan9303_port_mdb_del() argument 1260 mdb->vid); in lan9303_port_mdb_del() 1261 if (mdb->vid) in lan9303_port_mdb_del() [all …]
|
/linux/Documentation/networking/device_drivers/ethernet/ti/ |
A D | am65_nuss_cpsw_switchdev.rst | 120 bridge mdb add dev br0 port sw0p1 grp 239.1.1.1 permanent vid 100 121 bridge mdb add dev br0 port sw0p1 grp 239.1.1.1 permanent <---- Add on all VLANs
|
/linux/Documentation/networking/dsa/ |
A D | lan9303.rst | 27 support fdb/mdb operations as well, meaning IGMP snooping is supported.
|
/linux/drivers/net/dsa/b53/ |
A D | b53_priv.h | 371 const struct switchdev_obj_port_mdb *mdb); 373 const struct switchdev_obj_port_mdb *mdb);
|
/linux/drivers/net/ethernet/mscc/ |
A D | ocelot.c | 1952 const struct switchdev_obj_port_mdb *mdb) in ocelot_port_mdb_add() argument 1957 u16 vid = mdb->vid; in ocelot_port_mdb_add() 1962 mc = ocelot_multicast_get(ocelot, mdb->addr, vid); in ocelot_port_mdb_add() 1969 mc->entry_type = ocelot_classify_mdb(mdb->addr); in ocelot_port_mdb_add() 1970 ether_addr_copy(mc->addr, mdb->addr); in ocelot_port_mdb_add() 2008 const struct switchdev_obj_port_mdb *mdb) in ocelot_port_mdb_del() argument 2013 u16 vid = mdb->vid; in ocelot_port_mdb_del() 2018 mc = ocelot_multicast_get(ocelot, mdb->addr, vid); in ocelot_port_mdb_del()
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-switch.c | 1808 const struct switchdev_obj_port_mdb *mdb) in dpaa2_switch_port_mdb_add() argument 1814 if (dpaa2_switch_port_lookup_address(netdev, 0, mdb->addr)) in dpaa2_switch_port_mdb_add() 1817 err = dpaa2_switch_port_fdb_add_mc(port_priv, mdb->addr); in dpaa2_switch_port_mdb_add() 1821 err = dev_mc_add(netdev, mdb->addr); in dpaa2_switch_port_mdb_add() 1824 dpaa2_switch_port_fdb_del_mc(port_priv, mdb->addr); in dpaa2_switch_port_mdb_add() 1925 const struct switchdev_obj_port_mdb *mdb) in dpaa2_switch_port_mdb_del() argument 1930 if (!dpaa2_switch_port_lookup_address(netdev, 0, mdb->addr)) in dpaa2_switch_port_mdb_del() 1933 err = dpaa2_switch_port_fdb_del_mc(port_priv, mdb->addr); in dpaa2_switch_port_mdb_del() 1937 err = dev_mc_del(netdev, mdb->addr); in dpaa2_switch_port_mdb_del()
|