/openbmc/linux/drivers/i2c/busses/ |
H A D | scx200_acb.c | 80 #define ACBSDA (iface->base + 0) 81 #define ACBST (iface->base + 1) 87 #define ACBCST (iface->base + 2) 89 #define ACBCTL1 (iface->base + 3) 95 #define ACBADDR (iface->base + 4) 96 #define ACBCTL2 (iface->base + 5) 101 static void scx200_acb_machine(struct scx200_acb_iface *iface, u8 status) in scx200_acb_machine() argument 105 dev_dbg(&iface->adapter.dev, "state %s, status = 0x%02x\n", in scx200_acb_machine() 106 scx200_acb_state_name[iface->state], status); in scx200_acb_machine() 117 dev_dbg(&iface->adapter.dev, "negative ack in state %s\n", in scx200_acb_machine() [all …]
|
/openbmc/u-boot/include/ |
H A D | spartan3.h | 77 #define XILINX_XC3S50_DESC(iface, fn_table, cookie) \ argument 78 { xilinx_spartan3, iface, XILINX_XC3S50_SIZE, fn_table, cookie, \ 81 #define XILINX_XC3S200_DESC(iface, fn_table, cookie) \ argument 82 { xilinx_spartan3, iface, XILINX_XC3S200_SIZE, fn_table, cookie, \ 85 #define XILINX_XC3S400_DESC(iface, fn_table, cookie) \ argument 86 { xilinx_spartan3, iface, XILINX_XC3S400_SIZE, fn_table, cookie, \ 89 #define XILINX_XC3S1000_DESC(iface, fn_table, cookie) \ argument 90 { xilinx_spartan3, iface, XILINX_XC3S1000_SIZE, fn_table, cookie, \ 93 #define XILINX_XC3S1500_DESC(iface, fn_table, cookie) \ argument 94 { xilinx_spartan3, iface, XILINX_XC3S1500_SIZE, fn_table, cookie, \ [all …]
|
H A D | virtex2.h | 64 #define XILINX_XC2V40_DESC(iface, fn_table, cookie) \ argument 65 { xilinx_virtex2, iface, XILINX_XC2V40_SIZE, fn_table, cookie, \ 68 #define XILINX_XC2V80_DESC(iface, fn_table, cookie) \ argument 69 { xilinx_virtex2, iface, XILINX_XC2V80_SIZE, fn_table, cookie, \ 72 #define XILINX_XC2V250_DESC(iface, fn_table, cookie) \ argument 73 { xilinx_virtex2, iface, XILINX_XC2V250_SIZE, fn_table, cookie, \ 76 #define XILINX_XC2V500_DESC(iface, fn_table, cookie) \ argument 77 { xilinx_virtex2, iface, XILINX_XC2V500_SIZE, fn_table, cookie, \ 80 #define XILINX_XC2V1000_DESC(iface, fn_table, cookie) \ argument 81 { xilinx_virtex2, iface, XILINX_XC2V1000_SIZE, fn_table, cookie, \ [all …]
|
H A D | spartan2.h | 67 #define XILINX_XC2S15_DESC(iface, fn_table, cookie) \ argument 68 { xilinx_spartan2, iface, XILINX_XC2S15_SIZE, fn_table, cookie, \ 71 #define XILINX_XC2S30_DESC(iface, fn_table, cookie) \ argument 72 { xilinx_spartan2, iface, XILINX_XC2S30_SIZE, fn_table, cookie, \ 75 #define XILINX_XC2S50_DESC(iface, fn_table, cookie) \ argument 76 { xilinx_spartan2, iface, XILINX_XC2S50_SIZE, fn_table, cookie, \ 79 #define XILINX_XC2S100_DESC(iface, fn_table, cookie) \ argument 80 { xilinx_spartan2, iface, XILINX_XC2S100_SIZE, fn_table, cookie, \ 83 #define XILINX_XC2S150_DESC(iface, fn_table, cookie) \ argument 84 { xilinx_spartan2, iface, XILINX_XC2S150_SIZE, fn_table, cookie, \ [all …]
|
/openbmc/linux/sound/soc/meson/ |
H A D | axg-tdm-interface.c | 42 struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai); in axg_tdm_set_tdm_slots() local 57 iface->slots = slots; in axg_tdm_set_tdm_slots() 81 iface->slot_width = slot_width; in axg_tdm_set_tdm_slots() 103 struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai); in axg_tdm_iface_set_sysclk() local 107 if (!iface->mclk) { in axg_tdm_iface_set_sysclk() 110 ret = clk_set_rate(iface->mclk, freq); in axg_tdm_iface_set_sysclk() 112 iface->mclk_rate = freq; in axg_tdm_iface_set_sysclk() 121 struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai); in axg_tdm_iface_set_fmt() local 125 if (!iface->mclk) { in axg_tdm_iface_set_fmt() 142 iface->fmt = fmt; in axg_tdm_iface_set_fmt() [all …]
|
/openbmc/linux/fs/smb/server/ |
H A D | transport_tcp.c | 228 struct interface *iface = (struct interface *)p; in ksmbd_kthread_fn() local 232 mutex_lock(&iface->sock_release_lock); in ksmbd_kthread_fn() 233 if (!iface->ksmbd_socket) { in ksmbd_kthread_fn() 234 mutex_unlock(&iface->sock_release_lock); in ksmbd_kthread_fn() 237 ret = kernel_accept(iface->ksmbd_socket, &client_sk, in ksmbd_kthread_fn() 239 mutex_unlock(&iface->sock_release_lock); in ksmbd_kthread_fn() 277 static int ksmbd_tcp_run_kthread(struct interface *iface) in ksmbd_tcp_run_kthread() argument 282 kthread = kthread_run(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s", in ksmbd_tcp_run_kthread() 283 iface->name); in ksmbd_tcp_run_kthread() 288 iface->ksmbd_kthread = kthread; in ksmbd_tcp_run_kthread() [all …]
|
/openbmc/openbmc/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/ |
H A D | mac-check | 20 local iface="$1" 21 cat /sys/class/net/"$iface"/address 2>/dev/null 25 local iface="$1" 27 ip link show dev "$iface" | grep -q "${iface}:.*\<UP\>" 2>/dev/null 29 [[ $up -eq 0 ]] && ip link set dev "$iface" down 30 ip link set dev "$iface" address "$mac" 31 [[ $up -eq 0 ]] && ip link set dev "$iface" up 35 local iface="$1" 36 cat "${SOFS_MACDIR}/${iface}" 2>/dev/null 50 local iface="$1" [all …]
|
/openbmc/linux/net/netlabel/ |
H A D | netlabel_unlabeled.c | 149 struct netlbl_unlhsh_iface *iface; in netlbl_unlhsh_free_iface() local 157 iface = container_of(entry, struct netlbl_unlhsh_iface, rcu); in netlbl_unlhsh_free_iface() 162 netlbl_af4list_foreach_safe(iter4, tmp4, &iface->addr4_list) { in netlbl_unlhsh_free_iface() 167 netlbl_af6list_foreach_safe(iter6, tmp6, &iface->addr6_list) { in netlbl_unlhsh_free_iface() 172 kfree(iface); in netlbl_unlhsh_free_iface() 231 static int netlbl_unlhsh_add_addr4(struct netlbl_unlhsh_iface *iface, in netlbl_unlhsh_add_addr4() argument 249 ret_val = netlbl_af4list_add(&entry->list, &iface->addr4_list); in netlbl_unlhsh_add_addr4() 271 static int netlbl_unlhsh_add_addr6(struct netlbl_unlhsh_iface *iface, in netlbl_unlhsh_add_addr6() argument 293 ret_val = netlbl_af6list_add(&entry->list, &iface->addr6_list); in netlbl_unlhsh_add_addr6() 315 struct netlbl_unlhsh_iface *iface; in netlbl_unlhsh_add_iface() local [all …]
|
/openbmc/dbus-sensors/src/tests/ |
H A D | test_MCTPEndpoint.cpp | 28 SensorBaseConfigMap iface{{}}; in TEST() local 29 EXPECT_THROW(I2CMCTPDDevice::from({}, iface), std::invalid_argument); in TEST() 34 SensorBaseConfigMap iface{{"Type", "NVME1000"}}; in TEST() local 35 EXPECT_THROW(I2CMCTPDDevice::from({}, iface), std::invalid_argument); in TEST() 40 SensorBaseConfigMap iface{ in TEST() local 45 EXPECT_THROW(I2CMCTPDDevice::from({}, iface), std::invalid_argument); in TEST() 50 SensorBaseConfigMap iface{ in TEST() local 56 EXPECT_THROW(I2CMCTPDDevice::from({}, iface), std::invalid_argument); in TEST() 61 SensorBaseConfigMap iface{ in TEST() local 66 EXPECT_THROW(I2CMCTPDDevice::from({}, iface), std::invalid_argument); in TEST() [all …]
|
/openbmc/linux/drivers/most/ |
H A D | core.c | 49 struct most_interface *iface; member 105 if (c->iface->dma_free) in most_free_mbo_coherent() 106 c->iface->dma_free(mbo, coherent_buf_size); in most_free_mbo_coherent() 176 if (c->iface->channel_vector[i].direction & MOST_CH_RX) in available_directions_show() 178 if (c->iface->channel_vector[i].direction & MOST_CH_TX) in available_directions_show() 192 if (c->iface->channel_vector[i].data_type & MOST_CH_CONTROL) in available_datatypes_show() 194 if (c->iface->channel_vector[i].data_type & MOST_CH_ASYNC) in available_datatypes_show() 196 if (c->iface->channel_vector[i].data_type & MOST_CH_SYNC) in available_datatypes_show() 198 if (c->iface->channel_vector[i].data_type & MOST_CH_ISOC) in available_datatypes_show() 212 c->iface->channel_vector[i].num_buffers_packet); in number_of_packet_buffers_show() [all …]
|
/openbmc/inarp/ |
H A D | inarp.c | 208 struct interface *iface = &inarp->interfaces[i]; in find_interface_by_ifindex() local 209 if (iface->ifindex == ifindex) in find_interface_by_ifindex() 210 return iface; in find_interface_by_ifindex() 265 struct interface *iface) in netlink_nlmsg_dellink() argument 269 if (!iface) in netlink_nlmsg_dellink() 273 iface->ifname, eth_mac_to_str(&iface->eth_addr)); in netlink_nlmsg_dellink() 276 i = iface - inarp->interfaces; in netlink_nlmsg_dellink() 281 inarp->n_interfaces * sizeof(*iface)); in netlink_nlmsg_dellink() 282 memmove(iface, iface + 1, in netlink_nlmsg_dellink() 283 sizeof(*iface) * (inarp->n_interfaces - i)); in netlink_nlmsg_dellink() [all …]
|
/openbmc/linux/drivers/net/wireless/intersil/hostap/ |
H A D | hostap_pci.c | 57 struct hostap_interface *iface; in hfa384x_outb_debug() local 62 iface = netdev_priv(dev); in hfa384x_outb_debug() 63 local = iface->local; in hfa384x_outb_debug() 74 struct hostap_interface *iface; in hfa384x_inb_debug() local 80 iface = netdev_priv(dev); in hfa384x_inb_debug() 81 local = iface->local; in hfa384x_inb_debug() 93 struct hostap_interface *iface; in hfa384x_outw_debug() local 98 iface = netdev_priv(dev); in hfa384x_outw_debug() 99 local = iface->local; in hfa384x_outw_debug() 110 struct hostap_interface *iface; in hfa384x_inw_debug() local [all …]
|
H A D | hostap_cs.c | 48 struct hostap_interface *iface; in hfa384x_outb_debug() local 52 iface = netdev_priv(dev); in hfa384x_outb_debug() 53 local = iface->local; in hfa384x_outb_debug() 62 struct hostap_interface *iface; in hfa384x_inb_debug() local 67 iface = netdev_priv(dev); in hfa384x_inb_debug() 68 local = iface->local; in hfa384x_inb_debug() 78 struct hostap_interface *iface; in hfa384x_outw_debug() local 82 iface = netdev_priv(dev); in hfa384x_outw_debug() 83 local = iface->local; in hfa384x_outw_debug() 92 struct hostap_interface *iface; in hfa384x_inw_debug() local [all …]
|
H A D | hostap_80211_tx.c | 64 struct hostap_interface *iface; in hostap_data_start_xmit() local 77 iface = netdev_priv(dev); in hostap_data_start_xmit() 78 local = iface->local; in hostap_data_start_xmit() 180 else if (iface->type == HOSTAP_INTERFACE_WDS) in hostap_data_start_xmit() 181 memcpy(&hdr.addr1, iface->u.wds.remote_addr, in hostap_data_start_xmit() 217 iface->stats.tx_dropped++; in hostap_data_start_xmit() 223 iface->stats.tx_dropped++; in hostap_data_start_xmit() 231 iface->stats.tx_dropped++; in hostap_data_start_xmit() 237 iface->stats.tx_dropped++; in hostap_data_start_xmit() 249 iface->stats.tx_packets++; in hostap_data_start_xmit() [all …]
|
H A D | hostap_main.c | 51 struct hostap_interface *iface; in hostap_add_interface() local 58 iface = netdev_priv(dev); in hostap_add_interface() 59 iface->dev = dev; in hostap_add_interface() 60 iface->local = local; in hostap_add_interface() 61 iface->type = type; in hostap_add_interface() 62 list_add(&iface->list, &local->hostap_interfaces); in hostap_add_interface() 101 struct hostap_interface *iface; in hostap_remove_interface() local 106 iface = netdev_priv(dev); in hostap_remove_interface() 109 list_del(&iface->list); in hostap_remove_interface() 112 if (dev == iface->local->ddev) in hostap_remove_interface() [all …]
|
H A D | hostap_ioctl.c | 19 struct hostap_interface *iface; in hostap_get_wireless_stats() local 23 iface = netdev_priv(dev); in hostap_get_wireless_stats() 24 local = iface->local; in hostap_get_wireless_stats() 27 if (iface->type != HOSTAP_INTERFACE_MAIN) in hostap_get_wireless_stats() 68 struct hostap_interface *iface; in prism2_get_datarates() local 74 iface = netdev_priv(dev); in prism2_get_datarates() 75 local = iface->local; in prism2_get_datarates() 119 struct hostap_interface *iface; in prism2_ioctl_siwencode() local 124 iface = netdev_priv(dev); in prism2_ioctl_siwencode() 125 local = iface->local; in prism2_ioctl_siwencode() [all …]
|
/openbmc/linux/include/linux/ |
H A D | most.h | 241 int (*configure)(struct most_interface *iface, int channel_idx, 243 int (*enqueue)(struct most_interface *iface, int channel_idx, 245 int (*poison_channel)(struct most_interface *iface, int channel_idx); 246 void (*request_netinfo)(struct most_interface *iface, int channel_idx, 247 void (*on_netinfo)(struct most_interface *iface, 267 int (*probe_channel)(struct most_interface *iface, int channel_idx, 270 int (*disconnect_channel)(struct most_interface *iface, 273 int (*tx_completion)(struct most_interface *iface, int channel_idx); 286 int most_register_interface(struct most_interface *iface); 292 void most_deregister_interface(struct most_interface *iface); [all …]
|
/openbmc/phosphor-inventory-manager/ |
H A D | functor.hpp | 140 std::vector<PathCondition>&& conditions, const char* iface, in setProperty() argument 147 return [paths, conditions = conditions, iface, member, in setProperty() 153 m.template invokeMethod<T>(p, iface, member, value); in setProperty() 176 inline auto getProperty(const char* path, const char* iface, U&& member, in getProperty() argument 179 return [path, iface, member, prop](auto& mgr) { in getProperty() 180 return mgr.template invokeMethod<T>(path, iface, member, prop); in getProperty() 200 PropertyChangedCondition(const char* iface, const char* property, in PropertyChangedCondition() 202 _iface(iface), _property(property), in PropertyChangedCondition() 215 const char* iface = nullptr; in operator ()() local 217 msg.read(iface); in operator ()() [all …]
|
/openbmc/phosphor-hwmon/ |
H A D | thresholds.hpp | 75 void checkThresholds(std::any& iface, SensorValueType value) in checkThresholds() argument 77 auto realIface = std::any_cast<std::shared_ptr<T>>(iface); in checkThresholds() 126 std::shared_ptr<T> iface; in addThreshold() local 134 iface = std::make_shared<T>(bus, objPath.c_str(), in addThreshold() 139 (*iface.*Thresholds<T>::setLo)(lo); in addThreshold() 140 auto alarmLowState = (*iface.*Thresholds<T>::getAlarmLow)(); in addThreshold() 141 (*iface.*Thresholds<T>::alarmLo)(value <= lo); in addThreshold() 146 (*iface.*Thresholds<T>::assertLowSignal)(value); in addThreshold() 150 (*iface.*Thresholds<T>::deassertLowSignal)(value); in addThreshold() 157 (*iface.*Thresholds<T>::setHi)(hi); in addThreshold() [all …]
|
H A D | sensor.cpp | 180 auto iface = std::make_shared<ValueObject>(bus, objPath.c_str(), in addValue() local 186 iface->unit(hwmon::getUnit(attrs)); in addValue() 192 iface->value(val); in addValue() 197 iface->maxValue(std::stoll(maxValue)); in addValue() 202 iface->minValue(std::stoll(minValue)); in addValue() 205 obj[InterfaceType::VALUE] = iface; in addValue() 206 return iface; in addValue() 213 std::shared_ptr<StatusObject> iface = nullptr; in addStatus() local 255 iface = std::make_shared<StatusObject>( in addStatus() 258 iface->functional(functional); in addStatus() [all …]
|
/openbmc/linux/drivers/staging/most/net/ |
H A D | net.c | 62 struct most_interface *iface; member 183 static void on_netinfo(struct most_interface *iface, 193 if (most_start_channel(nd->iface, nd->rx.ch_id, &comp)) { in most_nd_open() 199 if (most_start_channel(nd->iface, nd->tx.ch_id, &comp)) { in most_nd_open() 201 most_stop_channel(nd->iface, nd->rx.ch_id, &comp); in most_nd_open() 212 if (nd->iface->request_netinfo) in most_nd_open() 213 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id, on_netinfo); in most_nd_open() 225 if (nd->iface->request_netinfo) in most_nd_stop() 226 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id, NULL); in most_nd_stop() 227 most_stop_channel(nd->iface, nd->rx.ch_id, &comp); in most_nd_stop() [all …]
|
/openbmc/linux/drivers/media/platform/amphion/ |
H A D | vpu_malone.c | 348 struct malone_iface *iface; in vpu_malone_init_rpc() local 358 iface = rpc->virt; in vpu_malone_init_rpc() 362 shared->iface = iface; in vpu_malone_init_rpc() 365 iface->exec_base_addr = base_phy_addr; in vpu_malone_init_rpc() 366 iface->exec_area_size = rpc->length; in vpu_malone_init_rpc() 371 shared->cmd_desc = &iface->cmd_buffer_desc.buffer; in vpu_malone_init_rpc() 373 iface->cmd_buffer_desc.buffer.start = in vpu_malone_init_rpc() 374 iface->cmd_buffer_desc.buffer.rptr = in vpu_malone_init_rpc() 375 iface->cmd_buffer_desc.buffer.wptr = phy_addr; in vpu_malone_init_rpc() 376 iface->cmd_buffer_desc.buffer.end = iface->cmd_buffer_desc.buffer.start + CMD_SIZE; in vpu_malone_init_rpc() [all …]
|
/openbmc/openbmc/meta-yadro/meta-vegman/recipes-yadro/fru/vegman-fru-handler/ |
H A D | baseboard-fru-handler.sh | 15 local iface="$1" 16 cat /sys/class/net/"${iface}"/address 2>/dev/null ||: 20 local iface="$1" 23 if ip link show dev "${iface}" | grep -q "${iface}:.*\<UP\>" 2>/dev/null; then 28 ip link set dev "${iface}" down ||: 30 ip link set dev "${iface}" address "${mac}" ||: 32 ip link set dev "${iface}" up ||: 37 local iface="$1" 40 case "${iface}" in
|
/openbmc/openbmc/poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/ |
H A D | interfaces | 5 iface lo inet loopback 8 iface wlan0 inet dhcp 14 iface atml0 inet dhcp 18 iface eth0 inet dhcp 19 iface eth1 inet dhcp 23 iface eth inet dhcp 27 iface usb0 inet static 34 iface bnep0 inet dhcp
|
/openbmc/linux/sound/usb/ |
H A D | quirks-table.h | 133 .iface = 1, 173 .iface = 3, 455 .iface = 0, 470 .iface = 1, 780 .iface = 1, 795 .iface = 2, 1226 .iface = 0, 1242 .iface = 1, 1277 .iface = 0, 1293 .iface = 1, [all …]
|